CreateQuery mv_resampled_timeseries (children 4)
 Identifier mv_resampled_timeseries
 Columns definition (children 1)
  ExpressionList (children 3)
   ColumnDeclaration metric_id (children 1)
    DataType UInt64
   ColumnDeclaration grid_timestamp (children 2)
    DataType DateTime (children 1)
     ExpressionList (children 1)
      Literal \'UTC\'
    Function CODEC (children 1)
     ExpressionList (children 2)
      Function DoubleDelta
      Function ZSTD
   ColumnDeclaration samples (children 1)
    DataType AggregateFunction (children 1)
     ExpressionList (children 3)
      Identifier timeSeriesLastTwoSamples
      DataType DateTime64 (children 1)
       ExpressionList (children 2)
        Literal UInt64_3
        Literal \'UTC\'
      DataType Float64
 SelectWithUnionQuery (children 1)
  ExpressionList (children 1)
   SelectQuery (children 3)
    ExpressionList (children 3)
     Identifier metric_id
     Function multiply (alias grid_timestamp) (children 1)
      ExpressionList (children 2)
       Function ceil (children 1)
        ExpressionList (children 2)
         Function divide (children 1)
          ExpressionList (children 2)
           Function toUnixTimestamp (children 1)
            ExpressionList (children 1)
             Function plus (children 1)
              ExpressionList (children 2)
               Identifier timestamp
               Function toIntervalMillisecond (children 1)
                ExpressionList (children 1)
                 Literal UInt64_999
           Literal UInt64_15
         Literal UInt64_0
       Literal UInt64_15
     Function initializeAggregation (alias samples) (children 1)
      ExpressionList (children 3)
       Literal \'timeSeriesLastTwoSamplesState\'
       Identifier timestamp
       Identifier value
    TablesInSelectQuery (children 1)
     TablesInSelectQueryElement (children 1)
      TableExpression (children 1)
       TableIdentifier t_raw_timeseries
    ExpressionList (children 2)
     OrderByElement (children 1)
      Identifier metric_id
     OrderByElement (children 1)
      Identifier grid_timestamp
 ViewTargets
