SelectWithUnionQuery (children 1) ExpressionList (children 1) SelectQuery (children 2) ExpressionList (children 3) Function count (children 1) ExpressionList Function sum (children 1) ExpressionList (children 1) Function toUInt64 (children 1) ExpressionList (children 1) Identifier ns Function max (children 1) ExpressionList (children 1) Function toUInt64 (children 1) ExpressionList (children 1) Identifier ns TablesInSelectQuery (children 2) TablesInSelectQueryElement (children 1) TableExpression (children 1) Subquery (children 1) SelectWithUnionQuery (children 1) ExpressionList (children 1) SelectQuery (children 3) ExpressionList (children 2) Function intDiv (alias k) (children 1) ExpressionList (children 2) Identifier number Literal UInt64_100 Function groupArray (alias ns) (children 1) ExpressionList (children 1) Function toString (children 1) ExpressionList (children 1) Identifier number TablesInSelectQuery (children 1) TablesInSelectQueryElement (children 1) TableExpression (children 1) Function remote (children 1) ExpressionList (children 3) Literal \'127.0.0.{2,3}\' Function currentDatabase (children 1) ExpressionList Literal \'numbers_mt\' ExpressionList (children 1) Identifier k TablesInSelectQueryElement (children 1) ArrayJoin (children 1) ExpressionList (children 1) Identifier ns