SelectWithUnionQuery (children 1) ExpressionList (children 1) SelectQuery (children 3) ExpressionList (children 3) Identifier key1 Identifier key2 Identifier table_1 TablesInSelectQuery (children 2) TablesInSelectQueryElement (children 1) TableExpression (children 1) Subquery (alias js1) (children 1) SelectWithUnionQuery (children 1) ExpressionList (children 1) SelectQuery (children 1) ExpressionList (children 3) Function arrayJoin (alias key1) (children 1) ExpressionList (children 1) Literal Array_[UInt64_1, UInt64_2, UInt64_3] Literal UInt64_0 (alias key2) Literal UInt64_999 (alias table_1) TablesInSelectQueryElement (children 2) TableExpression (children 1) Subquery (alias js2) (children 1) SelectWithUnionQuery (children 1) ExpressionList (children 1) SelectQuery (children 1) ExpressionList (children 3) Function arrayJoin (alias key1) (children 1) ExpressionList (children 1) Literal Array_[UInt64_1, UInt64_3, UInt64_2] Literal UInt64_0 (alias key2) Literal UInt64_999 (alias table_1) TableJoin (children 1) ExpressionList (children 2) Identifier key2 Identifier key1 ExpressionList (children 1) OrderByElement (children 1) Identifier key1