SelectWithUnionQuery (children 1) ExpressionList (children 1) SelectQuery (children 2) ExpressionList (children 2) Function countIf (children 1) ExpressionList (children 1) Function has (children 1) ExpressionList (children 2) Identifier x Literal UInt64_10 Function sum (children 1) ExpressionList (children 1) Identifier y TablesInSelectQuery (children 2) TablesInSelectQueryElement (children 1) TableExpression (children 1) TableIdentifier big_array TablesInSelectQueryElement (children 1) ArrayJoin (children 1) ExpressionList (children 1) Identifier x (alias y)