It gives parser error
select * from master_type(all) where i_chronicle_id in
(
select distinct i_chronicle_id from gxp_master_type(all) where FOLDER ('/Test/01',DESCEND) union
select distinct i_chronicle_id from gxp_master_type(all) where FOLDER ('/Test/02',DESCEND) union
select distinct i_chronicle_id from gxp_master_type(all) where FOLDER ('/Test/03',DESCEND) union
select distinct i_chronicle_id from gxp_master_type(all) where FOLDER ('/Test/04',DESCEND) union
select distinct i_chronicle_id from gxp_master_type(all) where FOLDER ('/Test/05',DESCEND) union
select distinct i_chronicle_id from gxp_master_type(all) where FOLDER ('/Test/06',DESCEND) union
select distinct i_chronicle_id from gxp_master_type(all) where FOLDER ('/Test/07',DESCEND) union
select distinct i_chronicle_id from gxp_master_type(all) where FOLDER ('/Test/08',DESCEND) union
select distinct i_chronicle_id from gxp_master_type(all) where FOLDER ('/Test/09',DESCEND) union
select distinct i_chronicle_id from gxp_master_type(all) where FOLDER ('/Test/10',DESCEND) union
select distinct i_chronicle_id from gxp_master_type(all) where FOLDER ('/Test/11',DESCEND) union
select distinct i_chronicle_id from gxp_master_type(all) where FOLDER ('/Test/12',DESCEND) union
select distinct i_chronicle_id from gxp_master_type(all) where FOLDER ('/Test/13',DESCEND) union
select distinct i_chronicle_id from gxp_master_type(all) where FOLDER ('/Test/14',DESCEND) union
select distinct i_chronicle_id from gxp_master_type(all) where FOLDER ('/Test/15',DESCEND) union
select distinct i_chronicle_id from gxp_master_type(all) where FOLDER ('/Test/16',DESCEND) union
select distinct i_chronicle_id from gxp_master_type(all) where FOLDER ('/Test/17',DESCEND) union
select distinct i_chronicle_id from gxp_master_type(all) where FOLDER ('/Test/18',DESCEND) union
select distinct i_chronicle_id from gxp_master_type(all) where FOLDER ('/Test/19',DESCEND) union
select distinct i_chronicle_id from gxp_master_type(all) where FOLDER ('/Test/20',DESCEND) union
select distinct i_chronicle_id from gxp_master_type(all) where FOLDER ('/Test/21',DESCEND) union
select distinct i_chronicle_id from gxp_master_type(all) where FOLDER ('/Test/22',DESCEND) union
select distinct i_chronicle_id from gxp_master_type(all) where FOLDER ('/Test/23',DESCEND)
)
and any r_version_label != '10.0'