SelectWithUnionQuery (children 1)
 ExpressionList (children 1)
  SelectQuery (children 5)
   ExpressionList (children 5)
    Function toDateTime (alias start_ts) (children 1)
     ExpressionList (children 2)
      Literal \'2024-12-12 12:00:10\'
      Literal \'UTC\'
    Function toDateTime (alias end_ts) (children 1)
     ExpressionList (children 2)
      Literal \'2024-12-12 12:01:00\'
      Literal \'UTC\'
    Literal UInt64_10 (alias step_sec)
    Literal UInt64_50 (alias window_sec)
    Function range (alias grid) (children 1)
     ExpressionList (children 3)
      Function toUnixTimestamp (children 1)
       ExpressionList (children 1)
        Identifier start_ts
      Function plus (children 1)
       ExpressionList (children 2)
        Function toUnixTimestamp (children 1)
         ExpressionList (children 1)
          Identifier end_ts
        Literal UInt64_1
      Identifier step_sec
   ExpressionList (children 2)
    Identifier metric_id
    Function arrayJoin (children 1)
     ExpressionList (children 1)
      Function arrayZip (children 1)
       ExpressionList (children 7)
        Identifier grid
        Identifier irate_values
        Identifier irate_values_scale_3
        Identifier idelta_values
        Identifier rate_values
        Identifier rate_values_scale_5
        Identifier delta_values
   TablesInSelectQuery (children 1)
    TablesInSelectQueryElement (children 1)
     TableExpression (children 1)
      Subquery (children 1)
       SelectWithUnionQuery (children 1)
        ExpressionList (children 1)
         SelectQuery (children 3)
          ExpressionList (children 7)
           Identifier metric_id
           Function timeSeriesInstantRateToGrid (alias irate_values) (children 2)
            ExpressionList (children 2)
             Function tupleElement (children 1)
              ExpressionList (children 2)
               Identifier samples
               Literal UInt64_1
             Function tupleElement (children 1)
              ExpressionList (children 2)
               Identifier samples
               Literal UInt64_2
            ExpressionList (children 4)
             Identifier start_ts
             Identifier end_ts
             Identifier step_sec
             Identifier window_sec
           Function timeSeriesInstantRateToGrid (alias irate_values_scale_3) (children 2)
            ExpressionList (children 2)
             Function CAST (children 1)
              ExpressionList (children 2)
               Function tupleElement (children 1)
                ExpressionList (children 2)
                 Identifier samples
                 Literal UInt64_1
               Literal \'Array(DateTime64(3, \\\'UTC\\\'))\'
             Function tupleElement (children 1)
              ExpressionList (children 2)
               Identifier samples
               Literal UInt64_2
            ExpressionList (children 4)
             Identifier start_ts
             Identifier end_ts
             Identifier step_sec
             Identifier window_sec
           Function timeSeriesInstantDeltaToGrid (alias idelta_values) (children 2)
            ExpressionList (children 2)
             Function tupleElement (children 1)
              ExpressionList (children 2)
               Identifier samples
               Literal UInt64_1
             Function tupleElement (children 1)
              ExpressionList (children 2)
               Identifier samples
               Literal UInt64_2
            ExpressionList (children 4)
             Identifier start_ts
             Identifier end_ts
             Identifier step_sec
             Identifier window_sec
           Function timeSeriesRateToGrid (alias rate_values) (children 2)
            ExpressionList (children 2)
             Function tupleElement (children 1)
              ExpressionList (children 2)
               Identifier samples
               Literal UInt64_1
             Function tupleElement (children 1)
              ExpressionList (children 2)
               Identifier samples
               Literal UInt64_2
            ExpressionList (children 4)
             Identifier start_ts
             Identifier end_ts
             Identifier step_sec
             Identifier window_sec
           Function timeSeriesRateToGrid (alias rate_values_scale_5) (children 2)
            ExpressionList (children 2)
             Function CAST (children 1)
              ExpressionList (children 2)
               Function tupleElement (children 1)
                ExpressionList (children 2)
                 Identifier samples
                 Literal UInt64_1
               Literal \'Array(DateTime64(5, \\\'UTC\\\'))\'
             Function tupleElement (children 1)
              ExpressionList (children 2)
               Identifier samples
               Literal UInt64_2
            ExpressionList (children 4)
             Identifier start_ts
             Identifier end_ts
             Identifier step_sec
             Identifier window_sec
           Function timeSeriesDeltaToGrid (alias delta_values) (children 2)
            ExpressionList (children 2)
             Function tupleElement (children 1)
              ExpressionList (children 2)
               Identifier samples
               Literal UInt64_1
             Function tupleElement (children 1)
              ExpressionList (children 2)
               Identifier samples
               Literal UInt64_2
            ExpressionList (children 4)
             Identifier start_ts
             Identifier end_ts
             Identifier step_sec
             Identifier window_sec
          TablesInSelectQuery (children 1)
           TablesInSelectQueryElement (children 1)
            TableExpression (children 1)
             Function clusterAllReplicas (children 1)
              ExpressionList (children 3)
               Literal \'test_shard_localhost\'
               Function currentDatabase (children 1)
                ExpressionList
               Identifier t_resampled_timeseries
          ExpressionList (children 1)
           Identifier metric_id
   ExpressionList (children 1)
    OrderByElement (children 1)
     Identifier metric_id
   Set
