SelectWithUnionQuery (children 1)
 ExpressionList (children 1)
  SelectQuery (children 2)
   ExpressionList (children 1)
    Function arraySort (alias argmin_per_partition) (children 1)
     ExpressionList (children 1)
      Function groupUniqArray (children 1)
       ExpressionList (children 1)
        Function tuple (children 1)
         ExpressionList (children 2)
          Identifier partition_mod
          Identifier argMin_val
   TablesInSelectQuery (children 1)
    TablesInSelectQueryElement (children 1)
     TableExpression (children 1)
      Subquery (children 1)
       SelectWithUnionQuery (children 1)
        ExpressionList (children 1)
         SelectQuery (children 3)
          ExpressionList (children 4)
           Identifier number (alias ts)
           Function modulo (alias partition_mod) (children 1)
            ExpressionList (children 2)
             Identifier ts
             Literal UInt64_10
           Function toString (alias s) (children 1)
            ExpressionList (children 1)
             Function modulo (children 1)
              ExpressionList (children 2)
               Identifier ts
               Literal UInt64_5
           Function argMinDistinct (alias argMin_val) (children 1)
            ExpressionList (children 2)
             Identifier ts
             Identifier s
          TablesInSelectQuery (children 1)
           TablesInSelectQueryElement (children 1)
            TableExpression (children 1)
             Function remote (children 1)
              ExpressionList (children 2)
               Literal \'127.0.0.{1,2,3}\'
               Function numbers_mt (children 1)
                ExpressionList (children 1)
                 Literal UInt64_100000
          ExpressionList (children 1)
           OrderByElement (children 1)
            Identifier ts
