def query_starts_with(query, prefixes):
prefixes = [prefix.lower() for prefix in prefixes]<EOL>formatted_sql = sqlparse.format(query.lower(), strip_comments=True)<EOL>return bool(formatted_sql) and formatted_sql.split()[<NUM_LIT:0>] in prefixes<EOL>
Check if the query starts with any item from *prefixes*.