SelectWithUnionQuery (children 1) ExpressionList (children 1) SelectQuery (children 7) ExpressionList (children 2) Function transform (alias title) (children 1) ExpressionList (children 4) Identifier SearchEngineID Literal Array_[UInt64_2, UInt64_3] Literal Array_[\'Яндекс\', \'Google\'] Literal \'Остальные\' Function count (alias c) (children 1) ExpressionList TablesInSelectQuery (children 1) TablesInSelectQueryElement (children 1) TableExpression (children 1) TableIdentifier test.hits Function notEquals (children 1) ExpressionList (children 2) Identifier SearchEngineID Literal UInt64_0 ExpressionList (children 1) Identifier title Function greater (children 1) ExpressionList (children 2) Identifier c Literal UInt64_0 ExpressionList (children 1) OrderByElement (children 1) Identifier c Literal UInt64_10