parsetree builds a parsetree from a query with AND, OR, or NOT operators and parentheses