SelectWithUnionQuery (children 1) ExpressionList (children 1) SelectQuery (children 4) ExpressionList (children 2) QualifiedAsterisk (children 1) Identifier t1 QualifiedAsterisk (children 1) Identifier t2 TablesInSelectQuery (children 2) TablesInSelectQueryElement (children 1) TableExpression (children 1) TableIdentifier table1 (alias t1) TablesInSelectQueryElement (children 2) TableExpression (children 1) TableIdentifier table2 (alias t2) TableJoin (children 1) Function equals (children 1) ExpressionList (children 2) Identifier t1_a Identifier t2_a Function and (children 1) ExpressionList (children 2) Function greater (children 1) ExpressionList (children 2) Identifier t1.a (alias t1_a) Literal UInt64_2 Function greater (children 1) ExpressionList (children 2) Identifier t2.a (alias t2_a) Literal UInt64_4 ExpressionList (children 1) OrderByElement (children 1) Identifier all