CreateQuery v (children 3)
 Identifier v
 Columns definition (children 1)
  ExpressionList (children 2)
   ColumnDeclaration date (children 1)
    DataType UInt32
   ColumnDeclaration value (children 1)
    DataType UInt8
 SelectWithUnionQuery (children 1)
  ExpressionList (children 1)
   SelectQuery (children 3)
    ExpressionList (children 2)
     WithElement (children 1)
      Subquery (children 1)
       SelectWithUnionQuery (children 1)
        ExpressionList (children 1)
         SelectQuery (children 2)
          ExpressionList (children 1)
           Literal \'\' (alias id)
          Literal UInt64_0
     WithElement (children 1)
      Subquery (children 1)
       SelectWithUnionQuery (children 1)
        ExpressionList (children 1)
         SelectQuery (children 1)
          ExpressionList (children 2)
           Literal \'\' (alias id)
           Function CAST (alias value) (children 1)
            ExpressionList (children 2)
             Literal \'1\'
             Literal \'UInt8\'
    ExpressionList (children 2)
     Function now (alias date) (children 1)
      ExpressionList
     Function and (alias value) (children 1)
      ExpressionList (children 2)
       Identifier value
       Function in (children 1)
        ExpressionList (children 2)
         Identifier data.id
         Subquery (children 1)
          SelectWithUnionQuery (children 1)
           ExpressionList (children 1)
            SelectQuery (children 2)
             ExpressionList (children 1)
              Literal \'\' (alias d)
             TablesInSelectQuery (children 1)
              TablesInSelectQueryElement (children 1)
               TableExpression (children 1)
                TableIdentifier system.one
    TablesInSelectQuery (children 2)
     TablesInSelectQueryElement (children 1)
      TableExpression (children 1)
       TableIdentifier data
     TablesInSelectQueryElement (children 2)
      TableExpression (children 1)
       TableIdentifier r
      TableJoin (children 1)
       Function equals (children 1)
        ExpressionList (children 2)
         Identifier data.id
         Identifier r.id
