InsertQuery   (children 2)
 Identifier prd_bid_events_simple_no_partition
 SelectWithUnionQuery (children 1)
  ExpressionList (children 1)
   SelectQuery (children 2)
    ExpressionList (children 2)
     Function arrayElement (children 1)
      ExpressionList (children 2)
       Literal Array_[\'impression\', \'start\', \'firstQuartile\', \'midpoint\', \'thirdQuartile\', \'complete\', \'ad_request\', \'random_value\']
       Function plus (children 1)
        ExpressionList (children 2)
         Literal UInt64_1
         Function modulo (children 1)
          ExpressionList (children 2)
           Identifier number
           Literal UInt64_8
     Function toDateTime64 (children 1)
      ExpressionList (children 2)
       Function minus (children 1)
        ExpressionList (children 2)
         Function minus (children 1)
          ExpressionList (children 2)
           Function minus (children 1)
            ExpressionList (children 2)
             Literal \'2025-11-19 14:26:52\'
             Function toIntervalDay (children 1)
              ExpressionList (children 1)
               Function modulo (children 1)
                ExpressionList (children 2)
                 Identifier number
                 Literal UInt64_30
           Function toIntervalSecond (children 1)
            ExpressionList (children 1)
             Function modulo (children 1)
              ExpressionList (children 2)
               Identifier number
               Literal UInt64_86400
         Function toIntervalMillisecond (children 1)
          ExpressionList (children 1)
           Function modulo (children 1)
            ExpressionList (children 2)
             Identifier number
             Literal UInt64_1000
       Literal UInt64_9
    TablesInSelectQuery (children 1)
     TablesInSelectQueryElement (children 1)
      TableExpression (children 1)
       Function numbers (children 1)
        ExpressionList (children 1)
         Literal UInt64_500000
