import json


def rule(event):
    if any(
        [
            "quoted string not properly terminated" in json.dumps(event.to_dict()),
            "You have an error in your SQL syntax" in json.dumps(event.to_dict()),
            "Unclosed quotation mark" in json.dumps(event.to_dict()),
            'near "*": syntax error' in json.dumps(event.to_dict()),
            "SELECTs to the left and right of UNION do not have the same number of result columns"
            in json.dumps(event.to_dict()),
        ]
    ):
        return True
    return False
