CreateQuery alpha__day (children 3)
 Identifier alpha__day
 Columns definition (children 1)
  ExpressionList (children 2)
   ColumnDeclaration ts_date (children 1)
    DataType Date
   ColumnDeclaration auid (children 1)
    DataType Int64
 SelectWithUnionQuery (children 1)
  ExpressionList (children 1)
   SelectQuery (children 3)
    ExpressionList (children 2)
     Identifier ts_date
     Identifier auid
    TablesInSelectQuery (children 1)
     TablesInSelectQueryElement (children 1)
      TableExpression (children 1)
       Subquery (children 1)
        SelectWithUnionQuery (children 1)
         ExpressionList (children 1)
          SelectQuery (children 2)
           ExpressionList (children 2)
            Function toDate (alias ts_date) (children 1)
             ExpressionList (children 1)
              Identifier ts
            Identifier auid
           TablesInSelectQuery (children 1)
            TablesInSelectQueryElement (children 1)
             TableExpression (children 1)
              TableIdentifier alpha
    Function lessOrEquals (children 1)
     ExpressionList (children 2)
      Identifier ts_date
      Function minus (children 1)
       ExpressionList (children 2)
        Function toDateTime (children 1)
         ExpressionList (children 1)
          Literal \'2024-01-01 00:00:00\'
        Function toIntervalDay (children 1)
         ExpressionList (children 1)
          Literal UInt64_1
