def METHOD_NAME(cls, value):
    if (not value.lower().startswith("select")) or "limit" in value.lower():
        raise ValueError("Provided query cannot contain LIMIT keyword and has to start with SELECT keyword. "
                         "Limit is used to batch the data during import.")
    return value