SelectWithUnionQuery (children 1) ExpressionList (children 1) SelectQuery (children 3) ExpressionList (children 2) Identifier k Identifier b TablesInSelectQuery (children 2) TablesInSelectQueryElement (children 1) TableExpression (children 1) Subquery (alias js1) (children 1) SelectWithUnionQuery (children 1) ExpressionList (children 1) SelectQuery (children 2) ExpressionList (children 1) Function plus (alias k) (children 1) ExpressionList (children 2) Identifier number Literal UInt64_1 TablesInSelectQuery (children 1) TablesInSelectQueryElement (children 1) TableExpression (children 1) Function numbers (children 1) ExpressionList (children 1) Literal UInt64_10 TablesInSelectQueryElement (children 2) TableExpression (children 1) Subquery (alias js2) (children 1) SelectWithUnionQuery (children 1) ExpressionList (children 1) SelectQuery (children 2) ExpressionList (children 2) Function nullIf (alias k) (children 1) ExpressionList (children 2) Identifier number Function if (children 1) ExpressionList (children 3) Function equals (children 1) ExpressionList (children 2) Function modulo (children 1) ExpressionList (children 2) Identifier number Literal UInt64_2 Literal UInt64_0 Identifier number Literal UInt64_0 Identifier number (alias b) TablesInSelectQuery (children 1) TablesInSelectQueryElement (children 1) TableExpression (children 1) Function numbers (children 1) ExpressionList (children 1) Literal UInt64_10 TableJoin (children 1) ExpressionList (children 1) Identifier k ExpressionList (children 2) OrderByElement (children 1) Identifier k OrderByElement (children 1) Identifier b