InsertQuery   (children 2)
 Identifier video_log_result
 SelectWithUnionQuery (children 1)
  ExpressionList (children 1)
   SelectQuery (children 3)
    ExpressionList (children 3)
     Function toStartOfHour (alias hour) (children 1)
      ExpressionList (children 1)
       Identifier datetime
     Function sum (children 1)
      ExpressionList (children 1)
       Identifier bytes
     Function avg (children 1)
      ExpressionList (children 1)
       Identifier duration
    TablesInSelectQuery (children 1)
     TablesInSelectQueryElement (children 1)
      TableExpression (children 1)
       TableIdentifier video_log
    Function and (children 1)
     ExpressionList (children 2)
      Function equals (children 1)
       ExpressionList (children 2)
        Function toDate (children 1)
         ExpressionList (children 1)
          Identifier hour
        Literal \'2022-07-22\'
      Function equals (children 1)
       ExpressionList (children 2)
        Identifier device_id
        Literal \'100\'
