SelectWithUnionQuery (children 1) ExpressionList (children 1) SelectQuery (children 4) ExpressionList (children 1) Function sum (alias value) (children 1) ExpressionList (children 1) Identifier u TablesInSelectQuery (children 1) TablesInSelectQueryElement (children 1) TableExpression (children 1) TableIdentifier t_sparse_full ExpressionList (children 1) Function modulo (alias k) (children 1) ExpressionList (children 2) Identifier id Literal UInt64_3 ExpressionList (children 1) OrderByElement (children 1) Identifier value