InsertQuery   (children 2)
 Identifier ts_data_agg
 SelectWithUnionQuery (children 1)
  ExpressionList (children 1)
   SelectQuery (children 2)
    ExpressionList (children 2)
     Function modulo (children 1)
      ExpressionList (children 2)
       Function toUnixTimestamp (children 1)
        ExpressionList (children 1)
         Identifier timestamp
       Literal UInt64_3
     Function initializeAggregation (children 1)
      ExpressionList (children 3)
       Literal \'timeSeriesResampleToGridWithStalenessState(100, 200, 10, 15)\'
       Identifier timestamp
       Identifier value
    TablesInSelectQuery (children 1)
     TablesInSelectQueryElement (children 1)
      TableExpression (children 1)
       TableIdentifier ts_data
