SelectWithUnionQuery (children 1)
 ExpressionList (children 1)
  SelectQuery (children 4)
   ExpressionList (children 3)
    Identifier metric_id
    Identifier grid_timestamp
    Function tuple (children 1)
     ExpressionList (children 2)
      Function tupleElement (alias timestamp) (children 1)
       ExpressionList (children 2)
        Function finalizeAggregation (children 1)
         ExpressionList (children 1)
          Identifier samples
        Literal UInt64_1
      Function tupleElement (alias value) (children 1)
       ExpressionList (children 2)
        Function finalizeAggregation (children 1)
         ExpressionList (children 1)
          Identifier samples
        Literal UInt64_2
   TablesInSelectQuery (children 1)
    TablesInSelectQueryElement (children 1)
     TableExpression (children 1)
      TableIdentifier t_resampled_timeseries
   Function and (children 1)
    ExpressionList (children 3)
     Function equals (children 1)
      ExpressionList (children 2)
       Identifier step
       Literal UInt64_10
     Function in (children 1)
      ExpressionList (children 2)
       Identifier metric_id
       Literal Tuple_(UInt64_3, UInt64_7)
     Function and (children 1)
      ExpressionList (children 2)
       Function greaterOrEquals (children 1)
        ExpressionList (children 2)
         Identifier grid_timestamp
         Literal \'2024-12-12 12:00:00\'
       Function lessOrEquals (children 1)
        ExpressionList (children 2)
         Identifier grid_timestamp
         Literal \'2024-12-12 12:02:00\'
   ExpressionList (children 2)
    OrderByElement (children 1)
     Identifier metric_id
    OrderByElement (children 1)
     Identifier grid_timestamp
