def is_select_query(query):
 return (not RE_SELECT_QUERY.match(query.upper()))

def is_select_query ( query ) : return ( not RE_SELECT_QUERY . match ( query . upper ( ) ) )
check if sql query is a select statement .