SelectWithUnionQuery (children 1)
 ExpressionList (children 1)
  SelectQuery (children 2)
   ExpressionList (children 1)
    Function timeSeriesInstantRateToGridIf (children 2)
     ExpressionList (children 3)
      Identifier timestamps
      Identifier values
      Function if (children 1)
       ExpressionList (children 3)
        Function equals (children 1)
         ExpressionList (children 2)
          Function length (children 1)
           ExpressionList (children 1)
            Identifier timestamps
          Function length (children 1)
           ExpressionList (children 1)
            Identifier values
        Literal Bool_1
        Literal NULL
     ExpressionList (children 4)
      Literal UInt64_10
      Literal UInt64_120
      Literal UInt64_10
      Literal UInt64_60
   TablesInSelectQuery (children 1)
    TablesInSelectQueryElement (children 1)
     TableExpression (children 1)
      TableIdentifier ts_data
