SelectWithUnionQuery (children 1) ExpressionList (children 1) SelectQuery (children 4) ExpressionList (children 2) Function modulo (alias gg) (children 1) ExpressionList (children 2) Identifier g Literal UInt64_2 Function sum (children 1) ExpressionList (children 1) Identifier s TablesInSelectQuery (children 1) TablesInSelectQueryElement (children 1) TableExpression (children 1) TableIdentifier table_01356_view_threads ExpressionList (children 1) Identifier gg ExpressionList (children 1) OrderByElement (children 1) Identifier gg