SelectWithUnionQuery (children 2)
 ExpressionList (children 1)
  SelectQuery (children 4)
   ExpressionList (children 2)
    Identifier tb1.owner_id (alias owner_id)
    Identifier type
   TablesInSelectQuery (children 3)
    TablesInSelectQueryElement (children 1)
     TableExpression (children 1)
      Subquery (alias tb1) (children 1)
       SelectWithUnionQuery (children 1)
        ExpressionList (children 1)
         SelectQuery (children 2)
          ExpressionList (children 1)
           Identifier number (alias owner_id)
          TablesInSelectQuery (children 1)
           TablesInSelectQueryElement (children 1)
            TableExpression (children 1)
             Function numbers (children 1)
              ExpressionList (children 1)
               Literal UInt64_100
    TablesInSelectQueryElement (children 2)
     TableExpression (children 1)
      Function values (alias pt) (children 1)
       ExpressionList (children 4)
        Literal \'type varchar\'
        Literal \'type1\'
        Literal \'type2\'
        Literal \'type3\'
     TableJoin
    TablesInSelectQueryElement (children 2)
     TableExpression (children 1)
      Subquery (alias merged) (children 1)
       SelectWithUnionQuery (children 1)
        ExpressionList (children 1)
         SelectQuery (children 2)
          ExpressionList (children 1)
           Identifier tb2.owner_id (alias owner_id)
          TablesInSelectQuery (children 1)
           TablesInSelectQueryElement (children 1)
            TableExpression (children 1)
             Subquery (alias tb2) (children 1)
              SelectWithUnionQuery (children 1)
               ExpressionList (children 1)
                SelectQuery (children 3)
                 ExpressionList (children 1)
                  Identifier number (alias owner_id)
                 TablesInSelectQuery (children 1)
                  TablesInSelectQueryElement (children 1)
                   TableExpression (children 1)
                    Function numbers (children 1)
                     ExpressionList (children 1)
                      Literal UInt64_100
                 ExpressionList (children 1)
                  Identifier owner_id
     TableJoin (children 1)
      ExpressionList (children 1)
       Identifier owner_id
   Function equals (children 1)
    ExpressionList (children 2)
     Identifier tb1.owner_id
     Identifier merged.owner_id
   ExpressionList (children 2)
    Identifier tb1.owner_id
    Identifier type
 Identifier Null
