def create_query_constraint():
op = oneOf("<STR_LIT>", caseless=True).setName("<STR_LIT>")<EOL>basic_constraint = (var + op + var_val).setResultsName("<STR_LIT>")<EOL>between = (<EOL>var + Suppress(upkey("<STR_LIT>")) + value + Suppress(and_) + value<EOL>).setResultsName("<STR_LIT>")<EOL>is_in = (var + Suppress(upkey("<STR_LIT>")) + set_).setResultsName("<STR_LIT>")<EOL>fxn = (<EOL>function("<STR_LIT>", var)<EOL>| function("<STR_LIT>", var)<EOL>| function("<STR_LIT>", var, types)<EOL>| function("<STR_LIT>", var, Group(string))<EOL>| function("<STR_LIT>", var, value)<EOL>| (function("<STR_LIT:size>", var) + op + value)<EOL>).setResultsName("<STR_LIT>")<EOL>all_constraints = between | basic_constraint | is_in | fxn<EOL>return Group(all_constraints).setName("<STR_LIT>")<EOL>
Create a constraint for a query WHERE clause