SelectWithUnionQuery (children 1) ExpressionList (children 1) SelectQuery (children 4) ExpressionList (children 2) Function modulo (alias k) (children 1) ExpressionList (children 2) Identifier number Literal UInt64_10000 Function anyLastIf (alias x) (children 1) ExpressionList (children 2) Literal Float64_1 Literal UInt64_0 TablesInSelectQuery (children 1) TablesInSelectQueryElement (children 1) TableExpression (children 1) Subquery (children 1) SelectWithUnionQuery (children 1) ExpressionList (children 2) SelectQuery (children 3) ExpressionList (children 1) Asterisk TablesInSelectQuery (children 1) TablesInSelectQueryElement (children 1) TableExpression (children 1) TableIdentifier system.numbers Literal UInt64_1000 SelectQuery (children 3) ExpressionList (children 1) Asterisk TablesInSelectQuery (children 1) TablesInSelectQueryElement (children 1) TableExpression (children 1) TableIdentifier system.numbers Literal UInt64_1000 ExpressionList (children 1) Identifier k Function notEquals (children 1) ExpressionList (children 2) Identifier x Literal UInt64_0