SelectWithUnionQuery (children 2) ExpressionList (children 1) SelectQuery (children 5) ExpressionList (children 2) Identifier val Function avg (children 1) ExpressionList (children 1) Function toUInt32 (children 1) ExpressionList (children 1) Identifier val TablesInSelectQuery (children 1) TablesInSelectQueryElement (children 1) TableExpression (children 1) TableIdentifier t_group_by_lowcardinality ExpressionList (children 1) Identifier val Literal UInt64_10 Set Identifier JSONEachRow