SelectWithUnionQuery (children 1)
 ExpressionList (children 1)
  SelectQuery (children 4)
   ExpressionList (children 1)
    Literal UInt64_1
   TablesInSelectQuery (children 1)
    TablesInSelectQueryElement (children 1)
     TableExpression (children 1)
      TableIdentifier tab
   Function and (children 1)
    ExpressionList (children 3)
     Function greater (children 1)
      ExpressionList (children 2)
       Identifier d
       Function toDateTime (children 1)
        ExpressionList (children 1)
         Function toDate (children 1)
          ExpressionList (children 1)
           Literal \'2000-01-01\'
     Function in (children 1)
      ExpressionList (children 2)
       Identifier p
       Literal \'a\'
     Function equals (children 1)
      ExpressionList (children 2)
       Literal UInt64_1
       Literal UInt64_1
   ExpressionList (children 3)
    Identifier d
    Identifier t
    Identifier p
