SelectWithUnionQuery (children 1) ExpressionList (children 1) SelectQuery (children 2) ExpressionList (children 6) Identifier id Function toTypeName (children 1) ExpressionList (children 1) Identifier id Identifier value Function toTypeName (children 1) ExpressionList (children 1) Identifier value Identifier d.values Function toTypeName (children 1) ExpressionList (children 1) Identifier d.values TablesInSelectQuery (children 2) TablesInSelectQueryElement (children 1) TableExpression (children 1) Subquery (alias a) (children 1) SelectWithUnionQuery (children 1) ExpressionList (children 1) SelectQuery (children 1) ExpressionList (children 2) Function toLowCardinality (alias id) (children 1) ExpressionList (children 1) Literal UInt64_1 Function toLowCardinality (alias value) (children 1) ExpressionList (children 1) Literal UInt64_2 TablesInSelectQueryElement (children 2) TableExpression (children 1) Subquery (alias d) (children 1) SelectWithUnionQuery (children 1) ExpressionList (children 1) SelectQuery (children 1) ExpressionList (children 2) Function toLowCardinality (alias id) (children 1) ExpressionList (children 1) Literal UInt64_1 Function toLowCardinality (alias values) (children 1) ExpressionList (children 1) Literal UInt64_3 TableJoin (children 1) ExpressionList (children 1) Identifier id