I think we need to change it behavior to standard SQL. query organization need to be executed at last.
query = ctes? set_operand_list order_by limit
set_operand_list = set_operand | set_operand_list set_op set_operand
set_operand = selectClause fromClause? whereClause? aggregationClause? havingClause?
| values
| LEFT_PAREN query RIGHT_PAREN