SelectWithUnionQuery (children 1) ExpressionList (children 1) SelectQuery (children 2) ExpressionList (children 2) Function substring (children 1) ExpressionList (children 3) Identifier a Literal UInt64_1 Literal UInt64_3 Function substring (children 1) ExpressionList (children 3) Function substring (children 1) ExpressionList (children 3) Function substring (children 1) ExpressionList (children 3) Identifier a Identifier c Function count (children 1) ExpressionList (children 1) Identifier b Literal UInt64_1 Function count (children 1) ExpressionList (children 1) Identifier b Literal UInt64_1 Function count (children 1) ExpressionList (children 1) Identifier b TablesInSelectQuery (children 1) TablesInSelectQueryElement (children 1) TableExpression (children 1) TableIdentifier group_by_all