SelectWithUnionQuery (children 1)
 ExpressionList (children 1)
  SelectQuery (children 4)
   ExpressionList (children 10)
    Function min (alias min_watch_id) (children 1)
     ExpressionList (children 1)
      Identifier WatchID
    Function max (children 1)
     ExpressionList (children 1)
      Identifier WatchID
    Function sum (children 1)
     ExpressionList (children 1)
      Identifier WatchID
    Function sum (children 1)
     ExpressionList (children 1)
      Function toUInt128 (children 1)
       ExpressionList (children 1)
        Identifier WatchID
    Function avg (children 1)
     ExpressionList (children 1)
      Identifier WatchID
    Function avgWeighted (children 1)
     ExpressionList (children 2)
      Identifier WatchID
      Identifier CounterID
    Function count (children 1)
     ExpressionList (children 1)
      Identifier WatchID
    Function groupBitOr (children 1)
     ExpressionList (children 1)
      Identifier WatchID
    Function groupBitAnd (children 1)
     ExpressionList (children 1)
      Identifier WatchID
    Function groupBitXor (children 1)
     ExpressionList (children 1)
      Identifier WatchID
   TablesInSelectQuery (children 1)
    TablesInSelectQueryElement (children 1)
     TableExpression (children 1)
      TableIdentifier test.hits
   ExpressionList (children 1)
    OrderByElement (children 1)
     Identifier min_watch_id
   Literal UInt64_20
