sqllogictest
Artifact Content
Not logged in

Artifact 8f48198d02f615768ed8811651da477c59800d36:


hash-threshold 8

statement ok
CREATE TABLE tab0(pk INTEGER PRIMARY KEY, col0 INTEGER, col1 FLOAT, col2 TEXT, col3 INTEGER, col4 FLOAT, col5 TEXT)

statement ok
INSERT INTO tab0 VALUES(0,940,273.84,'mzkwr',252,568.0,'ovkom')

statement ok
INSERT INTO tab0 VALUES(1,688,869.66,'uylfj',28,431.23,'gzwla')

statement ok
INSERT INTO tab0 VALUES(2,878,654.87,'ocjin',365,11.60,'fyqow')

statement ok
INSERT INTO tab0 VALUES(3,449,93.23,'afwwg',866,789.81,'uasne')

statement ok
INSERT INTO tab0 VALUES(4,694,587.70,'wqueo',545,997.33,'dcahj')

statement ok
INSERT INTO tab0 VALUES(5,383,104.52,'wknlw',961,244.49,'vaacp')

statement ok
INSERT INTO tab0 VALUES(6,892,802.39,'mnywt',337,141.60,'kmitl')

statement ok
INSERT INTO tab0 VALUES(7,324,651.54,'oawqm',687,926.12,'bgisq')

statement ok
INSERT INTO tab0 VALUES(8,635,63.90,'uargt',942,89.73,'hjvgk')

statement ok
INSERT INTO tab0 VALUES(9,762,512.19,'pwame',73,998.49,'lcrll')

statement ok
INSERT INTO tab0 VALUES(10,743,164.9,'lihpa',218,518.94,'kgjng')

statement ok
INSERT INTO tab0 VALUES(11,845,497.31,'ttnmu',806,648.25,'edsty')

statement ok
INSERT INTO tab0 VALUES(12,689,930.74,'izrpv',680,136.35,'ptisu')

statement ok
INSERT INTO tab0 VALUES(13,375,446.60,'dtnlz',226,105.0,'vznlw')

statement ok
INSERT INTO tab0 VALUES(14,605,218.53,'spehe',496,682.98,'bqqkq')

statement ok
INSERT INTO tab0 VALUES(15,812,233.72,'abrrd',333,621.20,'dpvur')

statement ok
INSERT INTO tab0 VALUES(16,279,916.5,'axsew',495,928.79,'fxrne')

statement ok
INSERT INTO tab0 VALUES(17,270,760.20,'dbevm',781,484.26,'gytlr')

statement ok
INSERT INTO tab0 VALUES(18,153,944.78,'bwudn',157,675.61,'tpkko')

statement ok
INSERT INTO tab0 VALUES(19,523,962.48,'iftby',880,12.47,'lfcmw')

statement ok
INSERT INTO tab0 VALUES(20,328,250.13,'xoilm',623,757.20,'sziws')

statement ok
INSERT INTO tab0 VALUES(21,997,806.91,'vfpvj',598,551.3,'ktcjc')

statement ok
INSERT INTO tab0 VALUES(22,560,819.40,'wgxvy',688,37.20,'jlncj')

statement ok
INSERT INTO tab0 VALUES(23,776,289.76,'cwpbg',558,485.6,'banzz')

statement ok
INSERT INTO tab0 VALUES(24,260,661.81,'oiokt',800,413.19,'gplqa')

statement ok
INSERT INTO tab0 VALUES(25,603,440.19,'xezax',40,222.56,'pqspy')

statement ok
INSERT INTO tab0 VALUES(26,499,822.46,'xivqs',72,810.63,'gchmz')

statement ok
INSERT INTO tab0 VALUES(27,872,317.26,'ggqlm',979,206.47,'mmnyc')

statement ok
INSERT INTO tab0 VALUES(28,0,376.39,'bzwmh',264,188.90,'lxpbh')

statement ok
INSERT INTO tab0 VALUES(29,638,13.96,'mjxmu',968,912.61,'nkhcl')

statement ok
INSERT INTO tab0 VALUES(30,145,431.52,'meigs',798,535.28,'gzocv')

statement ok
INSERT INTO tab0 VALUES(31,609,650.17,'fbspo',254,843.71,'tqaps')

statement ok
INSERT INTO tab0 VALUES(32,971,125.69,'xxird',750,873.95,'jovxd')

statement ok
INSERT INTO tab0 VALUES(33,151,380.68,'ivnuf',742,537.41,'licgk')

statement ok
INSERT INTO tab0 VALUES(34,171,626.64,'kjpxh',853,252.1,'uypzt')

statement ok
INSERT INTO tab0 VALUES(35,285,390.17,'ymgja',994,561.27,'hzmmw')

statement ok
INSERT INTO tab0 VALUES(36,97,136.3,'fxjlw',497,758.47,'srrlt')

statement ok
INSERT INTO tab0 VALUES(37,690,894.27,'nylcx',225,514.74,'ddtzd')

statement ok
INSERT INTO tab0 VALUES(38,752,885.40,'yzlhg',721,503.22,'skise')

statement ok
INSERT INTO tab0 VALUES(39,700,141.47,'vhdct',310,26.17,'dowwc')

statement ok
INSERT INTO tab0 VALUES(40,801,137.21,'mhbuq',234,635.8,'oyhnt')

statement ok
INSERT INTO tab0 VALUES(41,304,409.18,'vswyc',778,759.83,'udmrj')

statement ok
INSERT INTO tab0 VALUES(42,561,186.84,'zpcrz',391,329.77,'jgzfa')

statement ok
INSERT INTO tab0 VALUES(43,152,8.73,'vpsph',814,404.89,'uxqij')

statement ok
INSERT INTO tab0 VALUES(44,8,357.56,'vywdz',205,794.92,'nmfkh')

statement ok
INSERT INTO tab0 VALUES(45,543,278.35,'kojlm',262,686.44,'eczfj')

statement ok
INSERT INTO tab0 VALUES(46,772,7.55,'tiitg',347,270.5,'qwkdr')

statement ok
INSERT INTO tab0 VALUES(47,439,593.16,'kexgo',618,361.45,'garch')

statement ok
INSERT INTO tab0 VALUES(48,141,525.89,'tdwma',144,27.60,'sxmva')

statement ok
INSERT INTO tab0 VALUES(49,455,355.21,'ykcfg',38,214.82,'oflby')

statement ok
INSERT INTO tab0 VALUES(50,59,328.57,'dsktl',577,368.92,'xexla')

statement ok
INSERT INTO tab0 VALUES(51,862,0.45,'kfcxa',332,63.34,'zkmtv')

statement ok
INSERT INTO tab0 VALUES(52,125,868.51,'jsmhi',286,625.26,'tksdc')

statement ok
INSERT INTO tab0 VALUES(53,588,993.72,'ourid',967,760.73,'qjpci')

statement ok
INSERT INTO tab0 VALUES(54,595,627.49,'jwcjj',567,164.78,'anjrm')

statement ok
INSERT INTO tab0 VALUES(55,218,833.78,'jldwq',67,176.57,'zcano')

statement ok
INSERT INTO tab0 VALUES(56,382,116.23,'ebuoz',369,379.53,'uoybe')

statement ok
INSERT INTO tab0 VALUES(57,992,46.30,'aphjj',412,232.41,'rsptj')

statement ok
INSERT INTO tab0 VALUES(58,55,881.35,'hiqwj',302,698.48,'jubwy')

statement ok
INSERT INTO tab0 VALUES(59,807,194.84,'dzlax',436,866.64,'tprzl')

statement ok
INSERT INTO tab0 VALUES(60,838,498.38,'hyhso',629,579.52,'lpuyk')

statement ok
INSERT INTO tab0 VALUES(61,215,867.89,'minmq',233,54.62,'lcewg')

statement ok
INSERT INTO tab0 VALUES(62,612,571.74,'efvxi',269,512.42,'vluov')

statement ok
INSERT INTO tab0 VALUES(63,427,688.83,'eqwss',550,800.56,'hxlkb')

statement ok
INSERT INTO tab0 VALUES(64,915,740.76,'fsytf',801,17.87,'uchmk')

statement ok
INSERT INTO tab0 VALUES(65,307,310.94,'pynfd',791,140.60,'dumyv')

statement ok
INSERT INTO tab0 VALUES(66,941,673.70,'xcwuo',456,647.47,'tiyva')

statement ok
INSERT INTO tab0 VALUES(67,377,418.43,'lnwuq',19,142.81,'cpujk')

statement ok
INSERT INTO tab0 VALUES(68,537,72.69,'afidl',123,984.71,'mfabj')

statement ok
INSERT INTO tab0 VALUES(69,816,728.38,'pvxrq',949,906.12,'omhvi')

statement ok
INSERT INTO tab0 VALUES(70,213,668.81,'saoew',348,643.0,'zvhdy')

statement ok
INSERT INTO tab0 VALUES(71,457,988.82,'ikfon',955,560.41,'drpaz')

statement ok
INSERT INTO tab0 VALUES(72,129,223.99,'htkvk',330,271.66,'qpbjy')

statement ok
INSERT INTO tab0 VALUES(73,790,975.66,'cawli',68,267.43,'wnsyo')

statement ok
INSERT INTO tab0 VALUES(74,105,533.12,'lqeip',929,543.89,'yweol')

statement ok
INSERT INTO tab0 VALUES(75,964,500.72,'tmkwx',970,219.85,'ypibx')

statement ok
INSERT INTO tab0 VALUES(76,614,421.97,'besir',659,168.84,'vjztg')

statement ok
INSERT INTO tab0 VALUES(77,780,404.71,'ixzrx',6,640.26,'xqnft')

statement ok
INSERT INTO tab0 VALUES(78,789,746.21,'jykxq',689,886.53,'mvkpz')

statement ok
INSERT INTO tab0 VALUES(79,698,559.29,'fmgcs',175,785.15,'nlyqp')

statement ok
INSERT INTO tab0 VALUES(80,416,395.44,'wugoi',846,467.89,'gfwzz')

statement ok
INSERT INTO tab0 VALUES(81,833,870.98,'zmkxo',129,940.89,'wcwas')

statement ok
INSERT INTO tab0 VALUES(82,942,287.14,'ippeh',613,714.78,'ypihk')

statement ok
INSERT INTO tab0 VALUES(83,957,269.23,'pnecl',180,424.79,'htyld')

statement ok
INSERT INTO tab0 VALUES(84,459,373.72,'vlmbx',128,459.93,'mggif')

statement ok
INSERT INTO tab0 VALUES(85,498,724.39,'ffugb',296,584.6,'mrlhs')

statement ok
INSERT INTO tab0 VALUES(86,731,634.47,'qplwj',187,567.2,'fosfd')

statement ok
INSERT INTO tab0 VALUES(87,541,232.73,'ikafa',98,802.79,'hleob')

statement ok
INSERT INTO tab0 VALUES(88,167,84.62,'kmntp',241,935.59,'qcgor')

statement ok
INSERT INTO tab0 VALUES(89,825,821.40,'rafhp',868,488.1,'aqmlo')

statement ok
INSERT INTO tab0 VALUES(90,836,765.27,'bpgeg',398,489.13,'rpyjc')

statement ok
INSERT INTO tab0 VALUES(91,747,552.48,'igfgy',540,86.64,'bcerj')

statement ok
INSERT INTO tab0 VALUES(92,463,755.46,'tsucx',421,186.0,'jylam')

statement ok
INSERT INTO tab0 VALUES(93,361,515.94,'pjjex',707,68.51,'fuqjl')

statement ok
INSERT INTO tab0 VALUES(94,429,159.10,'yqtvu',731,18.49,'eevhr')

statement ok
INSERT INTO tab0 VALUES(95,376,832.67,'cvqod',617,941.35,'ntvzo')

statement ok
INSERT INTO tab0 VALUES(96,771,117.4,'jlicy',405,2.78,'tkvkh')

statement ok
INSERT INTO tab0 VALUES(97,157,658.45,'rgkkd',176,240.80,'hidlf')

statement ok
INSERT INTO tab0 VALUES(98,183,795.3,'bifbg',174,194.97,'ccrzt')

statement ok
INSERT INTO tab0 VALUES(99,726,177.98,'miqbc',941,533.42,'expcs')

statement ok
CREATE TABLE tab1(pk INTEGER PRIMARY KEY, col0 INTEGER, col1 FLOAT, col2 TEXT, col3 INTEGER, col4 FLOAT, col5 TEXT)

statement ok
CREATE INDEX idx_tab1_0 on tab1 (col0)

statement ok
CREATE INDEX idx_tab1_1 on tab1 (col1)

statement ok
CREATE INDEX idx_tab1_3 on tab1 (col3)

statement ok
CREATE INDEX idx_tab1_4 on tab1 (col4)

statement ok
INSERT INTO tab1 SELECT * FROM tab0

statement ok
CREATE TABLE tab2(pk INTEGER PRIMARY KEY, col0 INTEGER, col1 FLOAT, col2 TEXT, col3 INTEGER, col4 FLOAT, col5 TEXT)

statement ok
CREATE INDEX idx_tab2_0 ON tab2 (col3)

statement ok
CREATE INDEX idx_tab2_1 ON tab2 (col0)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
CREATE TABLE tab3(pk INTEGER PRIMARY KEY, col0 INTEGER, col1 FLOAT, col2 TEXT, col3 INTEGER, col4 FLOAT, col5 TEXT)

statement ok
CREATE UNIQUE INDEX idx_tab3_0 ON tab3 (col1 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab3_2 ON tab3 (col4 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab3_5 ON tab3 (col3)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
CREATE TABLE tab4(pk INTEGER PRIMARY KEY, col0 INTEGER, col1 FLOAT, col2 TEXT, col3 INTEGER, col4 FLOAT, col5 TEXT)

statement ok
CREATE UNIQUE INDEX idx_tab4_0 ON tab4 (col1)

statement ok
CREATE INDEX idx_tab4_3 ON tab4 (col0)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

query I rowsort label-empty
SELECT pk FROM tab0 WHERE pk IS NULL
----

query II rowsort label-all
SELECT pk, col0 FROM tab0
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_870') DROP VIEW view_1_tab0_870

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_870

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_870') DROP VIEW view_2_tab0_870

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_870

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_870') DROP VIEW view_3_tab0_870

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_870

statement ok
CREATE VIEW view_1_tab0_870 AS SELECT pk, col0 FROM tab0 WHERE ((((col4 > 698.8))) OR col0 <= 862 OR (col3 >= 952))

statement ok
CREATE VIEW view_2_tab0_870 AS SELECT pk, col0 FROM tab0 WHERE NOT (((((col4 > 698.8))) OR col0 <= 862 OR (col3 >= 952)))

statement ok
CREATE VIEW view_3_tab0_870 AS SELECT pk FROM view_1_tab0_870

query II rowsort label-0-1
SELECT pk, col0 FROM tab0 WHERE ((((col4 > 698.8))) OR col0 <= 862 OR (col3 >= 952))
----
184 values hashing to 6893e7e354230e83742808c871d61b63

query II rowsort label-0-2
SELECT pk, col0 FROM tab0 WHERE NOT (((((col4 > 698.8))) OR col0 <= 862 OR (col3 >= 952)))
----
16 values hashing to 085bcb6ffb1b797309cc5a5ff665c298

query II rowsort label-0-1
SELECT pk, col0 FROM view_1_tab0_870
----
184 values hashing to 6893e7e354230e83742808c871d61b63

query II rowsort label-0-2
SELECT pk, col0 FROM view_2_tab0_870
----
16 values hashing to 085bcb6ffb1b797309cc5a5ff665c298

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE ((((col4 > 698.8))) OR col0 <= 862 OR (col3 >= 952)) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (((((col4 > 698.8))) OR col0 <= 862 OR (col3 >= 952)))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_870 UNION ALL SELECT pk, col0 FROM view_2_tab0_870
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE ((((col4 > 698.8))) OR col0 <= 862 OR (col3 >= 952)) UNION SELECT pk, col0 FROM tab0 WHERE NOT (((((col4 > 698.8))) OR col0 <= 862 OR (col3 >= 952)))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_870 UNION SELECT pk, col0 FROM view_2_tab0_870
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-0-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE ((((col4 > 698.8))) OR col0 <= 862 OR (col3 >= 952)) ) AS tab0_870
----
92 values hashing to b1e745ce60cff4983836592609391463

query I rowsort label-0-3
SELECT * FROM view_3_tab0_870
----
92 values hashing to b1e745ce60cff4983836592609391463

query I rowsort label-0-3
SELECT pk FROM tab0 WHERE ((((col4 > 698.8))) OR col0 <= 862 OR (col3 >= 952))
----
92 values hashing to b1e745ce60cff4983836592609391463

statement ok
DROP VIEW view_1_tab0_870

statement ok
DROP VIEW view_2_tab0_870

statement ok
DROP VIEW view_3_tab0_870

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_870') DROP VIEW view_1_tab1_870

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_870

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_870') DROP VIEW view_2_tab1_870

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_870

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_870') DROP VIEW view_3_tab1_870

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_870

statement ok
CREATE VIEW view_1_tab1_870 AS SELECT pk, col0 FROM tab1 WHERE ((((col4 > 698.8))) OR col0 <= 862 OR (col3 >= 952))

statement ok
CREATE VIEW view_2_tab1_870 AS SELECT pk, col0 FROM tab1 WHERE NOT (((((col4 > 698.8))) OR col0 <= 862 OR (col3 >= 952)))

statement ok
CREATE VIEW view_3_tab1_870 AS SELECT pk FROM view_1_tab1_870

query II rowsort label-0-1
SELECT pk, col0 FROM tab1 WHERE ((((col4 > 698.8))) OR col0 <= 862 OR (col3 >= 952))
----
184 values hashing to 6893e7e354230e83742808c871d61b63

query II rowsort label-0-2
SELECT pk, col0 FROM tab1 WHERE NOT (((((col4 > 698.8))) OR col0 <= 862 OR (col3 >= 952)))
----
16 values hashing to 085bcb6ffb1b797309cc5a5ff665c298

query II rowsort label-0-1
SELECT pk, col0 FROM view_1_tab1_870
----
184 values hashing to 6893e7e354230e83742808c871d61b63

query II rowsort label-0-2
SELECT pk, col0 FROM view_2_tab1_870
----
16 values hashing to 085bcb6ffb1b797309cc5a5ff665c298

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE ((((col4 > 698.8))) OR col0 <= 862 OR (col3 >= 952)) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (((((col4 > 698.8))) OR col0 <= 862 OR (col3 >= 952)))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_870 UNION ALL SELECT pk, col0 FROM view_2_tab1_870
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE ((((col4 > 698.8))) OR col0 <= 862 OR (col3 >= 952)) UNION SELECT pk, col0 FROM tab1 WHERE NOT (((((col4 > 698.8))) OR col0 <= 862 OR (col3 >= 952)))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_870 UNION SELECT pk, col0 FROM view_2_tab1_870
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-0-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE ((((col4 > 698.8))) OR col0 <= 862 OR (col3 >= 952)) ) AS tab1_870
----
92 values hashing to b1e745ce60cff4983836592609391463

query I rowsort label-0-3
SELECT * FROM view_3_tab1_870
----
92 values hashing to b1e745ce60cff4983836592609391463

query I rowsort label-0-3
SELECT pk FROM tab1 WHERE ((((col4 > 698.8))) OR col0 <= 862 OR (col3 >= 952))
----
92 values hashing to b1e745ce60cff4983836592609391463

statement ok
DROP VIEW view_1_tab1_870

statement ok
DROP VIEW view_2_tab1_870

statement ok
DROP VIEW view_3_tab1_870

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_870') DROP VIEW view_1_tab2_870

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_870

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_870') DROP VIEW view_2_tab2_870

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_870

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_870') DROP VIEW view_3_tab2_870

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_870

statement ok
CREATE VIEW view_1_tab2_870 AS SELECT pk, col0 FROM tab2 WHERE ((((col4 > 698.8))) OR col0 <= 862 OR (col3 >= 952))

statement ok
CREATE VIEW view_2_tab2_870 AS SELECT pk, col0 FROM tab2 WHERE NOT (((((col4 > 698.8))) OR col0 <= 862 OR (col3 >= 952)))

statement ok
CREATE VIEW view_3_tab2_870 AS SELECT pk FROM view_1_tab2_870

query II rowsort label-0-1
SELECT pk, col0 FROM tab2 WHERE ((((col4 > 698.8))) OR col0 <= 862 OR (col3 >= 952))
----
184 values hashing to 6893e7e354230e83742808c871d61b63

query II rowsort label-0-2
SELECT pk, col0 FROM tab2 WHERE NOT (((((col4 > 698.8))) OR col0 <= 862 OR (col3 >= 952)))
----
16 values hashing to 085bcb6ffb1b797309cc5a5ff665c298

query II rowsort label-0-1
SELECT pk, col0 FROM view_1_tab2_870
----
184 values hashing to 6893e7e354230e83742808c871d61b63

query II rowsort label-0-2
SELECT pk, col0 FROM view_2_tab2_870
----
16 values hashing to 085bcb6ffb1b797309cc5a5ff665c298

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE ((((col4 > 698.8))) OR col0 <= 862 OR (col3 >= 952)) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (((((col4 > 698.8))) OR col0 <= 862 OR (col3 >= 952)))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_870 UNION ALL SELECT pk, col0 FROM view_2_tab2_870
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE ((((col4 > 698.8))) OR col0 <= 862 OR (col3 >= 952)) UNION SELECT pk, col0 FROM tab2 WHERE NOT (((((col4 > 698.8))) OR col0 <= 862 OR (col3 >= 952)))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_870 UNION SELECT pk, col0 FROM view_2_tab2_870
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-0-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE ((((col4 > 698.8))) OR col0 <= 862 OR (col3 >= 952)) ) AS tab2_870
----
92 values hashing to b1e745ce60cff4983836592609391463

query I rowsort label-0-3
SELECT * FROM view_3_tab2_870
----
92 values hashing to b1e745ce60cff4983836592609391463

query I rowsort label-0-3
SELECT pk FROM tab2 WHERE ((((col4 > 698.8))) OR col0 <= 862 OR (col3 >= 952))
----
92 values hashing to b1e745ce60cff4983836592609391463

statement ok
DROP VIEW view_1_tab2_870

statement ok
DROP VIEW view_2_tab2_870

statement ok
DROP VIEW view_3_tab2_870

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_870') DROP VIEW view_1_tab3_870

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_870

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_870') DROP VIEW view_2_tab3_870

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_870

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_870') DROP VIEW view_3_tab3_870

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_870

statement ok
CREATE VIEW view_1_tab3_870 AS SELECT pk, col0 FROM tab3 WHERE ((((col4 > 698.8))) OR col0 <= 862 OR (col3 >= 952))

statement ok
CREATE VIEW view_2_tab3_870 AS SELECT pk, col0 FROM tab3 WHERE NOT (((((col4 > 698.8))) OR col0 <= 862 OR (col3 >= 952)))

statement ok
CREATE VIEW view_3_tab3_870 AS SELECT pk FROM view_1_tab3_870

query II rowsort label-0-1
SELECT pk, col0 FROM tab3 WHERE ((((col4 > 698.8))) OR col0 <= 862 OR (col3 >= 952))
----
184 values hashing to 6893e7e354230e83742808c871d61b63

query II rowsort label-0-2
SELECT pk, col0 FROM tab3 WHERE NOT (((((col4 > 698.8))) OR col0 <= 862 OR (col3 >= 952)))
----
16 values hashing to 085bcb6ffb1b797309cc5a5ff665c298

query II rowsort label-0-1
SELECT pk, col0 FROM view_1_tab3_870
----
184 values hashing to 6893e7e354230e83742808c871d61b63

query II rowsort label-0-2
SELECT pk, col0 FROM view_2_tab3_870
----
16 values hashing to 085bcb6ffb1b797309cc5a5ff665c298

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE ((((col4 > 698.8))) OR col0 <= 862 OR (col3 >= 952)) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (((((col4 > 698.8))) OR col0 <= 862 OR (col3 >= 952)))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_870 UNION ALL SELECT pk, col0 FROM view_2_tab3_870
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE ((((col4 > 698.8))) OR col0 <= 862 OR (col3 >= 952)) UNION SELECT pk, col0 FROM tab3 WHERE NOT (((((col4 > 698.8))) OR col0 <= 862 OR (col3 >= 952)))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_870 UNION SELECT pk, col0 FROM view_2_tab3_870
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-0-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE ((((col4 > 698.8))) OR col0 <= 862 OR (col3 >= 952)) ) AS tab3_870
----
92 values hashing to b1e745ce60cff4983836592609391463

query I rowsort label-0-3
SELECT * FROM view_3_tab3_870
----
92 values hashing to b1e745ce60cff4983836592609391463

query I rowsort label-0-3
SELECT pk FROM tab3 WHERE ((((col4 > 698.8))) OR col0 <= 862 OR (col3 >= 952))
----
92 values hashing to b1e745ce60cff4983836592609391463

statement ok
DROP VIEW view_1_tab3_870

statement ok
DROP VIEW view_2_tab3_870

statement ok
DROP VIEW view_3_tab3_870

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_870') DROP VIEW view_1_tab4_870

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_870

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_870') DROP VIEW view_2_tab4_870

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_870

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_870') DROP VIEW view_3_tab4_870

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_870

statement ok
CREATE VIEW view_1_tab4_870 AS SELECT pk, col0 FROM tab4 WHERE ((((col4 > 698.8))) OR col0 <= 862 OR (col3 >= 952))

statement ok
CREATE VIEW view_2_tab4_870 AS SELECT pk, col0 FROM tab4 WHERE NOT (((((col4 > 698.8))) OR col0 <= 862 OR (col3 >= 952)))

statement ok
CREATE VIEW view_3_tab4_870 AS SELECT pk FROM view_1_tab4_870

query II rowsort label-0-1
SELECT pk, col0 FROM tab4 WHERE ((((col4 > 698.8))) OR col0 <= 862 OR (col3 >= 952))
----
184 values hashing to 6893e7e354230e83742808c871d61b63

query II rowsort label-0-2
SELECT pk, col0 FROM tab4 WHERE NOT (((((col4 > 698.8))) OR col0 <= 862 OR (col3 >= 952)))
----
16 values hashing to 085bcb6ffb1b797309cc5a5ff665c298

query II rowsort label-0-1
SELECT pk, col0 FROM view_1_tab4_870
----
184 values hashing to 6893e7e354230e83742808c871d61b63

query II rowsort label-0-2
SELECT pk, col0 FROM view_2_tab4_870
----
16 values hashing to 085bcb6ffb1b797309cc5a5ff665c298

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE ((((col4 > 698.8))) OR col0 <= 862 OR (col3 >= 952)) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (((((col4 > 698.8))) OR col0 <= 862 OR (col3 >= 952)))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_870 UNION ALL SELECT pk, col0 FROM view_2_tab4_870
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE ((((col4 > 698.8))) OR col0 <= 862 OR (col3 >= 952)) UNION SELECT pk, col0 FROM tab4 WHERE NOT (((((col4 > 698.8))) OR col0 <= 862 OR (col3 >= 952)))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_870 UNION SELECT pk, col0 FROM view_2_tab4_870
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-0-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE ((((col4 > 698.8))) OR col0 <= 862 OR (col3 >= 952)) ) AS tab4_870
----
92 values hashing to b1e745ce60cff4983836592609391463

query I rowsort label-0-3
SELECT * FROM view_3_tab4_870
----
92 values hashing to b1e745ce60cff4983836592609391463

query I rowsort label-0-3
SELECT pk FROM tab4 WHERE ((((col4 > 698.8))) OR col0 <= 862 OR (col3 >= 952))
----
92 values hashing to b1e745ce60cff4983836592609391463

statement ok
DROP VIEW view_1_tab4_870

statement ok
DROP VIEW view_2_tab4_870

statement ok
DROP VIEW view_3_tab4_870

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_871') DROP VIEW view_1_tab0_871

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_871

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_871') DROP VIEW view_2_tab0_871

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_871

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_871') DROP VIEW view_3_tab0_871

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_871

statement ok
CREATE VIEW view_1_tab0_871 AS SELECT pk, col0 FROM tab0 WHERE (col3 > 439) AND col3 > 529

statement ok
CREATE VIEW view_2_tab0_871 AS SELECT pk, col0 FROM tab0 WHERE NOT ((col3 > 439) AND col3 > 529)

statement ok
CREATE VIEW view_3_tab0_871 AS SELECT pk FROM view_1_tab0_871

query II rowsort label-100-1
SELECT pk, col0 FROM tab0 WHERE (col3 > 439) AND col3 > 529
----
92 values hashing to fc8d59dd0518112d54f2a0bd63280c6e

query II rowsort label-100-2
SELECT pk, col0 FROM tab0 WHERE NOT ((col3 > 439) AND col3 > 529)
----
108 values hashing to 5ceb54f252d967405b0fe8cb690447fe

query II rowsort label-100-1
SELECT pk, col0 FROM view_1_tab0_871
----
92 values hashing to fc8d59dd0518112d54f2a0bd63280c6e

query II rowsort label-100-2
SELECT pk, col0 FROM view_2_tab0_871
----
108 values hashing to 5ceb54f252d967405b0fe8cb690447fe

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col3 > 439) AND col3 > 529 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT ((col3 > 439) AND col3 > 529)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_871 UNION ALL SELECT pk, col0 FROM view_2_tab0_871
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col3 > 439) AND col3 > 529 UNION SELECT pk, col0 FROM tab0 WHERE NOT ((col3 > 439) AND col3 > 529)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_871 UNION SELECT pk, col0 FROM view_2_tab0_871
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE (col3 > 439) AND col3 > 529 ) AS tab0_871
----
46 values hashing to f238b5cb38f326d95a9b3df92c1be7ed

query I rowsort label-100-3
SELECT * FROM view_3_tab0_871
----
46 values hashing to f238b5cb38f326d95a9b3df92c1be7ed

query I rowsort label-100-3
SELECT pk FROM tab0 WHERE (col3 > 439) AND col3 > 529
----
46 values hashing to f238b5cb38f326d95a9b3df92c1be7ed

statement ok
DROP VIEW view_1_tab0_871

statement ok
DROP VIEW view_2_tab0_871

statement ok
DROP VIEW view_3_tab0_871

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_871') DROP VIEW view_1_tab1_871

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_871

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_871') DROP VIEW view_2_tab1_871

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_871

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_871') DROP VIEW view_3_tab1_871

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_871

statement ok
CREATE VIEW view_1_tab1_871 AS SELECT pk, col0 FROM tab1 WHERE (col3 > 439) AND col3 > 529

statement ok
CREATE VIEW view_2_tab1_871 AS SELECT pk, col0 FROM tab1 WHERE NOT ((col3 > 439) AND col3 > 529)

statement ok
CREATE VIEW view_3_tab1_871 AS SELECT pk FROM view_1_tab1_871

query II rowsort label-100-1
SELECT pk, col0 FROM tab1 WHERE (col3 > 439) AND col3 > 529
----
92 values hashing to fc8d59dd0518112d54f2a0bd63280c6e

query II rowsort label-100-2
SELECT pk, col0 FROM tab1 WHERE NOT ((col3 > 439) AND col3 > 529)
----
108 values hashing to 5ceb54f252d967405b0fe8cb690447fe

query II rowsort label-100-1
SELECT pk, col0 FROM view_1_tab1_871
----
92 values hashing to fc8d59dd0518112d54f2a0bd63280c6e

query II rowsort label-100-2
SELECT pk, col0 FROM view_2_tab1_871
----
108 values hashing to 5ceb54f252d967405b0fe8cb690447fe

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col3 > 439) AND col3 > 529 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT ((col3 > 439) AND col3 > 529)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_871 UNION ALL SELECT pk, col0 FROM view_2_tab1_871
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col3 > 439) AND col3 > 529 UNION SELECT pk, col0 FROM tab1 WHERE NOT ((col3 > 439) AND col3 > 529)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_871 UNION SELECT pk, col0 FROM view_2_tab1_871
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE (col3 > 439) AND col3 > 529 ) AS tab1_871
----
46 values hashing to f238b5cb38f326d95a9b3df92c1be7ed

query I rowsort label-100-3
SELECT * FROM view_3_tab1_871
----
46 values hashing to f238b5cb38f326d95a9b3df92c1be7ed

query I rowsort label-100-3
SELECT pk FROM tab1 WHERE (col3 > 439) AND col3 > 529
----
46 values hashing to f238b5cb38f326d95a9b3df92c1be7ed

statement ok
DROP VIEW view_1_tab1_871

statement ok
DROP VIEW view_2_tab1_871

statement ok
DROP VIEW view_3_tab1_871

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_871') DROP VIEW view_1_tab2_871

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_871

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_871') DROP VIEW view_2_tab2_871

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_871

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_871') DROP VIEW view_3_tab2_871

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_871

statement ok
CREATE VIEW view_1_tab2_871 AS SELECT pk, col0 FROM tab2 WHERE (col3 > 439) AND col3 > 529

statement ok
CREATE VIEW view_2_tab2_871 AS SELECT pk, col0 FROM tab2 WHERE NOT ((col3 > 439) AND col3 > 529)

statement ok
CREATE VIEW view_3_tab2_871 AS SELECT pk FROM view_1_tab2_871

query II rowsort label-100-1
SELECT pk, col0 FROM tab2 WHERE (col3 > 439) AND col3 > 529
----
92 values hashing to fc8d59dd0518112d54f2a0bd63280c6e

query II rowsort label-100-2
SELECT pk, col0 FROM tab2 WHERE NOT ((col3 > 439) AND col3 > 529)
----
108 values hashing to 5ceb54f252d967405b0fe8cb690447fe

query II rowsort label-100-1
SELECT pk, col0 FROM view_1_tab2_871
----
92 values hashing to fc8d59dd0518112d54f2a0bd63280c6e

query II rowsort label-100-2
SELECT pk, col0 FROM view_2_tab2_871
----
108 values hashing to 5ceb54f252d967405b0fe8cb690447fe

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col3 > 439) AND col3 > 529 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT ((col3 > 439) AND col3 > 529)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_871 UNION ALL SELECT pk, col0 FROM view_2_tab2_871
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col3 > 439) AND col3 > 529 UNION SELECT pk, col0 FROM tab2 WHERE NOT ((col3 > 439) AND col3 > 529)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_871 UNION SELECT pk, col0 FROM view_2_tab2_871
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE (col3 > 439) AND col3 > 529 ) AS tab2_871
----
46 values hashing to f238b5cb38f326d95a9b3df92c1be7ed

query I rowsort label-100-3
SELECT * FROM view_3_tab2_871
----
46 values hashing to f238b5cb38f326d95a9b3df92c1be7ed

query I rowsort label-100-3
SELECT pk FROM tab2 WHERE (col3 > 439) AND col3 > 529
----
46 values hashing to f238b5cb38f326d95a9b3df92c1be7ed

statement ok
DROP VIEW view_1_tab2_871

statement ok
DROP VIEW view_2_tab2_871

statement ok
DROP VIEW view_3_tab2_871

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_871') DROP VIEW view_1_tab3_871

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_871

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_871') DROP VIEW view_2_tab3_871

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_871

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_871') DROP VIEW view_3_tab3_871

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_871

statement ok
CREATE VIEW view_1_tab3_871 AS SELECT pk, col0 FROM tab3 WHERE (col3 > 439) AND col3 > 529

statement ok
CREATE VIEW view_2_tab3_871 AS SELECT pk, col0 FROM tab3 WHERE NOT ((col3 > 439) AND col3 > 529)

statement ok
CREATE VIEW view_3_tab3_871 AS SELECT pk FROM view_1_tab3_871

query II rowsort label-100-1
SELECT pk, col0 FROM tab3 WHERE (col3 > 439) AND col3 > 529
----
92 values hashing to fc8d59dd0518112d54f2a0bd63280c6e

query II rowsort label-100-2
SELECT pk, col0 FROM tab3 WHERE NOT ((col3 > 439) AND col3 > 529)
----
108 values hashing to 5ceb54f252d967405b0fe8cb690447fe

query II rowsort label-100-1
SELECT pk, col0 FROM view_1_tab3_871
----
92 values hashing to fc8d59dd0518112d54f2a0bd63280c6e

query II rowsort label-100-2
SELECT pk, col0 FROM view_2_tab3_871
----
108 values hashing to 5ceb54f252d967405b0fe8cb690447fe

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col3 > 439) AND col3 > 529 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT ((col3 > 439) AND col3 > 529)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_871 UNION ALL SELECT pk, col0 FROM view_2_tab3_871
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col3 > 439) AND col3 > 529 UNION SELECT pk, col0 FROM tab3 WHERE NOT ((col3 > 439) AND col3 > 529)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_871 UNION SELECT pk, col0 FROM view_2_tab3_871
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE (col3 > 439) AND col3 > 529 ) AS tab3_871
----
46 values hashing to f238b5cb38f326d95a9b3df92c1be7ed

query I rowsort label-100-3
SELECT * FROM view_3_tab3_871
----
46 values hashing to f238b5cb38f326d95a9b3df92c1be7ed

query I rowsort label-100-3
SELECT pk FROM tab3 WHERE (col3 > 439) AND col3 > 529
----
46 values hashing to f238b5cb38f326d95a9b3df92c1be7ed

statement ok
DROP VIEW view_1_tab3_871

statement ok
DROP VIEW view_2_tab3_871

statement ok
DROP VIEW view_3_tab3_871

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_871') DROP VIEW view_1_tab4_871

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_871

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_871') DROP VIEW view_2_tab4_871

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_871

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_871') DROP VIEW view_3_tab4_871

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_871

statement ok
CREATE VIEW view_1_tab4_871 AS SELECT pk, col0 FROM tab4 WHERE (col3 > 439) AND col3 > 529

statement ok
CREATE VIEW view_2_tab4_871 AS SELECT pk, col0 FROM tab4 WHERE NOT ((col3 > 439) AND col3 > 529)

statement ok
CREATE VIEW view_3_tab4_871 AS SELECT pk FROM view_1_tab4_871

query II rowsort label-100-1
SELECT pk, col0 FROM tab4 WHERE (col3 > 439) AND col3 > 529
----
92 values hashing to fc8d59dd0518112d54f2a0bd63280c6e

query II rowsort label-100-2
SELECT pk, col0 FROM tab4 WHERE NOT ((col3 > 439) AND col3 > 529)
----
108 values hashing to 5ceb54f252d967405b0fe8cb690447fe

query II rowsort label-100-1
SELECT pk, col0 FROM view_1_tab4_871
----
92 values hashing to fc8d59dd0518112d54f2a0bd63280c6e

query II rowsort label-100-2
SELECT pk, col0 FROM view_2_tab4_871
----
108 values hashing to 5ceb54f252d967405b0fe8cb690447fe

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col3 > 439) AND col3 > 529 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT ((col3 > 439) AND col3 > 529)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_871 UNION ALL SELECT pk, col0 FROM view_2_tab4_871
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col3 > 439) AND col3 > 529 UNION SELECT pk, col0 FROM tab4 WHERE NOT ((col3 > 439) AND col3 > 529)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_871 UNION SELECT pk, col0 FROM view_2_tab4_871
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE (col3 > 439) AND col3 > 529 ) AS tab4_871
----
46 values hashing to f238b5cb38f326d95a9b3df92c1be7ed

query I rowsort label-100-3
SELECT * FROM view_3_tab4_871
----
46 values hashing to f238b5cb38f326d95a9b3df92c1be7ed

query I rowsort label-100-3
SELECT pk FROM tab4 WHERE (col3 > 439) AND col3 > 529
----
46 values hashing to f238b5cb38f326d95a9b3df92c1be7ed

statement ok
DROP VIEW view_1_tab4_871

statement ok
DROP VIEW view_2_tab4_871

statement ok
DROP VIEW view_3_tab4_871

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_872') DROP VIEW view_1_tab0_872

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_872

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_872') DROP VIEW view_2_tab0_872

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_872

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_872') DROP VIEW view_3_tab0_872

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_872

statement ok
CREATE VIEW view_1_tab0_872 AS SELECT pk, col0 FROM tab0 WHERE col3 <= 588 OR (col1 <= 3.89)

statement ok
CREATE VIEW view_2_tab0_872 AS SELECT pk, col0 FROM tab0 WHERE NOT (col3 <= 588 OR (col1 <= 3.89))

statement ok
CREATE VIEW view_3_tab0_872 AS SELECT pk FROM view_1_tab0_872

query II rowsort label-200-1
SELECT pk, col0 FROM tab0 WHERE col3 <= 588 OR (col1 <= 3.89)
----
120 values hashing to 9d55a4e2817246e21676e67e6b38139a

query II rowsort label-200-2
SELECT pk, col0 FROM tab0 WHERE NOT (col3 <= 588 OR (col1 <= 3.89))
----
80 values hashing to 58ed194f2d58336e7ec1e0b2c9a50c0c

query II rowsort label-200-1
SELECT pk, col0 FROM view_1_tab0_872
----
120 values hashing to 9d55a4e2817246e21676e67e6b38139a

query II rowsort label-200-2
SELECT pk, col0 FROM view_2_tab0_872
----
80 values hashing to 58ed194f2d58336e7ec1e0b2c9a50c0c

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 <= 588 OR (col1 <= 3.89) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col3 <= 588 OR (col1 <= 3.89))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_872 UNION ALL SELECT pk, col0 FROM view_2_tab0_872
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 <= 588 OR (col1 <= 3.89) UNION SELECT pk, col0 FROM tab0 WHERE NOT (col3 <= 588 OR (col1 <= 3.89))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_872 UNION SELECT pk, col0 FROM view_2_tab0_872
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col3 <= 588 OR (col1 <= 3.89) ) AS tab0_872
----
60 values hashing to 7d59b308c9f4e377f6369e4144bd24d2

query I rowsort label-200-3
SELECT * FROM view_3_tab0_872
----
60 values hashing to 7d59b308c9f4e377f6369e4144bd24d2

query I rowsort label-200-3
SELECT pk FROM tab0 WHERE col3 <= 588 OR (col1 <= 3.89)
----
60 values hashing to 7d59b308c9f4e377f6369e4144bd24d2

statement ok
DROP VIEW view_1_tab0_872

statement ok
DROP VIEW view_2_tab0_872

statement ok
DROP VIEW view_3_tab0_872

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_872') DROP VIEW view_1_tab1_872

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_872

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_872') DROP VIEW view_2_tab1_872

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_872

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_872') DROP VIEW view_3_tab1_872

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_872

statement ok
CREATE VIEW view_1_tab1_872 AS SELECT pk, col0 FROM tab1 WHERE col3 <= 588 OR (col1 <= 3.89)

statement ok
CREATE VIEW view_2_tab1_872 AS SELECT pk, col0 FROM tab1 WHERE NOT (col3 <= 588 OR (col1 <= 3.89))

statement ok
CREATE VIEW view_3_tab1_872 AS SELECT pk FROM view_1_tab1_872

query II rowsort label-200-1
SELECT pk, col0 FROM tab1 WHERE col3 <= 588 OR (col1 <= 3.89)
----
120 values hashing to 9d55a4e2817246e21676e67e6b38139a

query II rowsort label-200-2
SELECT pk, col0 FROM tab1 WHERE NOT (col3 <= 588 OR (col1 <= 3.89))
----
80 values hashing to 58ed194f2d58336e7ec1e0b2c9a50c0c

query II rowsort label-200-1
SELECT pk, col0 FROM view_1_tab1_872
----
120 values hashing to 9d55a4e2817246e21676e67e6b38139a

query II rowsort label-200-2
SELECT pk, col0 FROM view_2_tab1_872
----
80 values hashing to 58ed194f2d58336e7ec1e0b2c9a50c0c

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 <= 588 OR (col1 <= 3.89) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col3 <= 588 OR (col1 <= 3.89))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_872 UNION ALL SELECT pk, col0 FROM view_2_tab1_872
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 <= 588 OR (col1 <= 3.89) UNION SELECT pk, col0 FROM tab1 WHERE NOT (col3 <= 588 OR (col1 <= 3.89))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_872 UNION SELECT pk, col0 FROM view_2_tab1_872
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col3 <= 588 OR (col1 <= 3.89) ) AS tab1_872
----
60 values hashing to 7d59b308c9f4e377f6369e4144bd24d2

query I rowsort label-200-3
SELECT * FROM view_3_tab1_872
----
60 values hashing to 7d59b308c9f4e377f6369e4144bd24d2

query I rowsort label-200-3
SELECT pk FROM tab1 WHERE col3 <= 588 OR (col1 <= 3.89)
----
60 values hashing to 7d59b308c9f4e377f6369e4144bd24d2

statement ok
DROP VIEW view_1_tab1_872

statement ok
DROP VIEW view_2_tab1_872

statement ok
DROP VIEW view_3_tab1_872

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_872') DROP VIEW view_1_tab2_872

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_872

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_872') DROP VIEW view_2_tab2_872

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_872

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_872') DROP VIEW view_3_tab2_872

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_872

statement ok
CREATE VIEW view_1_tab2_872 AS SELECT pk, col0 FROM tab2 WHERE col3 <= 588 OR (col1 <= 3.89)

statement ok
CREATE VIEW view_2_tab2_872 AS SELECT pk, col0 FROM tab2 WHERE NOT (col3 <= 588 OR (col1 <= 3.89))

statement ok
CREATE VIEW view_3_tab2_872 AS SELECT pk FROM view_1_tab2_872

query II rowsort label-200-1
SELECT pk, col0 FROM tab2 WHERE col3 <= 588 OR (col1 <= 3.89)
----
120 values hashing to 9d55a4e2817246e21676e67e6b38139a

query II rowsort label-200-2
SELECT pk, col0 FROM tab2 WHERE NOT (col3 <= 588 OR (col1 <= 3.89))
----
80 values hashing to 58ed194f2d58336e7ec1e0b2c9a50c0c

query II rowsort label-200-1
SELECT pk, col0 FROM view_1_tab2_872
----
120 values hashing to 9d55a4e2817246e21676e67e6b38139a

query II rowsort label-200-2
SELECT pk, col0 FROM view_2_tab2_872
----
80 values hashing to 58ed194f2d58336e7ec1e0b2c9a50c0c

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 <= 588 OR (col1 <= 3.89) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col3 <= 588 OR (col1 <= 3.89))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_872 UNION ALL SELECT pk, col0 FROM view_2_tab2_872
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 <= 588 OR (col1 <= 3.89) UNION SELECT pk, col0 FROM tab2 WHERE NOT (col3 <= 588 OR (col1 <= 3.89))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_872 UNION SELECT pk, col0 FROM view_2_tab2_872
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col3 <= 588 OR (col1 <= 3.89) ) AS tab2_872
----
60 values hashing to 7d59b308c9f4e377f6369e4144bd24d2

query I rowsort label-200-3
SELECT * FROM view_3_tab2_872
----
60 values hashing to 7d59b308c9f4e377f6369e4144bd24d2

query I rowsort label-200-3
SELECT pk FROM tab2 WHERE col3 <= 588 OR (col1 <= 3.89)
----
60 values hashing to 7d59b308c9f4e377f6369e4144bd24d2

statement ok
DROP VIEW view_1_tab2_872

statement ok
DROP VIEW view_2_tab2_872

statement ok
DROP VIEW view_3_tab2_872

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_872') DROP VIEW view_1_tab3_872

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_872

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_872') DROP VIEW view_2_tab3_872

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_872

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_872') DROP VIEW view_3_tab3_872

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_872

statement ok
CREATE VIEW view_1_tab3_872 AS SELECT pk, col0 FROM tab3 WHERE col3 <= 588 OR (col1 <= 3.89)

statement ok
CREATE VIEW view_2_tab3_872 AS SELECT pk, col0 FROM tab3 WHERE NOT (col3 <= 588 OR (col1 <= 3.89))

statement ok
CREATE VIEW view_3_tab3_872 AS SELECT pk FROM view_1_tab3_872

query II rowsort label-200-1
SELECT pk, col0 FROM tab3 WHERE col3 <= 588 OR (col1 <= 3.89)
----
120 values hashing to 9d55a4e2817246e21676e67e6b38139a

query II rowsort label-200-2
SELECT pk, col0 FROM tab3 WHERE NOT (col3 <= 588 OR (col1 <= 3.89))
----
80 values hashing to 58ed194f2d58336e7ec1e0b2c9a50c0c

query II rowsort label-200-1
SELECT pk, col0 FROM view_1_tab3_872
----
120 values hashing to 9d55a4e2817246e21676e67e6b38139a

query II rowsort label-200-2
SELECT pk, col0 FROM view_2_tab3_872
----
80 values hashing to 58ed194f2d58336e7ec1e0b2c9a50c0c

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 <= 588 OR (col1 <= 3.89) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col3 <= 588 OR (col1 <= 3.89))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_872 UNION ALL SELECT pk, col0 FROM view_2_tab3_872
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 <= 588 OR (col1 <= 3.89) UNION SELECT pk, col0 FROM tab3 WHERE NOT (col3 <= 588 OR (col1 <= 3.89))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_872 UNION SELECT pk, col0 FROM view_2_tab3_872
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col3 <= 588 OR (col1 <= 3.89) ) AS tab3_872
----
60 values hashing to 7d59b308c9f4e377f6369e4144bd24d2

query I rowsort label-200-3
SELECT * FROM view_3_tab3_872
----
60 values hashing to 7d59b308c9f4e377f6369e4144bd24d2

query I rowsort label-200-3
SELECT pk FROM tab3 WHERE col3 <= 588 OR (col1 <= 3.89)
----
60 values hashing to 7d59b308c9f4e377f6369e4144bd24d2

statement ok
DROP VIEW view_1_tab3_872

statement ok
DROP VIEW view_2_tab3_872

statement ok
DROP VIEW view_3_tab3_872

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_872') DROP VIEW view_1_tab4_872

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_872

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_872') DROP VIEW view_2_tab4_872

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_872

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_872') DROP VIEW view_3_tab4_872

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_872

statement ok
CREATE VIEW view_1_tab4_872 AS SELECT pk, col0 FROM tab4 WHERE col3 <= 588 OR (col1 <= 3.89)

statement ok
CREATE VIEW view_2_tab4_872 AS SELECT pk, col0 FROM tab4 WHERE NOT (col3 <= 588 OR (col1 <= 3.89))

statement ok
CREATE VIEW view_3_tab4_872 AS SELECT pk FROM view_1_tab4_872

query II rowsort label-200-1
SELECT pk, col0 FROM tab4 WHERE col3 <= 588 OR (col1 <= 3.89)
----
120 values hashing to 9d55a4e2817246e21676e67e6b38139a

query II rowsort label-200-2
SELECT pk, col0 FROM tab4 WHERE NOT (col3 <= 588 OR (col1 <= 3.89))
----
80 values hashing to 58ed194f2d58336e7ec1e0b2c9a50c0c

query II rowsort label-200-1
SELECT pk, col0 FROM view_1_tab4_872
----
120 values hashing to 9d55a4e2817246e21676e67e6b38139a

query II rowsort label-200-2
SELECT pk, col0 FROM view_2_tab4_872
----
80 values hashing to 58ed194f2d58336e7ec1e0b2c9a50c0c

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 <= 588 OR (col1 <= 3.89) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col3 <= 588 OR (col1 <= 3.89))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_872 UNION ALL SELECT pk, col0 FROM view_2_tab4_872
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 <= 588 OR (col1 <= 3.89) UNION SELECT pk, col0 FROM tab4 WHERE NOT (col3 <= 588 OR (col1 <= 3.89))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_872 UNION SELECT pk, col0 FROM view_2_tab4_872
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col3 <= 588 OR (col1 <= 3.89) ) AS tab4_872
----
60 values hashing to 7d59b308c9f4e377f6369e4144bd24d2

query I rowsort label-200-3
SELECT * FROM view_3_tab4_872
----
60 values hashing to 7d59b308c9f4e377f6369e4144bd24d2

query I rowsort label-200-3
SELECT pk FROM tab4 WHERE col3 <= 588 OR (col1 <= 3.89)
----
60 values hashing to 7d59b308c9f4e377f6369e4144bd24d2

statement ok
DROP VIEW view_1_tab4_872

statement ok
DROP VIEW view_2_tab4_872

statement ok
DROP VIEW view_3_tab4_872

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_873') DROP VIEW view_1_tab0_873

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_873

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_873') DROP VIEW view_2_tab0_873

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_873

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_873') DROP VIEW view_3_tab0_873

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_873

statement ok
CREATE VIEW view_1_tab0_873 AS SELECT pk, col0 FROM tab0 WHERE col0 > 649

statement ok
CREATE VIEW view_2_tab0_873 AS SELECT pk, col0 FROM tab0 WHERE NOT (col0 > 649)

statement ok
CREATE VIEW view_3_tab0_873 AS SELECT pk FROM view_1_tab0_873

query II rowsort label-300-1
SELECT pk, col0 FROM tab0 WHERE col0 > 649
----
80 values hashing to 91b4d90966f4bacd472aa422ced5020f

query II rowsort label-300-2
SELECT pk, col0 FROM tab0 WHERE NOT (col0 > 649)
----
120 values hashing to 1076dfa77e00e33d38501be0422160b3

query II rowsort label-300-1
SELECT pk, col0 FROM view_1_tab0_873
----
80 values hashing to 91b4d90966f4bacd472aa422ced5020f

query II rowsort label-300-2
SELECT pk, col0 FROM view_2_tab0_873
----
120 values hashing to 1076dfa77e00e33d38501be0422160b3

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col0 > 649 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col0 > 649)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_873 UNION ALL SELECT pk, col0 FROM view_2_tab0_873
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col0 > 649 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col0 > 649)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_873 UNION SELECT pk, col0 FROM view_2_tab0_873
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col0 > 649 ) AS tab0_873
----
40 values hashing to 9c8b56e8c08fb7a96735dc48f20e81f8

query I rowsort label-300-3
SELECT * FROM view_3_tab0_873
----
40 values hashing to 9c8b56e8c08fb7a96735dc48f20e81f8

query I rowsort label-300-3
SELECT pk FROM tab0 WHERE col0 > 649
----
40 values hashing to 9c8b56e8c08fb7a96735dc48f20e81f8

statement ok
DROP VIEW view_1_tab0_873

statement ok
DROP VIEW view_2_tab0_873

statement ok
DROP VIEW view_3_tab0_873

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_873') DROP VIEW view_1_tab1_873

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_873

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_873') DROP VIEW view_2_tab1_873

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_873

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_873') DROP VIEW view_3_tab1_873

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_873

statement ok
CREATE VIEW view_1_tab1_873 AS SELECT pk, col0 FROM tab1 WHERE col0 > 649

statement ok
CREATE VIEW view_2_tab1_873 AS SELECT pk, col0 FROM tab1 WHERE NOT (col0 > 649)

statement ok
CREATE VIEW view_3_tab1_873 AS SELECT pk FROM view_1_tab1_873

query II rowsort label-300-1
SELECT pk, col0 FROM tab1 WHERE col0 > 649
----
80 values hashing to 91b4d90966f4bacd472aa422ced5020f

query II rowsort label-300-2
SELECT pk, col0 FROM tab1 WHERE NOT (col0 > 649)
----
120 values hashing to 1076dfa77e00e33d38501be0422160b3

query II rowsort label-300-1
SELECT pk, col0 FROM view_1_tab1_873
----
80 values hashing to 91b4d90966f4bacd472aa422ced5020f

query II rowsort label-300-2
SELECT pk, col0 FROM view_2_tab1_873
----
120 values hashing to 1076dfa77e00e33d38501be0422160b3

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col0 > 649 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col0 > 649)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_873 UNION ALL SELECT pk, col0 FROM view_2_tab1_873
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col0 > 649 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col0 > 649)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_873 UNION SELECT pk, col0 FROM view_2_tab1_873
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col0 > 649 ) AS tab1_873
----
40 values hashing to 9c8b56e8c08fb7a96735dc48f20e81f8

query I rowsort label-300-3
SELECT * FROM view_3_tab1_873
----
40 values hashing to 9c8b56e8c08fb7a96735dc48f20e81f8

query I rowsort label-300-3
SELECT pk FROM tab1 WHERE col0 > 649
----
40 values hashing to 9c8b56e8c08fb7a96735dc48f20e81f8

statement ok
DROP VIEW view_1_tab1_873

statement ok
DROP VIEW view_2_tab1_873

statement ok
DROP VIEW view_3_tab1_873

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_873') DROP VIEW view_1_tab2_873

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_873

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_873') DROP VIEW view_2_tab2_873

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_873

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_873') DROP VIEW view_3_tab2_873

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_873

statement ok
CREATE VIEW view_1_tab2_873 AS SELECT pk, col0 FROM tab2 WHERE col0 > 649

statement ok
CREATE VIEW view_2_tab2_873 AS SELECT pk, col0 FROM tab2 WHERE NOT (col0 > 649)

statement ok
CREATE VIEW view_3_tab2_873 AS SELECT pk FROM view_1_tab2_873

query II rowsort label-300-1
SELECT pk, col0 FROM tab2 WHERE col0 > 649
----
80 values hashing to 91b4d90966f4bacd472aa422ced5020f

query II rowsort label-300-2
SELECT pk, col0 FROM tab2 WHERE NOT (col0 > 649)
----
120 values hashing to 1076dfa77e00e33d38501be0422160b3

query II rowsort label-300-1
SELECT pk, col0 FROM view_1_tab2_873
----
80 values hashing to 91b4d90966f4bacd472aa422ced5020f

query II rowsort label-300-2
SELECT pk, col0 FROM view_2_tab2_873
----
120 values hashing to 1076dfa77e00e33d38501be0422160b3

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col0 > 649 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col0 > 649)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_873 UNION ALL SELECT pk, col0 FROM view_2_tab2_873
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col0 > 649 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col0 > 649)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_873 UNION SELECT pk, col0 FROM view_2_tab2_873
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col0 > 649 ) AS tab2_873
----
40 values hashing to 9c8b56e8c08fb7a96735dc48f20e81f8

query I rowsort label-300-3
SELECT * FROM view_3_tab2_873
----
40 values hashing to 9c8b56e8c08fb7a96735dc48f20e81f8

query I rowsort label-300-3
SELECT pk FROM tab2 WHERE col0 > 649
----
40 values hashing to 9c8b56e8c08fb7a96735dc48f20e81f8

statement ok
DROP VIEW view_1_tab2_873

statement ok
DROP VIEW view_2_tab2_873

statement ok
DROP VIEW view_3_tab2_873

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_873') DROP VIEW view_1_tab3_873

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_873

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_873') DROP VIEW view_2_tab3_873

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_873

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_873') DROP VIEW view_3_tab3_873

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_873

statement ok
CREATE VIEW view_1_tab3_873 AS SELECT pk, col0 FROM tab3 WHERE col0 > 649

statement ok
CREATE VIEW view_2_tab3_873 AS SELECT pk, col0 FROM tab3 WHERE NOT (col0 > 649)

statement ok
CREATE VIEW view_3_tab3_873 AS SELECT pk FROM view_1_tab3_873

query II rowsort label-300-1
SELECT pk, col0 FROM tab3 WHERE col0 > 649
----
80 values hashing to 91b4d90966f4bacd472aa422ced5020f

query II rowsort label-300-2
SELECT pk, col0 FROM tab3 WHERE NOT (col0 > 649)
----
120 values hashing to 1076dfa77e00e33d38501be0422160b3

query II rowsort label-300-1
SELECT pk, col0 FROM view_1_tab3_873
----
80 values hashing to 91b4d90966f4bacd472aa422ced5020f

query II rowsort label-300-2
SELECT pk, col0 FROM view_2_tab3_873
----
120 values hashing to 1076dfa77e00e33d38501be0422160b3

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col0 > 649 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col0 > 649)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_873 UNION ALL SELECT pk, col0 FROM view_2_tab3_873
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col0 > 649 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col0 > 649)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_873 UNION SELECT pk, col0 FROM view_2_tab3_873
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col0 > 649 ) AS tab3_873
----
40 values hashing to 9c8b56e8c08fb7a96735dc48f20e81f8

query I rowsort label-300-3
SELECT * FROM view_3_tab3_873
----
40 values hashing to 9c8b56e8c08fb7a96735dc48f20e81f8

query I rowsort label-300-3
SELECT pk FROM tab3 WHERE col0 > 649
----
40 values hashing to 9c8b56e8c08fb7a96735dc48f20e81f8

statement ok
DROP VIEW view_1_tab3_873

statement ok
DROP VIEW view_2_tab3_873

statement ok
DROP VIEW view_3_tab3_873

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_873') DROP VIEW view_1_tab4_873

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_873

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_873') DROP VIEW view_2_tab4_873

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_873

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_873') DROP VIEW view_3_tab4_873

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_873

statement ok
CREATE VIEW view_1_tab4_873 AS SELECT pk, col0 FROM tab4 WHERE col0 > 649

statement ok
CREATE VIEW view_2_tab4_873 AS SELECT pk, col0 FROM tab4 WHERE NOT (col0 > 649)

statement ok
CREATE VIEW view_3_tab4_873 AS SELECT pk FROM view_1_tab4_873

query II rowsort label-300-1
SELECT pk, col0 FROM tab4 WHERE col0 > 649
----
80 values hashing to 91b4d90966f4bacd472aa422ced5020f

query II rowsort label-300-2
SELECT pk, col0 FROM tab4 WHERE NOT (col0 > 649)
----
120 values hashing to 1076dfa77e00e33d38501be0422160b3

query II rowsort label-300-1
SELECT pk, col0 FROM view_1_tab4_873
----
80 values hashing to 91b4d90966f4bacd472aa422ced5020f

query II rowsort label-300-2
SELECT pk, col0 FROM view_2_tab4_873
----
120 values hashing to 1076dfa77e00e33d38501be0422160b3

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col0 > 649 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col0 > 649)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_873 UNION ALL SELECT pk, col0 FROM view_2_tab4_873
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col0 > 649 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col0 > 649)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_873 UNION SELECT pk, col0 FROM view_2_tab4_873
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col0 > 649 ) AS tab4_873
----
40 values hashing to 9c8b56e8c08fb7a96735dc48f20e81f8

query I rowsort label-300-3
SELECT * FROM view_3_tab4_873
----
40 values hashing to 9c8b56e8c08fb7a96735dc48f20e81f8

query I rowsort label-300-3
SELECT pk FROM tab4 WHERE col0 > 649
----
40 values hashing to 9c8b56e8c08fb7a96735dc48f20e81f8

statement ok
DROP VIEW view_1_tab4_873

statement ok
DROP VIEW view_2_tab4_873

statement ok
DROP VIEW view_3_tab4_873

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_874') DROP VIEW view_1_tab0_874

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_874

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_874') DROP VIEW view_2_tab0_874

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_874

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_874') DROP VIEW view_3_tab0_874

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_874

statement ok
CREATE VIEW view_1_tab0_874 AS SELECT pk, col0 FROM tab0 WHERE col0 > 528

statement ok
CREATE VIEW view_2_tab0_874 AS SELECT pk, col0 FROM tab0 WHERE NOT (col0 > 528)

statement ok
CREATE VIEW view_3_tab0_874 AS SELECT pk FROM view_1_tab0_874

query II rowsort label-400-1
SELECT pk, col0 FROM tab0 WHERE col0 > 528
----
108 values hashing to 6b07d35bb7d2ae0a784439bafef931a5

query II rowsort label-400-2
SELECT pk, col0 FROM tab0 WHERE NOT (col0 > 528)
----
92 values hashing to f1a25850f4007f952948919c953c6909

query II rowsort label-400-1
SELECT pk, col0 FROM view_1_tab0_874
----
108 values hashing to 6b07d35bb7d2ae0a784439bafef931a5

query II rowsort label-400-2
SELECT pk, col0 FROM view_2_tab0_874
----
92 values hashing to f1a25850f4007f952948919c953c6909

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col0 > 528 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col0 > 528)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_874 UNION ALL SELECT pk, col0 FROM view_2_tab0_874
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col0 > 528 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col0 > 528)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_874 UNION SELECT pk, col0 FROM view_2_tab0_874
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col0 > 528 ) AS tab0_874
----
54 values hashing to 3a65448d8469474da37dd9c8f4b02879

query I rowsort label-400-3
SELECT * FROM view_3_tab0_874
----
54 values hashing to 3a65448d8469474da37dd9c8f4b02879

query I rowsort label-400-3
SELECT pk FROM tab0 WHERE col0 > 528
----
54 values hashing to 3a65448d8469474da37dd9c8f4b02879

statement ok
DROP VIEW view_1_tab0_874

statement ok
DROP VIEW view_2_tab0_874

statement ok
DROP VIEW view_3_tab0_874

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_874') DROP VIEW view_1_tab1_874

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_874

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_874') DROP VIEW view_2_tab1_874

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_874

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_874') DROP VIEW view_3_tab1_874

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_874

statement ok
CREATE VIEW view_1_tab1_874 AS SELECT pk, col0 FROM tab1 WHERE col0 > 528

statement ok
CREATE VIEW view_2_tab1_874 AS SELECT pk, col0 FROM tab1 WHERE NOT (col0 > 528)

statement ok
CREATE VIEW view_3_tab1_874 AS SELECT pk FROM view_1_tab1_874

query II rowsort label-400-1
SELECT pk, col0 FROM tab1 WHERE col0 > 528
----
108 values hashing to 6b07d35bb7d2ae0a784439bafef931a5

query II rowsort label-400-2
SELECT pk, col0 FROM tab1 WHERE NOT (col0 > 528)
----
92 values hashing to f1a25850f4007f952948919c953c6909

query II rowsort label-400-1
SELECT pk, col0 FROM view_1_tab1_874
----
108 values hashing to 6b07d35bb7d2ae0a784439bafef931a5

query II rowsort label-400-2
SELECT pk, col0 FROM view_2_tab1_874
----
92 values hashing to f1a25850f4007f952948919c953c6909

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col0 > 528 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col0 > 528)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_874 UNION ALL SELECT pk, col0 FROM view_2_tab1_874
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col0 > 528 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col0 > 528)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_874 UNION SELECT pk, col0 FROM view_2_tab1_874
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col0 > 528 ) AS tab1_874
----
54 values hashing to 3a65448d8469474da37dd9c8f4b02879

query I rowsort label-400-3
SELECT * FROM view_3_tab1_874
----
54 values hashing to 3a65448d8469474da37dd9c8f4b02879

query I rowsort label-400-3
SELECT pk FROM tab1 WHERE col0 > 528
----
54 values hashing to 3a65448d8469474da37dd9c8f4b02879

statement ok
DROP VIEW view_1_tab1_874

statement ok
DROP VIEW view_2_tab1_874

statement ok
DROP VIEW view_3_tab1_874

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_874') DROP VIEW view_1_tab2_874

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_874

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_874') DROP VIEW view_2_tab2_874

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_874

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_874') DROP VIEW view_3_tab2_874

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_874

statement ok
CREATE VIEW view_1_tab2_874 AS SELECT pk, col0 FROM tab2 WHERE col0 > 528

statement ok
CREATE VIEW view_2_tab2_874 AS SELECT pk, col0 FROM tab2 WHERE NOT (col0 > 528)

statement ok
CREATE VIEW view_3_tab2_874 AS SELECT pk FROM view_1_tab2_874

query II rowsort label-400-1
SELECT pk, col0 FROM tab2 WHERE col0 > 528
----
108 values hashing to 6b07d35bb7d2ae0a784439bafef931a5

query II rowsort label-400-2
SELECT pk, col0 FROM tab2 WHERE NOT (col0 > 528)
----
92 values hashing to f1a25850f4007f952948919c953c6909

query II rowsort label-400-1
SELECT pk, col0 FROM view_1_tab2_874
----
108 values hashing to 6b07d35bb7d2ae0a784439bafef931a5

query II rowsort label-400-2
SELECT pk, col0 FROM view_2_tab2_874
----
92 values hashing to f1a25850f4007f952948919c953c6909

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col0 > 528 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col0 > 528)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_874 UNION ALL SELECT pk, col0 FROM view_2_tab2_874
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col0 > 528 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col0 > 528)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_874 UNION SELECT pk, col0 FROM view_2_tab2_874
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col0 > 528 ) AS tab2_874
----
54 values hashing to 3a65448d8469474da37dd9c8f4b02879

query I rowsort label-400-3
SELECT * FROM view_3_tab2_874
----
54 values hashing to 3a65448d8469474da37dd9c8f4b02879

query I rowsort label-400-3
SELECT pk FROM tab2 WHERE col0 > 528
----
54 values hashing to 3a65448d8469474da37dd9c8f4b02879

statement ok
DROP VIEW view_1_tab2_874

statement ok
DROP VIEW view_2_tab2_874

statement ok
DROP VIEW view_3_tab2_874

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_874') DROP VIEW view_1_tab3_874

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_874

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_874') DROP VIEW view_2_tab3_874

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_874

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_874') DROP VIEW view_3_tab3_874

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_874

statement ok
CREATE VIEW view_1_tab3_874 AS SELECT pk, col0 FROM tab3 WHERE col0 > 528

statement ok
CREATE VIEW view_2_tab3_874 AS SELECT pk, col0 FROM tab3 WHERE NOT (col0 > 528)

statement ok
CREATE VIEW view_3_tab3_874 AS SELECT pk FROM view_1_tab3_874

query II rowsort label-400-1
SELECT pk, col0 FROM tab3 WHERE col0 > 528
----
108 values hashing to 6b07d35bb7d2ae0a784439bafef931a5

query II rowsort label-400-2
SELECT pk, col0 FROM tab3 WHERE NOT (col0 > 528)
----
92 values hashing to f1a25850f4007f952948919c953c6909

query II rowsort label-400-1
SELECT pk, col0 FROM view_1_tab3_874
----
108 values hashing to 6b07d35bb7d2ae0a784439bafef931a5

query II rowsort label-400-2
SELECT pk, col0 FROM view_2_tab3_874
----
92 values hashing to f1a25850f4007f952948919c953c6909

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col0 > 528 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col0 > 528)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_874 UNION ALL SELECT pk, col0 FROM view_2_tab3_874
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col0 > 528 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col0 > 528)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_874 UNION SELECT pk, col0 FROM view_2_tab3_874
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col0 > 528 ) AS tab3_874
----
54 values hashing to 3a65448d8469474da37dd9c8f4b02879

query I rowsort label-400-3
SELECT * FROM view_3_tab3_874
----
54 values hashing to 3a65448d8469474da37dd9c8f4b02879

query I rowsort label-400-3
SELECT pk FROM tab3 WHERE col0 > 528
----
54 values hashing to 3a65448d8469474da37dd9c8f4b02879

statement ok
DROP VIEW view_1_tab3_874

statement ok
DROP VIEW view_2_tab3_874

statement ok
DROP VIEW view_3_tab3_874

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_874') DROP VIEW view_1_tab4_874

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_874

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_874') DROP VIEW view_2_tab4_874

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_874

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_874') DROP VIEW view_3_tab4_874

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_874

statement ok
CREATE VIEW view_1_tab4_874 AS SELECT pk, col0 FROM tab4 WHERE col0 > 528

statement ok
CREATE VIEW view_2_tab4_874 AS SELECT pk, col0 FROM tab4 WHERE NOT (col0 > 528)

statement ok
CREATE VIEW view_3_tab4_874 AS SELECT pk FROM view_1_tab4_874

query II rowsort label-400-1
SELECT pk, col0 FROM tab4 WHERE col0 > 528
----
108 values hashing to 6b07d35bb7d2ae0a784439bafef931a5

query II rowsort label-400-2
SELECT pk, col0 FROM tab4 WHERE NOT (col0 > 528)
----
92 values hashing to f1a25850f4007f952948919c953c6909

query II rowsort label-400-1
SELECT pk, col0 FROM view_1_tab4_874
----
108 values hashing to 6b07d35bb7d2ae0a784439bafef931a5

query II rowsort label-400-2
SELECT pk, col0 FROM view_2_tab4_874
----
92 values hashing to f1a25850f4007f952948919c953c6909

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col0 > 528 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col0 > 528)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_874 UNION ALL SELECT pk, col0 FROM view_2_tab4_874
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col0 > 528 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col0 > 528)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_874 UNION SELECT pk, col0 FROM view_2_tab4_874
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col0 > 528 ) AS tab4_874
----
54 values hashing to 3a65448d8469474da37dd9c8f4b02879

query I rowsort label-400-3
SELECT * FROM view_3_tab4_874
----
54 values hashing to 3a65448d8469474da37dd9c8f4b02879

query I rowsort label-400-3
SELECT pk FROM tab4 WHERE col0 > 528
----
54 values hashing to 3a65448d8469474da37dd9c8f4b02879

statement ok
DROP VIEW view_1_tab4_874

statement ok
DROP VIEW view_2_tab4_874

statement ok
DROP VIEW view_3_tab4_874

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_875') DROP VIEW view_1_tab0_875

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_875

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_875') DROP VIEW view_2_tab0_875

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_875

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_875') DROP VIEW view_3_tab0_875

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_875

statement ok
CREATE VIEW view_1_tab0_875 AS SELECT pk, col0 FROM tab0 WHERE col4 < 247.66 OR col4 IS NULL

statement ok
CREATE VIEW view_2_tab0_875 AS SELECT pk, col0 FROM tab0 WHERE NOT (col4 < 247.66 OR col4 IS NULL)

statement ok
CREATE VIEW view_3_tab0_875 AS SELECT pk FROM view_1_tab0_875

query II rowsort label-500-1
SELECT pk, col0 FROM tab0 WHERE col4 < 247.66 OR col4 IS NULL
----
62 values hashing to 412df6f4afbd9403ea02b883436daaf5

query II rowsort label-500-2
SELECT pk, col0 FROM tab0 WHERE NOT (col4 < 247.66 OR col4 IS NULL)
----
138 values hashing to f106acf046ea5c2cba8f59909228774a

query II rowsort label-500-1
SELECT pk, col0 FROM view_1_tab0_875
----
62 values hashing to 412df6f4afbd9403ea02b883436daaf5

query II rowsort label-500-2
SELECT pk, col0 FROM view_2_tab0_875
----
138 values hashing to f106acf046ea5c2cba8f59909228774a

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col4 < 247.66 OR col4 IS NULL UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col4 < 247.66 OR col4 IS NULL)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_875 UNION ALL SELECT pk, col0 FROM view_2_tab0_875
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col4 < 247.66 OR col4 IS NULL UNION SELECT pk, col0 FROM tab0 WHERE NOT (col4 < 247.66 OR col4 IS NULL)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_875 UNION SELECT pk, col0 FROM view_2_tab0_875
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col4 < 247.66 OR col4 IS NULL ) AS tab0_875
----
31 values hashing to 8c154aaa2025133fa0c050e832ccc9e1

query I rowsort label-500-3
SELECT * FROM view_3_tab0_875
----
31 values hashing to 8c154aaa2025133fa0c050e832ccc9e1

query I rowsort label-500-3
SELECT pk FROM tab0 WHERE col4 < 247.66 OR col4 IS NULL
----
31 values hashing to 8c154aaa2025133fa0c050e832ccc9e1

statement ok
DROP VIEW view_1_tab0_875

statement ok
DROP VIEW view_2_tab0_875

statement ok
DROP VIEW view_3_tab0_875

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_875') DROP VIEW view_1_tab1_875

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_875

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_875') DROP VIEW view_2_tab1_875

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_875

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_875') DROP VIEW view_3_tab1_875

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_875

statement ok
CREATE VIEW view_1_tab1_875 AS SELECT pk, col0 FROM tab1 WHERE col4 < 247.66 OR col4 IS NULL

statement ok
CREATE VIEW view_2_tab1_875 AS SELECT pk, col0 FROM tab1 WHERE NOT (col4 < 247.66 OR col4 IS NULL)

statement ok
CREATE VIEW view_3_tab1_875 AS SELECT pk FROM view_1_tab1_875

query II rowsort label-500-1
SELECT pk, col0 FROM tab1 WHERE col4 < 247.66 OR col4 IS NULL
----
62 values hashing to 412df6f4afbd9403ea02b883436daaf5

query II rowsort label-500-2
SELECT pk, col0 FROM tab1 WHERE NOT (col4 < 247.66 OR col4 IS NULL)
----
138 values hashing to f106acf046ea5c2cba8f59909228774a

query II rowsort label-500-1
SELECT pk, col0 FROM view_1_tab1_875
----
62 values hashing to 412df6f4afbd9403ea02b883436daaf5

query II rowsort label-500-2
SELECT pk, col0 FROM view_2_tab1_875
----
138 values hashing to f106acf046ea5c2cba8f59909228774a

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col4 < 247.66 OR col4 IS NULL UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col4 < 247.66 OR col4 IS NULL)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_875 UNION ALL SELECT pk, col0 FROM view_2_tab1_875
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col4 < 247.66 OR col4 IS NULL UNION SELECT pk, col0 FROM tab1 WHERE NOT (col4 < 247.66 OR col4 IS NULL)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_875 UNION SELECT pk, col0 FROM view_2_tab1_875
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col4 < 247.66 OR col4 IS NULL ) AS tab1_875
----
31 values hashing to 8c154aaa2025133fa0c050e832ccc9e1

query I rowsort label-500-3
SELECT * FROM view_3_tab1_875
----
31 values hashing to 8c154aaa2025133fa0c050e832ccc9e1

query I rowsort label-500-3
SELECT pk FROM tab1 WHERE col4 < 247.66 OR col4 IS NULL
----
31 values hashing to 8c154aaa2025133fa0c050e832ccc9e1

statement ok
DROP VIEW view_1_tab1_875

statement ok
DROP VIEW view_2_tab1_875

statement ok
DROP VIEW view_3_tab1_875

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_875') DROP VIEW view_1_tab2_875

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_875

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_875') DROP VIEW view_2_tab2_875

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_875

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_875') DROP VIEW view_3_tab2_875

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_875

statement ok
CREATE VIEW view_1_tab2_875 AS SELECT pk, col0 FROM tab2 WHERE col4 < 247.66 OR col4 IS NULL

statement ok
CREATE VIEW view_2_tab2_875 AS SELECT pk, col0 FROM tab2 WHERE NOT (col4 < 247.66 OR col4 IS NULL)

statement ok
CREATE VIEW view_3_tab2_875 AS SELECT pk FROM view_1_tab2_875

query II rowsort label-500-1
SELECT pk, col0 FROM tab2 WHERE col4 < 247.66 OR col4 IS NULL
----
62 values hashing to 412df6f4afbd9403ea02b883436daaf5

query II rowsort label-500-2
SELECT pk, col0 FROM tab2 WHERE NOT (col4 < 247.66 OR col4 IS NULL)
----
138 values hashing to f106acf046ea5c2cba8f59909228774a

query II rowsort label-500-1
SELECT pk, col0 FROM view_1_tab2_875
----
62 values hashing to 412df6f4afbd9403ea02b883436daaf5

query II rowsort label-500-2
SELECT pk, col0 FROM view_2_tab2_875
----
138 values hashing to f106acf046ea5c2cba8f59909228774a

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col4 < 247.66 OR col4 IS NULL UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col4 < 247.66 OR col4 IS NULL)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_875 UNION ALL SELECT pk, col0 FROM view_2_tab2_875
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col4 < 247.66 OR col4 IS NULL UNION SELECT pk, col0 FROM tab2 WHERE NOT (col4 < 247.66 OR col4 IS NULL)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_875 UNION SELECT pk, col0 FROM view_2_tab2_875
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col4 < 247.66 OR col4 IS NULL ) AS tab2_875
----
31 values hashing to 8c154aaa2025133fa0c050e832ccc9e1

query I rowsort label-500-3
SELECT * FROM view_3_tab2_875
----
31 values hashing to 8c154aaa2025133fa0c050e832ccc9e1

query I rowsort label-500-3
SELECT pk FROM tab2 WHERE col4 < 247.66 OR col4 IS NULL
----
31 values hashing to 8c154aaa2025133fa0c050e832ccc9e1

statement ok
DROP VIEW view_1_tab2_875

statement ok
DROP VIEW view_2_tab2_875

statement ok
DROP VIEW view_3_tab2_875

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_875') DROP VIEW view_1_tab3_875

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_875

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_875') DROP VIEW view_2_tab3_875

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_875

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_875') DROP VIEW view_3_tab3_875

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_875

statement ok
CREATE VIEW view_1_tab3_875 AS SELECT pk, col0 FROM tab3 WHERE col4 < 247.66 OR col4 IS NULL

statement ok
CREATE VIEW view_2_tab3_875 AS SELECT pk, col0 FROM tab3 WHERE NOT (col4 < 247.66 OR col4 IS NULL)

statement ok
CREATE VIEW view_3_tab3_875 AS SELECT pk FROM view_1_tab3_875

query II rowsort label-500-1
SELECT pk, col0 FROM tab3 WHERE col4 < 247.66 OR col4 IS NULL
----
62 values hashing to 412df6f4afbd9403ea02b883436daaf5

query II rowsort label-500-2
SELECT pk, col0 FROM tab3 WHERE NOT (col4 < 247.66 OR col4 IS NULL)
----
138 values hashing to f106acf046ea5c2cba8f59909228774a

query II rowsort label-500-1
SELECT pk, col0 FROM view_1_tab3_875
----
62 values hashing to 412df6f4afbd9403ea02b883436daaf5

query II rowsort label-500-2
SELECT pk, col0 FROM view_2_tab3_875
----
138 values hashing to f106acf046ea5c2cba8f59909228774a

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col4 < 247.66 OR col4 IS NULL UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col4 < 247.66 OR col4 IS NULL)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_875 UNION ALL SELECT pk, col0 FROM view_2_tab3_875
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col4 < 247.66 OR col4 IS NULL UNION SELECT pk, col0 FROM tab3 WHERE NOT (col4 < 247.66 OR col4 IS NULL)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_875 UNION SELECT pk, col0 FROM view_2_tab3_875
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col4 < 247.66 OR col4 IS NULL ) AS tab3_875
----
31 values hashing to 8c154aaa2025133fa0c050e832ccc9e1

query I rowsort label-500-3
SELECT * FROM view_3_tab3_875
----
31 values hashing to 8c154aaa2025133fa0c050e832ccc9e1

query I rowsort label-500-3
SELECT pk FROM tab3 WHERE col4 < 247.66 OR col4 IS NULL
----
31 values hashing to 8c154aaa2025133fa0c050e832ccc9e1

statement ok
DROP VIEW view_1_tab3_875

statement ok
DROP VIEW view_2_tab3_875

statement ok
DROP VIEW view_3_tab3_875

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_875') DROP VIEW view_1_tab4_875

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_875

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_875') DROP VIEW view_2_tab4_875

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_875

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_875') DROP VIEW view_3_tab4_875

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_875

statement ok
CREATE VIEW view_1_tab4_875 AS SELECT pk, col0 FROM tab4 WHERE col4 < 247.66 OR col4 IS NULL

statement ok
CREATE VIEW view_2_tab4_875 AS SELECT pk, col0 FROM tab4 WHERE NOT (col4 < 247.66 OR col4 IS NULL)

statement ok
CREATE VIEW view_3_tab4_875 AS SELECT pk FROM view_1_tab4_875

query II rowsort label-500-1
SELECT pk, col0 FROM tab4 WHERE col4 < 247.66 OR col4 IS NULL
----
62 values hashing to 412df6f4afbd9403ea02b883436daaf5

query II rowsort label-500-2
SELECT pk, col0 FROM tab4 WHERE NOT (col4 < 247.66 OR col4 IS NULL)
----
138 values hashing to f106acf046ea5c2cba8f59909228774a

query II rowsort label-500-1
SELECT pk, col0 FROM view_1_tab4_875
----
62 values hashing to 412df6f4afbd9403ea02b883436daaf5

query II rowsort label-500-2
SELECT pk, col0 FROM view_2_tab4_875
----
138 values hashing to f106acf046ea5c2cba8f59909228774a

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col4 < 247.66 OR col4 IS NULL UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col4 < 247.66 OR col4 IS NULL)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_875 UNION ALL SELECT pk, col0 FROM view_2_tab4_875
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col4 < 247.66 OR col4 IS NULL UNION SELECT pk, col0 FROM tab4 WHERE NOT (col4 < 247.66 OR col4 IS NULL)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_875 UNION SELECT pk, col0 FROM view_2_tab4_875
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col4 < 247.66 OR col4 IS NULL ) AS tab4_875
----
31 values hashing to 8c154aaa2025133fa0c050e832ccc9e1

query I rowsort label-500-3
SELECT * FROM view_3_tab4_875
----
31 values hashing to 8c154aaa2025133fa0c050e832ccc9e1

query I rowsort label-500-3
SELECT pk FROM tab4 WHERE col4 < 247.66 OR col4 IS NULL
----
31 values hashing to 8c154aaa2025133fa0c050e832ccc9e1

statement ok
DROP VIEW view_1_tab4_875

statement ok
DROP VIEW view_2_tab4_875

statement ok
DROP VIEW view_3_tab4_875

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_876') DROP VIEW view_1_tab0_876

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_876

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_876') DROP VIEW view_2_tab0_876

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_876

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_876') DROP VIEW view_3_tab0_876

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_876

statement ok
CREATE VIEW view_1_tab0_876 AS SELECT pk, col0 FROM tab0 WHERE ((((col0 > 796))) AND col4 < 334.48)

statement ok
CREATE VIEW view_2_tab0_876 AS SELECT pk, col0 FROM tab0 WHERE NOT (((((col0 > 796))) AND col4 < 334.48))

statement ok
CREATE VIEW view_3_tab0_876 AS SELECT pk FROM view_1_tab0_876

query II rowsort label-600-1
SELECT pk, col0 FROM tab0 WHERE ((((col0 > 796))) AND col4 < 334.48)
----
14 values hashing to ed9ea58a3d2a68d061b2c1c9b9d908f1

query II rowsort label-600-2
SELECT pk, col0 FROM tab0 WHERE NOT (((((col0 > 796))) AND col4 < 334.48))
----
186 values hashing to 9477f343a7fb6906316e3ad05a007913

query II rowsort label-600-1
SELECT pk, col0 FROM view_1_tab0_876
----
14 values hashing to ed9ea58a3d2a68d061b2c1c9b9d908f1

query II rowsort label-600-2
SELECT pk, col0 FROM view_2_tab0_876
----
186 values hashing to 9477f343a7fb6906316e3ad05a007913

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE ((((col0 > 796))) AND col4 < 334.48) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (((((col0 > 796))) AND col4 < 334.48))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_876 UNION ALL SELECT pk, col0 FROM view_2_tab0_876
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE ((((col0 > 796))) AND col4 < 334.48) UNION SELECT pk, col0 FROM tab0 WHERE NOT (((((col0 > 796))) AND col4 < 334.48))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_876 UNION SELECT pk, col0 FROM view_2_tab0_876
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE ((((col0 > 796))) AND col4 < 334.48) ) AS tab0_876
----
2
27
51
57
6
64
75

query I rowsort label-600-3
SELECT * FROM view_3_tab0_876
----
2
27
51
57
6
64
75

query I rowsort label-600-3
SELECT pk FROM tab0 WHERE ((((col0 > 796))) AND col4 < 334.48)
----
2
27
51
57
6
64
75

statement ok
DROP VIEW view_1_tab0_876

statement ok
DROP VIEW view_2_tab0_876

statement ok
DROP VIEW view_3_tab0_876

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_876') DROP VIEW view_1_tab1_876

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_876

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_876') DROP VIEW view_2_tab1_876

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_876

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_876') DROP VIEW view_3_tab1_876

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_876

statement ok
CREATE VIEW view_1_tab1_876 AS SELECT pk, col0 FROM tab1 WHERE ((((col0 > 796))) AND col4 < 334.48)

statement ok
CREATE VIEW view_2_tab1_876 AS SELECT pk, col0 FROM tab1 WHERE NOT (((((col0 > 796))) AND col4 < 334.48))

statement ok
CREATE VIEW view_3_tab1_876 AS SELECT pk FROM view_1_tab1_876

query II rowsort label-600-1
SELECT pk, col0 FROM tab1 WHERE ((((col0 > 796))) AND col4 < 334.48)
----
14 values hashing to ed9ea58a3d2a68d061b2c1c9b9d908f1

query II rowsort label-600-2
SELECT pk, col0 FROM tab1 WHERE NOT (((((col0 > 796))) AND col4 < 334.48))
----
186 values hashing to 9477f343a7fb6906316e3ad05a007913

query II rowsort label-600-1
SELECT pk, col0 FROM view_1_tab1_876
----
14 values hashing to ed9ea58a3d2a68d061b2c1c9b9d908f1

query II rowsort label-600-2
SELECT pk, col0 FROM view_2_tab1_876
----
186 values hashing to 9477f343a7fb6906316e3ad05a007913

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE ((((col0 > 796))) AND col4 < 334.48) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (((((col0 > 796))) AND col4 < 334.48))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_876 UNION ALL SELECT pk, col0 FROM view_2_tab1_876
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE ((((col0 > 796))) AND col4 < 334.48) UNION SELECT pk, col0 FROM tab1 WHERE NOT (((((col0 > 796))) AND col4 < 334.48))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_876 UNION SELECT pk, col0 FROM view_2_tab1_876
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE ((((col0 > 796))) AND col4 < 334.48) ) AS tab1_876
----
2
27
51
57
6
64
75

query I rowsort label-600-3
SELECT * FROM view_3_tab1_876
----
2
27
51
57
6
64
75

query I rowsort label-600-3
SELECT pk FROM tab1 WHERE ((((col0 > 796))) AND col4 < 334.48)
----
2
27
51
57
6
64
75

statement ok
DROP VIEW view_1_tab1_876

statement ok
DROP VIEW view_2_tab1_876

statement ok
DROP VIEW view_3_tab1_876

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_876') DROP VIEW view_1_tab2_876

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_876

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_876') DROP VIEW view_2_tab2_876

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_876

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_876') DROP VIEW view_3_tab2_876

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_876

statement ok
CREATE VIEW view_1_tab2_876 AS SELECT pk, col0 FROM tab2 WHERE ((((col0 > 796))) AND col4 < 334.48)

statement ok
CREATE VIEW view_2_tab2_876 AS SELECT pk, col0 FROM tab2 WHERE NOT (((((col0 > 796))) AND col4 < 334.48))

statement ok
CREATE VIEW view_3_tab2_876 AS SELECT pk FROM view_1_tab2_876

query II rowsort label-600-1
SELECT pk, col0 FROM tab2 WHERE ((((col0 > 796))) AND col4 < 334.48)
----
14 values hashing to ed9ea58a3d2a68d061b2c1c9b9d908f1

query II rowsort label-600-2
SELECT pk, col0 FROM tab2 WHERE NOT (((((col0 > 796))) AND col4 < 334.48))
----
186 values hashing to 9477f343a7fb6906316e3ad05a007913

query II rowsort label-600-1
SELECT pk, col0 FROM view_1_tab2_876
----
14 values hashing to ed9ea58a3d2a68d061b2c1c9b9d908f1

query II rowsort label-600-2
SELECT pk, col0 FROM view_2_tab2_876
----
186 values hashing to 9477f343a7fb6906316e3ad05a007913

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE ((((col0 > 796))) AND col4 < 334.48) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (((((col0 > 796))) AND col4 < 334.48))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_876 UNION ALL SELECT pk, col0 FROM view_2_tab2_876
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE ((((col0 > 796))) AND col4 < 334.48) UNION SELECT pk, col0 FROM tab2 WHERE NOT (((((col0 > 796))) AND col4 < 334.48))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_876 UNION SELECT pk, col0 FROM view_2_tab2_876
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE ((((col0 > 796))) AND col4 < 334.48) ) AS tab2_876
----
2
27
51
57
6
64
75

query I rowsort label-600-3
SELECT * FROM view_3_tab2_876
----
2
27
51
57
6
64
75

query I rowsort label-600-3
SELECT pk FROM tab2 WHERE ((((col0 > 796))) AND col4 < 334.48)
----
2
27
51
57
6
64
75

statement ok
DROP VIEW view_1_tab2_876

statement ok
DROP VIEW view_2_tab2_876

statement ok
DROP VIEW view_3_tab2_876

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_876') DROP VIEW view_1_tab3_876

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_876

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_876') DROP VIEW view_2_tab3_876

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_876

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_876') DROP VIEW view_3_tab3_876

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_876

statement ok
CREATE VIEW view_1_tab3_876 AS SELECT pk, col0 FROM tab3 WHERE ((((col0 > 796))) AND col4 < 334.48)

statement ok
CREATE VIEW view_2_tab3_876 AS SELECT pk, col0 FROM tab3 WHERE NOT (((((col0 > 796))) AND col4 < 334.48))

statement ok
CREATE VIEW view_3_tab3_876 AS SELECT pk FROM view_1_tab3_876

query II rowsort label-600-1
SELECT pk, col0 FROM tab3 WHERE ((((col0 > 796))) AND col4 < 334.48)
----
14 values hashing to ed9ea58a3d2a68d061b2c1c9b9d908f1

query II rowsort label-600-2
SELECT pk, col0 FROM tab3 WHERE NOT (((((col0 > 796))) AND col4 < 334.48))
----
186 values hashing to 9477f343a7fb6906316e3ad05a007913

query II rowsort label-600-1
SELECT pk, col0 FROM view_1_tab3_876
----
14 values hashing to ed9ea58a3d2a68d061b2c1c9b9d908f1

query II rowsort label-600-2
SELECT pk, col0 FROM view_2_tab3_876
----
186 values hashing to 9477f343a7fb6906316e3ad05a007913

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE ((((col0 > 796))) AND col4 < 334.48) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (((((col0 > 796))) AND col4 < 334.48))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_876 UNION ALL SELECT pk, col0 FROM view_2_tab3_876
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE ((((col0 > 796))) AND col4 < 334.48) UNION SELECT pk, col0 FROM tab3 WHERE NOT (((((col0 > 796))) AND col4 < 334.48))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_876 UNION SELECT pk, col0 FROM view_2_tab3_876
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE ((((col0 > 796))) AND col4 < 334.48) ) AS tab3_876
----
2
27
51
57
6
64
75

query I rowsort label-600-3
SELECT * FROM view_3_tab3_876
----
2
27
51
57
6
64
75

query I rowsort label-600-3
SELECT pk FROM tab3 WHERE ((((col0 > 796))) AND col4 < 334.48)
----
2
27
51
57
6
64
75

statement ok
DROP VIEW view_1_tab3_876

statement ok
DROP VIEW view_2_tab3_876

statement ok
DROP VIEW view_3_tab3_876

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_876') DROP VIEW view_1_tab4_876

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_876

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_876') DROP VIEW view_2_tab4_876

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_876

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_876') DROP VIEW view_3_tab4_876

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_876

statement ok
CREATE VIEW view_1_tab4_876 AS SELECT pk, col0 FROM tab4 WHERE ((((col0 > 796))) AND col4 < 334.48)

statement ok
CREATE VIEW view_2_tab4_876 AS SELECT pk, col0 FROM tab4 WHERE NOT (((((col0 > 796))) AND col4 < 334.48))

statement ok
CREATE VIEW view_3_tab4_876 AS SELECT pk FROM view_1_tab4_876

query II rowsort label-600-1
SELECT pk, col0 FROM tab4 WHERE ((((col0 > 796))) AND col4 < 334.48)
----
14 values hashing to ed9ea58a3d2a68d061b2c1c9b9d908f1

query II rowsort label-600-2
SELECT pk, col0 FROM tab4 WHERE NOT (((((col0 > 796))) AND col4 < 334.48))
----
186 values hashing to 9477f343a7fb6906316e3ad05a007913

query II rowsort label-600-1
SELECT pk, col0 FROM view_1_tab4_876
----
14 values hashing to ed9ea58a3d2a68d061b2c1c9b9d908f1

query II rowsort label-600-2
SELECT pk, col0 FROM view_2_tab4_876
----
186 values hashing to 9477f343a7fb6906316e3ad05a007913

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE ((((col0 > 796))) AND col4 < 334.48) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (((((col0 > 796))) AND col4 < 334.48))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_876 UNION ALL SELECT pk, col0 FROM view_2_tab4_876
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE ((((col0 > 796))) AND col4 < 334.48) UNION SELECT pk, col0 FROM tab4 WHERE NOT (((((col0 > 796))) AND col4 < 334.48))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_876 UNION SELECT pk, col0 FROM view_2_tab4_876
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE ((((col0 > 796))) AND col4 < 334.48) ) AS tab4_876
----
2
27
51
57
6
64
75

query I rowsort label-600-3
SELECT * FROM view_3_tab4_876
----
2
27
51
57
6
64
75

query I rowsort label-600-3
SELECT pk FROM tab4 WHERE ((((col0 > 796))) AND col4 < 334.48)
----
2
27
51
57
6
64
75

statement ok
DROP VIEW view_1_tab4_876

statement ok
DROP VIEW view_2_tab4_876

statement ok
DROP VIEW view_3_tab4_876

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_877') DROP VIEW view_1_tab0_877

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_877

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_877') DROP VIEW view_2_tab0_877

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_877

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_877') DROP VIEW view_3_tab0_877

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_877

statement ok
CREATE VIEW view_1_tab0_877 AS SELECT pk, col0 FROM tab0 WHERE ((col4 = 82.92) AND (col4 > 233.70 AND col1 > 258.21) AND col0 >= 426)

statement ok
CREATE VIEW view_2_tab0_877 AS SELECT pk, col0 FROM tab0 WHERE NOT (((col4 = 82.92) AND (col4 > 233.70 AND col1 > 258.21) AND col0 >= 426))

statement ok
CREATE VIEW view_3_tab0_877 AS SELECT pk FROM view_1_tab0_877

query II rowsort label-700-1
SELECT pk, col0 FROM tab0 WHERE ((col4 = 82.92) AND (col4 > 233.70 AND col1 > 258.21) AND col0 >= 426)
----

query II rowsort label-700-2
SELECT pk, col0 FROM tab0 WHERE NOT (((col4 = 82.92) AND (col4 > 233.70 AND col1 > 258.21) AND col0 >= 426))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-700-1
SELECT pk, col0 FROM view_1_tab0_877
----

query II rowsort label-700-2
SELECT pk, col0 FROM view_2_tab0_877
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE ((col4 = 82.92) AND (col4 > 233.70 AND col1 > 258.21) AND col0 >= 426) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (((col4 = 82.92) AND (col4 > 233.70 AND col1 > 258.21) AND col0 >= 426))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_877 UNION ALL SELECT pk, col0 FROM view_2_tab0_877
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE ((col4 = 82.92) AND (col4 > 233.70 AND col1 > 258.21) AND col0 >= 426) UNION SELECT pk, col0 FROM tab0 WHERE NOT (((col4 = 82.92) AND (col4 > 233.70 AND col1 > 258.21) AND col0 >= 426))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_877 UNION SELECT pk, col0 FROM view_2_tab0_877
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE ((col4 = 82.92) AND (col4 > 233.70 AND col1 > 258.21) AND col0 >= 426) ) AS tab0_877
----

query I rowsort label-700-3
SELECT * FROM view_3_tab0_877
----

query I rowsort label-700-3
SELECT pk FROM tab0 WHERE ((col4 = 82.92) AND (col4 > 233.70 AND col1 > 258.21) AND col0 >= 426)
----

statement ok
DROP VIEW view_1_tab0_877

statement ok
DROP VIEW view_2_tab0_877

statement ok
DROP VIEW view_3_tab0_877

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_877') DROP VIEW view_1_tab1_877

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_877

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_877') DROP VIEW view_2_tab1_877

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_877

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_877') DROP VIEW view_3_tab1_877

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_877

statement ok
CREATE VIEW view_1_tab1_877 AS SELECT pk, col0 FROM tab1 WHERE ((col4 = 82.92) AND (col4 > 233.70 AND col1 > 258.21) AND col0 >= 426)

statement ok
CREATE VIEW view_2_tab1_877 AS SELECT pk, col0 FROM tab1 WHERE NOT (((col4 = 82.92) AND (col4 > 233.70 AND col1 > 258.21) AND col0 >= 426))

statement ok
CREATE VIEW view_3_tab1_877 AS SELECT pk FROM view_1_tab1_877

query II rowsort label-700-1
SELECT pk, col0 FROM tab1 WHERE ((col4 = 82.92) AND (col4 > 233.70 AND col1 > 258.21) AND col0 >= 426)
----

query II rowsort label-700-2
SELECT pk, col0 FROM tab1 WHERE NOT (((col4 = 82.92) AND (col4 > 233.70 AND col1 > 258.21) AND col0 >= 426))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-700-1
SELECT pk, col0 FROM view_1_tab1_877
----

query II rowsort label-700-2
SELECT pk, col0 FROM view_2_tab1_877
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE ((col4 = 82.92) AND (col4 > 233.70 AND col1 > 258.21) AND col0 >= 426) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (((col4 = 82.92) AND (col4 > 233.70 AND col1 > 258.21) AND col0 >= 426))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_877 UNION ALL SELECT pk, col0 FROM view_2_tab1_877
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE ((col4 = 82.92) AND (col4 > 233.70 AND col1 > 258.21) AND col0 >= 426) UNION SELECT pk, col0 FROM tab1 WHERE NOT (((col4 = 82.92) AND (col4 > 233.70 AND col1 > 258.21) AND col0 >= 426))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_877 UNION SELECT pk, col0 FROM view_2_tab1_877
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE ((col4 = 82.92) AND (col4 > 233.70 AND col1 > 258.21) AND col0 >= 426) ) AS tab1_877
----

query I rowsort label-700-3
SELECT * FROM view_3_tab1_877
----

query I rowsort label-700-3
SELECT pk FROM tab1 WHERE ((col4 = 82.92) AND (col4 > 233.70 AND col1 > 258.21) AND col0 >= 426)
----

statement ok
DROP VIEW view_1_tab1_877

statement ok
DROP VIEW view_2_tab1_877

statement ok
DROP VIEW view_3_tab1_877

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_877') DROP VIEW view_1_tab2_877

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_877

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_877') DROP VIEW view_2_tab2_877

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_877

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_877') DROP VIEW view_3_tab2_877

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_877

statement ok
CREATE VIEW view_1_tab2_877 AS SELECT pk, col0 FROM tab2 WHERE ((col4 = 82.92) AND (col4 > 233.70 AND col1 > 258.21) AND col0 >= 426)

statement ok
CREATE VIEW view_2_tab2_877 AS SELECT pk, col0 FROM tab2 WHERE NOT (((col4 = 82.92) AND (col4 > 233.70 AND col1 > 258.21) AND col0 >= 426))

statement ok
CREATE VIEW view_3_tab2_877 AS SELECT pk FROM view_1_tab2_877

query II rowsort label-700-1
SELECT pk, col0 FROM tab2 WHERE ((col4 = 82.92) AND (col4 > 233.70 AND col1 > 258.21) AND col0 >= 426)
----

query II rowsort label-700-2
SELECT pk, col0 FROM tab2 WHERE NOT (((col4 = 82.92) AND (col4 > 233.70 AND col1 > 258.21) AND col0 >= 426))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-700-1
SELECT pk, col0 FROM view_1_tab2_877
----

query II rowsort label-700-2
SELECT pk, col0 FROM view_2_tab2_877
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE ((col4 = 82.92) AND (col4 > 233.70 AND col1 > 258.21) AND col0 >= 426) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (((col4 = 82.92) AND (col4 > 233.70 AND col1 > 258.21) AND col0 >= 426))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_877 UNION ALL SELECT pk, col0 FROM view_2_tab2_877
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE ((col4 = 82.92) AND (col4 > 233.70 AND col1 > 258.21) AND col0 >= 426) UNION SELECT pk, col0 FROM tab2 WHERE NOT (((col4 = 82.92) AND (col4 > 233.70 AND col1 > 258.21) AND col0 >= 426))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_877 UNION SELECT pk, col0 FROM view_2_tab2_877
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE ((col4 = 82.92) AND (col4 > 233.70 AND col1 > 258.21) AND col0 >= 426) ) AS tab2_877
----

query I rowsort label-700-3
SELECT * FROM view_3_tab2_877
----

query I rowsort label-700-3
SELECT pk FROM tab2 WHERE ((col4 = 82.92) AND (col4 > 233.70 AND col1 > 258.21) AND col0 >= 426)
----

statement ok
DROP VIEW view_1_tab2_877

statement ok
DROP VIEW view_2_tab2_877

statement ok
DROP VIEW view_3_tab2_877

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_877') DROP VIEW view_1_tab3_877

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_877

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_877') DROP VIEW view_2_tab3_877

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_877

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_877') DROP VIEW view_3_tab3_877

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_877

statement ok
CREATE VIEW view_1_tab3_877 AS SELECT pk, col0 FROM tab3 WHERE ((col4 = 82.92) AND (col4 > 233.70 AND col1 > 258.21) AND col0 >= 426)

statement ok
CREATE VIEW view_2_tab3_877 AS SELECT pk, col0 FROM tab3 WHERE NOT (((col4 = 82.92) AND (col4 > 233.70 AND col1 > 258.21) AND col0 >= 426))

statement ok
CREATE VIEW view_3_tab3_877 AS SELECT pk FROM view_1_tab3_877

query II rowsort label-700-1
SELECT pk, col0 FROM tab3 WHERE ((col4 = 82.92) AND (col4 > 233.70 AND col1 > 258.21) AND col0 >= 426)
----

query II rowsort label-700-2
SELECT pk, col0 FROM tab3 WHERE NOT (((col4 = 82.92) AND (col4 > 233.70 AND col1 > 258.21) AND col0 >= 426))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-700-1
SELECT pk, col0 FROM view_1_tab3_877
----

query II rowsort label-700-2
SELECT pk, col0 FROM view_2_tab3_877
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE ((col4 = 82.92) AND (col4 > 233.70 AND col1 > 258.21) AND col0 >= 426) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (((col4 = 82.92) AND (col4 > 233.70 AND col1 > 258.21) AND col0 >= 426))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_877 UNION ALL SELECT pk, col0 FROM view_2_tab3_877
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE ((col4 = 82.92) AND (col4 > 233.70 AND col1 > 258.21) AND col0 >= 426) UNION SELECT pk, col0 FROM tab3 WHERE NOT (((col4 = 82.92) AND (col4 > 233.70 AND col1 > 258.21) AND col0 >= 426))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_877 UNION SELECT pk, col0 FROM view_2_tab3_877
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE ((col4 = 82.92) AND (col4 > 233.70 AND col1 > 258.21) AND col0 >= 426) ) AS tab3_877
----

query I rowsort label-700-3
SELECT * FROM view_3_tab3_877
----

query I rowsort label-700-3
SELECT pk FROM tab3 WHERE ((col4 = 82.92) AND (col4 > 233.70 AND col1 > 258.21) AND col0 >= 426)
----

statement ok
DROP VIEW view_1_tab3_877

statement ok
DROP VIEW view_2_tab3_877

statement ok
DROP VIEW view_3_tab3_877

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_877') DROP VIEW view_1_tab4_877

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_877

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_877') DROP VIEW view_2_tab4_877

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_877

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_877') DROP VIEW view_3_tab4_877

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_877

statement ok
CREATE VIEW view_1_tab4_877 AS SELECT pk, col0 FROM tab4 WHERE ((col4 = 82.92) AND (col4 > 233.70 AND col1 > 258.21) AND col0 >= 426)

statement ok
CREATE VIEW view_2_tab4_877 AS SELECT pk, col0 FROM tab4 WHERE NOT (((col4 = 82.92) AND (col4 > 233.70 AND col1 > 258.21) AND col0 >= 426))

statement ok
CREATE VIEW view_3_tab4_877 AS SELECT pk FROM view_1_tab4_877

query II rowsort label-700-1
SELECT pk, col0 FROM tab4 WHERE ((col4 = 82.92) AND (col4 > 233.70 AND col1 > 258.21) AND col0 >= 426)
----

query II rowsort label-700-2
SELECT pk, col0 FROM tab4 WHERE NOT (((col4 = 82.92) AND (col4 > 233.70 AND col1 > 258.21) AND col0 >= 426))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-700-1
SELECT pk, col0 FROM view_1_tab4_877
----

query II rowsort label-700-2
SELECT pk, col0 FROM view_2_tab4_877
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE ((col4 = 82.92) AND (col4 > 233.70 AND col1 > 258.21) AND col0 >= 426) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (((col4 = 82.92) AND (col4 > 233.70 AND col1 > 258.21) AND col0 >= 426))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_877 UNION ALL SELECT pk, col0 FROM view_2_tab4_877
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE ((col4 = 82.92) AND (col4 > 233.70 AND col1 > 258.21) AND col0 >= 426) UNION SELECT pk, col0 FROM tab4 WHERE NOT (((col4 = 82.92) AND (col4 > 233.70 AND col1 > 258.21) AND col0 >= 426))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_877 UNION SELECT pk, col0 FROM view_2_tab4_877
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE ((col4 = 82.92) AND (col4 > 233.70 AND col1 > 258.21) AND col0 >= 426) ) AS tab4_877
----

query I rowsort label-700-3
SELECT * FROM view_3_tab4_877
----

query I rowsort label-700-3
SELECT pk FROM tab4 WHERE ((col4 = 82.92) AND (col4 > 233.70 AND col1 > 258.21) AND col0 >= 426)
----

statement ok
DROP VIEW view_1_tab4_877

statement ok
DROP VIEW view_2_tab4_877

statement ok
DROP VIEW view_3_tab4_877

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_879') DROP VIEW view_1_tab0_879

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_879

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_879') DROP VIEW view_2_tab0_879

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_879

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_879') DROP VIEW view_3_tab0_879

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_879

statement ok
CREATE VIEW view_1_tab0_879 AS SELECT pk, col0 FROM tab0 WHERE col1 <= 33.2

statement ok
CREATE VIEW view_2_tab0_879 AS SELECT pk, col0 FROM tab0 WHERE NOT (col1 <= 33.2)

statement ok
CREATE VIEW view_3_tab0_879 AS SELECT pk FROM view_1_tab0_879

query II rowsort label-800-1
SELECT pk, col0 FROM tab0 WHERE col1 <= 33.2
----
29
638
43
152
46
772
51
862

query II rowsort label-800-2
SELECT pk, col0 FROM tab0 WHERE NOT (col1 <= 33.2)
----
192 values hashing to 95f51d301434273d325e9400c26e071b

query II rowsort label-800-1
SELECT pk, col0 FROM view_1_tab0_879
----
29
638
43
152
46
772
51
862

query II rowsort label-800-2
SELECT pk, col0 FROM view_2_tab0_879
----
192 values hashing to 95f51d301434273d325e9400c26e071b

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col1 <= 33.2 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col1 <= 33.2)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_879 UNION ALL SELECT pk, col0 FROM view_2_tab0_879
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col1 <= 33.2 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col1 <= 33.2)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_879 UNION SELECT pk, col0 FROM view_2_tab0_879
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col1 <= 33.2 ) AS tab0_879
----
29
43
46
51

query I rowsort label-800-3
SELECT * FROM view_3_tab0_879
----
29
43
46
51

query I rowsort label-800-3
SELECT pk FROM tab0 WHERE col1 <= 33.2
----
29
43
46
51

statement ok
DROP VIEW view_1_tab0_879

statement ok
DROP VIEW view_2_tab0_879

statement ok
DROP VIEW view_3_tab0_879

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_879') DROP VIEW view_1_tab1_879

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_879

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_879') DROP VIEW view_2_tab1_879

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_879

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_879') DROP VIEW view_3_tab1_879

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_879

statement ok
CREATE VIEW view_1_tab1_879 AS SELECT pk, col0 FROM tab1 WHERE col1 <= 33.2

statement ok
CREATE VIEW view_2_tab1_879 AS SELECT pk, col0 FROM tab1 WHERE NOT (col1 <= 33.2)

statement ok
CREATE VIEW view_3_tab1_879 AS SELECT pk FROM view_1_tab1_879

query II rowsort label-800-1
SELECT pk, col0 FROM tab1 WHERE col1 <= 33.2
----
29
638
43
152
46
772
51
862

query II rowsort label-800-2
SELECT pk, col0 FROM tab1 WHERE NOT (col1 <= 33.2)
----
192 values hashing to 95f51d301434273d325e9400c26e071b

query II rowsort label-800-1
SELECT pk, col0 FROM view_1_tab1_879
----
29
638
43
152
46
772
51
862

query II rowsort label-800-2
SELECT pk, col0 FROM view_2_tab1_879
----
192 values hashing to 95f51d301434273d325e9400c26e071b

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col1 <= 33.2 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col1 <= 33.2)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_879 UNION ALL SELECT pk, col0 FROM view_2_tab1_879
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col1 <= 33.2 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col1 <= 33.2)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_879 UNION SELECT pk, col0 FROM view_2_tab1_879
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col1 <= 33.2 ) AS tab1_879
----
29
43
46
51

query I rowsort label-800-3
SELECT * FROM view_3_tab1_879
----
29
43
46
51

query I rowsort label-800-3
SELECT pk FROM tab1 WHERE col1 <= 33.2
----
29
43
46
51

statement ok
DROP VIEW view_1_tab1_879

statement ok
DROP VIEW view_2_tab1_879

statement ok
DROP VIEW view_3_tab1_879

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_879') DROP VIEW view_1_tab2_879

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_879

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_879') DROP VIEW view_2_tab2_879

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_879

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_879') DROP VIEW view_3_tab2_879

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_879

statement ok
CREATE VIEW view_1_tab2_879 AS SELECT pk, col0 FROM tab2 WHERE col1 <= 33.2

statement ok
CREATE VIEW view_2_tab2_879 AS SELECT pk, col0 FROM tab2 WHERE NOT (col1 <= 33.2)

statement ok
CREATE VIEW view_3_tab2_879 AS SELECT pk FROM view_1_tab2_879

query II rowsort label-800-1
SELECT pk, col0 FROM tab2 WHERE col1 <= 33.2
----
29
638
43
152
46
772
51
862

query II rowsort label-800-2
SELECT pk, col0 FROM tab2 WHERE NOT (col1 <= 33.2)
----
192 values hashing to 95f51d301434273d325e9400c26e071b

query II rowsort label-800-1
SELECT pk, col0 FROM view_1_tab2_879
----
29
638
43
152
46
772
51
862

query II rowsort label-800-2
SELECT pk, col0 FROM view_2_tab2_879
----
192 values hashing to 95f51d301434273d325e9400c26e071b

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col1 <= 33.2 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col1 <= 33.2)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_879 UNION ALL SELECT pk, col0 FROM view_2_tab2_879
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col1 <= 33.2 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col1 <= 33.2)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_879 UNION SELECT pk, col0 FROM view_2_tab2_879
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col1 <= 33.2 ) AS tab2_879
----
29
43
46
51

query I rowsort label-800-3
SELECT * FROM view_3_tab2_879
----
29
43
46
51

query I rowsort label-800-3
SELECT pk FROM tab2 WHERE col1 <= 33.2
----
29
43
46
51

statement ok
DROP VIEW view_1_tab2_879

statement ok
DROP VIEW view_2_tab2_879

statement ok
DROP VIEW view_3_tab2_879

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_879') DROP VIEW view_1_tab3_879

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_879

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_879') DROP VIEW view_2_tab3_879

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_879

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_879') DROP VIEW view_3_tab3_879

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_879

statement ok
CREATE VIEW view_1_tab3_879 AS SELECT pk, col0 FROM tab3 WHERE col1 <= 33.2

statement ok
CREATE VIEW view_2_tab3_879 AS SELECT pk, col0 FROM tab3 WHERE NOT (col1 <= 33.2)

statement ok
CREATE VIEW view_3_tab3_879 AS SELECT pk FROM view_1_tab3_879

query II rowsort label-800-1
SELECT pk, col0 FROM tab3 WHERE col1 <= 33.2
----
29
638
43
152
46
772
51
862

query II rowsort label-800-2
SELECT pk, col0 FROM tab3 WHERE NOT (col1 <= 33.2)
----
192 values hashing to 95f51d301434273d325e9400c26e071b

query II rowsort label-800-1
SELECT pk, col0 FROM view_1_tab3_879
----
29
638
43
152
46
772
51
862

query II rowsort label-800-2
SELECT pk, col0 FROM view_2_tab3_879
----
192 values hashing to 95f51d301434273d325e9400c26e071b

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col1 <= 33.2 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col1 <= 33.2)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_879 UNION ALL SELECT pk, col0 FROM view_2_tab3_879
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col1 <= 33.2 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col1 <= 33.2)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_879 UNION SELECT pk, col0 FROM view_2_tab3_879
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col1 <= 33.2 ) AS tab3_879
----
29
43
46
51

query I rowsort label-800-3
SELECT * FROM view_3_tab3_879
----
29
43
46
51

query I rowsort label-800-3
SELECT pk FROM tab3 WHERE col1 <= 33.2
----
29
43
46
51

statement ok
DROP VIEW view_1_tab3_879

statement ok
DROP VIEW view_2_tab3_879

statement ok
DROP VIEW view_3_tab3_879

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_879') DROP VIEW view_1_tab4_879

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_879

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_879') DROP VIEW view_2_tab4_879

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_879

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_879') DROP VIEW view_3_tab4_879

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_879

statement ok
CREATE VIEW view_1_tab4_879 AS SELECT pk, col0 FROM tab4 WHERE col1 <= 33.2

statement ok
CREATE VIEW view_2_tab4_879 AS SELECT pk, col0 FROM tab4 WHERE NOT (col1 <= 33.2)

statement ok
CREATE VIEW view_3_tab4_879 AS SELECT pk FROM view_1_tab4_879

query II rowsort label-800-1
SELECT pk, col0 FROM tab4 WHERE col1 <= 33.2
----
29
638
43
152
46
772
51
862

query II rowsort label-800-2
SELECT pk, col0 FROM tab4 WHERE NOT (col1 <= 33.2)
----
192 values hashing to 95f51d301434273d325e9400c26e071b

query II rowsort label-800-1
SELECT pk, col0 FROM view_1_tab4_879
----
29
638
43
152
46
772
51
862

query II rowsort label-800-2
SELECT pk, col0 FROM view_2_tab4_879
----
192 values hashing to 95f51d301434273d325e9400c26e071b

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col1 <= 33.2 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col1 <= 33.2)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_879 UNION ALL SELECT pk, col0 FROM view_2_tab4_879
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col1 <= 33.2 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col1 <= 33.2)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_879 UNION SELECT pk, col0 FROM view_2_tab4_879
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col1 <= 33.2 ) AS tab4_879
----
29
43
46
51

query I rowsort label-800-3
SELECT * FROM view_3_tab4_879
----
29
43
46
51

query I rowsort label-800-3
SELECT pk FROM tab4 WHERE col1 <= 33.2
----
29
43
46
51

statement ok
DROP VIEW view_1_tab4_879

statement ok
DROP VIEW view_2_tab4_879

statement ok
DROP VIEW view_3_tab4_879

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_880') DROP VIEW view_1_tab0_880

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_880

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_880') DROP VIEW view_2_tab0_880

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_880

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_880') DROP VIEW view_3_tab0_880

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_880

statement ok
CREATE VIEW view_1_tab0_880 AS SELECT pk, col0 FROM tab0 WHERE col3 = 962

statement ok
CREATE VIEW view_2_tab0_880 AS SELECT pk, col0 FROM tab0 WHERE NOT (col3 = 962)

statement ok
CREATE VIEW view_3_tab0_880 AS SELECT pk FROM view_1_tab0_880

query II rowsort label-900-1
SELECT pk, col0 FROM tab0 WHERE col3 = 962
----

query II rowsort label-900-2
SELECT pk, col0 FROM tab0 WHERE NOT (col3 = 962)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-900-1
SELECT pk, col0 FROM view_1_tab0_880
----

query II rowsort label-900-2
SELECT pk, col0 FROM view_2_tab0_880
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 = 962 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col3 = 962)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_880 UNION ALL SELECT pk, col0 FROM view_2_tab0_880
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 = 962 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col3 = 962)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_880 UNION SELECT pk, col0 FROM view_2_tab0_880
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col3 = 962 ) AS tab0_880
----

query I rowsort label-900-3
SELECT * FROM view_3_tab0_880
----

query I rowsort label-900-3
SELECT pk FROM tab0 WHERE col3 = 962
----

statement ok
DROP VIEW view_1_tab0_880

statement ok
DROP VIEW view_2_tab0_880

statement ok
DROP VIEW view_3_tab0_880

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_880') DROP VIEW view_1_tab1_880

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_880

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_880') DROP VIEW view_2_tab1_880

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_880

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_880') DROP VIEW view_3_tab1_880

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_880

statement ok
CREATE VIEW view_1_tab1_880 AS SELECT pk, col0 FROM tab1 WHERE col3 = 962

statement ok
CREATE VIEW view_2_tab1_880 AS SELECT pk, col0 FROM tab1 WHERE NOT (col3 = 962)

statement ok
CREATE VIEW view_3_tab1_880 AS SELECT pk FROM view_1_tab1_880

query II rowsort label-900-1
SELECT pk, col0 FROM tab1 WHERE col3 = 962
----

query II rowsort label-900-2
SELECT pk, col0 FROM tab1 WHERE NOT (col3 = 962)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-900-1
SELECT pk, col0 FROM view_1_tab1_880
----

query II rowsort label-900-2
SELECT pk, col0 FROM view_2_tab1_880
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 = 962 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col3 = 962)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_880 UNION ALL SELECT pk, col0 FROM view_2_tab1_880
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 = 962 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col3 = 962)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_880 UNION SELECT pk, col0 FROM view_2_tab1_880
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col3 = 962 ) AS tab1_880
----

query I rowsort label-900-3
SELECT * FROM view_3_tab1_880
----

query I rowsort label-900-3
SELECT pk FROM tab1 WHERE col3 = 962
----

statement ok
DROP VIEW view_1_tab1_880

statement ok
DROP VIEW view_2_tab1_880

statement ok
DROP VIEW view_3_tab1_880

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_880') DROP VIEW view_1_tab2_880

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_880

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_880') DROP VIEW view_2_tab2_880

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_880

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_880') DROP VIEW view_3_tab2_880

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_880

statement ok
CREATE VIEW view_1_tab2_880 AS SELECT pk, col0 FROM tab2 WHERE col3 = 962

statement ok
CREATE VIEW view_2_tab2_880 AS SELECT pk, col0 FROM tab2 WHERE NOT (col3 = 962)

statement ok
CREATE VIEW view_3_tab2_880 AS SELECT pk FROM view_1_tab2_880

query II rowsort label-900-1
SELECT pk, col0 FROM tab2 WHERE col3 = 962
----

query II rowsort label-900-2
SELECT pk, col0 FROM tab2 WHERE NOT (col3 = 962)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-900-1
SELECT pk, col0 FROM view_1_tab2_880
----

query II rowsort label-900-2
SELECT pk, col0 FROM view_2_tab2_880
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 = 962 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col3 = 962)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_880 UNION ALL SELECT pk, col0 FROM view_2_tab2_880
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 = 962 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col3 = 962)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_880 UNION SELECT pk, col0 FROM view_2_tab2_880
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col3 = 962 ) AS tab2_880
----

query I rowsort label-900-3
SELECT * FROM view_3_tab2_880
----

query I rowsort label-900-3
SELECT pk FROM tab2 WHERE col3 = 962
----

statement ok
DROP VIEW view_1_tab2_880

statement ok
DROP VIEW view_2_tab2_880

statement ok
DROP VIEW view_3_tab2_880

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_880') DROP VIEW view_1_tab3_880

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_880

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_880') DROP VIEW view_2_tab3_880

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_880

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_880') DROP VIEW view_3_tab3_880

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_880

statement ok
CREATE VIEW view_1_tab3_880 AS SELECT pk, col0 FROM tab3 WHERE col3 = 962

statement ok
CREATE VIEW view_2_tab3_880 AS SELECT pk, col0 FROM tab3 WHERE NOT (col3 = 962)

statement ok
CREATE VIEW view_3_tab3_880 AS SELECT pk FROM view_1_tab3_880

query II rowsort label-900-1
SELECT pk, col0 FROM tab3 WHERE col3 = 962
----

query II rowsort label-900-2
SELECT pk, col0 FROM tab3 WHERE NOT (col3 = 962)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-900-1
SELECT pk, col0 FROM view_1_tab3_880
----

query II rowsort label-900-2
SELECT pk, col0 FROM view_2_tab3_880
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 = 962 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col3 = 962)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_880 UNION ALL SELECT pk, col0 FROM view_2_tab3_880
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 = 962 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col3 = 962)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_880 UNION SELECT pk, col0 FROM view_2_tab3_880
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col3 = 962 ) AS tab3_880
----

query I rowsort label-900-3
SELECT * FROM view_3_tab3_880
----

query I rowsort label-900-3
SELECT pk FROM tab3 WHERE col3 = 962
----

statement ok
DROP VIEW view_1_tab3_880

statement ok
DROP VIEW view_2_tab3_880

statement ok
DROP VIEW view_3_tab3_880

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_880') DROP VIEW view_1_tab4_880

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_880

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_880') DROP VIEW view_2_tab4_880

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_880

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_880') DROP VIEW view_3_tab4_880

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_880

statement ok
CREATE VIEW view_1_tab4_880 AS SELECT pk, col0 FROM tab4 WHERE col3 = 962

statement ok
CREATE VIEW view_2_tab4_880 AS SELECT pk, col0 FROM tab4 WHERE NOT (col3 = 962)

statement ok
CREATE VIEW view_3_tab4_880 AS SELECT pk FROM view_1_tab4_880

query II rowsort label-900-1
SELECT pk, col0 FROM tab4 WHERE col3 = 962
----

query II rowsort label-900-2
SELECT pk, col0 FROM tab4 WHERE NOT (col3 = 962)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-900-1
SELECT pk, col0 FROM view_1_tab4_880
----

query II rowsort label-900-2
SELECT pk, col0 FROM view_2_tab4_880
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 = 962 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col3 = 962)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_880 UNION ALL SELECT pk, col0 FROM view_2_tab4_880
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 = 962 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col3 = 962)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_880 UNION SELECT pk, col0 FROM view_2_tab4_880
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col3 = 962 ) AS tab4_880
----

query I rowsort label-900-3
SELECT * FROM view_3_tab4_880
----

query I rowsort label-900-3
SELECT pk FROM tab4 WHERE col3 = 962
----

statement ok
DROP VIEW view_1_tab4_880

statement ok
DROP VIEW view_2_tab4_880

statement ok
DROP VIEW view_3_tab4_880

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_881') DROP VIEW view_1_tab0_881

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_881

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_881') DROP VIEW view_2_tab0_881

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_881

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_881') DROP VIEW view_3_tab0_881

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_881

statement ok
CREATE VIEW view_1_tab0_881 AS SELECT pk, col0 FROM tab0 WHERE col3 > 987 OR col3 < 249

statement ok
CREATE VIEW view_2_tab0_881 AS SELECT pk, col0 FROM tab0 WHERE NOT (col3 > 987 OR col3 < 249)

statement ok
CREATE VIEW view_3_tab0_881 AS SELECT pk FROM view_1_tab0_881

query II rowsort label-1000-1
SELECT pk, col0 FROM tab0 WHERE col3 > 987 OR col3 < 249
----
56 values hashing to cb42a22b0ad72c7e8455994991ee2809

query II rowsort label-1000-2
SELECT pk, col0 FROM tab0 WHERE NOT (col3 > 987 OR col3 < 249)
----
144 values hashing to 9e511194628ea3f0baabd1108b674024

query II rowsort label-1000-1
SELECT pk, col0 FROM view_1_tab0_881
----
56 values hashing to cb42a22b0ad72c7e8455994991ee2809

query II rowsort label-1000-2
SELECT pk, col0 FROM view_2_tab0_881
----
144 values hashing to 9e511194628ea3f0baabd1108b674024

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 > 987 OR col3 < 249 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col3 > 987 OR col3 < 249)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_881 UNION ALL SELECT pk, col0 FROM view_2_tab0_881
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 > 987 OR col3 < 249 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col3 > 987 OR col3 < 249)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_881 UNION SELECT pk, col0 FROM view_2_tab0_881
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-1000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col3 > 987 OR col3 < 249 ) AS tab0_881
----
28 values hashing to 09592e6e8a16e1deb4b110b6908e98e5

query I rowsort label-1000-3
SELECT * FROM view_3_tab0_881
----
28 values hashing to 09592e6e8a16e1deb4b110b6908e98e5

query I rowsort label-1000-3
SELECT pk FROM tab0 WHERE col3 > 987 OR col3 < 249
----
28 values hashing to 09592e6e8a16e1deb4b110b6908e98e5

statement ok
DROP VIEW view_1_tab0_881

statement ok
DROP VIEW view_2_tab0_881

statement ok
DROP VIEW view_3_tab0_881

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_881') DROP VIEW view_1_tab1_881

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_881

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_881') DROP VIEW view_2_tab1_881

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_881

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_881') DROP VIEW view_3_tab1_881

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_881

statement ok
CREATE VIEW view_1_tab1_881 AS SELECT pk, col0 FROM tab1 WHERE col3 > 987 OR col3 < 249

statement ok
CREATE VIEW view_2_tab1_881 AS SELECT pk, col0 FROM tab1 WHERE NOT (col3 > 987 OR col3 < 249)

statement ok
CREATE VIEW view_3_tab1_881 AS SELECT pk FROM view_1_tab1_881

query II rowsort label-1000-1
SELECT pk, col0 FROM tab1 WHERE col3 > 987 OR col3 < 249
----
56 values hashing to cb42a22b0ad72c7e8455994991ee2809

query II rowsort label-1000-2
SELECT pk, col0 FROM tab1 WHERE NOT (col3 > 987 OR col3 < 249)
----
144 values hashing to 9e511194628ea3f0baabd1108b674024

query II rowsort label-1000-1
SELECT pk, col0 FROM view_1_tab1_881
----
56 values hashing to cb42a22b0ad72c7e8455994991ee2809

query II rowsort label-1000-2
SELECT pk, col0 FROM view_2_tab1_881
----
144 values hashing to 9e511194628ea3f0baabd1108b674024

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 > 987 OR col3 < 249 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col3 > 987 OR col3 < 249)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_881 UNION ALL SELECT pk, col0 FROM view_2_tab1_881
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 > 987 OR col3 < 249 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col3 > 987 OR col3 < 249)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_881 UNION SELECT pk, col0 FROM view_2_tab1_881
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-1000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col3 > 987 OR col3 < 249 ) AS tab1_881
----
28 values hashing to 09592e6e8a16e1deb4b110b6908e98e5

query I rowsort label-1000-3
SELECT * FROM view_3_tab1_881
----
28 values hashing to 09592e6e8a16e1deb4b110b6908e98e5

query I rowsort label-1000-3
SELECT pk FROM tab1 WHERE col3 > 987 OR col3 < 249
----
28 values hashing to 09592e6e8a16e1deb4b110b6908e98e5

statement ok
DROP VIEW view_1_tab1_881

statement ok
DROP VIEW view_2_tab1_881

statement ok
DROP VIEW view_3_tab1_881

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_881') DROP VIEW view_1_tab2_881

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_881

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_881') DROP VIEW view_2_tab2_881

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_881

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_881') DROP VIEW view_3_tab2_881

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_881

statement ok
CREATE VIEW view_1_tab2_881 AS SELECT pk, col0 FROM tab2 WHERE col3 > 987 OR col3 < 249

statement ok
CREATE VIEW view_2_tab2_881 AS SELECT pk, col0 FROM tab2 WHERE NOT (col3 > 987 OR col3 < 249)

statement ok
CREATE VIEW view_3_tab2_881 AS SELECT pk FROM view_1_tab2_881

query II rowsort label-1000-1
SELECT pk, col0 FROM tab2 WHERE col3 > 987 OR col3 < 249
----
56 values hashing to cb42a22b0ad72c7e8455994991ee2809

query II rowsort label-1000-2
SELECT pk, col0 FROM tab2 WHERE NOT (col3 > 987 OR col3 < 249)
----
144 values hashing to 9e511194628ea3f0baabd1108b674024

query II rowsort label-1000-1
SELECT pk, col0 FROM view_1_tab2_881
----
56 values hashing to cb42a22b0ad72c7e8455994991ee2809

query II rowsort label-1000-2
SELECT pk, col0 FROM view_2_tab2_881
----
144 values hashing to 9e511194628ea3f0baabd1108b674024

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 > 987 OR col3 < 249 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col3 > 987 OR col3 < 249)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_881 UNION ALL SELECT pk, col0 FROM view_2_tab2_881
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 > 987 OR col3 < 249 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col3 > 987 OR col3 < 249)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_881 UNION SELECT pk, col0 FROM view_2_tab2_881
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-1000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col3 > 987 OR col3 < 249 ) AS tab2_881
----
28 values hashing to 09592e6e8a16e1deb4b110b6908e98e5

query I rowsort label-1000-3
SELECT * FROM view_3_tab2_881
----
28 values hashing to 09592e6e8a16e1deb4b110b6908e98e5

query I rowsort label-1000-3
SELECT pk FROM tab2 WHERE col3 > 987 OR col3 < 249
----
28 values hashing to 09592e6e8a16e1deb4b110b6908e98e5

statement ok
DROP VIEW view_1_tab2_881

statement ok
DROP VIEW view_2_tab2_881

statement ok
DROP VIEW view_3_tab2_881

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_881') DROP VIEW view_1_tab3_881

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_881

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_881') DROP VIEW view_2_tab3_881

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_881

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_881') DROP VIEW view_3_tab3_881

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_881

statement ok
CREATE VIEW view_1_tab3_881 AS SELECT pk, col0 FROM tab3 WHERE col3 > 987 OR col3 < 249

statement ok
CREATE VIEW view_2_tab3_881 AS SELECT pk, col0 FROM tab3 WHERE NOT (col3 > 987 OR col3 < 249)

statement ok
CREATE VIEW view_3_tab3_881 AS SELECT pk FROM view_1_tab3_881

query II rowsort label-1000-1
SELECT pk, col0 FROM tab3 WHERE col3 > 987 OR col3 < 249
----
56 values hashing to cb42a22b0ad72c7e8455994991ee2809

query II rowsort label-1000-2
SELECT pk, col0 FROM tab3 WHERE NOT (col3 > 987 OR col3 < 249)
----
144 values hashing to 9e511194628ea3f0baabd1108b674024

query II rowsort label-1000-1
SELECT pk, col0 FROM view_1_tab3_881
----
56 values hashing to cb42a22b0ad72c7e8455994991ee2809

query II rowsort label-1000-2
SELECT pk, col0 FROM view_2_tab3_881
----
144 values hashing to 9e511194628ea3f0baabd1108b674024

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 > 987 OR col3 < 249 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col3 > 987 OR col3 < 249)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_881 UNION ALL SELECT pk, col0 FROM view_2_tab3_881
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 > 987 OR col3 < 249 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col3 > 987 OR col3 < 249)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_881 UNION SELECT pk, col0 FROM view_2_tab3_881
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-1000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col3 > 987 OR col3 < 249 ) AS tab3_881
----
28 values hashing to 09592e6e8a16e1deb4b110b6908e98e5

query I rowsort label-1000-3
SELECT * FROM view_3_tab3_881
----
28 values hashing to 09592e6e8a16e1deb4b110b6908e98e5

query I rowsort label-1000-3
SELECT pk FROM tab3 WHERE col3 > 987 OR col3 < 249
----
28 values hashing to 09592e6e8a16e1deb4b110b6908e98e5

statement ok
DROP VIEW view_1_tab3_881

statement ok
DROP VIEW view_2_tab3_881

statement ok
DROP VIEW view_3_tab3_881

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_881') DROP VIEW view_1_tab4_881

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_881

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_881') DROP VIEW view_2_tab4_881

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_881

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_881') DROP VIEW view_3_tab4_881

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_881

statement ok
CREATE VIEW view_1_tab4_881 AS SELECT pk, col0 FROM tab4 WHERE col3 > 987 OR col3 < 249

statement ok
CREATE VIEW view_2_tab4_881 AS SELECT pk, col0 FROM tab4 WHERE NOT (col3 > 987 OR col3 < 249)

statement ok
CREATE VIEW view_3_tab4_881 AS SELECT pk FROM view_1_tab4_881

query II rowsort label-1000-1
SELECT pk, col0 FROM tab4 WHERE col3 > 987 OR col3 < 249
----
56 values hashing to cb42a22b0ad72c7e8455994991ee2809

query II rowsort label-1000-2
SELECT pk, col0 FROM tab4 WHERE NOT (col3 > 987 OR col3 < 249)
----
144 values hashing to 9e511194628ea3f0baabd1108b674024

query II rowsort label-1000-1
SELECT pk, col0 FROM view_1_tab4_881
----
56 values hashing to cb42a22b0ad72c7e8455994991ee2809

query II rowsort label-1000-2
SELECT pk, col0 FROM view_2_tab4_881
----
144 values hashing to 9e511194628ea3f0baabd1108b674024

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 > 987 OR col3 < 249 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col3 > 987 OR col3 < 249)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_881 UNION ALL SELECT pk, col0 FROM view_2_tab4_881
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 > 987 OR col3 < 249 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col3 > 987 OR col3 < 249)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_881 UNION SELECT pk, col0 FROM view_2_tab4_881
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-1000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col3 > 987 OR col3 < 249 ) AS tab4_881
----
28 values hashing to 09592e6e8a16e1deb4b110b6908e98e5

query I rowsort label-1000-3
SELECT * FROM view_3_tab4_881
----
28 values hashing to 09592e6e8a16e1deb4b110b6908e98e5

query I rowsort label-1000-3
SELECT pk FROM tab4 WHERE col3 > 987 OR col3 < 249
----
28 values hashing to 09592e6e8a16e1deb4b110b6908e98e5

statement ok
DROP VIEW view_1_tab4_881

statement ok
DROP VIEW view_2_tab4_881

statement ok
DROP VIEW view_3_tab4_881

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_882') DROP VIEW view_1_tab0_882

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_882

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_882') DROP VIEW view_2_tab0_882

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_882

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_882') DROP VIEW view_3_tab0_882

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_882

statement ok
CREATE VIEW view_1_tab0_882 AS SELECT pk, col0 FROM tab0 WHERE col3 IN (756,339,745,487)

statement ok
CREATE VIEW view_2_tab0_882 AS SELECT pk, col0 FROM tab0 WHERE NOT (col3 IN (756,339,745,487))

statement ok
CREATE VIEW view_3_tab0_882 AS SELECT pk FROM view_1_tab0_882

query II rowsort label-1100-1
SELECT pk, col0 FROM tab0 WHERE col3 IN (756,339,745,487)
----

query II rowsort label-1100-2
SELECT pk, col0 FROM tab0 WHERE NOT (col3 IN (756,339,745,487))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-1100-1
SELECT pk, col0 FROM view_1_tab0_882
----

query II rowsort label-1100-2
SELECT pk, col0 FROM view_2_tab0_882
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 IN (756,339,745,487) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col3 IN (756,339,745,487))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_882 UNION ALL SELECT pk, col0 FROM view_2_tab0_882
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 IN (756,339,745,487) UNION SELECT pk, col0 FROM tab0 WHERE NOT (col3 IN (756,339,745,487))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_882 UNION SELECT pk, col0 FROM view_2_tab0_882
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-1100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col3 IN (756,339,745,487) ) AS tab0_882
----

query I rowsort label-1100-3
SELECT * FROM view_3_tab0_882
----

query I rowsort label-1100-3
SELECT pk FROM tab0 WHERE col3 IN (756,339,745,487)
----

statement ok
DROP VIEW view_1_tab0_882

statement ok
DROP VIEW view_2_tab0_882

statement ok
DROP VIEW view_3_tab0_882

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_882') DROP VIEW view_1_tab1_882

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_882

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_882') DROP VIEW view_2_tab1_882

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_882

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_882') DROP VIEW view_3_tab1_882

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_882

statement ok
CREATE VIEW view_1_tab1_882 AS SELECT pk, col0 FROM tab1 WHERE col3 IN (756,339,745,487)

statement ok
CREATE VIEW view_2_tab1_882 AS SELECT pk, col0 FROM tab1 WHERE NOT (col3 IN (756,339,745,487))

statement ok
CREATE VIEW view_3_tab1_882 AS SELECT pk FROM view_1_tab1_882

query II rowsort label-1100-1
SELECT pk, col0 FROM tab1 WHERE col3 IN (756,339,745,487)
----

query II rowsort label-1100-2
SELECT pk, col0 FROM tab1 WHERE NOT (col3 IN (756,339,745,487))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-1100-1
SELECT pk, col0 FROM view_1_tab1_882
----

query II rowsort label-1100-2
SELECT pk, col0 FROM view_2_tab1_882
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 IN (756,339,745,487) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col3 IN (756,339,745,487))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_882 UNION ALL SELECT pk, col0 FROM view_2_tab1_882
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 IN (756,339,745,487) UNION SELECT pk, col0 FROM tab1 WHERE NOT (col3 IN (756,339,745,487))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_882 UNION SELECT pk, col0 FROM view_2_tab1_882
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-1100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col3 IN (756,339,745,487) ) AS tab1_882
----

query I rowsort label-1100-3
SELECT * FROM view_3_tab1_882
----

query I rowsort label-1100-3
SELECT pk FROM tab1 WHERE col3 IN (756,339,745,487)
----

statement ok
DROP VIEW view_1_tab1_882

statement ok
DROP VIEW view_2_tab1_882

statement ok
DROP VIEW view_3_tab1_882

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_882') DROP VIEW view_1_tab2_882

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_882

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_882') DROP VIEW view_2_tab2_882

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_882

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_882') DROP VIEW view_3_tab2_882

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_882

statement ok
CREATE VIEW view_1_tab2_882 AS SELECT pk, col0 FROM tab2 WHERE col3 IN (756,339,745,487)

statement ok
CREATE VIEW view_2_tab2_882 AS SELECT pk, col0 FROM tab2 WHERE NOT (col3 IN (756,339,745,487))

statement ok
CREATE VIEW view_3_tab2_882 AS SELECT pk FROM view_1_tab2_882

query II rowsort label-1100-1
SELECT pk, col0 FROM tab2 WHERE col3 IN (756,339,745,487)
----

query II rowsort label-1100-2
SELECT pk, col0 FROM tab2 WHERE NOT (col3 IN (756,339,745,487))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-1100-1
SELECT pk, col0 FROM view_1_tab2_882
----

query II rowsort label-1100-2
SELECT pk, col0 FROM view_2_tab2_882
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 IN (756,339,745,487) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col3 IN (756,339,745,487))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_882 UNION ALL SELECT pk, col0 FROM view_2_tab2_882
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 IN (756,339,745,487) UNION SELECT pk, col0 FROM tab2 WHERE NOT (col3 IN (756,339,745,487))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_882 UNION SELECT pk, col0 FROM view_2_tab2_882
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-1100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col3 IN (756,339,745,487) ) AS tab2_882
----

query I rowsort label-1100-3
SELECT * FROM view_3_tab2_882
----

query I rowsort label-1100-3
SELECT pk FROM tab2 WHERE col3 IN (756,339,745,487)
----

statement ok
DROP VIEW view_1_tab2_882

statement ok
DROP VIEW view_2_tab2_882

statement ok
DROP VIEW view_3_tab2_882

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_882') DROP VIEW view_1_tab3_882

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_882

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_882') DROP VIEW view_2_tab3_882

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_882

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_882') DROP VIEW view_3_tab3_882

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_882

statement ok
CREATE VIEW view_1_tab3_882 AS SELECT pk, col0 FROM tab3 WHERE col3 IN (756,339,745,487)

statement ok
CREATE VIEW view_2_tab3_882 AS SELECT pk, col0 FROM tab3 WHERE NOT (col3 IN (756,339,745,487))

statement ok
CREATE VIEW view_3_tab3_882 AS SELECT pk FROM view_1_tab3_882

query II rowsort label-1100-1
SELECT pk, col0 FROM tab3 WHERE col3 IN (756,339,745,487)
----

query II rowsort label-1100-2
SELECT pk, col0 FROM tab3 WHERE NOT (col3 IN (756,339,745,487))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-1100-1
SELECT pk, col0 FROM view_1_tab3_882
----

query II rowsort label-1100-2
SELECT pk, col0 FROM view_2_tab3_882
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 IN (756,339,745,487) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col3 IN (756,339,745,487))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_882 UNION ALL SELECT pk, col0 FROM view_2_tab3_882
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 IN (756,339,745,487) UNION SELECT pk, col0 FROM tab3 WHERE NOT (col3 IN (756,339,745,487))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_882 UNION SELECT pk, col0 FROM view_2_tab3_882
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-1100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col3 IN (756,339,745,487) ) AS tab3_882
----

query I rowsort label-1100-3
SELECT * FROM view_3_tab3_882
----

query I rowsort label-1100-3
SELECT pk FROM tab3 WHERE col3 IN (756,339,745,487)
----

statement ok
DROP VIEW view_1_tab3_882

statement ok
DROP VIEW view_2_tab3_882

statement ok
DROP VIEW view_3_tab3_882

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_882') DROP VIEW view_1_tab4_882

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_882

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_882') DROP VIEW view_2_tab4_882

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_882

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_882') DROP VIEW view_3_tab4_882

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_882

statement ok
CREATE VIEW view_1_tab4_882 AS SELECT pk, col0 FROM tab4 WHERE col3 IN (756,339,745,487)

statement ok
CREATE VIEW view_2_tab4_882 AS SELECT pk, col0 FROM tab4 WHERE NOT (col3 IN (756,339,745,487))

statement ok
CREATE VIEW view_3_tab4_882 AS SELECT pk FROM view_1_tab4_882

query II rowsort label-1100-1
SELECT pk, col0 FROM tab4 WHERE col3 IN (756,339,745,487)
----

query II rowsort label-1100-2
SELECT pk, col0 FROM tab4 WHERE NOT (col3 IN (756,339,745,487))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-1100-1
SELECT pk, col0 FROM view_1_tab4_882
----

query II rowsort label-1100-2
SELECT pk, col0 FROM view_2_tab4_882
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 IN (756,339,745,487) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col3 IN (756,339,745,487))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_882 UNION ALL SELECT pk, col0 FROM view_2_tab4_882
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 IN (756,339,745,487) UNION SELECT pk, col0 FROM tab4 WHERE NOT (col3 IN (756,339,745,487))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_882 UNION SELECT pk, col0 FROM view_2_tab4_882
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-1100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col3 IN (756,339,745,487) ) AS tab4_882
----

query I rowsort label-1100-3
SELECT * FROM view_3_tab4_882
----

query I rowsort label-1100-3
SELECT pk FROM tab4 WHERE col3 IN (756,339,745,487)
----

statement ok
DROP VIEW view_1_tab4_882

statement ok
DROP VIEW view_2_tab4_882

statement ok
DROP VIEW view_3_tab4_882

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_883') DROP VIEW view_1_tab0_883

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_883

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_883') DROP VIEW view_2_tab0_883

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_883

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_883') DROP VIEW view_3_tab0_883

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_883

statement ok
CREATE VIEW view_1_tab0_883 AS SELECT pk, col0 FROM tab0 WHERE col4 = 31.39

statement ok
CREATE VIEW view_2_tab0_883 AS SELECT pk, col0 FROM tab0 WHERE NOT (col4 = 31.39)

statement ok
CREATE VIEW view_3_tab0_883 AS SELECT pk FROM view_1_tab0_883

query II rowsort label-1200-1
SELECT pk, col0 FROM tab0 WHERE col4 = 31.39
----

query II rowsort label-1200-2
SELECT pk, col0 FROM tab0 WHERE NOT (col4 = 31.39)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-1200-1
SELECT pk, col0 FROM view_1_tab0_883
----

query II rowsort label-1200-2
SELECT pk, col0 FROM view_2_tab0_883
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col4 = 31.39 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col4 = 31.39)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_883 UNION ALL SELECT pk, col0 FROM view_2_tab0_883
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col4 = 31.39 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col4 = 31.39)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_883 UNION SELECT pk, col0 FROM view_2_tab0_883
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-1200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col4 = 31.39 ) AS tab0_883
----

query I rowsort label-1200-3
SELECT * FROM view_3_tab0_883
----

query I rowsort label-1200-3
SELECT pk FROM tab0 WHERE col4 = 31.39
----

statement ok
DROP VIEW view_1_tab0_883

statement ok
DROP VIEW view_2_tab0_883

statement ok
DROP VIEW view_3_tab0_883

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_883') DROP VIEW view_1_tab1_883

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_883

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_883') DROP VIEW view_2_tab1_883

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_883

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_883') DROP VIEW view_3_tab1_883

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_883

statement ok
CREATE VIEW view_1_tab1_883 AS SELECT pk, col0 FROM tab1 WHERE col4 = 31.39

statement ok
CREATE VIEW view_2_tab1_883 AS SELECT pk, col0 FROM tab1 WHERE NOT (col4 = 31.39)

statement ok
CREATE VIEW view_3_tab1_883 AS SELECT pk FROM view_1_tab1_883

query II rowsort label-1200-1
SELECT pk, col0 FROM tab1 WHERE col4 = 31.39
----

query II rowsort label-1200-2
SELECT pk, col0 FROM tab1 WHERE NOT (col4 = 31.39)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-1200-1
SELECT pk, col0 FROM view_1_tab1_883
----

query II rowsort label-1200-2
SELECT pk, col0 FROM view_2_tab1_883
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col4 = 31.39 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col4 = 31.39)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_883 UNION ALL SELECT pk, col0 FROM view_2_tab1_883
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col4 = 31.39 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col4 = 31.39)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_883 UNION SELECT pk, col0 FROM view_2_tab1_883
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-1200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col4 = 31.39 ) AS tab1_883
----

query I rowsort label-1200-3
SELECT * FROM view_3_tab1_883
----

query I rowsort label-1200-3
SELECT pk FROM tab1 WHERE col4 = 31.39
----

statement ok
DROP VIEW view_1_tab1_883

statement ok
DROP VIEW view_2_tab1_883

statement ok
DROP VIEW view_3_tab1_883

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_883') DROP VIEW view_1_tab2_883

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_883

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_883') DROP VIEW view_2_tab2_883

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_883

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_883') DROP VIEW view_3_tab2_883

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_883

statement ok
CREATE VIEW view_1_tab2_883 AS SELECT pk, col0 FROM tab2 WHERE col4 = 31.39

statement ok
CREATE VIEW view_2_tab2_883 AS SELECT pk, col0 FROM tab2 WHERE NOT (col4 = 31.39)

statement ok
CREATE VIEW view_3_tab2_883 AS SELECT pk FROM view_1_tab2_883

query II rowsort label-1200-1
SELECT pk, col0 FROM tab2 WHERE col4 = 31.39
----

query II rowsort label-1200-2
SELECT pk, col0 FROM tab2 WHERE NOT (col4 = 31.39)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-1200-1
SELECT pk, col0 FROM view_1_tab2_883
----

query II rowsort label-1200-2
SELECT pk, col0 FROM view_2_tab2_883
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col4 = 31.39 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col4 = 31.39)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_883 UNION ALL SELECT pk, col0 FROM view_2_tab2_883
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col4 = 31.39 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col4 = 31.39)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_883 UNION SELECT pk, col0 FROM view_2_tab2_883
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-1200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col4 = 31.39 ) AS tab2_883
----

query I rowsort label-1200-3
SELECT * FROM view_3_tab2_883
----

query I rowsort label-1200-3
SELECT pk FROM tab2 WHERE col4 = 31.39
----

statement ok
DROP VIEW view_1_tab2_883

statement ok
DROP VIEW view_2_tab2_883

statement ok
DROP VIEW view_3_tab2_883

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_883') DROP VIEW view_1_tab3_883

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_883

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_883') DROP VIEW view_2_tab3_883

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_883

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_883') DROP VIEW view_3_tab3_883

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_883

statement ok
CREATE VIEW view_1_tab3_883 AS SELECT pk, col0 FROM tab3 WHERE col4 = 31.39

statement ok
CREATE VIEW view_2_tab3_883 AS SELECT pk, col0 FROM tab3 WHERE NOT (col4 = 31.39)

statement ok
CREATE VIEW view_3_tab3_883 AS SELECT pk FROM view_1_tab3_883

query II rowsort label-1200-1
SELECT pk, col0 FROM tab3 WHERE col4 = 31.39
----

query II rowsort label-1200-2
SELECT pk, col0 FROM tab3 WHERE NOT (col4 = 31.39)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-1200-1
SELECT pk, col0 FROM view_1_tab3_883
----

query II rowsort label-1200-2
SELECT pk, col0 FROM view_2_tab3_883
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col4 = 31.39 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col4 = 31.39)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_883 UNION ALL SELECT pk, col0 FROM view_2_tab3_883
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col4 = 31.39 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col4 = 31.39)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_883 UNION SELECT pk, col0 FROM view_2_tab3_883
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-1200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col4 = 31.39 ) AS tab3_883
----

query I rowsort label-1200-3
SELECT * FROM view_3_tab3_883
----

query I rowsort label-1200-3
SELECT pk FROM tab3 WHERE col4 = 31.39
----

statement ok
DROP VIEW view_1_tab3_883

statement ok
DROP VIEW view_2_tab3_883

statement ok
DROP VIEW view_3_tab3_883

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_883') DROP VIEW view_1_tab4_883

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_883

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_883') DROP VIEW view_2_tab4_883

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_883

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_883') DROP VIEW view_3_tab4_883

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_883

statement ok
CREATE VIEW view_1_tab4_883 AS SELECT pk, col0 FROM tab4 WHERE col4 = 31.39

statement ok
CREATE VIEW view_2_tab4_883 AS SELECT pk, col0 FROM tab4 WHERE NOT (col4 = 31.39)

statement ok
CREATE VIEW view_3_tab4_883 AS SELECT pk FROM view_1_tab4_883

query II rowsort label-1200-1
SELECT pk, col0 FROM tab4 WHERE col4 = 31.39
----

query II rowsort label-1200-2
SELECT pk, col0 FROM tab4 WHERE NOT (col4 = 31.39)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-1200-1
SELECT pk, col0 FROM view_1_tab4_883
----

query II rowsort label-1200-2
SELECT pk, col0 FROM view_2_tab4_883
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col4 = 31.39 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col4 = 31.39)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_883 UNION ALL SELECT pk, col0 FROM view_2_tab4_883
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col4 = 31.39 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col4 = 31.39)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_883 UNION SELECT pk, col0 FROM view_2_tab4_883
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-1200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col4 = 31.39 ) AS tab4_883
----

query I rowsort label-1200-3
SELECT * FROM view_3_tab4_883
----

query I rowsort label-1200-3
SELECT pk FROM tab4 WHERE col4 = 31.39
----

statement ok
DROP VIEW view_1_tab4_883

statement ok
DROP VIEW view_2_tab4_883

statement ok
DROP VIEW view_3_tab4_883

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_884') DROP VIEW view_1_tab0_884

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_884

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_884') DROP VIEW view_2_tab0_884

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_884

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_884') DROP VIEW view_3_tab0_884

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_884

statement ok
CREATE VIEW view_1_tab0_884 AS SELECT pk, col0 FROM tab0 WHERE ((col1 <= 723.96)) OR col1 > 109.52 OR (col4 > 664.40)

statement ok
CREATE VIEW view_2_tab0_884 AS SELECT pk, col0 FROM tab0 WHERE NOT (((col1 <= 723.96)) OR col1 > 109.52 OR (col4 > 664.40))

statement ok
CREATE VIEW view_3_tab0_884 AS SELECT pk FROM view_1_tab0_884

query II rowsort label-1300-1
SELECT pk, col0 FROM tab0 WHERE ((col1 <= 723.96)) OR col1 > 109.52 OR (col4 > 664.40)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-1300-2
SELECT pk, col0 FROM tab0 WHERE NOT (((col1 <= 723.96)) OR col1 > 109.52 OR (col4 > 664.40))
----

query II rowsort label-1300-1
SELECT pk, col0 FROM view_1_tab0_884
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-1300-2
SELECT pk, col0 FROM view_2_tab0_884
----

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE ((col1 <= 723.96)) OR col1 > 109.52 OR (col4 > 664.40) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (((col1 <= 723.96)) OR col1 > 109.52 OR (col4 > 664.40))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_884 UNION ALL SELECT pk, col0 FROM view_2_tab0_884
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE ((col1 <= 723.96)) OR col1 > 109.52 OR (col4 > 664.40) UNION SELECT pk, col0 FROM tab0 WHERE NOT (((col1 <= 723.96)) OR col1 > 109.52 OR (col4 > 664.40))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_884 UNION SELECT pk, col0 FROM view_2_tab0_884
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-1300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE ((col1 <= 723.96)) OR col1 > 109.52 OR (col4 > 664.40) ) AS tab0_884
----
100 values hashing to d7fd31c3916c207fd3117332326c3f37

query I rowsort label-1300-3
SELECT * FROM view_3_tab0_884
----
100 values hashing to d7fd31c3916c207fd3117332326c3f37

query I rowsort label-1300-3
SELECT pk FROM tab0 WHERE ((col1 <= 723.96)) OR col1 > 109.52 OR (col4 > 664.40)
----
100 values hashing to d7fd31c3916c207fd3117332326c3f37

statement ok
DROP VIEW view_1_tab0_884

statement ok
DROP VIEW view_2_tab0_884

statement ok
DROP VIEW view_3_tab0_884

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_884') DROP VIEW view_1_tab1_884

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_884

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_884') DROP VIEW view_2_tab1_884

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_884

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_884') DROP VIEW view_3_tab1_884

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_884

statement ok
CREATE VIEW view_1_tab1_884 AS SELECT pk, col0 FROM tab1 WHERE ((col1 <= 723.96)) OR col1 > 109.52 OR (col4 > 664.40)

statement ok
CREATE VIEW view_2_tab1_884 AS SELECT pk, col0 FROM tab1 WHERE NOT (((col1 <= 723.96)) OR col1 > 109.52 OR (col4 > 664.40))

statement ok
CREATE VIEW view_3_tab1_884 AS SELECT pk FROM view_1_tab1_884

query II rowsort label-1300-1
SELECT pk, col0 FROM tab1 WHERE ((col1 <= 723.96)) OR col1 > 109.52 OR (col4 > 664.40)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-1300-2
SELECT pk, col0 FROM tab1 WHERE NOT (((col1 <= 723.96)) OR col1 > 109.52 OR (col4 > 664.40))
----

query II rowsort label-1300-1
SELECT pk, col0 FROM view_1_tab1_884
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-1300-2
SELECT pk, col0 FROM view_2_tab1_884
----

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE ((col1 <= 723.96)) OR col1 > 109.52 OR (col4 > 664.40) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (((col1 <= 723.96)) OR col1 > 109.52 OR (col4 > 664.40))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_884 UNION ALL SELECT pk, col0 FROM view_2_tab1_884
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE ((col1 <= 723.96)) OR col1 > 109.52 OR (col4 > 664.40) UNION SELECT pk, col0 FROM tab1 WHERE NOT (((col1 <= 723.96)) OR col1 > 109.52 OR (col4 > 664.40))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_884 UNION SELECT pk, col0 FROM view_2_tab1_884
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-1300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE ((col1 <= 723.96)) OR col1 > 109.52 OR (col4 > 664.40) ) AS tab1_884
----
100 values hashing to d7fd31c3916c207fd3117332326c3f37

query I rowsort label-1300-3
SELECT * FROM view_3_tab1_884
----
100 values hashing to d7fd31c3916c207fd3117332326c3f37

query I rowsort label-1300-3
SELECT pk FROM tab1 WHERE ((col1 <= 723.96)) OR col1 > 109.52 OR (col4 > 664.40)
----
100 values hashing to d7fd31c3916c207fd3117332326c3f37

statement ok
DROP VIEW view_1_tab1_884

statement ok
DROP VIEW view_2_tab1_884

statement ok
DROP VIEW view_3_tab1_884

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_884') DROP VIEW view_1_tab2_884

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_884

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_884') DROP VIEW view_2_tab2_884

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_884

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_884') DROP VIEW view_3_tab2_884

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_884

statement ok
CREATE VIEW view_1_tab2_884 AS SELECT pk, col0 FROM tab2 WHERE ((col1 <= 723.96)) OR col1 > 109.52 OR (col4 > 664.40)

statement ok
CREATE VIEW view_2_tab2_884 AS SELECT pk, col0 FROM tab2 WHERE NOT (((col1 <= 723.96)) OR col1 > 109.52 OR (col4 > 664.40))

statement ok
CREATE VIEW view_3_tab2_884 AS SELECT pk FROM view_1_tab2_884

query II rowsort label-1300-1
SELECT pk, col0 FROM tab2 WHERE ((col1 <= 723.96)) OR col1 > 109.52 OR (col4 > 664.40)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-1300-2
SELECT pk, col0 FROM tab2 WHERE NOT (((col1 <= 723.96)) OR col1 > 109.52 OR (col4 > 664.40))
----

query II rowsort label-1300-1
SELECT pk, col0 FROM view_1_tab2_884
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-1300-2
SELECT pk, col0 FROM view_2_tab2_884
----

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE ((col1 <= 723.96)) OR col1 > 109.52 OR (col4 > 664.40) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (((col1 <= 723.96)) OR col1 > 109.52 OR (col4 > 664.40))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_884 UNION ALL SELECT pk, col0 FROM view_2_tab2_884
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE ((col1 <= 723.96)) OR col1 > 109.52 OR (col4 > 664.40) UNION SELECT pk, col0 FROM tab2 WHERE NOT (((col1 <= 723.96)) OR col1 > 109.52 OR (col4 > 664.40))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_884 UNION SELECT pk, col0 FROM view_2_tab2_884
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-1300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE ((col1 <= 723.96)) OR col1 > 109.52 OR (col4 > 664.40) ) AS tab2_884
----
100 values hashing to d7fd31c3916c207fd3117332326c3f37

query I rowsort label-1300-3
SELECT * FROM view_3_tab2_884
----
100 values hashing to d7fd31c3916c207fd3117332326c3f37

query I rowsort label-1300-3
SELECT pk FROM tab2 WHERE ((col1 <= 723.96)) OR col1 > 109.52 OR (col4 > 664.40)
----
100 values hashing to d7fd31c3916c207fd3117332326c3f37

statement ok
DROP VIEW view_1_tab2_884

statement ok
DROP VIEW view_2_tab2_884

statement ok
DROP VIEW view_3_tab2_884

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_884') DROP VIEW view_1_tab3_884

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_884

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_884') DROP VIEW view_2_tab3_884

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_884

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_884') DROP VIEW view_3_tab3_884

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_884

statement ok
CREATE VIEW view_1_tab3_884 AS SELECT pk, col0 FROM tab3 WHERE ((col1 <= 723.96)) OR col1 > 109.52 OR (col4 > 664.40)

statement ok
CREATE VIEW view_2_tab3_884 AS SELECT pk, col0 FROM tab3 WHERE NOT (((col1 <= 723.96)) OR col1 > 109.52 OR (col4 > 664.40))

statement ok
CREATE VIEW view_3_tab3_884 AS SELECT pk FROM view_1_tab3_884

query II rowsort label-1300-1
SELECT pk, col0 FROM tab3 WHERE ((col1 <= 723.96)) OR col1 > 109.52 OR (col4 > 664.40)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-1300-2
SELECT pk, col0 FROM tab3 WHERE NOT (((col1 <= 723.96)) OR col1 > 109.52 OR (col4 > 664.40))
----

query II rowsort label-1300-1
SELECT pk, col0 FROM view_1_tab3_884
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-1300-2
SELECT pk, col0 FROM view_2_tab3_884
----

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE ((col1 <= 723.96)) OR col1 > 109.52 OR (col4 > 664.40) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (((col1 <= 723.96)) OR col1 > 109.52 OR (col4 > 664.40))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_884 UNION ALL SELECT pk, col0 FROM view_2_tab3_884
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE ((col1 <= 723.96)) OR col1 > 109.52 OR (col4 > 664.40) UNION SELECT pk, col0 FROM tab3 WHERE NOT (((col1 <= 723.96)) OR col1 > 109.52 OR (col4 > 664.40))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_884 UNION SELECT pk, col0 FROM view_2_tab3_884
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-1300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE ((col1 <= 723.96)) OR col1 > 109.52 OR (col4 > 664.40) ) AS tab3_884
----
100 values hashing to d7fd31c3916c207fd3117332326c3f37

query I rowsort label-1300-3
SELECT * FROM view_3_tab3_884
----
100 values hashing to d7fd31c3916c207fd3117332326c3f37

query I rowsort label-1300-3
SELECT pk FROM tab3 WHERE ((col1 <= 723.96)) OR col1 > 109.52 OR (col4 > 664.40)
----
100 values hashing to d7fd31c3916c207fd3117332326c3f37

statement ok
DROP VIEW view_1_tab3_884

statement ok
DROP VIEW view_2_tab3_884

statement ok
DROP VIEW view_3_tab3_884

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_884') DROP VIEW view_1_tab4_884

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_884

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_884') DROP VIEW view_2_tab4_884

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_884

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_884') DROP VIEW view_3_tab4_884

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_884

statement ok
CREATE VIEW view_1_tab4_884 AS SELECT pk, col0 FROM tab4 WHERE ((col1 <= 723.96)) OR col1 > 109.52 OR (col4 > 664.40)

statement ok
CREATE VIEW view_2_tab4_884 AS SELECT pk, col0 FROM tab4 WHERE NOT (((col1 <= 723.96)) OR col1 > 109.52 OR (col4 > 664.40))

statement ok
CREATE VIEW view_3_tab4_884 AS SELECT pk FROM view_1_tab4_884

query II rowsort label-1300-1
SELECT pk, col0 FROM tab4 WHERE ((col1 <= 723.96)) OR col1 > 109.52 OR (col4 > 664.40)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-1300-2
SELECT pk, col0 FROM tab4 WHERE NOT (((col1 <= 723.96)) OR col1 > 109.52 OR (col4 > 664.40))
----

query II rowsort label-1300-1
SELECT pk, col0 FROM view_1_tab4_884
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-1300-2
SELECT pk, col0 FROM view_2_tab4_884
----

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE ((col1 <= 723.96)) OR col1 > 109.52 OR (col4 > 664.40) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (((col1 <= 723.96)) OR col1 > 109.52 OR (col4 > 664.40))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_884 UNION ALL SELECT pk, col0 FROM view_2_tab4_884
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE ((col1 <= 723.96)) OR col1 > 109.52 OR (col4 > 664.40) UNION SELECT pk, col0 FROM tab4 WHERE NOT (((col1 <= 723.96)) OR col1 > 109.52 OR (col4 > 664.40))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_884 UNION SELECT pk, col0 FROM view_2_tab4_884
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-1300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE ((col1 <= 723.96)) OR col1 > 109.52 OR (col4 > 664.40) ) AS tab4_884
----
100 values hashing to d7fd31c3916c207fd3117332326c3f37

query I rowsort label-1300-3
SELECT * FROM view_3_tab4_884
----
100 values hashing to d7fd31c3916c207fd3117332326c3f37

query I rowsort label-1300-3
SELECT pk FROM tab4 WHERE ((col1 <= 723.96)) OR col1 > 109.52 OR (col4 > 664.40)
----
100 values hashing to d7fd31c3916c207fd3117332326c3f37

statement ok
DROP VIEW view_1_tab4_884

statement ok
DROP VIEW view_2_tab4_884

statement ok
DROP VIEW view_3_tab4_884

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_885') DROP VIEW view_1_tab0_885

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_885

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_885') DROP VIEW view_2_tab0_885

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_885

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_885') DROP VIEW view_3_tab0_885

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_885

statement ok
CREATE VIEW view_1_tab0_885 AS SELECT pk, col0 FROM tab0 WHERE col3 < 419

statement ok
CREATE VIEW view_2_tab0_885 AS SELECT pk, col0 FROM tab0 WHERE NOT (col3 < 419)

statement ok
CREATE VIEW view_3_tab0_885 AS SELECT pk FROM view_1_tab0_885

query II rowsort label-1400-1
SELECT pk, col0 FROM tab0 WHERE col3 < 419
----
96 values hashing to 2f28ddc78750f380ecc1dbe0f5d4cd6b

query II rowsort label-1400-2
SELECT pk, col0 FROM tab0 WHERE NOT (col3 < 419)
----
104 values hashing to 0fe2ebb40d17c04802c7d608a8c508f7

query II rowsort label-1400-1
SELECT pk, col0 FROM view_1_tab0_885
----
96 values hashing to 2f28ddc78750f380ecc1dbe0f5d4cd6b

query II rowsort label-1400-2
SELECT pk, col0 FROM view_2_tab0_885
----
104 values hashing to 0fe2ebb40d17c04802c7d608a8c508f7

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 < 419 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col3 < 419)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_885 UNION ALL SELECT pk, col0 FROM view_2_tab0_885
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 < 419 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col3 < 419)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_885 UNION SELECT pk, col0 FROM view_2_tab0_885
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-1400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col3 < 419 ) AS tab0_885
----
48 values hashing to 5401d4840718c0fe51deb0a80516444a

query I rowsort label-1400-3
SELECT * FROM view_3_tab0_885
----
48 values hashing to 5401d4840718c0fe51deb0a80516444a

query I rowsort label-1400-3
SELECT pk FROM tab0 WHERE col3 < 419
----
48 values hashing to 5401d4840718c0fe51deb0a80516444a

statement ok
DROP VIEW view_1_tab0_885

statement ok
DROP VIEW view_2_tab0_885

statement ok
DROP VIEW view_3_tab0_885

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_885') DROP VIEW view_1_tab1_885

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_885

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_885') DROP VIEW view_2_tab1_885

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_885

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_885') DROP VIEW view_3_tab1_885

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_885

statement ok
CREATE VIEW view_1_tab1_885 AS SELECT pk, col0 FROM tab1 WHERE col3 < 419

statement ok
CREATE VIEW view_2_tab1_885 AS SELECT pk, col0 FROM tab1 WHERE NOT (col3 < 419)

statement ok
CREATE VIEW view_3_tab1_885 AS SELECT pk FROM view_1_tab1_885

query II rowsort label-1400-1
SELECT pk, col0 FROM tab1 WHERE col3 < 419
----
96 values hashing to 2f28ddc78750f380ecc1dbe0f5d4cd6b

query II rowsort label-1400-2
SELECT pk, col0 FROM tab1 WHERE NOT (col3 < 419)
----
104 values hashing to 0fe2ebb40d17c04802c7d608a8c508f7

query II rowsort label-1400-1
SELECT pk, col0 FROM view_1_tab1_885
----
96 values hashing to 2f28ddc78750f380ecc1dbe0f5d4cd6b

query II rowsort label-1400-2
SELECT pk, col0 FROM view_2_tab1_885
----
104 values hashing to 0fe2ebb40d17c04802c7d608a8c508f7

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 < 419 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col3 < 419)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_885 UNION ALL SELECT pk, col0 FROM view_2_tab1_885
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 < 419 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col3 < 419)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_885 UNION SELECT pk, col0 FROM view_2_tab1_885
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-1400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col3 < 419 ) AS tab1_885
----
48 values hashing to 5401d4840718c0fe51deb0a80516444a

query I rowsort label-1400-3
SELECT * FROM view_3_tab1_885
----
48 values hashing to 5401d4840718c0fe51deb0a80516444a

query I rowsort label-1400-3
SELECT pk FROM tab1 WHERE col3 < 419
----
48 values hashing to 5401d4840718c0fe51deb0a80516444a

statement ok
DROP VIEW view_1_tab1_885

statement ok
DROP VIEW view_2_tab1_885

statement ok
DROP VIEW view_3_tab1_885

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_885') DROP VIEW view_1_tab2_885

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_885

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_885') DROP VIEW view_2_tab2_885

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_885

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_885') DROP VIEW view_3_tab2_885

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_885

statement ok
CREATE VIEW view_1_tab2_885 AS SELECT pk, col0 FROM tab2 WHERE col3 < 419

statement ok
CREATE VIEW view_2_tab2_885 AS SELECT pk, col0 FROM tab2 WHERE NOT (col3 < 419)

statement ok
CREATE VIEW view_3_tab2_885 AS SELECT pk FROM view_1_tab2_885

query II rowsort label-1400-1
SELECT pk, col0 FROM tab2 WHERE col3 < 419
----
96 values hashing to 2f28ddc78750f380ecc1dbe0f5d4cd6b

query II rowsort label-1400-2
SELECT pk, col0 FROM tab2 WHERE NOT (col3 < 419)
----
104 values hashing to 0fe2ebb40d17c04802c7d608a8c508f7

query II rowsort label-1400-1
SELECT pk, col0 FROM view_1_tab2_885
----
96 values hashing to 2f28ddc78750f380ecc1dbe0f5d4cd6b

query II rowsort label-1400-2
SELECT pk, col0 FROM view_2_tab2_885
----
104 values hashing to 0fe2ebb40d17c04802c7d608a8c508f7

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 < 419 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col3 < 419)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_885 UNION ALL SELECT pk, col0 FROM view_2_tab2_885
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 < 419 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col3 < 419)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_885 UNION SELECT pk, col0 FROM view_2_tab2_885
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-1400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col3 < 419 ) AS tab2_885
----
48 values hashing to 5401d4840718c0fe51deb0a80516444a

query I rowsort label-1400-3
SELECT * FROM view_3_tab2_885
----
48 values hashing to 5401d4840718c0fe51deb0a80516444a

query I rowsort label-1400-3
SELECT pk FROM tab2 WHERE col3 < 419
----
48 values hashing to 5401d4840718c0fe51deb0a80516444a

statement ok
DROP VIEW view_1_tab2_885

statement ok
DROP VIEW view_2_tab2_885

statement ok
DROP VIEW view_3_tab2_885

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_885') DROP VIEW view_1_tab3_885

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_885

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_885') DROP VIEW view_2_tab3_885

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_885

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_885') DROP VIEW view_3_tab3_885

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_885

statement ok
CREATE VIEW view_1_tab3_885 AS SELECT pk, col0 FROM tab3 WHERE col3 < 419

statement ok
CREATE VIEW view_2_tab3_885 AS SELECT pk, col0 FROM tab3 WHERE NOT (col3 < 419)

statement ok
CREATE VIEW view_3_tab3_885 AS SELECT pk FROM view_1_tab3_885

query II rowsort label-1400-1
SELECT pk, col0 FROM tab3 WHERE col3 < 419
----
96 values hashing to 2f28ddc78750f380ecc1dbe0f5d4cd6b

query II rowsort label-1400-2
SELECT pk, col0 FROM tab3 WHERE NOT (col3 < 419)
----
104 values hashing to 0fe2ebb40d17c04802c7d608a8c508f7

query II rowsort label-1400-1
SELECT pk, col0 FROM view_1_tab3_885
----
96 values hashing to 2f28ddc78750f380ecc1dbe0f5d4cd6b

query II rowsort label-1400-2
SELECT pk, col0 FROM view_2_tab3_885
----
104 values hashing to 0fe2ebb40d17c04802c7d608a8c508f7

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 < 419 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col3 < 419)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_885 UNION ALL SELECT pk, col0 FROM view_2_tab3_885
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 < 419 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col3 < 419)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_885 UNION SELECT pk, col0 FROM view_2_tab3_885
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-1400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col3 < 419 ) AS tab3_885
----
48 values hashing to 5401d4840718c0fe51deb0a80516444a

query I rowsort label-1400-3
SELECT * FROM view_3_tab3_885
----
48 values hashing to 5401d4840718c0fe51deb0a80516444a

query I rowsort label-1400-3
SELECT pk FROM tab3 WHERE col3 < 419
----
48 values hashing to 5401d4840718c0fe51deb0a80516444a

statement ok
DROP VIEW view_1_tab3_885

statement ok
DROP VIEW view_2_tab3_885

statement ok
DROP VIEW view_3_tab3_885

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_885') DROP VIEW view_1_tab4_885

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_885

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_885') DROP VIEW view_2_tab4_885

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_885

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_885') DROP VIEW view_3_tab4_885

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_885

statement ok
CREATE VIEW view_1_tab4_885 AS SELECT pk, col0 FROM tab4 WHERE col3 < 419

statement ok
CREATE VIEW view_2_tab4_885 AS SELECT pk, col0 FROM tab4 WHERE NOT (col3 < 419)

statement ok
CREATE VIEW view_3_tab4_885 AS SELECT pk FROM view_1_tab4_885

query II rowsort label-1400-1
SELECT pk, col0 FROM tab4 WHERE col3 < 419
----
96 values hashing to 2f28ddc78750f380ecc1dbe0f5d4cd6b

query II rowsort label-1400-2
SELECT pk, col0 FROM tab4 WHERE NOT (col3 < 419)
----
104 values hashing to 0fe2ebb40d17c04802c7d608a8c508f7

query II rowsort label-1400-1
SELECT pk, col0 FROM view_1_tab4_885
----
96 values hashing to 2f28ddc78750f380ecc1dbe0f5d4cd6b

query II rowsort label-1400-2
SELECT pk, col0 FROM view_2_tab4_885
----
104 values hashing to 0fe2ebb40d17c04802c7d608a8c508f7

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 < 419 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col3 < 419)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_885 UNION ALL SELECT pk, col0 FROM view_2_tab4_885
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 < 419 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col3 < 419)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_885 UNION SELECT pk, col0 FROM view_2_tab4_885
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-1400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col3 < 419 ) AS tab4_885
----
48 values hashing to 5401d4840718c0fe51deb0a80516444a

query I rowsort label-1400-3
SELECT * FROM view_3_tab4_885
----
48 values hashing to 5401d4840718c0fe51deb0a80516444a

query I rowsort label-1400-3
SELECT pk FROM tab4 WHERE col3 < 419
----
48 values hashing to 5401d4840718c0fe51deb0a80516444a

statement ok
DROP VIEW view_1_tab4_885

statement ok
DROP VIEW view_2_tab4_885

statement ok
DROP VIEW view_3_tab4_885

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_886') DROP VIEW view_1_tab0_886

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_886

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_886') DROP VIEW view_2_tab0_886

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_886

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_886') DROP VIEW view_3_tab0_886

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_886

statement ok
CREATE VIEW view_1_tab0_886 AS SELECT pk, col0 FROM tab0 WHERE col1 < 85.65 OR col0 <= 401 AND col1 > 37.94 OR (col3 < 42)

statement ok
CREATE VIEW view_2_tab0_886 AS SELECT pk, col0 FROM tab0 WHERE NOT (col1 < 85.65 OR col0 <= 401 AND col1 > 37.94 OR (col3 < 42))

statement ok
CREATE VIEW view_3_tab0_886 AS SELECT pk FROM view_1_tab0_886

query II rowsort label-1500-1
SELECT pk, col0 FROM tab0 WHERE col1 < 85.65 OR col0 <= 401 AND col1 > 37.94 OR (col3 < 42)
----
88 values hashing to cb2a97db7eaf49f28a8b3118df623ac7

query II rowsort label-1500-2
SELECT pk, col0 FROM tab0 WHERE NOT (col1 < 85.65 OR col0 <= 401 AND col1 > 37.94 OR (col3 < 42))
----
112 values hashing to 08798be5b9b639a5d38738dcb430f3c2

query II rowsort label-1500-1
SELECT pk, col0 FROM view_1_tab0_886
----
88 values hashing to cb2a97db7eaf49f28a8b3118df623ac7

query II rowsort label-1500-2
SELECT pk, col0 FROM view_2_tab0_886
----
112 values hashing to 08798be5b9b639a5d38738dcb430f3c2

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col1 < 85.65 OR col0 <= 401 AND col1 > 37.94 OR (col3 < 42) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col1 < 85.65 OR col0 <= 401 AND col1 > 37.94 OR (col3 < 42))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_886 UNION ALL SELECT pk, col0 FROM view_2_tab0_886
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col1 < 85.65 OR col0 <= 401 AND col1 > 37.94 OR (col3 < 42) UNION SELECT pk, col0 FROM tab0 WHERE NOT (col1 < 85.65 OR col0 <= 401 AND col1 > 37.94 OR (col3 < 42))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_886 UNION SELECT pk, col0 FROM view_2_tab0_886
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-1500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col1 < 85.65 OR col0 <= 401 AND col1 > 37.94 OR (col3 < 42) ) AS tab0_886
----
44 values hashing to cc29967398752ecb8720ba863f645332

query I rowsort label-1500-3
SELECT * FROM view_3_tab0_886
----
44 values hashing to cc29967398752ecb8720ba863f645332

query I rowsort label-1500-3
SELECT pk FROM tab0 WHERE col1 < 85.65 OR col0 <= 401 AND col1 > 37.94 OR (col3 < 42)
----
44 values hashing to cc29967398752ecb8720ba863f645332

statement ok
DROP VIEW view_1_tab0_886

statement ok
DROP VIEW view_2_tab0_886

statement ok
DROP VIEW view_3_tab0_886

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_886') DROP VIEW view_1_tab1_886

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_886

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_886') DROP VIEW view_2_tab1_886

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_886

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_886') DROP VIEW view_3_tab1_886

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_886

statement ok
CREATE VIEW view_1_tab1_886 AS SELECT pk, col0 FROM tab1 WHERE col1 < 85.65 OR col0 <= 401 AND col1 > 37.94 OR (col3 < 42)

statement ok
CREATE VIEW view_2_tab1_886 AS SELECT pk, col0 FROM tab1 WHERE NOT (col1 < 85.65 OR col0 <= 401 AND col1 > 37.94 OR (col3 < 42))

statement ok
CREATE VIEW view_3_tab1_886 AS SELECT pk FROM view_1_tab1_886

query II rowsort label-1500-1
SELECT pk, col0 FROM tab1 WHERE col1 < 85.65 OR col0 <= 401 AND col1 > 37.94 OR (col3 < 42)
----
88 values hashing to cb2a97db7eaf49f28a8b3118df623ac7

query II rowsort label-1500-2
SELECT pk, col0 FROM tab1 WHERE NOT (col1 < 85.65 OR col0 <= 401 AND col1 > 37.94 OR (col3 < 42))
----
112 values hashing to 08798be5b9b639a5d38738dcb430f3c2

query II rowsort label-1500-1
SELECT pk, col0 FROM view_1_tab1_886
----
88 values hashing to cb2a97db7eaf49f28a8b3118df623ac7

query II rowsort label-1500-2
SELECT pk, col0 FROM view_2_tab1_886
----
112 values hashing to 08798be5b9b639a5d38738dcb430f3c2

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col1 < 85.65 OR col0 <= 401 AND col1 > 37.94 OR (col3 < 42) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col1 < 85.65 OR col0 <= 401 AND col1 > 37.94 OR (col3 < 42))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_886 UNION ALL SELECT pk, col0 FROM view_2_tab1_886
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col1 < 85.65 OR col0 <= 401 AND col1 > 37.94 OR (col3 < 42) UNION SELECT pk, col0 FROM tab1 WHERE NOT (col1 < 85.65 OR col0 <= 401 AND col1 > 37.94 OR (col3 < 42))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_886 UNION SELECT pk, col0 FROM view_2_tab1_886
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-1500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col1 < 85.65 OR col0 <= 401 AND col1 > 37.94 OR (col3 < 42) ) AS tab1_886
----
44 values hashing to cc29967398752ecb8720ba863f645332

query I rowsort label-1500-3
SELECT * FROM view_3_tab1_886
----
44 values hashing to cc29967398752ecb8720ba863f645332

query I rowsort label-1500-3
SELECT pk FROM tab1 WHERE col1 < 85.65 OR col0 <= 401 AND col1 > 37.94 OR (col3 < 42)
----
44 values hashing to cc29967398752ecb8720ba863f645332

statement ok
DROP VIEW view_1_tab1_886

statement ok
DROP VIEW view_2_tab1_886

statement ok
DROP VIEW view_3_tab1_886

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_886') DROP VIEW view_1_tab2_886

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_886

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_886') DROP VIEW view_2_tab2_886

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_886

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_886') DROP VIEW view_3_tab2_886

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_886

statement ok
CREATE VIEW view_1_tab2_886 AS SELECT pk, col0 FROM tab2 WHERE col1 < 85.65 OR col0 <= 401 AND col1 > 37.94 OR (col3 < 42)

statement ok
CREATE VIEW view_2_tab2_886 AS SELECT pk, col0 FROM tab2 WHERE NOT (col1 < 85.65 OR col0 <= 401 AND col1 > 37.94 OR (col3 < 42))

statement ok
CREATE VIEW view_3_tab2_886 AS SELECT pk FROM view_1_tab2_886

query II rowsort label-1500-1
SELECT pk, col0 FROM tab2 WHERE col1 < 85.65 OR col0 <= 401 AND col1 > 37.94 OR (col3 < 42)
----
88 values hashing to cb2a97db7eaf49f28a8b3118df623ac7

query II rowsort label-1500-2
SELECT pk, col0 FROM tab2 WHERE NOT (col1 < 85.65 OR col0 <= 401 AND col1 > 37.94 OR (col3 < 42))
----
112 values hashing to 08798be5b9b639a5d38738dcb430f3c2

query II rowsort label-1500-1
SELECT pk, col0 FROM view_1_tab2_886
----
88 values hashing to cb2a97db7eaf49f28a8b3118df623ac7

query II rowsort label-1500-2
SELECT pk, col0 FROM view_2_tab2_886
----
112 values hashing to 08798be5b9b639a5d38738dcb430f3c2

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col1 < 85.65 OR col0 <= 401 AND col1 > 37.94 OR (col3 < 42) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col1 < 85.65 OR col0 <= 401 AND col1 > 37.94 OR (col3 < 42))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_886 UNION ALL SELECT pk, col0 FROM view_2_tab2_886
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col1 < 85.65 OR col0 <= 401 AND col1 > 37.94 OR (col3 < 42) UNION SELECT pk, col0 FROM tab2 WHERE NOT (col1 < 85.65 OR col0 <= 401 AND col1 > 37.94 OR (col3 < 42))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_886 UNION SELECT pk, col0 FROM view_2_tab2_886
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-1500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col1 < 85.65 OR col0 <= 401 AND col1 > 37.94 OR (col3 < 42) ) AS tab2_886
----
44 values hashing to cc29967398752ecb8720ba863f645332

query I rowsort label-1500-3
SELECT * FROM view_3_tab2_886
----
44 values hashing to cc29967398752ecb8720ba863f645332

query I rowsort label-1500-3
SELECT pk FROM tab2 WHERE col1 < 85.65 OR col0 <= 401 AND col1 > 37.94 OR (col3 < 42)
----
44 values hashing to cc29967398752ecb8720ba863f645332

statement ok
DROP VIEW view_1_tab2_886

statement ok
DROP VIEW view_2_tab2_886

statement ok
DROP VIEW view_3_tab2_886

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_886') DROP VIEW view_1_tab3_886

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_886

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_886') DROP VIEW view_2_tab3_886

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_886

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_886') DROP VIEW view_3_tab3_886

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_886

statement ok
CREATE VIEW view_1_tab3_886 AS SELECT pk, col0 FROM tab3 WHERE col1 < 85.65 OR col0 <= 401 AND col1 > 37.94 OR (col3 < 42)

statement ok
CREATE VIEW view_2_tab3_886 AS SELECT pk, col0 FROM tab3 WHERE NOT (col1 < 85.65 OR col0 <= 401 AND col1 > 37.94 OR (col3 < 42))

statement ok
CREATE VIEW view_3_tab3_886 AS SELECT pk FROM view_1_tab3_886

query II rowsort label-1500-1
SELECT pk, col0 FROM tab3 WHERE col1 < 85.65 OR col0 <= 401 AND col1 > 37.94 OR (col3 < 42)
----
88 values hashing to cb2a97db7eaf49f28a8b3118df623ac7

query II rowsort label-1500-2
SELECT pk, col0 FROM tab3 WHERE NOT (col1 < 85.65 OR col0 <= 401 AND col1 > 37.94 OR (col3 < 42))
----
112 values hashing to 08798be5b9b639a5d38738dcb430f3c2

query II rowsort label-1500-1
SELECT pk, col0 FROM view_1_tab3_886
----
88 values hashing to cb2a97db7eaf49f28a8b3118df623ac7

query II rowsort label-1500-2
SELECT pk, col0 FROM view_2_tab3_886
----
112 values hashing to 08798be5b9b639a5d38738dcb430f3c2

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col1 < 85.65 OR col0 <= 401 AND col1 > 37.94 OR (col3 < 42) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col1 < 85.65 OR col0 <= 401 AND col1 > 37.94 OR (col3 < 42))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_886 UNION ALL SELECT pk, col0 FROM view_2_tab3_886
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col1 < 85.65 OR col0 <= 401 AND col1 > 37.94 OR (col3 < 42) UNION SELECT pk, col0 FROM tab3 WHERE NOT (col1 < 85.65 OR col0 <= 401 AND col1 > 37.94 OR (col3 < 42))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_886 UNION SELECT pk, col0 FROM view_2_tab3_886
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-1500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col1 < 85.65 OR col0 <= 401 AND col1 > 37.94 OR (col3 < 42) ) AS tab3_886
----
44 values hashing to cc29967398752ecb8720ba863f645332

query I rowsort label-1500-3
SELECT * FROM view_3_tab3_886
----
44 values hashing to cc29967398752ecb8720ba863f645332

query I rowsort label-1500-3
SELECT pk FROM tab3 WHERE col1 < 85.65 OR col0 <= 401 AND col1 > 37.94 OR (col3 < 42)
----
44 values hashing to cc29967398752ecb8720ba863f645332

statement ok
DROP VIEW view_1_tab3_886

statement ok
DROP VIEW view_2_tab3_886

statement ok
DROP VIEW view_3_tab3_886

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_886') DROP VIEW view_1_tab4_886

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_886

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_886') DROP VIEW view_2_tab4_886

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_886

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_886') DROP VIEW view_3_tab4_886

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_886

statement ok
CREATE VIEW view_1_tab4_886 AS SELECT pk, col0 FROM tab4 WHERE col1 < 85.65 OR col0 <= 401 AND col1 > 37.94 OR (col3 < 42)

statement ok
CREATE VIEW view_2_tab4_886 AS SELECT pk, col0 FROM tab4 WHERE NOT (col1 < 85.65 OR col0 <= 401 AND col1 > 37.94 OR (col3 < 42))

statement ok
CREATE VIEW view_3_tab4_886 AS SELECT pk FROM view_1_tab4_886

query II rowsort label-1500-1
SELECT pk, col0 FROM tab4 WHERE col1 < 85.65 OR col0 <= 401 AND col1 > 37.94 OR (col3 < 42)
----
88 values hashing to cb2a97db7eaf49f28a8b3118df623ac7

query II rowsort label-1500-2
SELECT pk, col0 FROM tab4 WHERE NOT (col1 < 85.65 OR col0 <= 401 AND col1 > 37.94 OR (col3 < 42))
----
112 values hashing to 08798be5b9b639a5d38738dcb430f3c2

query II rowsort label-1500-1
SELECT pk, col0 FROM view_1_tab4_886
----
88 values hashing to cb2a97db7eaf49f28a8b3118df623ac7

query II rowsort label-1500-2
SELECT pk, col0 FROM view_2_tab4_886
----
112 values hashing to 08798be5b9b639a5d38738dcb430f3c2

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col1 < 85.65 OR col0 <= 401 AND col1 > 37.94 OR (col3 < 42) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col1 < 85.65 OR col0 <= 401 AND col1 > 37.94 OR (col3 < 42))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_886 UNION ALL SELECT pk, col0 FROM view_2_tab4_886
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col1 < 85.65 OR col0 <= 401 AND col1 > 37.94 OR (col3 < 42) UNION SELECT pk, col0 FROM tab4 WHERE NOT (col1 < 85.65 OR col0 <= 401 AND col1 > 37.94 OR (col3 < 42))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_886 UNION SELECT pk, col0 FROM view_2_tab4_886
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-1500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col1 < 85.65 OR col0 <= 401 AND col1 > 37.94 OR (col3 < 42) ) AS tab4_886
----
44 values hashing to cc29967398752ecb8720ba863f645332

query I rowsort label-1500-3
SELECT * FROM view_3_tab4_886
----
44 values hashing to cc29967398752ecb8720ba863f645332

query I rowsort label-1500-3
SELECT pk FROM tab4 WHERE col1 < 85.65 OR col0 <= 401 AND col1 > 37.94 OR (col3 < 42)
----
44 values hashing to cc29967398752ecb8720ba863f645332

statement ok
DROP VIEW view_1_tab4_886

statement ok
DROP VIEW view_2_tab4_886

statement ok
DROP VIEW view_3_tab4_886

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_887') DROP VIEW view_1_tab0_887

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_887

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_887') DROP VIEW view_2_tab0_887

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_887

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_887') DROP VIEW view_3_tab0_887

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_887

statement ok
CREATE VIEW view_1_tab0_887 AS SELECT pk, col0 FROM tab0 WHERE ((((col3 > 391 AND col4 > 703.53))) AND (col3 >= 109) AND (((col4 = 183.79 AND ((col4 > 425.20 OR col1 < 171.89 OR ((col0 <= 638))) AND (col0 > 894) AND col1 < 542.87) AND (col4 IN (106.4,972.32,449.41,511.55,777.51,524.52)) AND col3 = 375 AND (col3 IN (934,333,830,102)) AND col3 BETWEEN 306 AND 319 OR (((col3 IS NULL)))))) AND col3 < 311)

statement ok
CREATE VIEW view_2_tab0_887 AS SELECT pk, col0 FROM tab0 WHERE NOT (((((col3 > 391 AND col4 > 703.53))) AND (col3 >= 109) AND (((col4 = 183.79 AND ((col4 > 425.20 OR col1 < 171.89 OR ((col0 <= 638))) AND (col0 > 894) AND col1 < 542.87) AND (col4 IN (106.4,972.32,449.41,511.55,777.51,524.52)) AND col3 = 375 AND (col3 IN (934,333,830,102)) AND col3 BETWEEN 306 AND 319 OR (((col3 IS NULL)))))) AND col3 < 311))

statement ok
CREATE VIEW view_3_tab0_887 AS SELECT pk FROM view_1_tab0_887

query II rowsort label-1600-1
SELECT pk, col0 FROM tab0 WHERE ((((col3 > 391 AND col4 > 703.53))) AND (col3 >= 109) AND (((col4 = 183.79 AND ((col4 > 425.20 OR col1 < 171.89 OR ((col0 <= 638))) AND (col0 > 894) AND col1 < 542.87) AND (col4 IN (106.4,972.32,449.41,511.55,777.51,524.52)) AND col3 = 375 AND (col3 IN (934,333,830,102)) AND col3 BETWEEN 306 AND 319 OR (((col3 IS NULL)))))) AND col3 < 311)
----

query II rowsort label-1600-2
SELECT pk, col0 FROM tab0 WHERE NOT (((((col3 > 391 AND col4 > 703.53))) AND (col3 >= 109) AND (((col4 = 183.79 AND ((col4 > 425.20 OR col1 < 171.89 OR ((col0 <= 638))) AND (col0 > 894) AND col1 < 542.87) AND (col4 IN (106.4,972.32,449.41,511.55,777.51,524.52)) AND col3 = 375 AND (col3 IN (934,333,830,102)) AND col3 BETWEEN 306 AND 319 OR (((col3 IS NULL)))))) AND col3 < 311))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-1600-1
SELECT pk, col0 FROM view_1_tab0_887
----

query II rowsort label-1600-2
SELECT pk, col0 FROM view_2_tab0_887
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE ((((col3 > 391 AND col4 > 703.53))) AND (col3 >= 109) AND (((col4 = 183.79 AND ((col4 > 425.20 OR col1 < 171.89 OR ((col0 <= 638))) AND (col0 > 894) AND col1 < 542.87) AND (col4 IN (106.4,972.32,449.41,511.55,777.51,524.52)) AND col3 = 375 AND (col3 IN (934,333,830,102)) AND col3 BETWEEN 306 AND 319 OR (((col3 IS NULL)))))) AND col3 < 311) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (((((col3 > 391 AND col4 > 703.53))) AND (col3 >= 109) AND (((col4 = 183.79 AND ((col4 > 425.20 OR col1 < 171.89 OR ((col0 <= 638))) AND (col0 > 894) AND col1 < 542.87) AND (col4 IN (106.4,972.32,449.41,511.55,777.51,524.52)) AND col3 = 375 AND (col3 IN (934,333,830,102)) AND col3 BETWEEN 306 AND 319 OR (((col3 IS NULL)))))) AND col3 < 311))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_887 UNION ALL SELECT pk, col0 FROM view_2_tab0_887
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE ((((col3 > 391 AND col4 > 703.53))) AND (col3 >= 109) AND (((col4 = 183.79 AND ((col4 > 425.20 OR col1 < 171.89 OR ((col0 <= 638))) AND (col0 > 894) AND col1 < 542.87) AND (col4 IN (106.4,972.32,449.41,511.55,777.51,524.52)) AND col3 = 375 AND (col3 IN (934,333,830,102)) AND col3 BETWEEN 306 AND 319 OR (((col3 IS NULL)))))) AND col3 < 311) UNION SELECT pk, col0 FROM tab0 WHERE NOT (((((col3 > 391 AND col4 > 703.53))) AND (col3 >= 109) AND (((col4 = 183.79 AND ((col4 > 425.20 OR col1 < 171.89 OR ((col0 <= 638))) AND (col0 > 894) AND col1 < 542.87) AND (col4 IN (106.4,972.32,449.41,511.55,777.51,524.52)) AND col3 = 375 AND (col3 IN (934,333,830,102)) AND col3 BETWEEN 306 AND 319 OR (((col3 IS NULL)))))) AND col3 < 311))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_887 UNION SELECT pk, col0 FROM view_2_tab0_887
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-1600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE ((((col3 > 391 AND col4 > 703.53))) AND (col3 >= 109) AND (((col4 = 183.79 AND ((col4 > 425.20 OR col1 < 171.89 OR ((col0 <= 638))) AND (col0 > 894) AND col1 < 542.87) AND (col4 IN (106.4,972.32,449.41,511.55,777.51,524.52)) AND col3 = 375 AND (col3 IN (934,333,830,102)) AND col3 BETWEEN 306 AND 319 OR (((col3 IS NULL)))))) AND col3 < 311) ) AS tab0_887
----

query I rowsort label-1600-3
SELECT * FROM view_3_tab0_887
----

query I rowsort label-1600-3
SELECT pk FROM tab0 WHERE ((((col3 > 391 AND col4 > 703.53))) AND (col3 >= 109) AND (((col4 = 183.79 AND ((col4 > 425.20 OR col1 < 171.89 OR ((col0 <= 638))) AND (col0 > 894) AND col1 < 542.87) AND (col4 IN (106.4,972.32,449.41,511.55,777.51,524.52)) AND col3 = 375 AND (col3 IN (934,333,830,102)) AND col3 BETWEEN 306 AND 319 OR (((col3 IS NULL)))))) AND col3 < 311)
----

statement ok
DROP VIEW view_1_tab0_887

statement ok
DROP VIEW view_2_tab0_887

statement ok
DROP VIEW view_3_tab0_887

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_887') DROP VIEW view_1_tab1_887

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_887

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_887') DROP VIEW view_2_tab1_887

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_887

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_887') DROP VIEW view_3_tab1_887

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_887

statement ok
CREATE VIEW view_1_tab1_887 AS SELECT pk, col0 FROM tab1 WHERE ((((col3 > 391 AND col4 > 703.53))) AND (col3 >= 109) AND (((col4 = 183.79 AND ((col4 > 425.20 OR col1 < 171.89 OR ((col0 <= 638))) AND (col0 > 894) AND col1 < 542.87) AND (col4 IN (106.4,972.32,449.41,511.55,777.51,524.52)) AND col3 = 375 AND (col3 IN (934,333,830,102)) AND col3 BETWEEN 306 AND 319 OR (((col3 IS NULL)))))) AND col3 < 311)

statement ok
CREATE VIEW view_2_tab1_887 AS SELECT pk, col0 FROM tab1 WHERE NOT (((((col3 > 391 AND col4 > 703.53))) AND (col3 >= 109) AND (((col4 = 183.79 AND ((col4 > 425.20 OR col1 < 171.89 OR ((col0 <= 638))) AND (col0 > 894) AND col1 < 542.87) AND (col4 IN (106.4,972.32,449.41,511.55,777.51,524.52)) AND col3 = 375 AND (col3 IN (934,333,830,102)) AND col3 BETWEEN 306 AND 319 OR (((col3 IS NULL)))))) AND col3 < 311))

statement ok
CREATE VIEW view_3_tab1_887 AS SELECT pk FROM view_1_tab1_887

query II rowsort label-1600-1
SELECT pk, col0 FROM tab1 WHERE ((((col3 > 391 AND col4 > 703.53))) AND (col3 >= 109) AND (((col4 = 183.79 AND ((col4 > 425.20 OR col1 < 171.89 OR ((col0 <= 638))) AND (col0 > 894) AND col1 < 542.87) AND (col4 IN (106.4,972.32,449.41,511.55,777.51,524.52)) AND col3 = 375 AND (col3 IN (934,333,830,102)) AND col3 BETWEEN 306 AND 319 OR (((col3 IS NULL)))))) AND col3 < 311)
----

query II rowsort label-1600-2
SELECT pk, col0 FROM tab1 WHERE NOT (((((col3 > 391 AND col4 > 703.53))) AND (col3 >= 109) AND (((col4 = 183.79 AND ((col4 > 425.20 OR col1 < 171.89 OR ((col0 <= 638))) AND (col0 > 894) AND col1 < 542.87) AND (col4 IN (106.4,972.32,449.41,511.55,777.51,524.52)) AND col3 = 375 AND (col3 IN (934,333,830,102)) AND col3 BETWEEN 306 AND 319 OR (((col3 IS NULL)))))) AND col3 < 311))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-1600-1
SELECT pk, col0 FROM view_1_tab1_887
----

query II rowsort label-1600-2
SELECT pk, col0 FROM view_2_tab1_887
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE ((((col3 > 391 AND col4 > 703.53))) AND (col3 >= 109) AND (((col4 = 183.79 AND ((col4 > 425.20 OR col1 < 171.89 OR ((col0 <= 638))) AND (col0 > 894) AND col1 < 542.87) AND (col4 IN (106.4,972.32,449.41,511.55,777.51,524.52)) AND col3 = 375 AND (col3 IN (934,333,830,102)) AND col3 BETWEEN 306 AND 319 OR (((col3 IS NULL)))))) AND col3 < 311) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (((((col3 > 391 AND col4 > 703.53))) AND (col3 >= 109) AND (((col4 = 183.79 AND ((col4 > 425.20 OR col1 < 171.89 OR ((col0 <= 638))) AND (col0 > 894) AND col1 < 542.87) AND (col4 IN (106.4,972.32,449.41,511.55,777.51,524.52)) AND col3 = 375 AND (col3 IN (934,333,830,102)) AND col3 BETWEEN 306 AND 319 OR (((col3 IS NULL)))))) AND col3 < 311))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_887 UNION ALL SELECT pk, col0 FROM view_2_tab1_887
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE ((((col3 > 391 AND col4 > 703.53))) AND (col3 >= 109) AND (((col4 = 183.79 AND ((col4 > 425.20 OR col1 < 171.89 OR ((col0 <= 638))) AND (col0 > 894) AND col1 < 542.87) AND (col4 IN (106.4,972.32,449.41,511.55,777.51,524.52)) AND col3 = 375 AND (col3 IN (934,333,830,102)) AND col3 BETWEEN 306 AND 319 OR (((col3 IS NULL)))))) AND col3 < 311) UNION SELECT pk, col0 FROM tab1 WHERE NOT (((((col3 > 391 AND col4 > 703.53))) AND (col3 >= 109) AND (((col4 = 183.79 AND ((col4 > 425.20 OR col1 < 171.89 OR ((col0 <= 638))) AND (col0 > 894) AND col1 < 542.87) AND (col4 IN (106.4,972.32,449.41,511.55,777.51,524.52)) AND col3 = 375 AND (col3 IN (934,333,830,102)) AND col3 BETWEEN 306 AND 319 OR (((col3 IS NULL)))))) AND col3 < 311))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_887 UNION SELECT pk, col0 FROM view_2_tab1_887
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-1600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE ((((col3 > 391 AND col4 > 703.53))) AND (col3 >= 109) AND (((col4 = 183.79 AND ((col4 > 425.20 OR col1 < 171.89 OR ((col0 <= 638))) AND (col0 > 894) AND col1 < 542.87) AND (col4 IN (106.4,972.32,449.41,511.55,777.51,524.52)) AND col3 = 375 AND (col3 IN (934,333,830,102)) AND col3 BETWEEN 306 AND 319 OR (((col3 IS NULL)))))) AND col3 < 311) ) AS tab1_887
----

query I rowsort label-1600-3
SELECT * FROM view_3_tab1_887
----

query I rowsort label-1600-3
SELECT pk FROM tab1 WHERE ((((col3 > 391 AND col4 > 703.53))) AND (col3 >= 109) AND (((col4 = 183.79 AND ((col4 > 425.20 OR col1 < 171.89 OR ((col0 <= 638))) AND (col0 > 894) AND col1 < 542.87) AND (col4 IN (106.4,972.32,449.41,511.55,777.51,524.52)) AND col3 = 375 AND (col3 IN (934,333,830,102)) AND col3 BETWEEN 306 AND 319 OR (((col3 IS NULL)))))) AND col3 < 311)
----

statement ok
DROP VIEW view_1_tab1_887

statement ok
DROP VIEW view_2_tab1_887

statement ok
DROP VIEW view_3_tab1_887

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_887') DROP VIEW view_1_tab2_887

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_887

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_887') DROP VIEW view_2_tab2_887

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_887

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_887') DROP VIEW view_3_tab2_887

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_887

statement ok
CREATE VIEW view_1_tab2_887 AS SELECT pk, col0 FROM tab2 WHERE ((((col3 > 391 AND col4 > 703.53))) AND (col3 >= 109) AND (((col4 = 183.79 AND ((col4 > 425.20 OR col1 < 171.89 OR ((col0 <= 638))) AND (col0 > 894) AND col1 < 542.87) AND (col4 IN (106.4,972.32,449.41,511.55,777.51,524.52)) AND col3 = 375 AND (col3 IN (934,333,830,102)) AND col3 BETWEEN 306 AND 319 OR (((col3 IS NULL)))))) AND col3 < 311)

statement ok
CREATE VIEW view_2_tab2_887 AS SELECT pk, col0 FROM tab2 WHERE NOT (((((col3 > 391 AND col4 > 703.53))) AND (col3 >= 109) AND (((col4 = 183.79 AND ((col4 > 425.20 OR col1 < 171.89 OR ((col0 <= 638))) AND (col0 > 894) AND col1 < 542.87) AND (col4 IN (106.4,972.32,449.41,511.55,777.51,524.52)) AND col3 = 375 AND (col3 IN (934,333,830,102)) AND col3 BETWEEN 306 AND 319 OR (((col3 IS NULL)))))) AND col3 < 311))

statement ok
CREATE VIEW view_3_tab2_887 AS SELECT pk FROM view_1_tab2_887

query II rowsort label-1600-1
SELECT pk, col0 FROM tab2 WHERE ((((col3 > 391 AND col4 > 703.53))) AND (col3 >= 109) AND (((col4 = 183.79 AND ((col4 > 425.20 OR col1 < 171.89 OR ((col0 <= 638))) AND (col0 > 894) AND col1 < 542.87) AND (col4 IN (106.4,972.32,449.41,511.55,777.51,524.52)) AND col3 = 375 AND (col3 IN (934,333,830,102)) AND col3 BETWEEN 306 AND 319 OR (((col3 IS NULL)))))) AND col3 < 311)
----

query II rowsort label-1600-2
SELECT pk, col0 FROM tab2 WHERE NOT (((((col3 > 391 AND col4 > 703.53))) AND (col3 >= 109) AND (((col4 = 183.79 AND ((col4 > 425.20 OR col1 < 171.89 OR ((col0 <= 638))) AND (col0 > 894) AND col1 < 542.87) AND (col4 IN (106.4,972.32,449.41,511.55,777.51,524.52)) AND col3 = 375 AND (col3 IN (934,333,830,102)) AND col3 BETWEEN 306 AND 319 OR (((col3 IS NULL)))))) AND col3 < 311))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-1600-1
SELECT pk, col0 FROM view_1_tab2_887
----

query II rowsort label-1600-2
SELECT pk, col0 FROM view_2_tab2_887
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE ((((col3 > 391 AND col4 > 703.53))) AND (col3 >= 109) AND (((col4 = 183.79 AND ((col4 > 425.20 OR col1 < 171.89 OR ((col0 <= 638))) AND (col0 > 894) AND col1 < 542.87) AND (col4 IN (106.4,972.32,449.41,511.55,777.51,524.52)) AND col3 = 375 AND (col3 IN (934,333,830,102)) AND col3 BETWEEN 306 AND 319 OR (((col3 IS NULL)))))) AND col3 < 311) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (((((col3 > 391 AND col4 > 703.53))) AND (col3 >= 109) AND (((col4 = 183.79 AND ((col4 > 425.20 OR col1 < 171.89 OR ((col0 <= 638))) AND (col0 > 894) AND col1 < 542.87) AND (col4 IN (106.4,972.32,449.41,511.55,777.51,524.52)) AND col3 = 375 AND (col3 IN (934,333,830,102)) AND col3 BETWEEN 306 AND 319 OR (((col3 IS NULL)))))) AND col3 < 311))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_887 UNION ALL SELECT pk, col0 FROM view_2_tab2_887
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE ((((col3 > 391 AND col4 > 703.53))) AND (col3 >= 109) AND (((col4 = 183.79 AND ((col4 > 425.20 OR col1 < 171.89 OR ((col0 <= 638))) AND (col0 > 894) AND col1 < 542.87) AND (col4 IN (106.4,972.32,449.41,511.55,777.51,524.52)) AND col3 = 375 AND (col3 IN (934,333,830,102)) AND col3 BETWEEN 306 AND 319 OR (((col3 IS NULL)))))) AND col3 < 311) UNION SELECT pk, col0 FROM tab2 WHERE NOT (((((col3 > 391 AND col4 > 703.53))) AND (col3 >= 109) AND (((col4 = 183.79 AND ((col4 > 425.20 OR col1 < 171.89 OR ((col0 <= 638))) AND (col0 > 894) AND col1 < 542.87) AND (col4 IN (106.4,972.32,449.41,511.55,777.51,524.52)) AND col3 = 375 AND (col3 IN (934,333,830,102)) AND col3 BETWEEN 306 AND 319 OR (((col3 IS NULL)))))) AND col3 < 311))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_887 UNION SELECT pk, col0 FROM view_2_tab2_887
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-1600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE ((((col3 > 391 AND col4 > 703.53))) AND (col3 >= 109) AND (((col4 = 183.79 AND ((col4 > 425.20 OR col1 < 171.89 OR ((col0 <= 638))) AND (col0 > 894) AND col1 < 542.87) AND (col4 IN (106.4,972.32,449.41,511.55,777.51,524.52)) AND col3 = 375 AND (col3 IN (934,333,830,102)) AND col3 BETWEEN 306 AND 319 OR (((col3 IS NULL)))))) AND col3 < 311) ) AS tab2_887
----

query I rowsort label-1600-3
SELECT * FROM view_3_tab2_887
----

query I rowsort label-1600-3
SELECT pk FROM tab2 WHERE ((((col3 > 391 AND col4 > 703.53))) AND (col3 >= 109) AND (((col4 = 183.79 AND ((col4 > 425.20 OR col1 < 171.89 OR ((col0 <= 638))) AND (col0 > 894) AND col1 < 542.87) AND (col4 IN (106.4,972.32,449.41,511.55,777.51,524.52)) AND col3 = 375 AND (col3 IN (934,333,830,102)) AND col3 BETWEEN 306 AND 319 OR (((col3 IS NULL)))))) AND col3 < 311)
----

statement ok
DROP VIEW view_1_tab2_887

statement ok
DROP VIEW view_2_tab2_887

statement ok
DROP VIEW view_3_tab2_887

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_887') DROP VIEW view_1_tab3_887

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_887

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_887') DROP VIEW view_2_tab3_887

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_887

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_887') DROP VIEW view_3_tab3_887

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_887

statement ok
CREATE VIEW view_1_tab3_887 AS SELECT pk, col0 FROM tab3 WHERE ((((col3 > 391 AND col4 > 703.53))) AND (col3 >= 109) AND (((col4 = 183.79 AND ((col4 > 425.20 OR col1 < 171.89 OR ((col0 <= 638))) AND (col0 > 894) AND col1 < 542.87) AND (col4 IN (106.4,972.32,449.41,511.55,777.51,524.52)) AND col3 = 375 AND (col3 IN (934,333,830,102)) AND col3 BETWEEN 306 AND 319 OR (((col3 IS NULL)))))) AND col3 < 311)

statement ok
CREATE VIEW view_2_tab3_887 AS SELECT pk, col0 FROM tab3 WHERE NOT (((((col3 > 391 AND col4 > 703.53))) AND (col3 >= 109) AND (((col4 = 183.79 AND ((col4 > 425.20 OR col1 < 171.89 OR ((col0 <= 638))) AND (col0 > 894) AND col1 < 542.87) AND (col4 IN (106.4,972.32,449.41,511.55,777.51,524.52)) AND col3 = 375 AND (col3 IN (934,333,830,102)) AND col3 BETWEEN 306 AND 319 OR (((col3 IS NULL)))))) AND col3 < 311))

statement ok
CREATE VIEW view_3_tab3_887 AS SELECT pk FROM view_1_tab3_887

query II rowsort label-1600-1
SELECT pk, col0 FROM tab3 WHERE ((((col3 > 391 AND col4 > 703.53))) AND (col3 >= 109) AND (((col4 = 183.79 AND ((col4 > 425.20 OR col1 < 171.89 OR ((col0 <= 638))) AND (col0 > 894) AND col1 < 542.87) AND (col4 IN (106.4,972.32,449.41,511.55,777.51,524.52)) AND col3 = 375 AND (col3 IN (934,333,830,102)) AND col3 BETWEEN 306 AND 319 OR (((col3 IS NULL)))))) AND col3 < 311)
----

query II rowsort label-1600-2
SELECT pk, col0 FROM tab3 WHERE NOT (((((col3 > 391 AND col4 > 703.53))) AND (col3 >= 109) AND (((col4 = 183.79 AND ((col4 > 425.20 OR col1 < 171.89 OR ((col0 <= 638))) AND (col0 > 894) AND col1 < 542.87) AND (col4 IN (106.4,972.32,449.41,511.55,777.51,524.52)) AND col3 = 375 AND (col3 IN (934,333,830,102)) AND col3 BETWEEN 306 AND 319 OR (((col3 IS NULL)))))) AND col3 < 311))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-1600-1
SELECT pk, col0 FROM view_1_tab3_887
----

query II rowsort label-1600-2
SELECT pk, col0 FROM view_2_tab3_887
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE ((((col3 > 391 AND col4 > 703.53))) AND (col3 >= 109) AND (((col4 = 183.79 AND ((col4 > 425.20 OR col1 < 171.89 OR ((col0 <= 638))) AND (col0 > 894) AND col1 < 542.87) AND (col4 IN (106.4,972.32,449.41,511.55,777.51,524.52)) AND col3 = 375 AND (col3 IN (934,333,830,102)) AND col3 BETWEEN 306 AND 319 OR (((col3 IS NULL)))))) AND col3 < 311) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (((((col3 > 391 AND col4 > 703.53))) AND (col3 >= 109) AND (((col4 = 183.79 AND ((col4 > 425.20 OR col1 < 171.89 OR ((col0 <= 638))) AND (col0 > 894) AND col1 < 542.87) AND (col4 IN (106.4,972.32,449.41,511.55,777.51,524.52)) AND col3 = 375 AND (col3 IN (934,333,830,102)) AND col3 BETWEEN 306 AND 319 OR (((col3 IS NULL)))))) AND col3 < 311))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_887 UNION ALL SELECT pk, col0 FROM view_2_tab3_887
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE ((((col3 > 391 AND col4 > 703.53))) AND (col3 >= 109) AND (((col4 = 183.79 AND ((col4 > 425.20 OR col1 < 171.89 OR ((col0 <= 638))) AND (col0 > 894) AND col1 < 542.87) AND (col4 IN (106.4,972.32,449.41,511.55,777.51,524.52)) AND col3 = 375 AND (col3 IN (934,333,830,102)) AND col3 BETWEEN 306 AND 319 OR (((col3 IS NULL)))))) AND col3 < 311) UNION SELECT pk, col0 FROM tab3 WHERE NOT (((((col3 > 391 AND col4 > 703.53))) AND (col3 >= 109) AND (((col4 = 183.79 AND ((col4 > 425.20 OR col1 < 171.89 OR ((col0 <= 638))) AND (col0 > 894) AND col1 < 542.87) AND (col4 IN (106.4,972.32,449.41,511.55,777.51,524.52)) AND col3 = 375 AND (col3 IN (934,333,830,102)) AND col3 BETWEEN 306 AND 319 OR (((col3 IS NULL)))))) AND col3 < 311))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_887 UNION SELECT pk, col0 FROM view_2_tab3_887
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-1600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE ((((col3 > 391 AND col4 > 703.53))) AND (col3 >= 109) AND (((col4 = 183.79 AND ((col4 > 425.20 OR col1 < 171.89 OR ((col0 <= 638))) AND (col0 > 894) AND col1 < 542.87) AND (col4 IN (106.4,972.32,449.41,511.55,777.51,524.52)) AND col3 = 375 AND (col3 IN (934,333,830,102)) AND col3 BETWEEN 306 AND 319 OR (((col3 IS NULL)))))) AND col3 < 311) ) AS tab3_887
----

query I rowsort label-1600-3
SELECT * FROM view_3_tab3_887
----

query I rowsort label-1600-3
SELECT pk FROM tab3 WHERE ((((col3 > 391 AND col4 > 703.53))) AND (col3 >= 109) AND (((col4 = 183.79 AND ((col4 > 425.20 OR col1 < 171.89 OR ((col0 <= 638))) AND (col0 > 894) AND col1 < 542.87) AND (col4 IN (106.4,972.32,449.41,511.55,777.51,524.52)) AND col3 = 375 AND (col3 IN (934,333,830,102)) AND col3 BETWEEN 306 AND 319 OR (((col3 IS NULL)))))) AND col3 < 311)
----

statement ok
DROP VIEW view_1_tab3_887

statement ok
DROP VIEW view_2_tab3_887

statement ok
DROP VIEW view_3_tab3_887

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_887') DROP VIEW view_1_tab4_887

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_887

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_887') DROP VIEW view_2_tab4_887

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_887

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_887') DROP VIEW view_3_tab4_887

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_887

statement ok
CREATE VIEW view_1_tab4_887 AS SELECT pk, col0 FROM tab4 WHERE ((((col3 > 391 AND col4 > 703.53))) AND (col3 >= 109) AND (((col4 = 183.79 AND ((col4 > 425.20 OR col1 < 171.89 OR ((col0 <= 638))) AND (col0 > 894) AND col1 < 542.87) AND (col4 IN (106.4,972.32,449.41,511.55,777.51,524.52)) AND col3 = 375 AND (col3 IN (934,333,830,102)) AND col3 BETWEEN 306 AND 319 OR (((col3 IS NULL)))))) AND col3 < 311)

statement ok
CREATE VIEW view_2_tab4_887 AS SELECT pk, col0 FROM tab4 WHERE NOT (((((col3 > 391 AND col4 > 703.53))) AND (col3 >= 109) AND (((col4 = 183.79 AND ((col4 > 425.20 OR col1 < 171.89 OR ((col0 <= 638))) AND (col0 > 894) AND col1 < 542.87) AND (col4 IN (106.4,972.32,449.41,511.55,777.51,524.52)) AND col3 = 375 AND (col3 IN (934,333,830,102)) AND col3 BETWEEN 306 AND 319 OR (((col3 IS NULL)))))) AND col3 < 311))

statement ok
CREATE VIEW view_3_tab4_887 AS SELECT pk FROM view_1_tab4_887

query II rowsort label-1600-1
SELECT pk, col0 FROM tab4 WHERE ((((col3 > 391 AND col4 > 703.53))) AND (col3 >= 109) AND (((col4 = 183.79 AND ((col4 > 425.20 OR col1 < 171.89 OR ((col0 <= 638))) AND (col0 > 894) AND col1 < 542.87) AND (col4 IN (106.4,972.32,449.41,511.55,777.51,524.52)) AND col3 = 375 AND (col3 IN (934,333,830,102)) AND col3 BETWEEN 306 AND 319 OR (((col3 IS NULL)))))) AND col3 < 311)
----

query II rowsort label-1600-2
SELECT pk, col0 FROM tab4 WHERE NOT (((((col3 > 391 AND col4 > 703.53))) AND (col3 >= 109) AND (((col4 = 183.79 AND ((col4 > 425.20 OR col1 < 171.89 OR ((col0 <= 638))) AND (col0 > 894) AND col1 < 542.87) AND (col4 IN (106.4,972.32,449.41,511.55,777.51,524.52)) AND col3 = 375 AND (col3 IN (934,333,830,102)) AND col3 BETWEEN 306 AND 319 OR (((col3 IS NULL)))))) AND col3 < 311))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-1600-1
SELECT pk, col0 FROM view_1_tab4_887
----

query II rowsort label-1600-2
SELECT pk, col0 FROM view_2_tab4_887
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE ((((col3 > 391 AND col4 > 703.53))) AND (col3 >= 109) AND (((col4 = 183.79 AND ((col4 > 425.20 OR col1 < 171.89 OR ((col0 <= 638))) AND (col0 > 894) AND col1 < 542.87) AND (col4 IN (106.4,972.32,449.41,511.55,777.51,524.52)) AND col3 = 375 AND (col3 IN (934,333,830,102)) AND col3 BETWEEN 306 AND 319 OR (((col3 IS NULL)))))) AND col3 < 311) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (((((col3 > 391 AND col4 > 703.53))) AND (col3 >= 109) AND (((col4 = 183.79 AND ((col4 > 425.20 OR col1 < 171.89 OR ((col0 <= 638))) AND (col0 > 894) AND col1 < 542.87) AND (col4 IN (106.4,972.32,449.41,511.55,777.51,524.52)) AND col3 = 375 AND (col3 IN (934,333,830,102)) AND col3 BETWEEN 306 AND 319 OR (((col3 IS NULL)))))) AND col3 < 311))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_887 UNION ALL SELECT pk, col0 FROM view_2_tab4_887
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE ((((col3 > 391 AND col4 > 703.53))) AND (col3 >= 109) AND (((col4 = 183.79 AND ((col4 > 425.20 OR col1 < 171.89 OR ((col0 <= 638))) AND (col0 > 894) AND col1 < 542.87) AND (col4 IN (106.4,972.32,449.41,511.55,777.51,524.52)) AND col3 = 375 AND (col3 IN (934,333,830,102)) AND col3 BETWEEN 306 AND 319 OR (((col3 IS NULL)))))) AND col3 < 311) UNION SELECT pk, col0 FROM tab4 WHERE NOT (((((col3 > 391 AND col4 > 703.53))) AND (col3 >= 109) AND (((col4 = 183.79 AND ((col4 > 425.20 OR col1 < 171.89 OR ((col0 <= 638))) AND (col0 > 894) AND col1 < 542.87) AND (col4 IN (106.4,972.32,449.41,511.55,777.51,524.52)) AND col3 = 375 AND (col3 IN (934,333,830,102)) AND col3 BETWEEN 306 AND 319 OR (((col3 IS NULL)))))) AND col3 < 311))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_887 UNION SELECT pk, col0 FROM view_2_tab4_887
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-1600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE ((((col3 > 391 AND col4 > 703.53))) AND (col3 >= 109) AND (((col4 = 183.79 AND ((col4 > 425.20 OR col1 < 171.89 OR ((col0 <= 638))) AND (col0 > 894) AND col1 < 542.87) AND (col4 IN (106.4,972.32,449.41,511.55,777.51,524.52)) AND col3 = 375 AND (col3 IN (934,333,830,102)) AND col3 BETWEEN 306 AND 319 OR (((col3 IS NULL)))))) AND col3 < 311) ) AS tab4_887
----

query I rowsort label-1600-3
SELECT * FROM view_3_tab4_887
----

query I rowsort label-1600-3
SELECT pk FROM tab4 WHERE ((((col3 > 391 AND col4 > 703.53))) AND (col3 >= 109) AND (((col4 = 183.79 AND ((col4 > 425.20 OR col1 < 171.89 OR ((col0 <= 638))) AND (col0 > 894) AND col1 < 542.87) AND (col4 IN (106.4,972.32,449.41,511.55,777.51,524.52)) AND col3 = 375 AND (col3 IN (934,333,830,102)) AND col3 BETWEEN 306 AND 319 OR (((col3 IS NULL)))))) AND col3 < 311)
----

statement ok
DROP VIEW view_1_tab4_887

statement ok
DROP VIEW view_2_tab4_887

statement ok
DROP VIEW view_3_tab4_887

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_888') DROP VIEW view_1_tab0_888

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_888

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_888') DROP VIEW view_2_tab0_888

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_888

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_888') DROP VIEW view_3_tab0_888

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_888

statement ok
CREATE VIEW view_1_tab0_888 AS SELECT pk, col0 FROM tab0 WHERE col0 >= 192

statement ok
CREATE VIEW view_2_tab0_888 AS SELECT pk, col0 FROM tab0 WHERE NOT (col0 >= 192)

statement ok
CREATE VIEW view_3_tab0_888 AS SELECT pk FROM view_1_tab0_888

query II rowsort label-1700-1
SELECT pk, col0 FROM tab0 WHERE col0 >= 192
----
166 values hashing to af24f0934b7ffc09babbd794b2112c51

query II rowsort label-1700-2
SELECT pk, col0 FROM tab0 WHERE NOT (col0 >= 192)
----
34 values hashing to b187168b916462848c205dad77291b98

query II rowsort label-1700-1
SELECT pk, col0 FROM view_1_tab0_888
----
166 values hashing to af24f0934b7ffc09babbd794b2112c51

query II rowsort label-1700-2
SELECT pk, col0 FROM view_2_tab0_888
----
34 values hashing to b187168b916462848c205dad77291b98

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col0 >= 192 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col0 >= 192)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_888 UNION ALL SELECT pk, col0 FROM view_2_tab0_888
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col0 >= 192 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col0 >= 192)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_888 UNION SELECT pk, col0 FROM view_2_tab0_888
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-1700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col0 >= 192 ) AS tab0_888
----
83 values hashing to 203a0d98eee0ba1feb7969031086031c

query I rowsort label-1700-3
SELECT * FROM view_3_tab0_888
----
83 values hashing to 203a0d98eee0ba1feb7969031086031c

query I rowsort label-1700-3
SELECT pk FROM tab0 WHERE col0 >= 192
----
83 values hashing to 203a0d98eee0ba1feb7969031086031c

statement ok
DROP VIEW view_1_tab0_888

statement ok
DROP VIEW view_2_tab0_888

statement ok
DROP VIEW view_3_tab0_888

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_888') DROP VIEW view_1_tab1_888

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_888

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_888') DROP VIEW view_2_tab1_888

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_888

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_888') DROP VIEW view_3_tab1_888

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_888

statement ok
CREATE VIEW view_1_tab1_888 AS SELECT pk, col0 FROM tab1 WHERE col0 >= 192

statement ok
CREATE VIEW view_2_tab1_888 AS SELECT pk, col0 FROM tab1 WHERE NOT (col0 >= 192)

statement ok
CREATE VIEW view_3_tab1_888 AS SELECT pk FROM view_1_tab1_888

query II rowsort label-1700-1
SELECT pk, col0 FROM tab1 WHERE col0 >= 192
----
166 values hashing to af24f0934b7ffc09babbd794b2112c51

query II rowsort label-1700-2
SELECT pk, col0 FROM tab1 WHERE NOT (col0 >= 192)
----
34 values hashing to b187168b916462848c205dad77291b98

query II rowsort label-1700-1
SELECT pk, col0 FROM view_1_tab1_888
----
166 values hashing to af24f0934b7ffc09babbd794b2112c51

query II rowsort label-1700-2
SELECT pk, col0 FROM view_2_tab1_888
----
34 values hashing to b187168b916462848c205dad77291b98

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col0 >= 192 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col0 >= 192)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_888 UNION ALL SELECT pk, col0 FROM view_2_tab1_888
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col0 >= 192 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col0 >= 192)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_888 UNION SELECT pk, col0 FROM view_2_tab1_888
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-1700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col0 >= 192 ) AS tab1_888
----
83 values hashing to 203a0d98eee0ba1feb7969031086031c

query I rowsort label-1700-3
SELECT * FROM view_3_tab1_888
----
83 values hashing to 203a0d98eee0ba1feb7969031086031c

query I rowsort label-1700-3
SELECT pk FROM tab1 WHERE col0 >= 192
----
83 values hashing to 203a0d98eee0ba1feb7969031086031c

statement ok
DROP VIEW view_1_tab1_888

statement ok
DROP VIEW view_2_tab1_888

statement ok
DROP VIEW view_3_tab1_888

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_888') DROP VIEW view_1_tab2_888

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_888

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_888') DROP VIEW view_2_tab2_888

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_888

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_888') DROP VIEW view_3_tab2_888

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_888

statement ok
CREATE VIEW view_1_tab2_888 AS SELECT pk, col0 FROM tab2 WHERE col0 >= 192

statement ok
CREATE VIEW view_2_tab2_888 AS SELECT pk, col0 FROM tab2 WHERE NOT (col0 >= 192)

statement ok
CREATE VIEW view_3_tab2_888 AS SELECT pk FROM view_1_tab2_888

query II rowsort label-1700-1
SELECT pk, col0 FROM tab2 WHERE col0 >= 192
----
166 values hashing to af24f0934b7ffc09babbd794b2112c51

query II rowsort label-1700-2
SELECT pk, col0 FROM tab2 WHERE NOT (col0 >= 192)
----
34 values hashing to b187168b916462848c205dad77291b98

query II rowsort label-1700-1
SELECT pk, col0 FROM view_1_tab2_888
----
166 values hashing to af24f0934b7ffc09babbd794b2112c51

query II rowsort label-1700-2
SELECT pk, col0 FROM view_2_tab2_888
----
34 values hashing to b187168b916462848c205dad77291b98

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col0 >= 192 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col0 >= 192)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_888 UNION ALL SELECT pk, col0 FROM view_2_tab2_888
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col0 >= 192 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col0 >= 192)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_888 UNION SELECT pk, col0 FROM view_2_tab2_888
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-1700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col0 >= 192 ) AS tab2_888
----
83 values hashing to 203a0d98eee0ba1feb7969031086031c

query I rowsort label-1700-3
SELECT * FROM view_3_tab2_888
----
83 values hashing to 203a0d98eee0ba1feb7969031086031c

query I rowsort label-1700-3
SELECT pk FROM tab2 WHERE col0 >= 192
----
83 values hashing to 203a0d98eee0ba1feb7969031086031c

statement ok
DROP VIEW view_1_tab2_888

statement ok
DROP VIEW view_2_tab2_888

statement ok
DROP VIEW view_3_tab2_888

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_888') DROP VIEW view_1_tab3_888

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_888

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_888') DROP VIEW view_2_tab3_888

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_888

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_888') DROP VIEW view_3_tab3_888

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_888

statement ok
CREATE VIEW view_1_tab3_888 AS SELECT pk, col0 FROM tab3 WHERE col0 >= 192

statement ok
CREATE VIEW view_2_tab3_888 AS SELECT pk, col0 FROM tab3 WHERE NOT (col0 >= 192)

statement ok
CREATE VIEW view_3_tab3_888 AS SELECT pk FROM view_1_tab3_888

query II rowsort label-1700-1
SELECT pk, col0 FROM tab3 WHERE col0 >= 192
----
166 values hashing to af24f0934b7ffc09babbd794b2112c51

query II rowsort label-1700-2
SELECT pk, col0 FROM tab3 WHERE NOT (col0 >= 192)
----
34 values hashing to b187168b916462848c205dad77291b98

query II rowsort label-1700-1
SELECT pk, col0 FROM view_1_tab3_888
----
166 values hashing to af24f0934b7ffc09babbd794b2112c51

query II rowsort label-1700-2
SELECT pk, col0 FROM view_2_tab3_888
----
34 values hashing to b187168b916462848c205dad77291b98

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col0 >= 192 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col0 >= 192)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_888 UNION ALL SELECT pk, col0 FROM view_2_tab3_888
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col0 >= 192 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col0 >= 192)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_888 UNION SELECT pk, col0 FROM view_2_tab3_888
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-1700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col0 >= 192 ) AS tab3_888
----
83 values hashing to 203a0d98eee0ba1feb7969031086031c

query I rowsort label-1700-3
SELECT * FROM view_3_tab3_888
----
83 values hashing to 203a0d98eee0ba1feb7969031086031c

query I rowsort label-1700-3
SELECT pk FROM tab3 WHERE col0 >= 192
----
83 values hashing to 203a0d98eee0ba1feb7969031086031c

statement ok
DROP VIEW view_1_tab3_888

statement ok
DROP VIEW view_2_tab3_888

statement ok
DROP VIEW view_3_tab3_888

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_888') DROP VIEW view_1_tab4_888

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_888

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_888') DROP VIEW view_2_tab4_888

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_888

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_888') DROP VIEW view_3_tab4_888

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_888

statement ok
CREATE VIEW view_1_tab4_888 AS SELECT pk, col0 FROM tab4 WHERE col0 >= 192

statement ok
CREATE VIEW view_2_tab4_888 AS SELECT pk, col0 FROM tab4 WHERE NOT (col0 >= 192)

statement ok
CREATE VIEW view_3_tab4_888 AS SELECT pk FROM view_1_tab4_888

query II rowsort label-1700-1
SELECT pk, col0 FROM tab4 WHERE col0 >= 192
----
166 values hashing to af24f0934b7ffc09babbd794b2112c51

query II rowsort label-1700-2
SELECT pk, col0 FROM tab4 WHERE NOT (col0 >= 192)
----
34 values hashing to b187168b916462848c205dad77291b98

query II rowsort label-1700-1
SELECT pk, col0 FROM view_1_tab4_888
----
166 values hashing to af24f0934b7ffc09babbd794b2112c51

query II rowsort label-1700-2
SELECT pk, col0 FROM view_2_tab4_888
----
34 values hashing to b187168b916462848c205dad77291b98

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col0 >= 192 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col0 >= 192)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_888 UNION ALL SELECT pk, col0 FROM view_2_tab4_888
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col0 >= 192 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col0 >= 192)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_888 UNION SELECT pk, col0 FROM view_2_tab4_888
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-1700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col0 >= 192 ) AS tab4_888
----
83 values hashing to 203a0d98eee0ba1feb7969031086031c

query I rowsort label-1700-3
SELECT * FROM view_3_tab4_888
----
83 values hashing to 203a0d98eee0ba1feb7969031086031c

query I rowsort label-1700-3
SELECT pk FROM tab4 WHERE col0 >= 192
----
83 values hashing to 203a0d98eee0ba1feb7969031086031c

statement ok
DROP VIEW view_1_tab4_888

statement ok
DROP VIEW view_2_tab4_888

statement ok
DROP VIEW view_3_tab4_888

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_889') DROP VIEW view_1_tab0_889

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_889

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_889') DROP VIEW view_2_tab0_889

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_889

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_889') DROP VIEW view_3_tab0_889

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_889

statement ok
CREATE VIEW view_1_tab0_889 AS SELECT pk, col0 FROM tab0 WHERE (col0 < 813) AND col0 < 594 AND (col4 > 398.52) OR (col4 <= 200.26)

statement ok
CREATE VIEW view_2_tab0_889 AS SELECT pk, col0 FROM tab0 WHERE NOT ((col0 < 813) AND col0 < 594 AND (col4 > 398.52) OR (col4 <= 200.26))

statement ok
CREATE VIEW view_3_tab0_889 AS SELECT pk FROM view_1_tab0_889

query II rowsort label-1800-1
SELECT pk, col0 FROM tab0 WHERE (col0 < 813) AND col0 < 594 AND (col4 > 398.52) OR (col4 <= 200.26)
----
108 values hashing to 1283b96a7d48910facf597653e8d4cb1

query II rowsort label-1800-2
SELECT pk, col0 FROM tab0 WHERE NOT ((col0 < 813) AND col0 < 594 AND (col4 > 398.52) OR (col4 <= 200.26))
----
92 values hashing to d804624340e7250d2a77ac89520f3698

query II rowsort label-1800-1
SELECT pk, col0 FROM view_1_tab0_889
----
108 values hashing to 1283b96a7d48910facf597653e8d4cb1

query II rowsort label-1800-2
SELECT pk, col0 FROM view_2_tab0_889
----
92 values hashing to d804624340e7250d2a77ac89520f3698

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col0 < 813) AND col0 < 594 AND (col4 > 398.52) OR (col4 <= 200.26) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT ((col0 < 813) AND col0 < 594 AND (col4 > 398.52) OR (col4 <= 200.26))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_889 UNION ALL SELECT pk, col0 FROM view_2_tab0_889
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col0 < 813) AND col0 < 594 AND (col4 > 398.52) OR (col4 <= 200.26) UNION SELECT pk, col0 FROM tab0 WHERE NOT ((col0 < 813) AND col0 < 594 AND (col4 > 398.52) OR (col4 <= 200.26))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_889 UNION SELECT pk, col0 FROM view_2_tab0_889
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-1800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE (col0 < 813) AND col0 < 594 AND (col4 > 398.52) OR (col4 <= 200.26) ) AS tab0_889
----
54 values hashing to e83e2d6386ffd9c35b584b3774081b72

query I rowsort label-1800-3
SELECT * FROM view_3_tab0_889
----
54 values hashing to e83e2d6386ffd9c35b584b3774081b72

query I rowsort label-1800-3
SELECT pk FROM tab0 WHERE (col0 < 813) AND col0 < 594 AND (col4 > 398.52) OR (col4 <= 200.26)
----
54 values hashing to e83e2d6386ffd9c35b584b3774081b72

statement ok
DROP VIEW view_1_tab0_889

statement ok
DROP VIEW view_2_tab0_889

statement ok
DROP VIEW view_3_tab0_889

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_889') DROP VIEW view_1_tab1_889

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_889

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_889') DROP VIEW view_2_tab1_889

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_889

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_889') DROP VIEW view_3_tab1_889

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_889

statement ok
CREATE VIEW view_1_tab1_889 AS SELECT pk, col0 FROM tab1 WHERE (col0 < 813) AND col0 < 594 AND (col4 > 398.52) OR (col4 <= 200.26)

statement ok
CREATE VIEW view_2_tab1_889 AS SELECT pk, col0 FROM tab1 WHERE NOT ((col0 < 813) AND col0 < 594 AND (col4 > 398.52) OR (col4 <= 200.26))

statement ok
CREATE VIEW view_3_tab1_889 AS SELECT pk FROM view_1_tab1_889

query II rowsort label-1800-1
SELECT pk, col0 FROM tab1 WHERE (col0 < 813) AND col0 < 594 AND (col4 > 398.52) OR (col4 <= 200.26)
----
108 values hashing to 1283b96a7d48910facf597653e8d4cb1

query II rowsort label-1800-2
SELECT pk, col0 FROM tab1 WHERE NOT ((col0 < 813) AND col0 < 594 AND (col4 > 398.52) OR (col4 <= 200.26))
----
92 values hashing to d804624340e7250d2a77ac89520f3698

query II rowsort label-1800-1
SELECT pk, col0 FROM view_1_tab1_889
----
108 values hashing to 1283b96a7d48910facf597653e8d4cb1

query II rowsort label-1800-2
SELECT pk, col0 FROM view_2_tab1_889
----
92 values hashing to d804624340e7250d2a77ac89520f3698

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col0 < 813) AND col0 < 594 AND (col4 > 398.52) OR (col4 <= 200.26) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT ((col0 < 813) AND col0 < 594 AND (col4 > 398.52) OR (col4 <= 200.26))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_889 UNION ALL SELECT pk, col0 FROM view_2_tab1_889
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col0 < 813) AND col0 < 594 AND (col4 > 398.52) OR (col4 <= 200.26) UNION SELECT pk, col0 FROM tab1 WHERE NOT ((col0 < 813) AND col0 < 594 AND (col4 > 398.52) OR (col4 <= 200.26))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_889 UNION SELECT pk, col0 FROM view_2_tab1_889
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-1800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE (col0 < 813) AND col0 < 594 AND (col4 > 398.52) OR (col4 <= 200.26) ) AS tab1_889
----
54 values hashing to e83e2d6386ffd9c35b584b3774081b72

query I rowsort label-1800-3
SELECT * FROM view_3_tab1_889
----
54 values hashing to e83e2d6386ffd9c35b584b3774081b72

query I rowsort label-1800-3
SELECT pk FROM tab1 WHERE (col0 < 813) AND col0 < 594 AND (col4 > 398.52) OR (col4 <= 200.26)
----
54 values hashing to e83e2d6386ffd9c35b584b3774081b72

statement ok
DROP VIEW view_1_tab1_889

statement ok
DROP VIEW view_2_tab1_889

statement ok
DROP VIEW view_3_tab1_889

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_889') DROP VIEW view_1_tab2_889

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_889

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_889') DROP VIEW view_2_tab2_889

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_889

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_889') DROP VIEW view_3_tab2_889

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_889

statement ok
CREATE VIEW view_1_tab2_889 AS SELECT pk, col0 FROM tab2 WHERE (col0 < 813) AND col0 < 594 AND (col4 > 398.52) OR (col4 <= 200.26)

statement ok
CREATE VIEW view_2_tab2_889 AS SELECT pk, col0 FROM tab2 WHERE NOT ((col0 < 813) AND col0 < 594 AND (col4 > 398.52) OR (col4 <= 200.26))

statement ok
CREATE VIEW view_3_tab2_889 AS SELECT pk FROM view_1_tab2_889

query II rowsort label-1800-1
SELECT pk, col0 FROM tab2 WHERE (col0 < 813) AND col0 < 594 AND (col4 > 398.52) OR (col4 <= 200.26)
----
108 values hashing to 1283b96a7d48910facf597653e8d4cb1

query II rowsort label-1800-2
SELECT pk, col0 FROM tab2 WHERE NOT ((col0 < 813) AND col0 < 594 AND (col4 > 398.52) OR (col4 <= 200.26))
----
92 values hashing to d804624340e7250d2a77ac89520f3698

query II rowsort label-1800-1
SELECT pk, col0 FROM view_1_tab2_889
----
108 values hashing to 1283b96a7d48910facf597653e8d4cb1

query II rowsort label-1800-2
SELECT pk, col0 FROM view_2_tab2_889
----
92 values hashing to d804624340e7250d2a77ac89520f3698

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col0 < 813) AND col0 < 594 AND (col4 > 398.52) OR (col4 <= 200.26) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT ((col0 < 813) AND col0 < 594 AND (col4 > 398.52) OR (col4 <= 200.26))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_889 UNION ALL SELECT pk, col0 FROM view_2_tab2_889
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col0 < 813) AND col0 < 594 AND (col4 > 398.52) OR (col4 <= 200.26) UNION SELECT pk, col0 FROM tab2 WHERE NOT ((col0 < 813) AND col0 < 594 AND (col4 > 398.52) OR (col4 <= 200.26))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_889 UNION SELECT pk, col0 FROM view_2_tab2_889
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-1800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE (col0 < 813) AND col0 < 594 AND (col4 > 398.52) OR (col4 <= 200.26) ) AS tab2_889
----
54 values hashing to e83e2d6386ffd9c35b584b3774081b72

query I rowsort label-1800-3
SELECT * FROM view_3_tab2_889
----
54 values hashing to e83e2d6386ffd9c35b584b3774081b72

query I rowsort label-1800-3
SELECT pk FROM tab2 WHERE (col0 < 813) AND col0 < 594 AND (col4 > 398.52) OR (col4 <= 200.26)
----
54 values hashing to e83e2d6386ffd9c35b584b3774081b72

statement ok
DROP VIEW view_1_tab2_889

statement ok
DROP VIEW view_2_tab2_889

statement ok
DROP VIEW view_3_tab2_889

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_889') DROP VIEW view_1_tab3_889

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_889

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_889') DROP VIEW view_2_tab3_889

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_889

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_889') DROP VIEW view_3_tab3_889

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_889

statement ok
CREATE VIEW view_1_tab3_889 AS SELECT pk, col0 FROM tab3 WHERE (col0 < 813) AND col0 < 594 AND (col4 > 398.52) OR (col4 <= 200.26)

statement ok
CREATE VIEW view_2_tab3_889 AS SELECT pk, col0 FROM tab3 WHERE NOT ((col0 < 813) AND col0 < 594 AND (col4 > 398.52) OR (col4 <= 200.26))

statement ok
CREATE VIEW view_3_tab3_889 AS SELECT pk FROM view_1_tab3_889

query II rowsort label-1800-1
SELECT pk, col0 FROM tab3 WHERE (col0 < 813) AND col0 < 594 AND (col4 > 398.52) OR (col4 <= 200.26)
----
108 values hashing to 1283b96a7d48910facf597653e8d4cb1

query II rowsort label-1800-2
SELECT pk, col0 FROM tab3 WHERE NOT ((col0 < 813) AND col0 < 594 AND (col4 > 398.52) OR (col4 <= 200.26))
----
92 values hashing to d804624340e7250d2a77ac89520f3698

query II rowsort label-1800-1
SELECT pk, col0 FROM view_1_tab3_889
----
108 values hashing to 1283b96a7d48910facf597653e8d4cb1

query II rowsort label-1800-2
SELECT pk, col0 FROM view_2_tab3_889
----
92 values hashing to d804624340e7250d2a77ac89520f3698

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col0 < 813) AND col0 < 594 AND (col4 > 398.52) OR (col4 <= 200.26) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT ((col0 < 813) AND col0 < 594 AND (col4 > 398.52) OR (col4 <= 200.26))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_889 UNION ALL SELECT pk, col0 FROM view_2_tab3_889
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col0 < 813) AND col0 < 594 AND (col4 > 398.52) OR (col4 <= 200.26) UNION SELECT pk, col0 FROM tab3 WHERE NOT ((col0 < 813) AND col0 < 594 AND (col4 > 398.52) OR (col4 <= 200.26))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_889 UNION SELECT pk, col0 FROM view_2_tab3_889
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-1800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE (col0 < 813) AND col0 < 594 AND (col4 > 398.52) OR (col4 <= 200.26) ) AS tab3_889
----
54 values hashing to e83e2d6386ffd9c35b584b3774081b72

query I rowsort label-1800-3
SELECT * FROM view_3_tab3_889
----
54 values hashing to e83e2d6386ffd9c35b584b3774081b72

query I rowsort label-1800-3
SELECT pk FROM tab3 WHERE (col0 < 813) AND col0 < 594 AND (col4 > 398.52) OR (col4 <= 200.26)
----
54 values hashing to e83e2d6386ffd9c35b584b3774081b72

statement ok
DROP VIEW view_1_tab3_889

statement ok
DROP VIEW view_2_tab3_889

statement ok
DROP VIEW view_3_tab3_889

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_889') DROP VIEW view_1_tab4_889

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_889

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_889') DROP VIEW view_2_tab4_889

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_889

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_889') DROP VIEW view_3_tab4_889

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_889

statement ok
CREATE VIEW view_1_tab4_889 AS SELECT pk, col0 FROM tab4 WHERE (col0 < 813) AND col0 < 594 AND (col4 > 398.52) OR (col4 <= 200.26)

statement ok
CREATE VIEW view_2_tab4_889 AS SELECT pk, col0 FROM tab4 WHERE NOT ((col0 < 813) AND col0 < 594 AND (col4 > 398.52) OR (col4 <= 200.26))

statement ok
CREATE VIEW view_3_tab4_889 AS SELECT pk FROM view_1_tab4_889

query II rowsort label-1800-1
SELECT pk, col0 FROM tab4 WHERE (col0 < 813) AND col0 < 594 AND (col4 > 398.52) OR (col4 <= 200.26)
----
108 values hashing to 1283b96a7d48910facf597653e8d4cb1

query II rowsort label-1800-2
SELECT pk, col0 FROM tab4 WHERE NOT ((col0 < 813) AND col0 < 594 AND (col4 > 398.52) OR (col4 <= 200.26))
----
92 values hashing to d804624340e7250d2a77ac89520f3698

query II rowsort label-1800-1
SELECT pk, col0 FROM view_1_tab4_889
----
108 values hashing to 1283b96a7d48910facf597653e8d4cb1

query II rowsort label-1800-2
SELECT pk, col0 FROM view_2_tab4_889
----
92 values hashing to d804624340e7250d2a77ac89520f3698

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col0 < 813) AND col0 < 594 AND (col4 > 398.52) OR (col4 <= 200.26) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT ((col0 < 813) AND col0 < 594 AND (col4 > 398.52) OR (col4 <= 200.26))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_889 UNION ALL SELECT pk, col0 FROM view_2_tab4_889
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col0 < 813) AND col0 < 594 AND (col4 > 398.52) OR (col4 <= 200.26) UNION SELECT pk, col0 FROM tab4 WHERE NOT ((col0 < 813) AND col0 < 594 AND (col4 > 398.52) OR (col4 <= 200.26))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_889 UNION SELECT pk, col0 FROM view_2_tab4_889
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-1800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE (col0 < 813) AND col0 < 594 AND (col4 > 398.52) OR (col4 <= 200.26) ) AS tab4_889
----
54 values hashing to e83e2d6386ffd9c35b584b3774081b72

query I rowsort label-1800-3
SELECT * FROM view_3_tab4_889
----
54 values hashing to e83e2d6386ffd9c35b584b3774081b72

query I rowsort label-1800-3
SELECT pk FROM tab4 WHERE (col0 < 813) AND col0 < 594 AND (col4 > 398.52) OR (col4 <= 200.26)
----
54 values hashing to e83e2d6386ffd9c35b584b3774081b72

statement ok
DROP VIEW view_1_tab4_889

statement ok
DROP VIEW view_2_tab4_889

statement ok
DROP VIEW view_3_tab4_889

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_890') DROP VIEW view_1_tab0_890

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_890

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_890') DROP VIEW view_2_tab0_890

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_890

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_890') DROP VIEW view_3_tab0_890

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_890

statement ok
CREATE VIEW view_1_tab0_890 AS SELECT pk, col0 FROM tab0 WHERE ((((((col0 = 969) AND (col3 < 198)))))) AND col3 < 61

statement ok
CREATE VIEW view_2_tab0_890 AS SELECT pk, col0 FROM tab0 WHERE NOT (((((((col0 = 969) AND (col3 < 198)))))) AND col3 < 61)

statement ok
CREATE VIEW view_3_tab0_890 AS SELECT pk FROM view_1_tab0_890

query II rowsort label-1900-1
SELECT pk, col0 FROM tab0 WHERE ((((((col0 = 969) AND (col3 < 198)))))) AND col3 < 61
----

query II rowsort label-1900-2
SELECT pk, col0 FROM tab0 WHERE NOT (((((((col0 = 969) AND (col3 < 198)))))) AND col3 < 61)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-1900-1
SELECT pk, col0 FROM view_1_tab0_890
----

query II rowsort label-1900-2
SELECT pk, col0 FROM view_2_tab0_890
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE ((((((col0 = 969) AND (col3 < 198)))))) AND col3 < 61 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (((((((col0 = 969) AND (col3 < 198)))))) AND col3 < 61)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_890 UNION ALL SELECT pk, col0 FROM view_2_tab0_890
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE ((((((col0 = 969) AND (col3 < 198)))))) AND col3 < 61 UNION SELECT pk, col0 FROM tab0 WHERE NOT (((((((col0 = 969) AND (col3 < 198)))))) AND col3 < 61)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_890 UNION SELECT pk, col0 FROM view_2_tab0_890
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-1900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE ((((((col0 = 969) AND (col3 < 198)))))) AND col3 < 61 ) AS tab0_890
----

query I rowsort label-1900-3
SELECT * FROM view_3_tab0_890
----

query I rowsort label-1900-3
SELECT pk FROM tab0 WHERE ((((((col0 = 969) AND (col3 < 198)))))) AND col3 < 61
----

statement ok
DROP VIEW view_1_tab0_890

statement ok
DROP VIEW view_2_tab0_890

statement ok
DROP VIEW view_3_tab0_890

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_890') DROP VIEW view_1_tab1_890

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_890

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_890') DROP VIEW view_2_tab1_890

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_890

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_890') DROP VIEW view_3_tab1_890

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_890

statement ok
CREATE VIEW view_1_tab1_890 AS SELECT pk, col0 FROM tab1 WHERE ((((((col0 = 969) AND (col3 < 198)))))) AND col3 < 61

statement ok
CREATE VIEW view_2_tab1_890 AS SELECT pk, col0 FROM tab1 WHERE NOT (((((((col0 = 969) AND (col3 < 198)))))) AND col3 < 61)

statement ok
CREATE VIEW view_3_tab1_890 AS SELECT pk FROM view_1_tab1_890

query II rowsort label-1900-1
SELECT pk, col0 FROM tab1 WHERE ((((((col0 = 969) AND (col3 < 198)))))) AND col3 < 61
----

query II rowsort label-1900-2
SELECT pk, col0 FROM tab1 WHERE NOT (((((((col0 = 969) AND (col3 < 198)))))) AND col3 < 61)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-1900-1
SELECT pk, col0 FROM view_1_tab1_890
----

query II rowsort label-1900-2
SELECT pk, col0 FROM view_2_tab1_890
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE ((((((col0 = 969) AND (col3 < 198)))))) AND col3 < 61 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (((((((col0 = 969) AND (col3 < 198)))))) AND col3 < 61)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_890 UNION ALL SELECT pk, col0 FROM view_2_tab1_890
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE ((((((col0 = 969) AND (col3 < 198)))))) AND col3 < 61 UNION SELECT pk, col0 FROM tab1 WHERE NOT (((((((col0 = 969) AND (col3 < 198)))))) AND col3 < 61)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_890 UNION SELECT pk, col0 FROM view_2_tab1_890
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-1900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE ((((((col0 = 969) AND (col3 < 198)))))) AND col3 < 61 ) AS tab1_890
----

query I rowsort label-1900-3
SELECT * FROM view_3_tab1_890
----

query I rowsort label-1900-3
SELECT pk FROM tab1 WHERE ((((((col0 = 969) AND (col3 < 198)))))) AND col3 < 61
----

statement ok
DROP VIEW view_1_tab1_890

statement ok
DROP VIEW view_2_tab1_890

statement ok
DROP VIEW view_3_tab1_890

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_890') DROP VIEW view_1_tab2_890

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_890

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_890') DROP VIEW view_2_tab2_890

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_890

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_890') DROP VIEW view_3_tab2_890

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_890

statement ok
CREATE VIEW view_1_tab2_890 AS SELECT pk, col0 FROM tab2 WHERE ((((((col0 = 969) AND (col3 < 198)))))) AND col3 < 61

statement ok
CREATE VIEW view_2_tab2_890 AS SELECT pk, col0 FROM tab2 WHERE NOT (((((((col0 = 969) AND (col3 < 198)))))) AND col3 < 61)

statement ok
CREATE VIEW view_3_tab2_890 AS SELECT pk FROM view_1_tab2_890

query II rowsort label-1900-1
SELECT pk, col0 FROM tab2 WHERE ((((((col0 = 969) AND (col3 < 198)))))) AND col3 < 61
----

query II rowsort label-1900-2
SELECT pk, col0 FROM tab2 WHERE NOT (((((((col0 = 969) AND (col3 < 198)))))) AND col3 < 61)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-1900-1
SELECT pk, col0 FROM view_1_tab2_890
----

query II rowsort label-1900-2
SELECT pk, col0 FROM view_2_tab2_890
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE ((((((col0 = 969) AND (col3 < 198)))))) AND col3 < 61 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (((((((col0 = 969) AND (col3 < 198)))))) AND col3 < 61)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_890 UNION ALL SELECT pk, col0 FROM view_2_tab2_890
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE ((((((col0 = 969) AND (col3 < 198)))))) AND col3 < 61 UNION SELECT pk, col0 FROM tab2 WHERE NOT (((((((col0 = 969) AND (col3 < 198)))))) AND col3 < 61)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_890 UNION SELECT pk, col0 FROM view_2_tab2_890
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-1900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE ((((((col0 = 969) AND (col3 < 198)))))) AND col3 < 61 ) AS tab2_890
----

query I rowsort label-1900-3
SELECT * FROM view_3_tab2_890
----

query I rowsort label-1900-3
SELECT pk FROM tab2 WHERE ((((((col0 = 969) AND (col3 < 198)))))) AND col3 < 61
----

statement ok
DROP VIEW view_1_tab2_890

statement ok
DROP VIEW view_2_tab2_890

statement ok
DROP VIEW view_3_tab2_890

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_890') DROP VIEW view_1_tab3_890

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_890

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_890') DROP VIEW view_2_tab3_890

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_890

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_890') DROP VIEW view_3_tab3_890

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_890

statement ok
CREATE VIEW view_1_tab3_890 AS SELECT pk, col0 FROM tab3 WHERE ((((((col0 = 969) AND (col3 < 198)))))) AND col3 < 61

statement ok
CREATE VIEW view_2_tab3_890 AS SELECT pk, col0 FROM tab3 WHERE NOT (((((((col0 = 969) AND (col3 < 198)))))) AND col3 < 61)

statement ok
CREATE VIEW view_3_tab3_890 AS SELECT pk FROM view_1_tab3_890

query II rowsort label-1900-1
SELECT pk, col0 FROM tab3 WHERE ((((((col0 = 969) AND (col3 < 198)))))) AND col3 < 61
----

query II rowsort label-1900-2
SELECT pk, col0 FROM tab3 WHERE NOT (((((((col0 = 969) AND (col3 < 198)))))) AND col3 < 61)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-1900-1
SELECT pk, col0 FROM view_1_tab3_890
----

query II rowsort label-1900-2
SELECT pk, col0 FROM view_2_tab3_890
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE ((((((col0 = 969) AND (col3 < 198)))))) AND col3 < 61 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (((((((col0 = 969) AND (col3 < 198)))))) AND col3 < 61)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_890 UNION ALL SELECT pk, col0 FROM view_2_tab3_890
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE ((((((col0 = 969) AND (col3 < 198)))))) AND col3 < 61 UNION SELECT pk, col0 FROM tab3 WHERE NOT (((((((col0 = 969) AND (col3 < 198)))))) AND col3 < 61)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_890 UNION SELECT pk, col0 FROM view_2_tab3_890
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-1900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE ((((((col0 = 969) AND (col3 < 198)))))) AND col3 < 61 ) AS tab3_890
----

query I rowsort label-1900-3
SELECT * FROM view_3_tab3_890
----

query I rowsort label-1900-3
SELECT pk FROM tab3 WHERE ((((((col0 = 969) AND (col3 < 198)))))) AND col3 < 61
----

statement ok
DROP VIEW view_1_tab3_890

statement ok
DROP VIEW view_2_tab3_890

statement ok
DROP VIEW view_3_tab3_890

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_890') DROP VIEW view_1_tab4_890

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_890

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_890') DROP VIEW view_2_tab4_890

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_890

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_890') DROP VIEW view_3_tab4_890

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_890

statement ok
CREATE VIEW view_1_tab4_890 AS SELECT pk, col0 FROM tab4 WHERE ((((((col0 = 969) AND (col3 < 198)))))) AND col3 < 61

statement ok
CREATE VIEW view_2_tab4_890 AS SELECT pk, col0 FROM tab4 WHERE NOT (((((((col0 = 969) AND (col3 < 198)))))) AND col3 < 61)

statement ok
CREATE VIEW view_3_tab4_890 AS SELECT pk FROM view_1_tab4_890

query II rowsort label-1900-1
SELECT pk, col0 FROM tab4 WHERE ((((((col0 = 969) AND (col3 < 198)))))) AND col3 < 61
----

query II rowsort label-1900-2
SELECT pk, col0 FROM tab4 WHERE NOT (((((((col0 = 969) AND (col3 < 198)))))) AND col3 < 61)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-1900-1
SELECT pk, col0 FROM view_1_tab4_890
----

query II rowsort label-1900-2
SELECT pk, col0 FROM view_2_tab4_890
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE ((((((col0 = 969) AND (col3 < 198)))))) AND col3 < 61 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (((((((col0 = 969) AND (col3 < 198)))))) AND col3 < 61)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_890 UNION ALL SELECT pk, col0 FROM view_2_tab4_890
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE ((((((col0 = 969) AND (col3 < 198)))))) AND col3 < 61 UNION SELECT pk, col0 FROM tab4 WHERE NOT (((((((col0 = 969) AND (col3 < 198)))))) AND col3 < 61)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_890 UNION SELECT pk, col0 FROM view_2_tab4_890
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-1900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE ((((((col0 = 969) AND (col3 < 198)))))) AND col3 < 61 ) AS tab4_890
----

query I rowsort label-1900-3
SELECT * FROM view_3_tab4_890
----

query I rowsort label-1900-3
SELECT pk FROM tab4 WHERE ((((((col0 = 969) AND (col3 < 198)))))) AND col3 < 61
----

statement ok
DROP VIEW view_1_tab4_890

statement ok
DROP VIEW view_2_tab4_890

statement ok
DROP VIEW view_3_tab4_890

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_891') DROP VIEW view_1_tab0_891

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_891

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_891') DROP VIEW view_2_tab0_891

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_891

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_891') DROP VIEW view_3_tab0_891

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_891

statement ok
CREATE VIEW view_1_tab0_891 AS SELECT pk, col0 FROM tab0 WHERE col4 = 495.61

statement ok
CREATE VIEW view_2_tab0_891 AS SELECT pk, col0 FROM tab0 WHERE NOT (col4 = 495.61)

statement ok
CREATE VIEW view_3_tab0_891 AS SELECT pk FROM view_1_tab0_891

query II rowsort label-2000-1
SELECT pk, col0 FROM tab0 WHERE col4 = 495.61
----

query II rowsort label-2000-2
SELECT pk, col0 FROM tab0 WHERE NOT (col4 = 495.61)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-2000-1
SELECT pk, col0 FROM view_1_tab0_891
----

query II rowsort label-2000-2
SELECT pk, col0 FROM view_2_tab0_891
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col4 = 495.61 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col4 = 495.61)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_891 UNION ALL SELECT pk, col0 FROM view_2_tab0_891
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col4 = 495.61 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col4 = 495.61)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_891 UNION SELECT pk, col0 FROM view_2_tab0_891
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-2000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col4 = 495.61 ) AS tab0_891
----

query I rowsort label-2000-3
SELECT * FROM view_3_tab0_891
----

query I rowsort label-2000-3
SELECT pk FROM tab0 WHERE col4 = 495.61
----

statement ok
DROP VIEW view_1_tab0_891

statement ok
DROP VIEW view_2_tab0_891

statement ok
DROP VIEW view_3_tab0_891

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_891') DROP VIEW view_1_tab1_891

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_891

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_891') DROP VIEW view_2_tab1_891

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_891

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_891') DROP VIEW view_3_tab1_891

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_891

statement ok
CREATE VIEW view_1_tab1_891 AS SELECT pk, col0 FROM tab1 WHERE col4 = 495.61

statement ok
CREATE VIEW view_2_tab1_891 AS SELECT pk, col0 FROM tab1 WHERE NOT (col4 = 495.61)

statement ok
CREATE VIEW view_3_tab1_891 AS SELECT pk FROM view_1_tab1_891

query II rowsort label-2000-1
SELECT pk, col0 FROM tab1 WHERE col4 = 495.61
----

query II rowsort label-2000-2
SELECT pk, col0 FROM tab1 WHERE NOT (col4 = 495.61)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-2000-1
SELECT pk, col0 FROM view_1_tab1_891
----

query II rowsort label-2000-2
SELECT pk, col0 FROM view_2_tab1_891
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col4 = 495.61 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col4 = 495.61)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_891 UNION ALL SELECT pk, col0 FROM view_2_tab1_891
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col4 = 495.61 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col4 = 495.61)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_891 UNION SELECT pk, col0 FROM view_2_tab1_891
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-2000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col4 = 495.61 ) AS tab1_891
----

query I rowsort label-2000-3
SELECT * FROM view_3_tab1_891
----

query I rowsort label-2000-3
SELECT pk FROM tab1 WHERE col4 = 495.61
----

statement ok
DROP VIEW view_1_tab1_891

statement ok
DROP VIEW view_2_tab1_891

statement ok
DROP VIEW view_3_tab1_891

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_891') DROP VIEW view_1_tab2_891

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_891

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_891') DROP VIEW view_2_tab2_891

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_891

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_891') DROP VIEW view_3_tab2_891

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_891

statement ok
CREATE VIEW view_1_tab2_891 AS SELECT pk, col0 FROM tab2 WHERE col4 = 495.61

statement ok
CREATE VIEW view_2_tab2_891 AS SELECT pk, col0 FROM tab2 WHERE NOT (col4 = 495.61)

statement ok
CREATE VIEW view_3_tab2_891 AS SELECT pk FROM view_1_tab2_891

query II rowsort label-2000-1
SELECT pk, col0 FROM tab2 WHERE col4 = 495.61
----

query II rowsort label-2000-2
SELECT pk, col0 FROM tab2 WHERE NOT (col4 = 495.61)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-2000-1
SELECT pk, col0 FROM view_1_tab2_891
----

query II rowsort label-2000-2
SELECT pk, col0 FROM view_2_tab2_891
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col4 = 495.61 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col4 = 495.61)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_891 UNION ALL SELECT pk, col0 FROM view_2_tab2_891
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col4 = 495.61 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col4 = 495.61)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_891 UNION SELECT pk, col0 FROM view_2_tab2_891
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-2000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col4 = 495.61 ) AS tab2_891
----

query I rowsort label-2000-3
SELECT * FROM view_3_tab2_891
----

query I rowsort label-2000-3
SELECT pk FROM tab2 WHERE col4 = 495.61
----

statement ok
DROP VIEW view_1_tab2_891

statement ok
DROP VIEW view_2_tab2_891

statement ok
DROP VIEW view_3_tab2_891

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_891') DROP VIEW view_1_tab3_891

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_891

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_891') DROP VIEW view_2_tab3_891

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_891

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_891') DROP VIEW view_3_tab3_891

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_891

statement ok
CREATE VIEW view_1_tab3_891 AS SELECT pk, col0 FROM tab3 WHERE col4 = 495.61

statement ok
CREATE VIEW view_2_tab3_891 AS SELECT pk, col0 FROM tab3 WHERE NOT (col4 = 495.61)

statement ok
CREATE VIEW view_3_tab3_891 AS SELECT pk FROM view_1_tab3_891

query II rowsort label-2000-1
SELECT pk, col0 FROM tab3 WHERE col4 = 495.61
----

query II rowsort label-2000-2
SELECT pk, col0 FROM tab3 WHERE NOT (col4 = 495.61)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-2000-1
SELECT pk, col0 FROM view_1_tab3_891
----

query II rowsort label-2000-2
SELECT pk, col0 FROM view_2_tab3_891
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col4 = 495.61 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col4 = 495.61)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_891 UNION ALL SELECT pk, col0 FROM view_2_tab3_891
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col4 = 495.61 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col4 = 495.61)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_891 UNION SELECT pk, col0 FROM view_2_tab3_891
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-2000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col4 = 495.61 ) AS tab3_891
----

query I rowsort label-2000-3
SELECT * FROM view_3_tab3_891
----

query I rowsort label-2000-3
SELECT pk FROM tab3 WHERE col4 = 495.61
----

statement ok
DROP VIEW view_1_tab3_891

statement ok
DROP VIEW view_2_tab3_891

statement ok
DROP VIEW view_3_tab3_891

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_891') DROP VIEW view_1_tab4_891

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_891

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_891') DROP VIEW view_2_tab4_891

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_891

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_891') DROP VIEW view_3_tab4_891

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_891

statement ok
CREATE VIEW view_1_tab4_891 AS SELECT pk, col0 FROM tab4 WHERE col4 = 495.61

statement ok
CREATE VIEW view_2_tab4_891 AS SELECT pk, col0 FROM tab4 WHERE NOT (col4 = 495.61)

statement ok
CREATE VIEW view_3_tab4_891 AS SELECT pk FROM view_1_tab4_891

query II rowsort label-2000-1
SELECT pk, col0 FROM tab4 WHERE col4 = 495.61
----

query II rowsort label-2000-2
SELECT pk, col0 FROM tab4 WHERE NOT (col4 = 495.61)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-2000-1
SELECT pk, col0 FROM view_1_tab4_891
----

query II rowsort label-2000-2
SELECT pk, col0 FROM view_2_tab4_891
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col4 = 495.61 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col4 = 495.61)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_891 UNION ALL SELECT pk, col0 FROM view_2_tab4_891
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col4 = 495.61 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col4 = 495.61)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_891 UNION SELECT pk, col0 FROM view_2_tab4_891
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-2000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col4 = 495.61 ) AS tab4_891
----

query I rowsort label-2000-3
SELECT * FROM view_3_tab4_891
----

query I rowsort label-2000-3
SELECT pk FROM tab4 WHERE col4 = 495.61
----

statement ok
DROP VIEW view_1_tab4_891

statement ok
DROP VIEW view_2_tab4_891

statement ok
DROP VIEW view_3_tab4_891

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_892') DROP VIEW view_1_tab0_892

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_892

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_892') DROP VIEW view_2_tab0_892

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_892

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_892') DROP VIEW view_3_tab0_892

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_892

statement ok
CREATE VIEW view_1_tab0_892 AS SELECT pk, col0 FROM tab0 WHERE (col3 < 661) OR (col0 IS NULL)

statement ok
CREATE VIEW view_2_tab0_892 AS SELECT pk, col0 FROM tab0 WHERE NOT ((col3 < 661) OR (col0 IS NULL))

statement ok
CREATE VIEW view_3_tab0_892 AS SELECT pk FROM view_1_tab0_892

query II rowsort label-2100-1
SELECT pk, col0 FROM tab0 WHERE (col3 < 661) OR (col0 IS NULL)
----
134 values hashing to 461eb551d8297f95eb9041d5f2a50e44

query II rowsort label-2100-2
SELECT pk, col0 FROM tab0 WHERE NOT ((col3 < 661) OR (col0 IS NULL))
----
66 values hashing to e88cd27a9c2b695a138cc8e1dad99b65

query II rowsort label-2100-1
SELECT pk, col0 FROM view_1_tab0_892
----
134 values hashing to 461eb551d8297f95eb9041d5f2a50e44

query II rowsort label-2100-2
SELECT pk, col0 FROM view_2_tab0_892
----
66 values hashing to e88cd27a9c2b695a138cc8e1dad99b65

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col3 < 661) OR (col0 IS NULL) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT ((col3 < 661) OR (col0 IS NULL))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_892 UNION ALL SELECT pk, col0 FROM view_2_tab0_892
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col3 < 661) OR (col0 IS NULL) UNION SELECT pk, col0 FROM tab0 WHERE NOT ((col3 < 661) OR (col0 IS NULL))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_892 UNION SELECT pk, col0 FROM view_2_tab0_892
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-2100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE (col3 < 661) OR (col0 IS NULL) ) AS tab0_892
----
67 values hashing to 1ae557516b643c17ad02f5d0e41f6c73

query I rowsort label-2100-3
SELECT * FROM view_3_tab0_892
----
67 values hashing to 1ae557516b643c17ad02f5d0e41f6c73

query I rowsort label-2100-3
SELECT pk FROM tab0 WHERE (col3 < 661) OR (col0 IS NULL)
----
67 values hashing to 1ae557516b643c17ad02f5d0e41f6c73

statement ok
DROP VIEW view_1_tab0_892

statement ok
DROP VIEW view_2_tab0_892

statement ok
DROP VIEW view_3_tab0_892

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_892') DROP VIEW view_1_tab1_892

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_892

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_892') DROP VIEW view_2_tab1_892

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_892

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_892') DROP VIEW view_3_tab1_892

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_892

statement ok
CREATE VIEW view_1_tab1_892 AS SELECT pk, col0 FROM tab1 WHERE (col3 < 661) OR (col0 IS NULL)

statement ok
CREATE VIEW view_2_tab1_892 AS SELECT pk, col0 FROM tab1 WHERE NOT ((col3 < 661) OR (col0 IS NULL))

statement ok
CREATE VIEW view_3_tab1_892 AS SELECT pk FROM view_1_tab1_892

query II rowsort label-2100-1
SELECT pk, col0 FROM tab1 WHERE (col3 < 661) OR (col0 IS NULL)
----
134 values hashing to 461eb551d8297f95eb9041d5f2a50e44

query II rowsort label-2100-2
SELECT pk, col0 FROM tab1 WHERE NOT ((col3 < 661) OR (col0 IS NULL))
----
66 values hashing to e88cd27a9c2b695a138cc8e1dad99b65

query II rowsort label-2100-1
SELECT pk, col0 FROM view_1_tab1_892
----
134 values hashing to 461eb551d8297f95eb9041d5f2a50e44

query II rowsort label-2100-2
SELECT pk, col0 FROM view_2_tab1_892
----
66 values hashing to e88cd27a9c2b695a138cc8e1dad99b65

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col3 < 661) OR (col0 IS NULL) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT ((col3 < 661) OR (col0 IS NULL))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_892 UNION ALL SELECT pk, col0 FROM view_2_tab1_892
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col3 < 661) OR (col0 IS NULL) UNION SELECT pk, col0 FROM tab1 WHERE NOT ((col3 < 661) OR (col0 IS NULL))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_892 UNION SELECT pk, col0 FROM view_2_tab1_892
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-2100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE (col3 < 661) OR (col0 IS NULL) ) AS tab1_892
----
67 values hashing to 1ae557516b643c17ad02f5d0e41f6c73

query I rowsort label-2100-3
SELECT * FROM view_3_tab1_892
----
67 values hashing to 1ae557516b643c17ad02f5d0e41f6c73

query I rowsort label-2100-3
SELECT pk FROM tab1 WHERE (col3 < 661) OR (col0 IS NULL)
----
67 values hashing to 1ae557516b643c17ad02f5d0e41f6c73

statement ok
DROP VIEW view_1_tab1_892

statement ok
DROP VIEW view_2_tab1_892

statement ok
DROP VIEW view_3_tab1_892

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_892') DROP VIEW view_1_tab2_892

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_892

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_892') DROP VIEW view_2_tab2_892

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_892

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_892') DROP VIEW view_3_tab2_892

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_892

statement ok
CREATE VIEW view_1_tab2_892 AS SELECT pk, col0 FROM tab2 WHERE (col3 < 661) OR (col0 IS NULL)

statement ok
CREATE VIEW view_2_tab2_892 AS SELECT pk, col0 FROM tab2 WHERE NOT ((col3 < 661) OR (col0 IS NULL))

statement ok
CREATE VIEW view_3_tab2_892 AS SELECT pk FROM view_1_tab2_892

query II rowsort label-2100-1
SELECT pk, col0 FROM tab2 WHERE (col3 < 661) OR (col0 IS NULL)
----
134 values hashing to 461eb551d8297f95eb9041d5f2a50e44

query II rowsort label-2100-2
SELECT pk, col0 FROM tab2 WHERE NOT ((col3 < 661) OR (col0 IS NULL))
----
66 values hashing to e88cd27a9c2b695a138cc8e1dad99b65

query II rowsort label-2100-1
SELECT pk, col0 FROM view_1_tab2_892
----
134 values hashing to 461eb551d8297f95eb9041d5f2a50e44

query II rowsort label-2100-2
SELECT pk, col0 FROM view_2_tab2_892
----
66 values hashing to e88cd27a9c2b695a138cc8e1dad99b65

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col3 < 661) OR (col0 IS NULL) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT ((col3 < 661) OR (col0 IS NULL))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_892 UNION ALL SELECT pk, col0 FROM view_2_tab2_892
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col3 < 661) OR (col0 IS NULL) UNION SELECT pk, col0 FROM tab2 WHERE NOT ((col3 < 661) OR (col0 IS NULL))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_892 UNION SELECT pk, col0 FROM view_2_tab2_892
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-2100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE (col3 < 661) OR (col0 IS NULL) ) AS tab2_892
----
67 values hashing to 1ae557516b643c17ad02f5d0e41f6c73

query I rowsort label-2100-3
SELECT * FROM view_3_tab2_892
----
67 values hashing to 1ae557516b643c17ad02f5d0e41f6c73

query I rowsort label-2100-3
SELECT pk FROM tab2 WHERE (col3 < 661) OR (col0 IS NULL)
----
67 values hashing to 1ae557516b643c17ad02f5d0e41f6c73

statement ok
DROP VIEW view_1_tab2_892

statement ok
DROP VIEW view_2_tab2_892

statement ok
DROP VIEW view_3_tab2_892

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_892') DROP VIEW view_1_tab3_892

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_892

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_892') DROP VIEW view_2_tab3_892

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_892

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_892') DROP VIEW view_3_tab3_892

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_892

statement ok
CREATE VIEW view_1_tab3_892 AS SELECT pk, col0 FROM tab3 WHERE (col3 < 661) OR (col0 IS NULL)

statement ok
CREATE VIEW view_2_tab3_892 AS SELECT pk, col0 FROM tab3 WHERE NOT ((col3 < 661) OR (col0 IS NULL))

statement ok
CREATE VIEW view_3_tab3_892 AS SELECT pk FROM view_1_tab3_892

query II rowsort label-2100-1
SELECT pk, col0 FROM tab3 WHERE (col3 < 661) OR (col0 IS NULL)
----
134 values hashing to 461eb551d8297f95eb9041d5f2a50e44

query II rowsort label-2100-2
SELECT pk, col0 FROM tab3 WHERE NOT ((col3 < 661) OR (col0 IS NULL))
----
66 values hashing to e88cd27a9c2b695a138cc8e1dad99b65

query II rowsort label-2100-1
SELECT pk, col0 FROM view_1_tab3_892
----
134 values hashing to 461eb551d8297f95eb9041d5f2a50e44

query II rowsort label-2100-2
SELECT pk, col0 FROM view_2_tab3_892
----
66 values hashing to e88cd27a9c2b695a138cc8e1dad99b65

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col3 < 661) OR (col0 IS NULL) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT ((col3 < 661) OR (col0 IS NULL))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_892 UNION ALL SELECT pk, col0 FROM view_2_tab3_892
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col3 < 661) OR (col0 IS NULL) UNION SELECT pk, col0 FROM tab3 WHERE NOT ((col3 < 661) OR (col0 IS NULL))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_892 UNION SELECT pk, col0 FROM view_2_tab3_892
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-2100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE (col3 < 661) OR (col0 IS NULL) ) AS tab3_892
----
67 values hashing to 1ae557516b643c17ad02f5d0e41f6c73

query I rowsort label-2100-3
SELECT * FROM view_3_tab3_892
----
67 values hashing to 1ae557516b643c17ad02f5d0e41f6c73

query I rowsort label-2100-3
SELECT pk FROM tab3 WHERE (col3 < 661) OR (col0 IS NULL)
----
67 values hashing to 1ae557516b643c17ad02f5d0e41f6c73

statement ok
DROP VIEW view_1_tab3_892

statement ok
DROP VIEW view_2_tab3_892

statement ok
DROP VIEW view_3_tab3_892

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_892') DROP VIEW view_1_tab4_892

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_892

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_892') DROP VIEW view_2_tab4_892

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_892

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_892') DROP VIEW view_3_tab4_892

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_892

statement ok
CREATE VIEW view_1_tab4_892 AS SELECT pk, col0 FROM tab4 WHERE (col3 < 661) OR (col0 IS NULL)

statement ok
CREATE VIEW view_2_tab4_892 AS SELECT pk, col0 FROM tab4 WHERE NOT ((col3 < 661) OR (col0 IS NULL))

statement ok
CREATE VIEW view_3_tab4_892 AS SELECT pk FROM view_1_tab4_892

query II rowsort label-2100-1
SELECT pk, col0 FROM tab4 WHERE (col3 < 661) OR (col0 IS NULL)
----
134 values hashing to 461eb551d8297f95eb9041d5f2a50e44

query II rowsort label-2100-2
SELECT pk, col0 FROM tab4 WHERE NOT ((col3 < 661) OR (col0 IS NULL))
----
66 values hashing to e88cd27a9c2b695a138cc8e1dad99b65

query II rowsort label-2100-1
SELECT pk, col0 FROM view_1_tab4_892
----
134 values hashing to 461eb551d8297f95eb9041d5f2a50e44

query II rowsort label-2100-2
SELECT pk, col0 FROM view_2_tab4_892
----
66 values hashing to e88cd27a9c2b695a138cc8e1dad99b65

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col3 < 661) OR (col0 IS NULL) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT ((col3 < 661) OR (col0 IS NULL))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_892 UNION ALL SELECT pk, col0 FROM view_2_tab4_892
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col3 < 661) OR (col0 IS NULL) UNION SELECT pk, col0 FROM tab4 WHERE NOT ((col3 < 661) OR (col0 IS NULL))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_892 UNION SELECT pk, col0 FROM view_2_tab4_892
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-2100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE (col3 < 661) OR (col0 IS NULL) ) AS tab4_892
----
67 values hashing to 1ae557516b643c17ad02f5d0e41f6c73

query I rowsort label-2100-3
SELECT * FROM view_3_tab4_892
----
67 values hashing to 1ae557516b643c17ad02f5d0e41f6c73

query I rowsort label-2100-3
SELECT pk FROM tab4 WHERE (col3 < 661) OR (col0 IS NULL)
----
67 values hashing to 1ae557516b643c17ad02f5d0e41f6c73

statement ok
DROP VIEW view_1_tab4_892

statement ok
DROP VIEW view_2_tab4_892

statement ok
DROP VIEW view_3_tab4_892

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_893') DROP VIEW view_1_tab0_893

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_893

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_893') DROP VIEW view_2_tab0_893

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_893

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_893') DROP VIEW view_3_tab0_893

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_893

statement ok
CREATE VIEW view_1_tab0_893 AS SELECT pk, col0 FROM tab0 WHERE ((((col0 = 348 OR (col3 >= 649 AND (col4 = 215.89)) OR col3 > 336) AND col0 <= 792 AND col3 = 283)) AND col3 >= 109 AND (col3 <= 499) OR (col3 > 68) OR (col0 IN (741,45,659,642,505)))

statement ok
CREATE VIEW view_2_tab0_893 AS SELECT pk, col0 FROM tab0 WHERE NOT (((((col0 = 348 OR (col3 >= 649 AND (col4 = 215.89)) OR col3 > 336) AND col0 <= 792 AND col3 = 283)) AND col3 >= 109 AND (col3 <= 499) OR (col3 > 68) OR (col0 IN (741,45,659,642,505))))

statement ok
CREATE VIEW view_3_tab0_893 AS SELECT pk FROM view_1_tab0_893

query II rowsort label-2200-1
SELECT pk, col0 FROM tab0 WHERE ((((col0 = 348 OR (col3 >= 649 AND (col4 = 215.89)) OR col3 > 336) AND col0 <= 792 AND col3 = 283)) AND col3 >= 109 AND (col3 <= 499) OR (col3 > 68) OR (col0 IN (741,45,659,642,505)))
----
186 values hashing to 081bb868cbe9132e087268f6e00ab715

query II rowsort label-2200-2
SELECT pk, col0 FROM tab0 WHERE NOT (((((col0 = 348 OR (col3 >= 649 AND (col4 = 215.89)) OR col3 > 336) AND col0 <= 792 AND col3 = 283)) AND col3 >= 109 AND (col3 <= 499) OR (col3 > 68) OR (col0 IN (741,45,659,642,505))))
----
14 values hashing to 559a81778703c2a968d1741a8c5ebe8f

query II rowsort label-2200-1
SELECT pk, col0 FROM view_1_tab0_893
----
186 values hashing to 081bb868cbe9132e087268f6e00ab715

query II rowsort label-2200-2
SELECT pk, col0 FROM view_2_tab0_893
----
14 values hashing to 559a81778703c2a968d1741a8c5ebe8f

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE ((((col0 = 348 OR (col3 >= 649 AND (col4 = 215.89)) OR col3 > 336) AND col0 <= 792 AND col3 = 283)) AND col3 >= 109 AND (col3 <= 499) OR (col3 > 68) OR (col0 IN (741,45,659,642,505))) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (((((col0 = 348 OR (col3 >= 649 AND (col4 = 215.89)) OR col3 > 336) AND col0 <= 792 AND col3 = 283)) AND col3 >= 109 AND (col3 <= 499) OR (col3 > 68) OR (col0 IN (741,45,659,642,505))))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_893 UNION ALL SELECT pk, col0 FROM view_2_tab0_893
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE ((((col0 = 348 OR (col3 >= 649 AND (col4 = 215.89)) OR col3 > 336) AND col0 <= 792 AND col3 = 283)) AND col3 >= 109 AND (col3 <= 499) OR (col3 > 68) OR (col0 IN (741,45,659,642,505))) UNION SELECT pk, col0 FROM tab0 WHERE NOT (((((col0 = 348 OR (col3 >= 649 AND (col4 = 215.89)) OR col3 > 336) AND col0 <= 792 AND col3 = 283)) AND col3 >= 109 AND (col3 <= 499) OR (col3 > 68) OR (col0 IN (741,45,659,642,505))))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_893 UNION SELECT pk, col0 FROM view_2_tab0_893
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-2200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE ((((col0 = 348 OR (col3 >= 649 AND (col4 = 215.89)) OR col3 > 336) AND col0 <= 792 AND col3 = 283)) AND col3 >= 109 AND (col3 <= 499) OR (col3 > 68) OR (col0 IN (741,45,659,642,505))) ) AS tab0_893
----
93 values hashing to 872c8005e3d539779b5031fe794022c4

query I rowsort label-2200-3
SELECT * FROM view_3_tab0_893
----
93 values hashing to 872c8005e3d539779b5031fe794022c4

query I rowsort label-2200-3
SELECT pk FROM tab0 WHERE ((((col0 = 348 OR (col3 >= 649 AND (col4 = 215.89)) OR col3 > 336) AND col0 <= 792 AND col3 = 283)) AND col3 >= 109 AND (col3 <= 499) OR (col3 > 68) OR (col0 IN (741,45,659,642,505)))
----
93 values hashing to 872c8005e3d539779b5031fe794022c4

statement ok
DROP VIEW view_1_tab0_893

statement ok
DROP VIEW view_2_tab0_893

statement ok
DROP VIEW view_3_tab0_893

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_893') DROP VIEW view_1_tab1_893

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_893

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_893') DROP VIEW view_2_tab1_893

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_893

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_893') DROP VIEW view_3_tab1_893

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_893

statement ok
CREATE VIEW view_1_tab1_893 AS SELECT pk, col0 FROM tab1 WHERE ((((col0 = 348 OR (col3 >= 649 AND (col4 = 215.89)) OR col3 > 336) AND col0 <= 792 AND col3 = 283)) AND col3 >= 109 AND (col3 <= 499) OR (col3 > 68) OR (col0 IN (741,45,659,642,505)))

statement ok
CREATE VIEW view_2_tab1_893 AS SELECT pk, col0 FROM tab1 WHERE NOT (((((col0 = 348 OR (col3 >= 649 AND (col4 = 215.89)) OR col3 > 336) AND col0 <= 792 AND col3 = 283)) AND col3 >= 109 AND (col3 <= 499) OR (col3 > 68) OR (col0 IN (741,45,659,642,505))))

statement ok
CREATE VIEW view_3_tab1_893 AS SELECT pk FROM view_1_tab1_893

query II rowsort label-2200-1
SELECT pk, col0 FROM tab1 WHERE ((((col0 = 348 OR (col3 >= 649 AND (col4 = 215.89)) OR col3 > 336) AND col0 <= 792 AND col3 = 283)) AND col3 >= 109 AND (col3 <= 499) OR (col3 > 68) OR (col0 IN (741,45,659,642,505)))
----
186 values hashing to 081bb868cbe9132e087268f6e00ab715

query II rowsort label-2200-2
SELECT pk, col0 FROM tab1 WHERE NOT (((((col0 = 348 OR (col3 >= 649 AND (col4 = 215.89)) OR col3 > 336) AND col0 <= 792 AND col3 = 283)) AND col3 >= 109 AND (col3 <= 499) OR (col3 > 68) OR (col0 IN (741,45,659,642,505))))
----
14 values hashing to 559a81778703c2a968d1741a8c5ebe8f

query II rowsort label-2200-1
SELECT pk, col0 FROM view_1_tab1_893
----
186 values hashing to 081bb868cbe9132e087268f6e00ab715

query II rowsort label-2200-2
SELECT pk, col0 FROM view_2_tab1_893
----
14 values hashing to 559a81778703c2a968d1741a8c5ebe8f

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE ((((col0 = 348 OR (col3 >= 649 AND (col4 = 215.89)) OR col3 > 336) AND col0 <= 792 AND col3 = 283)) AND col3 >= 109 AND (col3 <= 499) OR (col3 > 68) OR (col0 IN (741,45,659,642,505))) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (((((col0 = 348 OR (col3 >= 649 AND (col4 = 215.89)) OR col3 > 336) AND col0 <= 792 AND col3 = 283)) AND col3 >= 109 AND (col3 <= 499) OR (col3 > 68) OR (col0 IN (741,45,659,642,505))))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_893 UNION ALL SELECT pk, col0 FROM view_2_tab1_893
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE ((((col0 = 348 OR (col3 >= 649 AND (col4 = 215.89)) OR col3 > 336) AND col0 <= 792 AND col3 = 283)) AND col3 >= 109 AND (col3 <= 499) OR (col3 > 68) OR (col0 IN (741,45,659,642,505))) UNION SELECT pk, col0 FROM tab1 WHERE NOT (((((col0 = 348 OR (col3 >= 649 AND (col4 = 215.89)) OR col3 > 336) AND col0 <= 792 AND col3 = 283)) AND col3 >= 109 AND (col3 <= 499) OR (col3 > 68) OR (col0 IN (741,45,659,642,505))))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_893 UNION SELECT pk, col0 FROM view_2_tab1_893
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-2200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE ((((col0 = 348 OR (col3 >= 649 AND (col4 = 215.89)) OR col3 > 336) AND col0 <= 792 AND col3 = 283)) AND col3 >= 109 AND (col3 <= 499) OR (col3 > 68) OR (col0 IN (741,45,659,642,505))) ) AS tab1_893
----
93 values hashing to 872c8005e3d539779b5031fe794022c4

query I rowsort label-2200-3
SELECT * FROM view_3_tab1_893
----
93 values hashing to 872c8005e3d539779b5031fe794022c4

query I rowsort label-2200-3
SELECT pk FROM tab1 WHERE ((((col0 = 348 OR (col3 >= 649 AND (col4 = 215.89)) OR col3 > 336) AND col0 <= 792 AND col3 = 283)) AND col3 >= 109 AND (col3 <= 499) OR (col3 > 68) OR (col0 IN (741,45,659,642,505)))
----
93 values hashing to 872c8005e3d539779b5031fe794022c4

statement ok
DROP VIEW view_1_tab1_893

statement ok
DROP VIEW view_2_tab1_893

statement ok
DROP VIEW view_3_tab1_893

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_893') DROP VIEW view_1_tab2_893

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_893

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_893') DROP VIEW view_2_tab2_893

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_893

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_893') DROP VIEW view_3_tab2_893

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_893

statement ok
CREATE VIEW view_1_tab2_893 AS SELECT pk, col0 FROM tab2 WHERE ((((col0 = 348 OR (col3 >= 649 AND (col4 = 215.89)) OR col3 > 336) AND col0 <= 792 AND col3 = 283)) AND col3 >= 109 AND (col3 <= 499) OR (col3 > 68) OR (col0 IN (741,45,659,642,505)))

statement ok
CREATE VIEW view_2_tab2_893 AS SELECT pk, col0 FROM tab2 WHERE NOT (((((col0 = 348 OR (col3 >= 649 AND (col4 = 215.89)) OR col3 > 336) AND col0 <= 792 AND col3 = 283)) AND col3 >= 109 AND (col3 <= 499) OR (col3 > 68) OR (col0 IN (741,45,659,642,505))))

statement ok
CREATE VIEW view_3_tab2_893 AS SELECT pk FROM view_1_tab2_893

query II rowsort label-2200-1
SELECT pk, col0 FROM tab2 WHERE ((((col0 = 348 OR (col3 >= 649 AND (col4 = 215.89)) OR col3 > 336) AND col0 <= 792 AND col3 = 283)) AND col3 >= 109 AND (col3 <= 499) OR (col3 > 68) OR (col0 IN (741,45,659,642,505)))
----
186 values hashing to 081bb868cbe9132e087268f6e00ab715

query II rowsort label-2200-2
SELECT pk, col0 FROM tab2 WHERE NOT (((((col0 = 348 OR (col3 >= 649 AND (col4 = 215.89)) OR col3 > 336) AND col0 <= 792 AND col3 = 283)) AND col3 >= 109 AND (col3 <= 499) OR (col3 > 68) OR (col0 IN (741,45,659,642,505))))
----
14 values hashing to 559a81778703c2a968d1741a8c5ebe8f

query II rowsort label-2200-1
SELECT pk, col0 FROM view_1_tab2_893
----
186 values hashing to 081bb868cbe9132e087268f6e00ab715

query II rowsort label-2200-2
SELECT pk, col0 FROM view_2_tab2_893
----
14 values hashing to 559a81778703c2a968d1741a8c5ebe8f

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE ((((col0 = 348 OR (col3 >= 649 AND (col4 = 215.89)) OR col3 > 336) AND col0 <= 792 AND col3 = 283)) AND col3 >= 109 AND (col3 <= 499) OR (col3 > 68) OR (col0 IN (741,45,659,642,505))) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (((((col0 = 348 OR (col3 >= 649 AND (col4 = 215.89)) OR col3 > 336) AND col0 <= 792 AND col3 = 283)) AND col3 >= 109 AND (col3 <= 499) OR (col3 > 68) OR (col0 IN (741,45,659,642,505))))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_893 UNION ALL SELECT pk, col0 FROM view_2_tab2_893
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE ((((col0 = 348 OR (col3 >= 649 AND (col4 = 215.89)) OR col3 > 336) AND col0 <= 792 AND col3 = 283)) AND col3 >= 109 AND (col3 <= 499) OR (col3 > 68) OR (col0 IN (741,45,659,642,505))) UNION SELECT pk, col0 FROM tab2 WHERE NOT (((((col0 = 348 OR (col3 >= 649 AND (col4 = 215.89)) OR col3 > 336) AND col0 <= 792 AND col3 = 283)) AND col3 >= 109 AND (col3 <= 499) OR (col3 > 68) OR (col0 IN (741,45,659,642,505))))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_893 UNION SELECT pk, col0 FROM view_2_tab2_893
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-2200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE ((((col0 = 348 OR (col3 >= 649 AND (col4 = 215.89)) OR col3 > 336) AND col0 <= 792 AND col3 = 283)) AND col3 >= 109 AND (col3 <= 499) OR (col3 > 68) OR (col0 IN (741,45,659,642,505))) ) AS tab2_893
----
93 values hashing to 872c8005e3d539779b5031fe794022c4

query I rowsort label-2200-3
SELECT * FROM view_3_tab2_893
----
93 values hashing to 872c8005e3d539779b5031fe794022c4

query I rowsort label-2200-3
SELECT pk FROM tab2 WHERE ((((col0 = 348 OR (col3 >= 649 AND (col4 = 215.89)) OR col3 > 336) AND col0 <= 792 AND col3 = 283)) AND col3 >= 109 AND (col3 <= 499) OR (col3 > 68) OR (col0 IN (741,45,659,642,505)))
----
93 values hashing to 872c8005e3d539779b5031fe794022c4

statement ok
DROP VIEW view_1_tab2_893

statement ok
DROP VIEW view_2_tab2_893

statement ok
DROP VIEW view_3_tab2_893

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_893') DROP VIEW view_1_tab3_893

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_893

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_893') DROP VIEW view_2_tab3_893

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_893

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_893') DROP VIEW view_3_tab3_893

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_893

statement ok
CREATE VIEW view_1_tab3_893 AS SELECT pk, col0 FROM tab3 WHERE ((((col0 = 348 OR (col3 >= 649 AND (col4 = 215.89)) OR col3 > 336) AND col0 <= 792 AND col3 = 283)) AND col3 >= 109 AND (col3 <= 499) OR (col3 > 68) OR (col0 IN (741,45,659,642,505)))

statement ok
CREATE VIEW view_2_tab3_893 AS SELECT pk, col0 FROM tab3 WHERE NOT (((((col0 = 348 OR (col3 >= 649 AND (col4 = 215.89)) OR col3 > 336) AND col0 <= 792 AND col3 = 283)) AND col3 >= 109 AND (col3 <= 499) OR (col3 > 68) OR (col0 IN (741,45,659,642,505))))

statement ok
CREATE VIEW view_3_tab3_893 AS SELECT pk FROM view_1_tab3_893

query II rowsort label-2200-1
SELECT pk, col0 FROM tab3 WHERE ((((col0 = 348 OR (col3 >= 649 AND (col4 = 215.89)) OR col3 > 336) AND col0 <= 792 AND col3 = 283)) AND col3 >= 109 AND (col3 <= 499) OR (col3 > 68) OR (col0 IN (741,45,659,642,505)))
----
186 values hashing to 081bb868cbe9132e087268f6e00ab715

query II rowsort label-2200-2
SELECT pk, col0 FROM tab3 WHERE NOT (((((col0 = 348 OR (col3 >= 649 AND (col4 = 215.89)) OR col3 > 336) AND col0 <= 792 AND col3 = 283)) AND col3 >= 109 AND (col3 <= 499) OR (col3 > 68) OR (col0 IN (741,45,659,642,505))))
----
14 values hashing to 559a81778703c2a968d1741a8c5ebe8f

query II rowsort label-2200-1
SELECT pk, col0 FROM view_1_tab3_893
----
186 values hashing to 081bb868cbe9132e087268f6e00ab715

query II rowsort label-2200-2
SELECT pk, col0 FROM view_2_tab3_893
----
14 values hashing to 559a81778703c2a968d1741a8c5ebe8f

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE ((((col0 = 348 OR (col3 >= 649 AND (col4 = 215.89)) OR col3 > 336) AND col0 <= 792 AND col3 = 283)) AND col3 >= 109 AND (col3 <= 499) OR (col3 > 68) OR (col0 IN (741,45,659,642,505))) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (((((col0 = 348 OR (col3 >= 649 AND (col4 = 215.89)) OR col3 > 336) AND col0 <= 792 AND col3 = 283)) AND col3 >= 109 AND (col3 <= 499) OR (col3 > 68) OR (col0 IN (741,45,659,642,505))))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_893 UNION ALL SELECT pk, col0 FROM view_2_tab3_893
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE ((((col0 = 348 OR (col3 >= 649 AND (col4 = 215.89)) OR col3 > 336) AND col0 <= 792 AND col3 = 283)) AND col3 >= 109 AND (col3 <= 499) OR (col3 > 68) OR (col0 IN (741,45,659,642,505))) UNION SELECT pk, col0 FROM tab3 WHERE NOT (((((col0 = 348 OR (col3 >= 649 AND (col4 = 215.89)) OR col3 > 336) AND col0 <= 792 AND col3 = 283)) AND col3 >= 109 AND (col3 <= 499) OR (col3 > 68) OR (col0 IN (741,45,659,642,505))))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_893 UNION SELECT pk, col0 FROM view_2_tab3_893
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-2200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE ((((col0 = 348 OR (col3 >= 649 AND (col4 = 215.89)) OR col3 > 336) AND col0 <= 792 AND col3 = 283)) AND col3 >= 109 AND (col3 <= 499) OR (col3 > 68) OR (col0 IN (741,45,659,642,505))) ) AS tab3_893
----
93 values hashing to 872c8005e3d539779b5031fe794022c4

query I rowsort label-2200-3
SELECT * FROM view_3_tab3_893
----
93 values hashing to 872c8005e3d539779b5031fe794022c4

query I rowsort label-2200-3
SELECT pk FROM tab3 WHERE ((((col0 = 348 OR (col3 >= 649 AND (col4 = 215.89)) OR col3 > 336) AND col0 <= 792 AND col3 = 283)) AND col3 >= 109 AND (col3 <= 499) OR (col3 > 68) OR (col0 IN (741,45,659,642,505)))
----
93 values hashing to 872c8005e3d539779b5031fe794022c4

statement ok
DROP VIEW view_1_tab3_893

statement ok
DROP VIEW view_2_tab3_893

statement ok
DROP VIEW view_3_tab3_893

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_893') DROP VIEW view_1_tab4_893

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_893

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_893') DROP VIEW view_2_tab4_893

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_893

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_893') DROP VIEW view_3_tab4_893

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_893

statement ok
CREATE VIEW view_1_tab4_893 AS SELECT pk, col0 FROM tab4 WHERE ((((col0 = 348 OR (col3 >= 649 AND (col4 = 215.89)) OR col3 > 336) AND col0 <= 792 AND col3 = 283)) AND col3 >= 109 AND (col3 <= 499) OR (col3 > 68) OR (col0 IN (741,45,659,642,505)))

statement ok
CREATE VIEW view_2_tab4_893 AS SELECT pk, col0 FROM tab4 WHERE NOT (((((col0 = 348 OR (col3 >= 649 AND (col4 = 215.89)) OR col3 > 336) AND col0 <= 792 AND col3 = 283)) AND col3 >= 109 AND (col3 <= 499) OR (col3 > 68) OR (col0 IN (741,45,659,642,505))))

statement ok
CREATE VIEW view_3_tab4_893 AS SELECT pk FROM view_1_tab4_893

query II rowsort label-2200-1
SELECT pk, col0 FROM tab4 WHERE ((((col0 = 348 OR (col3 >= 649 AND (col4 = 215.89)) OR col3 > 336) AND col0 <= 792 AND col3 = 283)) AND col3 >= 109 AND (col3 <= 499) OR (col3 > 68) OR (col0 IN (741,45,659,642,505)))
----
186 values hashing to 081bb868cbe9132e087268f6e00ab715

query II rowsort label-2200-2
SELECT pk, col0 FROM tab4 WHERE NOT (((((col0 = 348 OR (col3 >= 649 AND (col4 = 215.89)) OR col3 > 336) AND col0 <= 792 AND col3 = 283)) AND col3 >= 109 AND (col3 <= 499) OR (col3 > 68) OR (col0 IN (741,45,659,642,505))))
----
14 values hashing to 559a81778703c2a968d1741a8c5ebe8f

query II rowsort label-2200-1
SELECT pk, col0 FROM view_1_tab4_893
----
186 values hashing to 081bb868cbe9132e087268f6e00ab715

query II rowsort label-2200-2
SELECT pk, col0 FROM view_2_tab4_893
----
14 values hashing to 559a81778703c2a968d1741a8c5ebe8f

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE ((((col0 = 348 OR (col3 >= 649 AND (col4 = 215.89)) OR col3 > 336) AND col0 <= 792 AND col3 = 283)) AND col3 >= 109 AND (col3 <= 499) OR (col3 > 68) OR (col0 IN (741,45,659,642,505))) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (((((col0 = 348 OR (col3 >= 649 AND (col4 = 215.89)) OR col3 > 336) AND col0 <= 792 AND col3 = 283)) AND col3 >= 109 AND (col3 <= 499) OR (col3 > 68) OR (col0 IN (741,45,659,642,505))))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_893 UNION ALL SELECT pk, col0 FROM view_2_tab4_893
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE ((((col0 = 348 OR (col3 >= 649 AND (col4 = 215.89)) OR col3 > 336) AND col0 <= 792 AND col3 = 283)) AND col3 >= 109 AND (col3 <= 499) OR (col3 > 68) OR (col0 IN (741,45,659,642,505))) UNION SELECT pk, col0 FROM tab4 WHERE NOT (((((col0 = 348 OR (col3 >= 649 AND (col4 = 215.89)) OR col3 > 336) AND col0 <= 792 AND col3 = 283)) AND col3 >= 109 AND (col3 <= 499) OR (col3 > 68) OR (col0 IN (741,45,659,642,505))))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_893 UNION SELECT pk, col0 FROM view_2_tab4_893
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-2200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE ((((col0 = 348 OR (col3 >= 649 AND (col4 = 215.89)) OR col3 > 336) AND col0 <= 792 AND col3 = 283)) AND col3 >= 109 AND (col3 <= 499) OR (col3 > 68) OR (col0 IN (741,45,659,642,505))) ) AS tab4_893
----
93 values hashing to 872c8005e3d539779b5031fe794022c4

query I rowsort label-2200-3
SELECT * FROM view_3_tab4_893
----
93 values hashing to 872c8005e3d539779b5031fe794022c4

query I rowsort label-2200-3
SELECT pk FROM tab4 WHERE ((((col0 = 348 OR (col3 >= 649 AND (col4 = 215.89)) OR col3 > 336) AND col0 <= 792 AND col3 = 283)) AND col3 >= 109 AND (col3 <= 499) OR (col3 > 68) OR (col0 IN (741,45,659,642,505)))
----
93 values hashing to 872c8005e3d539779b5031fe794022c4

statement ok
DROP VIEW view_1_tab4_893

statement ok
DROP VIEW view_2_tab4_893

statement ok
DROP VIEW view_3_tab4_893

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_894') DROP VIEW view_1_tab0_894

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_894

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_894') DROP VIEW view_2_tab0_894

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_894

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_894') DROP VIEW view_3_tab0_894

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_894

statement ok
CREATE VIEW view_1_tab0_894 AS SELECT pk, col0 FROM tab0 WHERE (((col1 > 357.12)))

statement ok
CREATE VIEW view_2_tab0_894 AS SELECT pk, col0 FROM tab0 WHERE NOT ((((col1 > 357.12))))

statement ok
CREATE VIEW view_3_tab0_894 AS SELECT pk FROM view_1_tab0_894

query II rowsort label-2300-1
SELECT pk, col0 FROM tab0 WHERE (((col1 > 357.12)))
----
130 values hashing to 9581e0f7042d204de51370f5035bdb9a

query II rowsort label-2300-2
SELECT pk, col0 FROM tab0 WHERE NOT ((((col1 > 357.12))))
----
70 values hashing to 908708f28e7b7ada23a345f448a861a0

query II rowsort label-2300-1
SELECT pk, col0 FROM view_1_tab0_894
----
130 values hashing to 9581e0f7042d204de51370f5035bdb9a

query II rowsort label-2300-2
SELECT pk, col0 FROM view_2_tab0_894
----
70 values hashing to 908708f28e7b7ada23a345f448a861a0

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (((col1 > 357.12))) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT ((((col1 > 357.12))))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_894 UNION ALL SELECT pk, col0 FROM view_2_tab0_894
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (((col1 > 357.12))) UNION SELECT pk, col0 FROM tab0 WHERE NOT ((((col1 > 357.12))))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_894 UNION SELECT pk, col0 FROM view_2_tab0_894
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-2300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE (((col1 > 357.12))) ) AS tab0_894
----
65 values hashing to 0247fada3c7106f6e51bff35f3d74e32

query I rowsort label-2300-3
SELECT * FROM view_3_tab0_894
----
65 values hashing to 0247fada3c7106f6e51bff35f3d74e32

query I rowsort label-2300-3
SELECT pk FROM tab0 WHERE (((col1 > 357.12)))
----
65 values hashing to 0247fada3c7106f6e51bff35f3d74e32

statement ok
DROP VIEW view_1_tab0_894

statement ok
DROP VIEW view_2_tab0_894

statement ok
DROP VIEW view_3_tab0_894

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_894') DROP VIEW view_1_tab1_894

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_894

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_894') DROP VIEW view_2_tab1_894

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_894

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_894') DROP VIEW view_3_tab1_894

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_894

statement ok
CREATE VIEW view_1_tab1_894 AS SELECT pk, col0 FROM tab1 WHERE (((col1 > 357.12)))

statement ok
CREATE VIEW view_2_tab1_894 AS SELECT pk, col0 FROM tab1 WHERE NOT ((((col1 > 357.12))))

statement ok
CREATE VIEW view_3_tab1_894 AS SELECT pk FROM view_1_tab1_894

query II rowsort label-2300-1
SELECT pk, col0 FROM tab1 WHERE (((col1 > 357.12)))
----
130 values hashing to 9581e0f7042d204de51370f5035bdb9a

query II rowsort label-2300-2
SELECT pk, col0 FROM tab1 WHERE NOT ((((col1 > 357.12))))
----
70 values hashing to 908708f28e7b7ada23a345f448a861a0

query II rowsort label-2300-1
SELECT pk, col0 FROM view_1_tab1_894
----
130 values hashing to 9581e0f7042d204de51370f5035bdb9a

query II rowsort label-2300-2
SELECT pk, col0 FROM view_2_tab1_894
----
70 values hashing to 908708f28e7b7ada23a345f448a861a0

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (((col1 > 357.12))) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT ((((col1 > 357.12))))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_894 UNION ALL SELECT pk, col0 FROM view_2_tab1_894
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (((col1 > 357.12))) UNION SELECT pk, col0 FROM tab1 WHERE NOT ((((col1 > 357.12))))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_894 UNION SELECT pk, col0 FROM view_2_tab1_894
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-2300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE (((col1 > 357.12))) ) AS tab1_894
----
65 values hashing to 0247fada3c7106f6e51bff35f3d74e32

query I rowsort label-2300-3
SELECT * FROM view_3_tab1_894
----
65 values hashing to 0247fada3c7106f6e51bff35f3d74e32

query I rowsort label-2300-3
SELECT pk FROM tab1 WHERE (((col1 > 357.12)))
----
65 values hashing to 0247fada3c7106f6e51bff35f3d74e32

statement ok
DROP VIEW view_1_tab1_894

statement ok
DROP VIEW view_2_tab1_894

statement ok
DROP VIEW view_3_tab1_894

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_894') DROP VIEW view_1_tab2_894

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_894

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_894') DROP VIEW view_2_tab2_894

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_894

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_894') DROP VIEW view_3_tab2_894

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_894

statement ok
CREATE VIEW view_1_tab2_894 AS SELECT pk, col0 FROM tab2 WHERE (((col1 > 357.12)))

statement ok
CREATE VIEW view_2_tab2_894 AS SELECT pk, col0 FROM tab2 WHERE NOT ((((col1 > 357.12))))

statement ok
CREATE VIEW view_3_tab2_894 AS SELECT pk FROM view_1_tab2_894

query II rowsort label-2300-1
SELECT pk, col0 FROM tab2 WHERE (((col1 > 357.12)))
----
130 values hashing to 9581e0f7042d204de51370f5035bdb9a

query II rowsort label-2300-2
SELECT pk, col0 FROM tab2 WHERE NOT ((((col1 > 357.12))))
----
70 values hashing to 908708f28e7b7ada23a345f448a861a0

query II rowsort label-2300-1
SELECT pk, col0 FROM view_1_tab2_894
----
130 values hashing to 9581e0f7042d204de51370f5035bdb9a

query II rowsort label-2300-2
SELECT pk, col0 FROM view_2_tab2_894
----
70 values hashing to 908708f28e7b7ada23a345f448a861a0

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (((col1 > 357.12))) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT ((((col1 > 357.12))))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_894 UNION ALL SELECT pk, col0 FROM view_2_tab2_894
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (((col1 > 357.12))) UNION SELECT pk, col0 FROM tab2 WHERE NOT ((((col1 > 357.12))))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_894 UNION SELECT pk, col0 FROM view_2_tab2_894
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-2300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE (((col1 > 357.12))) ) AS tab2_894
----
65 values hashing to 0247fada3c7106f6e51bff35f3d74e32

query I rowsort label-2300-3
SELECT * FROM view_3_tab2_894
----
65 values hashing to 0247fada3c7106f6e51bff35f3d74e32

query I rowsort label-2300-3
SELECT pk FROM tab2 WHERE (((col1 > 357.12)))
----
65 values hashing to 0247fada3c7106f6e51bff35f3d74e32

statement ok
DROP VIEW view_1_tab2_894

statement ok
DROP VIEW view_2_tab2_894

statement ok
DROP VIEW view_3_tab2_894

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_894') DROP VIEW view_1_tab3_894

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_894

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_894') DROP VIEW view_2_tab3_894

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_894

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_894') DROP VIEW view_3_tab3_894

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_894

statement ok
CREATE VIEW view_1_tab3_894 AS SELECT pk, col0 FROM tab3 WHERE (((col1 > 357.12)))

statement ok
CREATE VIEW view_2_tab3_894 AS SELECT pk, col0 FROM tab3 WHERE NOT ((((col1 > 357.12))))

statement ok
CREATE VIEW view_3_tab3_894 AS SELECT pk FROM view_1_tab3_894

query II rowsort label-2300-1
SELECT pk, col0 FROM tab3 WHERE (((col1 > 357.12)))
----
130 values hashing to 9581e0f7042d204de51370f5035bdb9a

query II rowsort label-2300-2
SELECT pk, col0 FROM tab3 WHERE NOT ((((col1 > 357.12))))
----
70 values hashing to 908708f28e7b7ada23a345f448a861a0

query II rowsort label-2300-1
SELECT pk, col0 FROM view_1_tab3_894
----
130 values hashing to 9581e0f7042d204de51370f5035bdb9a

query II rowsort label-2300-2
SELECT pk, col0 FROM view_2_tab3_894
----
70 values hashing to 908708f28e7b7ada23a345f448a861a0

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (((col1 > 357.12))) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT ((((col1 > 357.12))))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_894 UNION ALL SELECT pk, col0 FROM view_2_tab3_894
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (((col1 > 357.12))) UNION SELECT pk, col0 FROM tab3 WHERE NOT ((((col1 > 357.12))))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_894 UNION SELECT pk, col0 FROM view_2_tab3_894
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-2300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE (((col1 > 357.12))) ) AS tab3_894
----
65 values hashing to 0247fada3c7106f6e51bff35f3d74e32

query I rowsort label-2300-3
SELECT * FROM view_3_tab3_894
----
65 values hashing to 0247fada3c7106f6e51bff35f3d74e32

query I rowsort label-2300-3
SELECT pk FROM tab3 WHERE (((col1 > 357.12)))
----
65 values hashing to 0247fada3c7106f6e51bff35f3d74e32

statement ok
DROP VIEW view_1_tab3_894

statement ok
DROP VIEW view_2_tab3_894

statement ok
DROP VIEW view_3_tab3_894

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_894') DROP VIEW view_1_tab4_894

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_894

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_894') DROP VIEW view_2_tab4_894

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_894

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_894') DROP VIEW view_3_tab4_894

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_894

statement ok
CREATE VIEW view_1_tab4_894 AS SELECT pk, col0 FROM tab4 WHERE (((col1 > 357.12)))

statement ok
CREATE VIEW view_2_tab4_894 AS SELECT pk, col0 FROM tab4 WHERE NOT ((((col1 > 357.12))))

statement ok
CREATE VIEW view_3_tab4_894 AS SELECT pk FROM view_1_tab4_894

query II rowsort label-2300-1
SELECT pk, col0 FROM tab4 WHERE (((col1 > 357.12)))
----
130 values hashing to 9581e0f7042d204de51370f5035bdb9a

query II rowsort label-2300-2
SELECT pk, col0 FROM tab4 WHERE NOT ((((col1 > 357.12))))
----
70 values hashing to 908708f28e7b7ada23a345f448a861a0

query II rowsort label-2300-1
SELECT pk, col0 FROM view_1_tab4_894
----
130 values hashing to 9581e0f7042d204de51370f5035bdb9a

query II rowsort label-2300-2
SELECT pk, col0 FROM view_2_tab4_894
----
70 values hashing to 908708f28e7b7ada23a345f448a861a0

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (((col1 > 357.12))) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT ((((col1 > 357.12))))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_894 UNION ALL SELECT pk, col0 FROM view_2_tab4_894
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (((col1 > 357.12))) UNION SELECT pk, col0 FROM tab4 WHERE NOT ((((col1 > 357.12))))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_894 UNION SELECT pk, col0 FROM view_2_tab4_894
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-2300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE (((col1 > 357.12))) ) AS tab4_894
----
65 values hashing to 0247fada3c7106f6e51bff35f3d74e32

query I rowsort label-2300-3
SELECT * FROM view_3_tab4_894
----
65 values hashing to 0247fada3c7106f6e51bff35f3d74e32

query I rowsort label-2300-3
SELECT pk FROM tab4 WHERE (((col1 > 357.12)))
----
65 values hashing to 0247fada3c7106f6e51bff35f3d74e32

statement ok
DROP VIEW view_1_tab4_894

statement ok
DROP VIEW view_2_tab4_894

statement ok
DROP VIEW view_3_tab4_894

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_895') DROP VIEW view_1_tab0_895

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_895

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_895') DROP VIEW view_2_tab0_895

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_895

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_895') DROP VIEW view_3_tab0_895

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_895

statement ok
CREATE VIEW view_1_tab0_895 AS SELECT pk, col0 FROM tab0 WHERE (col0 < 625)

statement ok
CREATE VIEW view_2_tab0_895 AS SELECT pk, col0 FROM tab0 WHERE NOT ((col0 < 625))

statement ok
CREATE VIEW view_3_tab0_895 AS SELECT pk FROM view_1_tab0_895

query II rowsort label-2400-1
SELECT pk, col0 FROM tab0 WHERE (col0 < 625)
----
116 values hashing to a1c4aaa94a10d21c1d865052f1ff4789

query II rowsort label-2400-2
SELECT pk, col0 FROM tab0 WHERE NOT ((col0 < 625))
----
84 values hashing to d390aeab43b7578bbd519153132c47e2

query II rowsort label-2400-1
SELECT pk, col0 FROM view_1_tab0_895
----
116 values hashing to a1c4aaa94a10d21c1d865052f1ff4789

query II rowsort label-2400-2
SELECT pk, col0 FROM view_2_tab0_895
----
84 values hashing to d390aeab43b7578bbd519153132c47e2

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col0 < 625) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT ((col0 < 625))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_895 UNION ALL SELECT pk, col0 FROM view_2_tab0_895
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col0 < 625) UNION SELECT pk, col0 FROM tab0 WHERE NOT ((col0 < 625))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_895 UNION SELECT pk, col0 FROM view_2_tab0_895
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-2400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE (col0 < 625) ) AS tab0_895
----
58 values hashing to 8a1a89abf6841aa16b6293f75b86da49

query I rowsort label-2400-3
SELECT * FROM view_3_tab0_895
----
58 values hashing to 8a1a89abf6841aa16b6293f75b86da49

query I rowsort label-2400-3
SELECT pk FROM tab0 WHERE (col0 < 625)
----
58 values hashing to 8a1a89abf6841aa16b6293f75b86da49

statement ok
DROP VIEW view_1_tab0_895

statement ok
DROP VIEW view_2_tab0_895

statement ok
DROP VIEW view_3_tab0_895

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_895') DROP VIEW view_1_tab1_895

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_895

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_895') DROP VIEW view_2_tab1_895

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_895

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_895') DROP VIEW view_3_tab1_895

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_895

statement ok
CREATE VIEW view_1_tab1_895 AS SELECT pk, col0 FROM tab1 WHERE (col0 < 625)

statement ok
CREATE VIEW view_2_tab1_895 AS SELECT pk, col0 FROM tab1 WHERE NOT ((col0 < 625))

statement ok
CREATE VIEW view_3_tab1_895 AS SELECT pk FROM view_1_tab1_895

query II rowsort label-2400-1
SELECT pk, col0 FROM tab1 WHERE (col0 < 625)
----
116 values hashing to a1c4aaa94a10d21c1d865052f1ff4789

query II rowsort label-2400-2
SELECT pk, col0 FROM tab1 WHERE NOT ((col0 < 625))
----
84 values hashing to d390aeab43b7578bbd519153132c47e2

query II rowsort label-2400-1
SELECT pk, col0 FROM view_1_tab1_895
----
116 values hashing to a1c4aaa94a10d21c1d865052f1ff4789

query II rowsort label-2400-2
SELECT pk, col0 FROM view_2_tab1_895
----
84 values hashing to d390aeab43b7578bbd519153132c47e2

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col0 < 625) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT ((col0 < 625))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_895 UNION ALL SELECT pk, col0 FROM view_2_tab1_895
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col0 < 625) UNION SELECT pk, col0 FROM tab1 WHERE NOT ((col0 < 625))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_895 UNION SELECT pk, col0 FROM view_2_tab1_895
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-2400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE (col0 < 625) ) AS tab1_895
----
58 values hashing to 8a1a89abf6841aa16b6293f75b86da49

query I rowsort label-2400-3
SELECT * FROM view_3_tab1_895
----
58 values hashing to 8a1a89abf6841aa16b6293f75b86da49

query I rowsort label-2400-3
SELECT pk FROM tab1 WHERE (col0 < 625)
----
58 values hashing to 8a1a89abf6841aa16b6293f75b86da49

statement ok
DROP VIEW view_1_tab1_895

statement ok
DROP VIEW view_2_tab1_895

statement ok
DROP VIEW view_3_tab1_895

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_895') DROP VIEW view_1_tab2_895

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_895

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_895') DROP VIEW view_2_tab2_895

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_895

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_895') DROP VIEW view_3_tab2_895

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_895

statement ok
CREATE VIEW view_1_tab2_895 AS SELECT pk, col0 FROM tab2 WHERE (col0 < 625)

statement ok
CREATE VIEW view_2_tab2_895 AS SELECT pk, col0 FROM tab2 WHERE NOT ((col0 < 625))

statement ok
CREATE VIEW view_3_tab2_895 AS SELECT pk FROM view_1_tab2_895

query II rowsort label-2400-1
SELECT pk, col0 FROM tab2 WHERE (col0 < 625)
----
116 values hashing to a1c4aaa94a10d21c1d865052f1ff4789

query II rowsort label-2400-2
SELECT pk, col0 FROM tab2 WHERE NOT ((col0 < 625))
----
84 values hashing to d390aeab43b7578bbd519153132c47e2

query II rowsort label-2400-1
SELECT pk, col0 FROM view_1_tab2_895
----
116 values hashing to a1c4aaa94a10d21c1d865052f1ff4789

query II rowsort label-2400-2
SELECT pk, col0 FROM view_2_tab2_895
----
84 values hashing to d390aeab43b7578bbd519153132c47e2

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col0 < 625) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT ((col0 < 625))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_895 UNION ALL SELECT pk, col0 FROM view_2_tab2_895
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col0 < 625) UNION SELECT pk, col0 FROM tab2 WHERE NOT ((col0 < 625))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_895 UNION SELECT pk, col0 FROM view_2_tab2_895
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-2400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE (col0 < 625) ) AS tab2_895
----
58 values hashing to 8a1a89abf6841aa16b6293f75b86da49

query I rowsort label-2400-3
SELECT * FROM view_3_tab2_895
----
58 values hashing to 8a1a89abf6841aa16b6293f75b86da49

query I rowsort label-2400-3
SELECT pk FROM tab2 WHERE (col0 < 625)
----
58 values hashing to 8a1a89abf6841aa16b6293f75b86da49

statement ok
DROP VIEW view_1_tab2_895

statement ok
DROP VIEW view_2_tab2_895

statement ok
DROP VIEW view_3_tab2_895

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_895') DROP VIEW view_1_tab3_895

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_895

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_895') DROP VIEW view_2_tab3_895

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_895

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_895') DROP VIEW view_3_tab3_895

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_895

statement ok
CREATE VIEW view_1_tab3_895 AS SELECT pk, col0 FROM tab3 WHERE (col0 < 625)

statement ok
CREATE VIEW view_2_tab3_895 AS SELECT pk, col0 FROM tab3 WHERE NOT ((col0 < 625))

statement ok
CREATE VIEW view_3_tab3_895 AS SELECT pk FROM view_1_tab3_895

query II rowsort label-2400-1
SELECT pk, col0 FROM tab3 WHERE (col0 < 625)
----
116 values hashing to a1c4aaa94a10d21c1d865052f1ff4789

query II rowsort label-2400-2
SELECT pk, col0 FROM tab3 WHERE NOT ((col0 < 625))
----
84 values hashing to d390aeab43b7578bbd519153132c47e2

query II rowsort label-2400-1
SELECT pk, col0 FROM view_1_tab3_895
----
116 values hashing to a1c4aaa94a10d21c1d865052f1ff4789

query II rowsort label-2400-2
SELECT pk, col0 FROM view_2_tab3_895
----
84 values hashing to d390aeab43b7578bbd519153132c47e2

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col0 < 625) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT ((col0 < 625))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_895 UNION ALL SELECT pk, col0 FROM view_2_tab3_895
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col0 < 625) UNION SELECT pk, col0 FROM tab3 WHERE NOT ((col0 < 625))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_895 UNION SELECT pk, col0 FROM view_2_tab3_895
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-2400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE (col0 < 625) ) AS tab3_895
----
58 values hashing to 8a1a89abf6841aa16b6293f75b86da49

query I rowsort label-2400-3
SELECT * FROM view_3_tab3_895
----
58 values hashing to 8a1a89abf6841aa16b6293f75b86da49

query I rowsort label-2400-3
SELECT pk FROM tab3 WHERE (col0 < 625)
----
58 values hashing to 8a1a89abf6841aa16b6293f75b86da49

statement ok
DROP VIEW view_1_tab3_895

statement ok
DROP VIEW view_2_tab3_895

statement ok
DROP VIEW view_3_tab3_895

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_895') DROP VIEW view_1_tab4_895

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_895

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_895') DROP VIEW view_2_tab4_895

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_895

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_895') DROP VIEW view_3_tab4_895

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_895

statement ok
CREATE VIEW view_1_tab4_895 AS SELECT pk, col0 FROM tab4 WHERE (col0 < 625)

statement ok
CREATE VIEW view_2_tab4_895 AS SELECT pk, col0 FROM tab4 WHERE NOT ((col0 < 625))

statement ok
CREATE VIEW view_3_tab4_895 AS SELECT pk FROM view_1_tab4_895

query II rowsort label-2400-1
SELECT pk, col0 FROM tab4 WHERE (col0 < 625)
----
116 values hashing to a1c4aaa94a10d21c1d865052f1ff4789

query II rowsort label-2400-2
SELECT pk, col0 FROM tab4 WHERE NOT ((col0 < 625))
----
84 values hashing to d390aeab43b7578bbd519153132c47e2

query II rowsort label-2400-1
SELECT pk, col0 FROM view_1_tab4_895
----
116 values hashing to a1c4aaa94a10d21c1d865052f1ff4789

query II rowsort label-2400-2
SELECT pk, col0 FROM view_2_tab4_895
----
84 values hashing to d390aeab43b7578bbd519153132c47e2

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col0 < 625) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT ((col0 < 625))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_895 UNION ALL SELECT pk, col0 FROM view_2_tab4_895
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col0 < 625) UNION SELECT pk, col0 FROM tab4 WHERE NOT ((col0 < 625))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_895 UNION SELECT pk, col0 FROM view_2_tab4_895
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-2400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE (col0 < 625) ) AS tab4_895
----
58 values hashing to 8a1a89abf6841aa16b6293f75b86da49

query I rowsort label-2400-3
SELECT * FROM view_3_tab4_895
----
58 values hashing to 8a1a89abf6841aa16b6293f75b86da49

query I rowsort label-2400-3
SELECT pk FROM tab4 WHERE (col0 < 625)
----
58 values hashing to 8a1a89abf6841aa16b6293f75b86da49

statement ok
DROP VIEW view_1_tab4_895

statement ok
DROP VIEW view_2_tab4_895

statement ok
DROP VIEW view_3_tab4_895

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_896') DROP VIEW view_1_tab0_896

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_896

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_896') DROP VIEW view_2_tab0_896

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_896

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_896') DROP VIEW view_3_tab0_896

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_896

statement ok
CREATE VIEW view_1_tab0_896 AS SELECT pk, col0 FROM tab0 WHERE col1 >= 879.30

statement ok
CREATE VIEW view_2_tab0_896 AS SELECT pk, col0 FROM tab0 WHERE NOT (col1 >= 879.30)

statement ok
CREATE VIEW view_3_tab0_896 AS SELECT pk FROM view_1_tab0_896

query II rowsort label-2500-1
SELECT pk, col0 FROM tab0 WHERE col1 >= 879.30
----
20 values hashing to 130722dd0b33c28d5655b510f024ec97

query II rowsort label-2500-2
SELECT pk, col0 FROM tab0 WHERE NOT (col1 >= 879.30)
----
180 values hashing to 58b482b6850cad961855d2db864b1697

query II rowsort label-2500-1
SELECT pk, col0 FROM view_1_tab0_896
----
20 values hashing to 130722dd0b33c28d5655b510f024ec97

query II rowsort label-2500-2
SELECT pk, col0 FROM view_2_tab0_896
----
180 values hashing to 58b482b6850cad961855d2db864b1697

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col1 >= 879.30 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col1 >= 879.30)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_896 UNION ALL SELECT pk, col0 FROM view_2_tab0_896
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col1 >= 879.30 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col1 >= 879.30)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_896 UNION SELECT pk, col0 FROM view_2_tab0_896
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-2500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col1 >= 879.30 ) AS tab0_896
----
10 values hashing to 363c836dbbbaa32ccb40262764ce2006

query I rowsort label-2500-3
SELECT * FROM view_3_tab0_896
----
10 values hashing to 363c836dbbbaa32ccb40262764ce2006

query I rowsort label-2500-3
SELECT pk FROM tab0 WHERE col1 >= 879.30
----
10 values hashing to 363c836dbbbaa32ccb40262764ce2006

statement ok
DROP VIEW view_1_tab0_896

statement ok
DROP VIEW view_2_tab0_896

statement ok
DROP VIEW view_3_tab0_896

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_896') DROP VIEW view_1_tab1_896

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_896

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_896') DROP VIEW view_2_tab1_896

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_896

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_896') DROP VIEW view_3_tab1_896

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_896

statement ok
CREATE VIEW view_1_tab1_896 AS SELECT pk, col0 FROM tab1 WHERE col1 >= 879.30

statement ok
CREATE VIEW view_2_tab1_896 AS SELECT pk, col0 FROM tab1 WHERE NOT (col1 >= 879.30)

statement ok
CREATE VIEW view_3_tab1_896 AS SELECT pk FROM view_1_tab1_896

query II rowsort label-2500-1
SELECT pk, col0 FROM tab1 WHERE col1 >= 879.30
----
20 values hashing to 130722dd0b33c28d5655b510f024ec97

query II rowsort label-2500-2
SELECT pk, col0 FROM tab1 WHERE NOT (col1 >= 879.30)
----
180 values hashing to 58b482b6850cad961855d2db864b1697

query II rowsort label-2500-1
SELECT pk, col0 FROM view_1_tab1_896
----
20 values hashing to 130722dd0b33c28d5655b510f024ec97

query II rowsort label-2500-2
SELECT pk, col0 FROM view_2_tab1_896
----
180 values hashing to 58b482b6850cad961855d2db864b1697

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col1 >= 879.30 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col1 >= 879.30)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_896 UNION ALL SELECT pk, col0 FROM view_2_tab1_896
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col1 >= 879.30 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col1 >= 879.30)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_896 UNION SELECT pk, col0 FROM view_2_tab1_896
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-2500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col1 >= 879.30 ) AS tab1_896
----
10 values hashing to 363c836dbbbaa32ccb40262764ce2006

query I rowsort label-2500-3
SELECT * FROM view_3_tab1_896
----
10 values hashing to 363c836dbbbaa32ccb40262764ce2006

query I rowsort label-2500-3
SELECT pk FROM tab1 WHERE col1 >= 879.30
----
10 values hashing to 363c836dbbbaa32ccb40262764ce2006

statement ok
DROP VIEW view_1_tab1_896

statement ok
DROP VIEW view_2_tab1_896

statement ok
DROP VIEW view_3_tab1_896

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_896') DROP VIEW view_1_tab2_896

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_896

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_896') DROP VIEW view_2_tab2_896

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_896

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_896') DROP VIEW view_3_tab2_896

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_896

statement ok
CREATE VIEW view_1_tab2_896 AS SELECT pk, col0 FROM tab2 WHERE col1 >= 879.30

statement ok
CREATE VIEW view_2_tab2_896 AS SELECT pk, col0 FROM tab2 WHERE NOT (col1 >= 879.30)

statement ok
CREATE VIEW view_3_tab2_896 AS SELECT pk FROM view_1_tab2_896

query II rowsort label-2500-1
SELECT pk, col0 FROM tab2 WHERE col1 >= 879.30
----
20 values hashing to 130722dd0b33c28d5655b510f024ec97

query II rowsort label-2500-2
SELECT pk, col0 FROM tab2 WHERE NOT (col1 >= 879.30)
----
180 values hashing to 58b482b6850cad961855d2db864b1697

query II rowsort label-2500-1
SELECT pk, col0 FROM view_1_tab2_896
----
20 values hashing to 130722dd0b33c28d5655b510f024ec97

query II rowsort label-2500-2
SELECT pk, col0 FROM view_2_tab2_896
----
180 values hashing to 58b482b6850cad961855d2db864b1697

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col1 >= 879.30 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col1 >= 879.30)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_896 UNION ALL SELECT pk, col0 FROM view_2_tab2_896
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col1 >= 879.30 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col1 >= 879.30)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_896 UNION SELECT pk, col0 FROM view_2_tab2_896
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-2500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col1 >= 879.30 ) AS tab2_896
----
10 values hashing to 363c836dbbbaa32ccb40262764ce2006

query I rowsort label-2500-3
SELECT * FROM view_3_tab2_896
----
10 values hashing to 363c836dbbbaa32ccb40262764ce2006

query I rowsort label-2500-3
SELECT pk FROM tab2 WHERE col1 >= 879.30
----
10 values hashing to 363c836dbbbaa32ccb40262764ce2006

statement ok
DROP VIEW view_1_tab2_896

statement ok
DROP VIEW view_2_tab2_896

statement ok
DROP VIEW view_3_tab2_896

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_896') DROP VIEW view_1_tab3_896

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_896

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_896') DROP VIEW view_2_tab3_896

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_896

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_896') DROP VIEW view_3_tab3_896

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_896

statement ok
CREATE VIEW view_1_tab3_896 AS SELECT pk, col0 FROM tab3 WHERE col1 >= 879.30

statement ok
CREATE VIEW view_2_tab3_896 AS SELECT pk, col0 FROM tab3 WHERE NOT (col1 >= 879.30)

statement ok
CREATE VIEW view_3_tab3_896 AS SELECT pk FROM view_1_tab3_896

query II rowsort label-2500-1
SELECT pk, col0 FROM tab3 WHERE col1 >= 879.30
----
20 values hashing to 130722dd0b33c28d5655b510f024ec97

query II rowsort label-2500-2
SELECT pk, col0 FROM tab3 WHERE NOT (col1 >= 879.30)
----
180 values hashing to 58b482b6850cad961855d2db864b1697

query II rowsort label-2500-1
SELECT pk, col0 FROM view_1_tab3_896
----
20 values hashing to 130722dd0b33c28d5655b510f024ec97

query II rowsort label-2500-2
SELECT pk, col0 FROM view_2_tab3_896
----
180 values hashing to 58b482b6850cad961855d2db864b1697

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col1 >= 879.30 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col1 >= 879.30)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_896 UNION ALL SELECT pk, col0 FROM view_2_tab3_896
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col1 >= 879.30 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col1 >= 879.30)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_896 UNION SELECT pk, col0 FROM view_2_tab3_896
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-2500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col1 >= 879.30 ) AS tab3_896
----
10 values hashing to 363c836dbbbaa32ccb40262764ce2006

query I rowsort label-2500-3
SELECT * FROM view_3_tab3_896
----
10 values hashing to 363c836dbbbaa32ccb40262764ce2006

query I rowsort label-2500-3
SELECT pk FROM tab3 WHERE col1 >= 879.30
----
10 values hashing to 363c836dbbbaa32ccb40262764ce2006

statement ok
DROP VIEW view_1_tab3_896

statement ok
DROP VIEW view_2_tab3_896

statement ok
DROP VIEW view_3_tab3_896

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_896') DROP VIEW view_1_tab4_896

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_896

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_896') DROP VIEW view_2_tab4_896

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_896

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_896') DROP VIEW view_3_tab4_896

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_896

statement ok
CREATE VIEW view_1_tab4_896 AS SELECT pk, col0 FROM tab4 WHERE col1 >= 879.30

statement ok
CREATE VIEW view_2_tab4_896 AS SELECT pk, col0 FROM tab4 WHERE NOT (col1 >= 879.30)

statement ok
CREATE VIEW view_3_tab4_896 AS SELECT pk FROM view_1_tab4_896

query II rowsort label-2500-1
SELECT pk, col0 FROM tab4 WHERE col1 >= 879.30
----
20 values hashing to 130722dd0b33c28d5655b510f024ec97

query II rowsort label-2500-2
SELECT pk, col0 FROM tab4 WHERE NOT (col1 >= 879.30)
----
180 values hashing to 58b482b6850cad961855d2db864b1697

query II rowsort label-2500-1
SELECT pk, col0 FROM view_1_tab4_896
----
20 values hashing to 130722dd0b33c28d5655b510f024ec97

query II rowsort label-2500-2
SELECT pk, col0 FROM view_2_tab4_896
----
180 values hashing to 58b482b6850cad961855d2db864b1697

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col1 >= 879.30 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col1 >= 879.30)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_896 UNION ALL SELECT pk, col0 FROM view_2_tab4_896
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col1 >= 879.30 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col1 >= 879.30)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_896 UNION SELECT pk, col0 FROM view_2_tab4_896
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-2500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col1 >= 879.30 ) AS tab4_896
----
10 values hashing to 363c836dbbbaa32ccb40262764ce2006

query I rowsort label-2500-3
SELECT * FROM view_3_tab4_896
----
10 values hashing to 363c836dbbbaa32ccb40262764ce2006

query I rowsort label-2500-3
SELECT pk FROM tab4 WHERE col1 >= 879.30
----
10 values hashing to 363c836dbbbaa32ccb40262764ce2006

statement ok
DROP VIEW view_1_tab4_896

statement ok
DROP VIEW view_2_tab4_896

statement ok
DROP VIEW view_3_tab4_896

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_897') DROP VIEW view_1_tab0_897

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_897

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_897') DROP VIEW view_2_tab0_897

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_897

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_897') DROP VIEW view_3_tab0_897

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_897

statement ok
CREATE VIEW view_1_tab0_897 AS SELECT pk, col0 FROM tab0 WHERE (col4 > 651.20)

statement ok
CREATE VIEW view_2_tab0_897 AS SELECT pk, col0 FROM tab0 WHERE NOT ((col4 > 651.20))

statement ok
CREATE VIEW view_3_tab0_897 AS SELECT pk FROM view_1_tab0_897

query II rowsort label-2600-1
SELECT pk, col0 FROM tab0 WHERE (col4 > 651.20)
----
58 values hashing to 6752e0c94ca42641f28407ed9b413d15

query II rowsort label-2600-2
SELECT pk, col0 FROM tab0 WHERE NOT ((col4 > 651.20))
----
142 values hashing to 8c1176c2480e52323d15f31c393b5b6d

query II rowsort label-2600-1
SELECT pk, col0 FROM view_1_tab0_897
----
58 values hashing to 6752e0c94ca42641f28407ed9b413d15

query II rowsort label-2600-2
SELECT pk, col0 FROM view_2_tab0_897
----
142 values hashing to 8c1176c2480e52323d15f31c393b5b6d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col4 > 651.20) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT ((col4 > 651.20))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_897 UNION ALL SELECT pk, col0 FROM view_2_tab0_897
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col4 > 651.20) UNION SELECT pk, col0 FROM tab0 WHERE NOT ((col4 > 651.20))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_897 UNION SELECT pk, col0 FROM view_2_tab0_897
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-2600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE (col4 > 651.20) ) AS tab0_897
----
29 values hashing to 6dbfcb55ed9e910235a6c924f950dc71

query I rowsort label-2600-3
SELECT * FROM view_3_tab0_897
----
29 values hashing to 6dbfcb55ed9e910235a6c924f950dc71

query I rowsort label-2600-3
SELECT pk FROM tab0 WHERE (col4 > 651.20)
----
29 values hashing to 6dbfcb55ed9e910235a6c924f950dc71

statement ok
DROP VIEW view_1_tab0_897

statement ok
DROP VIEW view_2_tab0_897

statement ok
DROP VIEW view_3_tab0_897

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_897') DROP VIEW view_1_tab1_897

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_897

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_897') DROP VIEW view_2_tab1_897

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_897

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_897') DROP VIEW view_3_tab1_897

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_897

statement ok
CREATE VIEW view_1_tab1_897 AS SELECT pk, col0 FROM tab1 WHERE (col4 > 651.20)

statement ok
CREATE VIEW view_2_tab1_897 AS SELECT pk, col0 FROM tab1 WHERE NOT ((col4 > 651.20))

statement ok
CREATE VIEW view_3_tab1_897 AS SELECT pk FROM view_1_tab1_897

query II rowsort label-2600-1
SELECT pk, col0 FROM tab1 WHERE (col4 > 651.20)
----
58 values hashing to 6752e0c94ca42641f28407ed9b413d15

query II rowsort label-2600-2
SELECT pk, col0 FROM tab1 WHERE NOT ((col4 > 651.20))
----
142 values hashing to 8c1176c2480e52323d15f31c393b5b6d

query II rowsort label-2600-1
SELECT pk, col0 FROM view_1_tab1_897
----
58 values hashing to 6752e0c94ca42641f28407ed9b413d15

query II rowsort label-2600-2
SELECT pk, col0 FROM view_2_tab1_897
----
142 values hashing to 8c1176c2480e52323d15f31c393b5b6d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col4 > 651.20) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT ((col4 > 651.20))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_897 UNION ALL SELECT pk, col0 FROM view_2_tab1_897
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col4 > 651.20) UNION SELECT pk, col0 FROM tab1 WHERE NOT ((col4 > 651.20))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_897 UNION SELECT pk, col0 FROM view_2_tab1_897
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-2600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE (col4 > 651.20) ) AS tab1_897
----
29 values hashing to 6dbfcb55ed9e910235a6c924f950dc71

query I rowsort label-2600-3
SELECT * FROM view_3_tab1_897
----
29 values hashing to 6dbfcb55ed9e910235a6c924f950dc71

query I rowsort label-2600-3
SELECT pk FROM tab1 WHERE (col4 > 651.20)
----
29 values hashing to 6dbfcb55ed9e910235a6c924f950dc71

statement ok
DROP VIEW view_1_tab1_897

statement ok
DROP VIEW view_2_tab1_897

statement ok
DROP VIEW view_3_tab1_897

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_897') DROP VIEW view_1_tab2_897

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_897

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_897') DROP VIEW view_2_tab2_897

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_897

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_897') DROP VIEW view_3_tab2_897

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_897

statement ok
CREATE VIEW view_1_tab2_897 AS SELECT pk, col0 FROM tab2 WHERE (col4 > 651.20)

statement ok
CREATE VIEW view_2_tab2_897 AS SELECT pk, col0 FROM tab2 WHERE NOT ((col4 > 651.20))

statement ok
CREATE VIEW view_3_tab2_897 AS SELECT pk FROM view_1_tab2_897

query II rowsort label-2600-1
SELECT pk, col0 FROM tab2 WHERE (col4 > 651.20)
----
58 values hashing to 6752e0c94ca42641f28407ed9b413d15

query II rowsort label-2600-2
SELECT pk, col0 FROM tab2 WHERE NOT ((col4 > 651.20))
----
142 values hashing to 8c1176c2480e52323d15f31c393b5b6d

query II rowsort label-2600-1
SELECT pk, col0 FROM view_1_tab2_897
----
58 values hashing to 6752e0c94ca42641f28407ed9b413d15

query II rowsort label-2600-2
SELECT pk, col0 FROM view_2_tab2_897
----
142 values hashing to 8c1176c2480e52323d15f31c393b5b6d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col4 > 651.20) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT ((col4 > 651.20))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_897 UNION ALL SELECT pk, col0 FROM view_2_tab2_897
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col4 > 651.20) UNION SELECT pk, col0 FROM tab2 WHERE NOT ((col4 > 651.20))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_897 UNION SELECT pk, col0 FROM view_2_tab2_897
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-2600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE (col4 > 651.20) ) AS tab2_897
----
29 values hashing to 6dbfcb55ed9e910235a6c924f950dc71

query I rowsort label-2600-3
SELECT * FROM view_3_tab2_897
----
29 values hashing to 6dbfcb55ed9e910235a6c924f950dc71

query I rowsort label-2600-3
SELECT pk FROM tab2 WHERE (col4 > 651.20)
----
29 values hashing to 6dbfcb55ed9e910235a6c924f950dc71

statement ok
DROP VIEW view_1_tab2_897

statement ok
DROP VIEW view_2_tab2_897

statement ok
DROP VIEW view_3_tab2_897

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_897') DROP VIEW view_1_tab3_897

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_897

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_897') DROP VIEW view_2_tab3_897

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_897

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_897') DROP VIEW view_3_tab3_897

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_897

statement ok
CREATE VIEW view_1_tab3_897 AS SELECT pk, col0 FROM tab3 WHERE (col4 > 651.20)

statement ok
CREATE VIEW view_2_tab3_897 AS SELECT pk, col0 FROM tab3 WHERE NOT ((col4 > 651.20))

statement ok
CREATE VIEW view_3_tab3_897 AS SELECT pk FROM view_1_tab3_897

query II rowsort label-2600-1
SELECT pk, col0 FROM tab3 WHERE (col4 > 651.20)
----
58 values hashing to 6752e0c94ca42641f28407ed9b413d15

query II rowsort label-2600-2
SELECT pk, col0 FROM tab3 WHERE NOT ((col4 > 651.20))
----
142 values hashing to 8c1176c2480e52323d15f31c393b5b6d

query II rowsort label-2600-1
SELECT pk, col0 FROM view_1_tab3_897
----
58 values hashing to 6752e0c94ca42641f28407ed9b413d15

query II rowsort label-2600-2
SELECT pk, col0 FROM view_2_tab3_897
----
142 values hashing to 8c1176c2480e52323d15f31c393b5b6d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col4 > 651.20) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT ((col4 > 651.20))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_897 UNION ALL SELECT pk, col0 FROM view_2_tab3_897
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col4 > 651.20) UNION SELECT pk, col0 FROM tab3 WHERE NOT ((col4 > 651.20))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_897 UNION SELECT pk, col0 FROM view_2_tab3_897
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-2600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE (col4 > 651.20) ) AS tab3_897
----
29 values hashing to 6dbfcb55ed9e910235a6c924f950dc71

query I rowsort label-2600-3
SELECT * FROM view_3_tab3_897
----
29 values hashing to 6dbfcb55ed9e910235a6c924f950dc71

query I rowsort label-2600-3
SELECT pk FROM tab3 WHERE (col4 > 651.20)
----
29 values hashing to 6dbfcb55ed9e910235a6c924f950dc71

statement ok
DROP VIEW view_1_tab3_897

statement ok
DROP VIEW view_2_tab3_897

statement ok
DROP VIEW view_3_tab3_897

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_897') DROP VIEW view_1_tab4_897

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_897

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_897') DROP VIEW view_2_tab4_897

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_897

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_897') DROP VIEW view_3_tab4_897

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_897

statement ok
CREATE VIEW view_1_tab4_897 AS SELECT pk, col0 FROM tab4 WHERE (col4 > 651.20)

statement ok
CREATE VIEW view_2_tab4_897 AS SELECT pk, col0 FROM tab4 WHERE NOT ((col4 > 651.20))

statement ok
CREATE VIEW view_3_tab4_897 AS SELECT pk FROM view_1_tab4_897

query II rowsort label-2600-1
SELECT pk, col0 FROM tab4 WHERE (col4 > 651.20)
----
58 values hashing to 6752e0c94ca42641f28407ed9b413d15

query II rowsort label-2600-2
SELECT pk, col0 FROM tab4 WHERE NOT ((col4 > 651.20))
----
142 values hashing to 8c1176c2480e52323d15f31c393b5b6d

query II rowsort label-2600-1
SELECT pk, col0 FROM view_1_tab4_897
----
58 values hashing to 6752e0c94ca42641f28407ed9b413d15

query II rowsort label-2600-2
SELECT pk, col0 FROM view_2_tab4_897
----
142 values hashing to 8c1176c2480e52323d15f31c393b5b6d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col4 > 651.20) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT ((col4 > 651.20))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_897 UNION ALL SELECT pk, col0 FROM view_2_tab4_897
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col4 > 651.20) UNION SELECT pk, col0 FROM tab4 WHERE NOT ((col4 > 651.20))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_897 UNION SELECT pk, col0 FROM view_2_tab4_897
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-2600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE (col4 > 651.20) ) AS tab4_897
----
29 values hashing to 6dbfcb55ed9e910235a6c924f950dc71

query I rowsort label-2600-3
SELECT * FROM view_3_tab4_897
----
29 values hashing to 6dbfcb55ed9e910235a6c924f950dc71

query I rowsort label-2600-3
SELECT pk FROM tab4 WHERE (col4 > 651.20)
----
29 values hashing to 6dbfcb55ed9e910235a6c924f950dc71

statement ok
DROP VIEW view_1_tab4_897

statement ok
DROP VIEW view_2_tab4_897

statement ok
DROP VIEW view_3_tab4_897

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_898') DROP VIEW view_1_tab0_898

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_898

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_898') DROP VIEW view_2_tab0_898

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_898

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_898') DROP VIEW view_3_tab0_898

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_898

statement ok
CREATE VIEW view_1_tab0_898 AS SELECT pk, col0 FROM tab0 WHERE (col0 > 830)

statement ok
CREATE VIEW view_2_tab0_898 AS SELECT pk, col0 FROM tab0 WHERE NOT ((col0 > 830))

statement ok
CREATE VIEW view_3_tab0_898 AS SELECT pk FROM view_1_tab0_898

query II rowsort label-2700-1
SELECT pk, col0 FROM tab0 WHERE (col0 > 830)
----
34 values hashing to 72c9a9109c3080759a7a181399d4fccd

query II rowsort label-2700-2
SELECT pk, col0 FROM tab0 WHERE NOT ((col0 > 830))
----
166 values hashing to cebb8449ad20758772001b46b76360e4

query II rowsort label-2700-1
SELECT pk, col0 FROM view_1_tab0_898
----
34 values hashing to 72c9a9109c3080759a7a181399d4fccd

query II rowsort label-2700-2
SELECT pk, col0 FROM view_2_tab0_898
----
166 values hashing to cebb8449ad20758772001b46b76360e4

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col0 > 830) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT ((col0 > 830))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_898 UNION ALL SELECT pk, col0 FROM view_2_tab0_898
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col0 > 830) UNION SELECT pk, col0 FROM tab0 WHERE NOT ((col0 > 830))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_898 UNION SELECT pk, col0 FROM view_2_tab0_898
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-2700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE (col0 > 830) ) AS tab0_898
----
17 values hashing to 4ec52848dc9bb2e016157c8dd39bb282

query I rowsort label-2700-3
SELECT * FROM view_3_tab0_898
----
17 values hashing to 4ec52848dc9bb2e016157c8dd39bb282

query I rowsort label-2700-3
SELECT pk FROM tab0 WHERE (col0 > 830)
----
17 values hashing to 4ec52848dc9bb2e016157c8dd39bb282

statement ok
DROP VIEW view_1_tab0_898

statement ok
DROP VIEW view_2_tab0_898

statement ok
DROP VIEW view_3_tab0_898

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_898') DROP VIEW view_1_tab1_898

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_898

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_898') DROP VIEW view_2_tab1_898

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_898

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_898') DROP VIEW view_3_tab1_898

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_898

statement ok
CREATE VIEW view_1_tab1_898 AS SELECT pk, col0 FROM tab1 WHERE (col0 > 830)

statement ok
CREATE VIEW view_2_tab1_898 AS SELECT pk, col0 FROM tab1 WHERE NOT ((col0 > 830))

statement ok
CREATE VIEW view_3_tab1_898 AS SELECT pk FROM view_1_tab1_898

query II rowsort label-2700-1
SELECT pk, col0 FROM tab1 WHERE (col0 > 830)
----
34 values hashing to 72c9a9109c3080759a7a181399d4fccd

query II rowsort label-2700-2
SELECT pk, col0 FROM tab1 WHERE NOT ((col0 > 830))
----
166 values hashing to cebb8449ad20758772001b46b76360e4

query II rowsort label-2700-1
SELECT pk, col0 FROM view_1_tab1_898
----
34 values hashing to 72c9a9109c3080759a7a181399d4fccd

query II rowsort label-2700-2
SELECT pk, col0 FROM view_2_tab1_898
----
166 values hashing to cebb8449ad20758772001b46b76360e4

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col0 > 830) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT ((col0 > 830))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_898 UNION ALL SELECT pk, col0 FROM view_2_tab1_898
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col0 > 830) UNION SELECT pk, col0 FROM tab1 WHERE NOT ((col0 > 830))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_898 UNION SELECT pk, col0 FROM view_2_tab1_898
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-2700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE (col0 > 830) ) AS tab1_898
----
17 values hashing to 4ec52848dc9bb2e016157c8dd39bb282

query I rowsort label-2700-3
SELECT * FROM view_3_tab1_898
----
17 values hashing to 4ec52848dc9bb2e016157c8dd39bb282

query I rowsort label-2700-3
SELECT pk FROM tab1 WHERE (col0 > 830)
----
17 values hashing to 4ec52848dc9bb2e016157c8dd39bb282

statement ok
DROP VIEW view_1_tab1_898

statement ok
DROP VIEW view_2_tab1_898

statement ok
DROP VIEW view_3_tab1_898

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_898') DROP VIEW view_1_tab2_898

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_898

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_898') DROP VIEW view_2_tab2_898

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_898

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_898') DROP VIEW view_3_tab2_898

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_898

statement ok
CREATE VIEW view_1_tab2_898 AS SELECT pk, col0 FROM tab2 WHERE (col0 > 830)

statement ok
CREATE VIEW view_2_tab2_898 AS SELECT pk, col0 FROM tab2 WHERE NOT ((col0 > 830))

statement ok
CREATE VIEW view_3_tab2_898 AS SELECT pk FROM view_1_tab2_898

query II rowsort label-2700-1
SELECT pk, col0 FROM tab2 WHERE (col0 > 830)
----
34 values hashing to 72c9a9109c3080759a7a181399d4fccd

query II rowsort label-2700-2
SELECT pk, col0 FROM tab2 WHERE NOT ((col0 > 830))
----
166 values hashing to cebb8449ad20758772001b46b76360e4

query II rowsort label-2700-1
SELECT pk, col0 FROM view_1_tab2_898
----
34 values hashing to 72c9a9109c3080759a7a181399d4fccd

query II rowsort label-2700-2
SELECT pk, col0 FROM view_2_tab2_898
----
166 values hashing to cebb8449ad20758772001b46b76360e4

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col0 > 830) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT ((col0 > 830))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_898 UNION ALL SELECT pk, col0 FROM view_2_tab2_898
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col0 > 830) UNION SELECT pk, col0 FROM tab2 WHERE NOT ((col0 > 830))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_898 UNION SELECT pk, col0 FROM view_2_tab2_898
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-2700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE (col0 > 830) ) AS tab2_898
----
17 values hashing to 4ec52848dc9bb2e016157c8dd39bb282

query I rowsort label-2700-3
SELECT * FROM view_3_tab2_898
----
17 values hashing to 4ec52848dc9bb2e016157c8dd39bb282

query I rowsort label-2700-3
SELECT pk FROM tab2 WHERE (col0 > 830)
----
17 values hashing to 4ec52848dc9bb2e016157c8dd39bb282

statement ok
DROP VIEW view_1_tab2_898

statement ok
DROP VIEW view_2_tab2_898

statement ok
DROP VIEW view_3_tab2_898

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_898') DROP VIEW view_1_tab3_898

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_898

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_898') DROP VIEW view_2_tab3_898

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_898

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_898') DROP VIEW view_3_tab3_898

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_898

statement ok
CREATE VIEW view_1_tab3_898 AS SELECT pk, col0 FROM tab3 WHERE (col0 > 830)

statement ok
CREATE VIEW view_2_tab3_898 AS SELECT pk, col0 FROM tab3 WHERE NOT ((col0 > 830))

statement ok
CREATE VIEW view_3_tab3_898 AS SELECT pk FROM view_1_tab3_898

query II rowsort label-2700-1
SELECT pk, col0 FROM tab3 WHERE (col0 > 830)
----
34 values hashing to 72c9a9109c3080759a7a181399d4fccd

query II rowsort label-2700-2
SELECT pk, col0 FROM tab3 WHERE NOT ((col0 > 830))
----
166 values hashing to cebb8449ad20758772001b46b76360e4

query II rowsort label-2700-1
SELECT pk, col0 FROM view_1_tab3_898
----
34 values hashing to 72c9a9109c3080759a7a181399d4fccd

query II rowsort label-2700-2
SELECT pk, col0 FROM view_2_tab3_898
----
166 values hashing to cebb8449ad20758772001b46b76360e4

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col0 > 830) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT ((col0 > 830))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_898 UNION ALL SELECT pk, col0 FROM view_2_tab3_898
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col0 > 830) UNION SELECT pk, col0 FROM tab3 WHERE NOT ((col0 > 830))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_898 UNION SELECT pk, col0 FROM view_2_tab3_898
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-2700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE (col0 > 830) ) AS tab3_898
----
17 values hashing to 4ec52848dc9bb2e016157c8dd39bb282

query I rowsort label-2700-3
SELECT * FROM view_3_tab3_898
----
17 values hashing to 4ec52848dc9bb2e016157c8dd39bb282

query I rowsort label-2700-3
SELECT pk FROM tab3 WHERE (col0 > 830)
----
17 values hashing to 4ec52848dc9bb2e016157c8dd39bb282

statement ok
DROP VIEW view_1_tab3_898

statement ok
DROP VIEW view_2_tab3_898

statement ok
DROP VIEW view_3_tab3_898

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_898') DROP VIEW view_1_tab4_898

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_898

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_898') DROP VIEW view_2_tab4_898

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_898

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_898') DROP VIEW view_3_tab4_898

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_898

statement ok
CREATE VIEW view_1_tab4_898 AS SELECT pk, col0 FROM tab4 WHERE (col0 > 830)

statement ok
CREATE VIEW view_2_tab4_898 AS SELECT pk, col0 FROM tab4 WHERE NOT ((col0 > 830))

statement ok
CREATE VIEW view_3_tab4_898 AS SELECT pk FROM view_1_tab4_898

query II rowsort label-2700-1
SELECT pk, col0 FROM tab4 WHERE (col0 > 830)
----
34 values hashing to 72c9a9109c3080759a7a181399d4fccd

query II rowsort label-2700-2
SELECT pk, col0 FROM tab4 WHERE NOT ((col0 > 830))
----
166 values hashing to cebb8449ad20758772001b46b76360e4

query II rowsort label-2700-1
SELECT pk, col0 FROM view_1_tab4_898
----
34 values hashing to 72c9a9109c3080759a7a181399d4fccd

query II rowsort label-2700-2
SELECT pk, col0 FROM view_2_tab4_898
----
166 values hashing to cebb8449ad20758772001b46b76360e4

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col0 > 830) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT ((col0 > 830))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_898 UNION ALL SELECT pk, col0 FROM view_2_tab4_898
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col0 > 830) UNION SELECT pk, col0 FROM tab4 WHERE NOT ((col0 > 830))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_898 UNION SELECT pk, col0 FROM view_2_tab4_898
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-2700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE (col0 > 830) ) AS tab4_898
----
17 values hashing to 4ec52848dc9bb2e016157c8dd39bb282

query I rowsort label-2700-3
SELECT * FROM view_3_tab4_898
----
17 values hashing to 4ec52848dc9bb2e016157c8dd39bb282

query I rowsort label-2700-3
SELECT pk FROM tab4 WHERE (col0 > 830)
----
17 values hashing to 4ec52848dc9bb2e016157c8dd39bb282

statement ok
DROP VIEW view_1_tab4_898

statement ok
DROP VIEW view_2_tab4_898

statement ok
DROP VIEW view_3_tab4_898

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_899') DROP VIEW view_1_tab0_899

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_899

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_899') DROP VIEW view_2_tab0_899

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_899

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_899') DROP VIEW view_3_tab0_899

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_899

statement ok
CREATE VIEW view_1_tab0_899 AS SELECT pk, col0 FROM tab0 WHERE col3 > 475

statement ok
CREATE VIEW view_2_tab0_899 AS SELECT pk, col0 FROM tab0 WHERE NOT (col3 > 475)

statement ok
CREATE VIEW view_3_tab0_899 AS SELECT pk FROM view_1_tab0_899

query II rowsort label-2800-1
SELECT pk, col0 FROM tab0 WHERE col3 > 475
----
98 values hashing to 92aef2acc4858497438258d8236d4fe6

query II rowsort label-2800-2
SELECT pk, col0 FROM tab0 WHERE NOT (col3 > 475)
----
102 values hashing to b595d132065e944d5a4b67e3afdc809e

query II rowsort label-2800-1
SELECT pk, col0 FROM view_1_tab0_899
----
98 values hashing to 92aef2acc4858497438258d8236d4fe6

query II rowsort label-2800-2
SELECT pk, col0 FROM view_2_tab0_899
----
102 values hashing to b595d132065e944d5a4b67e3afdc809e

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 > 475 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col3 > 475)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_899 UNION ALL SELECT pk, col0 FROM view_2_tab0_899
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 > 475 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col3 > 475)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_899 UNION SELECT pk, col0 FROM view_2_tab0_899
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-2800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col3 > 475 ) AS tab0_899
----
49 values hashing to 8c3e4bcebb338e1f215a9d6392a2b5a1

query I rowsort label-2800-3
SELECT * FROM view_3_tab0_899
----
49 values hashing to 8c3e4bcebb338e1f215a9d6392a2b5a1

query I rowsort label-2800-3
SELECT pk FROM tab0 WHERE col3 > 475
----
49 values hashing to 8c3e4bcebb338e1f215a9d6392a2b5a1

statement ok
DROP VIEW view_1_tab0_899

statement ok
DROP VIEW view_2_tab0_899

statement ok
DROP VIEW view_3_tab0_899

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_899') DROP VIEW view_1_tab1_899

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_899

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_899') DROP VIEW view_2_tab1_899

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_899

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_899') DROP VIEW view_3_tab1_899

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_899

statement ok
CREATE VIEW view_1_tab1_899 AS SELECT pk, col0 FROM tab1 WHERE col3 > 475

statement ok
CREATE VIEW view_2_tab1_899 AS SELECT pk, col0 FROM tab1 WHERE NOT (col3 > 475)

statement ok
CREATE VIEW view_3_tab1_899 AS SELECT pk FROM view_1_tab1_899

query II rowsort label-2800-1
SELECT pk, col0 FROM tab1 WHERE col3 > 475
----
98 values hashing to 92aef2acc4858497438258d8236d4fe6

query II rowsort label-2800-2
SELECT pk, col0 FROM tab1 WHERE NOT (col3 > 475)
----
102 values hashing to b595d132065e944d5a4b67e3afdc809e

query II rowsort label-2800-1
SELECT pk, col0 FROM view_1_tab1_899
----
98 values hashing to 92aef2acc4858497438258d8236d4fe6

query II rowsort label-2800-2
SELECT pk, col0 FROM view_2_tab1_899
----
102 values hashing to b595d132065e944d5a4b67e3afdc809e

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 > 475 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col3 > 475)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_899 UNION ALL SELECT pk, col0 FROM view_2_tab1_899
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 > 475 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col3 > 475)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_899 UNION SELECT pk, col0 FROM view_2_tab1_899
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-2800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col3 > 475 ) AS tab1_899
----
49 values hashing to 8c3e4bcebb338e1f215a9d6392a2b5a1

query I rowsort label-2800-3
SELECT * FROM view_3_tab1_899
----
49 values hashing to 8c3e4bcebb338e1f215a9d6392a2b5a1

query I rowsort label-2800-3
SELECT pk FROM tab1 WHERE col3 > 475
----
49 values hashing to 8c3e4bcebb338e1f215a9d6392a2b5a1

statement ok
DROP VIEW view_1_tab1_899

statement ok
DROP VIEW view_2_tab1_899

statement ok
DROP VIEW view_3_tab1_899

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_899') DROP VIEW view_1_tab2_899

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_899

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_899') DROP VIEW view_2_tab2_899

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_899

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_899') DROP VIEW view_3_tab2_899

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_899

statement ok
CREATE VIEW view_1_tab2_899 AS SELECT pk, col0 FROM tab2 WHERE col3 > 475

statement ok
CREATE VIEW view_2_tab2_899 AS SELECT pk, col0 FROM tab2 WHERE NOT (col3 > 475)

statement ok
CREATE VIEW view_3_tab2_899 AS SELECT pk FROM view_1_tab2_899

query II rowsort label-2800-1
SELECT pk, col0 FROM tab2 WHERE col3 > 475
----
98 values hashing to 92aef2acc4858497438258d8236d4fe6

query II rowsort label-2800-2
SELECT pk, col0 FROM tab2 WHERE NOT (col3 > 475)
----
102 values hashing to b595d132065e944d5a4b67e3afdc809e

query II rowsort label-2800-1
SELECT pk, col0 FROM view_1_tab2_899
----
98 values hashing to 92aef2acc4858497438258d8236d4fe6

query II rowsort label-2800-2
SELECT pk, col0 FROM view_2_tab2_899
----
102 values hashing to b595d132065e944d5a4b67e3afdc809e

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 > 475 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col3 > 475)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_899 UNION ALL SELECT pk, col0 FROM view_2_tab2_899
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 > 475 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col3 > 475)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_899 UNION SELECT pk, col0 FROM view_2_tab2_899
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-2800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col3 > 475 ) AS tab2_899
----
49 values hashing to 8c3e4bcebb338e1f215a9d6392a2b5a1

query I rowsort label-2800-3
SELECT * FROM view_3_tab2_899
----
49 values hashing to 8c3e4bcebb338e1f215a9d6392a2b5a1

query I rowsort label-2800-3
SELECT pk FROM tab2 WHERE col3 > 475
----
49 values hashing to 8c3e4bcebb338e1f215a9d6392a2b5a1

statement ok
DROP VIEW view_1_tab2_899

statement ok
DROP VIEW view_2_tab2_899

statement ok
DROP VIEW view_3_tab2_899

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_899') DROP VIEW view_1_tab3_899

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_899

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_899') DROP VIEW view_2_tab3_899

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_899

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_899') DROP VIEW view_3_tab3_899

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_899

statement ok
CREATE VIEW view_1_tab3_899 AS SELECT pk, col0 FROM tab3 WHERE col3 > 475

statement ok
CREATE VIEW view_2_tab3_899 AS SELECT pk, col0 FROM tab3 WHERE NOT (col3 > 475)

statement ok
CREATE VIEW view_3_tab3_899 AS SELECT pk FROM view_1_tab3_899

query II rowsort label-2800-1
SELECT pk, col0 FROM tab3 WHERE col3 > 475
----
98 values hashing to 92aef2acc4858497438258d8236d4fe6

query II rowsort label-2800-2
SELECT pk, col0 FROM tab3 WHERE NOT (col3 > 475)
----
102 values hashing to b595d132065e944d5a4b67e3afdc809e

query II rowsort label-2800-1
SELECT pk, col0 FROM view_1_tab3_899
----
98 values hashing to 92aef2acc4858497438258d8236d4fe6

query II rowsort label-2800-2
SELECT pk, col0 FROM view_2_tab3_899
----
102 values hashing to b595d132065e944d5a4b67e3afdc809e

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 > 475 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col3 > 475)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_899 UNION ALL SELECT pk, col0 FROM view_2_tab3_899
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 > 475 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col3 > 475)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_899 UNION SELECT pk, col0 FROM view_2_tab3_899
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-2800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col3 > 475 ) AS tab3_899
----
49 values hashing to 8c3e4bcebb338e1f215a9d6392a2b5a1

query I rowsort label-2800-3
SELECT * FROM view_3_tab3_899
----
49 values hashing to 8c3e4bcebb338e1f215a9d6392a2b5a1

query I rowsort label-2800-3
SELECT pk FROM tab3 WHERE col3 > 475
----
49 values hashing to 8c3e4bcebb338e1f215a9d6392a2b5a1

statement ok
DROP VIEW view_1_tab3_899

statement ok
DROP VIEW view_2_tab3_899

statement ok
DROP VIEW view_3_tab3_899

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_899') DROP VIEW view_1_tab4_899

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_899

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_899') DROP VIEW view_2_tab4_899

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_899

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_899') DROP VIEW view_3_tab4_899

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_899

statement ok
CREATE VIEW view_1_tab4_899 AS SELECT pk, col0 FROM tab4 WHERE col3 > 475

statement ok
CREATE VIEW view_2_tab4_899 AS SELECT pk, col0 FROM tab4 WHERE NOT (col3 > 475)

statement ok
CREATE VIEW view_3_tab4_899 AS SELECT pk FROM view_1_tab4_899

query II rowsort label-2800-1
SELECT pk, col0 FROM tab4 WHERE col3 > 475
----
98 values hashing to 92aef2acc4858497438258d8236d4fe6

query II rowsort label-2800-2
SELECT pk, col0 FROM tab4 WHERE NOT (col3 > 475)
----
102 values hashing to b595d132065e944d5a4b67e3afdc809e

query II rowsort label-2800-1
SELECT pk, col0 FROM view_1_tab4_899
----
98 values hashing to 92aef2acc4858497438258d8236d4fe6

query II rowsort label-2800-2
SELECT pk, col0 FROM view_2_tab4_899
----
102 values hashing to b595d132065e944d5a4b67e3afdc809e

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 > 475 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col3 > 475)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_899 UNION ALL SELECT pk, col0 FROM view_2_tab4_899
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 > 475 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col3 > 475)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_899 UNION SELECT pk, col0 FROM view_2_tab4_899
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-2800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col3 > 475 ) AS tab4_899
----
49 values hashing to 8c3e4bcebb338e1f215a9d6392a2b5a1

query I rowsort label-2800-3
SELECT * FROM view_3_tab4_899
----
49 values hashing to 8c3e4bcebb338e1f215a9d6392a2b5a1

query I rowsort label-2800-3
SELECT pk FROM tab4 WHERE col3 > 475
----
49 values hashing to 8c3e4bcebb338e1f215a9d6392a2b5a1

statement ok
DROP VIEW view_1_tab4_899

statement ok
DROP VIEW view_2_tab4_899

statement ok
DROP VIEW view_3_tab4_899

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_900') DROP VIEW view_1_tab0_900

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_900

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_900') DROP VIEW view_2_tab0_900

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_900

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_900') DROP VIEW view_3_tab0_900

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_900

statement ok
CREATE VIEW view_1_tab0_900 AS SELECT pk, col0 FROM tab0 WHERE col4 > 857.31

statement ok
CREATE VIEW view_2_tab0_900 AS SELECT pk, col0 FROM tab0 WHERE NOT (col4 > 857.31)

statement ok
CREATE VIEW view_3_tab0_900 AS SELECT pk FROM view_1_tab0_900

query II rowsort label-2900-1
SELECT pk, col0 FROM tab0 WHERE col4 > 857.31
----
26 values hashing to c3b299821b687fdc31d80f4e99d12506

query II rowsort label-2900-2
SELECT pk, col0 FROM tab0 WHERE NOT (col4 > 857.31)
----
174 values hashing to b86376a08f99a49fd9d40c015b633051

query II rowsort label-2900-1
SELECT pk, col0 FROM view_1_tab0_900
----
26 values hashing to c3b299821b687fdc31d80f4e99d12506

query II rowsort label-2900-2
SELECT pk, col0 FROM view_2_tab0_900
----
174 values hashing to b86376a08f99a49fd9d40c015b633051

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col4 > 857.31 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col4 > 857.31)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_900 UNION ALL SELECT pk, col0 FROM view_2_tab0_900
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col4 > 857.31 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col4 > 857.31)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_900 UNION SELECT pk, col0 FROM view_2_tab0_900
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-2900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col4 > 857.31 ) AS tab0_900
----
13 values hashing to 259e2f30fd941d29c425a1fc9cb1df43

query I rowsort label-2900-3
SELECT * FROM view_3_tab0_900
----
13 values hashing to 259e2f30fd941d29c425a1fc9cb1df43

query I rowsort label-2900-3
SELECT pk FROM tab0 WHERE col4 > 857.31
----
13 values hashing to 259e2f30fd941d29c425a1fc9cb1df43

statement ok
DROP VIEW view_1_tab0_900

statement ok
DROP VIEW view_2_tab0_900

statement ok
DROP VIEW view_3_tab0_900

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_900') DROP VIEW view_1_tab1_900

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_900

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_900') DROP VIEW view_2_tab1_900

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_900

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_900') DROP VIEW view_3_tab1_900

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_900

statement ok
CREATE VIEW view_1_tab1_900 AS SELECT pk, col0 FROM tab1 WHERE col4 > 857.31

statement ok
CREATE VIEW view_2_tab1_900 AS SELECT pk, col0 FROM tab1 WHERE NOT (col4 > 857.31)

statement ok
CREATE VIEW view_3_tab1_900 AS SELECT pk FROM view_1_tab1_900

query II rowsort label-2900-1
SELECT pk, col0 FROM tab1 WHERE col4 > 857.31
----
26 values hashing to c3b299821b687fdc31d80f4e99d12506

query II rowsort label-2900-2
SELECT pk, col0 FROM tab1 WHERE NOT (col4 > 857.31)
----
174 values hashing to b86376a08f99a49fd9d40c015b633051

query II rowsort label-2900-1
SELECT pk, col0 FROM view_1_tab1_900
----
26 values hashing to c3b299821b687fdc31d80f4e99d12506

query II rowsort label-2900-2
SELECT pk, col0 FROM view_2_tab1_900
----
174 values hashing to b86376a08f99a49fd9d40c015b633051

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col4 > 857.31 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col4 > 857.31)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_900 UNION ALL SELECT pk, col0 FROM view_2_tab1_900
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col4 > 857.31 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col4 > 857.31)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_900 UNION SELECT pk, col0 FROM view_2_tab1_900
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-2900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col4 > 857.31 ) AS tab1_900
----
13 values hashing to 259e2f30fd941d29c425a1fc9cb1df43

query I rowsort label-2900-3
SELECT * FROM view_3_tab1_900
----
13 values hashing to 259e2f30fd941d29c425a1fc9cb1df43

query I rowsort label-2900-3
SELECT pk FROM tab1 WHERE col4 > 857.31
----
13 values hashing to 259e2f30fd941d29c425a1fc9cb1df43

statement ok
DROP VIEW view_1_tab1_900

statement ok
DROP VIEW view_2_tab1_900

statement ok
DROP VIEW view_3_tab1_900

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_900') DROP VIEW view_1_tab2_900

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_900

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_900') DROP VIEW view_2_tab2_900

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_900

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_900') DROP VIEW view_3_tab2_900

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_900

statement ok
CREATE VIEW view_1_tab2_900 AS SELECT pk, col0 FROM tab2 WHERE col4 > 857.31

statement ok
CREATE VIEW view_2_tab2_900 AS SELECT pk, col0 FROM tab2 WHERE NOT (col4 > 857.31)

statement ok
CREATE VIEW view_3_tab2_900 AS SELECT pk FROM view_1_tab2_900

query II rowsort label-2900-1
SELECT pk, col0 FROM tab2 WHERE col4 > 857.31
----
26 values hashing to c3b299821b687fdc31d80f4e99d12506

query II rowsort label-2900-2
SELECT pk, col0 FROM tab2 WHERE NOT (col4 > 857.31)
----
174 values hashing to b86376a08f99a49fd9d40c015b633051

query II rowsort label-2900-1
SELECT pk, col0 FROM view_1_tab2_900
----
26 values hashing to c3b299821b687fdc31d80f4e99d12506

query II rowsort label-2900-2
SELECT pk, col0 FROM view_2_tab2_900
----
174 values hashing to b86376a08f99a49fd9d40c015b633051

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col4 > 857.31 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col4 > 857.31)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_900 UNION ALL SELECT pk, col0 FROM view_2_tab2_900
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col4 > 857.31 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col4 > 857.31)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_900 UNION SELECT pk, col0 FROM view_2_tab2_900
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-2900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col4 > 857.31 ) AS tab2_900
----
13 values hashing to 259e2f30fd941d29c425a1fc9cb1df43

query I rowsort label-2900-3
SELECT * FROM view_3_tab2_900
----
13 values hashing to 259e2f30fd941d29c425a1fc9cb1df43

query I rowsort label-2900-3
SELECT pk FROM tab2 WHERE col4 > 857.31
----
13 values hashing to 259e2f30fd941d29c425a1fc9cb1df43

statement ok
DROP VIEW view_1_tab2_900

statement ok
DROP VIEW view_2_tab2_900

statement ok
DROP VIEW view_3_tab2_900

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_900') DROP VIEW view_1_tab3_900

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_900

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_900') DROP VIEW view_2_tab3_900

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_900

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_900') DROP VIEW view_3_tab3_900

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_900

statement ok
CREATE VIEW view_1_tab3_900 AS SELECT pk, col0 FROM tab3 WHERE col4 > 857.31

statement ok
CREATE VIEW view_2_tab3_900 AS SELECT pk, col0 FROM tab3 WHERE NOT (col4 > 857.31)

statement ok
CREATE VIEW view_3_tab3_900 AS SELECT pk FROM view_1_tab3_900

query II rowsort label-2900-1
SELECT pk, col0 FROM tab3 WHERE col4 > 857.31
----
26 values hashing to c3b299821b687fdc31d80f4e99d12506

query II rowsort label-2900-2
SELECT pk, col0 FROM tab3 WHERE NOT (col4 > 857.31)
----
174 values hashing to b86376a08f99a49fd9d40c015b633051

query II rowsort label-2900-1
SELECT pk, col0 FROM view_1_tab3_900
----
26 values hashing to c3b299821b687fdc31d80f4e99d12506

query II rowsort label-2900-2
SELECT pk, col0 FROM view_2_tab3_900
----
174 values hashing to b86376a08f99a49fd9d40c015b633051

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col4 > 857.31 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col4 > 857.31)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_900 UNION ALL SELECT pk, col0 FROM view_2_tab3_900
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col4 > 857.31 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col4 > 857.31)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_900 UNION SELECT pk, col0 FROM view_2_tab3_900
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-2900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col4 > 857.31 ) AS tab3_900
----
13 values hashing to 259e2f30fd941d29c425a1fc9cb1df43

query I rowsort label-2900-3
SELECT * FROM view_3_tab3_900
----
13 values hashing to 259e2f30fd941d29c425a1fc9cb1df43

query I rowsort label-2900-3
SELECT pk FROM tab3 WHERE col4 > 857.31
----
13 values hashing to 259e2f30fd941d29c425a1fc9cb1df43

statement ok
DROP VIEW view_1_tab3_900

statement ok
DROP VIEW view_2_tab3_900

statement ok
DROP VIEW view_3_tab3_900

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_900') DROP VIEW view_1_tab4_900

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_900

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_900') DROP VIEW view_2_tab4_900

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_900

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_900') DROP VIEW view_3_tab4_900

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_900

statement ok
CREATE VIEW view_1_tab4_900 AS SELECT pk, col0 FROM tab4 WHERE col4 > 857.31

statement ok
CREATE VIEW view_2_tab4_900 AS SELECT pk, col0 FROM tab4 WHERE NOT (col4 > 857.31)

statement ok
CREATE VIEW view_3_tab4_900 AS SELECT pk FROM view_1_tab4_900

query II rowsort label-2900-1
SELECT pk, col0 FROM tab4 WHERE col4 > 857.31
----
26 values hashing to c3b299821b687fdc31d80f4e99d12506

query II rowsort label-2900-2
SELECT pk, col0 FROM tab4 WHERE NOT (col4 > 857.31)
----
174 values hashing to b86376a08f99a49fd9d40c015b633051

query II rowsort label-2900-1
SELECT pk, col0 FROM view_1_tab4_900
----
26 values hashing to c3b299821b687fdc31d80f4e99d12506

query II rowsort label-2900-2
SELECT pk, col0 FROM view_2_tab4_900
----
174 values hashing to b86376a08f99a49fd9d40c015b633051

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col4 > 857.31 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col4 > 857.31)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_900 UNION ALL SELECT pk, col0 FROM view_2_tab4_900
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col4 > 857.31 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col4 > 857.31)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_900 UNION SELECT pk, col0 FROM view_2_tab4_900
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-2900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col4 > 857.31 ) AS tab4_900
----
13 values hashing to 259e2f30fd941d29c425a1fc9cb1df43

query I rowsort label-2900-3
SELECT * FROM view_3_tab4_900
----
13 values hashing to 259e2f30fd941d29c425a1fc9cb1df43

query I rowsort label-2900-3
SELECT pk FROM tab4 WHERE col4 > 857.31
----
13 values hashing to 259e2f30fd941d29c425a1fc9cb1df43

statement ok
DROP VIEW view_1_tab4_900

statement ok
DROP VIEW view_2_tab4_900

statement ok
DROP VIEW view_3_tab4_900

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_901') DROP VIEW view_1_tab0_901

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_901

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_901') DROP VIEW view_2_tab0_901

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_901

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_901') DROP VIEW view_3_tab0_901

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_901

statement ok
CREATE VIEW view_1_tab0_901 AS SELECT pk, col0 FROM tab0 WHERE col4 BETWEEN 290.87 AND 700.72 AND col3 IS NULL AND col0 < 835 OR (((col0 IS NULL)) AND (col3 = 615)) OR col0 >= 743 AND col1 = 720.37 OR col0 IN (SELECT col3 FROM tab0 WHERE (((col4 <= 711.96 AND (col0 < 686) OR col0 > 628 OR (col3 >= 897) OR col0 < 774 AND col0 IS NULL)) OR (col3 > 531 OR (col1 <= 445.84) OR ((((col0 IS NULL) OR col1 = 410.19)) OR (col4 > 181.42 OR (col0 <= 455 OR (((((((col0 > 54 AND col0 > 132 AND (col0 IS NULL OR col3 < 398 OR (((col4 <= 300.20)))) AND col4 = 4.64)))))))) OR col4 > 271.79))) AND col3 > 308 OR ((col0 >= 450 OR col0 > 727))))

statement ok
CREATE VIEW view_2_tab0_901 AS SELECT pk, col0 FROM tab0 WHERE NOT (col4 BETWEEN 290.87 AND 700.72 AND col3 IS NULL AND col0 < 835 OR (((col0 IS NULL)) AND (col3 = 615)) OR col0 >= 743 AND col1 = 720.37 OR col0 IN (SELECT col3 FROM tab0 WHERE (((col4 <= 711.96 AND (col0 < 686) OR col0 > 628 OR (col3 >= 897) OR col0 < 774 AND col0 IS NULL)) OR (col3 > 531 OR (col1 <= 445.84) OR ((((col0 IS NULL) OR col1 = 410.19)) OR (col4 > 181.42 OR (col0 <= 455 OR (((((((col0 > 54 AND col0 > 132 AND (col0 IS NULL OR col3 < 398 OR (((col4 <= 300.20)))) AND col4 = 4.64)))))))) OR col4 > 271.79))) AND col3 > 308 OR ((col0 >= 450 OR col0 > 727)))))

statement ok
CREATE VIEW view_3_tab0_901 AS SELECT pk FROM view_1_tab0_901

query II rowsort label-3000-1
SELECT pk, col0 FROM tab0 WHERE col4 BETWEEN 290.87 AND 700.72 AND col3 IS NULL AND col0 < 835 OR (((col0 IS NULL)) AND (col3 = 615)) OR col0 >= 743 AND col1 = 720.37 OR col0 IN (SELECT col3 FROM tab0 WHERE (((col4 <= 711.96 AND (col0 < 686) OR col0 > 628 OR (col3 >= 897) OR col0 < 774 AND col0 IS NULL)) OR (col3 > 531 OR (col1 <= 445.84) OR ((((col0 IS NULL) OR col1 = 410.19)) OR (col4 > 181.42 OR (col0 <= 455 OR (((((((col0 > 54 AND col0 > 132 AND (col0 IS NULL OR col3 < 398 OR (((col4 <= 300.20)))) AND col4 = 4.64)))))))) OR col4 > 271.79))) AND col3 > 308 OR ((col0 >= 450 OR col0 > 727))))
----
18 values hashing to 85234ee8dae350e5df9927e0a385a580

query II rowsort label-3000-2
SELECT pk, col0 FROM tab0 WHERE NOT (col4 BETWEEN 290.87 AND 700.72 AND col3 IS NULL AND col0 < 835 OR (((col0 IS NULL)) AND (col3 = 615)) OR col0 >= 743 AND col1 = 720.37 OR col0 IN (SELECT col3 FROM tab0 WHERE (((col4 <= 711.96 AND (col0 < 686) OR col0 > 628 OR (col3 >= 897) OR col0 < 774 AND col0 IS NULL)) OR (col3 > 531 OR (col1 <= 445.84) OR ((((col0 IS NULL) OR col1 = 410.19)) OR (col4 > 181.42 OR (col0 <= 455 OR (((((((col0 > 54 AND col0 > 132 AND (col0 IS NULL OR col3 < 398 OR (((col4 <= 300.20)))) AND col4 = 4.64)))))))) OR col4 > 271.79))) AND col3 > 308 OR ((col0 >= 450 OR col0 > 727)))))
----
182 values hashing to 470ece1e700d25dc39a4383dad0e9ff6

query II rowsort label-3000-1
SELECT pk, col0 FROM view_1_tab0_901
----
18 values hashing to 85234ee8dae350e5df9927e0a385a580

query II rowsort label-3000-2
SELECT pk, col0 FROM view_2_tab0_901
----
182 values hashing to 470ece1e700d25dc39a4383dad0e9ff6

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col4 BETWEEN 290.87 AND 700.72 AND col3 IS NULL AND col0 < 835 OR (((col0 IS NULL)) AND (col3 = 615)) OR col0 >= 743 AND col1 = 720.37 OR col0 IN (SELECT col3 FROM tab0 WHERE (((col4 <= 711.96 AND (col0 < 686) OR col0 > 628 OR (col3 >= 897) OR col0 < 774 AND col0 IS NULL)) OR (col3 > 531 OR (col1 <= 445.84) OR ((((col0 IS NULL) OR col1 = 410.19)) OR (col4 > 181.42 OR (col0 <= 455 OR (((((((col0 > 54 AND col0 > 132 AND (col0 IS NULL OR col3 < 398 OR (((col4 <= 300.20)))) AND col4 = 4.64)))))))) OR col4 > 271.79))) AND col3 > 308 OR ((col0 >= 450 OR col0 > 727)))) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col4 BETWEEN 290.87 AND 700.72 AND col3 IS NULL AND col0 < 835 OR (((col0 IS NULL)) AND (col3 = 615)) OR col0 >= 743 AND col1 = 720.37 OR col0 IN (SELECT col3 FROM tab0 WHERE (((col4 <= 711.96 AND (col0 < 686) OR col0 > 628 OR (col3 >= 897) OR col0 < 774 AND col0 IS NULL)) OR (col3 > 531 OR (col1 <= 445.84) OR ((((col0 IS NULL) OR col1 = 410.19)) OR (col4 > 181.42 OR (col0 <= 455 OR (((((((col0 > 54 AND col0 > 132 AND (col0 IS NULL OR col3 < 398 OR (((col4 <= 300.20)))) AND col4 = 4.64)))))))) OR col4 > 271.79))) AND col3 > 308 OR ((col0 >= 450 OR col0 > 727)))))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_901 UNION ALL SELECT pk, col0 FROM view_2_tab0_901
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col4 BETWEEN 290.87 AND 700.72 AND col3 IS NULL AND col0 < 835 OR (((col0 IS NULL)) AND (col3 = 615)) OR col0 >= 743 AND col1 = 720.37 OR col0 IN (SELECT col3 FROM tab0 WHERE (((col4 <= 711.96 AND (col0 < 686) OR col0 > 628 OR (col3 >= 897) OR col0 < 774 AND col0 IS NULL)) OR (col3 > 531 OR (col1 <= 445.84) OR ((((col0 IS NULL) OR col1 = 410.19)) OR (col4 > 181.42 OR (col0 <= 455 OR (((((((col0 > 54 AND col0 > 132 AND (col0 IS NULL OR col3 < 398 OR (((col4 <= 300.20)))) AND col4 = 4.64)))))))) OR col4 > 271.79))) AND col3 > 308 OR ((col0 >= 450 OR col0 > 727)))) UNION SELECT pk, col0 FROM tab0 WHERE NOT (col4 BETWEEN 290.87 AND 700.72 AND col3 IS NULL AND col0 < 835 OR (((col0 IS NULL)) AND (col3 = 615)) OR col0 >= 743 AND col1 = 720.37 OR col0 IN (SELECT col3 FROM tab0 WHERE (((col4 <= 711.96 AND (col0 < 686) OR col0 > 628 OR (col3 >= 897) OR col0 < 774 AND col0 IS NULL)) OR (col3 > 531 OR (col1 <= 445.84) OR ((((col0 IS NULL) OR col1 = 410.19)) OR (col4 > 181.42 OR (col0 <= 455 OR (((((((col0 > 54 AND col0 > 132 AND (col0 IS NULL OR col3 < 398 OR (((col4 <= 300.20)))) AND col4 = 4.64)))))))) OR col4 > 271.79))) AND col3 > 308 OR ((col0 >= 450 OR col0 > 727)))))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_901 UNION SELECT pk, col0 FROM view_2_tab0_901
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-3000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col4 BETWEEN 290.87 AND 700.72 AND col3 IS NULL AND col0 < 835 OR (((col0 IS NULL)) AND (col3 = 615)) OR col0 >= 743 AND col1 = 720.37 OR col0 IN (SELECT col3 FROM tab0 WHERE (((col4 <= 711.96 AND (col0 < 686) OR col0 > 628 OR (col3 >= 897) OR col0 < 774 AND col0 IS NULL)) OR (col3 > 531 OR (col1 <= 445.84) OR ((((col0 IS NULL) OR col1 = 410.19)) OR (col4 > 181.42 OR (col0 <= 455 OR (((((((col0 > 54 AND col0 > 132 AND (col0 IS NULL OR col3 < 398 OR (((col4 <= 300.20)))) AND col4 = 4.64)))))))) OR col4 > 271.79))) AND col3 > 308 OR ((col0 >= 450 OR col0 > 727)))) ) AS tab0_901
----
9 values hashing to 17645e17578b39eb0e8a1735ad17eced

query I rowsort label-3000-3
SELECT * FROM view_3_tab0_901
----
9 values hashing to 17645e17578b39eb0e8a1735ad17eced

query I rowsort label-3000-3
SELECT pk FROM tab0 WHERE col4 BETWEEN 290.87 AND 700.72 AND col3 IS NULL AND col0 < 835 OR (((col0 IS NULL)) AND (col3 = 615)) OR col0 >= 743 AND col1 = 720.37 OR col0 IN (SELECT col3 FROM tab0 WHERE (((col4 <= 711.96 AND (col0 < 686) OR col0 > 628 OR (col3 >= 897) OR col0 < 774 AND col0 IS NULL)) OR (col3 > 531 OR (col1 <= 445.84) OR ((((col0 IS NULL) OR col1 = 410.19)) OR (col4 > 181.42 OR (col0 <= 455 OR (((((((col0 > 54 AND col0 > 132 AND (col0 IS NULL OR col3 < 398 OR (((col4 <= 300.20)))) AND col4 = 4.64)))))))) OR col4 > 271.79))) AND col3 > 308 OR ((col0 >= 450 OR col0 > 727))))
----
9 values hashing to 17645e17578b39eb0e8a1735ad17eced

statement ok
DROP VIEW view_1_tab0_901

statement ok
DROP VIEW view_2_tab0_901

statement ok
DROP VIEW view_3_tab0_901

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_901') DROP VIEW view_1_tab1_901

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_901

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_901') DROP VIEW view_2_tab1_901

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_901

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_901') DROP VIEW view_3_tab1_901

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_901

statement ok
CREATE VIEW view_1_tab1_901 AS SELECT pk, col0 FROM tab1 WHERE col4 BETWEEN 290.87 AND 700.72 AND col3 IS NULL AND col0 < 835 OR (((col0 IS NULL)) AND (col3 = 615)) OR col0 >= 743 AND col1 = 720.37 OR col0 IN (SELECT col3 FROM tab1 WHERE (((col4 <= 711.96 AND (col0 < 686) OR col0 > 628 OR (col3 >= 897) OR col0 < 774 AND col0 IS NULL)) OR (col3 > 531 OR (col1 <= 445.84) OR ((((col0 IS NULL) OR col1 = 410.19)) OR (col4 > 181.42 OR (col0 <= 455 OR (((((((col0 > 54 AND col0 > 132 AND (col0 IS NULL OR col3 < 398 OR (((col4 <= 300.20)))) AND col4 = 4.64)))))))) OR col4 > 271.79))) AND col3 > 308 OR ((col0 >= 450 OR col0 > 727))))

statement ok
CREATE VIEW view_2_tab1_901 AS SELECT pk, col0 FROM tab1 WHERE NOT (col4 BETWEEN 290.87 AND 700.72 AND col3 IS NULL AND col0 < 835 OR (((col0 IS NULL)) AND (col3 = 615)) OR col0 >= 743 AND col1 = 720.37 OR col0 IN (SELECT col3 FROM tab1 WHERE (((col4 <= 711.96 AND (col0 < 686) OR col0 > 628 OR (col3 >= 897) OR col0 < 774 AND col0 IS NULL)) OR (col3 > 531 OR (col1 <= 445.84) OR ((((col0 IS NULL) OR col1 = 410.19)) OR (col4 > 181.42 OR (col0 <= 455 OR (((((((col0 > 54 AND col0 > 132 AND (col0 IS NULL OR col3 < 398 OR (((col4 <= 300.20)))) AND col4 = 4.64)))))))) OR col4 > 271.79))) AND col3 > 308 OR ((col0 >= 450 OR col0 > 727)))))

statement ok
CREATE VIEW view_3_tab1_901 AS SELECT pk FROM view_1_tab1_901

query II rowsort label-3000-1
SELECT pk, col0 FROM tab1 WHERE col4 BETWEEN 290.87 AND 700.72 AND col3 IS NULL AND col0 < 835 OR (((col0 IS NULL)) AND (col3 = 615)) OR col0 >= 743 AND col1 = 720.37 OR col0 IN (SELECT col3 FROM tab1 WHERE (((col4 <= 711.96 AND (col0 < 686) OR col0 > 628 OR (col3 >= 897) OR col0 < 774 AND col0 IS NULL)) OR (col3 > 531 OR (col1 <= 445.84) OR ((((col0 IS NULL) OR col1 = 410.19)) OR (col4 > 181.42 OR (col0 <= 455 OR (((((((col0 > 54 AND col0 > 132 AND (col0 IS NULL OR col3 < 398 OR (((col4 <= 300.20)))) AND col4 = 4.64)))))))) OR col4 > 271.79))) AND col3 > 308 OR ((col0 >= 450 OR col0 > 727))))
----
18 values hashing to 85234ee8dae350e5df9927e0a385a580

query II rowsort label-3000-2
SELECT pk, col0 FROM tab1 WHERE NOT (col4 BETWEEN 290.87 AND 700.72 AND col3 IS NULL AND col0 < 835 OR (((col0 IS NULL)) AND (col3 = 615)) OR col0 >= 743 AND col1 = 720.37 OR col0 IN (SELECT col3 FROM tab1 WHERE (((col4 <= 711.96 AND (col0 < 686) OR col0 > 628 OR (col3 >= 897) OR col0 < 774 AND col0 IS NULL)) OR (col3 > 531 OR (col1 <= 445.84) OR ((((col0 IS NULL) OR col1 = 410.19)) OR (col4 > 181.42 OR (col0 <= 455 OR (((((((col0 > 54 AND col0 > 132 AND (col0 IS NULL OR col3 < 398 OR (((col4 <= 300.20)))) AND col4 = 4.64)))))))) OR col4 > 271.79))) AND col3 > 308 OR ((col0 >= 450 OR col0 > 727)))))
----
182 values hashing to 470ece1e700d25dc39a4383dad0e9ff6

query II rowsort label-3000-1
SELECT pk, col0 FROM view_1_tab1_901
----
18 values hashing to 85234ee8dae350e5df9927e0a385a580

query II rowsort label-3000-2
SELECT pk, col0 FROM view_2_tab1_901
----
182 values hashing to 470ece1e700d25dc39a4383dad0e9ff6

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col4 BETWEEN 290.87 AND 700.72 AND col3 IS NULL AND col0 < 835 OR (((col0 IS NULL)) AND (col3 = 615)) OR col0 >= 743 AND col1 = 720.37 OR col0 IN (SELECT col3 FROM tab1 WHERE (((col4 <= 711.96 AND (col0 < 686) OR col0 > 628 OR (col3 >= 897) OR col0 < 774 AND col0 IS NULL)) OR (col3 > 531 OR (col1 <= 445.84) OR ((((col0 IS NULL) OR col1 = 410.19)) OR (col4 > 181.42 OR (col0 <= 455 OR (((((((col0 > 54 AND col0 > 132 AND (col0 IS NULL OR col3 < 398 OR (((col4 <= 300.20)))) AND col4 = 4.64)))))))) OR col4 > 271.79))) AND col3 > 308 OR ((col0 >= 450 OR col0 > 727)))) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col4 BETWEEN 290.87 AND 700.72 AND col3 IS NULL AND col0 < 835 OR (((col0 IS NULL)) AND (col3 = 615)) OR col0 >= 743 AND col1 = 720.37 OR col0 IN (SELECT col3 FROM tab1 WHERE (((col4 <= 711.96 AND (col0 < 686) OR col0 > 628 OR (col3 >= 897) OR col0 < 774 AND col0 IS NULL)) OR (col3 > 531 OR (col1 <= 445.84) OR ((((col0 IS NULL) OR col1 = 410.19)) OR (col4 > 181.42 OR (col0 <= 455 OR (((((((col0 > 54 AND col0 > 132 AND (col0 IS NULL OR col3 < 398 OR (((col4 <= 300.20)))) AND col4 = 4.64)))))))) OR col4 > 271.79))) AND col3 > 308 OR ((col0 >= 450 OR col0 > 727)))))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_901 UNION ALL SELECT pk, col0 FROM view_2_tab1_901
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col4 BETWEEN 290.87 AND 700.72 AND col3 IS NULL AND col0 < 835 OR (((col0 IS NULL)) AND (col3 = 615)) OR col0 >= 743 AND col1 = 720.37 OR col0 IN (SELECT col3 FROM tab1 WHERE (((col4 <= 711.96 AND (col0 < 686) OR col0 > 628 OR (col3 >= 897) OR col0 < 774 AND col0 IS NULL)) OR (col3 > 531 OR (col1 <= 445.84) OR ((((col0 IS NULL) OR col1 = 410.19)) OR (col4 > 181.42 OR (col0 <= 455 OR (((((((col0 > 54 AND col0 > 132 AND (col0 IS NULL OR col3 < 398 OR (((col4 <= 300.20)))) AND col4 = 4.64)))))))) OR col4 > 271.79))) AND col3 > 308 OR ((col0 >= 450 OR col0 > 727)))) UNION SELECT pk, col0 FROM tab1 WHERE NOT (col4 BETWEEN 290.87 AND 700.72 AND col3 IS NULL AND col0 < 835 OR (((col0 IS NULL)) AND (col3 = 615)) OR col0 >= 743 AND col1 = 720.37 OR col0 IN (SELECT col3 FROM tab1 WHERE (((col4 <= 711.96 AND (col0 < 686) OR col0 > 628 OR (col3 >= 897) OR col0 < 774 AND col0 IS NULL)) OR (col3 > 531 OR (col1 <= 445.84) OR ((((col0 IS NULL) OR col1 = 410.19)) OR (col4 > 181.42 OR (col0 <= 455 OR (((((((col0 > 54 AND col0 > 132 AND (col0 IS NULL OR col3 < 398 OR (((col4 <= 300.20)))) AND col4 = 4.64)))))))) OR col4 > 271.79))) AND col3 > 308 OR ((col0 >= 450 OR col0 > 727)))))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_901 UNION SELECT pk, col0 FROM view_2_tab1_901
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-3000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col4 BETWEEN 290.87 AND 700.72 AND col3 IS NULL AND col0 < 835 OR (((col0 IS NULL)) AND (col3 = 615)) OR col0 >= 743 AND col1 = 720.37 OR col0 IN (SELECT col3 FROM tab1 WHERE (((col4 <= 711.96 AND (col0 < 686) OR col0 > 628 OR (col3 >= 897) OR col0 < 774 AND col0 IS NULL)) OR (col3 > 531 OR (col1 <= 445.84) OR ((((col0 IS NULL) OR col1 = 410.19)) OR (col4 > 181.42 OR (col0 <= 455 OR (((((((col0 > 54 AND col0 > 132 AND (col0 IS NULL OR col3 < 398 OR (((col4 <= 300.20)))) AND col4 = 4.64)))))))) OR col4 > 271.79))) AND col3 > 308 OR ((col0 >= 450 OR col0 > 727)))) ) AS tab1_901
----
9 values hashing to 17645e17578b39eb0e8a1735ad17eced

query I rowsort label-3000-3
SELECT * FROM view_3_tab1_901
----
9 values hashing to 17645e17578b39eb0e8a1735ad17eced

query I rowsort label-3000-3
SELECT pk FROM tab1 WHERE col4 BETWEEN 290.87 AND 700.72 AND col3 IS NULL AND col0 < 835 OR (((col0 IS NULL)) AND (col3 = 615)) OR col0 >= 743 AND col1 = 720.37 OR col0 IN (SELECT col3 FROM tab1 WHERE (((col4 <= 711.96 AND (col0 < 686) OR col0 > 628 OR (col3 >= 897) OR col0 < 774 AND col0 IS NULL)) OR (col3 > 531 OR (col1 <= 445.84) OR ((((col0 IS NULL) OR col1 = 410.19)) OR (col4 > 181.42 OR (col0 <= 455 OR (((((((col0 > 54 AND col0 > 132 AND (col0 IS NULL OR col3 < 398 OR (((col4 <= 300.20)))) AND col4 = 4.64)))))))) OR col4 > 271.79))) AND col3 > 308 OR ((col0 >= 450 OR col0 > 727))))
----
9 values hashing to 17645e17578b39eb0e8a1735ad17eced

statement ok
DROP VIEW view_1_tab1_901

statement ok
DROP VIEW view_2_tab1_901

statement ok
DROP VIEW view_3_tab1_901

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_901') DROP VIEW view_1_tab2_901

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_901

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_901') DROP VIEW view_2_tab2_901

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_901

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_901') DROP VIEW view_3_tab2_901

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_901

statement ok
CREATE VIEW view_1_tab2_901 AS SELECT pk, col0 FROM tab2 WHERE col4 BETWEEN 290.87 AND 700.72 AND col3 IS NULL AND col0 < 835 OR (((col0 IS NULL)) AND (col3 = 615)) OR col0 >= 743 AND col1 = 720.37 OR col0 IN (SELECT col3 FROM tab2 WHERE (((col4 <= 711.96 AND (col0 < 686) OR col0 > 628 OR (col3 >= 897) OR col0 < 774 AND col0 IS NULL)) OR (col3 > 531 OR (col1 <= 445.84) OR ((((col0 IS NULL) OR col1 = 410.19)) OR (col4 > 181.42 OR (col0 <= 455 OR (((((((col0 > 54 AND col0 > 132 AND (col0 IS NULL OR col3 < 398 OR (((col4 <= 300.20)))) AND col4 = 4.64)))))))) OR col4 > 271.79))) AND col3 > 308 OR ((col0 >= 450 OR col0 > 727))))

statement ok
CREATE VIEW view_2_tab2_901 AS SELECT pk, col0 FROM tab2 WHERE NOT (col4 BETWEEN 290.87 AND 700.72 AND col3 IS NULL AND col0 < 835 OR (((col0 IS NULL)) AND (col3 = 615)) OR col0 >= 743 AND col1 = 720.37 OR col0 IN (SELECT col3 FROM tab2 WHERE (((col4 <= 711.96 AND (col0 < 686) OR col0 > 628 OR (col3 >= 897) OR col0 < 774 AND col0 IS NULL)) OR (col3 > 531 OR (col1 <= 445.84) OR ((((col0 IS NULL) OR col1 = 410.19)) OR (col4 > 181.42 OR (col0 <= 455 OR (((((((col0 > 54 AND col0 > 132 AND (col0 IS NULL OR col3 < 398 OR (((col4 <= 300.20)))) AND col4 = 4.64)))))))) OR col4 > 271.79))) AND col3 > 308 OR ((col0 >= 450 OR col0 > 727)))))

statement ok
CREATE VIEW view_3_tab2_901 AS SELECT pk FROM view_1_tab2_901

query II rowsort label-3000-1
SELECT pk, col0 FROM tab2 WHERE col4 BETWEEN 290.87 AND 700.72 AND col3 IS NULL AND col0 < 835 OR (((col0 IS NULL)) AND (col3 = 615)) OR col0 >= 743 AND col1 = 720.37 OR col0 IN (SELECT col3 FROM tab2 WHERE (((col4 <= 711.96 AND (col0 < 686) OR col0 > 628 OR (col3 >= 897) OR col0 < 774 AND col0 IS NULL)) OR (col3 > 531 OR (col1 <= 445.84) OR ((((col0 IS NULL) OR col1 = 410.19)) OR (col4 > 181.42 OR (col0 <= 455 OR (((((((col0 > 54 AND col0 > 132 AND (col0 IS NULL OR col3 < 398 OR (((col4 <= 300.20)))) AND col4 = 4.64)))))))) OR col4 > 271.79))) AND col3 > 308 OR ((col0 >= 450 OR col0 > 727))))
----
18 values hashing to 85234ee8dae350e5df9927e0a385a580

query II rowsort label-3000-2
SELECT pk, col0 FROM tab2 WHERE NOT (col4 BETWEEN 290.87 AND 700.72 AND col3 IS NULL AND col0 < 835 OR (((col0 IS NULL)) AND (col3 = 615)) OR col0 >= 743 AND col1 = 720.37 OR col0 IN (SELECT col3 FROM tab2 WHERE (((col4 <= 711.96 AND (col0 < 686) OR col0 > 628 OR (col3 >= 897) OR col0 < 774 AND col0 IS NULL)) OR (col3 > 531 OR (col1 <= 445.84) OR ((((col0 IS NULL) OR col1 = 410.19)) OR (col4 > 181.42 OR (col0 <= 455 OR (((((((col0 > 54 AND col0 > 132 AND (col0 IS NULL OR col3 < 398 OR (((col4 <= 300.20)))) AND col4 = 4.64)))))))) OR col4 > 271.79))) AND col3 > 308 OR ((col0 >= 450 OR col0 > 727)))))
----
182 values hashing to 470ece1e700d25dc39a4383dad0e9ff6

query II rowsort label-3000-1
SELECT pk, col0 FROM view_1_tab2_901
----
18 values hashing to 85234ee8dae350e5df9927e0a385a580

query II rowsort label-3000-2
SELECT pk, col0 FROM view_2_tab2_901
----
182 values hashing to 470ece1e700d25dc39a4383dad0e9ff6

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col4 BETWEEN 290.87 AND 700.72 AND col3 IS NULL AND col0 < 835 OR (((col0 IS NULL)) AND (col3 = 615)) OR col0 >= 743 AND col1 = 720.37 OR col0 IN (SELECT col3 FROM tab2 WHERE (((col4 <= 711.96 AND (col0 < 686) OR col0 > 628 OR (col3 >= 897) OR col0 < 774 AND col0 IS NULL)) OR (col3 > 531 OR (col1 <= 445.84) OR ((((col0 IS NULL) OR col1 = 410.19)) OR (col4 > 181.42 OR (col0 <= 455 OR (((((((col0 > 54 AND col0 > 132 AND (col0 IS NULL OR col3 < 398 OR (((col4 <= 300.20)))) AND col4 = 4.64)))))))) OR col4 > 271.79))) AND col3 > 308 OR ((col0 >= 450 OR col0 > 727)))) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col4 BETWEEN 290.87 AND 700.72 AND col3 IS NULL AND col0 < 835 OR (((col0 IS NULL)) AND (col3 = 615)) OR col0 >= 743 AND col1 = 720.37 OR col0 IN (SELECT col3 FROM tab2 WHERE (((col4 <= 711.96 AND (col0 < 686) OR col0 > 628 OR (col3 >= 897) OR col0 < 774 AND col0 IS NULL)) OR (col3 > 531 OR (col1 <= 445.84) OR ((((col0 IS NULL) OR col1 = 410.19)) OR (col4 > 181.42 OR (col0 <= 455 OR (((((((col0 > 54 AND col0 > 132 AND (col0 IS NULL OR col3 < 398 OR (((col4 <= 300.20)))) AND col4 = 4.64)))))))) OR col4 > 271.79))) AND col3 > 308 OR ((col0 >= 450 OR col0 > 727)))))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_901 UNION ALL SELECT pk, col0 FROM view_2_tab2_901
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col4 BETWEEN 290.87 AND 700.72 AND col3 IS NULL AND col0 < 835 OR (((col0 IS NULL)) AND (col3 = 615)) OR col0 >= 743 AND col1 = 720.37 OR col0 IN (SELECT col3 FROM tab2 WHERE (((col4 <= 711.96 AND (col0 < 686) OR col0 > 628 OR (col3 >= 897) OR col0 < 774 AND col0 IS NULL)) OR (col3 > 531 OR (col1 <= 445.84) OR ((((col0 IS NULL) OR col1 = 410.19)) OR (col4 > 181.42 OR (col0 <= 455 OR (((((((col0 > 54 AND col0 > 132 AND (col0 IS NULL OR col3 < 398 OR (((col4 <= 300.20)))) AND col4 = 4.64)))))))) OR col4 > 271.79))) AND col3 > 308 OR ((col0 >= 450 OR col0 > 727)))) UNION SELECT pk, col0 FROM tab2 WHERE NOT (col4 BETWEEN 290.87 AND 700.72 AND col3 IS NULL AND col0 < 835 OR (((col0 IS NULL)) AND (col3 = 615)) OR col0 >= 743 AND col1 = 720.37 OR col0 IN (SELECT col3 FROM tab2 WHERE (((col4 <= 711.96 AND (col0 < 686) OR col0 > 628 OR (col3 >= 897) OR col0 < 774 AND col0 IS NULL)) OR (col3 > 531 OR (col1 <= 445.84) OR ((((col0 IS NULL) OR col1 = 410.19)) OR (col4 > 181.42 OR (col0 <= 455 OR (((((((col0 > 54 AND col0 > 132 AND (col0 IS NULL OR col3 < 398 OR (((col4 <= 300.20)))) AND col4 = 4.64)))))))) OR col4 > 271.79))) AND col3 > 308 OR ((col0 >= 450 OR col0 > 727)))))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_901 UNION SELECT pk, col0 FROM view_2_tab2_901
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-3000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col4 BETWEEN 290.87 AND 700.72 AND col3 IS NULL AND col0 < 835 OR (((col0 IS NULL)) AND (col3 = 615)) OR col0 >= 743 AND col1 = 720.37 OR col0 IN (SELECT col3 FROM tab2 WHERE (((col4 <= 711.96 AND (col0 < 686) OR col0 > 628 OR (col3 >= 897) OR col0 < 774 AND col0 IS NULL)) OR (col3 > 531 OR (col1 <= 445.84) OR ((((col0 IS NULL) OR col1 = 410.19)) OR (col4 > 181.42 OR (col0 <= 455 OR (((((((col0 > 54 AND col0 > 132 AND (col0 IS NULL OR col3 < 398 OR (((col4 <= 300.20)))) AND col4 = 4.64)))))))) OR col4 > 271.79))) AND col3 > 308 OR ((col0 >= 450 OR col0 > 727)))) ) AS tab2_901
----
9 values hashing to 17645e17578b39eb0e8a1735ad17eced

query I rowsort label-3000-3
SELECT * FROM view_3_tab2_901
----
9 values hashing to 17645e17578b39eb0e8a1735ad17eced

query I rowsort label-3000-3
SELECT pk FROM tab2 WHERE col4 BETWEEN 290.87 AND 700.72 AND col3 IS NULL AND col0 < 835 OR (((col0 IS NULL)) AND (col3 = 615)) OR col0 >= 743 AND col1 = 720.37 OR col0 IN (SELECT col3 FROM tab2 WHERE (((col4 <= 711.96 AND (col0 < 686) OR col0 > 628 OR (col3 >= 897) OR col0 < 774 AND col0 IS NULL)) OR (col3 > 531 OR (col1 <= 445.84) OR ((((col0 IS NULL) OR col1 = 410.19)) OR (col4 > 181.42 OR (col0 <= 455 OR (((((((col0 > 54 AND col0 > 132 AND (col0 IS NULL OR col3 < 398 OR (((col4 <= 300.20)))) AND col4 = 4.64)))))))) OR col4 > 271.79))) AND col3 > 308 OR ((col0 >= 450 OR col0 > 727))))
----
9 values hashing to 17645e17578b39eb0e8a1735ad17eced

statement ok
DROP VIEW view_1_tab2_901

statement ok
DROP VIEW view_2_tab2_901

statement ok
DROP VIEW view_3_tab2_901

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_901') DROP VIEW view_1_tab3_901

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_901

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_901') DROP VIEW view_2_tab3_901

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_901

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_901') DROP VIEW view_3_tab3_901

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_901

statement ok
CREATE VIEW view_1_tab3_901 AS SELECT pk, col0 FROM tab3 WHERE col4 BETWEEN 290.87 AND 700.72 AND col3 IS NULL AND col0 < 835 OR (((col0 IS NULL)) AND (col3 = 615)) OR col0 >= 743 AND col1 = 720.37 OR col0 IN (SELECT col3 FROM tab3 WHERE (((col4 <= 711.96 AND (col0 < 686) OR col0 > 628 OR (col3 >= 897) OR col0 < 774 AND col0 IS NULL)) OR (col3 > 531 OR (col1 <= 445.84) OR ((((col0 IS NULL) OR col1 = 410.19)) OR (col4 > 181.42 OR (col0 <= 455 OR (((((((col0 > 54 AND col0 > 132 AND (col0 IS NULL OR col3 < 398 OR (((col4 <= 300.20)))) AND col4 = 4.64)))))))) OR col4 > 271.79))) AND col3 > 308 OR ((col0 >= 450 OR col0 > 727))))

statement ok
CREATE VIEW view_2_tab3_901 AS SELECT pk, col0 FROM tab3 WHERE NOT (col4 BETWEEN 290.87 AND 700.72 AND col3 IS NULL AND col0 < 835 OR (((col0 IS NULL)) AND (col3 = 615)) OR col0 >= 743 AND col1 = 720.37 OR col0 IN (SELECT col3 FROM tab3 WHERE (((col4 <= 711.96 AND (col0 < 686) OR col0 > 628 OR (col3 >= 897) OR col0 < 774 AND col0 IS NULL)) OR (col3 > 531 OR (col1 <= 445.84) OR ((((col0 IS NULL) OR col1 = 410.19)) OR (col4 > 181.42 OR (col0 <= 455 OR (((((((col0 > 54 AND col0 > 132 AND (col0 IS NULL OR col3 < 398 OR (((col4 <= 300.20)))) AND col4 = 4.64)))))))) OR col4 > 271.79))) AND col3 > 308 OR ((col0 >= 450 OR col0 > 727)))))

statement ok
CREATE VIEW view_3_tab3_901 AS SELECT pk FROM view_1_tab3_901

query II rowsort label-3000-1
SELECT pk, col0 FROM tab3 WHERE col4 BETWEEN 290.87 AND 700.72 AND col3 IS NULL AND col0 < 835 OR (((col0 IS NULL)) AND (col3 = 615)) OR col0 >= 743 AND col1 = 720.37 OR col0 IN (SELECT col3 FROM tab3 WHERE (((col4 <= 711.96 AND (col0 < 686) OR col0 > 628 OR (col3 >= 897) OR col0 < 774 AND col0 IS NULL)) OR (col3 > 531 OR (col1 <= 445.84) OR ((((col0 IS NULL) OR col1 = 410.19)) OR (col4 > 181.42 OR (col0 <= 455 OR (((((((col0 > 54 AND col0 > 132 AND (col0 IS NULL OR col3 < 398 OR (((col4 <= 300.20)))) AND col4 = 4.64)))))))) OR col4 > 271.79))) AND col3 > 308 OR ((col0 >= 450 OR col0 > 727))))
----
18 values hashing to 85234ee8dae350e5df9927e0a385a580

query II rowsort label-3000-2
SELECT pk, col0 FROM tab3 WHERE NOT (col4 BETWEEN 290.87 AND 700.72 AND col3 IS NULL AND col0 < 835 OR (((col0 IS NULL)) AND (col3 = 615)) OR col0 >= 743 AND col1 = 720.37 OR col0 IN (SELECT col3 FROM tab3 WHERE (((col4 <= 711.96 AND (col0 < 686) OR col0 > 628 OR (col3 >= 897) OR col0 < 774 AND col0 IS NULL)) OR (col3 > 531 OR (col1 <= 445.84) OR ((((col0 IS NULL) OR col1 = 410.19)) OR (col4 > 181.42 OR (col0 <= 455 OR (((((((col0 > 54 AND col0 > 132 AND (col0 IS NULL OR col3 < 398 OR (((col4 <= 300.20)))) AND col4 = 4.64)))))))) OR col4 > 271.79))) AND col3 > 308 OR ((col0 >= 450 OR col0 > 727)))))
----
182 values hashing to 470ece1e700d25dc39a4383dad0e9ff6

query II rowsort label-3000-1
SELECT pk, col0 FROM view_1_tab3_901
----
18 values hashing to 85234ee8dae350e5df9927e0a385a580

query II rowsort label-3000-2
SELECT pk, col0 FROM view_2_tab3_901
----
182 values hashing to 470ece1e700d25dc39a4383dad0e9ff6

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col4 BETWEEN 290.87 AND 700.72 AND col3 IS NULL AND col0 < 835 OR (((col0 IS NULL)) AND (col3 = 615)) OR col0 >= 743 AND col1 = 720.37 OR col0 IN (SELECT col3 FROM tab3 WHERE (((col4 <= 711.96 AND (col0 < 686) OR col0 > 628 OR (col3 >= 897) OR col0 < 774 AND col0 IS NULL)) OR (col3 > 531 OR (col1 <= 445.84) OR ((((col0 IS NULL) OR col1 = 410.19)) OR (col4 > 181.42 OR (col0 <= 455 OR (((((((col0 > 54 AND col0 > 132 AND (col0 IS NULL OR col3 < 398 OR (((col4 <= 300.20)))) AND col4 = 4.64)))))))) OR col4 > 271.79))) AND col3 > 308 OR ((col0 >= 450 OR col0 > 727)))) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col4 BETWEEN 290.87 AND 700.72 AND col3 IS NULL AND col0 < 835 OR (((col0 IS NULL)) AND (col3 = 615)) OR col0 >= 743 AND col1 = 720.37 OR col0 IN (SELECT col3 FROM tab3 WHERE (((col4 <= 711.96 AND (col0 < 686) OR col0 > 628 OR (col3 >= 897) OR col0 < 774 AND col0 IS NULL)) OR (col3 > 531 OR (col1 <= 445.84) OR ((((col0 IS NULL) OR col1 = 410.19)) OR (col4 > 181.42 OR (col0 <= 455 OR (((((((col0 > 54 AND col0 > 132 AND (col0 IS NULL OR col3 < 398 OR (((col4 <= 300.20)))) AND col4 = 4.64)))))))) OR col4 > 271.79))) AND col3 > 308 OR ((col0 >= 450 OR col0 > 727)))))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_901 UNION ALL SELECT pk, col0 FROM view_2_tab3_901
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col4 BETWEEN 290.87 AND 700.72 AND col3 IS NULL AND col0 < 835 OR (((col0 IS NULL)) AND (col3 = 615)) OR col0 >= 743 AND col1 = 720.37 OR col0 IN (SELECT col3 FROM tab3 WHERE (((col4 <= 711.96 AND (col0 < 686) OR col0 > 628 OR (col3 >= 897) OR col0 < 774 AND col0 IS NULL)) OR (col3 > 531 OR (col1 <= 445.84) OR ((((col0 IS NULL) OR col1 = 410.19)) OR (col4 > 181.42 OR (col0 <= 455 OR (((((((col0 > 54 AND col0 > 132 AND (col0 IS NULL OR col3 < 398 OR (((col4 <= 300.20)))) AND col4 = 4.64)))))))) OR col4 > 271.79))) AND col3 > 308 OR ((col0 >= 450 OR col0 > 727)))) UNION SELECT pk, col0 FROM tab3 WHERE NOT (col4 BETWEEN 290.87 AND 700.72 AND col3 IS NULL AND col0 < 835 OR (((col0 IS NULL)) AND (col3 = 615)) OR col0 >= 743 AND col1 = 720.37 OR col0 IN (SELECT col3 FROM tab3 WHERE (((col4 <= 711.96 AND (col0 < 686) OR col0 > 628 OR (col3 >= 897) OR col0 < 774 AND col0 IS NULL)) OR (col3 > 531 OR (col1 <= 445.84) OR ((((col0 IS NULL) OR col1 = 410.19)) OR (col4 > 181.42 OR (col0 <= 455 OR (((((((col0 > 54 AND col0 > 132 AND (col0 IS NULL OR col3 < 398 OR (((col4 <= 300.20)))) AND col4 = 4.64)))))))) OR col4 > 271.79))) AND col3 > 308 OR ((col0 >= 450 OR col0 > 727)))))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_901 UNION SELECT pk, col0 FROM view_2_tab3_901
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-3000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col4 BETWEEN 290.87 AND 700.72 AND col3 IS NULL AND col0 < 835 OR (((col0 IS NULL)) AND (col3 = 615)) OR col0 >= 743 AND col1 = 720.37 OR col0 IN (SELECT col3 FROM tab3 WHERE (((col4 <= 711.96 AND (col0 < 686) OR col0 > 628 OR (col3 >= 897) OR col0 < 774 AND col0 IS NULL)) OR (col3 > 531 OR (col1 <= 445.84) OR ((((col0 IS NULL) OR col1 = 410.19)) OR (col4 > 181.42 OR (col0 <= 455 OR (((((((col0 > 54 AND col0 > 132 AND (col0 IS NULL OR col3 < 398 OR (((col4 <= 300.20)))) AND col4 = 4.64)))))))) OR col4 > 271.79))) AND col3 > 308 OR ((col0 >= 450 OR col0 > 727)))) ) AS tab3_901
----
9 values hashing to 17645e17578b39eb0e8a1735ad17eced

query I rowsort label-3000-3
SELECT * FROM view_3_tab3_901
----
9 values hashing to 17645e17578b39eb0e8a1735ad17eced

query I rowsort label-3000-3
SELECT pk FROM tab3 WHERE col4 BETWEEN 290.87 AND 700.72 AND col3 IS NULL AND col0 < 835 OR (((col0 IS NULL)) AND (col3 = 615)) OR col0 >= 743 AND col1 = 720.37 OR col0 IN (SELECT col3 FROM tab3 WHERE (((col4 <= 711.96 AND (col0 < 686) OR col0 > 628 OR (col3 >= 897) OR col0 < 774 AND col0 IS NULL)) OR (col3 > 531 OR (col1 <= 445.84) OR ((((col0 IS NULL) OR col1 = 410.19)) OR (col4 > 181.42 OR (col0 <= 455 OR (((((((col0 > 54 AND col0 > 132 AND (col0 IS NULL OR col3 < 398 OR (((col4 <= 300.20)))) AND col4 = 4.64)))))))) OR col4 > 271.79))) AND col3 > 308 OR ((col0 >= 450 OR col0 > 727))))
----
9 values hashing to 17645e17578b39eb0e8a1735ad17eced

statement ok
DROP VIEW view_1_tab3_901

statement ok
DROP VIEW view_2_tab3_901

statement ok
DROP VIEW view_3_tab3_901

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_901') DROP VIEW view_1_tab4_901

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_901

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_901') DROP VIEW view_2_tab4_901

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_901

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_901') DROP VIEW view_3_tab4_901

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_901

statement ok
CREATE VIEW view_1_tab4_901 AS SELECT pk, col0 FROM tab4 WHERE col4 BETWEEN 290.87 AND 700.72 AND col3 IS NULL AND col0 < 835 OR (((col0 IS NULL)) AND (col3 = 615)) OR col0 >= 743 AND col1 = 720.37 OR col0 IN (SELECT col3 FROM tab4 WHERE (((col4 <= 711.96 AND (col0 < 686) OR col0 > 628 OR (col3 >= 897) OR col0 < 774 AND col0 IS NULL)) OR (col3 > 531 OR (col1 <= 445.84) OR ((((col0 IS NULL) OR col1 = 410.19)) OR (col4 > 181.42 OR (col0 <= 455 OR (((((((col0 > 54 AND col0 > 132 AND (col0 IS NULL OR col3 < 398 OR (((col4 <= 300.20)))) AND col4 = 4.64)))))))) OR col4 > 271.79))) AND col3 > 308 OR ((col0 >= 450 OR col0 > 727))))

statement ok
CREATE VIEW view_2_tab4_901 AS SELECT pk, col0 FROM tab4 WHERE NOT (col4 BETWEEN 290.87 AND 700.72 AND col3 IS NULL AND col0 < 835 OR (((col0 IS NULL)) AND (col3 = 615)) OR col0 >= 743 AND col1 = 720.37 OR col0 IN (SELECT col3 FROM tab4 WHERE (((col4 <= 711.96 AND (col0 < 686) OR col0 > 628 OR (col3 >= 897) OR col0 < 774 AND col0 IS NULL)) OR (col3 > 531 OR (col1 <= 445.84) OR ((((col0 IS NULL) OR col1 = 410.19)) OR (col4 > 181.42 OR (col0 <= 455 OR (((((((col0 > 54 AND col0 > 132 AND (col0 IS NULL OR col3 < 398 OR (((col4 <= 300.20)))) AND col4 = 4.64)))))))) OR col4 > 271.79))) AND col3 > 308 OR ((col0 >= 450 OR col0 > 727)))))

statement ok
CREATE VIEW view_3_tab4_901 AS SELECT pk FROM view_1_tab4_901

query II rowsort label-3000-1
SELECT pk, col0 FROM tab4 WHERE col4 BETWEEN 290.87 AND 700.72 AND col3 IS NULL AND col0 < 835 OR (((col0 IS NULL)) AND (col3 = 615)) OR col0 >= 743 AND col1 = 720.37 OR col0 IN (SELECT col3 FROM tab4 WHERE (((col4 <= 711.96 AND (col0 < 686) OR col0 > 628 OR (col3 >= 897) OR col0 < 774 AND col0 IS NULL)) OR (col3 > 531 OR (col1 <= 445.84) OR ((((col0 IS NULL) OR col1 = 410.19)) OR (col4 > 181.42 OR (col0 <= 455 OR (((((((col0 > 54 AND col0 > 132 AND (col0 IS NULL OR col3 < 398 OR (((col4 <= 300.20)))) AND col4 = 4.64)))))))) OR col4 > 271.79))) AND col3 > 308 OR ((col0 >= 450 OR col0 > 727))))
----
18 values hashing to 85234ee8dae350e5df9927e0a385a580

query II rowsort label-3000-2
SELECT pk, col0 FROM tab4 WHERE NOT (col4 BETWEEN 290.87 AND 700.72 AND col3 IS NULL AND col0 < 835 OR (((col0 IS NULL)) AND (col3 = 615)) OR col0 >= 743 AND col1 = 720.37 OR col0 IN (SELECT col3 FROM tab4 WHERE (((col4 <= 711.96 AND (col0 < 686) OR col0 > 628 OR (col3 >= 897) OR col0 < 774 AND col0 IS NULL)) OR (col3 > 531 OR (col1 <= 445.84) OR ((((col0 IS NULL) OR col1 = 410.19)) OR (col4 > 181.42 OR (col0 <= 455 OR (((((((col0 > 54 AND col0 > 132 AND (col0 IS NULL OR col3 < 398 OR (((col4 <= 300.20)))) AND col4 = 4.64)))))))) OR col4 > 271.79))) AND col3 > 308 OR ((col0 >= 450 OR col0 > 727)))))
----
182 values hashing to 470ece1e700d25dc39a4383dad0e9ff6

query II rowsort label-3000-1
SELECT pk, col0 FROM view_1_tab4_901
----
18 values hashing to 85234ee8dae350e5df9927e0a385a580

query II rowsort label-3000-2
SELECT pk, col0 FROM view_2_tab4_901
----
182 values hashing to 470ece1e700d25dc39a4383dad0e9ff6

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col4 BETWEEN 290.87 AND 700.72 AND col3 IS NULL AND col0 < 835 OR (((col0 IS NULL)) AND (col3 = 615)) OR col0 >= 743 AND col1 = 720.37 OR col0 IN (SELECT col3 FROM tab4 WHERE (((col4 <= 711.96 AND (col0 < 686) OR col0 > 628 OR (col3 >= 897) OR col0 < 774 AND col0 IS NULL)) OR (col3 > 531 OR (col1 <= 445.84) OR ((((col0 IS NULL) OR col1 = 410.19)) OR (col4 > 181.42 OR (col0 <= 455 OR (((((((col0 > 54 AND col0 > 132 AND (col0 IS NULL OR col3 < 398 OR (((col4 <= 300.20)))) AND col4 = 4.64)))))))) OR col4 > 271.79))) AND col3 > 308 OR ((col0 >= 450 OR col0 > 727)))) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col4 BETWEEN 290.87 AND 700.72 AND col3 IS NULL AND col0 < 835 OR (((col0 IS NULL)) AND (col3 = 615)) OR col0 >= 743 AND col1 = 720.37 OR col0 IN (SELECT col3 FROM tab4 WHERE (((col4 <= 711.96 AND (col0 < 686) OR col0 > 628 OR (col3 >= 897) OR col0 < 774 AND col0 IS NULL)) OR (col3 > 531 OR (col1 <= 445.84) OR ((((col0 IS NULL) OR col1 = 410.19)) OR (col4 > 181.42 OR (col0 <= 455 OR (((((((col0 > 54 AND col0 > 132 AND (col0 IS NULL OR col3 < 398 OR (((col4 <= 300.20)))) AND col4 = 4.64)))))))) OR col4 > 271.79))) AND col3 > 308 OR ((col0 >= 450 OR col0 > 727)))))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_901 UNION ALL SELECT pk, col0 FROM view_2_tab4_901
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col4 BETWEEN 290.87 AND 700.72 AND col3 IS NULL AND col0 < 835 OR (((col0 IS NULL)) AND (col3 = 615)) OR col0 >= 743 AND col1 = 720.37 OR col0 IN (SELECT col3 FROM tab4 WHERE (((col4 <= 711.96 AND (col0 < 686) OR col0 > 628 OR (col3 >= 897) OR col0 < 774 AND col0 IS NULL)) OR (col3 > 531 OR (col1 <= 445.84) OR ((((col0 IS NULL) OR col1 = 410.19)) OR (col4 > 181.42 OR (col0 <= 455 OR (((((((col0 > 54 AND col0 > 132 AND (col0 IS NULL OR col3 < 398 OR (((col4 <= 300.20)))) AND col4 = 4.64)))))))) OR col4 > 271.79))) AND col3 > 308 OR ((col0 >= 450 OR col0 > 727)))) UNION SELECT pk, col0 FROM tab4 WHERE NOT (col4 BETWEEN 290.87 AND 700.72 AND col3 IS NULL AND col0 < 835 OR (((col0 IS NULL)) AND (col3 = 615)) OR col0 >= 743 AND col1 = 720.37 OR col0 IN (SELECT col3 FROM tab4 WHERE (((col4 <= 711.96 AND (col0 < 686) OR col0 > 628 OR (col3 >= 897) OR col0 < 774 AND col0 IS NULL)) OR (col3 > 531 OR (col1 <= 445.84) OR ((((col0 IS NULL) OR col1 = 410.19)) OR (col4 > 181.42 OR (col0 <= 455 OR (((((((col0 > 54 AND col0 > 132 AND (col0 IS NULL OR col3 < 398 OR (((col4 <= 300.20)))) AND col4 = 4.64)))))))) OR col4 > 271.79))) AND col3 > 308 OR ((col0 >= 450 OR col0 > 727)))))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_901 UNION SELECT pk, col0 FROM view_2_tab4_901
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-3000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col4 BETWEEN 290.87 AND 700.72 AND col3 IS NULL AND col0 < 835 OR (((col0 IS NULL)) AND (col3 = 615)) OR col0 >= 743 AND col1 = 720.37 OR col0 IN (SELECT col3 FROM tab4 WHERE (((col4 <= 711.96 AND (col0 < 686) OR col0 > 628 OR (col3 >= 897) OR col0 < 774 AND col0 IS NULL)) OR (col3 > 531 OR (col1 <= 445.84) OR ((((col0 IS NULL) OR col1 = 410.19)) OR (col4 > 181.42 OR (col0 <= 455 OR (((((((col0 > 54 AND col0 > 132 AND (col0 IS NULL OR col3 < 398 OR (((col4 <= 300.20)))) AND col4 = 4.64)))))))) OR col4 > 271.79))) AND col3 > 308 OR ((col0 >= 450 OR col0 > 727)))) ) AS tab4_901
----
9 values hashing to 17645e17578b39eb0e8a1735ad17eced

query I rowsort label-3000-3
SELECT * FROM view_3_tab4_901
----
9 values hashing to 17645e17578b39eb0e8a1735ad17eced

query I rowsort label-3000-3
SELECT pk FROM tab4 WHERE col4 BETWEEN 290.87 AND 700.72 AND col3 IS NULL AND col0 < 835 OR (((col0 IS NULL)) AND (col3 = 615)) OR col0 >= 743 AND col1 = 720.37 OR col0 IN (SELECT col3 FROM tab4 WHERE (((col4 <= 711.96 AND (col0 < 686) OR col0 > 628 OR (col3 >= 897) OR col0 < 774 AND col0 IS NULL)) OR (col3 > 531 OR (col1 <= 445.84) OR ((((col0 IS NULL) OR col1 = 410.19)) OR (col4 > 181.42 OR (col0 <= 455 OR (((((((col0 > 54 AND col0 > 132 AND (col0 IS NULL OR col3 < 398 OR (((col4 <= 300.20)))) AND col4 = 4.64)))))))) OR col4 > 271.79))) AND col3 > 308 OR ((col0 >= 450 OR col0 > 727))))
----
9 values hashing to 17645e17578b39eb0e8a1735ad17eced

statement ok
DROP VIEW view_1_tab4_901

statement ok
DROP VIEW view_2_tab4_901

statement ok
DROP VIEW view_3_tab4_901

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_902') DROP VIEW view_1_tab0_902

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_902

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_902') DROP VIEW view_2_tab0_902

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_902

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_902') DROP VIEW view_3_tab0_902

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_902

statement ok
CREATE VIEW view_1_tab0_902 AS SELECT pk, col0 FROM tab0 WHERE col0 < 487

statement ok
CREATE VIEW view_2_tab0_902 AS SELECT pk, col0 FROM tab0 WHERE NOT (col0 < 487)

statement ok
CREATE VIEW view_3_tab0_902 AS SELECT pk FROM view_1_tab0_902

query II rowsort label-3100-1
SELECT pk, col0 FROM tab0 WHERE col0 < 487
----
86 values hashing to 5b30e7e7b7ad5f76c707929543ad172d

query II rowsort label-3100-2
SELECT pk, col0 FROM tab0 WHERE NOT (col0 < 487)
----
114 values hashing to f2e5d44348c4a18f85d991c36e6d00e2

query II rowsort label-3100-1
SELECT pk, col0 FROM view_1_tab0_902
----
86 values hashing to 5b30e7e7b7ad5f76c707929543ad172d

query II rowsort label-3100-2
SELECT pk, col0 FROM view_2_tab0_902
----
114 values hashing to f2e5d44348c4a18f85d991c36e6d00e2

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col0 < 487 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col0 < 487)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_902 UNION ALL SELECT pk, col0 FROM view_2_tab0_902
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col0 < 487 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col0 < 487)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_902 UNION SELECT pk, col0 FROM view_2_tab0_902
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-3100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col0 < 487 ) AS tab0_902
----
43 values hashing to 6dbba989911e394a8c89c6ded68c8ae5

query I rowsort label-3100-3
SELECT * FROM view_3_tab0_902
----
43 values hashing to 6dbba989911e394a8c89c6ded68c8ae5

query I rowsort label-3100-3
SELECT pk FROM tab0 WHERE col0 < 487
----
43 values hashing to 6dbba989911e394a8c89c6ded68c8ae5

statement ok
DROP VIEW view_1_tab0_902

statement ok
DROP VIEW view_2_tab0_902

statement ok
DROP VIEW view_3_tab0_902

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_902') DROP VIEW view_1_tab1_902

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_902

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_902') DROP VIEW view_2_tab1_902

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_902

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_902') DROP VIEW view_3_tab1_902

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_902

statement ok
CREATE VIEW view_1_tab1_902 AS SELECT pk, col0 FROM tab1 WHERE col0 < 487

statement ok
CREATE VIEW view_2_tab1_902 AS SELECT pk, col0 FROM tab1 WHERE NOT (col0 < 487)

statement ok
CREATE VIEW view_3_tab1_902 AS SELECT pk FROM view_1_tab1_902

query II rowsort label-3100-1
SELECT pk, col0 FROM tab1 WHERE col0 < 487
----
86 values hashing to 5b30e7e7b7ad5f76c707929543ad172d

query II rowsort label-3100-2
SELECT pk, col0 FROM tab1 WHERE NOT (col0 < 487)
----
114 values hashing to f2e5d44348c4a18f85d991c36e6d00e2

query II rowsort label-3100-1
SELECT pk, col0 FROM view_1_tab1_902
----
86 values hashing to 5b30e7e7b7ad5f76c707929543ad172d

query II rowsort label-3100-2
SELECT pk, col0 FROM view_2_tab1_902
----
114 values hashing to f2e5d44348c4a18f85d991c36e6d00e2

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col0 < 487 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col0 < 487)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_902 UNION ALL SELECT pk, col0 FROM view_2_tab1_902
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col0 < 487 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col0 < 487)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_902 UNION SELECT pk, col0 FROM view_2_tab1_902
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-3100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col0 < 487 ) AS tab1_902
----
43 values hashing to 6dbba989911e394a8c89c6ded68c8ae5

query I rowsort label-3100-3
SELECT * FROM view_3_tab1_902
----
43 values hashing to 6dbba989911e394a8c89c6ded68c8ae5

query I rowsort label-3100-3
SELECT pk FROM tab1 WHERE col0 < 487
----
43 values hashing to 6dbba989911e394a8c89c6ded68c8ae5

statement ok
DROP VIEW view_1_tab1_902

statement ok
DROP VIEW view_2_tab1_902

statement ok
DROP VIEW view_3_tab1_902

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_902') DROP VIEW view_1_tab2_902

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_902

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_902') DROP VIEW view_2_tab2_902

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_902

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_902') DROP VIEW view_3_tab2_902

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_902

statement ok
CREATE VIEW view_1_tab2_902 AS SELECT pk, col0 FROM tab2 WHERE col0 < 487

statement ok
CREATE VIEW view_2_tab2_902 AS SELECT pk, col0 FROM tab2 WHERE NOT (col0 < 487)

statement ok
CREATE VIEW view_3_tab2_902 AS SELECT pk FROM view_1_tab2_902

query II rowsort label-3100-1
SELECT pk, col0 FROM tab2 WHERE col0 < 487
----
86 values hashing to 5b30e7e7b7ad5f76c707929543ad172d

query II rowsort label-3100-2
SELECT pk, col0 FROM tab2 WHERE NOT (col0 < 487)
----
114 values hashing to f2e5d44348c4a18f85d991c36e6d00e2

query II rowsort label-3100-1
SELECT pk, col0 FROM view_1_tab2_902
----
86 values hashing to 5b30e7e7b7ad5f76c707929543ad172d

query II rowsort label-3100-2
SELECT pk, col0 FROM view_2_tab2_902
----
114 values hashing to f2e5d44348c4a18f85d991c36e6d00e2

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col0 < 487 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col0 < 487)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_902 UNION ALL SELECT pk, col0 FROM view_2_tab2_902
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col0 < 487 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col0 < 487)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_902 UNION SELECT pk, col0 FROM view_2_tab2_902
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-3100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col0 < 487 ) AS tab2_902
----
43 values hashing to 6dbba989911e394a8c89c6ded68c8ae5

query I rowsort label-3100-3
SELECT * FROM view_3_tab2_902
----
43 values hashing to 6dbba989911e394a8c89c6ded68c8ae5

query I rowsort label-3100-3
SELECT pk FROM tab2 WHERE col0 < 487
----
43 values hashing to 6dbba989911e394a8c89c6ded68c8ae5

statement ok
DROP VIEW view_1_tab2_902

statement ok
DROP VIEW view_2_tab2_902

statement ok
DROP VIEW view_3_tab2_902

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_902') DROP VIEW view_1_tab3_902

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_902

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_902') DROP VIEW view_2_tab3_902

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_902

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_902') DROP VIEW view_3_tab3_902

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_902

statement ok
CREATE VIEW view_1_tab3_902 AS SELECT pk, col0 FROM tab3 WHERE col0 < 487

statement ok
CREATE VIEW view_2_tab3_902 AS SELECT pk, col0 FROM tab3 WHERE NOT (col0 < 487)

statement ok
CREATE VIEW view_3_tab3_902 AS SELECT pk FROM view_1_tab3_902

query II rowsort label-3100-1
SELECT pk, col0 FROM tab3 WHERE col0 < 487
----
86 values hashing to 5b30e7e7b7ad5f76c707929543ad172d

query II rowsort label-3100-2
SELECT pk, col0 FROM tab3 WHERE NOT (col0 < 487)
----
114 values hashing to f2e5d44348c4a18f85d991c36e6d00e2

query II rowsort label-3100-1
SELECT pk, col0 FROM view_1_tab3_902
----
86 values hashing to 5b30e7e7b7ad5f76c707929543ad172d

query II rowsort label-3100-2
SELECT pk, col0 FROM view_2_tab3_902
----
114 values hashing to f2e5d44348c4a18f85d991c36e6d00e2

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col0 < 487 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col0 < 487)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_902 UNION ALL SELECT pk, col0 FROM view_2_tab3_902
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col0 < 487 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col0 < 487)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_902 UNION SELECT pk, col0 FROM view_2_tab3_902
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-3100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col0 < 487 ) AS tab3_902
----
43 values hashing to 6dbba989911e394a8c89c6ded68c8ae5

query I rowsort label-3100-3
SELECT * FROM view_3_tab3_902
----
43 values hashing to 6dbba989911e394a8c89c6ded68c8ae5

query I rowsort label-3100-3
SELECT pk FROM tab3 WHERE col0 < 487
----
43 values hashing to 6dbba989911e394a8c89c6ded68c8ae5

statement ok
DROP VIEW view_1_tab3_902

statement ok
DROP VIEW view_2_tab3_902

statement ok
DROP VIEW view_3_tab3_902

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_902') DROP VIEW view_1_tab4_902

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_902

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_902') DROP VIEW view_2_tab4_902

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_902

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_902') DROP VIEW view_3_tab4_902

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_902

statement ok
CREATE VIEW view_1_tab4_902 AS SELECT pk, col0 FROM tab4 WHERE col0 < 487

statement ok
CREATE VIEW view_2_tab4_902 AS SELECT pk, col0 FROM tab4 WHERE NOT (col0 < 487)

statement ok
CREATE VIEW view_3_tab4_902 AS SELECT pk FROM view_1_tab4_902

query II rowsort label-3100-1
SELECT pk, col0 FROM tab4 WHERE col0 < 487
----
86 values hashing to 5b30e7e7b7ad5f76c707929543ad172d

query II rowsort label-3100-2
SELECT pk, col0 FROM tab4 WHERE NOT (col0 < 487)
----
114 values hashing to f2e5d44348c4a18f85d991c36e6d00e2

query II rowsort label-3100-1
SELECT pk, col0 FROM view_1_tab4_902
----
86 values hashing to 5b30e7e7b7ad5f76c707929543ad172d

query II rowsort label-3100-2
SELECT pk, col0 FROM view_2_tab4_902
----
114 values hashing to f2e5d44348c4a18f85d991c36e6d00e2

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col0 < 487 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col0 < 487)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_902 UNION ALL SELECT pk, col0 FROM view_2_tab4_902
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col0 < 487 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col0 < 487)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_902 UNION SELECT pk, col0 FROM view_2_tab4_902
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-3100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col0 < 487 ) AS tab4_902
----
43 values hashing to 6dbba989911e394a8c89c6ded68c8ae5

query I rowsort label-3100-3
SELECT * FROM view_3_tab4_902
----
43 values hashing to 6dbba989911e394a8c89c6ded68c8ae5

query I rowsort label-3100-3
SELECT pk FROM tab4 WHERE col0 < 487
----
43 values hashing to 6dbba989911e394a8c89c6ded68c8ae5

statement ok
DROP VIEW view_1_tab4_902

statement ok
DROP VIEW view_2_tab4_902

statement ok
DROP VIEW view_3_tab4_902

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_903') DROP VIEW view_1_tab0_903

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_903

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_903') DROP VIEW view_2_tab0_903

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_903

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_903') DROP VIEW view_3_tab0_903

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_903

statement ok
CREATE VIEW view_1_tab0_903 AS SELECT pk, col0 FROM tab0 WHERE (col0 < 151 AND col0 > 630 AND col0 IS NULL)

statement ok
CREATE VIEW view_2_tab0_903 AS SELECT pk, col0 FROM tab0 WHERE NOT ((col0 < 151 AND col0 > 630 AND col0 IS NULL))

statement ok
CREATE VIEW view_3_tab0_903 AS SELECT pk FROM view_1_tab0_903

query II rowsort label-3200-1
SELECT pk, col0 FROM tab0 WHERE (col0 < 151 AND col0 > 630 AND col0 IS NULL)
----

query II rowsort label-3200-2
SELECT pk, col0 FROM tab0 WHERE NOT ((col0 < 151 AND col0 > 630 AND col0 IS NULL))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-3200-1
SELECT pk, col0 FROM view_1_tab0_903
----

query II rowsort label-3200-2
SELECT pk, col0 FROM view_2_tab0_903
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col0 < 151 AND col0 > 630 AND col0 IS NULL) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT ((col0 < 151 AND col0 > 630 AND col0 IS NULL))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_903 UNION ALL SELECT pk, col0 FROM view_2_tab0_903
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col0 < 151 AND col0 > 630 AND col0 IS NULL) UNION SELECT pk, col0 FROM tab0 WHERE NOT ((col0 < 151 AND col0 > 630 AND col0 IS NULL))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_903 UNION SELECT pk, col0 FROM view_2_tab0_903
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-3200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE (col0 < 151 AND col0 > 630 AND col0 IS NULL) ) AS tab0_903
----

query I rowsort label-3200-3
SELECT * FROM view_3_tab0_903
----

query I rowsort label-3200-3
SELECT pk FROM tab0 WHERE (col0 < 151 AND col0 > 630 AND col0 IS NULL)
----

statement ok
DROP VIEW view_1_tab0_903

statement ok
DROP VIEW view_2_tab0_903

statement ok
DROP VIEW view_3_tab0_903

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_903') DROP VIEW view_1_tab1_903

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_903

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_903') DROP VIEW view_2_tab1_903

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_903

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_903') DROP VIEW view_3_tab1_903

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_903

statement ok
CREATE VIEW view_1_tab1_903 AS SELECT pk, col0 FROM tab1 WHERE (col0 < 151 AND col0 > 630 AND col0 IS NULL)

statement ok
CREATE VIEW view_2_tab1_903 AS SELECT pk, col0 FROM tab1 WHERE NOT ((col0 < 151 AND col0 > 630 AND col0 IS NULL))

statement ok
CREATE VIEW view_3_tab1_903 AS SELECT pk FROM view_1_tab1_903

query II rowsort label-3200-1
SELECT pk, col0 FROM tab1 WHERE (col0 < 151 AND col0 > 630 AND col0 IS NULL)
----

query II rowsort label-3200-2
SELECT pk, col0 FROM tab1 WHERE NOT ((col0 < 151 AND col0 > 630 AND col0 IS NULL))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-3200-1
SELECT pk, col0 FROM view_1_tab1_903
----

query II rowsort label-3200-2
SELECT pk, col0 FROM view_2_tab1_903
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col0 < 151 AND col0 > 630 AND col0 IS NULL) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT ((col0 < 151 AND col0 > 630 AND col0 IS NULL))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_903 UNION ALL SELECT pk, col0 FROM view_2_tab1_903
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col0 < 151 AND col0 > 630 AND col0 IS NULL) UNION SELECT pk, col0 FROM tab1 WHERE NOT ((col0 < 151 AND col0 > 630 AND col0 IS NULL))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_903 UNION SELECT pk, col0 FROM view_2_tab1_903
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-3200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE (col0 < 151 AND col0 > 630 AND col0 IS NULL) ) AS tab1_903
----

query I rowsort label-3200-3
SELECT * FROM view_3_tab1_903
----

query I rowsort label-3200-3
SELECT pk FROM tab1 WHERE (col0 < 151 AND col0 > 630 AND col0 IS NULL)
----

statement ok
DROP VIEW view_1_tab1_903

statement ok
DROP VIEW view_2_tab1_903

statement ok
DROP VIEW view_3_tab1_903

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_903') DROP VIEW view_1_tab2_903

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_903

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_903') DROP VIEW view_2_tab2_903

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_903

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_903') DROP VIEW view_3_tab2_903

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_903

statement ok
CREATE VIEW view_1_tab2_903 AS SELECT pk, col0 FROM tab2 WHERE (col0 < 151 AND col0 > 630 AND col0 IS NULL)

statement ok
CREATE VIEW view_2_tab2_903 AS SELECT pk, col0 FROM tab2 WHERE NOT ((col0 < 151 AND col0 > 630 AND col0 IS NULL))

statement ok
CREATE VIEW view_3_tab2_903 AS SELECT pk FROM view_1_tab2_903

query II rowsort label-3200-1
SELECT pk, col0 FROM tab2 WHERE (col0 < 151 AND col0 > 630 AND col0 IS NULL)
----

query II rowsort label-3200-2
SELECT pk, col0 FROM tab2 WHERE NOT ((col0 < 151 AND col0 > 630 AND col0 IS NULL))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-3200-1
SELECT pk, col0 FROM view_1_tab2_903
----

query II rowsort label-3200-2
SELECT pk, col0 FROM view_2_tab2_903
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col0 < 151 AND col0 > 630 AND col0 IS NULL) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT ((col0 < 151 AND col0 > 630 AND col0 IS NULL))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_903 UNION ALL SELECT pk, col0 FROM view_2_tab2_903
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col0 < 151 AND col0 > 630 AND col0 IS NULL) UNION SELECT pk, col0 FROM tab2 WHERE NOT ((col0 < 151 AND col0 > 630 AND col0 IS NULL))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_903 UNION SELECT pk, col0 FROM view_2_tab2_903
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-3200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE (col0 < 151 AND col0 > 630 AND col0 IS NULL) ) AS tab2_903
----

query I rowsort label-3200-3
SELECT * FROM view_3_tab2_903
----

query I rowsort label-3200-3
SELECT pk FROM tab2 WHERE (col0 < 151 AND col0 > 630 AND col0 IS NULL)
----

statement ok
DROP VIEW view_1_tab2_903

statement ok
DROP VIEW view_2_tab2_903

statement ok
DROP VIEW view_3_tab2_903

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_903') DROP VIEW view_1_tab3_903

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_903

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_903') DROP VIEW view_2_tab3_903

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_903

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_903') DROP VIEW view_3_tab3_903

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_903

statement ok
CREATE VIEW view_1_tab3_903 AS SELECT pk, col0 FROM tab3 WHERE (col0 < 151 AND col0 > 630 AND col0 IS NULL)

statement ok
CREATE VIEW view_2_tab3_903 AS SELECT pk, col0 FROM tab3 WHERE NOT ((col0 < 151 AND col0 > 630 AND col0 IS NULL))

statement ok
CREATE VIEW view_3_tab3_903 AS SELECT pk FROM view_1_tab3_903

query II rowsort label-3200-1
SELECT pk, col0 FROM tab3 WHERE (col0 < 151 AND col0 > 630 AND col0 IS NULL)
----

query II rowsort label-3200-2
SELECT pk, col0 FROM tab3 WHERE NOT ((col0 < 151 AND col0 > 630 AND col0 IS NULL))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-3200-1
SELECT pk, col0 FROM view_1_tab3_903
----

query II rowsort label-3200-2
SELECT pk, col0 FROM view_2_tab3_903
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col0 < 151 AND col0 > 630 AND col0 IS NULL) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT ((col0 < 151 AND col0 > 630 AND col0 IS NULL))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_903 UNION ALL SELECT pk, col0 FROM view_2_tab3_903
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col0 < 151 AND col0 > 630 AND col0 IS NULL) UNION SELECT pk, col0 FROM tab3 WHERE NOT ((col0 < 151 AND col0 > 630 AND col0 IS NULL))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_903 UNION SELECT pk, col0 FROM view_2_tab3_903
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-3200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE (col0 < 151 AND col0 > 630 AND col0 IS NULL) ) AS tab3_903
----

query I rowsort label-3200-3
SELECT * FROM view_3_tab3_903
----

query I rowsort label-3200-3
SELECT pk FROM tab3 WHERE (col0 < 151 AND col0 > 630 AND col0 IS NULL)
----

statement ok
DROP VIEW view_1_tab3_903

statement ok
DROP VIEW view_2_tab3_903

statement ok
DROP VIEW view_3_tab3_903

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_903') DROP VIEW view_1_tab4_903

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_903

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_903') DROP VIEW view_2_tab4_903

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_903

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_903') DROP VIEW view_3_tab4_903

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_903

statement ok
CREATE VIEW view_1_tab4_903 AS SELECT pk, col0 FROM tab4 WHERE (col0 < 151 AND col0 > 630 AND col0 IS NULL)

statement ok
CREATE VIEW view_2_tab4_903 AS SELECT pk, col0 FROM tab4 WHERE NOT ((col0 < 151 AND col0 > 630 AND col0 IS NULL))

statement ok
CREATE VIEW view_3_tab4_903 AS SELECT pk FROM view_1_tab4_903

query II rowsort label-3200-1
SELECT pk, col0 FROM tab4 WHERE (col0 < 151 AND col0 > 630 AND col0 IS NULL)
----

query II rowsort label-3200-2
SELECT pk, col0 FROM tab4 WHERE NOT ((col0 < 151 AND col0 > 630 AND col0 IS NULL))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-3200-1
SELECT pk, col0 FROM view_1_tab4_903
----

query II rowsort label-3200-2
SELECT pk, col0 FROM view_2_tab4_903
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col0 < 151 AND col0 > 630 AND col0 IS NULL) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT ((col0 < 151 AND col0 > 630 AND col0 IS NULL))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_903 UNION ALL SELECT pk, col0 FROM view_2_tab4_903
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col0 < 151 AND col0 > 630 AND col0 IS NULL) UNION SELECT pk, col0 FROM tab4 WHERE NOT ((col0 < 151 AND col0 > 630 AND col0 IS NULL))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_903 UNION SELECT pk, col0 FROM view_2_tab4_903
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-3200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE (col0 < 151 AND col0 > 630 AND col0 IS NULL) ) AS tab4_903
----

query I rowsort label-3200-3
SELECT * FROM view_3_tab4_903
----

query I rowsort label-3200-3
SELECT pk FROM tab4 WHERE (col0 < 151 AND col0 > 630 AND col0 IS NULL)
----

statement ok
DROP VIEW view_1_tab4_903

statement ok
DROP VIEW view_2_tab4_903

statement ok
DROP VIEW view_3_tab4_903

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_904') DROP VIEW view_1_tab0_904

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_904

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_904') DROP VIEW view_2_tab0_904

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_904

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_904') DROP VIEW view_3_tab0_904

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_904

statement ok
CREATE VIEW view_1_tab0_904 AS SELECT pk, col0 FROM tab0 WHERE col4 < 196.2

statement ok
CREATE VIEW view_2_tab0_904 AS SELECT pk, col0 FROM tab0 WHERE NOT (col4 < 196.2)

statement ok
CREATE VIEW view_3_tab0_904 AS SELECT pk FROM view_1_tab0_904

query II rowsort label-3300-1
SELECT pk, col0 FROM tab0 WHERE col4 < 196.2
----
48 values hashing to d78acfc350baa1f3a2e6037138b918e4

query II rowsort label-3300-2
SELECT pk, col0 FROM tab0 WHERE NOT (col4 < 196.2)
----
152 values hashing to 0c303fd4096bf2ec822dc96aa9a8fbb3

query II rowsort label-3300-1
SELECT pk, col0 FROM view_1_tab0_904
----
48 values hashing to d78acfc350baa1f3a2e6037138b918e4

query II rowsort label-3300-2
SELECT pk, col0 FROM view_2_tab0_904
----
152 values hashing to 0c303fd4096bf2ec822dc96aa9a8fbb3

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col4 < 196.2 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col4 < 196.2)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_904 UNION ALL SELECT pk, col0 FROM view_2_tab0_904
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col4 < 196.2 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col4 < 196.2)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_904 UNION SELECT pk, col0 FROM view_2_tab0_904
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-3300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col4 < 196.2 ) AS tab0_904
----
24 values hashing to 67dc1133759a7a5b663a46b645c21a33

query I rowsort label-3300-3
SELECT * FROM view_3_tab0_904
----
24 values hashing to 67dc1133759a7a5b663a46b645c21a33

query I rowsort label-3300-3
SELECT pk FROM tab0 WHERE col4 < 196.2
----
24 values hashing to 67dc1133759a7a5b663a46b645c21a33

statement ok
DROP VIEW view_1_tab0_904

statement ok
DROP VIEW view_2_tab0_904

statement ok
DROP VIEW view_3_tab0_904

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_904') DROP VIEW view_1_tab1_904

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_904

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_904') DROP VIEW view_2_tab1_904

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_904

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_904') DROP VIEW view_3_tab1_904

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_904

statement ok
CREATE VIEW view_1_tab1_904 AS SELECT pk, col0 FROM tab1 WHERE col4 < 196.2

statement ok
CREATE VIEW view_2_tab1_904 AS SELECT pk, col0 FROM tab1 WHERE NOT (col4 < 196.2)

statement ok
CREATE VIEW view_3_tab1_904 AS SELECT pk FROM view_1_tab1_904

query II rowsort label-3300-1
SELECT pk, col0 FROM tab1 WHERE col4 < 196.2
----
48 values hashing to d78acfc350baa1f3a2e6037138b918e4

query II rowsort label-3300-2
SELECT pk, col0 FROM tab1 WHERE NOT (col4 < 196.2)
----
152 values hashing to 0c303fd4096bf2ec822dc96aa9a8fbb3

query II rowsort label-3300-1
SELECT pk, col0 FROM view_1_tab1_904
----
48 values hashing to d78acfc350baa1f3a2e6037138b918e4

query II rowsort label-3300-2
SELECT pk, col0 FROM view_2_tab1_904
----
152 values hashing to 0c303fd4096bf2ec822dc96aa9a8fbb3

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col4 < 196.2 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col4 < 196.2)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_904 UNION ALL SELECT pk, col0 FROM view_2_tab1_904
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col4 < 196.2 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col4 < 196.2)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_904 UNION SELECT pk, col0 FROM view_2_tab1_904
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-3300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col4 < 196.2 ) AS tab1_904
----
24 values hashing to 67dc1133759a7a5b663a46b645c21a33

query I rowsort label-3300-3
SELECT * FROM view_3_tab1_904
----
24 values hashing to 67dc1133759a7a5b663a46b645c21a33

query I rowsort label-3300-3
SELECT pk FROM tab1 WHERE col4 < 196.2
----
24 values hashing to 67dc1133759a7a5b663a46b645c21a33

statement ok
DROP VIEW view_1_tab1_904

statement ok
DROP VIEW view_2_tab1_904

statement ok
DROP VIEW view_3_tab1_904

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_904') DROP VIEW view_1_tab2_904

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_904

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_904') DROP VIEW view_2_tab2_904

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_904

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_904') DROP VIEW view_3_tab2_904

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_904

statement ok
CREATE VIEW view_1_tab2_904 AS SELECT pk, col0 FROM tab2 WHERE col4 < 196.2

statement ok
CREATE VIEW view_2_tab2_904 AS SELECT pk, col0 FROM tab2 WHERE NOT (col4 < 196.2)

statement ok
CREATE VIEW view_3_tab2_904 AS SELECT pk FROM view_1_tab2_904

query II rowsort label-3300-1
SELECT pk, col0 FROM tab2 WHERE col4 < 196.2
----
48 values hashing to d78acfc350baa1f3a2e6037138b918e4

query II rowsort label-3300-2
SELECT pk, col0 FROM tab2 WHERE NOT (col4 < 196.2)
----
152 values hashing to 0c303fd4096bf2ec822dc96aa9a8fbb3

query II rowsort label-3300-1
SELECT pk, col0 FROM view_1_tab2_904
----
48 values hashing to d78acfc350baa1f3a2e6037138b918e4

query II rowsort label-3300-2
SELECT pk, col0 FROM view_2_tab2_904
----
152 values hashing to 0c303fd4096bf2ec822dc96aa9a8fbb3

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col4 < 196.2 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col4 < 196.2)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_904 UNION ALL SELECT pk, col0 FROM view_2_tab2_904
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col4 < 196.2 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col4 < 196.2)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_904 UNION SELECT pk, col0 FROM view_2_tab2_904
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-3300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col4 < 196.2 ) AS tab2_904
----
24 values hashing to 67dc1133759a7a5b663a46b645c21a33

query I rowsort label-3300-3
SELECT * FROM view_3_tab2_904
----
24 values hashing to 67dc1133759a7a5b663a46b645c21a33

query I rowsort label-3300-3
SELECT pk FROM tab2 WHERE col4 < 196.2
----
24 values hashing to 67dc1133759a7a5b663a46b645c21a33

statement ok
DROP VIEW view_1_tab2_904

statement ok
DROP VIEW view_2_tab2_904

statement ok
DROP VIEW view_3_tab2_904

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_904') DROP VIEW view_1_tab3_904

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_904

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_904') DROP VIEW view_2_tab3_904

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_904

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_904') DROP VIEW view_3_tab3_904

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_904

statement ok
CREATE VIEW view_1_tab3_904 AS SELECT pk, col0 FROM tab3 WHERE col4 < 196.2

statement ok
CREATE VIEW view_2_tab3_904 AS SELECT pk, col0 FROM tab3 WHERE NOT (col4 < 196.2)

statement ok
CREATE VIEW view_3_tab3_904 AS SELECT pk FROM view_1_tab3_904

query II rowsort label-3300-1
SELECT pk, col0 FROM tab3 WHERE col4 < 196.2
----
48 values hashing to d78acfc350baa1f3a2e6037138b918e4

query II rowsort label-3300-2
SELECT pk, col0 FROM tab3 WHERE NOT (col4 < 196.2)
----
152 values hashing to 0c303fd4096bf2ec822dc96aa9a8fbb3

query II rowsort label-3300-1
SELECT pk, col0 FROM view_1_tab3_904
----
48 values hashing to d78acfc350baa1f3a2e6037138b918e4

query II rowsort label-3300-2
SELECT pk, col0 FROM view_2_tab3_904
----
152 values hashing to 0c303fd4096bf2ec822dc96aa9a8fbb3

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col4 < 196.2 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col4 < 196.2)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_904 UNION ALL SELECT pk, col0 FROM view_2_tab3_904
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col4 < 196.2 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col4 < 196.2)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_904 UNION SELECT pk, col0 FROM view_2_tab3_904
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-3300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col4 < 196.2 ) AS tab3_904
----
24 values hashing to 67dc1133759a7a5b663a46b645c21a33

query I rowsort label-3300-3
SELECT * FROM view_3_tab3_904
----
24 values hashing to 67dc1133759a7a5b663a46b645c21a33

query I rowsort label-3300-3
SELECT pk FROM tab3 WHERE col4 < 196.2
----
24 values hashing to 67dc1133759a7a5b663a46b645c21a33

statement ok
DROP VIEW view_1_tab3_904

statement ok
DROP VIEW view_2_tab3_904

statement ok
DROP VIEW view_3_tab3_904

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_904') DROP VIEW view_1_tab4_904

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_904

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_904') DROP VIEW view_2_tab4_904

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_904

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_904') DROP VIEW view_3_tab4_904

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_904

statement ok
CREATE VIEW view_1_tab4_904 AS SELECT pk, col0 FROM tab4 WHERE col4 < 196.2

statement ok
CREATE VIEW view_2_tab4_904 AS SELECT pk, col0 FROM tab4 WHERE NOT (col4 < 196.2)

statement ok
CREATE VIEW view_3_tab4_904 AS SELECT pk FROM view_1_tab4_904

query II rowsort label-3300-1
SELECT pk, col0 FROM tab4 WHERE col4 < 196.2
----
48 values hashing to d78acfc350baa1f3a2e6037138b918e4

query II rowsort label-3300-2
SELECT pk, col0 FROM tab4 WHERE NOT (col4 < 196.2)
----
152 values hashing to 0c303fd4096bf2ec822dc96aa9a8fbb3

query II rowsort label-3300-1
SELECT pk, col0 FROM view_1_tab4_904
----
48 values hashing to d78acfc350baa1f3a2e6037138b918e4

query II rowsort label-3300-2
SELECT pk, col0 FROM view_2_tab4_904
----
152 values hashing to 0c303fd4096bf2ec822dc96aa9a8fbb3

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col4 < 196.2 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col4 < 196.2)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_904 UNION ALL SELECT pk, col0 FROM view_2_tab4_904
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col4 < 196.2 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col4 < 196.2)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_904 UNION SELECT pk, col0 FROM view_2_tab4_904
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-3300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col4 < 196.2 ) AS tab4_904
----
24 values hashing to 67dc1133759a7a5b663a46b645c21a33

query I rowsort label-3300-3
SELECT * FROM view_3_tab4_904
----
24 values hashing to 67dc1133759a7a5b663a46b645c21a33

query I rowsort label-3300-3
SELECT pk FROM tab4 WHERE col4 < 196.2
----
24 values hashing to 67dc1133759a7a5b663a46b645c21a33

statement ok
DROP VIEW view_1_tab4_904

statement ok
DROP VIEW view_2_tab4_904

statement ok
DROP VIEW view_3_tab4_904

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_905') DROP VIEW view_1_tab0_905

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_905

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_905') DROP VIEW view_2_tab0_905

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_905

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_905') DROP VIEW view_3_tab0_905

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_905

statement ok
CREATE VIEW view_1_tab0_905 AS SELECT pk, col0 FROM tab0 WHERE (col0 > 490)

statement ok
CREATE VIEW view_2_tab0_905 AS SELECT pk, col0 FROM tab0 WHERE NOT ((col0 > 490))

statement ok
CREATE VIEW view_3_tab0_905 AS SELECT pk FROM view_1_tab0_905

query II rowsort label-3400-1
SELECT pk, col0 FROM tab0 WHERE (col0 > 490)
----
114 values hashing to f2e5d44348c4a18f85d991c36e6d00e2

query II rowsort label-3400-2
SELECT pk, col0 FROM tab0 WHERE NOT ((col0 > 490))
----
86 values hashing to 5b30e7e7b7ad5f76c707929543ad172d

query II rowsort label-3400-1
SELECT pk, col0 FROM view_1_tab0_905
----
114 values hashing to f2e5d44348c4a18f85d991c36e6d00e2

query II rowsort label-3400-2
SELECT pk, col0 FROM view_2_tab0_905
----
86 values hashing to 5b30e7e7b7ad5f76c707929543ad172d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col0 > 490) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT ((col0 > 490))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_905 UNION ALL SELECT pk, col0 FROM view_2_tab0_905
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col0 > 490) UNION SELECT pk, col0 FROM tab0 WHERE NOT ((col0 > 490))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_905 UNION SELECT pk, col0 FROM view_2_tab0_905
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-3400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE (col0 > 490) ) AS tab0_905
----
57 values hashing to 08ab48659bf55b5f0a9362746a0e31ed

query I rowsort label-3400-3
SELECT * FROM view_3_tab0_905
----
57 values hashing to 08ab48659bf55b5f0a9362746a0e31ed

query I rowsort label-3400-3
SELECT pk FROM tab0 WHERE (col0 > 490)
----
57 values hashing to 08ab48659bf55b5f0a9362746a0e31ed

statement ok
DROP VIEW view_1_tab0_905

statement ok
DROP VIEW view_2_tab0_905

statement ok
DROP VIEW view_3_tab0_905

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_905') DROP VIEW view_1_tab1_905

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_905

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_905') DROP VIEW view_2_tab1_905

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_905

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_905') DROP VIEW view_3_tab1_905

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_905

statement ok
CREATE VIEW view_1_tab1_905 AS SELECT pk, col0 FROM tab1 WHERE (col0 > 490)

statement ok
CREATE VIEW view_2_tab1_905 AS SELECT pk, col0 FROM tab1 WHERE NOT ((col0 > 490))

statement ok
CREATE VIEW view_3_tab1_905 AS SELECT pk FROM view_1_tab1_905

query II rowsort label-3400-1
SELECT pk, col0 FROM tab1 WHERE (col0 > 490)
----
114 values hashing to f2e5d44348c4a18f85d991c36e6d00e2

query II rowsort label-3400-2
SELECT pk, col0 FROM tab1 WHERE NOT ((col0 > 490))
----
86 values hashing to 5b30e7e7b7ad5f76c707929543ad172d

query II rowsort label-3400-1
SELECT pk, col0 FROM view_1_tab1_905
----
114 values hashing to f2e5d44348c4a18f85d991c36e6d00e2

query II rowsort label-3400-2
SELECT pk, col0 FROM view_2_tab1_905
----
86 values hashing to 5b30e7e7b7ad5f76c707929543ad172d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col0 > 490) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT ((col0 > 490))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_905 UNION ALL SELECT pk, col0 FROM view_2_tab1_905
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col0 > 490) UNION SELECT pk, col0 FROM tab1 WHERE NOT ((col0 > 490))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_905 UNION SELECT pk, col0 FROM view_2_tab1_905
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-3400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE (col0 > 490) ) AS tab1_905
----
57 values hashing to 08ab48659bf55b5f0a9362746a0e31ed

query I rowsort label-3400-3
SELECT * FROM view_3_tab1_905
----
57 values hashing to 08ab48659bf55b5f0a9362746a0e31ed

query I rowsort label-3400-3
SELECT pk FROM tab1 WHERE (col0 > 490)
----
57 values hashing to 08ab48659bf55b5f0a9362746a0e31ed

statement ok
DROP VIEW view_1_tab1_905

statement ok
DROP VIEW view_2_tab1_905

statement ok
DROP VIEW view_3_tab1_905

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_905') DROP VIEW view_1_tab2_905

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_905

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_905') DROP VIEW view_2_tab2_905

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_905

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_905') DROP VIEW view_3_tab2_905

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_905

statement ok
CREATE VIEW view_1_tab2_905 AS SELECT pk, col0 FROM tab2 WHERE (col0 > 490)

statement ok
CREATE VIEW view_2_tab2_905 AS SELECT pk, col0 FROM tab2 WHERE NOT ((col0 > 490))

statement ok
CREATE VIEW view_3_tab2_905 AS SELECT pk FROM view_1_tab2_905

query II rowsort label-3400-1
SELECT pk, col0 FROM tab2 WHERE (col0 > 490)
----
114 values hashing to f2e5d44348c4a18f85d991c36e6d00e2

query II rowsort label-3400-2
SELECT pk, col0 FROM tab2 WHERE NOT ((col0 > 490))
----
86 values hashing to 5b30e7e7b7ad5f76c707929543ad172d

query II rowsort label-3400-1
SELECT pk, col0 FROM view_1_tab2_905
----
114 values hashing to f2e5d44348c4a18f85d991c36e6d00e2

query II rowsort label-3400-2
SELECT pk, col0 FROM view_2_tab2_905
----
86 values hashing to 5b30e7e7b7ad5f76c707929543ad172d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col0 > 490) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT ((col0 > 490))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_905 UNION ALL SELECT pk, col0 FROM view_2_tab2_905
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col0 > 490) UNION SELECT pk, col0 FROM tab2 WHERE NOT ((col0 > 490))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_905 UNION SELECT pk, col0 FROM view_2_tab2_905
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-3400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE (col0 > 490) ) AS tab2_905
----
57 values hashing to 08ab48659bf55b5f0a9362746a0e31ed

query I rowsort label-3400-3
SELECT * FROM view_3_tab2_905
----
57 values hashing to 08ab48659bf55b5f0a9362746a0e31ed

query I rowsort label-3400-3
SELECT pk FROM tab2 WHERE (col0 > 490)
----
57 values hashing to 08ab48659bf55b5f0a9362746a0e31ed

statement ok
DROP VIEW view_1_tab2_905

statement ok
DROP VIEW view_2_tab2_905

statement ok
DROP VIEW view_3_tab2_905

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_905') DROP VIEW view_1_tab3_905

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_905

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_905') DROP VIEW view_2_tab3_905

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_905

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_905') DROP VIEW view_3_tab3_905

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_905

statement ok
CREATE VIEW view_1_tab3_905 AS SELECT pk, col0 FROM tab3 WHERE (col0 > 490)

statement ok
CREATE VIEW view_2_tab3_905 AS SELECT pk, col0 FROM tab3 WHERE NOT ((col0 > 490))

statement ok
CREATE VIEW view_3_tab3_905 AS SELECT pk FROM view_1_tab3_905

query II rowsort label-3400-1
SELECT pk, col0 FROM tab3 WHERE (col0 > 490)
----
114 values hashing to f2e5d44348c4a18f85d991c36e6d00e2

query II rowsort label-3400-2
SELECT pk, col0 FROM tab3 WHERE NOT ((col0 > 490))
----
86 values hashing to 5b30e7e7b7ad5f76c707929543ad172d

query II rowsort label-3400-1
SELECT pk, col0 FROM view_1_tab3_905
----
114 values hashing to f2e5d44348c4a18f85d991c36e6d00e2

query II rowsort label-3400-2
SELECT pk, col0 FROM view_2_tab3_905
----
86 values hashing to 5b30e7e7b7ad5f76c707929543ad172d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col0 > 490) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT ((col0 > 490))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_905 UNION ALL SELECT pk, col0 FROM view_2_tab3_905
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col0 > 490) UNION SELECT pk, col0 FROM tab3 WHERE NOT ((col0 > 490))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_905 UNION SELECT pk, col0 FROM view_2_tab3_905
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-3400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE (col0 > 490) ) AS tab3_905
----
57 values hashing to 08ab48659bf55b5f0a9362746a0e31ed

query I rowsort label-3400-3
SELECT * FROM view_3_tab3_905
----
57 values hashing to 08ab48659bf55b5f0a9362746a0e31ed

query I rowsort label-3400-3
SELECT pk FROM tab3 WHERE (col0 > 490)
----
57 values hashing to 08ab48659bf55b5f0a9362746a0e31ed

statement ok
DROP VIEW view_1_tab3_905

statement ok
DROP VIEW view_2_tab3_905

statement ok
DROP VIEW view_3_tab3_905

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_905') DROP VIEW view_1_tab4_905

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_905

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_905') DROP VIEW view_2_tab4_905

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_905

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_905') DROP VIEW view_3_tab4_905

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_905

statement ok
CREATE VIEW view_1_tab4_905 AS SELECT pk, col0 FROM tab4 WHERE (col0 > 490)

statement ok
CREATE VIEW view_2_tab4_905 AS SELECT pk, col0 FROM tab4 WHERE NOT ((col0 > 490))

statement ok
CREATE VIEW view_3_tab4_905 AS SELECT pk FROM view_1_tab4_905

query II rowsort label-3400-1
SELECT pk, col0 FROM tab4 WHERE (col0 > 490)
----
114 values hashing to f2e5d44348c4a18f85d991c36e6d00e2

query II rowsort label-3400-2
SELECT pk, col0 FROM tab4 WHERE NOT ((col0 > 490))
----
86 values hashing to 5b30e7e7b7ad5f76c707929543ad172d

query II rowsort label-3400-1
SELECT pk, col0 FROM view_1_tab4_905
----
114 values hashing to f2e5d44348c4a18f85d991c36e6d00e2

query II rowsort label-3400-2
SELECT pk, col0 FROM view_2_tab4_905
----
86 values hashing to 5b30e7e7b7ad5f76c707929543ad172d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col0 > 490) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT ((col0 > 490))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_905 UNION ALL SELECT pk, col0 FROM view_2_tab4_905
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col0 > 490) UNION SELECT pk, col0 FROM tab4 WHERE NOT ((col0 > 490))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_905 UNION SELECT pk, col0 FROM view_2_tab4_905
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-3400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE (col0 > 490) ) AS tab4_905
----
57 values hashing to 08ab48659bf55b5f0a9362746a0e31ed

query I rowsort label-3400-3
SELECT * FROM view_3_tab4_905
----
57 values hashing to 08ab48659bf55b5f0a9362746a0e31ed

query I rowsort label-3400-3
SELECT pk FROM tab4 WHERE (col0 > 490)
----
57 values hashing to 08ab48659bf55b5f0a9362746a0e31ed

statement ok
DROP VIEW view_1_tab4_905

statement ok
DROP VIEW view_2_tab4_905

statement ok
DROP VIEW view_3_tab4_905

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_906') DROP VIEW view_1_tab0_906

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_906

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_906') DROP VIEW view_2_tab0_906

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_906

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_906') DROP VIEW view_3_tab0_906

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_906

statement ok
CREATE VIEW view_1_tab0_906 AS SELECT pk, col0 FROM tab0 WHERE col0 < 91 OR ((col3 = 449 OR col0 > 722 AND col0 > 678 AND col3 < 348 AND ((col4 IS NULL AND col3 IN (168)) OR col0 > 39 AND col3 > 415 AND col1 < 801.9) OR (col0 = 108 OR col4 > 688.21 OR (col3 <= 723)) OR col4 >= 97.41) OR col3 > 151 AND col0 = 796)

statement ok
CREATE VIEW view_2_tab0_906 AS SELECT pk, col0 FROM tab0 WHERE NOT (col0 < 91 OR ((col3 = 449 OR col0 > 722 AND col0 > 678 AND col3 < 348 AND ((col4 IS NULL AND col3 IN (168)) OR col0 > 39 AND col3 > 415 AND col1 < 801.9) OR (col0 = 108 OR col4 > 688.21 OR (col3 <= 723)) OR col4 >= 97.41) OR col3 > 151 AND col0 = 796))

statement ok
CREATE VIEW view_3_tab0_906 AS SELECT pk FROM view_1_tab0_906

query II rowsort label-3500-1
SELECT pk, col0 FROM tab0 WHERE col0 < 91 OR ((col3 = 449 OR col0 > 722 AND col0 > 678 AND col3 < 348 AND ((col4 IS NULL AND col3 IN (168)) OR col0 > 39 AND col3 > 415 AND col1 < 801.9) OR (col0 = 108 OR col4 > 688.21 OR (col3 <= 723)) OR col4 >= 97.41) OR col3 > 151 AND col0 = 796)
----
192 values hashing to b411218837b2754822bfc4b32e3f593a

query II rowsort label-3500-2
SELECT pk, col0 FROM tab0 WHERE NOT (col0 < 91 OR ((col3 = 449 OR col0 > 722 AND col0 > 678 AND col3 < 348 AND ((col4 IS NULL AND col3 IN (168)) OR col0 > 39 AND col3 > 415 AND col1 < 801.9) OR (col0 = 108 OR col4 > 688.21 OR (col3 <= 723)) OR col4 >= 97.41) OR col3 > 151 AND col0 = 796))
----
19
523
64
915
8
635
94
429

query II rowsort label-3500-1
SELECT pk, col0 FROM view_1_tab0_906
----
192 values hashing to b411218837b2754822bfc4b32e3f593a

query II rowsort label-3500-2
SELECT pk, col0 FROM view_2_tab0_906
----
19
523
64
915
8
635
94
429

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col0 < 91 OR ((col3 = 449 OR col0 > 722 AND col0 > 678 AND col3 < 348 AND ((col4 IS NULL AND col3 IN (168)) OR col0 > 39 AND col3 > 415 AND col1 < 801.9) OR (col0 = 108 OR col4 > 688.21 OR (col3 <= 723)) OR col4 >= 97.41) OR col3 > 151 AND col0 = 796) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col0 < 91 OR ((col3 = 449 OR col0 > 722 AND col0 > 678 AND col3 < 348 AND ((col4 IS NULL AND col3 IN (168)) OR col0 > 39 AND col3 > 415 AND col1 < 801.9) OR (col0 = 108 OR col4 > 688.21 OR (col3 <= 723)) OR col4 >= 97.41) OR col3 > 151 AND col0 = 796))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_906 UNION ALL SELECT pk, col0 FROM view_2_tab0_906
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col0 < 91 OR ((col3 = 449 OR col0 > 722 AND col0 > 678 AND col3 < 348 AND ((col4 IS NULL AND col3 IN (168)) OR col0 > 39 AND col3 > 415 AND col1 < 801.9) OR (col0 = 108 OR col4 > 688.21 OR (col3 <= 723)) OR col4 >= 97.41) OR col3 > 151 AND col0 = 796) UNION SELECT pk, col0 FROM tab0 WHERE NOT (col0 < 91 OR ((col3 = 449 OR col0 > 722 AND col0 > 678 AND col3 < 348 AND ((col4 IS NULL AND col3 IN (168)) OR col0 > 39 AND col3 > 415 AND col1 < 801.9) OR (col0 = 108 OR col4 > 688.21 OR (col3 <= 723)) OR col4 >= 97.41) OR col3 > 151 AND col0 = 796))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_906 UNION SELECT pk, col0 FROM view_2_tab0_906
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-3500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col0 < 91 OR ((col3 = 449 OR col0 > 722 AND col0 > 678 AND col3 < 348 AND ((col4 IS NULL AND col3 IN (168)) OR col0 > 39 AND col3 > 415 AND col1 < 801.9) OR (col0 = 108 OR col4 > 688.21 OR (col3 <= 723)) OR col4 >= 97.41) OR col3 > 151 AND col0 = 796) ) AS tab0_906
----
96 values hashing to 7cb25a46d9cd9ea63d9e5e4be0c3d0a1

query I rowsort label-3500-3
SELECT * FROM view_3_tab0_906
----
96 values hashing to 7cb25a46d9cd9ea63d9e5e4be0c3d0a1

query I rowsort label-3500-3
SELECT pk FROM tab0 WHERE col0 < 91 OR ((col3 = 449 OR col0 > 722 AND col0 > 678 AND col3 < 348 AND ((col4 IS NULL AND col3 IN (168)) OR col0 > 39 AND col3 > 415 AND col1 < 801.9) OR (col0 = 108 OR col4 > 688.21 OR (col3 <= 723)) OR col4 >= 97.41) OR col3 > 151 AND col0 = 796)
----
96 values hashing to 7cb25a46d9cd9ea63d9e5e4be0c3d0a1

statement ok
DROP VIEW view_1_tab0_906

statement ok
DROP VIEW view_2_tab0_906

statement ok
DROP VIEW view_3_tab0_906

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_906') DROP VIEW view_1_tab1_906

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_906

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_906') DROP VIEW view_2_tab1_906

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_906

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_906') DROP VIEW view_3_tab1_906

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_906

statement ok
CREATE VIEW view_1_tab1_906 AS SELECT pk, col0 FROM tab1 WHERE col0 < 91 OR ((col3 = 449 OR col0 > 722 AND col0 > 678 AND col3 < 348 AND ((col4 IS NULL AND col3 IN (168)) OR col0 > 39 AND col3 > 415 AND col1 < 801.9) OR (col0 = 108 OR col4 > 688.21 OR (col3 <= 723)) OR col4 >= 97.41) OR col3 > 151 AND col0 = 796)

statement ok
CREATE VIEW view_2_tab1_906 AS SELECT pk, col0 FROM tab1 WHERE NOT (col0 < 91 OR ((col3 = 449 OR col0 > 722 AND col0 > 678 AND col3 < 348 AND ((col4 IS NULL AND col3 IN (168)) OR col0 > 39 AND col3 > 415 AND col1 < 801.9) OR (col0 = 108 OR col4 > 688.21 OR (col3 <= 723)) OR col4 >= 97.41) OR col3 > 151 AND col0 = 796))

statement ok
CREATE VIEW view_3_tab1_906 AS SELECT pk FROM view_1_tab1_906

query II rowsort label-3500-1
SELECT pk, col0 FROM tab1 WHERE col0 < 91 OR ((col3 = 449 OR col0 > 722 AND col0 > 678 AND col3 < 348 AND ((col4 IS NULL AND col3 IN (168)) OR col0 > 39 AND col3 > 415 AND col1 < 801.9) OR (col0 = 108 OR col4 > 688.21 OR (col3 <= 723)) OR col4 >= 97.41) OR col3 > 151 AND col0 = 796)
----
192 values hashing to b411218837b2754822bfc4b32e3f593a

query II rowsort label-3500-2
SELECT pk, col0 FROM tab1 WHERE NOT (col0 < 91 OR ((col3 = 449 OR col0 > 722 AND col0 > 678 AND col3 < 348 AND ((col4 IS NULL AND col3 IN (168)) OR col0 > 39 AND col3 > 415 AND col1 < 801.9) OR (col0 = 108 OR col4 > 688.21 OR (col3 <= 723)) OR col4 >= 97.41) OR col3 > 151 AND col0 = 796))
----
19
523
64
915
8
635
94
429

query II rowsort label-3500-1
SELECT pk, col0 FROM view_1_tab1_906
----
192 values hashing to b411218837b2754822bfc4b32e3f593a

query II rowsort label-3500-2
SELECT pk, col0 FROM view_2_tab1_906
----
19
523
64
915
8
635
94
429

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col0 < 91 OR ((col3 = 449 OR col0 > 722 AND col0 > 678 AND col3 < 348 AND ((col4 IS NULL AND col3 IN (168)) OR col0 > 39 AND col3 > 415 AND col1 < 801.9) OR (col0 = 108 OR col4 > 688.21 OR (col3 <= 723)) OR col4 >= 97.41) OR col3 > 151 AND col0 = 796) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col0 < 91 OR ((col3 = 449 OR col0 > 722 AND col0 > 678 AND col3 < 348 AND ((col4 IS NULL AND col3 IN (168)) OR col0 > 39 AND col3 > 415 AND col1 < 801.9) OR (col0 = 108 OR col4 > 688.21 OR (col3 <= 723)) OR col4 >= 97.41) OR col3 > 151 AND col0 = 796))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_906 UNION ALL SELECT pk, col0 FROM view_2_tab1_906
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col0 < 91 OR ((col3 = 449 OR col0 > 722 AND col0 > 678 AND col3 < 348 AND ((col4 IS NULL AND col3 IN (168)) OR col0 > 39 AND col3 > 415 AND col1 < 801.9) OR (col0 = 108 OR col4 > 688.21 OR (col3 <= 723)) OR col4 >= 97.41) OR col3 > 151 AND col0 = 796) UNION SELECT pk, col0 FROM tab1 WHERE NOT (col0 < 91 OR ((col3 = 449 OR col0 > 722 AND col0 > 678 AND col3 < 348 AND ((col4 IS NULL AND col3 IN (168)) OR col0 > 39 AND col3 > 415 AND col1 < 801.9) OR (col0 = 108 OR col4 > 688.21 OR (col3 <= 723)) OR col4 >= 97.41) OR col3 > 151 AND col0 = 796))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_906 UNION SELECT pk, col0 FROM view_2_tab1_906
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-3500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col0 < 91 OR ((col3 = 449 OR col0 > 722 AND col0 > 678 AND col3 < 348 AND ((col4 IS NULL AND col3 IN (168)) OR col0 > 39 AND col3 > 415 AND col1 < 801.9) OR (col0 = 108 OR col4 > 688.21 OR (col3 <= 723)) OR col4 >= 97.41) OR col3 > 151 AND col0 = 796) ) AS tab1_906
----
96 values hashing to 7cb25a46d9cd9ea63d9e5e4be0c3d0a1

query I rowsort label-3500-3
SELECT * FROM view_3_tab1_906
----
96 values hashing to 7cb25a46d9cd9ea63d9e5e4be0c3d0a1

query I rowsort label-3500-3
SELECT pk FROM tab1 WHERE col0 < 91 OR ((col3 = 449 OR col0 > 722 AND col0 > 678 AND col3 < 348 AND ((col4 IS NULL AND col3 IN (168)) OR col0 > 39 AND col3 > 415 AND col1 < 801.9) OR (col0 = 108 OR col4 > 688.21 OR (col3 <= 723)) OR col4 >= 97.41) OR col3 > 151 AND col0 = 796)
----
96 values hashing to 7cb25a46d9cd9ea63d9e5e4be0c3d0a1

statement ok
DROP VIEW view_1_tab1_906

statement ok
DROP VIEW view_2_tab1_906

statement ok
DROP VIEW view_3_tab1_906

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_906') DROP VIEW view_1_tab2_906

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_906

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_906') DROP VIEW view_2_tab2_906

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_906

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_906') DROP VIEW view_3_tab2_906

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_906

statement ok
CREATE VIEW view_1_tab2_906 AS SELECT pk, col0 FROM tab2 WHERE col0 < 91 OR ((col3 = 449 OR col0 > 722 AND col0 > 678 AND col3 < 348 AND ((col4 IS NULL AND col3 IN (168)) OR col0 > 39 AND col3 > 415 AND col1 < 801.9) OR (col0 = 108 OR col4 > 688.21 OR (col3 <= 723)) OR col4 >= 97.41) OR col3 > 151 AND col0 = 796)

statement ok
CREATE VIEW view_2_tab2_906 AS SELECT pk, col0 FROM tab2 WHERE NOT (col0 < 91 OR ((col3 = 449 OR col0 > 722 AND col0 > 678 AND col3 < 348 AND ((col4 IS NULL AND col3 IN (168)) OR col0 > 39 AND col3 > 415 AND col1 < 801.9) OR (col0 = 108 OR col4 > 688.21 OR (col3 <= 723)) OR col4 >= 97.41) OR col3 > 151 AND col0 = 796))

statement ok
CREATE VIEW view_3_tab2_906 AS SELECT pk FROM view_1_tab2_906

query II rowsort label-3500-1
SELECT pk, col0 FROM tab2 WHERE col0 < 91 OR ((col3 = 449 OR col0 > 722 AND col0 > 678 AND col3 < 348 AND ((col4 IS NULL AND col3 IN (168)) OR col0 > 39 AND col3 > 415 AND col1 < 801.9) OR (col0 = 108 OR col4 > 688.21 OR (col3 <= 723)) OR col4 >= 97.41) OR col3 > 151 AND col0 = 796)
----
192 values hashing to b411218837b2754822bfc4b32e3f593a

query II rowsort label-3500-2
SELECT pk, col0 FROM tab2 WHERE NOT (col0 < 91 OR ((col3 = 449 OR col0 > 722 AND col0 > 678 AND col3 < 348 AND ((col4 IS NULL AND col3 IN (168)) OR col0 > 39 AND col3 > 415 AND col1 < 801.9) OR (col0 = 108 OR col4 > 688.21 OR (col3 <= 723)) OR col4 >= 97.41) OR col3 > 151 AND col0 = 796))
----
19
523
64
915
8
635
94
429

query II rowsort label-3500-1
SELECT pk, col0 FROM view_1_tab2_906
----
192 values hashing to b411218837b2754822bfc4b32e3f593a

query II rowsort label-3500-2
SELECT pk, col0 FROM view_2_tab2_906
----
19
523
64
915
8
635
94
429

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col0 < 91 OR ((col3 = 449 OR col0 > 722 AND col0 > 678 AND col3 < 348 AND ((col4 IS NULL AND col3 IN (168)) OR col0 > 39 AND col3 > 415 AND col1 < 801.9) OR (col0 = 108 OR col4 > 688.21 OR (col3 <= 723)) OR col4 >= 97.41) OR col3 > 151 AND col0 = 796) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col0 < 91 OR ((col3 = 449 OR col0 > 722 AND col0 > 678 AND col3 < 348 AND ((col4 IS NULL AND col3 IN (168)) OR col0 > 39 AND col3 > 415 AND col1 < 801.9) OR (col0 = 108 OR col4 > 688.21 OR (col3 <= 723)) OR col4 >= 97.41) OR col3 > 151 AND col0 = 796))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_906 UNION ALL SELECT pk, col0 FROM view_2_tab2_906
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col0 < 91 OR ((col3 = 449 OR col0 > 722 AND col0 > 678 AND col3 < 348 AND ((col4 IS NULL AND col3 IN (168)) OR col0 > 39 AND col3 > 415 AND col1 < 801.9) OR (col0 = 108 OR col4 > 688.21 OR (col3 <= 723)) OR col4 >= 97.41) OR col3 > 151 AND col0 = 796) UNION SELECT pk, col0 FROM tab2 WHERE NOT (col0 < 91 OR ((col3 = 449 OR col0 > 722 AND col0 > 678 AND col3 < 348 AND ((col4 IS NULL AND col3 IN (168)) OR col0 > 39 AND col3 > 415 AND col1 < 801.9) OR (col0 = 108 OR col4 > 688.21 OR (col3 <= 723)) OR col4 >= 97.41) OR col3 > 151 AND col0 = 796))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_906 UNION SELECT pk, col0 FROM view_2_tab2_906
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-3500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col0 < 91 OR ((col3 = 449 OR col0 > 722 AND col0 > 678 AND col3 < 348 AND ((col4 IS NULL AND col3 IN (168)) OR col0 > 39 AND col3 > 415 AND col1 < 801.9) OR (col0 = 108 OR col4 > 688.21 OR (col3 <= 723)) OR col4 >= 97.41) OR col3 > 151 AND col0 = 796) ) AS tab2_906
----
96 values hashing to 7cb25a46d9cd9ea63d9e5e4be0c3d0a1

query I rowsort label-3500-3
SELECT * FROM view_3_tab2_906
----
96 values hashing to 7cb25a46d9cd9ea63d9e5e4be0c3d0a1

query I rowsort label-3500-3
SELECT pk FROM tab2 WHERE col0 < 91 OR ((col3 = 449 OR col0 > 722 AND col0 > 678 AND col3 < 348 AND ((col4 IS NULL AND col3 IN (168)) OR col0 > 39 AND col3 > 415 AND col1 < 801.9) OR (col0 = 108 OR col4 > 688.21 OR (col3 <= 723)) OR col4 >= 97.41) OR col3 > 151 AND col0 = 796)
----
96 values hashing to 7cb25a46d9cd9ea63d9e5e4be0c3d0a1

statement ok
DROP VIEW view_1_tab2_906

statement ok
DROP VIEW view_2_tab2_906

statement ok
DROP VIEW view_3_tab2_906

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_906') DROP VIEW view_1_tab3_906

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_906

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_906') DROP VIEW view_2_tab3_906

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_906

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_906') DROP VIEW view_3_tab3_906

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_906

statement ok
CREATE VIEW view_1_tab3_906 AS SELECT pk, col0 FROM tab3 WHERE col0 < 91 OR ((col3 = 449 OR col0 > 722 AND col0 > 678 AND col3 < 348 AND ((col4 IS NULL AND col3 IN (168)) OR col0 > 39 AND col3 > 415 AND col1 < 801.9) OR (col0 = 108 OR col4 > 688.21 OR (col3 <= 723)) OR col4 >= 97.41) OR col3 > 151 AND col0 = 796)

statement ok
CREATE VIEW view_2_tab3_906 AS SELECT pk, col0 FROM tab3 WHERE NOT (col0 < 91 OR ((col3 = 449 OR col0 > 722 AND col0 > 678 AND col3 < 348 AND ((col4 IS NULL AND col3 IN (168)) OR col0 > 39 AND col3 > 415 AND col1 < 801.9) OR (col0 = 108 OR col4 > 688.21 OR (col3 <= 723)) OR col4 >= 97.41) OR col3 > 151 AND col0 = 796))

statement ok
CREATE VIEW view_3_tab3_906 AS SELECT pk FROM view_1_tab3_906

query II rowsort label-3500-1
SELECT pk, col0 FROM tab3 WHERE col0 < 91 OR ((col3 = 449 OR col0 > 722 AND col0 > 678 AND col3 < 348 AND ((col4 IS NULL AND col3 IN (168)) OR col0 > 39 AND col3 > 415 AND col1 < 801.9) OR (col0 = 108 OR col4 > 688.21 OR (col3 <= 723)) OR col4 >= 97.41) OR col3 > 151 AND col0 = 796)
----
192 values hashing to b411218837b2754822bfc4b32e3f593a

query II rowsort label-3500-2
SELECT pk, col0 FROM tab3 WHERE NOT (col0 < 91 OR ((col3 = 449 OR col0 > 722 AND col0 > 678 AND col3 < 348 AND ((col4 IS NULL AND col3 IN (168)) OR col0 > 39 AND col3 > 415 AND col1 < 801.9) OR (col0 = 108 OR col4 > 688.21 OR (col3 <= 723)) OR col4 >= 97.41) OR col3 > 151 AND col0 = 796))
----
19
523
64
915
8
635
94
429

query II rowsort label-3500-1
SELECT pk, col0 FROM view_1_tab3_906
----
192 values hashing to b411218837b2754822bfc4b32e3f593a

query II rowsort label-3500-2
SELECT pk, col0 FROM view_2_tab3_906
----
19
523
64
915
8
635
94
429

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col0 < 91 OR ((col3 = 449 OR col0 > 722 AND col0 > 678 AND col3 < 348 AND ((col4 IS NULL AND col3 IN (168)) OR col0 > 39 AND col3 > 415 AND col1 < 801.9) OR (col0 = 108 OR col4 > 688.21 OR (col3 <= 723)) OR col4 >= 97.41) OR col3 > 151 AND col0 = 796) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col0 < 91 OR ((col3 = 449 OR col0 > 722 AND col0 > 678 AND col3 < 348 AND ((col4 IS NULL AND col3 IN (168)) OR col0 > 39 AND col3 > 415 AND col1 < 801.9) OR (col0 = 108 OR col4 > 688.21 OR (col3 <= 723)) OR col4 >= 97.41) OR col3 > 151 AND col0 = 796))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_906 UNION ALL SELECT pk, col0 FROM view_2_tab3_906
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col0 < 91 OR ((col3 = 449 OR col0 > 722 AND col0 > 678 AND col3 < 348 AND ((col4 IS NULL AND col3 IN (168)) OR col0 > 39 AND col3 > 415 AND col1 < 801.9) OR (col0 = 108 OR col4 > 688.21 OR (col3 <= 723)) OR col4 >= 97.41) OR col3 > 151 AND col0 = 796) UNION SELECT pk, col0 FROM tab3 WHERE NOT (col0 < 91 OR ((col3 = 449 OR col0 > 722 AND col0 > 678 AND col3 < 348 AND ((col4 IS NULL AND col3 IN (168)) OR col0 > 39 AND col3 > 415 AND col1 < 801.9) OR (col0 = 108 OR col4 > 688.21 OR (col3 <= 723)) OR col4 >= 97.41) OR col3 > 151 AND col0 = 796))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_906 UNION SELECT pk, col0 FROM view_2_tab3_906
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-3500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col0 < 91 OR ((col3 = 449 OR col0 > 722 AND col0 > 678 AND col3 < 348 AND ((col4 IS NULL AND col3 IN (168)) OR col0 > 39 AND col3 > 415 AND col1 < 801.9) OR (col0 = 108 OR col4 > 688.21 OR (col3 <= 723)) OR col4 >= 97.41) OR col3 > 151 AND col0 = 796) ) AS tab3_906
----
96 values hashing to 7cb25a46d9cd9ea63d9e5e4be0c3d0a1

query I rowsort label-3500-3
SELECT * FROM view_3_tab3_906
----
96 values hashing to 7cb25a46d9cd9ea63d9e5e4be0c3d0a1

query I rowsort label-3500-3
SELECT pk FROM tab3 WHERE col0 < 91 OR ((col3 = 449 OR col0 > 722 AND col0 > 678 AND col3 < 348 AND ((col4 IS NULL AND col3 IN (168)) OR col0 > 39 AND col3 > 415 AND col1 < 801.9) OR (col0 = 108 OR col4 > 688.21 OR (col3 <= 723)) OR col4 >= 97.41) OR col3 > 151 AND col0 = 796)
----
96 values hashing to 7cb25a46d9cd9ea63d9e5e4be0c3d0a1

statement ok
DROP VIEW view_1_tab3_906

statement ok
DROP VIEW view_2_tab3_906

statement ok
DROP VIEW view_3_tab3_906

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_906') DROP VIEW view_1_tab4_906

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_906

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_906') DROP VIEW view_2_tab4_906

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_906

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_906') DROP VIEW view_3_tab4_906

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_906

statement ok
CREATE VIEW view_1_tab4_906 AS SELECT pk, col0 FROM tab4 WHERE col0 < 91 OR ((col3 = 449 OR col0 > 722 AND col0 > 678 AND col3 < 348 AND ((col4 IS NULL AND col3 IN (168)) OR col0 > 39 AND col3 > 415 AND col1 < 801.9) OR (col0 = 108 OR col4 > 688.21 OR (col3 <= 723)) OR col4 >= 97.41) OR col3 > 151 AND col0 = 796)

statement ok
CREATE VIEW view_2_tab4_906 AS SELECT pk, col0 FROM tab4 WHERE NOT (col0 < 91 OR ((col3 = 449 OR col0 > 722 AND col0 > 678 AND col3 < 348 AND ((col4 IS NULL AND col3 IN (168)) OR col0 > 39 AND col3 > 415 AND col1 < 801.9) OR (col0 = 108 OR col4 > 688.21 OR (col3 <= 723)) OR col4 >= 97.41) OR col3 > 151 AND col0 = 796))

statement ok
CREATE VIEW view_3_tab4_906 AS SELECT pk FROM view_1_tab4_906

query II rowsort label-3500-1
SELECT pk, col0 FROM tab4 WHERE col0 < 91 OR ((col3 = 449 OR col0 > 722 AND col0 > 678 AND col3 < 348 AND ((col4 IS NULL AND col3 IN (168)) OR col0 > 39 AND col3 > 415 AND col1 < 801.9) OR (col0 = 108 OR col4 > 688.21 OR (col3 <= 723)) OR col4 >= 97.41) OR col3 > 151 AND col0 = 796)
----
192 values hashing to b411218837b2754822bfc4b32e3f593a

query II rowsort label-3500-2
SELECT pk, col0 FROM tab4 WHERE NOT (col0 < 91 OR ((col3 = 449 OR col0 > 722 AND col0 > 678 AND col3 < 348 AND ((col4 IS NULL AND col3 IN (168)) OR col0 > 39 AND col3 > 415 AND col1 < 801.9) OR (col0 = 108 OR col4 > 688.21 OR (col3 <= 723)) OR col4 >= 97.41) OR col3 > 151 AND col0 = 796))
----
19
523
64
915
8
635
94
429

query II rowsort label-3500-1
SELECT pk, col0 FROM view_1_tab4_906
----
192 values hashing to b411218837b2754822bfc4b32e3f593a

query II rowsort label-3500-2
SELECT pk, col0 FROM view_2_tab4_906
----
19
523
64
915
8
635
94
429

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col0 < 91 OR ((col3 = 449 OR col0 > 722 AND col0 > 678 AND col3 < 348 AND ((col4 IS NULL AND col3 IN (168)) OR col0 > 39 AND col3 > 415 AND col1 < 801.9) OR (col0 = 108 OR col4 > 688.21 OR (col3 <= 723)) OR col4 >= 97.41) OR col3 > 151 AND col0 = 796) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col0 < 91 OR ((col3 = 449 OR col0 > 722 AND col0 > 678 AND col3 < 348 AND ((col4 IS NULL AND col3 IN (168)) OR col0 > 39 AND col3 > 415 AND col1 < 801.9) OR (col0 = 108 OR col4 > 688.21 OR (col3 <= 723)) OR col4 >= 97.41) OR col3 > 151 AND col0 = 796))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_906 UNION ALL SELECT pk, col0 FROM view_2_tab4_906
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col0 < 91 OR ((col3 = 449 OR col0 > 722 AND col0 > 678 AND col3 < 348 AND ((col4 IS NULL AND col3 IN (168)) OR col0 > 39 AND col3 > 415 AND col1 < 801.9) OR (col0 = 108 OR col4 > 688.21 OR (col3 <= 723)) OR col4 >= 97.41) OR col3 > 151 AND col0 = 796) UNION SELECT pk, col0 FROM tab4 WHERE NOT (col0 < 91 OR ((col3 = 449 OR col0 > 722 AND col0 > 678 AND col3 < 348 AND ((col4 IS NULL AND col3 IN (168)) OR col0 > 39 AND col3 > 415 AND col1 < 801.9) OR (col0 = 108 OR col4 > 688.21 OR (col3 <= 723)) OR col4 >= 97.41) OR col3 > 151 AND col0 = 796))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_906 UNION SELECT pk, col0 FROM view_2_tab4_906
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-3500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col0 < 91 OR ((col3 = 449 OR col0 > 722 AND col0 > 678 AND col3 < 348 AND ((col4 IS NULL AND col3 IN (168)) OR col0 > 39 AND col3 > 415 AND col1 < 801.9) OR (col0 = 108 OR col4 > 688.21 OR (col3 <= 723)) OR col4 >= 97.41) OR col3 > 151 AND col0 = 796) ) AS tab4_906
----
96 values hashing to 7cb25a46d9cd9ea63d9e5e4be0c3d0a1

query I rowsort label-3500-3
SELECT * FROM view_3_tab4_906
----
96 values hashing to 7cb25a46d9cd9ea63d9e5e4be0c3d0a1

query I rowsort label-3500-3
SELECT pk FROM tab4 WHERE col0 < 91 OR ((col3 = 449 OR col0 > 722 AND col0 > 678 AND col3 < 348 AND ((col4 IS NULL AND col3 IN (168)) OR col0 > 39 AND col3 > 415 AND col1 < 801.9) OR (col0 = 108 OR col4 > 688.21 OR (col3 <= 723)) OR col4 >= 97.41) OR col3 > 151 AND col0 = 796)
----
96 values hashing to 7cb25a46d9cd9ea63d9e5e4be0c3d0a1

statement ok
DROP VIEW view_1_tab4_906

statement ok
DROP VIEW view_2_tab4_906

statement ok
DROP VIEW view_3_tab4_906

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_907') DROP VIEW view_1_tab0_907

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_907

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_907') DROP VIEW view_2_tab0_907

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_907

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_907') DROP VIEW view_3_tab0_907

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_907

statement ok
CREATE VIEW view_1_tab0_907 AS SELECT pk, col0 FROM tab0 WHERE col0 >= 79

statement ok
CREATE VIEW view_2_tab0_907 AS SELECT pk, col0 FROM tab0 WHERE NOT (col0 >= 79)

statement ok
CREATE VIEW view_3_tab0_907 AS SELECT pk FROM view_1_tab0_907

query II rowsort label-3600-1
SELECT pk, col0 FROM tab0 WHERE col0 >= 79
----
192 values hashing to 87671f9a6a8b41e49c72d5c5dee8500e

query II rowsort label-3600-2
SELECT pk, col0 FROM tab0 WHERE NOT (col0 >= 79)
----
28
0
44
8
50
59
58
55

query II rowsort label-3600-1
SELECT pk, col0 FROM view_1_tab0_907
----
192 values hashing to 87671f9a6a8b41e49c72d5c5dee8500e

query II rowsort label-3600-2
SELECT pk, col0 FROM view_2_tab0_907
----
28
0
44
8
50
59
58
55

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col0 >= 79 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col0 >= 79)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_907 UNION ALL SELECT pk, col0 FROM view_2_tab0_907
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col0 >= 79 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col0 >= 79)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_907 UNION SELECT pk, col0 FROM view_2_tab0_907
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-3600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col0 >= 79 ) AS tab0_907
----
96 values hashing to 8cf2530cac5029692c8a0b3655d5bd6a

query I rowsort label-3600-3
SELECT * FROM view_3_tab0_907
----
96 values hashing to 8cf2530cac5029692c8a0b3655d5bd6a

query I rowsort label-3600-3
SELECT pk FROM tab0 WHERE col0 >= 79
----
96 values hashing to 8cf2530cac5029692c8a0b3655d5bd6a

statement ok
DROP VIEW view_1_tab0_907

statement ok
DROP VIEW view_2_tab0_907

statement ok
DROP VIEW view_3_tab0_907

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_907') DROP VIEW view_1_tab1_907

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_907

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_907') DROP VIEW view_2_tab1_907

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_907

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_907') DROP VIEW view_3_tab1_907

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_907

statement ok
CREATE VIEW view_1_tab1_907 AS SELECT pk, col0 FROM tab1 WHERE col0 >= 79

statement ok
CREATE VIEW view_2_tab1_907 AS SELECT pk, col0 FROM tab1 WHERE NOT (col0 >= 79)

statement ok
CREATE VIEW view_3_tab1_907 AS SELECT pk FROM view_1_tab1_907

query II rowsort label-3600-1
SELECT pk, col0 FROM tab1 WHERE col0 >= 79
----
192 values hashing to 87671f9a6a8b41e49c72d5c5dee8500e

query II rowsort label-3600-2
SELECT pk, col0 FROM tab1 WHERE NOT (col0 >= 79)
----
28
0
44
8
50
59
58
55

query II rowsort label-3600-1
SELECT pk, col0 FROM view_1_tab1_907
----
192 values hashing to 87671f9a6a8b41e49c72d5c5dee8500e

query II rowsort label-3600-2
SELECT pk, col0 FROM view_2_tab1_907
----
28
0
44
8
50
59
58
55

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col0 >= 79 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col0 >= 79)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_907 UNION ALL SELECT pk, col0 FROM view_2_tab1_907
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col0 >= 79 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col0 >= 79)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_907 UNION SELECT pk, col0 FROM view_2_tab1_907
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-3600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col0 >= 79 ) AS tab1_907
----
96 values hashing to 8cf2530cac5029692c8a0b3655d5bd6a

query I rowsort label-3600-3
SELECT * FROM view_3_tab1_907
----
96 values hashing to 8cf2530cac5029692c8a0b3655d5bd6a

query I rowsort label-3600-3
SELECT pk FROM tab1 WHERE col0 >= 79
----
96 values hashing to 8cf2530cac5029692c8a0b3655d5bd6a

statement ok
DROP VIEW view_1_tab1_907

statement ok
DROP VIEW view_2_tab1_907

statement ok
DROP VIEW view_3_tab1_907

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_907') DROP VIEW view_1_tab2_907

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_907

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_907') DROP VIEW view_2_tab2_907

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_907

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_907') DROP VIEW view_3_tab2_907

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_907

statement ok
CREATE VIEW view_1_tab2_907 AS SELECT pk, col0 FROM tab2 WHERE col0 >= 79

statement ok
CREATE VIEW view_2_tab2_907 AS SELECT pk, col0 FROM tab2 WHERE NOT (col0 >= 79)

statement ok
CREATE VIEW view_3_tab2_907 AS SELECT pk FROM view_1_tab2_907

query II rowsort label-3600-1
SELECT pk, col0 FROM tab2 WHERE col0 >= 79
----
192 values hashing to 87671f9a6a8b41e49c72d5c5dee8500e

query II rowsort label-3600-2
SELECT pk, col0 FROM tab2 WHERE NOT (col0 >= 79)
----
28
0
44
8
50
59
58
55

query II rowsort label-3600-1
SELECT pk, col0 FROM view_1_tab2_907
----
192 values hashing to 87671f9a6a8b41e49c72d5c5dee8500e

query II rowsort label-3600-2
SELECT pk, col0 FROM view_2_tab2_907
----
28
0
44
8
50
59
58
55

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col0 >= 79 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col0 >= 79)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_907 UNION ALL SELECT pk, col0 FROM view_2_tab2_907
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col0 >= 79 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col0 >= 79)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_907 UNION SELECT pk, col0 FROM view_2_tab2_907
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-3600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col0 >= 79 ) AS tab2_907
----
96 values hashing to 8cf2530cac5029692c8a0b3655d5bd6a

query I rowsort label-3600-3
SELECT * FROM view_3_tab2_907
----
96 values hashing to 8cf2530cac5029692c8a0b3655d5bd6a

query I rowsort label-3600-3
SELECT pk FROM tab2 WHERE col0 >= 79
----
96 values hashing to 8cf2530cac5029692c8a0b3655d5bd6a

statement ok
DROP VIEW view_1_tab2_907

statement ok
DROP VIEW view_2_tab2_907

statement ok
DROP VIEW view_3_tab2_907

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_907') DROP VIEW view_1_tab3_907

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_907

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_907') DROP VIEW view_2_tab3_907

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_907

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_907') DROP VIEW view_3_tab3_907

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_907

statement ok
CREATE VIEW view_1_tab3_907 AS SELECT pk, col0 FROM tab3 WHERE col0 >= 79

statement ok
CREATE VIEW view_2_tab3_907 AS SELECT pk, col0 FROM tab3 WHERE NOT (col0 >= 79)

statement ok
CREATE VIEW view_3_tab3_907 AS SELECT pk FROM view_1_tab3_907

query II rowsort label-3600-1
SELECT pk, col0 FROM tab3 WHERE col0 >= 79
----
192 values hashing to 87671f9a6a8b41e49c72d5c5dee8500e

query II rowsort label-3600-2
SELECT pk, col0 FROM tab3 WHERE NOT (col0 >= 79)
----
28
0
44
8
50
59
58
55

query II rowsort label-3600-1
SELECT pk, col0 FROM view_1_tab3_907
----
192 values hashing to 87671f9a6a8b41e49c72d5c5dee8500e

query II rowsort label-3600-2
SELECT pk, col0 FROM view_2_tab3_907
----
28
0
44
8
50
59
58
55

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col0 >= 79 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col0 >= 79)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_907 UNION ALL SELECT pk, col0 FROM view_2_tab3_907
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col0 >= 79 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col0 >= 79)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_907 UNION SELECT pk, col0 FROM view_2_tab3_907
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-3600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col0 >= 79 ) AS tab3_907
----
96 values hashing to 8cf2530cac5029692c8a0b3655d5bd6a

query I rowsort label-3600-3
SELECT * FROM view_3_tab3_907
----
96 values hashing to 8cf2530cac5029692c8a0b3655d5bd6a

query I rowsort label-3600-3
SELECT pk FROM tab3 WHERE col0 >= 79
----
96 values hashing to 8cf2530cac5029692c8a0b3655d5bd6a

statement ok
DROP VIEW view_1_tab3_907

statement ok
DROP VIEW view_2_tab3_907

statement ok
DROP VIEW view_3_tab3_907

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_907') DROP VIEW view_1_tab4_907

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_907

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_907') DROP VIEW view_2_tab4_907

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_907

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_907') DROP VIEW view_3_tab4_907

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_907

statement ok
CREATE VIEW view_1_tab4_907 AS SELECT pk, col0 FROM tab4 WHERE col0 >= 79

statement ok
CREATE VIEW view_2_tab4_907 AS SELECT pk, col0 FROM tab4 WHERE NOT (col0 >= 79)

statement ok
CREATE VIEW view_3_tab4_907 AS SELECT pk FROM view_1_tab4_907

query II rowsort label-3600-1
SELECT pk, col0 FROM tab4 WHERE col0 >= 79
----
192 values hashing to 87671f9a6a8b41e49c72d5c5dee8500e

query II rowsort label-3600-2
SELECT pk, col0 FROM tab4 WHERE NOT (col0 >= 79)
----
28
0
44
8
50
59
58
55

query II rowsort label-3600-1
SELECT pk, col0 FROM view_1_tab4_907
----
192 values hashing to 87671f9a6a8b41e49c72d5c5dee8500e

query II rowsort label-3600-2
SELECT pk, col0 FROM view_2_tab4_907
----
28
0
44
8
50
59
58
55

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col0 >= 79 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col0 >= 79)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_907 UNION ALL SELECT pk, col0 FROM view_2_tab4_907
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col0 >= 79 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col0 >= 79)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_907 UNION SELECT pk, col0 FROM view_2_tab4_907
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-3600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col0 >= 79 ) AS tab4_907
----
96 values hashing to 8cf2530cac5029692c8a0b3655d5bd6a

query I rowsort label-3600-3
SELECT * FROM view_3_tab4_907
----
96 values hashing to 8cf2530cac5029692c8a0b3655d5bd6a

query I rowsort label-3600-3
SELECT pk FROM tab4 WHERE col0 >= 79
----
96 values hashing to 8cf2530cac5029692c8a0b3655d5bd6a

statement ok
DROP VIEW view_1_tab4_907

statement ok
DROP VIEW view_2_tab4_907

statement ok
DROP VIEW view_3_tab4_907

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_908') DROP VIEW view_1_tab0_908

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_908

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_908') DROP VIEW view_2_tab0_908

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_908

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_908') DROP VIEW view_3_tab0_908

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_908

statement ok
CREATE VIEW view_1_tab0_908 AS SELECT pk, col0 FROM tab0 WHERE col4 >= 834.24

statement ok
CREATE VIEW view_2_tab0_908 AS SELECT pk, col0 FROM tab0 WHERE NOT (col4 >= 834.24)

statement ok
CREATE VIEW view_3_tab0_908 AS SELECT pk FROM view_1_tab0_908

query II rowsort label-3700-1
SELECT pk, col0 FROM tab0 WHERE col4 >= 834.24
----
28 values hashing to 5fd050328ceda95d851637849e32c07e

query II rowsort label-3700-2
SELECT pk, col0 FROM tab0 WHERE NOT (col4 >= 834.24)
----
172 values hashing to 05cb028760d8184a278d1a9b4fc5c62b

query II rowsort label-3700-1
SELECT pk, col0 FROM view_1_tab0_908
----
28 values hashing to 5fd050328ceda95d851637849e32c07e

query II rowsort label-3700-2
SELECT pk, col0 FROM view_2_tab0_908
----
172 values hashing to 05cb028760d8184a278d1a9b4fc5c62b

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col4 >= 834.24 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col4 >= 834.24)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_908 UNION ALL SELECT pk, col0 FROM view_2_tab0_908
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col4 >= 834.24 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col4 >= 834.24)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_908 UNION SELECT pk, col0 FROM view_2_tab0_908
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-3700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col4 >= 834.24 ) AS tab0_908
----
14 values hashing to 12a0617e7b5113d8566c906144c40c14

query I rowsort label-3700-3
SELECT * FROM view_3_tab0_908
----
14 values hashing to 12a0617e7b5113d8566c906144c40c14

query I rowsort label-3700-3
SELECT pk FROM tab0 WHERE col4 >= 834.24
----
14 values hashing to 12a0617e7b5113d8566c906144c40c14

statement ok
DROP VIEW view_1_tab0_908

statement ok
DROP VIEW view_2_tab0_908

statement ok
DROP VIEW view_3_tab0_908

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_908') DROP VIEW view_1_tab1_908

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_908

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_908') DROP VIEW view_2_tab1_908

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_908

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_908') DROP VIEW view_3_tab1_908

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_908

statement ok
CREATE VIEW view_1_tab1_908 AS SELECT pk, col0 FROM tab1 WHERE col4 >= 834.24

statement ok
CREATE VIEW view_2_tab1_908 AS SELECT pk, col0 FROM tab1 WHERE NOT (col4 >= 834.24)

statement ok
CREATE VIEW view_3_tab1_908 AS SELECT pk FROM view_1_tab1_908

query II rowsort label-3700-1
SELECT pk, col0 FROM tab1 WHERE col4 >= 834.24
----
28 values hashing to 5fd050328ceda95d851637849e32c07e

query II rowsort label-3700-2
SELECT pk, col0 FROM tab1 WHERE NOT (col4 >= 834.24)
----
172 values hashing to 05cb028760d8184a278d1a9b4fc5c62b

query II rowsort label-3700-1
SELECT pk, col0 FROM view_1_tab1_908
----
28 values hashing to 5fd050328ceda95d851637849e32c07e

query II rowsort label-3700-2
SELECT pk, col0 FROM view_2_tab1_908
----
172 values hashing to 05cb028760d8184a278d1a9b4fc5c62b

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col4 >= 834.24 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col4 >= 834.24)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_908 UNION ALL SELECT pk, col0 FROM view_2_tab1_908
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col4 >= 834.24 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col4 >= 834.24)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_908 UNION SELECT pk, col0 FROM view_2_tab1_908
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-3700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col4 >= 834.24 ) AS tab1_908
----
14 values hashing to 12a0617e7b5113d8566c906144c40c14

query I rowsort label-3700-3
SELECT * FROM view_3_tab1_908
----
14 values hashing to 12a0617e7b5113d8566c906144c40c14

query I rowsort label-3700-3
SELECT pk FROM tab1 WHERE col4 >= 834.24
----
14 values hashing to 12a0617e7b5113d8566c906144c40c14

statement ok
DROP VIEW view_1_tab1_908

statement ok
DROP VIEW view_2_tab1_908

statement ok
DROP VIEW view_3_tab1_908

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_908') DROP VIEW view_1_tab2_908

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_908

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_908') DROP VIEW view_2_tab2_908

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_908

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_908') DROP VIEW view_3_tab2_908

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_908

statement ok
CREATE VIEW view_1_tab2_908 AS SELECT pk, col0 FROM tab2 WHERE col4 >= 834.24

statement ok
CREATE VIEW view_2_tab2_908 AS SELECT pk, col0 FROM tab2 WHERE NOT (col4 >= 834.24)

statement ok
CREATE VIEW view_3_tab2_908 AS SELECT pk FROM view_1_tab2_908

query II rowsort label-3700-1
SELECT pk, col0 FROM tab2 WHERE col4 >= 834.24
----
28 values hashing to 5fd050328ceda95d851637849e32c07e

query II rowsort label-3700-2
SELECT pk, col0 FROM tab2 WHERE NOT (col4 >= 834.24)
----
172 values hashing to 05cb028760d8184a278d1a9b4fc5c62b

query II rowsort label-3700-1
SELECT pk, col0 FROM view_1_tab2_908
----
28 values hashing to 5fd050328ceda95d851637849e32c07e

query II rowsort label-3700-2
SELECT pk, col0 FROM view_2_tab2_908
----
172 values hashing to 05cb028760d8184a278d1a9b4fc5c62b

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col4 >= 834.24 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col4 >= 834.24)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_908 UNION ALL SELECT pk, col0 FROM view_2_tab2_908
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col4 >= 834.24 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col4 >= 834.24)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_908 UNION SELECT pk, col0 FROM view_2_tab2_908
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-3700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col4 >= 834.24 ) AS tab2_908
----
14 values hashing to 12a0617e7b5113d8566c906144c40c14

query I rowsort label-3700-3
SELECT * FROM view_3_tab2_908
----
14 values hashing to 12a0617e7b5113d8566c906144c40c14

query I rowsort label-3700-3
SELECT pk FROM tab2 WHERE col4 >= 834.24
----
14 values hashing to 12a0617e7b5113d8566c906144c40c14

statement ok
DROP VIEW view_1_tab2_908

statement ok
DROP VIEW view_2_tab2_908

statement ok
DROP VIEW view_3_tab2_908

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_908') DROP VIEW view_1_tab3_908

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_908

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_908') DROP VIEW view_2_tab3_908

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_908

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_908') DROP VIEW view_3_tab3_908

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_908

statement ok
CREATE VIEW view_1_tab3_908 AS SELECT pk, col0 FROM tab3 WHERE col4 >= 834.24

statement ok
CREATE VIEW view_2_tab3_908 AS SELECT pk, col0 FROM tab3 WHERE NOT (col4 >= 834.24)

statement ok
CREATE VIEW view_3_tab3_908 AS SELECT pk FROM view_1_tab3_908

query II rowsort label-3700-1
SELECT pk, col0 FROM tab3 WHERE col4 >= 834.24
----
28 values hashing to 5fd050328ceda95d851637849e32c07e

query II rowsort label-3700-2
SELECT pk, col0 FROM tab3 WHERE NOT (col4 >= 834.24)
----
172 values hashing to 05cb028760d8184a278d1a9b4fc5c62b

query II rowsort label-3700-1
SELECT pk, col0 FROM view_1_tab3_908
----
28 values hashing to 5fd050328ceda95d851637849e32c07e

query II rowsort label-3700-2
SELECT pk, col0 FROM view_2_tab3_908
----
172 values hashing to 05cb028760d8184a278d1a9b4fc5c62b

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col4 >= 834.24 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col4 >= 834.24)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_908 UNION ALL SELECT pk, col0 FROM view_2_tab3_908
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col4 >= 834.24 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col4 >= 834.24)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_908 UNION SELECT pk, col0 FROM view_2_tab3_908
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-3700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col4 >= 834.24 ) AS tab3_908
----
14 values hashing to 12a0617e7b5113d8566c906144c40c14

query I rowsort label-3700-3
SELECT * FROM view_3_tab3_908
----
14 values hashing to 12a0617e7b5113d8566c906144c40c14

query I rowsort label-3700-3
SELECT pk FROM tab3 WHERE col4 >= 834.24
----
14 values hashing to 12a0617e7b5113d8566c906144c40c14

statement ok
DROP VIEW view_1_tab3_908

statement ok
DROP VIEW view_2_tab3_908

statement ok
DROP VIEW view_3_tab3_908

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_908') DROP VIEW view_1_tab4_908

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_908

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_908') DROP VIEW view_2_tab4_908

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_908

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_908') DROP VIEW view_3_tab4_908

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_908

statement ok
CREATE VIEW view_1_tab4_908 AS SELECT pk, col0 FROM tab4 WHERE col4 >= 834.24

statement ok
CREATE VIEW view_2_tab4_908 AS SELECT pk, col0 FROM tab4 WHERE NOT (col4 >= 834.24)

statement ok
CREATE VIEW view_3_tab4_908 AS SELECT pk FROM view_1_tab4_908

query II rowsort label-3700-1
SELECT pk, col0 FROM tab4 WHERE col4 >= 834.24
----
28 values hashing to 5fd050328ceda95d851637849e32c07e

query II rowsort label-3700-2
SELECT pk, col0 FROM tab4 WHERE NOT (col4 >= 834.24)
----
172 values hashing to 05cb028760d8184a278d1a9b4fc5c62b

query II rowsort label-3700-1
SELECT pk, col0 FROM view_1_tab4_908
----
28 values hashing to 5fd050328ceda95d851637849e32c07e

query II rowsort label-3700-2
SELECT pk, col0 FROM view_2_tab4_908
----
172 values hashing to 05cb028760d8184a278d1a9b4fc5c62b

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col4 >= 834.24 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col4 >= 834.24)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_908 UNION ALL SELECT pk, col0 FROM view_2_tab4_908
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col4 >= 834.24 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col4 >= 834.24)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_908 UNION SELECT pk, col0 FROM view_2_tab4_908
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-3700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col4 >= 834.24 ) AS tab4_908
----
14 values hashing to 12a0617e7b5113d8566c906144c40c14

query I rowsort label-3700-3
SELECT * FROM view_3_tab4_908
----
14 values hashing to 12a0617e7b5113d8566c906144c40c14

query I rowsort label-3700-3
SELECT pk FROM tab4 WHERE col4 >= 834.24
----
14 values hashing to 12a0617e7b5113d8566c906144c40c14

statement ok
DROP VIEW view_1_tab4_908

statement ok
DROP VIEW view_2_tab4_908

statement ok
DROP VIEW view_3_tab4_908

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_909') DROP VIEW view_1_tab0_909

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_909

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_909') DROP VIEW view_2_tab0_909

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_909

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_909') DROP VIEW view_3_tab0_909

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_909

statement ok
CREATE VIEW view_1_tab0_909 AS SELECT pk, col0 FROM tab0 WHERE col1 > 493.44

statement ok
CREATE VIEW view_2_tab0_909 AS SELECT pk, col0 FROM tab0 WHERE NOT (col1 > 493.44)

statement ok
CREATE VIEW view_3_tab0_909 AS SELECT pk FROM view_1_tab0_909

query II rowsort label-3800-1
SELECT pk, col0 FROM tab0 WHERE col1 > 493.44
----
104 values hashing to e7d2b08075ed951889fa8a61b9915536

query II rowsort label-3800-2
SELECT pk, col0 FROM tab0 WHERE NOT (col1 > 493.44)
----
96 values hashing to f3e111abf4f5b8a210b4c469fb4610e0

query II rowsort label-3800-1
SELECT pk, col0 FROM view_1_tab0_909
----
104 values hashing to e7d2b08075ed951889fa8a61b9915536

query II rowsort label-3800-2
SELECT pk, col0 FROM view_2_tab0_909
----
96 values hashing to f3e111abf4f5b8a210b4c469fb4610e0

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col1 > 493.44 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col1 > 493.44)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_909 UNION ALL SELECT pk, col0 FROM view_2_tab0_909
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col1 > 493.44 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col1 > 493.44)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_909 UNION SELECT pk, col0 FROM view_2_tab0_909
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-3800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col1 > 493.44 ) AS tab0_909
----
52 values hashing to 8a4cf7cf036b3cfbf8498c2daf925a20

query I rowsort label-3800-3
SELECT * FROM view_3_tab0_909
----
52 values hashing to 8a4cf7cf036b3cfbf8498c2daf925a20

query I rowsort label-3800-3
SELECT pk FROM tab0 WHERE col1 > 493.44
----
52 values hashing to 8a4cf7cf036b3cfbf8498c2daf925a20

statement ok
DROP VIEW view_1_tab0_909

statement ok
DROP VIEW view_2_tab0_909

statement ok
DROP VIEW view_3_tab0_909

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_909') DROP VIEW view_1_tab1_909

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_909

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_909') DROP VIEW view_2_tab1_909

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_909

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_909') DROP VIEW view_3_tab1_909

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_909

statement ok
CREATE VIEW view_1_tab1_909 AS SELECT pk, col0 FROM tab1 WHERE col1 > 493.44

statement ok
CREATE VIEW view_2_tab1_909 AS SELECT pk, col0 FROM tab1 WHERE NOT (col1 > 493.44)

statement ok
CREATE VIEW view_3_tab1_909 AS SELECT pk FROM view_1_tab1_909

query II rowsort label-3800-1
SELECT pk, col0 FROM tab1 WHERE col1 > 493.44
----
104 values hashing to e7d2b08075ed951889fa8a61b9915536

query II rowsort label-3800-2
SELECT pk, col0 FROM tab1 WHERE NOT (col1 > 493.44)
----
96 values hashing to f3e111abf4f5b8a210b4c469fb4610e0

query II rowsort label-3800-1
SELECT pk, col0 FROM view_1_tab1_909
----
104 values hashing to e7d2b08075ed951889fa8a61b9915536

query II rowsort label-3800-2
SELECT pk, col0 FROM view_2_tab1_909
----
96 values hashing to f3e111abf4f5b8a210b4c469fb4610e0

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col1 > 493.44 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col1 > 493.44)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_909 UNION ALL SELECT pk, col0 FROM view_2_tab1_909
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col1 > 493.44 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col1 > 493.44)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_909 UNION SELECT pk, col0 FROM view_2_tab1_909
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-3800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col1 > 493.44 ) AS tab1_909
----
52 values hashing to 8a4cf7cf036b3cfbf8498c2daf925a20

query I rowsort label-3800-3
SELECT * FROM view_3_tab1_909
----
52 values hashing to 8a4cf7cf036b3cfbf8498c2daf925a20

query I rowsort label-3800-3
SELECT pk FROM tab1 WHERE col1 > 493.44
----
52 values hashing to 8a4cf7cf036b3cfbf8498c2daf925a20

statement ok
DROP VIEW view_1_tab1_909

statement ok
DROP VIEW view_2_tab1_909

statement ok
DROP VIEW view_3_tab1_909

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_909') DROP VIEW view_1_tab2_909

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_909

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_909') DROP VIEW view_2_tab2_909

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_909

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_909') DROP VIEW view_3_tab2_909

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_909

statement ok
CREATE VIEW view_1_tab2_909 AS SELECT pk, col0 FROM tab2 WHERE col1 > 493.44

statement ok
CREATE VIEW view_2_tab2_909 AS SELECT pk, col0 FROM tab2 WHERE NOT (col1 > 493.44)

statement ok
CREATE VIEW view_3_tab2_909 AS SELECT pk FROM view_1_tab2_909

query II rowsort label-3800-1
SELECT pk, col0 FROM tab2 WHERE col1 > 493.44
----
104 values hashing to e7d2b08075ed951889fa8a61b9915536

query II rowsort label-3800-2
SELECT pk, col0 FROM tab2 WHERE NOT (col1 > 493.44)
----
96 values hashing to f3e111abf4f5b8a210b4c469fb4610e0

query II rowsort label-3800-1
SELECT pk, col0 FROM view_1_tab2_909
----
104 values hashing to e7d2b08075ed951889fa8a61b9915536

query II rowsort label-3800-2
SELECT pk, col0 FROM view_2_tab2_909
----
96 values hashing to f3e111abf4f5b8a210b4c469fb4610e0

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col1 > 493.44 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col1 > 493.44)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_909 UNION ALL SELECT pk, col0 FROM view_2_tab2_909
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col1 > 493.44 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col1 > 493.44)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_909 UNION SELECT pk, col0 FROM view_2_tab2_909
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-3800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col1 > 493.44 ) AS tab2_909
----
52 values hashing to 8a4cf7cf036b3cfbf8498c2daf925a20

query I rowsort label-3800-3
SELECT * FROM view_3_tab2_909
----
52 values hashing to 8a4cf7cf036b3cfbf8498c2daf925a20

query I rowsort label-3800-3
SELECT pk FROM tab2 WHERE col1 > 493.44
----
52 values hashing to 8a4cf7cf036b3cfbf8498c2daf925a20

statement ok
DROP VIEW view_1_tab2_909

statement ok
DROP VIEW view_2_tab2_909

statement ok
DROP VIEW view_3_tab2_909

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_909') DROP VIEW view_1_tab3_909

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_909

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_909') DROP VIEW view_2_tab3_909

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_909

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_909') DROP VIEW view_3_tab3_909

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_909

statement ok
CREATE VIEW view_1_tab3_909 AS SELECT pk, col0 FROM tab3 WHERE col1 > 493.44

statement ok
CREATE VIEW view_2_tab3_909 AS SELECT pk, col0 FROM tab3 WHERE NOT (col1 > 493.44)

statement ok
CREATE VIEW view_3_tab3_909 AS SELECT pk FROM view_1_tab3_909

query II rowsort label-3800-1
SELECT pk, col0 FROM tab3 WHERE col1 > 493.44
----
104 values hashing to e7d2b08075ed951889fa8a61b9915536

query II rowsort label-3800-2
SELECT pk, col0 FROM tab3 WHERE NOT (col1 > 493.44)
----
96 values hashing to f3e111abf4f5b8a210b4c469fb4610e0

query II rowsort label-3800-1
SELECT pk, col0 FROM view_1_tab3_909
----
104 values hashing to e7d2b08075ed951889fa8a61b9915536

query II rowsort label-3800-2
SELECT pk, col0 FROM view_2_tab3_909
----
96 values hashing to f3e111abf4f5b8a210b4c469fb4610e0

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col1 > 493.44 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col1 > 493.44)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_909 UNION ALL SELECT pk, col0 FROM view_2_tab3_909
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col1 > 493.44 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col1 > 493.44)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_909 UNION SELECT pk, col0 FROM view_2_tab3_909
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-3800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col1 > 493.44 ) AS tab3_909
----
52 values hashing to 8a4cf7cf036b3cfbf8498c2daf925a20

query I rowsort label-3800-3
SELECT * FROM view_3_tab3_909
----
52 values hashing to 8a4cf7cf036b3cfbf8498c2daf925a20

query I rowsort label-3800-3
SELECT pk FROM tab3 WHERE col1 > 493.44
----
52 values hashing to 8a4cf7cf036b3cfbf8498c2daf925a20

statement ok
DROP VIEW view_1_tab3_909

statement ok
DROP VIEW view_2_tab3_909

statement ok
DROP VIEW view_3_tab3_909

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_909') DROP VIEW view_1_tab4_909

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_909

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_909') DROP VIEW view_2_tab4_909

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_909

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_909') DROP VIEW view_3_tab4_909

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_909

statement ok
CREATE VIEW view_1_tab4_909 AS SELECT pk, col0 FROM tab4 WHERE col1 > 493.44

statement ok
CREATE VIEW view_2_tab4_909 AS SELECT pk, col0 FROM tab4 WHERE NOT (col1 > 493.44)

statement ok
CREATE VIEW view_3_tab4_909 AS SELECT pk FROM view_1_tab4_909

query II rowsort label-3800-1
SELECT pk, col0 FROM tab4 WHERE col1 > 493.44
----
104 values hashing to e7d2b08075ed951889fa8a61b9915536

query II rowsort label-3800-2
SELECT pk, col0 FROM tab4 WHERE NOT (col1 > 493.44)
----
96 values hashing to f3e111abf4f5b8a210b4c469fb4610e0

query II rowsort label-3800-1
SELECT pk, col0 FROM view_1_tab4_909
----
104 values hashing to e7d2b08075ed951889fa8a61b9915536

query II rowsort label-3800-2
SELECT pk, col0 FROM view_2_tab4_909
----
96 values hashing to f3e111abf4f5b8a210b4c469fb4610e0

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col1 > 493.44 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col1 > 493.44)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_909 UNION ALL SELECT pk, col0 FROM view_2_tab4_909
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col1 > 493.44 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col1 > 493.44)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_909 UNION SELECT pk, col0 FROM view_2_tab4_909
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-3800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col1 > 493.44 ) AS tab4_909
----
52 values hashing to 8a4cf7cf036b3cfbf8498c2daf925a20

query I rowsort label-3800-3
SELECT * FROM view_3_tab4_909
----
52 values hashing to 8a4cf7cf036b3cfbf8498c2daf925a20

query I rowsort label-3800-3
SELECT pk FROM tab4 WHERE col1 > 493.44
----
52 values hashing to 8a4cf7cf036b3cfbf8498c2daf925a20

statement ok
DROP VIEW view_1_tab4_909

statement ok
DROP VIEW view_2_tab4_909

statement ok
DROP VIEW view_3_tab4_909

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_910') DROP VIEW view_1_tab0_910

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_910

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_910') DROP VIEW view_2_tab0_910

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_910

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_910') DROP VIEW view_3_tab0_910

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_910

statement ok
CREATE VIEW view_1_tab0_910 AS SELECT pk, col0 FROM tab0 WHERE col4 <= 798.35

statement ok
CREATE VIEW view_2_tab0_910 AS SELECT pk, col0 FROM tab0 WHERE NOT (col4 <= 798.35)

statement ok
CREATE VIEW view_3_tab0_910 AS SELECT pk FROM view_1_tab0_910

query II rowsort label-3900-1
SELECT pk, col0 FROM tab0 WHERE col4 <= 798.35
----
166 values hashing to 326d4d49a59c50a664984aff2a2274af

query II rowsort label-3900-2
SELECT pk, col0 FROM tab0 WHERE NOT (col4 <= 798.35)
----
34 values hashing to 249e135bc1d0997e223855e56b175744

query II rowsort label-3900-1
SELECT pk, col0 FROM view_1_tab0_910
----
166 values hashing to 326d4d49a59c50a664984aff2a2274af

query II rowsort label-3900-2
SELECT pk, col0 FROM view_2_tab0_910
----
34 values hashing to 249e135bc1d0997e223855e56b175744

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col4 <= 798.35 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col4 <= 798.35)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_910 UNION ALL SELECT pk, col0 FROM view_2_tab0_910
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col4 <= 798.35 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col4 <= 798.35)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_910 UNION SELECT pk, col0 FROM view_2_tab0_910
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-3900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col4 <= 798.35 ) AS tab0_910
----
83 values hashing to c9f113bbf3848de36ed8db60c5f7bf20

query I rowsort label-3900-3
SELECT * FROM view_3_tab0_910
----
83 values hashing to c9f113bbf3848de36ed8db60c5f7bf20

query I rowsort label-3900-3
SELECT pk FROM tab0 WHERE col4 <= 798.35
----
83 values hashing to c9f113bbf3848de36ed8db60c5f7bf20

statement ok
DROP VIEW view_1_tab0_910

statement ok
DROP VIEW view_2_tab0_910

statement ok
DROP VIEW view_3_tab0_910

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_910') DROP VIEW view_1_tab1_910

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_910

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_910') DROP VIEW view_2_tab1_910

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_910

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_910') DROP VIEW view_3_tab1_910

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_910

statement ok
CREATE VIEW view_1_tab1_910 AS SELECT pk, col0 FROM tab1 WHERE col4 <= 798.35

statement ok
CREATE VIEW view_2_tab1_910 AS SELECT pk, col0 FROM tab1 WHERE NOT (col4 <= 798.35)

statement ok
CREATE VIEW view_3_tab1_910 AS SELECT pk FROM view_1_tab1_910

query II rowsort label-3900-1
SELECT pk, col0 FROM tab1 WHERE col4 <= 798.35
----
166 values hashing to 326d4d49a59c50a664984aff2a2274af

query II rowsort label-3900-2
SELECT pk, col0 FROM tab1 WHERE NOT (col4 <= 798.35)
----
34 values hashing to 249e135bc1d0997e223855e56b175744

query II rowsort label-3900-1
SELECT pk, col0 FROM view_1_tab1_910
----
166 values hashing to 326d4d49a59c50a664984aff2a2274af

query II rowsort label-3900-2
SELECT pk, col0 FROM view_2_tab1_910
----
34 values hashing to 249e135bc1d0997e223855e56b175744

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col4 <= 798.35 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col4 <= 798.35)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_910 UNION ALL SELECT pk, col0 FROM view_2_tab1_910
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col4 <= 798.35 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col4 <= 798.35)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_910 UNION SELECT pk, col0 FROM view_2_tab1_910
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-3900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col4 <= 798.35 ) AS tab1_910
----
83 values hashing to c9f113bbf3848de36ed8db60c5f7bf20

query I rowsort label-3900-3
SELECT * FROM view_3_tab1_910
----
83 values hashing to c9f113bbf3848de36ed8db60c5f7bf20

query I rowsort label-3900-3
SELECT pk FROM tab1 WHERE col4 <= 798.35
----
83 values hashing to c9f113bbf3848de36ed8db60c5f7bf20

statement ok
DROP VIEW view_1_tab1_910

statement ok
DROP VIEW view_2_tab1_910

statement ok
DROP VIEW view_3_tab1_910

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_910') DROP VIEW view_1_tab2_910

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_910

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_910') DROP VIEW view_2_tab2_910

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_910

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_910') DROP VIEW view_3_tab2_910

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_910

statement ok
CREATE VIEW view_1_tab2_910 AS SELECT pk, col0 FROM tab2 WHERE col4 <= 798.35

statement ok
CREATE VIEW view_2_tab2_910 AS SELECT pk, col0 FROM tab2 WHERE NOT (col4 <= 798.35)

statement ok
CREATE VIEW view_3_tab2_910 AS SELECT pk FROM view_1_tab2_910

query II rowsort label-3900-1
SELECT pk, col0 FROM tab2 WHERE col4 <= 798.35
----
166 values hashing to 326d4d49a59c50a664984aff2a2274af

query II rowsort label-3900-2
SELECT pk, col0 FROM tab2 WHERE NOT (col4 <= 798.35)
----
34 values hashing to 249e135bc1d0997e223855e56b175744

query II rowsort label-3900-1
SELECT pk, col0 FROM view_1_tab2_910
----
166 values hashing to 326d4d49a59c50a664984aff2a2274af

query II rowsort label-3900-2
SELECT pk, col0 FROM view_2_tab2_910
----
34 values hashing to 249e135bc1d0997e223855e56b175744

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col4 <= 798.35 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col4 <= 798.35)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_910 UNION ALL SELECT pk, col0 FROM view_2_tab2_910
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col4 <= 798.35 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col4 <= 798.35)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_910 UNION SELECT pk, col0 FROM view_2_tab2_910
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-3900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col4 <= 798.35 ) AS tab2_910
----
83 values hashing to c9f113bbf3848de36ed8db60c5f7bf20

query I rowsort label-3900-3
SELECT * FROM view_3_tab2_910
----
83 values hashing to c9f113bbf3848de36ed8db60c5f7bf20

query I rowsort label-3900-3
SELECT pk FROM tab2 WHERE col4 <= 798.35
----
83 values hashing to c9f113bbf3848de36ed8db60c5f7bf20

statement ok
DROP VIEW view_1_tab2_910

statement ok
DROP VIEW view_2_tab2_910

statement ok
DROP VIEW view_3_tab2_910

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_910') DROP VIEW view_1_tab3_910

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_910

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_910') DROP VIEW view_2_tab3_910

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_910

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_910') DROP VIEW view_3_tab3_910

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_910

statement ok
CREATE VIEW view_1_tab3_910 AS SELECT pk, col0 FROM tab3 WHERE col4 <= 798.35

statement ok
CREATE VIEW view_2_tab3_910 AS SELECT pk, col0 FROM tab3 WHERE NOT (col4 <= 798.35)

statement ok
CREATE VIEW view_3_tab3_910 AS SELECT pk FROM view_1_tab3_910

query II rowsort label-3900-1
SELECT pk, col0 FROM tab3 WHERE col4 <= 798.35
----
166 values hashing to 326d4d49a59c50a664984aff2a2274af

query II rowsort label-3900-2
SELECT pk, col0 FROM tab3 WHERE NOT (col4 <= 798.35)
----
34 values hashing to 249e135bc1d0997e223855e56b175744

query II rowsort label-3900-1
SELECT pk, col0 FROM view_1_tab3_910
----
166 values hashing to 326d4d49a59c50a664984aff2a2274af

query II rowsort label-3900-2
SELECT pk, col0 FROM view_2_tab3_910
----
34 values hashing to 249e135bc1d0997e223855e56b175744

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col4 <= 798.35 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col4 <= 798.35)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_910 UNION ALL SELECT pk, col0 FROM view_2_tab3_910
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col4 <= 798.35 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col4 <= 798.35)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_910 UNION SELECT pk, col0 FROM view_2_tab3_910
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-3900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col4 <= 798.35 ) AS tab3_910
----
83 values hashing to c9f113bbf3848de36ed8db60c5f7bf20

query I rowsort label-3900-3
SELECT * FROM view_3_tab3_910
----
83 values hashing to c9f113bbf3848de36ed8db60c5f7bf20

query I rowsort label-3900-3
SELECT pk FROM tab3 WHERE col4 <= 798.35
----
83 values hashing to c9f113bbf3848de36ed8db60c5f7bf20

statement ok
DROP VIEW view_1_tab3_910

statement ok
DROP VIEW view_2_tab3_910

statement ok
DROP VIEW view_3_tab3_910

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_910') DROP VIEW view_1_tab4_910

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_910

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_910') DROP VIEW view_2_tab4_910

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_910

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_910') DROP VIEW view_3_tab4_910

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_910

statement ok
CREATE VIEW view_1_tab4_910 AS SELECT pk, col0 FROM tab4 WHERE col4 <= 798.35

statement ok
CREATE VIEW view_2_tab4_910 AS SELECT pk, col0 FROM tab4 WHERE NOT (col4 <= 798.35)

statement ok
CREATE VIEW view_3_tab4_910 AS SELECT pk FROM view_1_tab4_910

query II rowsort label-3900-1
SELECT pk, col0 FROM tab4 WHERE col4 <= 798.35
----
166 values hashing to 326d4d49a59c50a664984aff2a2274af

query II rowsort label-3900-2
SELECT pk, col0 FROM tab4 WHERE NOT (col4 <= 798.35)
----
34 values hashing to 249e135bc1d0997e223855e56b175744

query II rowsort label-3900-1
SELECT pk, col0 FROM view_1_tab4_910
----
166 values hashing to 326d4d49a59c50a664984aff2a2274af

query II rowsort label-3900-2
SELECT pk, col0 FROM view_2_tab4_910
----
34 values hashing to 249e135bc1d0997e223855e56b175744

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col4 <= 798.35 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col4 <= 798.35)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_910 UNION ALL SELECT pk, col0 FROM view_2_tab4_910
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col4 <= 798.35 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col4 <= 798.35)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_910 UNION SELECT pk, col0 FROM view_2_tab4_910
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-3900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col4 <= 798.35 ) AS tab4_910
----
83 values hashing to c9f113bbf3848de36ed8db60c5f7bf20

query I rowsort label-3900-3
SELECT * FROM view_3_tab4_910
----
83 values hashing to c9f113bbf3848de36ed8db60c5f7bf20

query I rowsort label-3900-3
SELECT pk FROM tab4 WHERE col4 <= 798.35
----
83 values hashing to c9f113bbf3848de36ed8db60c5f7bf20

statement ok
DROP VIEW view_1_tab4_910

statement ok
DROP VIEW view_2_tab4_910

statement ok
DROP VIEW view_3_tab4_910

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_911') DROP VIEW view_1_tab0_911

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_911

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_911') DROP VIEW view_2_tab0_911

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_911

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_911') DROP VIEW view_3_tab0_911

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_911

statement ok
CREATE VIEW view_1_tab0_911 AS SELECT pk, col0 FROM tab0 WHERE col1 >= 604.65

statement ok
CREATE VIEW view_2_tab0_911 AS SELECT pk, col0 FROM tab0 WHERE NOT (col1 >= 604.65)

statement ok
CREATE VIEW view_3_tab0_911 AS SELECT pk FROM view_1_tab0_911

query II rowsort label-4000-1
SELECT pk, col0 FROM tab0 WHERE col1 >= 604.65
----
80 values hashing to 367e50034080f5356fd961f9d01e12fb

query II rowsort label-4000-2
SELECT pk, col0 FROM tab0 WHERE NOT (col1 >= 604.65)
----
120 values hashing to 7d35d392de0de1e02c6240a3516458a6

query II rowsort label-4000-1
SELECT pk, col0 FROM view_1_tab0_911
----
80 values hashing to 367e50034080f5356fd961f9d01e12fb

query II rowsort label-4000-2
SELECT pk, col0 FROM view_2_tab0_911
----
120 values hashing to 7d35d392de0de1e02c6240a3516458a6

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col1 >= 604.65 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col1 >= 604.65)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_911 UNION ALL SELECT pk, col0 FROM view_2_tab0_911
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col1 >= 604.65 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col1 >= 604.65)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_911 UNION SELECT pk, col0 FROM view_2_tab0_911
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-4000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col1 >= 604.65 ) AS tab0_911
----
40 values hashing to 0205e9e01e97465f9a5993a814b7db55

query I rowsort label-4000-3
SELECT * FROM view_3_tab0_911
----
40 values hashing to 0205e9e01e97465f9a5993a814b7db55

query I rowsort label-4000-3
SELECT pk FROM tab0 WHERE col1 >= 604.65
----
40 values hashing to 0205e9e01e97465f9a5993a814b7db55

statement ok
DROP VIEW view_1_tab0_911

statement ok
DROP VIEW view_2_tab0_911

statement ok
DROP VIEW view_3_tab0_911

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_911') DROP VIEW view_1_tab1_911

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_911

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_911') DROP VIEW view_2_tab1_911

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_911

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_911') DROP VIEW view_3_tab1_911

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_911

statement ok
CREATE VIEW view_1_tab1_911 AS SELECT pk, col0 FROM tab1 WHERE col1 >= 604.65

statement ok
CREATE VIEW view_2_tab1_911 AS SELECT pk, col0 FROM tab1 WHERE NOT (col1 >= 604.65)

statement ok
CREATE VIEW view_3_tab1_911 AS SELECT pk FROM view_1_tab1_911

query II rowsort label-4000-1
SELECT pk, col0 FROM tab1 WHERE col1 >= 604.65
----
80 values hashing to 367e50034080f5356fd961f9d01e12fb

query II rowsort label-4000-2
SELECT pk, col0 FROM tab1 WHERE NOT (col1 >= 604.65)
----
120 values hashing to 7d35d392de0de1e02c6240a3516458a6

query II rowsort label-4000-1
SELECT pk, col0 FROM view_1_tab1_911
----
80 values hashing to 367e50034080f5356fd961f9d01e12fb

query II rowsort label-4000-2
SELECT pk, col0 FROM view_2_tab1_911
----
120 values hashing to 7d35d392de0de1e02c6240a3516458a6

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col1 >= 604.65 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col1 >= 604.65)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_911 UNION ALL SELECT pk, col0 FROM view_2_tab1_911
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col1 >= 604.65 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col1 >= 604.65)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_911 UNION SELECT pk, col0 FROM view_2_tab1_911
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-4000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col1 >= 604.65 ) AS tab1_911
----
40 values hashing to 0205e9e01e97465f9a5993a814b7db55

query I rowsort label-4000-3
SELECT * FROM view_3_tab1_911
----
40 values hashing to 0205e9e01e97465f9a5993a814b7db55

query I rowsort label-4000-3
SELECT pk FROM tab1 WHERE col1 >= 604.65
----
40 values hashing to 0205e9e01e97465f9a5993a814b7db55

statement ok
DROP VIEW view_1_tab1_911

statement ok
DROP VIEW view_2_tab1_911

statement ok
DROP VIEW view_3_tab1_911

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_911') DROP VIEW view_1_tab2_911

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_911

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_911') DROP VIEW view_2_tab2_911

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_911

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_911') DROP VIEW view_3_tab2_911

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_911

statement ok
CREATE VIEW view_1_tab2_911 AS SELECT pk, col0 FROM tab2 WHERE col1 >= 604.65

statement ok
CREATE VIEW view_2_tab2_911 AS SELECT pk, col0 FROM tab2 WHERE NOT (col1 >= 604.65)

statement ok
CREATE VIEW view_3_tab2_911 AS SELECT pk FROM view_1_tab2_911

query II rowsort label-4000-1
SELECT pk, col0 FROM tab2 WHERE col1 >= 604.65
----
80 values hashing to 367e50034080f5356fd961f9d01e12fb

query II rowsort label-4000-2
SELECT pk, col0 FROM tab2 WHERE NOT (col1 >= 604.65)
----
120 values hashing to 7d35d392de0de1e02c6240a3516458a6

query II rowsort label-4000-1
SELECT pk, col0 FROM view_1_tab2_911
----
80 values hashing to 367e50034080f5356fd961f9d01e12fb

query II rowsort label-4000-2
SELECT pk, col0 FROM view_2_tab2_911
----
120 values hashing to 7d35d392de0de1e02c6240a3516458a6

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col1 >= 604.65 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col1 >= 604.65)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_911 UNION ALL SELECT pk, col0 FROM view_2_tab2_911
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col1 >= 604.65 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col1 >= 604.65)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_911 UNION SELECT pk, col0 FROM view_2_tab2_911
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-4000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col1 >= 604.65 ) AS tab2_911
----
40 values hashing to 0205e9e01e97465f9a5993a814b7db55

query I rowsort label-4000-3
SELECT * FROM view_3_tab2_911
----
40 values hashing to 0205e9e01e97465f9a5993a814b7db55

query I rowsort label-4000-3
SELECT pk FROM tab2 WHERE col1 >= 604.65
----
40 values hashing to 0205e9e01e97465f9a5993a814b7db55

statement ok
DROP VIEW view_1_tab2_911

statement ok
DROP VIEW view_2_tab2_911

statement ok
DROP VIEW view_3_tab2_911

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_911') DROP VIEW view_1_tab3_911

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_911

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_911') DROP VIEW view_2_tab3_911

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_911

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_911') DROP VIEW view_3_tab3_911

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_911

statement ok
CREATE VIEW view_1_tab3_911 AS SELECT pk, col0 FROM tab3 WHERE col1 >= 604.65

statement ok
CREATE VIEW view_2_tab3_911 AS SELECT pk, col0 FROM tab3 WHERE NOT (col1 >= 604.65)

statement ok
CREATE VIEW view_3_tab3_911 AS SELECT pk FROM view_1_tab3_911

query II rowsort label-4000-1
SELECT pk, col0 FROM tab3 WHERE col1 >= 604.65
----
80 values hashing to 367e50034080f5356fd961f9d01e12fb

query II rowsort label-4000-2
SELECT pk, col0 FROM tab3 WHERE NOT (col1 >= 604.65)
----
120 values hashing to 7d35d392de0de1e02c6240a3516458a6

query II rowsort label-4000-1
SELECT pk, col0 FROM view_1_tab3_911
----
80 values hashing to 367e50034080f5356fd961f9d01e12fb

query II rowsort label-4000-2
SELECT pk, col0 FROM view_2_tab3_911
----
120 values hashing to 7d35d392de0de1e02c6240a3516458a6

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col1 >= 604.65 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col1 >= 604.65)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_911 UNION ALL SELECT pk, col0 FROM view_2_tab3_911
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col1 >= 604.65 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col1 >= 604.65)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_911 UNION SELECT pk, col0 FROM view_2_tab3_911
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-4000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col1 >= 604.65 ) AS tab3_911
----
40 values hashing to 0205e9e01e97465f9a5993a814b7db55

query I rowsort label-4000-3
SELECT * FROM view_3_tab3_911
----
40 values hashing to 0205e9e01e97465f9a5993a814b7db55

query I rowsort label-4000-3
SELECT pk FROM tab3 WHERE col1 >= 604.65
----
40 values hashing to 0205e9e01e97465f9a5993a814b7db55

statement ok
DROP VIEW view_1_tab3_911

statement ok
DROP VIEW view_2_tab3_911

statement ok
DROP VIEW view_3_tab3_911

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_911') DROP VIEW view_1_tab4_911

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_911

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_911') DROP VIEW view_2_tab4_911

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_911

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_911') DROP VIEW view_3_tab4_911

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_911

statement ok
CREATE VIEW view_1_tab4_911 AS SELECT pk, col0 FROM tab4 WHERE col1 >= 604.65

statement ok
CREATE VIEW view_2_tab4_911 AS SELECT pk, col0 FROM tab4 WHERE NOT (col1 >= 604.65)

statement ok
CREATE VIEW view_3_tab4_911 AS SELECT pk FROM view_1_tab4_911

query II rowsort label-4000-1
SELECT pk, col0 FROM tab4 WHERE col1 >= 604.65
----
80 values hashing to 367e50034080f5356fd961f9d01e12fb

query II rowsort label-4000-2
SELECT pk, col0 FROM tab4 WHERE NOT (col1 >= 604.65)
----
120 values hashing to 7d35d392de0de1e02c6240a3516458a6

query II rowsort label-4000-1
SELECT pk, col0 FROM view_1_tab4_911
----
80 values hashing to 367e50034080f5356fd961f9d01e12fb

query II rowsort label-4000-2
SELECT pk, col0 FROM view_2_tab4_911
----
120 values hashing to 7d35d392de0de1e02c6240a3516458a6

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col1 >= 604.65 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col1 >= 604.65)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_911 UNION ALL SELECT pk, col0 FROM view_2_tab4_911
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col1 >= 604.65 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col1 >= 604.65)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_911 UNION SELECT pk, col0 FROM view_2_tab4_911
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-4000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col1 >= 604.65 ) AS tab4_911
----
40 values hashing to 0205e9e01e97465f9a5993a814b7db55

query I rowsort label-4000-3
SELECT * FROM view_3_tab4_911
----
40 values hashing to 0205e9e01e97465f9a5993a814b7db55

query I rowsort label-4000-3
SELECT pk FROM tab4 WHERE col1 >= 604.65
----
40 values hashing to 0205e9e01e97465f9a5993a814b7db55

statement ok
DROP VIEW view_1_tab4_911

statement ok
DROP VIEW view_2_tab4_911

statement ok
DROP VIEW view_3_tab4_911

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_912') DROP VIEW view_1_tab0_912

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_912

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_912') DROP VIEW view_2_tab0_912

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_912

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_912') DROP VIEW view_3_tab0_912

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_912

statement ok
CREATE VIEW view_1_tab0_912 AS SELECT pk, col0 FROM tab0 WHERE (col4 >= 519.79 AND (col3 BETWEEN 191 AND 743 AND col1 > 917.4 AND col3 < 182) AND col0 IS NULL AND col3 < 501 OR col4 > 142.27 AND col4 >= 575.10 OR ((col3 = 268 OR col3 > 9 AND col3 > 108 AND (col4 > 12.90 AND (((col3 IN (214,449,447,353,412,967))) OR col3 > 415 AND col4 >= 677.63 AND col0 >= 152 AND (col1 > 503.18 OR ((col4 >= 922.77 OR col3 >= 542)) AND col3 > 299)) OR col4 > 920.36 AND (col3 IN (796)) AND col3 > 902 OR (col1 IN (738.37,932.58,876.90,489.75)) AND (((col1 >= 366.53))) AND col1 <= 742.34) AND (col3 >= 760) AND ((col3 IN (501,468) OR (col4 > 279.22 AND (col3 >= 615) AND ((col4 >= 84.56)) AND col0 >= 893 OR col3 < 487))) OR ((((col0 > 795) OR col3 <= 617))) AND ((col0 > 932)))))

statement ok
CREATE VIEW view_2_tab0_912 AS SELECT pk, col0 FROM tab0 WHERE NOT ((col4 >= 519.79 AND (col3 BETWEEN 191 AND 743 AND col1 > 917.4 AND col3 < 182) AND col0 IS NULL AND col3 < 501 OR col4 > 142.27 AND col4 >= 575.10 OR ((col3 = 268 OR col3 > 9 AND col3 > 108 AND (col4 > 12.90 AND (((col3 IN (214,449,447,353,412,967))) OR col3 > 415 AND col4 >= 677.63 AND col0 >= 152 AND (col1 > 503.18 OR ((col4 >= 922.77 OR col3 >= 542)) AND col3 > 299)) OR col4 > 920.36 AND (col3 IN (796)) AND col3 > 902 OR (col1 IN (738.37,932.58,876.90,489.75)) AND (((col1 >= 366.53))) AND col1 <= 742.34) AND (col3 >= 760) AND ((col3 IN (501,468) OR (col4 > 279.22 AND (col3 >= 615) AND ((col4 >= 84.56)) AND col0 >= 893 OR col3 < 487))) OR ((((col0 > 795) OR col3 <= 617))) AND ((col0 > 932))))))

statement ok
CREATE VIEW view_3_tab0_912 AS SELECT pk FROM view_1_tab0_912

query II rowsort label-4100-1
SELECT pk, col0 FROM tab0 WHERE (col4 >= 519.79 AND (col3 BETWEEN 191 AND 743 AND col1 > 917.4 AND col3 < 182) AND col0 IS NULL AND col3 < 501 OR col4 > 142.27 AND col4 >= 575.10 OR ((col3 = 268 OR col3 > 9 AND col3 > 108 AND (col4 > 12.90 AND (((col3 IN (214,449,447,353,412,967))) OR col3 > 415 AND col4 >= 677.63 AND col0 >= 152 AND (col1 > 503.18 OR ((col4 >= 922.77 OR col3 >= 542)) AND col3 > 299)) OR col4 > 920.36 AND (col3 IN (796)) AND col3 > 902 OR (col1 IN (738.37,932.58,876.90,489.75)) AND (((col1 >= 366.53))) AND col1 <= 742.34) AND (col3 >= 760) AND ((col3 IN (501,468) OR (col4 > 279.22 AND (col3 >= 615) AND ((col4 >= 84.56)) AND col0 >= 893 OR col3 < 487))) OR ((((col0 > 795) OR col3 <= 617))) AND ((col0 > 932)))))
----
86 values hashing to 4329a9cf7004eb2ca02205c304db0153

query II rowsort label-4100-2
SELECT pk, col0 FROM tab0 WHERE NOT ((col4 >= 519.79 AND (col3 BETWEEN 191 AND 743 AND col1 > 917.4 AND col3 < 182) AND col0 IS NULL AND col3 < 501 OR col4 > 142.27 AND col4 >= 575.10 OR ((col3 = 268 OR col3 > 9 AND col3 > 108 AND (col4 > 12.90 AND (((col3 IN (214,449,447,353,412,967))) OR col3 > 415 AND col4 >= 677.63 AND col0 >= 152 AND (col1 > 503.18 OR ((col4 >= 922.77 OR col3 >= 542)) AND col3 > 299)) OR col4 > 920.36 AND (col3 IN (796)) AND col3 > 902 OR (col1 IN (738.37,932.58,876.90,489.75)) AND (((col1 >= 366.53))) AND col1 <= 742.34) AND (col3 >= 760) AND ((col3 IN (501,468) OR (col4 > 279.22 AND (col3 >= 615) AND ((col4 >= 84.56)) AND col0 >= 893 OR col3 < 487))) OR ((((col0 > 795) OR col3 <= 617))) AND ((col0 > 932))))))
----
114 values hashing to 91187bb82fc06bcb8ec1bba197f03e4a

query II rowsort label-4100-1
SELECT pk, col0 FROM view_1_tab0_912
----
86 values hashing to 4329a9cf7004eb2ca02205c304db0153

query II rowsort label-4100-2
SELECT pk, col0 FROM view_2_tab0_912
----
114 values hashing to 91187bb82fc06bcb8ec1bba197f03e4a

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col4 >= 519.79 AND (col3 BETWEEN 191 AND 743 AND col1 > 917.4 AND col3 < 182) AND col0 IS NULL AND col3 < 501 OR col4 > 142.27 AND col4 >= 575.10 OR ((col3 = 268 OR col3 > 9 AND col3 > 108 AND (col4 > 12.90 AND (((col3 IN (214,449,447,353,412,967))) OR col3 > 415 AND col4 >= 677.63 AND col0 >= 152 AND (col1 > 503.18 OR ((col4 >= 922.77 OR col3 >= 542)) AND col3 > 299)) OR col4 > 920.36 AND (col3 IN (796)) AND col3 > 902 OR (col1 IN (738.37,932.58,876.90,489.75)) AND (((col1 >= 366.53))) AND col1 <= 742.34) AND (col3 >= 760) AND ((col3 IN (501,468) OR (col4 > 279.22 AND (col3 >= 615) AND ((col4 >= 84.56)) AND col0 >= 893 OR col3 < 487))) OR ((((col0 > 795) OR col3 <= 617))) AND ((col0 > 932))))) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT ((col4 >= 519.79 AND (col3 BETWEEN 191 AND 743 AND col1 > 917.4 AND col3 < 182) AND col0 IS NULL AND col3 < 501 OR col4 > 142.27 AND col4 >= 575.10 OR ((col3 = 268 OR col3 > 9 AND col3 > 108 AND (col4 > 12.90 AND (((col3 IN (214,449,447,353,412,967))) OR col3 > 415 AND col4 >= 677.63 AND col0 >= 152 AND (col1 > 503.18 OR ((col4 >= 922.77 OR col3 >= 542)) AND col3 > 299)) OR col4 > 920.36 AND (col3 IN (796)) AND col3 > 902 OR (col1 IN (738.37,932.58,876.90,489.75)) AND (((col1 >= 366.53))) AND col1 <= 742.34) AND (col3 >= 760) AND ((col3 IN (501,468) OR (col4 > 279.22 AND (col3 >= 615) AND ((col4 >= 84.56)) AND col0 >= 893 OR col3 < 487))) OR ((((col0 > 795) OR col3 <= 617))) AND ((col0 > 932))))))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_912 UNION ALL SELECT pk, col0 FROM view_2_tab0_912
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col4 >= 519.79 AND (col3 BETWEEN 191 AND 743 AND col1 > 917.4 AND col3 < 182) AND col0 IS NULL AND col3 < 501 OR col4 > 142.27 AND col4 >= 575.10 OR ((col3 = 268 OR col3 > 9 AND col3 > 108 AND (col4 > 12.90 AND (((col3 IN (214,449,447,353,412,967))) OR col3 > 415 AND col4 >= 677.63 AND col0 >= 152 AND (col1 > 503.18 OR ((col4 >= 922.77 OR col3 >= 542)) AND col3 > 299)) OR col4 > 920.36 AND (col3 IN (796)) AND col3 > 902 OR (col1 IN (738.37,932.58,876.90,489.75)) AND (((col1 >= 366.53))) AND col1 <= 742.34) AND (col3 >= 760) AND ((col3 IN (501,468) OR (col4 > 279.22 AND (col3 >= 615) AND ((col4 >= 84.56)) AND col0 >= 893 OR col3 < 487))) OR ((((col0 > 795) OR col3 <= 617))) AND ((col0 > 932))))) UNION SELECT pk, col0 FROM tab0 WHERE NOT ((col4 >= 519.79 AND (col3 BETWEEN 191 AND 743 AND col1 > 917.4 AND col3 < 182) AND col0 IS NULL AND col3 < 501 OR col4 > 142.27 AND col4 >= 575.10 OR ((col3 = 268 OR col3 > 9 AND col3 > 108 AND (col4 > 12.90 AND (((col3 IN (214,449,447,353,412,967))) OR col3 > 415 AND col4 >= 677.63 AND col0 >= 152 AND (col1 > 503.18 OR ((col4 >= 922.77 OR col3 >= 542)) AND col3 > 299)) OR col4 > 920.36 AND (col3 IN (796)) AND col3 > 902 OR (col1 IN (738.37,932.58,876.90,489.75)) AND (((col1 >= 366.53))) AND col1 <= 742.34) AND (col3 >= 760) AND ((col3 IN (501,468) OR (col4 > 279.22 AND (col3 >= 615) AND ((col4 >= 84.56)) AND col0 >= 893 OR col3 < 487))) OR ((((col0 > 795) OR col3 <= 617))) AND ((col0 > 932))))))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_912 UNION SELECT pk, col0 FROM view_2_tab0_912
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-4100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE (col4 >= 519.79 AND (col3 BETWEEN 191 AND 743 AND col1 > 917.4 AND col3 < 182) AND col0 IS NULL AND col3 < 501 OR col4 > 142.27 AND col4 >= 575.10 OR ((col3 = 268 OR col3 > 9 AND col3 > 108 AND (col4 > 12.90 AND (((col3 IN (214,449,447,353,412,967))) OR col3 > 415 AND col4 >= 677.63 AND col0 >= 152 AND (col1 > 503.18 OR ((col4 >= 922.77 OR col3 >= 542)) AND col3 > 299)) OR col4 > 920.36 AND (col3 IN (796)) AND col3 > 902 OR (col1 IN (738.37,932.58,876.90,489.75)) AND (((col1 >= 366.53))) AND col1 <= 742.34) AND (col3 >= 760) AND ((col3 IN (501,468) OR (col4 > 279.22 AND (col3 >= 615) AND ((col4 >= 84.56)) AND col0 >= 893 OR col3 < 487))) OR ((((col0 > 795) OR col3 <= 617))) AND ((col0 > 932))))) ) AS tab0_912
----
43 values hashing to 5bad256ad163e15382dc8966cb2addc1

query I rowsort label-4100-3
SELECT * FROM view_3_tab0_912
----
43 values hashing to 5bad256ad163e15382dc8966cb2addc1

query I rowsort label-4100-3
SELECT pk FROM tab0 WHERE (col4 >= 519.79 AND (col3 BETWEEN 191 AND 743 AND col1 > 917.4 AND col3 < 182) AND col0 IS NULL AND col3 < 501 OR col4 > 142.27 AND col4 >= 575.10 OR ((col3 = 268 OR col3 > 9 AND col3 > 108 AND (col4 > 12.90 AND (((col3 IN (214,449,447,353,412,967))) OR col3 > 415 AND col4 >= 677.63 AND col0 >= 152 AND (col1 > 503.18 OR ((col4 >= 922.77 OR col3 >= 542)) AND col3 > 299)) OR col4 > 920.36 AND (col3 IN (796)) AND col3 > 902 OR (col1 IN (738.37,932.58,876.90,489.75)) AND (((col1 >= 366.53))) AND col1 <= 742.34) AND (col3 >= 760) AND ((col3 IN (501,468) OR (col4 > 279.22 AND (col3 >= 615) AND ((col4 >= 84.56)) AND col0 >= 893 OR col3 < 487))) OR ((((col0 > 795) OR col3 <= 617))) AND ((col0 > 932)))))
----
43 values hashing to 5bad256ad163e15382dc8966cb2addc1

statement ok
DROP VIEW view_1_tab0_912

statement ok
DROP VIEW view_2_tab0_912

statement ok
DROP VIEW view_3_tab0_912

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_912') DROP VIEW view_1_tab1_912

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_912

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_912') DROP VIEW view_2_tab1_912

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_912

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_912') DROP VIEW view_3_tab1_912

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_912

statement ok
CREATE VIEW view_1_tab1_912 AS SELECT pk, col0 FROM tab1 WHERE (col4 >= 519.79 AND (col3 BETWEEN 191 AND 743 AND col1 > 917.4 AND col3 < 182) AND col0 IS NULL AND col3 < 501 OR col4 > 142.27 AND col4 >= 575.10 OR ((col3 = 268 OR col3 > 9 AND col3 > 108 AND (col4 > 12.90 AND (((col3 IN (214,449,447,353,412,967))) OR col3 > 415 AND col4 >= 677.63 AND col0 >= 152 AND (col1 > 503.18 OR ((col4 >= 922.77 OR col3 >= 542)) AND col3 > 299)) OR col4 > 920.36 AND (col3 IN (796)) AND col3 > 902 OR (col1 IN (738.37,932.58,876.90,489.75)) AND (((col1 >= 366.53))) AND col1 <= 742.34) AND (col3 >= 760) AND ((col3 IN (501,468) OR (col4 > 279.22 AND (col3 >= 615) AND ((col4 >= 84.56)) AND col0 >= 893 OR col3 < 487))) OR ((((col0 > 795) OR col3 <= 617))) AND ((col0 > 932)))))

statement ok
CREATE VIEW view_2_tab1_912 AS SELECT pk, col0 FROM tab1 WHERE NOT ((col4 >= 519.79 AND (col3 BETWEEN 191 AND 743 AND col1 > 917.4 AND col3 < 182) AND col0 IS NULL AND col3 < 501 OR col4 > 142.27 AND col4 >= 575.10 OR ((col3 = 268 OR col3 > 9 AND col3 > 108 AND (col4 > 12.90 AND (((col3 IN (214,449,447,353,412,967))) OR col3 > 415 AND col4 >= 677.63 AND col0 >= 152 AND (col1 > 503.18 OR ((col4 >= 922.77 OR col3 >= 542)) AND col3 > 299)) OR col4 > 920.36 AND (col3 IN (796)) AND col3 > 902 OR (col1 IN (738.37,932.58,876.90,489.75)) AND (((col1 >= 366.53))) AND col1 <= 742.34) AND (col3 >= 760) AND ((col3 IN (501,468) OR (col4 > 279.22 AND (col3 >= 615) AND ((col4 >= 84.56)) AND col0 >= 893 OR col3 < 487))) OR ((((col0 > 795) OR col3 <= 617))) AND ((col0 > 932))))))

statement ok
CREATE VIEW view_3_tab1_912 AS SELECT pk FROM view_1_tab1_912

query II rowsort label-4100-1
SELECT pk, col0 FROM tab1 WHERE (col4 >= 519.79 AND (col3 BETWEEN 191 AND 743 AND col1 > 917.4 AND col3 < 182) AND col0 IS NULL AND col3 < 501 OR col4 > 142.27 AND col4 >= 575.10 OR ((col3 = 268 OR col3 > 9 AND col3 > 108 AND (col4 > 12.90 AND (((col3 IN (214,449,447,353,412,967))) OR col3 > 415 AND col4 >= 677.63 AND col0 >= 152 AND (col1 > 503.18 OR ((col4 >= 922.77 OR col3 >= 542)) AND col3 > 299)) OR col4 > 920.36 AND (col3 IN (796)) AND col3 > 902 OR (col1 IN (738.37,932.58,876.90,489.75)) AND (((col1 >= 366.53))) AND col1 <= 742.34) AND (col3 >= 760) AND ((col3 IN (501,468) OR (col4 > 279.22 AND (col3 >= 615) AND ((col4 >= 84.56)) AND col0 >= 893 OR col3 < 487))) OR ((((col0 > 795) OR col3 <= 617))) AND ((col0 > 932)))))
----
86 values hashing to 4329a9cf7004eb2ca02205c304db0153

query II rowsort label-4100-2
SELECT pk, col0 FROM tab1 WHERE NOT ((col4 >= 519.79 AND (col3 BETWEEN 191 AND 743 AND col1 > 917.4 AND col3 < 182) AND col0 IS NULL AND col3 < 501 OR col4 > 142.27 AND col4 >= 575.10 OR ((col3 = 268 OR col3 > 9 AND col3 > 108 AND (col4 > 12.90 AND (((col3 IN (214,449,447,353,412,967))) OR col3 > 415 AND col4 >= 677.63 AND col0 >= 152 AND (col1 > 503.18 OR ((col4 >= 922.77 OR col3 >= 542)) AND col3 > 299)) OR col4 > 920.36 AND (col3 IN (796)) AND col3 > 902 OR (col1 IN (738.37,932.58,876.90,489.75)) AND (((col1 >= 366.53))) AND col1 <= 742.34) AND (col3 >= 760) AND ((col3 IN (501,468) OR (col4 > 279.22 AND (col3 >= 615) AND ((col4 >= 84.56)) AND col0 >= 893 OR col3 < 487))) OR ((((col0 > 795) OR col3 <= 617))) AND ((col0 > 932))))))
----
114 values hashing to 91187bb82fc06bcb8ec1bba197f03e4a

query II rowsort label-4100-1
SELECT pk, col0 FROM view_1_tab1_912
----
86 values hashing to 4329a9cf7004eb2ca02205c304db0153

query II rowsort label-4100-2
SELECT pk, col0 FROM view_2_tab1_912
----
114 values hashing to 91187bb82fc06bcb8ec1bba197f03e4a

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col4 >= 519.79 AND (col3 BETWEEN 191 AND 743 AND col1 > 917.4 AND col3 < 182) AND col0 IS NULL AND col3 < 501 OR col4 > 142.27 AND col4 >= 575.10 OR ((col3 = 268 OR col3 > 9 AND col3 > 108 AND (col4 > 12.90 AND (((col3 IN (214,449,447,353,412,967))) OR col3 > 415 AND col4 >= 677.63 AND col0 >= 152 AND (col1 > 503.18 OR ((col4 >= 922.77 OR col3 >= 542)) AND col3 > 299)) OR col4 > 920.36 AND (col3 IN (796)) AND col3 > 902 OR (col1 IN (738.37,932.58,876.90,489.75)) AND (((col1 >= 366.53))) AND col1 <= 742.34) AND (col3 >= 760) AND ((col3 IN (501,468) OR (col4 > 279.22 AND (col3 >= 615) AND ((col4 >= 84.56)) AND col0 >= 893 OR col3 < 487))) OR ((((col0 > 795) OR col3 <= 617))) AND ((col0 > 932))))) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT ((col4 >= 519.79 AND (col3 BETWEEN 191 AND 743 AND col1 > 917.4 AND col3 < 182) AND col0 IS NULL AND col3 < 501 OR col4 > 142.27 AND col4 >= 575.10 OR ((col3 = 268 OR col3 > 9 AND col3 > 108 AND (col4 > 12.90 AND (((col3 IN (214,449,447,353,412,967))) OR col3 > 415 AND col4 >= 677.63 AND col0 >= 152 AND (col1 > 503.18 OR ((col4 >= 922.77 OR col3 >= 542)) AND col3 > 299)) OR col4 > 920.36 AND (col3 IN (796)) AND col3 > 902 OR (col1 IN (738.37,932.58,876.90,489.75)) AND (((col1 >= 366.53))) AND col1 <= 742.34) AND (col3 >= 760) AND ((col3 IN (501,468) OR (col4 > 279.22 AND (col3 >= 615) AND ((col4 >= 84.56)) AND col0 >= 893 OR col3 < 487))) OR ((((col0 > 795) OR col3 <= 617))) AND ((col0 > 932))))))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_912 UNION ALL SELECT pk, col0 FROM view_2_tab1_912
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col4 >= 519.79 AND (col3 BETWEEN 191 AND 743 AND col1 > 917.4 AND col3 < 182) AND col0 IS NULL AND col3 < 501 OR col4 > 142.27 AND col4 >= 575.10 OR ((col3 = 268 OR col3 > 9 AND col3 > 108 AND (col4 > 12.90 AND (((col3 IN (214,449,447,353,412,967))) OR col3 > 415 AND col4 >= 677.63 AND col0 >= 152 AND (col1 > 503.18 OR ((col4 >= 922.77 OR col3 >= 542)) AND col3 > 299)) OR col4 > 920.36 AND (col3 IN (796)) AND col3 > 902 OR (col1 IN (738.37,932.58,876.90,489.75)) AND (((col1 >= 366.53))) AND col1 <= 742.34) AND (col3 >= 760) AND ((col3 IN (501,468) OR (col4 > 279.22 AND (col3 >= 615) AND ((col4 >= 84.56)) AND col0 >= 893 OR col3 < 487))) OR ((((col0 > 795) OR col3 <= 617))) AND ((col0 > 932))))) UNION SELECT pk, col0 FROM tab1 WHERE NOT ((col4 >= 519.79 AND (col3 BETWEEN 191 AND 743 AND col1 > 917.4 AND col3 < 182) AND col0 IS NULL AND col3 < 501 OR col4 > 142.27 AND col4 >= 575.10 OR ((col3 = 268 OR col3 > 9 AND col3 > 108 AND (col4 > 12.90 AND (((col3 IN (214,449,447,353,412,967))) OR col3 > 415 AND col4 >= 677.63 AND col0 >= 152 AND (col1 > 503.18 OR ((col4 >= 922.77 OR col3 >= 542)) AND col3 > 299)) OR col4 > 920.36 AND (col3 IN (796)) AND col3 > 902 OR (col1 IN (738.37,932.58,876.90,489.75)) AND (((col1 >= 366.53))) AND col1 <= 742.34) AND (col3 >= 760) AND ((col3 IN (501,468) OR (col4 > 279.22 AND (col3 >= 615) AND ((col4 >= 84.56)) AND col0 >= 893 OR col3 < 487))) OR ((((col0 > 795) OR col3 <= 617))) AND ((col0 > 932))))))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_912 UNION SELECT pk, col0 FROM view_2_tab1_912
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-4100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE (col4 >= 519.79 AND (col3 BETWEEN 191 AND 743 AND col1 > 917.4 AND col3 < 182) AND col0 IS NULL AND col3 < 501 OR col4 > 142.27 AND col4 >= 575.10 OR ((col3 = 268 OR col3 > 9 AND col3 > 108 AND (col4 > 12.90 AND (((col3 IN (214,449,447,353,412,967))) OR col3 > 415 AND col4 >= 677.63 AND col0 >= 152 AND (col1 > 503.18 OR ((col4 >= 922.77 OR col3 >= 542)) AND col3 > 299)) OR col4 > 920.36 AND (col3 IN (796)) AND col3 > 902 OR (col1 IN (738.37,932.58,876.90,489.75)) AND (((col1 >= 366.53))) AND col1 <= 742.34) AND (col3 >= 760) AND ((col3 IN (501,468) OR (col4 > 279.22 AND (col3 >= 615) AND ((col4 >= 84.56)) AND col0 >= 893 OR col3 < 487))) OR ((((col0 > 795) OR col3 <= 617))) AND ((col0 > 932))))) ) AS tab1_912
----
43 values hashing to 5bad256ad163e15382dc8966cb2addc1

query I rowsort label-4100-3
SELECT * FROM view_3_tab1_912
----
43 values hashing to 5bad256ad163e15382dc8966cb2addc1

query I rowsort label-4100-3
SELECT pk FROM tab1 WHERE (col4 >= 519.79 AND (col3 BETWEEN 191 AND 743 AND col1 > 917.4 AND col3 < 182) AND col0 IS NULL AND col3 < 501 OR col4 > 142.27 AND col4 >= 575.10 OR ((col3 = 268 OR col3 > 9 AND col3 > 108 AND (col4 > 12.90 AND (((col3 IN (214,449,447,353,412,967))) OR col3 > 415 AND col4 >= 677.63 AND col0 >= 152 AND (col1 > 503.18 OR ((col4 >= 922.77 OR col3 >= 542)) AND col3 > 299)) OR col4 > 920.36 AND (col3 IN (796)) AND col3 > 902 OR (col1 IN (738.37,932.58,876.90,489.75)) AND (((col1 >= 366.53))) AND col1 <= 742.34) AND (col3 >= 760) AND ((col3 IN (501,468) OR (col4 > 279.22 AND (col3 >= 615) AND ((col4 >= 84.56)) AND col0 >= 893 OR col3 < 487))) OR ((((col0 > 795) OR col3 <= 617))) AND ((col0 > 932)))))
----
43 values hashing to 5bad256ad163e15382dc8966cb2addc1

statement ok
DROP VIEW view_1_tab1_912

statement ok
DROP VIEW view_2_tab1_912

statement ok
DROP VIEW view_3_tab1_912

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_912') DROP VIEW view_1_tab2_912

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_912

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_912') DROP VIEW view_2_tab2_912

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_912

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_912') DROP VIEW view_3_tab2_912

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_912

statement ok
CREATE VIEW view_1_tab2_912 AS SELECT pk, col0 FROM tab2 WHERE (col4 >= 519.79 AND (col3 BETWEEN 191 AND 743 AND col1 > 917.4 AND col3 < 182) AND col0 IS NULL AND col3 < 501 OR col4 > 142.27 AND col4 >= 575.10 OR ((col3 = 268 OR col3 > 9 AND col3 > 108 AND (col4 > 12.90 AND (((col3 IN (214,449,447,353,412,967))) OR col3 > 415 AND col4 >= 677.63 AND col0 >= 152 AND (col1 > 503.18 OR ((col4 >= 922.77 OR col3 >= 542)) AND col3 > 299)) OR col4 > 920.36 AND (col3 IN (796)) AND col3 > 902 OR (col1 IN (738.37,932.58,876.90,489.75)) AND (((col1 >= 366.53))) AND col1 <= 742.34) AND (col3 >= 760) AND ((col3 IN (501,468) OR (col4 > 279.22 AND (col3 >= 615) AND ((col4 >= 84.56)) AND col0 >= 893 OR col3 < 487))) OR ((((col0 > 795) OR col3 <= 617))) AND ((col0 > 932)))))

statement ok
CREATE VIEW view_2_tab2_912 AS SELECT pk, col0 FROM tab2 WHERE NOT ((col4 >= 519.79 AND (col3 BETWEEN 191 AND 743 AND col1 > 917.4 AND col3 < 182) AND col0 IS NULL AND col3 < 501 OR col4 > 142.27 AND col4 >= 575.10 OR ((col3 = 268 OR col3 > 9 AND col3 > 108 AND (col4 > 12.90 AND (((col3 IN (214,449,447,353,412,967))) OR col3 > 415 AND col4 >= 677.63 AND col0 >= 152 AND (col1 > 503.18 OR ((col4 >= 922.77 OR col3 >= 542)) AND col3 > 299)) OR col4 > 920.36 AND (col3 IN (796)) AND col3 > 902 OR (col1 IN (738.37,932.58,876.90,489.75)) AND (((col1 >= 366.53))) AND col1 <= 742.34) AND (col3 >= 760) AND ((col3 IN (501,468) OR (col4 > 279.22 AND (col3 >= 615) AND ((col4 >= 84.56)) AND col0 >= 893 OR col3 < 487))) OR ((((col0 > 795) OR col3 <= 617))) AND ((col0 > 932))))))

statement ok
CREATE VIEW view_3_tab2_912 AS SELECT pk FROM view_1_tab2_912

query II rowsort label-4100-1
SELECT pk, col0 FROM tab2 WHERE (col4 >= 519.79 AND (col3 BETWEEN 191 AND 743 AND col1 > 917.4 AND col3 < 182) AND col0 IS NULL AND col3 < 501 OR col4 > 142.27 AND col4 >= 575.10 OR ((col3 = 268 OR col3 > 9 AND col3 > 108 AND (col4 > 12.90 AND (((col3 IN (214,449,447,353,412,967))) OR col3 > 415 AND col4 >= 677.63 AND col0 >= 152 AND (col1 > 503.18 OR ((col4 >= 922.77 OR col3 >= 542)) AND col3 > 299)) OR col4 > 920.36 AND (col3 IN (796)) AND col3 > 902 OR (col1 IN (738.37,932.58,876.90,489.75)) AND (((col1 >= 366.53))) AND col1 <= 742.34) AND (col3 >= 760) AND ((col3 IN (501,468) OR (col4 > 279.22 AND (col3 >= 615) AND ((col4 >= 84.56)) AND col0 >= 893 OR col3 < 487))) OR ((((col0 > 795) OR col3 <= 617))) AND ((col0 > 932)))))
----
86 values hashing to 4329a9cf7004eb2ca02205c304db0153

query II rowsort label-4100-2
SELECT pk, col0 FROM tab2 WHERE NOT ((col4 >= 519.79 AND (col3 BETWEEN 191 AND 743 AND col1 > 917.4 AND col3 < 182) AND col0 IS NULL AND col3 < 501 OR col4 > 142.27 AND col4 >= 575.10 OR ((col3 = 268 OR col3 > 9 AND col3 > 108 AND (col4 > 12.90 AND (((col3 IN (214,449,447,353,412,967))) OR col3 > 415 AND col4 >= 677.63 AND col0 >= 152 AND (col1 > 503.18 OR ((col4 >= 922.77 OR col3 >= 542)) AND col3 > 299)) OR col4 > 920.36 AND (col3 IN (796)) AND col3 > 902 OR (col1 IN (738.37,932.58,876.90,489.75)) AND (((col1 >= 366.53))) AND col1 <= 742.34) AND (col3 >= 760) AND ((col3 IN (501,468) OR (col4 > 279.22 AND (col3 >= 615) AND ((col4 >= 84.56)) AND col0 >= 893 OR col3 < 487))) OR ((((col0 > 795) OR col3 <= 617))) AND ((col0 > 932))))))
----
114 values hashing to 91187bb82fc06bcb8ec1bba197f03e4a

query II rowsort label-4100-1
SELECT pk, col0 FROM view_1_tab2_912
----
86 values hashing to 4329a9cf7004eb2ca02205c304db0153

query II rowsort label-4100-2
SELECT pk, col0 FROM view_2_tab2_912
----
114 values hashing to 91187bb82fc06bcb8ec1bba197f03e4a

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col4 >= 519.79 AND (col3 BETWEEN 191 AND 743 AND col1 > 917.4 AND col3 < 182) AND col0 IS NULL AND col3 < 501 OR col4 > 142.27 AND col4 >= 575.10 OR ((col3 = 268 OR col3 > 9 AND col3 > 108 AND (col4 > 12.90 AND (((col3 IN (214,449,447,353,412,967))) OR col3 > 415 AND col4 >= 677.63 AND col0 >= 152 AND (col1 > 503.18 OR ((col4 >= 922.77 OR col3 >= 542)) AND col3 > 299)) OR col4 > 920.36 AND (col3 IN (796)) AND col3 > 902 OR (col1 IN (738.37,932.58,876.90,489.75)) AND (((col1 >= 366.53))) AND col1 <= 742.34) AND (col3 >= 760) AND ((col3 IN (501,468) OR (col4 > 279.22 AND (col3 >= 615) AND ((col4 >= 84.56)) AND col0 >= 893 OR col3 < 487))) OR ((((col0 > 795) OR col3 <= 617))) AND ((col0 > 932))))) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT ((col4 >= 519.79 AND (col3 BETWEEN 191 AND 743 AND col1 > 917.4 AND col3 < 182) AND col0 IS NULL AND col3 < 501 OR col4 > 142.27 AND col4 >= 575.10 OR ((col3 = 268 OR col3 > 9 AND col3 > 108 AND (col4 > 12.90 AND (((col3 IN (214,449,447,353,412,967))) OR col3 > 415 AND col4 >= 677.63 AND col0 >= 152 AND (col1 > 503.18 OR ((col4 >= 922.77 OR col3 >= 542)) AND col3 > 299)) OR col4 > 920.36 AND (col3 IN (796)) AND col3 > 902 OR (col1 IN (738.37,932.58,876.90,489.75)) AND (((col1 >= 366.53))) AND col1 <= 742.34) AND (col3 >= 760) AND ((col3 IN (501,468) OR (col4 > 279.22 AND (col3 >= 615) AND ((col4 >= 84.56)) AND col0 >= 893 OR col3 < 487))) OR ((((col0 > 795) OR col3 <= 617))) AND ((col0 > 932))))))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_912 UNION ALL SELECT pk, col0 FROM view_2_tab2_912
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col4 >= 519.79 AND (col3 BETWEEN 191 AND 743 AND col1 > 917.4 AND col3 < 182) AND col0 IS NULL AND col3 < 501 OR col4 > 142.27 AND col4 >= 575.10 OR ((col3 = 268 OR col3 > 9 AND col3 > 108 AND (col4 > 12.90 AND (((col3 IN (214,449,447,353,412,967))) OR col3 > 415 AND col4 >= 677.63 AND col0 >= 152 AND (col1 > 503.18 OR ((col4 >= 922.77 OR col3 >= 542)) AND col3 > 299)) OR col4 > 920.36 AND (col3 IN (796)) AND col3 > 902 OR (col1 IN (738.37,932.58,876.90,489.75)) AND (((col1 >= 366.53))) AND col1 <= 742.34) AND (col3 >= 760) AND ((col3 IN (501,468) OR (col4 > 279.22 AND (col3 >= 615) AND ((col4 >= 84.56)) AND col0 >= 893 OR col3 < 487))) OR ((((col0 > 795) OR col3 <= 617))) AND ((col0 > 932))))) UNION SELECT pk, col0 FROM tab2 WHERE NOT ((col4 >= 519.79 AND (col3 BETWEEN 191 AND 743 AND col1 > 917.4 AND col3 < 182) AND col0 IS NULL AND col3 < 501 OR col4 > 142.27 AND col4 >= 575.10 OR ((col3 = 268 OR col3 > 9 AND col3 > 108 AND (col4 > 12.90 AND (((col3 IN (214,449,447,353,412,967))) OR col3 > 415 AND col4 >= 677.63 AND col0 >= 152 AND (col1 > 503.18 OR ((col4 >= 922.77 OR col3 >= 542)) AND col3 > 299)) OR col4 > 920.36 AND (col3 IN (796)) AND col3 > 902 OR (col1 IN (738.37,932.58,876.90,489.75)) AND (((col1 >= 366.53))) AND col1 <= 742.34) AND (col3 >= 760) AND ((col3 IN (501,468) OR (col4 > 279.22 AND (col3 >= 615) AND ((col4 >= 84.56)) AND col0 >= 893 OR col3 < 487))) OR ((((col0 > 795) OR col3 <= 617))) AND ((col0 > 932))))))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_912 UNION SELECT pk, col0 FROM view_2_tab2_912
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-4100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE (col4 >= 519.79 AND (col3 BETWEEN 191 AND 743 AND col1 > 917.4 AND col3 < 182) AND col0 IS NULL AND col3 < 501 OR col4 > 142.27 AND col4 >= 575.10 OR ((col3 = 268 OR col3 > 9 AND col3 > 108 AND (col4 > 12.90 AND (((col3 IN (214,449,447,353,412,967))) OR col3 > 415 AND col4 >= 677.63 AND col0 >= 152 AND (col1 > 503.18 OR ((col4 >= 922.77 OR col3 >= 542)) AND col3 > 299)) OR col4 > 920.36 AND (col3 IN (796)) AND col3 > 902 OR (col1 IN (738.37,932.58,876.90,489.75)) AND (((col1 >= 366.53))) AND col1 <= 742.34) AND (col3 >= 760) AND ((col3 IN (501,468) OR (col4 > 279.22 AND (col3 >= 615) AND ((col4 >= 84.56)) AND col0 >= 893 OR col3 < 487))) OR ((((col0 > 795) OR col3 <= 617))) AND ((col0 > 932))))) ) AS tab2_912
----
43 values hashing to 5bad256ad163e15382dc8966cb2addc1

query I rowsort label-4100-3
SELECT * FROM view_3_tab2_912
----
43 values hashing to 5bad256ad163e15382dc8966cb2addc1

query I rowsort label-4100-3
SELECT pk FROM tab2 WHERE (col4 >= 519.79 AND (col3 BETWEEN 191 AND 743 AND col1 > 917.4 AND col3 < 182) AND col0 IS NULL AND col3 < 501 OR col4 > 142.27 AND col4 >= 575.10 OR ((col3 = 268 OR col3 > 9 AND col3 > 108 AND (col4 > 12.90 AND (((col3 IN (214,449,447,353,412,967))) OR col3 > 415 AND col4 >= 677.63 AND col0 >= 152 AND (col1 > 503.18 OR ((col4 >= 922.77 OR col3 >= 542)) AND col3 > 299)) OR col4 > 920.36 AND (col3 IN (796)) AND col3 > 902 OR (col1 IN (738.37,932.58,876.90,489.75)) AND (((col1 >= 366.53))) AND col1 <= 742.34) AND (col3 >= 760) AND ((col3 IN (501,468) OR (col4 > 279.22 AND (col3 >= 615) AND ((col4 >= 84.56)) AND col0 >= 893 OR col3 < 487))) OR ((((col0 > 795) OR col3 <= 617))) AND ((col0 > 932)))))
----
43 values hashing to 5bad256ad163e15382dc8966cb2addc1

statement ok
DROP VIEW view_1_tab2_912

statement ok
DROP VIEW view_2_tab2_912

statement ok
DROP VIEW view_3_tab2_912

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_912') DROP VIEW view_1_tab3_912

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_912

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_912') DROP VIEW view_2_tab3_912

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_912

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_912') DROP VIEW view_3_tab3_912

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_912

statement ok
CREATE VIEW view_1_tab3_912 AS SELECT pk, col0 FROM tab3 WHERE (col4 >= 519.79 AND (col3 BETWEEN 191 AND 743 AND col1 > 917.4 AND col3 < 182) AND col0 IS NULL AND col3 < 501 OR col4 > 142.27 AND col4 >= 575.10 OR ((col3 = 268 OR col3 > 9 AND col3 > 108 AND (col4 > 12.90 AND (((col3 IN (214,449,447,353,412,967))) OR col3 > 415 AND col4 >= 677.63 AND col0 >= 152 AND (col1 > 503.18 OR ((col4 >= 922.77 OR col3 >= 542)) AND col3 > 299)) OR col4 > 920.36 AND (col3 IN (796)) AND col3 > 902 OR (col1 IN (738.37,932.58,876.90,489.75)) AND (((col1 >= 366.53))) AND col1 <= 742.34) AND (col3 >= 760) AND ((col3 IN (501,468) OR (col4 > 279.22 AND (col3 >= 615) AND ((col4 >= 84.56)) AND col0 >= 893 OR col3 < 487))) OR ((((col0 > 795) OR col3 <= 617))) AND ((col0 > 932)))))

statement ok
CREATE VIEW view_2_tab3_912 AS SELECT pk, col0 FROM tab3 WHERE NOT ((col4 >= 519.79 AND (col3 BETWEEN 191 AND 743 AND col1 > 917.4 AND col3 < 182) AND col0 IS NULL AND col3 < 501 OR col4 > 142.27 AND col4 >= 575.10 OR ((col3 = 268 OR col3 > 9 AND col3 > 108 AND (col4 > 12.90 AND (((col3 IN (214,449,447,353,412,967))) OR col3 > 415 AND col4 >= 677.63 AND col0 >= 152 AND (col1 > 503.18 OR ((col4 >= 922.77 OR col3 >= 542)) AND col3 > 299)) OR col4 > 920.36 AND (col3 IN (796)) AND col3 > 902 OR (col1 IN (738.37,932.58,876.90,489.75)) AND (((col1 >= 366.53))) AND col1 <= 742.34) AND (col3 >= 760) AND ((col3 IN (501,468) OR (col4 > 279.22 AND (col3 >= 615) AND ((col4 >= 84.56)) AND col0 >= 893 OR col3 < 487))) OR ((((col0 > 795) OR col3 <= 617))) AND ((col0 > 932))))))

statement ok
CREATE VIEW view_3_tab3_912 AS SELECT pk FROM view_1_tab3_912

query II rowsort label-4100-1
SELECT pk, col0 FROM tab3 WHERE (col4 >= 519.79 AND (col3 BETWEEN 191 AND 743 AND col1 > 917.4 AND col3 < 182) AND col0 IS NULL AND col3 < 501 OR col4 > 142.27 AND col4 >= 575.10 OR ((col3 = 268 OR col3 > 9 AND col3 > 108 AND (col4 > 12.90 AND (((col3 IN (214,449,447,353,412,967))) OR col3 > 415 AND col4 >= 677.63 AND col0 >= 152 AND (col1 > 503.18 OR ((col4 >= 922.77 OR col3 >= 542)) AND col3 > 299)) OR col4 > 920.36 AND (col3 IN (796)) AND col3 > 902 OR (col1 IN (738.37,932.58,876.90,489.75)) AND (((col1 >= 366.53))) AND col1 <= 742.34) AND (col3 >= 760) AND ((col3 IN (501,468) OR (col4 > 279.22 AND (col3 >= 615) AND ((col4 >= 84.56)) AND col0 >= 893 OR col3 < 487))) OR ((((col0 > 795) OR col3 <= 617))) AND ((col0 > 932)))))
----
86 values hashing to 4329a9cf7004eb2ca02205c304db0153

query II rowsort label-4100-2
SELECT pk, col0 FROM tab3 WHERE NOT ((col4 >= 519.79 AND (col3 BETWEEN 191 AND 743 AND col1 > 917.4 AND col3 < 182) AND col0 IS NULL AND col3 < 501 OR col4 > 142.27 AND col4 >= 575.10 OR ((col3 = 268 OR col3 > 9 AND col3 > 108 AND (col4 > 12.90 AND (((col3 IN (214,449,447,353,412,967))) OR col3 > 415 AND col4 >= 677.63 AND col0 >= 152 AND (col1 > 503.18 OR ((col4 >= 922.77 OR col3 >= 542)) AND col3 > 299)) OR col4 > 920.36 AND (col3 IN (796)) AND col3 > 902 OR (col1 IN (738.37,932.58,876.90,489.75)) AND (((col1 >= 366.53))) AND col1 <= 742.34) AND (col3 >= 760) AND ((col3 IN (501,468) OR (col4 > 279.22 AND (col3 >= 615) AND ((col4 >= 84.56)) AND col0 >= 893 OR col3 < 487))) OR ((((col0 > 795) OR col3 <= 617))) AND ((col0 > 932))))))
----
114 values hashing to 91187bb82fc06bcb8ec1bba197f03e4a

query II rowsort label-4100-1
SELECT pk, col0 FROM view_1_tab3_912
----
86 values hashing to 4329a9cf7004eb2ca02205c304db0153

query II rowsort label-4100-2
SELECT pk, col0 FROM view_2_tab3_912
----
114 values hashing to 91187bb82fc06bcb8ec1bba197f03e4a

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col4 >= 519.79 AND (col3 BETWEEN 191 AND 743 AND col1 > 917.4 AND col3 < 182) AND col0 IS NULL AND col3 < 501 OR col4 > 142.27 AND col4 >= 575.10 OR ((col3 = 268 OR col3 > 9 AND col3 > 108 AND (col4 > 12.90 AND (((col3 IN (214,449,447,353,412,967))) OR col3 > 415 AND col4 >= 677.63 AND col0 >= 152 AND (col1 > 503.18 OR ((col4 >= 922.77 OR col3 >= 542)) AND col3 > 299)) OR col4 > 920.36 AND (col3 IN (796)) AND col3 > 902 OR (col1 IN (738.37,932.58,876.90,489.75)) AND (((col1 >= 366.53))) AND col1 <= 742.34) AND (col3 >= 760) AND ((col3 IN (501,468) OR (col4 > 279.22 AND (col3 >= 615) AND ((col4 >= 84.56)) AND col0 >= 893 OR col3 < 487))) OR ((((col0 > 795) OR col3 <= 617))) AND ((col0 > 932))))) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT ((col4 >= 519.79 AND (col3 BETWEEN 191 AND 743 AND col1 > 917.4 AND col3 < 182) AND col0 IS NULL AND col3 < 501 OR col4 > 142.27 AND col4 >= 575.10 OR ((col3 = 268 OR col3 > 9 AND col3 > 108 AND (col4 > 12.90 AND (((col3 IN (214,449,447,353,412,967))) OR col3 > 415 AND col4 >= 677.63 AND col0 >= 152 AND (col1 > 503.18 OR ((col4 >= 922.77 OR col3 >= 542)) AND col3 > 299)) OR col4 > 920.36 AND (col3 IN (796)) AND col3 > 902 OR (col1 IN (738.37,932.58,876.90,489.75)) AND (((col1 >= 366.53))) AND col1 <= 742.34) AND (col3 >= 760) AND ((col3 IN (501,468) OR (col4 > 279.22 AND (col3 >= 615) AND ((col4 >= 84.56)) AND col0 >= 893 OR col3 < 487))) OR ((((col0 > 795) OR col3 <= 617))) AND ((col0 > 932))))))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_912 UNION ALL SELECT pk, col0 FROM view_2_tab3_912
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col4 >= 519.79 AND (col3 BETWEEN 191 AND 743 AND col1 > 917.4 AND col3 < 182) AND col0 IS NULL AND col3 < 501 OR col4 > 142.27 AND col4 >= 575.10 OR ((col3 = 268 OR col3 > 9 AND col3 > 108 AND (col4 > 12.90 AND (((col3 IN (214,449,447,353,412,967))) OR col3 > 415 AND col4 >= 677.63 AND col0 >= 152 AND (col1 > 503.18 OR ((col4 >= 922.77 OR col3 >= 542)) AND col3 > 299)) OR col4 > 920.36 AND (col3 IN (796)) AND col3 > 902 OR (col1 IN (738.37,932.58,876.90,489.75)) AND (((col1 >= 366.53))) AND col1 <= 742.34) AND (col3 >= 760) AND ((col3 IN (501,468) OR (col4 > 279.22 AND (col3 >= 615) AND ((col4 >= 84.56)) AND col0 >= 893 OR col3 < 487))) OR ((((col0 > 795) OR col3 <= 617))) AND ((col0 > 932))))) UNION SELECT pk, col0 FROM tab3 WHERE NOT ((col4 >= 519.79 AND (col3 BETWEEN 191 AND 743 AND col1 > 917.4 AND col3 < 182) AND col0 IS NULL AND col3 < 501 OR col4 > 142.27 AND col4 >= 575.10 OR ((col3 = 268 OR col3 > 9 AND col3 > 108 AND (col4 > 12.90 AND (((col3 IN (214,449,447,353,412,967))) OR col3 > 415 AND col4 >= 677.63 AND col0 >= 152 AND (col1 > 503.18 OR ((col4 >= 922.77 OR col3 >= 542)) AND col3 > 299)) OR col4 > 920.36 AND (col3 IN (796)) AND col3 > 902 OR (col1 IN (738.37,932.58,876.90,489.75)) AND (((col1 >= 366.53))) AND col1 <= 742.34) AND (col3 >= 760) AND ((col3 IN (501,468) OR (col4 > 279.22 AND (col3 >= 615) AND ((col4 >= 84.56)) AND col0 >= 893 OR col3 < 487))) OR ((((col0 > 795) OR col3 <= 617))) AND ((col0 > 932))))))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_912 UNION SELECT pk, col0 FROM view_2_tab3_912
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-4100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE (col4 >= 519.79 AND (col3 BETWEEN 191 AND 743 AND col1 > 917.4 AND col3 < 182) AND col0 IS NULL AND col3 < 501 OR col4 > 142.27 AND col4 >= 575.10 OR ((col3 = 268 OR col3 > 9 AND col3 > 108 AND (col4 > 12.90 AND (((col3 IN (214,449,447,353,412,967))) OR col3 > 415 AND col4 >= 677.63 AND col0 >= 152 AND (col1 > 503.18 OR ((col4 >= 922.77 OR col3 >= 542)) AND col3 > 299)) OR col4 > 920.36 AND (col3 IN (796)) AND col3 > 902 OR (col1 IN (738.37,932.58,876.90,489.75)) AND (((col1 >= 366.53))) AND col1 <= 742.34) AND (col3 >= 760) AND ((col3 IN (501,468) OR (col4 > 279.22 AND (col3 >= 615) AND ((col4 >= 84.56)) AND col0 >= 893 OR col3 < 487))) OR ((((col0 > 795) OR col3 <= 617))) AND ((col0 > 932))))) ) AS tab3_912
----
43 values hashing to 5bad256ad163e15382dc8966cb2addc1

query I rowsort label-4100-3
SELECT * FROM view_3_tab3_912
----
43 values hashing to 5bad256ad163e15382dc8966cb2addc1

query I rowsort label-4100-3
SELECT pk FROM tab3 WHERE (col4 >= 519.79 AND (col3 BETWEEN 191 AND 743 AND col1 > 917.4 AND col3 < 182) AND col0 IS NULL AND col3 < 501 OR col4 > 142.27 AND col4 >= 575.10 OR ((col3 = 268 OR col3 > 9 AND col3 > 108 AND (col4 > 12.90 AND (((col3 IN (214,449,447,353,412,967))) OR col3 > 415 AND col4 >= 677.63 AND col0 >= 152 AND (col1 > 503.18 OR ((col4 >= 922.77 OR col3 >= 542)) AND col3 > 299)) OR col4 > 920.36 AND (col3 IN (796)) AND col3 > 902 OR (col1 IN (738.37,932.58,876.90,489.75)) AND (((col1 >= 366.53))) AND col1 <= 742.34) AND (col3 >= 760) AND ((col3 IN (501,468) OR (col4 > 279.22 AND (col3 >= 615) AND ((col4 >= 84.56)) AND col0 >= 893 OR col3 < 487))) OR ((((col0 > 795) OR col3 <= 617))) AND ((col0 > 932)))))
----
43 values hashing to 5bad256ad163e15382dc8966cb2addc1

statement ok
DROP VIEW view_1_tab3_912

statement ok
DROP VIEW view_2_tab3_912

statement ok
DROP VIEW view_3_tab3_912

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_912') DROP VIEW view_1_tab4_912

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_912

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_912') DROP VIEW view_2_tab4_912

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_912

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_912') DROP VIEW view_3_tab4_912

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_912

statement ok
CREATE VIEW view_1_tab4_912 AS SELECT pk, col0 FROM tab4 WHERE (col4 >= 519.79 AND (col3 BETWEEN 191 AND 743 AND col1 > 917.4 AND col3 < 182) AND col0 IS NULL AND col3 < 501 OR col4 > 142.27 AND col4 >= 575.10 OR ((col3 = 268 OR col3 > 9 AND col3 > 108 AND (col4 > 12.90 AND (((col3 IN (214,449,447,353,412,967))) OR col3 > 415 AND col4 >= 677.63 AND col0 >= 152 AND (col1 > 503.18 OR ((col4 >= 922.77 OR col3 >= 542)) AND col3 > 299)) OR col4 > 920.36 AND (col3 IN (796)) AND col3 > 902 OR (col1 IN (738.37,932.58,876.90,489.75)) AND (((col1 >= 366.53))) AND col1 <= 742.34) AND (col3 >= 760) AND ((col3 IN (501,468) OR (col4 > 279.22 AND (col3 >= 615) AND ((col4 >= 84.56)) AND col0 >= 893 OR col3 < 487))) OR ((((col0 > 795) OR col3 <= 617))) AND ((col0 > 932)))))

statement ok
CREATE VIEW view_2_tab4_912 AS SELECT pk, col0 FROM tab4 WHERE NOT ((col4 >= 519.79 AND (col3 BETWEEN 191 AND 743 AND col1 > 917.4 AND col3 < 182) AND col0 IS NULL AND col3 < 501 OR col4 > 142.27 AND col4 >= 575.10 OR ((col3 = 268 OR col3 > 9 AND col3 > 108 AND (col4 > 12.90 AND (((col3 IN (214,449,447,353,412,967))) OR col3 > 415 AND col4 >= 677.63 AND col0 >= 152 AND (col1 > 503.18 OR ((col4 >= 922.77 OR col3 >= 542)) AND col3 > 299)) OR col4 > 920.36 AND (col3 IN (796)) AND col3 > 902 OR (col1 IN (738.37,932.58,876.90,489.75)) AND (((col1 >= 366.53))) AND col1 <= 742.34) AND (col3 >= 760) AND ((col3 IN (501,468) OR (col4 > 279.22 AND (col3 >= 615) AND ((col4 >= 84.56)) AND col0 >= 893 OR col3 < 487))) OR ((((col0 > 795) OR col3 <= 617))) AND ((col0 > 932))))))

statement ok
CREATE VIEW view_3_tab4_912 AS SELECT pk FROM view_1_tab4_912

query II rowsort label-4100-1
SELECT pk, col0 FROM tab4 WHERE (col4 >= 519.79 AND (col3 BETWEEN 191 AND 743 AND col1 > 917.4 AND col3 < 182) AND col0 IS NULL AND col3 < 501 OR col4 > 142.27 AND col4 >= 575.10 OR ((col3 = 268 OR col3 > 9 AND col3 > 108 AND (col4 > 12.90 AND (((col3 IN (214,449,447,353,412,967))) OR col3 > 415 AND col4 >= 677.63 AND col0 >= 152 AND (col1 > 503.18 OR ((col4 >= 922.77 OR col3 >= 542)) AND col3 > 299)) OR col4 > 920.36 AND (col3 IN (796)) AND col3 > 902 OR (col1 IN (738.37,932.58,876.90,489.75)) AND (((col1 >= 366.53))) AND col1 <= 742.34) AND (col3 >= 760) AND ((col3 IN (501,468) OR (col4 > 279.22 AND (col3 >= 615) AND ((col4 >= 84.56)) AND col0 >= 893 OR col3 < 487))) OR ((((col0 > 795) OR col3 <= 617))) AND ((col0 > 932)))))
----
86 values hashing to 4329a9cf7004eb2ca02205c304db0153

query II rowsort label-4100-2
SELECT pk, col0 FROM tab4 WHERE NOT ((col4 >= 519.79 AND (col3 BETWEEN 191 AND 743 AND col1 > 917.4 AND col3 < 182) AND col0 IS NULL AND col3 < 501 OR col4 > 142.27 AND col4 >= 575.10 OR ((col3 = 268 OR col3 > 9 AND col3 > 108 AND (col4 > 12.90 AND (((col3 IN (214,449,447,353,412,967))) OR col3 > 415 AND col4 >= 677.63 AND col0 >= 152 AND (col1 > 503.18 OR ((col4 >= 922.77 OR col3 >= 542)) AND col3 > 299)) OR col4 > 920.36 AND (col3 IN (796)) AND col3 > 902 OR (col1 IN (738.37,932.58,876.90,489.75)) AND (((col1 >= 366.53))) AND col1 <= 742.34) AND (col3 >= 760) AND ((col3 IN (501,468) OR (col4 > 279.22 AND (col3 >= 615) AND ((col4 >= 84.56)) AND col0 >= 893 OR col3 < 487))) OR ((((col0 > 795) OR col3 <= 617))) AND ((col0 > 932))))))
----
114 values hashing to 91187bb82fc06bcb8ec1bba197f03e4a

query II rowsort label-4100-1
SELECT pk, col0 FROM view_1_tab4_912
----
86 values hashing to 4329a9cf7004eb2ca02205c304db0153

query II rowsort label-4100-2
SELECT pk, col0 FROM view_2_tab4_912
----
114 values hashing to 91187bb82fc06bcb8ec1bba197f03e4a

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col4 >= 519.79 AND (col3 BETWEEN 191 AND 743 AND col1 > 917.4 AND col3 < 182) AND col0 IS NULL AND col3 < 501 OR col4 > 142.27 AND col4 >= 575.10 OR ((col3 = 268 OR col3 > 9 AND col3 > 108 AND (col4 > 12.90 AND (((col3 IN (214,449,447,353,412,967))) OR col3 > 415 AND col4 >= 677.63 AND col0 >= 152 AND (col1 > 503.18 OR ((col4 >= 922.77 OR col3 >= 542)) AND col3 > 299)) OR col4 > 920.36 AND (col3 IN (796)) AND col3 > 902 OR (col1 IN (738.37,932.58,876.90,489.75)) AND (((col1 >= 366.53))) AND col1 <= 742.34) AND (col3 >= 760) AND ((col3 IN (501,468) OR (col4 > 279.22 AND (col3 >= 615) AND ((col4 >= 84.56)) AND col0 >= 893 OR col3 < 487))) OR ((((col0 > 795) OR col3 <= 617))) AND ((col0 > 932))))) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT ((col4 >= 519.79 AND (col3 BETWEEN 191 AND 743 AND col1 > 917.4 AND col3 < 182) AND col0 IS NULL AND col3 < 501 OR col4 > 142.27 AND col4 >= 575.10 OR ((col3 = 268 OR col3 > 9 AND col3 > 108 AND (col4 > 12.90 AND (((col3 IN (214,449,447,353,412,967))) OR col3 > 415 AND col4 >= 677.63 AND col0 >= 152 AND (col1 > 503.18 OR ((col4 >= 922.77 OR col3 >= 542)) AND col3 > 299)) OR col4 > 920.36 AND (col3 IN (796)) AND col3 > 902 OR (col1 IN (738.37,932.58,876.90,489.75)) AND (((col1 >= 366.53))) AND col1 <= 742.34) AND (col3 >= 760) AND ((col3 IN (501,468) OR (col4 > 279.22 AND (col3 >= 615) AND ((col4 >= 84.56)) AND col0 >= 893 OR col3 < 487))) OR ((((col0 > 795) OR col3 <= 617))) AND ((col0 > 932))))))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_912 UNION ALL SELECT pk, col0 FROM view_2_tab4_912
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col4 >= 519.79 AND (col3 BETWEEN 191 AND 743 AND col1 > 917.4 AND col3 < 182) AND col0 IS NULL AND col3 < 501 OR col4 > 142.27 AND col4 >= 575.10 OR ((col3 = 268 OR col3 > 9 AND col3 > 108 AND (col4 > 12.90 AND (((col3 IN (214,449,447,353,412,967))) OR col3 > 415 AND col4 >= 677.63 AND col0 >= 152 AND (col1 > 503.18 OR ((col4 >= 922.77 OR col3 >= 542)) AND col3 > 299)) OR col4 > 920.36 AND (col3 IN (796)) AND col3 > 902 OR (col1 IN (738.37,932.58,876.90,489.75)) AND (((col1 >= 366.53))) AND col1 <= 742.34) AND (col3 >= 760) AND ((col3 IN (501,468) OR (col4 > 279.22 AND (col3 >= 615) AND ((col4 >= 84.56)) AND col0 >= 893 OR col3 < 487))) OR ((((col0 > 795) OR col3 <= 617))) AND ((col0 > 932))))) UNION SELECT pk, col0 FROM tab4 WHERE NOT ((col4 >= 519.79 AND (col3 BETWEEN 191 AND 743 AND col1 > 917.4 AND col3 < 182) AND col0 IS NULL AND col3 < 501 OR col4 > 142.27 AND col4 >= 575.10 OR ((col3 = 268 OR col3 > 9 AND col3 > 108 AND (col4 > 12.90 AND (((col3 IN (214,449,447,353,412,967))) OR col3 > 415 AND col4 >= 677.63 AND col0 >= 152 AND (col1 > 503.18 OR ((col4 >= 922.77 OR col3 >= 542)) AND col3 > 299)) OR col4 > 920.36 AND (col3 IN (796)) AND col3 > 902 OR (col1 IN (738.37,932.58,876.90,489.75)) AND (((col1 >= 366.53))) AND col1 <= 742.34) AND (col3 >= 760) AND ((col3 IN (501,468) OR (col4 > 279.22 AND (col3 >= 615) AND ((col4 >= 84.56)) AND col0 >= 893 OR col3 < 487))) OR ((((col0 > 795) OR col3 <= 617))) AND ((col0 > 932))))))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_912 UNION SELECT pk, col0 FROM view_2_tab4_912
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-4100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE (col4 >= 519.79 AND (col3 BETWEEN 191 AND 743 AND col1 > 917.4 AND col3 < 182) AND col0 IS NULL AND col3 < 501 OR col4 > 142.27 AND col4 >= 575.10 OR ((col3 = 268 OR col3 > 9 AND col3 > 108 AND (col4 > 12.90 AND (((col3 IN (214,449,447,353,412,967))) OR col3 > 415 AND col4 >= 677.63 AND col0 >= 152 AND (col1 > 503.18 OR ((col4 >= 922.77 OR col3 >= 542)) AND col3 > 299)) OR col4 > 920.36 AND (col3 IN (796)) AND col3 > 902 OR (col1 IN (738.37,932.58,876.90,489.75)) AND (((col1 >= 366.53))) AND col1 <= 742.34) AND (col3 >= 760) AND ((col3 IN (501,468) OR (col4 > 279.22 AND (col3 >= 615) AND ((col4 >= 84.56)) AND col0 >= 893 OR col3 < 487))) OR ((((col0 > 795) OR col3 <= 617))) AND ((col0 > 932))))) ) AS tab4_912
----
43 values hashing to 5bad256ad163e15382dc8966cb2addc1

query I rowsort label-4100-3
SELECT * FROM view_3_tab4_912
----
43 values hashing to 5bad256ad163e15382dc8966cb2addc1

query I rowsort label-4100-3
SELECT pk FROM tab4 WHERE (col4 >= 519.79 AND (col3 BETWEEN 191 AND 743 AND col1 > 917.4 AND col3 < 182) AND col0 IS NULL AND col3 < 501 OR col4 > 142.27 AND col4 >= 575.10 OR ((col3 = 268 OR col3 > 9 AND col3 > 108 AND (col4 > 12.90 AND (((col3 IN (214,449,447,353,412,967))) OR col3 > 415 AND col4 >= 677.63 AND col0 >= 152 AND (col1 > 503.18 OR ((col4 >= 922.77 OR col3 >= 542)) AND col3 > 299)) OR col4 > 920.36 AND (col3 IN (796)) AND col3 > 902 OR (col1 IN (738.37,932.58,876.90,489.75)) AND (((col1 >= 366.53))) AND col1 <= 742.34) AND (col3 >= 760) AND ((col3 IN (501,468) OR (col4 > 279.22 AND (col3 >= 615) AND ((col4 >= 84.56)) AND col0 >= 893 OR col3 < 487))) OR ((((col0 > 795) OR col3 <= 617))) AND ((col0 > 932)))))
----
43 values hashing to 5bad256ad163e15382dc8966cb2addc1

statement ok
DROP VIEW view_1_tab4_912

statement ok
DROP VIEW view_2_tab4_912

statement ok
DROP VIEW view_3_tab4_912

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_913') DROP VIEW view_1_tab0_913

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_913

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_913') DROP VIEW view_2_tab0_913

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_913

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_913') DROP VIEW view_3_tab0_913

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_913

statement ok
CREATE VIEW view_1_tab0_913 AS SELECT pk, col0 FROM tab0 WHERE (((col3 >= 500)))

statement ok
CREATE VIEW view_2_tab0_913 AS SELECT pk, col0 FROM tab0 WHERE NOT ((((col3 >= 500))))

statement ok
CREATE VIEW view_3_tab0_913 AS SELECT pk FROM view_1_tab0_913

query II rowsort label-4200-1
SELECT pk, col0 FROM tab0 WHERE (((col3 >= 500)))
----
92 values hashing to fc8d59dd0518112d54f2a0bd63280c6e

query II rowsort label-4200-2
SELECT pk, col0 FROM tab0 WHERE NOT ((((col3 >= 500))))
----
108 values hashing to 5ceb54f252d967405b0fe8cb690447fe

query II rowsort label-4200-1
SELECT pk, col0 FROM view_1_tab0_913
----
92 values hashing to fc8d59dd0518112d54f2a0bd63280c6e

query II rowsort label-4200-2
SELECT pk, col0 FROM view_2_tab0_913
----
108 values hashing to 5ceb54f252d967405b0fe8cb690447fe

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (((col3 >= 500))) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT ((((col3 >= 500))))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_913 UNION ALL SELECT pk, col0 FROM view_2_tab0_913
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (((col3 >= 500))) UNION SELECT pk, col0 FROM tab0 WHERE NOT ((((col3 >= 500))))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_913 UNION SELECT pk, col0 FROM view_2_tab0_913
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-4200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE (((col3 >= 500))) ) AS tab0_913
----
46 values hashing to f238b5cb38f326d95a9b3df92c1be7ed

query I rowsort label-4200-3
SELECT * FROM view_3_tab0_913
----
46 values hashing to f238b5cb38f326d95a9b3df92c1be7ed

query I rowsort label-4200-3
SELECT pk FROM tab0 WHERE (((col3 >= 500)))
----
46 values hashing to f238b5cb38f326d95a9b3df92c1be7ed

statement ok
DROP VIEW view_1_tab0_913

statement ok
DROP VIEW view_2_tab0_913

statement ok
DROP VIEW view_3_tab0_913

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_913') DROP VIEW view_1_tab1_913

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_913

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_913') DROP VIEW view_2_tab1_913

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_913

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_913') DROP VIEW view_3_tab1_913

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_913

statement ok
CREATE VIEW view_1_tab1_913 AS SELECT pk, col0 FROM tab1 WHERE (((col3 >= 500)))

statement ok
CREATE VIEW view_2_tab1_913 AS SELECT pk, col0 FROM tab1 WHERE NOT ((((col3 >= 500))))

statement ok
CREATE VIEW view_3_tab1_913 AS SELECT pk FROM view_1_tab1_913

query II rowsort label-4200-1
SELECT pk, col0 FROM tab1 WHERE (((col3 >= 500)))
----
92 values hashing to fc8d59dd0518112d54f2a0bd63280c6e

query II rowsort label-4200-2
SELECT pk, col0 FROM tab1 WHERE NOT ((((col3 >= 500))))
----
108 values hashing to 5ceb54f252d967405b0fe8cb690447fe

query II rowsort label-4200-1
SELECT pk, col0 FROM view_1_tab1_913
----
92 values hashing to fc8d59dd0518112d54f2a0bd63280c6e

query II rowsort label-4200-2
SELECT pk, col0 FROM view_2_tab1_913
----
108 values hashing to 5ceb54f252d967405b0fe8cb690447fe

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (((col3 >= 500))) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT ((((col3 >= 500))))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_913 UNION ALL SELECT pk, col0 FROM view_2_tab1_913
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (((col3 >= 500))) UNION SELECT pk, col0 FROM tab1 WHERE NOT ((((col3 >= 500))))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_913 UNION SELECT pk, col0 FROM view_2_tab1_913
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-4200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE (((col3 >= 500))) ) AS tab1_913
----
46 values hashing to f238b5cb38f326d95a9b3df92c1be7ed

query I rowsort label-4200-3
SELECT * FROM view_3_tab1_913
----
46 values hashing to f238b5cb38f326d95a9b3df92c1be7ed

query I rowsort label-4200-3
SELECT pk FROM tab1 WHERE (((col3 >= 500)))
----
46 values hashing to f238b5cb38f326d95a9b3df92c1be7ed

statement ok
DROP VIEW view_1_tab1_913

statement ok
DROP VIEW view_2_tab1_913

statement ok
DROP VIEW view_3_tab1_913

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_913') DROP VIEW view_1_tab2_913

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_913

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_913') DROP VIEW view_2_tab2_913

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_913

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_913') DROP VIEW view_3_tab2_913

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_913

statement ok
CREATE VIEW view_1_tab2_913 AS SELECT pk, col0 FROM tab2 WHERE (((col3 >= 500)))

statement ok
CREATE VIEW view_2_tab2_913 AS SELECT pk, col0 FROM tab2 WHERE NOT ((((col3 >= 500))))

statement ok
CREATE VIEW view_3_tab2_913 AS SELECT pk FROM view_1_tab2_913

query II rowsort label-4200-1
SELECT pk, col0 FROM tab2 WHERE (((col3 >= 500)))
----
92 values hashing to fc8d59dd0518112d54f2a0bd63280c6e

query II rowsort label-4200-2
SELECT pk, col0 FROM tab2 WHERE NOT ((((col3 >= 500))))
----
108 values hashing to 5ceb54f252d967405b0fe8cb690447fe

query II rowsort label-4200-1
SELECT pk, col0 FROM view_1_tab2_913
----
92 values hashing to fc8d59dd0518112d54f2a0bd63280c6e

query II rowsort label-4200-2
SELECT pk, col0 FROM view_2_tab2_913
----
108 values hashing to 5ceb54f252d967405b0fe8cb690447fe

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (((col3 >= 500))) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT ((((col3 >= 500))))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_913 UNION ALL SELECT pk, col0 FROM view_2_tab2_913
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (((col3 >= 500))) UNION SELECT pk, col0 FROM tab2 WHERE NOT ((((col3 >= 500))))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_913 UNION SELECT pk, col0 FROM view_2_tab2_913
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-4200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE (((col3 >= 500))) ) AS tab2_913
----
46 values hashing to f238b5cb38f326d95a9b3df92c1be7ed

query I rowsort label-4200-3
SELECT * FROM view_3_tab2_913
----
46 values hashing to f238b5cb38f326d95a9b3df92c1be7ed

query I rowsort label-4200-3
SELECT pk FROM tab2 WHERE (((col3 >= 500)))
----
46 values hashing to f238b5cb38f326d95a9b3df92c1be7ed

statement ok
DROP VIEW view_1_tab2_913

statement ok
DROP VIEW view_2_tab2_913

statement ok
DROP VIEW view_3_tab2_913

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_913') DROP VIEW view_1_tab3_913

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_913

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_913') DROP VIEW view_2_tab3_913

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_913

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_913') DROP VIEW view_3_tab3_913

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_913

statement ok
CREATE VIEW view_1_tab3_913 AS SELECT pk, col0 FROM tab3 WHERE (((col3 >= 500)))

statement ok
CREATE VIEW view_2_tab3_913 AS SELECT pk, col0 FROM tab3 WHERE NOT ((((col3 >= 500))))

statement ok
CREATE VIEW view_3_tab3_913 AS SELECT pk FROM view_1_tab3_913

query II rowsort label-4200-1
SELECT pk, col0 FROM tab3 WHERE (((col3 >= 500)))
----
92 values hashing to fc8d59dd0518112d54f2a0bd63280c6e

query II rowsort label-4200-2
SELECT pk, col0 FROM tab3 WHERE NOT ((((col3 >= 500))))
----
108 values hashing to 5ceb54f252d967405b0fe8cb690447fe

query II rowsort label-4200-1
SELECT pk, col0 FROM view_1_tab3_913
----
92 values hashing to fc8d59dd0518112d54f2a0bd63280c6e

query II rowsort label-4200-2
SELECT pk, col0 FROM view_2_tab3_913
----
108 values hashing to 5ceb54f252d967405b0fe8cb690447fe

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (((col3 >= 500))) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT ((((col3 >= 500))))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_913 UNION ALL SELECT pk, col0 FROM view_2_tab3_913
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (((col3 >= 500))) UNION SELECT pk, col0 FROM tab3 WHERE NOT ((((col3 >= 500))))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_913 UNION SELECT pk, col0 FROM view_2_tab3_913
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-4200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE (((col3 >= 500))) ) AS tab3_913
----
46 values hashing to f238b5cb38f326d95a9b3df92c1be7ed

query I rowsort label-4200-3
SELECT * FROM view_3_tab3_913
----
46 values hashing to f238b5cb38f326d95a9b3df92c1be7ed

query I rowsort label-4200-3
SELECT pk FROM tab3 WHERE (((col3 >= 500)))
----
46 values hashing to f238b5cb38f326d95a9b3df92c1be7ed

statement ok
DROP VIEW view_1_tab3_913

statement ok
DROP VIEW view_2_tab3_913

statement ok
DROP VIEW view_3_tab3_913

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_913') DROP VIEW view_1_tab4_913

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_913

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_913') DROP VIEW view_2_tab4_913

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_913

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_913') DROP VIEW view_3_tab4_913

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_913

statement ok
CREATE VIEW view_1_tab4_913 AS SELECT pk, col0 FROM tab4 WHERE (((col3 >= 500)))

statement ok
CREATE VIEW view_2_tab4_913 AS SELECT pk, col0 FROM tab4 WHERE NOT ((((col3 >= 500))))

statement ok
CREATE VIEW view_3_tab4_913 AS SELECT pk FROM view_1_tab4_913

query II rowsort label-4200-1
SELECT pk, col0 FROM tab4 WHERE (((col3 >= 500)))
----
92 values hashing to fc8d59dd0518112d54f2a0bd63280c6e

query II rowsort label-4200-2
SELECT pk, col0 FROM tab4 WHERE NOT ((((col3 >= 500))))
----
108 values hashing to 5ceb54f252d967405b0fe8cb690447fe

query II rowsort label-4200-1
SELECT pk, col0 FROM view_1_tab4_913
----
92 values hashing to fc8d59dd0518112d54f2a0bd63280c6e

query II rowsort label-4200-2
SELECT pk, col0 FROM view_2_tab4_913
----
108 values hashing to 5ceb54f252d967405b0fe8cb690447fe

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (((col3 >= 500))) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT ((((col3 >= 500))))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_913 UNION ALL SELECT pk, col0 FROM view_2_tab4_913
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (((col3 >= 500))) UNION SELECT pk, col0 FROM tab4 WHERE NOT ((((col3 >= 500))))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_913 UNION SELECT pk, col0 FROM view_2_tab4_913
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-4200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE (((col3 >= 500))) ) AS tab4_913
----
46 values hashing to f238b5cb38f326d95a9b3df92c1be7ed

query I rowsort label-4200-3
SELECT * FROM view_3_tab4_913
----
46 values hashing to f238b5cb38f326d95a9b3df92c1be7ed

query I rowsort label-4200-3
SELECT pk FROM tab4 WHERE (((col3 >= 500)))
----
46 values hashing to f238b5cb38f326d95a9b3df92c1be7ed

statement ok
DROP VIEW view_1_tab4_913

statement ok
DROP VIEW view_2_tab4_913

statement ok
DROP VIEW view_3_tab4_913

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_915') DROP VIEW view_1_tab0_915

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_915

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_915') DROP VIEW view_2_tab0_915

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_915

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_915') DROP VIEW view_3_tab0_915

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_915

statement ok
CREATE VIEW view_1_tab0_915 AS SELECT pk, col0 FROM tab0 WHERE (col1 < 475.85) AND col4 >= 839.81 AND col0 IN (310,914,625) OR col0 >= 720 AND (col0 > 345) OR col4 < 958.31

statement ok
CREATE VIEW view_2_tab0_915 AS SELECT pk, col0 FROM tab0 WHERE NOT ((col1 < 475.85) AND col4 >= 839.81 AND col0 IN (310,914,625) OR col0 >= 720 AND (col0 > 345) OR col4 < 958.31)

statement ok
CREATE VIEW view_3_tab0_915 AS SELECT pk FROM view_1_tab0_915

query II rowsort label-4300-1
SELECT pk, col0 FROM tab0 WHERE (col1 < 475.85) AND col4 >= 839.81 AND col0 IN (310,914,625) OR col0 >= 720 AND (col0 > 345) OR col4 < 958.31
----
196 values hashing to 9f5eafc361fbade18a689efffeb141e3

query II rowsort label-4300-2
SELECT pk, col0 FROM tab0 WHERE NOT ((col1 < 475.85) AND col4 >= 839.81 AND col0 IN (310,914,625) OR col0 >= 720 AND (col0 > 345) OR col4 < 958.31)
----
4
694
68
537

query II rowsort label-4300-1
SELECT pk, col0 FROM view_1_tab0_915
----
196 values hashing to 9f5eafc361fbade18a689efffeb141e3

query II rowsort label-4300-2
SELECT pk, col0 FROM view_2_tab0_915
----
4
694
68
537

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col1 < 475.85) AND col4 >= 839.81 AND col0 IN (310,914,625) OR col0 >= 720 AND (col0 > 345) OR col4 < 958.31 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT ((col1 < 475.85) AND col4 >= 839.81 AND col0 IN (310,914,625) OR col0 >= 720 AND (col0 > 345) OR col4 < 958.31)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_915 UNION ALL SELECT pk, col0 FROM view_2_tab0_915
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col1 < 475.85) AND col4 >= 839.81 AND col0 IN (310,914,625) OR col0 >= 720 AND (col0 > 345) OR col4 < 958.31 UNION SELECT pk, col0 FROM tab0 WHERE NOT ((col1 < 475.85) AND col4 >= 839.81 AND col0 IN (310,914,625) OR col0 >= 720 AND (col0 > 345) OR col4 < 958.31)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_915 UNION SELECT pk, col0 FROM view_2_tab0_915
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-4300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE (col1 < 475.85) AND col4 >= 839.81 AND col0 IN (310,914,625) OR col0 >= 720 AND (col0 > 345) OR col4 < 958.31 ) AS tab0_915
----
98 values hashing to bfd77715d2e69542679a832b87a711b6

query I rowsort label-4300-3
SELECT * FROM view_3_tab0_915
----
98 values hashing to bfd77715d2e69542679a832b87a711b6

query I rowsort label-4300-3
SELECT pk FROM tab0 WHERE (col1 < 475.85) AND col4 >= 839.81 AND col0 IN (310,914,625) OR col0 >= 720 AND (col0 > 345) OR col4 < 958.31
----
98 values hashing to bfd77715d2e69542679a832b87a711b6

statement ok
DROP VIEW view_1_tab0_915

statement ok
DROP VIEW view_2_tab0_915

statement ok
DROP VIEW view_3_tab0_915

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_915') DROP VIEW view_1_tab1_915

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_915

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_915') DROP VIEW view_2_tab1_915

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_915

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_915') DROP VIEW view_3_tab1_915

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_915

statement ok
CREATE VIEW view_1_tab1_915 AS SELECT pk, col0 FROM tab1 WHERE (col1 < 475.85) AND col4 >= 839.81 AND col0 IN (310,914,625) OR col0 >= 720 AND (col0 > 345) OR col4 < 958.31

statement ok
CREATE VIEW view_2_tab1_915 AS SELECT pk, col0 FROM tab1 WHERE NOT ((col1 < 475.85) AND col4 >= 839.81 AND col0 IN (310,914,625) OR col0 >= 720 AND (col0 > 345) OR col4 < 958.31)

statement ok
CREATE VIEW view_3_tab1_915 AS SELECT pk FROM view_1_tab1_915

query II rowsort label-4300-1
SELECT pk, col0 FROM tab1 WHERE (col1 < 475.85) AND col4 >= 839.81 AND col0 IN (310,914,625) OR col0 >= 720 AND (col0 > 345) OR col4 < 958.31
----
196 values hashing to 9f5eafc361fbade18a689efffeb141e3

query II rowsort label-4300-2
SELECT pk, col0 FROM tab1 WHERE NOT ((col1 < 475.85) AND col4 >= 839.81 AND col0 IN (310,914,625) OR col0 >= 720 AND (col0 > 345) OR col4 < 958.31)
----
4
694
68
537

query II rowsort label-4300-1
SELECT pk, col0 FROM view_1_tab1_915
----
196 values hashing to 9f5eafc361fbade18a689efffeb141e3

query II rowsort label-4300-2
SELECT pk, col0 FROM view_2_tab1_915
----
4
694
68
537

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col1 < 475.85) AND col4 >= 839.81 AND col0 IN (310,914,625) OR col0 >= 720 AND (col0 > 345) OR col4 < 958.31 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT ((col1 < 475.85) AND col4 >= 839.81 AND col0 IN (310,914,625) OR col0 >= 720 AND (col0 > 345) OR col4 < 958.31)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_915 UNION ALL SELECT pk, col0 FROM view_2_tab1_915
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col1 < 475.85) AND col4 >= 839.81 AND col0 IN (310,914,625) OR col0 >= 720 AND (col0 > 345) OR col4 < 958.31 UNION SELECT pk, col0 FROM tab1 WHERE NOT ((col1 < 475.85) AND col4 >= 839.81 AND col0 IN (310,914,625) OR col0 >= 720 AND (col0 > 345) OR col4 < 958.31)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_915 UNION SELECT pk, col0 FROM view_2_tab1_915
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-4300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE (col1 < 475.85) AND col4 >= 839.81 AND col0 IN (310,914,625) OR col0 >= 720 AND (col0 > 345) OR col4 < 958.31 ) AS tab1_915
----
98 values hashing to bfd77715d2e69542679a832b87a711b6

query I rowsort label-4300-3
SELECT * FROM view_3_tab1_915
----
98 values hashing to bfd77715d2e69542679a832b87a711b6

query I rowsort label-4300-3
SELECT pk FROM tab1 WHERE (col1 < 475.85) AND col4 >= 839.81 AND col0 IN (310,914,625) OR col0 >= 720 AND (col0 > 345) OR col4 < 958.31
----
98 values hashing to bfd77715d2e69542679a832b87a711b6

statement ok
DROP VIEW view_1_tab1_915

statement ok
DROP VIEW view_2_tab1_915

statement ok
DROP VIEW view_3_tab1_915

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_915') DROP VIEW view_1_tab2_915

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_915

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_915') DROP VIEW view_2_tab2_915

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_915

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_915') DROP VIEW view_3_tab2_915

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_915

statement ok
CREATE VIEW view_1_tab2_915 AS SELECT pk, col0 FROM tab2 WHERE (col1 < 475.85) AND col4 >= 839.81 AND col0 IN (310,914,625) OR col0 >= 720 AND (col0 > 345) OR col4 < 958.31

statement ok
CREATE VIEW view_2_tab2_915 AS SELECT pk, col0 FROM tab2 WHERE NOT ((col1 < 475.85) AND col4 >= 839.81 AND col0 IN (310,914,625) OR col0 >= 720 AND (col0 > 345) OR col4 < 958.31)

statement ok
CREATE VIEW view_3_tab2_915 AS SELECT pk FROM view_1_tab2_915

query II rowsort label-4300-1
SELECT pk, col0 FROM tab2 WHERE (col1 < 475.85) AND col4 >= 839.81 AND col0 IN (310,914,625) OR col0 >= 720 AND (col0 > 345) OR col4 < 958.31
----
196 values hashing to 9f5eafc361fbade18a689efffeb141e3

query II rowsort label-4300-2
SELECT pk, col0 FROM tab2 WHERE NOT ((col1 < 475.85) AND col4 >= 839.81 AND col0 IN (310,914,625) OR col0 >= 720 AND (col0 > 345) OR col4 < 958.31)
----
4
694
68
537

query II rowsort label-4300-1
SELECT pk, col0 FROM view_1_tab2_915
----
196 values hashing to 9f5eafc361fbade18a689efffeb141e3

query II rowsort label-4300-2
SELECT pk, col0 FROM view_2_tab2_915
----
4
694
68
537

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col1 < 475.85) AND col4 >= 839.81 AND col0 IN (310,914,625) OR col0 >= 720 AND (col0 > 345) OR col4 < 958.31 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT ((col1 < 475.85) AND col4 >= 839.81 AND col0 IN (310,914,625) OR col0 >= 720 AND (col0 > 345) OR col4 < 958.31)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_915 UNION ALL SELECT pk, col0 FROM view_2_tab2_915
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col1 < 475.85) AND col4 >= 839.81 AND col0 IN (310,914,625) OR col0 >= 720 AND (col0 > 345) OR col4 < 958.31 UNION SELECT pk, col0 FROM tab2 WHERE NOT ((col1 < 475.85) AND col4 >= 839.81 AND col0 IN (310,914,625) OR col0 >= 720 AND (col0 > 345) OR col4 < 958.31)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_915 UNION SELECT pk, col0 FROM view_2_tab2_915
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-4300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE (col1 < 475.85) AND col4 >= 839.81 AND col0 IN (310,914,625) OR col0 >= 720 AND (col0 > 345) OR col4 < 958.31 ) AS tab2_915
----
98 values hashing to bfd77715d2e69542679a832b87a711b6

query I rowsort label-4300-3
SELECT * FROM view_3_tab2_915
----
98 values hashing to bfd77715d2e69542679a832b87a711b6

query I rowsort label-4300-3
SELECT pk FROM tab2 WHERE (col1 < 475.85) AND col4 >= 839.81 AND col0 IN (310,914,625) OR col0 >= 720 AND (col0 > 345) OR col4 < 958.31
----
98 values hashing to bfd77715d2e69542679a832b87a711b6

statement ok
DROP VIEW view_1_tab2_915

statement ok
DROP VIEW view_2_tab2_915

statement ok
DROP VIEW view_3_tab2_915

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_915') DROP VIEW view_1_tab3_915

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_915

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_915') DROP VIEW view_2_tab3_915

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_915

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_915') DROP VIEW view_3_tab3_915

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_915

statement ok
CREATE VIEW view_1_tab3_915 AS SELECT pk, col0 FROM tab3 WHERE (col1 < 475.85) AND col4 >= 839.81 AND col0 IN (310,914,625) OR col0 >= 720 AND (col0 > 345) OR col4 < 958.31

statement ok
CREATE VIEW view_2_tab3_915 AS SELECT pk, col0 FROM tab3 WHERE NOT ((col1 < 475.85) AND col4 >= 839.81 AND col0 IN (310,914,625) OR col0 >= 720 AND (col0 > 345) OR col4 < 958.31)

statement ok
CREATE VIEW view_3_tab3_915 AS SELECT pk FROM view_1_tab3_915

query II rowsort label-4300-1
SELECT pk, col0 FROM tab3 WHERE (col1 < 475.85) AND col4 >= 839.81 AND col0 IN (310,914,625) OR col0 >= 720 AND (col0 > 345) OR col4 < 958.31
----
196 values hashing to 9f5eafc361fbade18a689efffeb141e3

query II rowsort label-4300-2
SELECT pk, col0 FROM tab3 WHERE NOT ((col1 < 475.85) AND col4 >= 839.81 AND col0 IN (310,914,625) OR col0 >= 720 AND (col0 > 345) OR col4 < 958.31)
----
4
694
68
537

query II rowsort label-4300-1
SELECT pk, col0 FROM view_1_tab3_915
----
196 values hashing to 9f5eafc361fbade18a689efffeb141e3

query II rowsort label-4300-2
SELECT pk, col0 FROM view_2_tab3_915
----
4
694
68
537

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col1 < 475.85) AND col4 >= 839.81 AND col0 IN (310,914,625) OR col0 >= 720 AND (col0 > 345) OR col4 < 958.31 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT ((col1 < 475.85) AND col4 >= 839.81 AND col0 IN (310,914,625) OR col0 >= 720 AND (col0 > 345) OR col4 < 958.31)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_915 UNION ALL SELECT pk, col0 FROM view_2_tab3_915
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col1 < 475.85) AND col4 >= 839.81 AND col0 IN (310,914,625) OR col0 >= 720 AND (col0 > 345) OR col4 < 958.31 UNION SELECT pk, col0 FROM tab3 WHERE NOT ((col1 < 475.85) AND col4 >= 839.81 AND col0 IN (310,914,625) OR col0 >= 720 AND (col0 > 345) OR col4 < 958.31)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_915 UNION SELECT pk, col0 FROM view_2_tab3_915
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-4300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE (col1 < 475.85) AND col4 >= 839.81 AND col0 IN (310,914,625) OR col0 >= 720 AND (col0 > 345) OR col4 < 958.31 ) AS tab3_915
----
98 values hashing to bfd77715d2e69542679a832b87a711b6

query I rowsort label-4300-3
SELECT * FROM view_3_tab3_915
----
98 values hashing to bfd77715d2e69542679a832b87a711b6

query I rowsort label-4300-3
SELECT pk FROM tab3 WHERE (col1 < 475.85) AND col4 >= 839.81 AND col0 IN (310,914,625) OR col0 >= 720 AND (col0 > 345) OR col4 < 958.31
----
98 values hashing to bfd77715d2e69542679a832b87a711b6

statement ok
DROP VIEW view_1_tab3_915

statement ok
DROP VIEW view_2_tab3_915

statement ok
DROP VIEW view_3_tab3_915

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_915') DROP VIEW view_1_tab4_915

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_915

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_915') DROP VIEW view_2_tab4_915

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_915

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_915') DROP VIEW view_3_tab4_915

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_915

statement ok
CREATE VIEW view_1_tab4_915 AS SELECT pk, col0 FROM tab4 WHERE (col1 < 475.85) AND col4 >= 839.81 AND col0 IN (310,914,625) OR col0 >= 720 AND (col0 > 345) OR col4 < 958.31

statement ok
CREATE VIEW view_2_tab4_915 AS SELECT pk, col0 FROM tab4 WHERE NOT ((col1 < 475.85) AND col4 >= 839.81 AND col0 IN (310,914,625) OR col0 >= 720 AND (col0 > 345) OR col4 < 958.31)

statement ok
CREATE VIEW view_3_tab4_915 AS SELECT pk FROM view_1_tab4_915

query II rowsort label-4300-1
SELECT pk, col0 FROM tab4 WHERE (col1 < 475.85) AND col4 >= 839.81 AND col0 IN (310,914,625) OR col0 >= 720 AND (col0 > 345) OR col4 < 958.31
----
196 values hashing to 9f5eafc361fbade18a689efffeb141e3

query II rowsort label-4300-2
SELECT pk, col0 FROM tab4 WHERE NOT ((col1 < 475.85) AND col4 >= 839.81 AND col0 IN (310,914,625) OR col0 >= 720 AND (col0 > 345) OR col4 < 958.31)
----
4
694
68
537

query II rowsort label-4300-1
SELECT pk, col0 FROM view_1_tab4_915
----
196 values hashing to 9f5eafc361fbade18a689efffeb141e3

query II rowsort label-4300-2
SELECT pk, col0 FROM view_2_tab4_915
----
4
694
68
537

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col1 < 475.85) AND col4 >= 839.81 AND col0 IN (310,914,625) OR col0 >= 720 AND (col0 > 345) OR col4 < 958.31 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT ((col1 < 475.85) AND col4 >= 839.81 AND col0 IN (310,914,625) OR col0 >= 720 AND (col0 > 345) OR col4 < 958.31)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_915 UNION ALL SELECT pk, col0 FROM view_2_tab4_915
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col1 < 475.85) AND col4 >= 839.81 AND col0 IN (310,914,625) OR col0 >= 720 AND (col0 > 345) OR col4 < 958.31 UNION SELECT pk, col0 FROM tab4 WHERE NOT ((col1 < 475.85) AND col4 >= 839.81 AND col0 IN (310,914,625) OR col0 >= 720 AND (col0 > 345) OR col4 < 958.31)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_915 UNION SELECT pk, col0 FROM view_2_tab4_915
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-4300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE (col1 < 475.85) AND col4 >= 839.81 AND col0 IN (310,914,625) OR col0 >= 720 AND (col0 > 345) OR col4 < 958.31 ) AS tab4_915
----
98 values hashing to bfd77715d2e69542679a832b87a711b6

query I rowsort label-4300-3
SELECT * FROM view_3_tab4_915
----
98 values hashing to bfd77715d2e69542679a832b87a711b6

query I rowsort label-4300-3
SELECT pk FROM tab4 WHERE (col1 < 475.85) AND col4 >= 839.81 AND col0 IN (310,914,625) OR col0 >= 720 AND (col0 > 345) OR col4 < 958.31
----
98 values hashing to bfd77715d2e69542679a832b87a711b6

statement ok
DROP VIEW view_1_tab4_915

statement ok
DROP VIEW view_2_tab4_915

statement ok
DROP VIEW view_3_tab4_915

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_916') DROP VIEW view_1_tab0_916

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_916

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_916') DROP VIEW view_2_tab0_916

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_916

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_916') DROP VIEW view_3_tab0_916

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_916

statement ok
CREATE VIEW view_1_tab0_916 AS SELECT pk, col0 FROM tab0 WHERE (col3 > 750) OR ((col1 > 794.61) AND (col0 <= 322 AND col1 < 422.70))

statement ok
CREATE VIEW view_2_tab0_916 AS SELECT pk, col0 FROM tab0 WHERE NOT ((col3 > 750) OR ((col1 > 794.61) AND (col0 <= 322 AND col1 < 422.70)))

statement ok
CREATE VIEW view_3_tab0_916 AS SELECT pk FROM view_1_tab0_916

query II rowsort label-4400-1
SELECT pk, col0 FROM tab0 WHERE (col3 > 750) OR ((col1 > 794.61) AND (col0 <= 322 AND col1 < 422.70))
----
48 values hashing to b96931548e584f0024e7951e2f1b1228

query II rowsort label-4400-2
SELECT pk, col0 FROM tab0 WHERE NOT ((col3 > 750) OR ((col1 > 794.61) AND (col0 <= 322 AND col1 < 422.70)))
----
152 values hashing to 10a2f28a011abc6ba242d04d4b1fb4a4

query II rowsort label-4400-1
SELECT pk, col0 FROM view_1_tab0_916
----
48 values hashing to b96931548e584f0024e7951e2f1b1228

query II rowsort label-4400-2
SELECT pk, col0 FROM view_2_tab0_916
----
152 values hashing to 10a2f28a011abc6ba242d04d4b1fb4a4

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col3 > 750) OR ((col1 > 794.61) AND (col0 <= 322 AND col1 < 422.70)) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT ((col3 > 750) OR ((col1 > 794.61) AND (col0 <= 322 AND col1 < 422.70)))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_916 UNION ALL SELECT pk, col0 FROM view_2_tab0_916
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col3 > 750) OR ((col1 > 794.61) AND (col0 <= 322 AND col1 < 422.70)) UNION SELECT pk, col0 FROM tab0 WHERE NOT ((col3 > 750) OR ((col1 > 794.61) AND (col0 <= 322 AND col1 < 422.70)))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_916 UNION SELECT pk, col0 FROM view_2_tab0_916
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-4400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE (col3 > 750) OR ((col1 > 794.61) AND (col0 <= 322 AND col1 < 422.70)) ) AS tab0_916
----
24 values hashing to 1e16193d2dadec8168fd6551b8b74702

query I rowsort label-4400-3
SELECT * FROM view_3_tab0_916
----
24 values hashing to 1e16193d2dadec8168fd6551b8b74702

query I rowsort label-4400-3
SELECT pk FROM tab0 WHERE (col3 > 750) OR ((col1 > 794.61) AND (col0 <= 322 AND col1 < 422.70))
----
24 values hashing to 1e16193d2dadec8168fd6551b8b74702

statement ok
DROP VIEW view_1_tab0_916

statement ok
DROP VIEW view_2_tab0_916

statement ok
DROP VIEW view_3_tab0_916

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_916') DROP VIEW view_1_tab1_916

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_916

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_916') DROP VIEW view_2_tab1_916

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_916

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_916') DROP VIEW view_3_tab1_916

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_916

statement ok
CREATE VIEW view_1_tab1_916 AS SELECT pk, col0 FROM tab1 WHERE (col3 > 750) OR ((col1 > 794.61) AND (col0 <= 322 AND col1 < 422.70))

statement ok
CREATE VIEW view_2_tab1_916 AS SELECT pk, col0 FROM tab1 WHERE NOT ((col3 > 750) OR ((col1 > 794.61) AND (col0 <= 322 AND col1 < 422.70)))

statement ok
CREATE VIEW view_3_tab1_916 AS SELECT pk FROM view_1_tab1_916

query II rowsort label-4400-1
SELECT pk, col0 FROM tab1 WHERE (col3 > 750) OR ((col1 > 794.61) AND (col0 <= 322 AND col1 < 422.70))
----
48 values hashing to b96931548e584f0024e7951e2f1b1228

query II rowsort label-4400-2
SELECT pk, col0 FROM tab1 WHERE NOT ((col3 > 750) OR ((col1 > 794.61) AND (col0 <= 322 AND col1 < 422.70)))
----
152 values hashing to 10a2f28a011abc6ba242d04d4b1fb4a4

query II rowsort label-4400-1
SELECT pk, col0 FROM view_1_tab1_916
----
48 values hashing to b96931548e584f0024e7951e2f1b1228

query II rowsort label-4400-2
SELECT pk, col0 FROM view_2_tab1_916
----
152 values hashing to 10a2f28a011abc6ba242d04d4b1fb4a4

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col3 > 750) OR ((col1 > 794.61) AND (col0 <= 322 AND col1 < 422.70)) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT ((col3 > 750) OR ((col1 > 794.61) AND (col0 <= 322 AND col1 < 422.70)))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_916 UNION ALL SELECT pk, col0 FROM view_2_tab1_916
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col3 > 750) OR ((col1 > 794.61) AND (col0 <= 322 AND col1 < 422.70)) UNION SELECT pk, col0 FROM tab1 WHERE NOT ((col3 > 750) OR ((col1 > 794.61) AND (col0 <= 322 AND col1 < 422.70)))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_916 UNION SELECT pk, col0 FROM view_2_tab1_916
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-4400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE (col3 > 750) OR ((col1 > 794.61) AND (col0 <= 322 AND col1 < 422.70)) ) AS tab1_916
----
24 values hashing to 1e16193d2dadec8168fd6551b8b74702

query I rowsort label-4400-3
SELECT * FROM view_3_tab1_916
----
24 values hashing to 1e16193d2dadec8168fd6551b8b74702

query I rowsort label-4400-3
SELECT pk FROM tab1 WHERE (col3 > 750) OR ((col1 > 794.61) AND (col0 <= 322 AND col1 < 422.70))
----
24 values hashing to 1e16193d2dadec8168fd6551b8b74702

statement ok
DROP VIEW view_1_tab1_916

statement ok
DROP VIEW view_2_tab1_916

statement ok
DROP VIEW view_3_tab1_916

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_916') DROP VIEW view_1_tab2_916

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_916

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_916') DROP VIEW view_2_tab2_916

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_916

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_916') DROP VIEW view_3_tab2_916

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_916

statement ok
CREATE VIEW view_1_tab2_916 AS SELECT pk, col0 FROM tab2 WHERE (col3 > 750) OR ((col1 > 794.61) AND (col0 <= 322 AND col1 < 422.70))

statement ok
CREATE VIEW view_2_tab2_916 AS SELECT pk, col0 FROM tab2 WHERE NOT ((col3 > 750) OR ((col1 > 794.61) AND (col0 <= 322 AND col1 < 422.70)))

statement ok
CREATE VIEW view_3_tab2_916 AS SELECT pk FROM view_1_tab2_916

query II rowsort label-4400-1
SELECT pk, col0 FROM tab2 WHERE (col3 > 750) OR ((col1 > 794.61) AND (col0 <= 322 AND col1 < 422.70))
----
48 values hashing to b96931548e584f0024e7951e2f1b1228

query II rowsort label-4400-2
SELECT pk, col0 FROM tab2 WHERE NOT ((col3 > 750) OR ((col1 > 794.61) AND (col0 <= 322 AND col1 < 422.70)))
----
152 values hashing to 10a2f28a011abc6ba242d04d4b1fb4a4

query II rowsort label-4400-1
SELECT pk, col0 FROM view_1_tab2_916
----
48 values hashing to b96931548e584f0024e7951e2f1b1228

query II rowsort label-4400-2
SELECT pk, col0 FROM view_2_tab2_916
----
152 values hashing to 10a2f28a011abc6ba242d04d4b1fb4a4

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col3 > 750) OR ((col1 > 794.61) AND (col0 <= 322 AND col1 < 422.70)) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT ((col3 > 750) OR ((col1 > 794.61) AND (col0 <= 322 AND col1 < 422.70)))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_916 UNION ALL SELECT pk, col0 FROM view_2_tab2_916
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col3 > 750) OR ((col1 > 794.61) AND (col0 <= 322 AND col1 < 422.70)) UNION SELECT pk, col0 FROM tab2 WHERE NOT ((col3 > 750) OR ((col1 > 794.61) AND (col0 <= 322 AND col1 < 422.70)))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_916 UNION SELECT pk, col0 FROM view_2_tab2_916
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-4400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE (col3 > 750) OR ((col1 > 794.61) AND (col0 <= 322 AND col1 < 422.70)) ) AS tab2_916
----
24 values hashing to 1e16193d2dadec8168fd6551b8b74702

query I rowsort label-4400-3
SELECT * FROM view_3_tab2_916
----
24 values hashing to 1e16193d2dadec8168fd6551b8b74702

query I rowsort label-4400-3
SELECT pk FROM tab2 WHERE (col3 > 750) OR ((col1 > 794.61) AND (col0 <= 322 AND col1 < 422.70))
----
24 values hashing to 1e16193d2dadec8168fd6551b8b74702

statement ok
DROP VIEW view_1_tab2_916

statement ok
DROP VIEW view_2_tab2_916

statement ok
DROP VIEW view_3_tab2_916

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_916') DROP VIEW view_1_tab3_916

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_916

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_916') DROP VIEW view_2_tab3_916

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_916

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_916') DROP VIEW view_3_tab3_916

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_916

statement ok
CREATE VIEW view_1_tab3_916 AS SELECT pk, col0 FROM tab3 WHERE (col3 > 750) OR ((col1 > 794.61) AND (col0 <= 322 AND col1 < 422.70))

statement ok
CREATE VIEW view_2_tab3_916 AS SELECT pk, col0 FROM tab3 WHERE NOT ((col3 > 750) OR ((col1 > 794.61) AND (col0 <= 322 AND col1 < 422.70)))

statement ok
CREATE VIEW view_3_tab3_916 AS SELECT pk FROM view_1_tab3_916

query II rowsort label-4400-1
SELECT pk, col0 FROM tab3 WHERE (col3 > 750) OR ((col1 > 794.61) AND (col0 <= 322 AND col1 < 422.70))
----
48 values hashing to b96931548e584f0024e7951e2f1b1228

query II rowsort label-4400-2
SELECT pk, col0 FROM tab3 WHERE NOT ((col3 > 750) OR ((col1 > 794.61) AND (col0 <= 322 AND col1 < 422.70)))
----
152 values hashing to 10a2f28a011abc6ba242d04d4b1fb4a4

query II rowsort label-4400-1
SELECT pk, col0 FROM view_1_tab3_916
----
48 values hashing to b96931548e584f0024e7951e2f1b1228

query II rowsort label-4400-2
SELECT pk, col0 FROM view_2_tab3_916
----
152 values hashing to 10a2f28a011abc6ba242d04d4b1fb4a4

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col3 > 750) OR ((col1 > 794.61) AND (col0 <= 322 AND col1 < 422.70)) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT ((col3 > 750) OR ((col1 > 794.61) AND (col0 <= 322 AND col1 < 422.70)))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_916 UNION ALL SELECT pk, col0 FROM view_2_tab3_916
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col3 > 750) OR ((col1 > 794.61) AND (col0 <= 322 AND col1 < 422.70)) UNION SELECT pk, col0 FROM tab3 WHERE NOT ((col3 > 750) OR ((col1 > 794.61) AND (col0 <= 322 AND col1 < 422.70)))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_916 UNION SELECT pk, col0 FROM view_2_tab3_916
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-4400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE (col3 > 750) OR ((col1 > 794.61) AND (col0 <= 322 AND col1 < 422.70)) ) AS tab3_916
----
24 values hashing to 1e16193d2dadec8168fd6551b8b74702

query I rowsort label-4400-3
SELECT * FROM view_3_tab3_916
----
24 values hashing to 1e16193d2dadec8168fd6551b8b74702

query I rowsort label-4400-3
SELECT pk FROM tab3 WHERE (col3 > 750) OR ((col1 > 794.61) AND (col0 <= 322 AND col1 < 422.70))
----
24 values hashing to 1e16193d2dadec8168fd6551b8b74702

statement ok
DROP VIEW view_1_tab3_916

statement ok
DROP VIEW view_2_tab3_916

statement ok
DROP VIEW view_3_tab3_916

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_916') DROP VIEW view_1_tab4_916

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_916

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_916') DROP VIEW view_2_tab4_916

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_916

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_916') DROP VIEW view_3_tab4_916

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_916

statement ok
CREATE VIEW view_1_tab4_916 AS SELECT pk, col0 FROM tab4 WHERE (col3 > 750) OR ((col1 > 794.61) AND (col0 <= 322 AND col1 < 422.70))

statement ok
CREATE VIEW view_2_tab4_916 AS SELECT pk, col0 FROM tab4 WHERE NOT ((col3 > 750) OR ((col1 > 794.61) AND (col0 <= 322 AND col1 < 422.70)))

statement ok
CREATE VIEW view_3_tab4_916 AS SELECT pk FROM view_1_tab4_916

query II rowsort label-4400-1
SELECT pk, col0 FROM tab4 WHERE (col3 > 750) OR ((col1 > 794.61) AND (col0 <= 322 AND col1 < 422.70))
----
48 values hashing to b96931548e584f0024e7951e2f1b1228

query II rowsort label-4400-2
SELECT pk, col0 FROM tab4 WHERE NOT ((col3 > 750) OR ((col1 > 794.61) AND (col0 <= 322 AND col1 < 422.70)))
----
152 values hashing to 10a2f28a011abc6ba242d04d4b1fb4a4

query II rowsort label-4400-1
SELECT pk, col0 FROM view_1_tab4_916
----
48 values hashing to b96931548e584f0024e7951e2f1b1228

query II rowsort label-4400-2
SELECT pk, col0 FROM view_2_tab4_916
----
152 values hashing to 10a2f28a011abc6ba242d04d4b1fb4a4

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col3 > 750) OR ((col1 > 794.61) AND (col0 <= 322 AND col1 < 422.70)) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT ((col3 > 750) OR ((col1 > 794.61) AND (col0 <= 322 AND col1 < 422.70)))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_916 UNION ALL SELECT pk, col0 FROM view_2_tab4_916
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col3 > 750) OR ((col1 > 794.61) AND (col0 <= 322 AND col1 < 422.70)) UNION SELECT pk, col0 FROM tab4 WHERE NOT ((col3 > 750) OR ((col1 > 794.61) AND (col0 <= 322 AND col1 < 422.70)))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_916 UNION SELECT pk, col0 FROM view_2_tab4_916
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-4400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE (col3 > 750) OR ((col1 > 794.61) AND (col0 <= 322 AND col1 < 422.70)) ) AS tab4_916
----
24 values hashing to 1e16193d2dadec8168fd6551b8b74702

query I rowsort label-4400-3
SELECT * FROM view_3_tab4_916
----
24 values hashing to 1e16193d2dadec8168fd6551b8b74702

query I rowsort label-4400-3
SELECT pk FROM tab4 WHERE (col3 > 750) OR ((col1 > 794.61) AND (col0 <= 322 AND col1 < 422.70))
----
24 values hashing to 1e16193d2dadec8168fd6551b8b74702

statement ok
DROP VIEW view_1_tab4_916

statement ok
DROP VIEW view_2_tab4_916

statement ok
DROP VIEW view_3_tab4_916

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_917') DROP VIEW view_1_tab0_917

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_917

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_917') DROP VIEW view_2_tab0_917

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_917

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_917') DROP VIEW view_3_tab0_917

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_917

statement ok
CREATE VIEW view_1_tab0_917 AS SELECT pk, col0 FROM tab0 WHERE col3 < 292

statement ok
CREATE VIEW view_2_tab0_917 AS SELECT pk, col0 FROM tab0 WHERE NOT (col3 < 292)

statement ok
CREATE VIEW view_3_tab0_917 AS SELECT pk FROM view_1_tab0_917

query II rowsort label-4500-1
SELECT pk, col0 FROM tab0 WHERE col3 < 292
----
66 values hashing to ab8cd56d62aa5f594e2f854c3f65a7c0

query II rowsort label-4500-2
SELECT pk, col0 FROM tab0 WHERE NOT (col3 < 292)
----
134 values hashing to eebfbb2ede8f305043fc0347a50bb5a3

query II rowsort label-4500-1
SELECT pk, col0 FROM view_1_tab0_917
----
66 values hashing to ab8cd56d62aa5f594e2f854c3f65a7c0

query II rowsort label-4500-2
SELECT pk, col0 FROM view_2_tab0_917
----
134 values hashing to eebfbb2ede8f305043fc0347a50bb5a3

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 < 292 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col3 < 292)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_917 UNION ALL SELECT pk, col0 FROM view_2_tab0_917
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 < 292 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col3 < 292)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_917 UNION SELECT pk, col0 FROM view_2_tab0_917
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-4500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col3 < 292 ) AS tab0_917
----
33 values hashing to efe65200e977c042916910e3c27ad7f5

query I rowsort label-4500-3
SELECT * FROM view_3_tab0_917
----
33 values hashing to efe65200e977c042916910e3c27ad7f5

query I rowsort label-4500-3
SELECT pk FROM tab0 WHERE col3 < 292
----
33 values hashing to efe65200e977c042916910e3c27ad7f5

statement ok
DROP VIEW view_1_tab0_917

statement ok
DROP VIEW view_2_tab0_917

statement ok
DROP VIEW view_3_tab0_917

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_917') DROP VIEW view_1_tab1_917

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_917

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_917') DROP VIEW view_2_tab1_917

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_917

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_917') DROP VIEW view_3_tab1_917

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_917

statement ok
CREATE VIEW view_1_tab1_917 AS SELECT pk, col0 FROM tab1 WHERE col3 < 292

statement ok
CREATE VIEW view_2_tab1_917 AS SELECT pk, col0 FROM tab1 WHERE NOT (col3 < 292)

statement ok
CREATE VIEW view_3_tab1_917 AS SELECT pk FROM view_1_tab1_917

query II rowsort label-4500-1
SELECT pk, col0 FROM tab1 WHERE col3 < 292
----
66 values hashing to ab8cd56d62aa5f594e2f854c3f65a7c0

query II rowsort label-4500-2
SELECT pk, col0 FROM tab1 WHERE NOT (col3 < 292)
----
134 values hashing to eebfbb2ede8f305043fc0347a50bb5a3

query II rowsort label-4500-1
SELECT pk, col0 FROM view_1_tab1_917
----
66 values hashing to ab8cd56d62aa5f594e2f854c3f65a7c0

query II rowsort label-4500-2
SELECT pk, col0 FROM view_2_tab1_917
----
134 values hashing to eebfbb2ede8f305043fc0347a50bb5a3

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 < 292 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col3 < 292)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_917 UNION ALL SELECT pk, col0 FROM view_2_tab1_917
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 < 292 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col3 < 292)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_917 UNION SELECT pk, col0 FROM view_2_tab1_917
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-4500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col3 < 292 ) AS tab1_917
----
33 values hashing to efe65200e977c042916910e3c27ad7f5

query I rowsort label-4500-3
SELECT * FROM view_3_tab1_917
----
33 values hashing to efe65200e977c042916910e3c27ad7f5

query I rowsort label-4500-3
SELECT pk FROM tab1 WHERE col3 < 292
----
33 values hashing to efe65200e977c042916910e3c27ad7f5

statement ok
DROP VIEW view_1_tab1_917

statement ok
DROP VIEW view_2_tab1_917

statement ok
DROP VIEW view_3_tab1_917

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_917') DROP VIEW view_1_tab2_917

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_917

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_917') DROP VIEW view_2_tab2_917

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_917

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_917') DROP VIEW view_3_tab2_917

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_917

statement ok
CREATE VIEW view_1_tab2_917 AS SELECT pk, col0 FROM tab2 WHERE col3 < 292

statement ok
CREATE VIEW view_2_tab2_917 AS SELECT pk, col0 FROM tab2 WHERE NOT (col3 < 292)

statement ok
CREATE VIEW view_3_tab2_917 AS SELECT pk FROM view_1_tab2_917

query II rowsort label-4500-1
SELECT pk, col0 FROM tab2 WHERE col3 < 292
----
66 values hashing to ab8cd56d62aa5f594e2f854c3f65a7c0

query II rowsort label-4500-2
SELECT pk, col0 FROM tab2 WHERE NOT (col3 < 292)
----
134 values hashing to eebfbb2ede8f305043fc0347a50bb5a3

query II rowsort label-4500-1
SELECT pk, col0 FROM view_1_tab2_917
----
66 values hashing to ab8cd56d62aa5f594e2f854c3f65a7c0

query II rowsort label-4500-2
SELECT pk, col0 FROM view_2_tab2_917
----
134 values hashing to eebfbb2ede8f305043fc0347a50bb5a3

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 < 292 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col3 < 292)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_917 UNION ALL SELECT pk, col0 FROM view_2_tab2_917
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 < 292 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col3 < 292)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_917 UNION SELECT pk, col0 FROM view_2_tab2_917
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-4500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col3 < 292 ) AS tab2_917
----
33 values hashing to efe65200e977c042916910e3c27ad7f5

query I rowsort label-4500-3
SELECT * FROM view_3_tab2_917
----
33 values hashing to efe65200e977c042916910e3c27ad7f5

query I rowsort label-4500-3
SELECT pk FROM tab2 WHERE col3 < 292
----
33 values hashing to efe65200e977c042916910e3c27ad7f5

statement ok
DROP VIEW view_1_tab2_917

statement ok
DROP VIEW view_2_tab2_917

statement ok
DROP VIEW view_3_tab2_917

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_917') DROP VIEW view_1_tab3_917

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_917

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_917') DROP VIEW view_2_tab3_917

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_917

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_917') DROP VIEW view_3_tab3_917

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_917

statement ok
CREATE VIEW view_1_tab3_917 AS SELECT pk, col0 FROM tab3 WHERE col3 < 292

statement ok
CREATE VIEW view_2_tab3_917 AS SELECT pk, col0 FROM tab3 WHERE NOT (col3 < 292)

statement ok
CREATE VIEW view_3_tab3_917 AS SELECT pk FROM view_1_tab3_917

query II rowsort label-4500-1
SELECT pk, col0 FROM tab3 WHERE col3 < 292
----
66 values hashing to ab8cd56d62aa5f594e2f854c3f65a7c0

query II rowsort label-4500-2
SELECT pk, col0 FROM tab3 WHERE NOT (col3 < 292)
----
134 values hashing to eebfbb2ede8f305043fc0347a50bb5a3

query II rowsort label-4500-1
SELECT pk, col0 FROM view_1_tab3_917
----
66 values hashing to ab8cd56d62aa5f594e2f854c3f65a7c0

query II rowsort label-4500-2
SELECT pk, col0 FROM view_2_tab3_917
----
134 values hashing to eebfbb2ede8f305043fc0347a50bb5a3

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 < 292 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col3 < 292)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_917 UNION ALL SELECT pk, col0 FROM view_2_tab3_917
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 < 292 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col3 < 292)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_917 UNION SELECT pk, col0 FROM view_2_tab3_917
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-4500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col3 < 292 ) AS tab3_917
----
33 values hashing to efe65200e977c042916910e3c27ad7f5

query I rowsort label-4500-3
SELECT * FROM view_3_tab3_917
----
33 values hashing to efe65200e977c042916910e3c27ad7f5

query I rowsort label-4500-3
SELECT pk FROM tab3 WHERE col3 < 292
----
33 values hashing to efe65200e977c042916910e3c27ad7f5

statement ok
DROP VIEW view_1_tab3_917

statement ok
DROP VIEW view_2_tab3_917

statement ok
DROP VIEW view_3_tab3_917

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_917') DROP VIEW view_1_tab4_917

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_917

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_917') DROP VIEW view_2_tab4_917

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_917

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_917') DROP VIEW view_3_tab4_917

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_917

statement ok
CREATE VIEW view_1_tab4_917 AS SELECT pk, col0 FROM tab4 WHERE col3 < 292

statement ok
CREATE VIEW view_2_tab4_917 AS SELECT pk, col0 FROM tab4 WHERE NOT (col3 < 292)

statement ok
CREATE VIEW view_3_tab4_917 AS SELECT pk FROM view_1_tab4_917

query II rowsort label-4500-1
SELECT pk, col0 FROM tab4 WHERE col3 < 292
----
66 values hashing to ab8cd56d62aa5f594e2f854c3f65a7c0

query II rowsort label-4500-2
SELECT pk, col0 FROM tab4 WHERE NOT (col3 < 292)
----
134 values hashing to eebfbb2ede8f305043fc0347a50bb5a3

query II rowsort label-4500-1
SELECT pk, col0 FROM view_1_tab4_917
----
66 values hashing to ab8cd56d62aa5f594e2f854c3f65a7c0

query II rowsort label-4500-2
SELECT pk, col0 FROM view_2_tab4_917
----
134 values hashing to eebfbb2ede8f305043fc0347a50bb5a3

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 < 292 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col3 < 292)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_917 UNION ALL SELECT pk, col0 FROM view_2_tab4_917
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 < 292 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col3 < 292)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_917 UNION SELECT pk, col0 FROM view_2_tab4_917
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-4500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col3 < 292 ) AS tab4_917
----
33 values hashing to efe65200e977c042916910e3c27ad7f5

query I rowsort label-4500-3
SELECT * FROM view_3_tab4_917
----
33 values hashing to efe65200e977c042916910e3c27ad7f5

query I rowsort label-4500-3
SELECT pk FROM tab4 WHERE col3 < 292
----
33 values hashing to efe65200e977c042916910e3c27ad7f5

statement ok
DROP VIEW view_1_tab4_917

statement ok
DROP VIEW view_2_tab4_917

statement ok
DROP VIEW view_3_tab4_917

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_919') DROP VIEW view_1_tab0_919

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_919

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_919') DROP VIEW view_2_tab0_919

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_919

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_919') DROP VIEW view_3_tab0_919

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_919

statement ok
CREATE VIEW view_1_tab0_919 AS SELECT pk, col0 FROM tab0 WHERE (col1 > 862.52)

statement ok
CREATE VIEW view_2_tab0_919 AS SELECT pk, col0 FROM tab0 WHERE NOT ((col1 > 862.52))

statement ok
CREATE VIEW view_3_tab0_919 AS SELECT pk FROM view_1_tab0_919

query II rowsort label-4600-1
SELECT pk, col0 FROM tab0 WHERE (col1 > 862.52)
----
28 values hashing to 84a7d0eceb861e09717d399a6f37745c

query II rowsort label-4600-2
SELECT pk, col0 FROM tab0 WHERE NOT ((col1 > 862.52))
----
172 values hashing to c22560a18113d6573977f8492c8dd475

query II rowsort label-4600-1
SELECT pk, col0 FROM view_1_tab0_919
----
28 values hashing to 84a7d0eceb861e09717d399a6f37745c

query II rowsort label-4600-2
SELECT pk, col0 FROM view_2_tab0_919
----
172 values hashing to c22560a18113d6573977f8492c8dd475

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col1 > 862.52) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT ((col1 > 862.52))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_919 UNION ALL SELECT pk, col0 FROM view_2_tab0_919
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col1 > 862.52) UNION SELECT pk, col0 FROM tab0 WHERE NOT ((col1 > 862.52))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_919 UNION SELECT pk, col0 FROM view_2_tab0_919
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-4600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE (col1 > 862.52) ) AS tab0_919
----
14 values hashing to a05c585baac87e53efe2bf03fe59e470

query I rowsort label-4600-3
SELECT * FROM view_3_tab0_919
----
14 values hashing to a05c585baac87e53efe2bf03fe59e470

query I rowsort label-4600-3
SELECT pk FROM tab0 WHERE (col1 > 862.52)
----
14 values hashing to a05c585baac87e53efe2bf03fe59e470

statement ok
DROP VIEW view_1_tab0_919

statement ok
DROP VIEW view_2_tab0_919

statement ok
DROP VIEW view_3_tab0_919

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_919') DROP VIEW view_1_tab1_919

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_919

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_919') DROP VIEW view_2_tab1_919

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_919

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_919') DROP VIEW view_3_tab1_919

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_919

statement ok
CREATE VIEW view_1_tab1_919 AS SELECT pk, col0 FROM tab1 WHERE (col1 > 862.52)

statement ok
CREATE VIEW view_2_tab1_919 AS SELECT pk, col0 FROM tab1 WHERE NOT ((col1 > 862.52))

statement ok
CREATE VIEW view_3_tab1_919 AS SELECT pk FROM view_1_tab1_919

query II rowsort label-4600-1
SELECT pk, col0 FROM tab1 WHERE (col1 > 862.52)
----
28 values hashing to 84a7d0eceb861e09717d399a6f37745c

query II rowsort label-4600-2
SELECT pk, col0 FROM tab1 WHERE NOT ((col1 > 862.52))
----
172 values hashing to c22560a18113d6573977f8492c8dd475

query II rowsort label-4600-1
SELECT pk, col0 FROM view_1_tab1_919
----
28 values hashing to 84a7d0eceb861e09717d399a6f37745c

query II rowsort label-4600-2
SELECT pk, col0 FROM view_2_tab1_919
----
172 values hashing to c22560a18113d6573977f8492c8dd475

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col1 > 862.52) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT ((col1 > 862.52))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_919 UNION ALL SELECT pk, col0 FROM view_2_tab1_919
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col1 > 862.52) UNION SELECT pk, col0 FROM tab1 WHERE NOT ((col1 > 862.52))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_919 UNION SELECT pk, col0 FROM view_2_tab1_919
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-4600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE (col1 > 862.52) ) AS tab1_919
----
14 values hashing to a05c585baac87e53efe2bf03fe59e470

query I rowsort label-4600-3
SELECT * FROM view_3_tab1_919
----
14 values hashing to a05c585baac87e53efe2bf03fe59e470

query I rowsort label-4600-3
SELECT pk FROM tab1 WHERE (col1 > 862.52)
----
14 values hashing to a05c585baac87e53efe2bf03fe59e470

statement ok
DROP VIEW view_1_tab1_919

statement ok
DROP VIEW view_2_tab1_919

statement ok
DROP VIEW view_3_tab1_919

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_919') DROP VIEW view_1_tab2_919

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_919

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_919') DROP VIEW view_2_tab2_919

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_919

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_919') DROP VIEW view_3_tab2_919

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_919

statement ok
CREATE VIEW view_1_tab2_919 AS SELECT pk, col0 FROM tab2 WHERE (col1 > 862.52)

statement ok
CREATE VIEW view_2_tab2_919 AS SELECT pk, col0 FROM tab2 WHERE NOT ((col1 > 862.52))

statement ok
CREATE VIEW view_3_tab2_919 AS SELECT pk FROM view_1_tab2_919

query II rowsort label-4600-1
SELECT pk, col0 FROM tab2 WHERE (col1 > 862.52)
----
28 values hashing to 84a7d0eceb861e09717d399a6f37745c

query II rowsort label-4600-2
SELECT pk, col0 FROM tab2 WHERE NOT ((col1 > 862.52))
----
172 values hashing to c22560a18113d6573977f8492c8dd475

query II rowsort label-4600-1
SELECT pk, col0 FROM view_1_tab2_919
----
28 values hashing to 84a7d0eceb861e09717d399a6f37745c

query II rowsort label-4600-2
SELECT pk, col0 FROM view_2_tab2_919
----
172 values hashing to c22560a18113d6573977f8492c8dd475

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col1 > 862.52) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT ((col1 > 862.52))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_919 UNION ALL SELECT pk, col0 FROM view_2_tab2_919
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col1 > 862.52) UNION SELECT pk, col0 FROM tab2 WHERE NOT ((col1 > 862.52))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_919 UNION SELECT pk, col0 FROM view_2_tab2_919
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-4600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE (col1 > 862.52) ) AS tab2_919
----
14 values hashing to a05c585baac87e53efe2bf03fe59e470

query I rowsort label-4600-3
SELECT * FROM view_3_tab2_919
----
14 values hashing to a05c585baac87e53efe2bf03fe59e470

query I rowsort label-4600-3
SELECT pk FROM tab2 WHERE (col1 > 862.52)
----
14 values hashing to a05c585baac87e53efe2bf03fe59e470

statement ok
DROP VIEW view_1_tab2_919

statement ok
DROP VIEW view_2_tab2_919

statement ok
DROP VIEW view_3_tab2_919

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_919') DROP VIEW view_1_tab3_919

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_919

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_919') DROP VIEW view_2_tab3_919

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_919

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_919') DROP VIEW view_3_tab3_919

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_919

statement ok
CREATE VIEW view_1_tab3_919 AS SELECT pk, col0 FROM tab3 WHERE (col1 > 862.52)

statement ok
CREATE VIEW view_2_tab3_919 AS SELECT pk, col0 FROM tab3 WHERE NOT ((col1 > 862.52))

statement ok
CREATE VIEW view_3_tab3_919 AS SELECT pk FROM view_1_tab3_919

query II rowsort label-4600-1
SELECT pk, col0 FROM tab3 WHERE (col1 > 862.52)
----
28 values hashing to 84a7d0eceb861e09717d399a6f37745c

query II rowsort label-4600-2
SELECT pk, col0 FROM tab3 WHERE NOT ((col1 > 862.52))
----
172 values hashing to c22560a18113d6573977f8492c8dd475

query II rowsort label-4600-1
SELECT pk, col0 FROM view_1_tab3_919
----
28 values hashing to 84a7d0eceb861e09717d399a6f37745c

query II rowsort label-4600-2
SELECT pk, col0 FROM view_2_tab3_919
----
172 values hashing to c22560a18113d6573977f8492c8dd475

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col1 > 862.52) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT ((col1 > 862.52))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_919 UNION ALL SELECT pk, col0 FROM view_2_tab3_919
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col1 > 862.52) UNION SELECT pk, col0 FROM tab3 WHERE NOT ((col1 > 862.52))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_919 UNION SELECT pk, col0 FROM view_2_tab3_919
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-4600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE (col1 > 862.52) ) AS tab3_919
----
14 values hashing to a05c585baac87e53efe2bf03fe59e470

query I rowsort label-4600-3
SELECT * FROM view_3_tab3_919
----
14 values hashing to a05c585baac87e53efe2bf03fe59e470

query I rowsort label-4600-3
SELECT pk FROM tab3 WHERE (col1 > 862.52)
----
14 values hashing to a05c585baac87e53efe2bf03fe59e470

statement ok
DROP VIEW view_1_tab3_919

statement ok
DROP VIEW view_2_tab3_919

statement ok
DROP VIEW view_3_tab3_919

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_919') DROP VIEW view_1_tab4_919

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_919

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_919') DROP VIEW view_2_tab4_919

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_919

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_919') DROP VIEW view_3_tab4_919

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_919

statement ok
CREATE VIEW view_1_tab4_919 AS SELECT pk, col0 FROM tab4 WHERE (col1 > 862.52)

statement ok
CREATE VIEW view_2_tab4_919 AS SELECT pk, col0 FROM tab4 WHERE NOT ((col1 > 862.52))

statement ok
CREATE VIEW view_3_tab4_919 AS SELECT pk FROM view_1_tab4_919

query II rowsort label-4600-1
SELECT pk, col0 FROM tab4 WHERE (col1 > 862.52)
----
28 values hashing to 84a7d0eceb861e09717d399a6f37745c

query II rowsort label-4600-2
SELECT pk, col0 FROM tab4 WHERE NOT ((col1 > 862.52))
----
172 values hashing to c22560a18113d6573977f8492c8dd475

query II rowsort label-4600-1
SELECT pk, col0 FROM view_1_tab4_919
----
28 values hashing to 84a7d0eceb861e09717d399a6f37745c

query II rowsort label-4600-2
SELECT pk, col0 FROM view_2_tab4_919
----
172 values hashing to c22560a18113d6573977f8492c8dd475

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col1 > 862.52) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT ((col1 > 862.52))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_919 UNION ALL SELECT pk, col0 FROM view_2_tab4_919
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col1 > 862.52) UNION SELECT pk, col0 FROM tab4 WHERE NOT ((col1 > 862.52))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_919 UNION SELECT pk, col0 FROM view_2_tab4_919
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-4600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE (col1 > 862.52) ) AS tab4_919
----
14 values hashing to a05c585baac87e53efe2bf03fe59e470

query I rowsort label-4600-3
SELECT * FROM view_3_tab4_919
----
14 values hashing to a05c585baac87e53efe2bf03fe59e470

query I rowsort label-4600-3
SELECT pk FROM tab4 WHERE (col1 > 862.52)
----
14 values hashing to a05c585baac87e53efe2bf03fe59e470

statement ok
DROP VIEW view_1_tab4_919

statement ok
DROP VIEW view_2_tab4_919

statement ok
DROP VIEW view_3_tab4_919

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_920') DROP VIEW view_1_tab0_920

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_920

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_920') DROP VIEW view_2_tab0_920

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_920

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_920') DROP VIEW view_3_tab0_920

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_920

statement ok
CREATE VIEW view_1_tab0_920 AS SELECT pk, col0 FROM tab0 WHERE col4 >= 913.54 OR (col1 < 0.76)

statement ok
CREATE VIEW view_2_tab0_920 AS SELECT pk, col0 FROM tab0 WHERE NOT (col4 >= 913.54 OR (col1 < 0.76))

statement ok
CREATE VIEW view_3_tab0_920 AS SELECT pk FROM view_1_tab0_920

query II rowsort label-4700-1
SELECT pk, col0 FROM tab0 WHERE col4 >= 913.54 OR (col1 < 0.76)
----
18 values hashing to 2b0c5528461a0e0ccbc8b63d73b2d3eb

query II rowsort label-4700-2
SELECT pk, col0 FROM tab0 WHERE NOT (col4 >= 913.54 OR (col1 < 0.76))
----
182 values hashing to c10d29cb23261ef6c671c33edc720908

query II rowsort label-4700-1
SELECT pk, col0 FROM view_1_tab0_920
----
18 values hashing to 2b0c5528461a0e0ccbc8b63d73b2d3eb

query II rowsort label-4700-2
SELECT pk, col0 FROM view_2_tab0_920
----
182 values hashing to c10d29cb23261ef6c671c33edc720908

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col4 >= 913.54 OR (col1 < 0.76) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col4 >= 913.54 OR (col1 < 0.76))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_920 UNION ALL SELECT pk, col0 FROM view_2_tab0_920
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col4 >= 913.54 OR (col1 < 0.76) UNION SELECT pk, col0 FROM tab0 WHERE NOT (col4 >= 913.54 OR (col1 < 0.76))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_920 UNION SELECT pk, col0 FROM view_2_tab0_920
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-4700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col4 >= 913.54 OR (col1 < 0.76) ) AS tab0_920
----
9 values hashing to 1cdf9620609bedcf6d89df39a6288199

query I rowsort label-4700-3
SELECT * FROM view_3_tab0_920
----
9 values hashing to 1cdf9620609bedcf6d89df39a6288199

query I rowsort label-4700-3
SELECT pk FROM tab0 WHERE col4 >= 913.54 OR (col1 < 0.76)
----
9 values hashing to 1cdf9620609bedcf6d89df39a6288199

statement ok
DROP VIEW view_1_tab0_920

statement ok
DROP VIEW view_2_tab0_920

statement ok
DROP VIEW view_3_tab0_920

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_920') DROP VIEW view_1_tab1_920

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_920

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_920') DROP VIEW view_2_tab1_920

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_920

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_920') DROP VIEW view_3_tab1_920

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_920

statement ok
CREATE VIEW view_1_tab1_920 AS SELECT pk, col0 FROM tab1 WHERE col4 >= 913.54 OR (col1 < 0.76)

statement ok
CREATE VIEW view_2_tab1_920 AS SELECT pk, col0 FROM tab1 WHERE NOT (col4 >= 913.54 OR (col1 < 0.76))

statement ok
CREATE VIEW view_3_tab1_920 AS SELECT pk FROM view_1_tab1_920

query II rowsort label-4700-1
SELECT pk, col0 FROM tab1 WHERE col4 >= 913.54 OR (col1 < 0.76)
----
18 values hashing to 2b0c5528461a0e0ccbc8b63d73b2d3eb

query II rowsort label-4700-2
SELECT pk, col0 FROM tab1 WHERE NOT (col4 >= 913.54 OR (col1 < 0.76))
----
182 values hashing to c10d29cb23261ef6c671c33edc720908

query II rowsort label-4700-1
SELECT pk, col0 FROM view_1_tab1_920
----
18 values hashing to 2b0c5528461a0e0ccbc8b63d73b2d3eb

query II rowsort label-4700-2
SELECT pk, col0 FROM view_2_tab1_920
----
182 values hashing to c10d29cb23261ef6c671c33edc720908

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col4 >= 913.54 OR (col1 < 0.76) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col4 >= 913.54 OR (col1 < 0.76))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_920 UNION ALL SELECT pk, col0 FROM view_2_tab1_920
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col4 >= 913.54 OR (col1 < 0.76) UNION SELECT pk, col0 FROM tab1 WHERE NOT (col4 >= 913.54 OR (col1 < 0.76))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_920 UNION SELECT pk, col0 FROM view_2_tab1_920
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-4700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col4 >= 913.54 OR (col1 < 0.76) ) AS tab1_920
----
9 values hashing to 1cdf9620609bedcf6d89df39a6288199

query I rowsort label-4700-3
SELECT * FROM view_3_tab1_920
----
9 values hashing to 1cdf9620609bedcf6d89df39a6288199

query I rowsort label-4700-3
SELECT pk FROM tab1 WHERE col4 >= 913.54 OR (col1 < 0.76)
----
9 values hashing to 1cdf9620609bedcf6d89df39a6288199

statement ok
DROP VIEW view_1_tab1_920

statement ok
DROP VIEW view_2_tab1_920

statement ok
DROP VIEW view_3_tab1_920

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_920') DROP VIEW view_1_tab2_920

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_920

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_920') DROP VIEW view_2_tab2_920

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_920

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_920') DROP VIEW view_3_tab2_920

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_920

statement ok
CREATE VIEW view_1_tab2_920 AS SELECT pk, col0 FROM tab2 WHERE col4 >= 913.54 OR (col1 < 0.76)

statement ok
CREATE VIEW view_2_tab2_920 AS SELECT pk, col0 FROM tab2 WHERE NOT (col4 >= 913.54 OR (col1 < 0.76))

statement ok
CREATE VIEW view_3_tab2_920 AS SELECT pk FROM view_1_tab2_920

query II rowsort label-4700-1
SELECT pk, col0 FROM tab2 WHERE col4 >= 913.54 OR (col1 < 0.76)
----
18 values hashing to 2b0c5528461a0e0ccbc8b63d73b2d3eb

query II rowsort label-4700-2
SELECT pk, col0 FROM tab2 WHERE NOT (col4 >= 913.54 OR (col1 < 0.76))
----
182 values hashing to c10d29cb23261ef6c671c33edc720908

query II rowsort label-4700-1
SELECT pk, col0 FROM view_1_tab2_920
----
18 values hashing to 2b0c5528461a0e0ccbc8b63d73b2d3eb

query II rowsort label-4700-2
SELECT pk, col0 FROM view_2_tab2_920
----
182 values hashing to c10d29cb23261ef6c671c33edc720908

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col4 >= 913.54 OR (col1 < 0.76) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col4 >= 913.54 OR (col1 < 0.76))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_920 UNION ALL SELECT pk, col0 FROM view_2_tab2_920
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col4 >= 913.54 OR (col1 < 0.76) UNION SELECT pk, col0 FROM tab2 WHERE NOT (col4 >= 913.54 OR (col1 < 0.76))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_920 UNION SELECT pk, col0 FROM view_2_tab2_920
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-4700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col4 >= 913.54 OR (col1 < 0.76) ) AS tab2_920
----
9 values hashing to 1cdf9620609bedcf6d89df39a6288199

query I rowsort label-4700-3
SELECT * FROM view_3_tab2_920
----
9 values hashing to 1cdf9620609bedcf6d89df39a6288199

query I rowsort label-4700-3
SELECT pk FROM tab2 WHERE col4 >= 913.54 OR (col1 < 0.76)
----
9 values hashing to 1cdf9620609bedcf6d89df39a6288199

statement ok
DROP VIEW view_1_tab2_920

statement ok
DROP VIEW view_2_tab2_920

statement ok
DROP VIEW view_3_tab2_920

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_920') DROP VIEW view_1_tab3_920

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_920

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_920') DROP VIEW view_2_tab3_920

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_920

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_920') DROP VIEW view_3_tab3_920

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_920

statement ok
CREATE VIEW view_1_tab3_920 AS SELECT pk, col0 FROM tab3 WHERE col4 >= 913.54 OR (col1 < 0.76)

statement ok
CREATE VIEW view_2_tab3_920 AS SELECT pk, col0 FROM tab3 WHERE NOT (col4 >= 913.54 OR (col1 < 0.76))

statement ok
CREATE VIEW view_3_tab3_920 AS SELECT pk FROM view_1_tab3_920

query II rowsort label-4700-1
SELECT pk, col0 FROM tab3 WHERE col4 >= 913.54 OR (col1 < 0.76)
----
18 values hashing to 2b0c5528461a0e0ccbc8b63d73b2d3eb

query II rowsort label-4700-2
SELECT pk, col0 FROM tab3 WHERE NOT (col4 >= 913.54 OR (col1 < 0.76))
----
182 values hashing to c10d29cb23261ef6c671c33edc720908

query II rowsort label-4700-1
SELECT pk, col0 FROM view_1_tab3_920
----
18 values hashing to 2b0c5528461a0e0ccbc8b63d73b2d3eb

query II rowsort label-4700-2
SELECT pk, col0 FROM view_2_tab3_920
----
182 values hashing to c10d29cb23261ef6c671c33edc720908

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col4 >= 913.54 OR (col1 < 0.76) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col4 >= 913.54 OR (col1 < 0.76))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_920 UNION ALL SELECT pk, col0 FROM view_2_tab3_920
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col4 >= 913.54 OR (col1 < 0.76) UNION SELECT pk, col0 FROM tab3 WHERE NOT (col4 >= 913.54 OR (col1 < 0.76))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_920 UNION SELECT pk, col0 FROM view_2_tab3_920
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-4700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col4 >= 913.54 OR (col1 < 0.76) ) AS tab3_920
----
9 values hashing to 1cdf9620609bedcf6d89df39a6288199

query I rowsort label-4700-3
SELECT * FROM view_3_tab3_920
----
9 values hashing to 1cdf9620609bedcf6d89df39a6288199

query I rowsort label-4700-3
SELECT pk FROM tab3 WHERE col4 >= 913.54 OR (col1 < 0.76)
----
9 values hashing to 1cdf9620609bedcf6d89df39a6288199

statement ok
DROP VIEW view_1_tab3_920

statement ok
DROP VIEW view_2_tab3_920

statement ok
DROP VIEW view_3_tab3_920

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_920') DROP VIEW view_1_tab4_920

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_920

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_920') DROP VIEW view_2_tab4_920

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_920

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_920') DROP VIEW view_3_tab4_920

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_920

statement ok
CREATE VIEW view_1_tab4_920 AS SELECT pk, col0 FROM tab4 WHERE col4 >= 913.54 OR (col1 < 0.76)

statement ok
CREATE VIEW view_2_tab4_920 AS SELECT pk, col0 FROM tab4 WHERE NOT (col4 >= 913.54 OR (col1 < 0.76))

statement ok
CREATE VIEW view_3_tab4_920 AS SELECT pk FROM view_1_tab4_920

query II rowsort label-4700-1
SELECT pk, col0 FROM tab4 WHERE col4 >= 913.54 OR (col1 < 0.76)
----
18 values hashing to 2b0c5528461a0e0ccbc8b63d73b2d3eb

query II rowsort label-4700-2
SELECT pk, col0 FROM tab4 WHERE NOT (col4 >= 913.54 OR (col1 < 0.76))
----
182 values hashing to c10d29cb23261ef6c671c33edc720908

query II rowsort label-4700-1
SELECT pk, col0 FROM view_1_tab4_920
----
18 values hashing to 2b0c5528461a0e0ccbc8b63d73b2d3eb

query II rowsort label-4700-2
SELECT pk, col0 FROM view_2_tab4_920
----
182 values hashing to c10d29cb23261ef6c671c33edc720908

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col4 >= 913.54 OR (col1 < 0.76) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col4 >= 913.54 OR (col1 < 0.76))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_920 UNION ALL SELECT pk, col0 FROM view_2_tab4_920
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col4 >= 913.54 OR (col1 < 0.76) UNION SELECT pk, col0 FROM tab4 WHERE NOT (col4 >= 913.54 OR (col1 < 0.76))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_920 UNION SELECT pk, col0 FROM view_2_tab4_920
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-4700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col4 >= 913.54 OR (col1 < 0.76) ) AS tab4_920
----
9 values hashing to 1cdf9620609bedcf6d89df39a6288199

query I rowsort label-4700-3
SELECT * FROM view_3_tab4_920
----
9 values hashing to 1cdf9620609bedcf6d89df39a6288199

query I rowsort label-4700-3
SELECT pk FROM tab4 WHERE col4 >= 913.54 OR (col1 < 0.76)
----
9 values hashing to 1cdf9620609bedcf6d89df39a6288199

statement ok
DROP VIEW view_1_tab4_920

statement ok
DROP VIEW view_2_tab4_920

statement ok
DROP VIEW view_3_tab4_920

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_921') DROP VIEW view_1_tab0_921

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_921

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_921') DROP VIEW view_2_tab0_921

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_921

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_921') DROP VIEW view_3_tab0_921

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_921

statement ok
CREATE VIEW view_1_tab0_921 AS SELECT pk, col0 FROM tab0 WHERE (col0 = 185)

statement ok
CREATE VIEW view_2_tab0_921 AS SELECT pk, col0 FROM tab0 WHERE NOT ((col0 = 185))

statement ok
CREATE VIEW view_3_tab0_921 AS SELECT pk FROM view_1_tab0_921

query II rowsort label-4800-1
SELECT pk, col0 FROM tab0 WHERE (col0 = 185)
----

query II rowsort label-4800-2
SELECT pk, col0 FROM tab0 WHERE NOT ((col0 = 185))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-4800-1
SELECT pk, col0 FROM view_1_tab0_921
----

query II rowsort label-4800-2
SELECT pk, col0 FROM view_2_tab0_921
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col0 = 185) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT ((col0 = 185))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_921 UNION ALL SELECT pk, col0 FROM view_2_tab0_921
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col0 = 185) UNION SELECT pk, col0 FROM tab0 WHERE NOT ((col0 = 185))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_921 UNION SELECT pk, col0 FROM view_2_tab0_921
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-4800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE (col0 = 185) ) AS tab0_921
----

query I rowsort label-4800-3
SELECT * FROM view_3_tab0_921
----

query I rowsort label-4800-3
SELECT pk FROM tab0 WHERE (col0 = 185)
----

statement ok
DROP VIEW view_1_tab0_921

statement ok
DROP VIEW view_2_tab0_921

statement ok
DROP VIEW view_3_tab0_921

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_921') DROP VIEW view_1_tab1_921

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_921

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_921') DROP VIEW view_2_tab1_921

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_921

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_921') DROP VIEW view_3_tab1_921

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_921

statement ok
CREATE VIEW view_1_tab1_921 AS SELECT pk, col0 FROM tab1 WHERE (col0 = 185)

statement ok
CREATE VIEW view_2_tab1_921 AS SELECT pk, col0 FROM tab1 WHERE NOT ((col0 = 185))

statement ok
CREATE VIEW view_3_tab1_921 AS SELECT pk FROM view_1_tab1_921

query II rowsort label-4800-1
SELECT pk, col0 FROM tab1 WHERE (col0 = 185)
----

query II rowsort label-4800-2
SELECT pk, col0 FROM tab1 WHERE NOT ((col0 = 185))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-4800-1
SELECT pk, col0 FROM view_1_tab1_921
----

query II rowsort label-4800-2
SELECT pk, col0 FROM view_2_tab1_921
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col0 = 185) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT ((col0 = 185))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_921 UNION ALL SELECT pk, col0 FROM view_2_tab1_921
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col0 = 185) UNION SELECT pk, col0 FROM tab1 WHERE NOT ((col0 = 185))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_921 UNION SELECT pk, col0 FROM view_2_tab1_921
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-4800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE (col0 = 185) ) AS tab1_921
----

query I rowsort label-4800-3
SELECT * FROM view_3_tab1_921
----

query I rowsort label-4800-3
SELECT pk FROM tab1 WHERE (col0 = 185)
----

statement ok
DROP VIEW view_1_tab1_921

statement ok
DROP VIEW view_2_tab1_921

statement ok
DROP VIEW view_3_tab1_921

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_921') DROP VIEW view_1_tab2_921

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_921

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_921') DROP VIEW view_2_tab2_921

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_921

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_921') DROP VIEW view_3_tab2_921

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_921

statement ok
CREATE VIEW view_1_tab2_921 AS SELECT pk, col0 FROM tab2 WHERE (col0 = 185)

statement ok
CREATE VIEW view_2_tab2_921 AS SELECT pk, col0 FROM tab2 WHERE NOT ((col0 = 185))

statement ok
CREATE VIEW view_3_tab2_921 AS SELECT pk FROM view_1_tab2_921

query II rowsort label-4800-1
SELECT pk, col0 FROM tab2 WHERE (col0 = 185)
----

query II rowsort label-4800-2
SELECT pk, col0 FROM tab2 WHERE NOT ((col0 = 185))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-4800-1
SELECT pk, col0 FROM view_1_tab2_921
----

query II rowsort label-4800-2
SELECT pk, col0 FROM view_2_tab2_921
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col0 = 185) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT ((col0 = 185))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_921 UNION ALL SELECT pk, col0 FROM view_2_tab2_921
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col0 = 185) UNION SELECT pk, col0 FROM tab2 WHERE NOT ((col0 = 185))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_921 UNION SELECT pk, col0 FROM view_2_tab2_921
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-4800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE (col0 = 185) ) AS tab2_921
----

query I rowsort label-4800-3
SELECT * FROM view_3_tab2_921
----

query I rowsort label-4800-3
SELECT pk FROM tab2 WHERE (col0 = 185)
----

statement ok
DROP VIEW view_1_tab2_921

statement ok
DROP VIEW view_2_tab2_921

statement ok
DROP VIEW view_3_tab2_921

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_921') DROP VIEW view_1_tab3_921

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_921

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_921') DROP VIEW view_2_tab3_921

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_921

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_921') DROP VIEW view_3_tab3_921

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_921

statement ok
CREATE VIEW view_1_tab3_921 AS SELECT pk, col0 FROM tab3 WHERE (col0 = 185)

statement ok
CREATE VIEW view_2_tab3_921 AS SELECT pk, col0 FROM tab3 WHERE NOT ((col0 = 185))

statement ok
CREATE VIEW view_3_tab3_921 AS SELECT pk FROM view_1_tab3_921

query II rowsort label-4800-1
SELECT pk, col0 FROM tab3 WHERE (col0 = 185)
----

query II rowsort label-4800-2
SELECT pk, col0 FROM tab3 WHERE NOT ((col0 = 185))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-4800-1
SELECT pk, col0 FROM view_1_tab3_921
----

query II rowsort label-4800-2
SELECT pk, col0 FROM view_2_tab3_921
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col0 = 185) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT ((col0 = 185))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_921 UNION ALL SELECT pk, col0 FROM view_2_tab3_921
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col0 = 185) UNION SELECT pk, col0 FROM tab3 WHERE NOT ((col0 = 185))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_921 UNION SELECT pk, col0 FROM view_2_tab3_921
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-4800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE (col0 = 185) ) AS tab3_921
----

query I rowsort label-4800-3
SELECT * FROM view_3_tab3_921
----

query I rowsort label-4800-3
SELECT pk FROM tab3 WHERE (col0 = 185)
----

statement ok
DROP VIEW view_1_tab3_921

statement ok
DROP VIEW view_2_tab3_921

statement ok
DROP VIEW view_3_tab3_921

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_921') DROP VIEW view_1_tab4_921

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_921

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_921') DROP VIEW view_2_tab4_921

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_921

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_921') DROP VIEW view_3_tab4_921

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_921

statement ok
CREATE VIEW view_1_tab4_921 AS SELECT pk, col0 FROM tab4 WHERE (col0 = 185)

statement ok
CREATE VIEW view_2_tab4_921 AS SELECT pk, col0 FROM tab4 WHERE NOT ((col0 = 185))

statement ok
CREATE VIEW view_3_tab4_921 AS SELECT pk FROM view_1_tab4_921

query II rowsort label-4800-1
SELECT pk, col0 FROM tab4 WHERE (col0 = 185)
----

query II rowsort label-4800-2
SELECT pk, col0 FROM tab4 WHERE NOT ((col0 = 185))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-4800-1
SELECT pk, col0 FROM view_1_tab4_921
----

query II rowsort label-4800-2
SELECT pk, col0 FROM view_2_tab4_921
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col0 = 185) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT ((col0 = 185))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_921 UNION ALL SELECT pk, col0 FROM view_2_tab4_921
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col0 = 185) UNION SELECT pk, col0 FROM tab4 WHERE NOT ((col0 = 185))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_921 UNION SELECT pk, col0 FROM view_2_tab4_921
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-4800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE (col0 = 185) ) AS tab4_921
----

query I rowsort label-4800-3
SELECT * FROM view_3_tab4_921
----

query I rowsort label-4800-3
SELECT pk FROM tab4 WHERE (col0 = 185)
----

statement ok
DROP VIEW view_1_tab4_921

statement ok
DROP VIEW view_2_tab4_921

statement ok
DROP VIEW view_3_tab4_921

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_922') DROP VIEW view_1_tab0_922

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_922

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_922') DROP VIEW view_2_tab0_922

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_922

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_922') DROP VIEW view_3_tab0_922

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_922

statement ok
CREATE VIEW view_1_tab0_922 AS SELECT pk, col0 FROM tab0 WHERE col4 < 174.43

statement ok
CREATE VIEW view_2_tab0_922 AS SELECT pk, col0 FROM tab0 WHERE NOT (col4 < 174.43)

statement ok
CREATE VIEW view_3_tab0_922 AS SELECT pk FROM view_1_tab0_922

query II rowsort label-4900-1
SELECT pk, col0 FROM tab0 WHERE col4 < 174.43
----
40 values hashing to d2e32c9df9ee8c60c62a61508debd829

query II rowsort label-4900-2
SELECT pk, col0 FROM tab0 WHERE NOT (col4 < 174.43)
----
160 values hashing to 2bde80e3b51c55ec24aec8c529882749

query II rowsort label-4900-1
SELECT pk, col0 FROM view_1_tab0_922
----
40 values hashing to d2e32c9df9ee8c60c62a61508debd829

query II rowsort label-4900-2
SELECT pk, col0 FROM view_2_tab0_922
----
160 values hashing to 2bde80e3b51c55ec24aec8c529882749

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col4 < 174.43 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col4 < 174.43)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_922 UNION ALL SELECT pk, col0 FROM view_2_tab0_922
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col4 < 174.43 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col4 < 174.43)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_922 UNION SELECT pk, col0 FROM view_2_tab0_922
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-4900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col4 < 174.43 ) AS tab0_922
----
20 values hashing to d0d6d438c0138167e2acb94d95bf6707

query I rowsort label-4900-3
SELECT * FROM view_3_tab0_922
----
20 values hashing to d0d6d438c0138167e2acb94d95bf6707

query I rowsort label-4900-3
SELECT pk FROM tab0 WHERE col4 < 174.43
----
20 values hashing to d0d6d438c0138167e2acb94d95bf6707

statement ok
DROP VIEW view_1_tab0_922

statement ok
DROP VIEW view_2_tab0_922

statement ok
DROP VIEW view_3_tab0_922

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_922') DROP VIEW view_1_tab1_922

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_922

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_922') DROP VIEW view_2_tab1_922

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_922

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_922') DROP VIEW view_3_tab1_922

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_922

statement ok
CREATE VIEW view_1_tab1_922 AS SELECT pk, col0 FROM tab1 WHERE col4 < 174.43

statement ok
CREATE VIEW view_2_tab1_922 AS SELECT pk, col0 FROM tab1 WHERE NOT (col4 < 174.43)

statement ok
CREATE VIEW view_3_tab1_922 AS SELECT pk FROM view_1_tab1_922

query II rowsort label-4900-1
SELECT pk, col0 FROM tab1 WHERE col4 < 174.43
----
40 values hashing to d2e32c9df9ee8c60c62a61508debd829

query II rowsort label-4900-2
SELECT pk, col0 FROM tab1 WHERE NOT (col4 < 174.43)
----
160 values hashing to 2bde80e3b51c55ec24aec8c529882749

query II rowsort label-4900-1
SELECT pk, col0 FROM view_1_tab1_922
----
40 values hashing to d2e32c9df9ee8c60c62a61508debd829

query II rowsort label-4900-2
SELECT pk, col0 FROM view_2_tab1_922
----
160 values hashing to 2bde80e3b51c55ec24aec8c529882749

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col4 < 174.43 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col4 < 174.43)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_922 UNION ALL SELECT pk, col0 FROM view_2_tab1_922
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col4 < 174.43 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col4 < 174.43)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_922 UNION SELECT pk, col0 FROM view_2_tab1_922
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-4900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col4 < 174.43 ) AS tab1_922
----
20 values hashing to d0d6d438c0138167e2acb94d95bf6707

query I rowsort label-4900-3
SELECT * FROM view_3_tab1_922
----
20 values hashing to d0d6d438c0138167e2acb94d95bf6707

query I rowsort label-4900-3
SELECT pk FROM tab1 WHERE col4 < 174.43
----
20 values hashing to d0d6d438c0138167e2acb94d95bf6707

statement ok
DROP VIEW view_1_tab1_922

statement ok
DROP VIEW view_2_tab1_922

statement ok
DROP VIEW view_3_tab1_922

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_922') DROP VIEW view_1_tab2_922

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_922

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_922') DROP VIEW view_2_tab2_922

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_922

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_922') DROP VIEW view_3_tab2_922

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_922

statement ok
CREATE VIEW view_1_tab2_922 AS SELECT pk, col0 FROM tab2 WHERE col4 < 174.43

statement ok
CREATE VIEW view_2_tab2_922 AS SELECT pk, col0 FROM tab2 WHERE NOT (col4 < 174.43)

statement ok
CREATE VIEW view_3_tab2_922 AS SELECT pk FROM view_1_tab2_922

query II rowsort label-4900-1
SELECT pk, col0 FROM tab2 WHERE col4 < 174.43
----
40 values hashing to d2e32c9df9ee8c60c62a61508debd829

query II rowsort label-4900-2
SELECT pk, col0 FROM tab2 WHERE NOT (col4 < 174.43)
----
160 values hashing to 2bde80e3b51c55ec24aec8c529882749

query II rowsort label-4900-1
SELECT pk, col0 FROM view_1_tab2_922
----
40 values hashing to d2e32c9df9ee8c60c62a61508debd829

query II rowsort label-4900-2
SELECT pk, col0 FROM view_2_tab2_922
----
160 values hashing to 2bde80e3b51c55ec24aec8c529882749

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col4 < 174.43 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col4 < 174.43)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_922 UNION ALL SELECT pk, col0 FROM view_2_tab2_922
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col4 < 174.43 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col4 < 174.43)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_922 UNION SELECT pk, col0 FROM view_2_tab2_922
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-4900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col4 < 174.43 ) AS tab2_922
----
20 values hashing to d0d6d438c0138167e2acb94d95bf6707

query I rowsort label-4900-3
SELECT * FROM view_3_tab2_922
----
20 values hashing to d0d6d438c0138167e2acb94d95bf6707

query I rowsort label-4900-3
SELECT pk FROM tab2 WHERE col4 < 174.43
----
20 values hashing to d0d6d438c0138167e2acb94d95bf6707

statement ok
DROP VIEW view_1_tab2_922

statement ok
DROP VIEW view_2_tab2_922

statement ok
DROP VIEW view_3_tab2_922

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_922') DROP VIEW view_1_tab3_922

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_922

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_922') DROP VIEW view_2_tab3_922

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_922

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_922') DROP VIEW view_3_tab3_922

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_922

statement ok
CREATE VIEW view_1_tab3_922 AS SELECT pk, col0 FROM tab3 WHERE col4 < 174.43

statement ok
CREATE VIEW view_2_tab3_922 AS SELECT pk, col0 FROM tab3 WHERE NOT (col4 < 174.43)

statement ok
CREATE VIEW view_3_tab3_922 AS SELECT pk FROM view_1_tab3_922

query II rowsort label-4900-1
SELECT pk, col0 FROM tab3 WHERE col4 < 174.43
----
40 values hashing to d2e32c9df9ee8c60c62a61508debd829

query II rowsort label-4900-2
SELECT pk, col0 FROM tab3 WHERE NOT (col4 < 174.43)
----
160 values hashing to 2bde80e3b51c55ec24aec8c529882749

query II rowsort label-4900-1
SELECT pk, col0 FROM view_1_tab3_922
----
40 values hashing to d2e32c9df9ee8c60c62a61508debd829

query II rowsort label-4900-2
SELECT pk, col0 FROM view_2_tab3_922
----
160 values hashing to 2bde80e3b51c55ec24aec8c529882749

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col4 < 174.43 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col4 < 174.43)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_922 UNION ALL SELECT pk, col0 FROM view_2_tab3_922
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col4 < 174.43 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col4 < 174.43)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_922 UNION SELECT pk, col0 FROM view_2_tab3_922
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-4900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col4 < 174.43 ) AS tab3_922
----
20 values hashing to d0d6d438c0138167e2acb94d95bf6707

query I rowsort label-4900-3
SELECT * FROM view_3_tab3_922
----
20 values hashing to d0d6d438c0138167e2acb94d95bf6707

query I rowsort label-4900-3
SELECT pk FROM tab3 WHERE col4 < 174.43
----
20 values hashing to d0d6d438c0138167e2acb94d95bf6707

statement ok
DROP VIEW view_1_tab3_922

statement ok
DROP VIEW view_2_tab3_922

statement ok
DROP VIEW view_3_tab3_922

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_922') DROP VIEW view_1_tab4_922

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_922

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_922') DROP VIEW view_2_tab4_922

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_922

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_922') DROP VIEW view_3_tab4_922

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_922

statement ok
CREATE VIEW view_1_tab4_922 AS SELECT pk, col0 FROM tab4 WHERE col4 < 174.43

statement ok
CREATE VIEW view_2_tab4_922 AS SELECT pk, col0 FROM tab4 WHERE NOT (col4 < 174.43)

statement ok
CREATE VIEW view_3_tab4_922 AS SELECT pk FROM view_1_tab4_922

query II rowsort label-4900-1
SELECT pk, col0 FROM tab4 WHERE col4 < 174.43
----
40 values hashing to d2e32c9df9ee8c60c62a61508debd829

query II rowsort label-4900-2
SELECT pk, col0 FROM tab4 WHERE NOT (col4 < 174.43)
----
160 values hashing to 2bde80e3b51c55ec24aec8c529882749

query II rowsort label-4900-1
SELECT pk, col0 FROM view_1_tab4_922
----
40 values hashing to d2e32c9df9ee8c60c62a61508debd829

query II rowsort label-4900-2
SELECT pk, col0 FROM view_2_tab4_922
----
160 values hashing to 2bde80e3b51c55ec24aec8c529882749

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col4 < 174.43 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col4 < 174.43)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_922 UNION ALL SELECT pk, col0 FROM view_2_tab4_922
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col4 < 174.43 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col4 < 174.43)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_922 UNION SELECT pk, col0 FROM view_2_tab4_922
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-4900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col4 < 174.43 ) AS tab4_922
----
20 values hashing to d0d6d438c0138167e2acb94d95bf6707

query I rowsort label-4900-3
SELECT * FROM view_3_tab4_922
----
20 values hashing to d0d6d438c0138167e2acb94d95bf6707

query I rowsort label-4900-3
SELECT pk FROM tab4 WHERE col4 < 174.43
----
20 values hashing to d0d6d438c0138167e2acb94d95bf6707

statement ok
DROP VIEW view_1_tab4_922

statement ok
DROP VIEW view_2_tab4_922

statement ok
DROP VIEW view_3_tab4_922

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_923') DROP VIEW view_1_tab0_923

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_923

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_923') DROP VIEW view_2_tab0_923

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_923

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_923') DROP VIEW view_3_tab0_923

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_923

statement ok
CREATE VIEW view_1_tab0_923 AS SELECT pk, col0 FROM tab0 WHERE col3 >= 981

statement ok
CREATE VIEW view_2_tab0_923 AS SELECT pk, col0 FROM tab0 WHERE NOT (col3 >= 981)

statement ok
CREATE VIEW view_3_tab0_923 AS SELECT pk FROM view_1_tab0_923

query II rowsort label-5000-1
SELECT pk, col0 FROM tab0 WHERE col3 >= 981
----
35
285

query II rowsort label-5000-2
SELECT pk, col0 FROM tab0 WHERE NOT (col3 >= 981)
----
198 values hashing to d75b426f1ee9fa6af8a80f6184c34d52

query II rowsort label-5000-1
SELECT pk, col0 FROM view_1_tab0_923
----
35
285

query II rowsort label-5000-2
SELECT pk, col0 FROM view_2_tab0_923
----
198 values hashing to d75b426f1ee9fa6af8a80f6184c34d52

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 >= 981 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col3 >= 981)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_923 UNION ALL SELECT pk, col0 FROM view_2_tab0_923
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 >= 981 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col3 >= 981)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_923 UNION SELECT pk, col0 FROM view_2_tab0_923
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-5000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col3 >= 981 ) AS tab0_923
----
35

query I rowsort label-5000-3
SELECT * FROM view_3_tab0_923
----
35

query I rowsort label-5000-3
SELECT pk FROM tab0 WHERE col3 >= 981
----
35

statement ok
DROP VIEW view_1_tab0_923

statement ok
DROP VIEW view_2_tab0_923

statement ok
DROP VIEW view_3_tab0_923

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_923') DROP VIEW view_1_tab1_923

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_923

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_923') DROP VIEW view_2_tab1_923

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_923

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_923') DROP VIEW view_3_tab1_923

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_923

statement ok
CREATE VIEW view_1_tab1_923 AS SELECT pk, col0 FROM tab1 WHERE col3 >= 981

statement ok
CREATE VIEW view_2_tab1_923 AS SELECT pk, col0 FROM tab1 WHERE NOT (col3 >= 981)

statement ok
CREATE VIEW view_3_tab1_923 AS SELECT pk FROM view_1_tab1_923

query II rowsort label-5000-1
SELECT pk, col0 FROM tab1 WHERE col3 >= 981
----
35
285

query II rowsort label-5000-2
SELECT pk, col0 FROM tab1 WHERE NOT (col3 >= 981)
----
198 values hashing to d75b426f1ee9fa6af8a80f6184c34d52

query II rowsort label-5000-1
SELECT pk, col0 FROM view_1_tab1_923
----
35
285

query II rowsort label-5000-2
SELECT pk, col0 FROM view_2_tab1_923
----
198 values hashing to d75b426f1ee9fa6af8a80f6184c34d52

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 >= 981 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col3 >= 981)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_923 UNION ALL SELECT pk, col0 FROM view_2_tab1_923
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 >= 981 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col3 >= 981)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_923 UNION SELECT pk, col0 FROM view_2_tab1_923
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-5000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col3 >= 981 ) AS tab1_923
----
35

query I rowsort label-5000-3
SELECT * FROM view_3_tab1_923
----
35

query I rowsort label-5000-3
SELECT pk FROM tab1 WHERE col3 >= 981
----
35

statement ok
DROP VIEW view_1_tab1_923

statement ok
DROP VIEW view_2_tab1_923

statement ok
DROP VIEW view_3_tab1_923

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_923') DROP VIEW view_1_tab2_923

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_923

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_923') DROP VIEW view_2_tab2_923

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_923

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_923') DROP VIEW view_3_tab2_923

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_923

statement ok
CREATE VIEW view_1_tab2_923 AS SELECT pk, col0 FROM tab2 WHERE col3 >= 981

statement ok
CREATE VIEW view_2_tab2_923 AS SELECT pk, col0 FROM tab2 WHERE NOT (col3 >= 981)

statement ok
CREATE VIEW view_3_tab2_923 AS SELECT pk FROM view_1_tab2_923

query II rowsort label-5000-1
SELECT pk, col0 FROM tab2 WHERE col3 >= 981
----
35
285

query II rowsort label-5000-2
SELECT pk, col0 FROM tab2 WHERE NOT (col3 >= 981)
----
198 values hashing to d75b426f1ee9fa6af8a80f6184c34d52

query II rowsort label-5000-1
SELECT pk, col0 FROM view_1_tab2_923
----
35
285

query II rowsort label-5000-2
SELECT pk, col0 FROM view_2_tab2_923
----
198 values hashing to d75b426f1ee9fa6af8a80f6184c34d52

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 >= 981 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col3 >= 981)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_923 UNION ALL SELECT pk, col0 FROM view_2_tab2_923
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 >= 981 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col3 >= 981)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_923 UNION SELECT pk, col0 FROM view_2_tab2_923
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-5000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col3 >= 981 ) AS tab2_923
----
35

query I rowsort label-5000-3
SELECT * FROM view_3_tab2_923
----
35

query I rowsort label-5000-3
SELECT pk FROM tab2 WHERE col3 >= 981
----
35

statement ok
DROP VIEW view_1_tab2_923

statement ok
DROP VIEW view_2_tab2_923

statement ok
DROP VIEW view_3_tab2_923

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_923') DROP VIEW view_1_tab3_923

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_923

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_923') DROP VIEW view_2_tab3_923

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_923

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_923') DROP VIEW view_3_tab3_923

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_923

statement ok
CREATE VIEW view_1_tab3_923 AS SELECT pk, col0 FROM tab3 WHERE col3 >= 981

statement ok
CREATE VIEW view_2_tab3_923 AS SELECT pk, col0 FROM tab3 WHERE NOT (col3 >= 981)

statement ok
CREATE VIEW view_3_tab3_923 AS SELECT pk FROM view_1_tab3_923

query II rowsort label-5000-1
SELECT pk, col0 FROM tab3 WHERE col3 >= 981
----
35
285

query II rowsort label-5000-2
SELECT pk, col0 FROM tab3 WHERE NOT (col3 >= 981)
----
198 values hashing to d75b426f1ee9fa6af8a80f6184c34d52

query II rowsort label-5000-1
SELECT pk, col0 FROM view_1_tab3_923
----
35
285

query II rowsort label-5000-2
SELECT pk, col0 FROM view_2_tab3_923
----
198 values hashing to d75b426f1ee9fa6af8a80f6184c34d52

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 >= 981 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col3 >= 981)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_923 UNION ALL SELECT pk, col0 FROM view_2_tab3_923
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 >= 981 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col3 >= 981)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_923 UNION SELECT pk, col0 FROM view_2_tab3_923
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-5000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col3 >= 981 ) AS tab3_923
----
35

query I rowsort label-5000-3
SELECT * FROM view_3_tab3_923
----
35

query I rowsort label-5000-3
SELECT pk FROM tab3 WHERE col3 >= 981
----
35

statement ok
DROP VIEW view_1_tab3_923

statement ok
DROP VIEW view_2_tab3_923

statement ok
DROP VIEW view_3_tab3_923

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_923') DROP VIEW view_1_tab4_923

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_923

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_923') DROP VIEW view_2_tab4_923

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_923

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_923') DROP VIEW view_3_tab4_923

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_923

statement ok
CREATE VIEW view_1_tab4_923 AS SELECT pk, col0 FROM tab4 WHERE col3 >= 981

statement ok
CREATE VIEW view_2_tab4_923 AS SELECT pk, col0 FROM tab4 WHERE NOT (col3 >= 981)

statement ok
CREATE VIEW view_3_tab4_923 AS SELECT pk FROM view_1_tab4_923

query II rowsort label-5000-1
SELECT pk, col0 FROM tab4 WHERE col3 >= 981
----
35
285

query II rowsort label-5000-2
SELECT pk, col0 FROM tab4 WHERE NOT (col3 >= 981)
----
198 values hashing to d75b426f1ee9fa6af8a80f6184c34d52

query II rowsort label-5000-1
SELECT pk, col0 FROM view_1_tab4_923
----
35
285

query II rowsort label-5000-2
SELECT pk, col0 FROM view_2_tab4_923
----
198 values hashing to d75b426f1ee9fa6af8a80f6184c34d52

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 >= 981 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col3 >= 981)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_923 UNION ALL SELECT pk, col0 FROM view_2_tab4_923
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 >= 981 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col3 >= 981)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_923 UNION SELECT pk, col0 FROM view_2_tab4_923
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-5000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col3 >= 981 ) AS tab4_923
----
35

query I rowsort label-5000-3
SELECT * FROM view_3_tab4_923
----
35

query I rowsort label-5000-3
SELECT pk FROM tab4 WHERE col3 >= 981
----
35

statement ok
DROP VIEW view_1_tab4_923

statement ok
DROP VIEW view_2_tab4_923

statement ok
DROP VIEW view_3_tab4_923

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_924') DROP VIEW view_1_tab0_924

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_924

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_924') DROP VIEW view_2_tab0_924

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_924

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_924') DROP VIEW view_3_tab0_924

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_924

statement ok
CREATE VIEW view_1_tab0_924 AS SELECT pk, col0 FROM tab0 WHERE ((col4 >= 877.43 AND col0 >= 110))

statement ok
CREATE VIEW view_2_tab0_924 AS SELECT pk, col0 FROM tab0 WHERE NOT (((col4 >= 877.43 AND col0 >= 110)))

statement ok
CREATE VIEW view_3_tab0_924 AS SELECT pk FROM view_1_tab0_924

query II rowsort label-5100-1
SELECT pk, col0 FROM tab0 WHERE ((col4 >= 877.43 AND col0 >= 110))
----
22 values hashing to 20caa2b6c6949775eaa237618cf934e3

query II rowsort label-5100-2
SELECT pk, col0 FROM tab0 WHERE NOT (((col4 >= 877.43 AND col0 >= 110)))
----
178 values hashing to 2588b180242ce39f84faf58d67c5d3e2

query II rowsort label-5100-1
SELECT pk, col0 FROM view_1_tab0_924
----
22 values hashing to 20caa2b6c6949775eaa237618cf934e3

query II rowsort label-5100-2
SELECT pk, col0 FROM view_2_tab0_924
----
178 values hashing to 2588b180242ce39f84faf58d67c5d3e2

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE ((col4 >= 877.43 AND col0 >= 110)) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (((col4 >= 877.43 AND col0 >= 110)))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_924 UNION ALL SELECT pk, col0 FROM view_2_tab0_924
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE ((col4 >= 877.43 AND col0 >= 110)) UNION SELECT pk, col0 FROM tab0 WHERE NOT (((col4 >= 877.43 AND col0 >= 110)))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_924 UNION SELECT pk, col0 FROM view_2_tab0_924
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-5100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE ((col4 >= 877.43 AND col0 >= 110)) ) AS tab0_924
----
11 values hashing to 38040a09288e2b82b9d880b53534d7ec

query I rowsort label-5100-3
SELECT * FROM view_3_tab0_924
----
11 values hashing to 38040a09288e2b82b9d880b53534d7ec

query I rowsort label-5100-3
SELECT pk FROM tab0 WHERE ((col4 >= 877.43 AND col0 >= 110))
----
11 values hashing to 38040a09288e2b82b9d880b53534d7ec

statement ok
DROP VIEW view_1_tab0_924

statement ok
DROP VIEW view_2_tab0_924

statement ok
DROP VIEW view_3_tab0_924

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_924') DROP VIEW view_1_tab1_924

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_924

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_924') DROP VIEW view_2_tab1_924

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_924

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_924') DROP VIEW view_3_tab1_924

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_924

statement ok
CREATE VIEW view_1_tab1_924 AS SELECT pk, col0 FROM tab1 WHERE ((col4 >= 877.43 AND col0 >= 110))

statement ok
CREATE VIEW view_2_tab1_924 AS SELECT pk, col0 FROM tab1 WHERE NOT (((col4 >= 877.43 AND col0 >= 110)))

statement ok
CREATE VIEW view_3_tab1_924 AS SELECT pk FROM view_1_tab1_924

query II rowsort label-5100-1
SELECT pk, col0 FROM tab1 WHERE ((col4 >= 877.43 AND col0 >= 110))
----
22 values hashing to 20caa2b6c6949775eaa237618cf934e3

query II rowsort label-5100-2
SELECT pk, col0 FROM tab1 WHERE NOT (((col4 >= 877.43 AND col0 >= 110)))
----
178 values hashing to 2588b180242ce39f84faf58d67c5d3e2

query II rowsort label-5100-1
SELECT pk, col0 FROM view_1_tab1_924
----
22 values hashing to 20caa2b6c6949775eaa237618cf934e3

query II rowsort label-5100-2
SELECT pk, col0 FROM view_2_tab1_924
----
178 values hashing to 2588b180242ce39f84faf58d67c5d3e2

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE ((col4 >= 877.43 AND col0 >= 110)) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (((col4 >= 877.43 AND col0 >= 110)))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_924 UNION ALL SELECT pk, col0 FROM view_2_tab1_924
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE ((col4 >= 877.43 AND col0 >= 110)) UNION SELECT pk, col0 FROM tab1 WHERE NOT (((col4 >= 877.43 AND col0 >= 110)))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_924 UNION SELECT pk, col0 FROM view_2_tab1_924
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-5100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE ((col4 >= 877.43 AND col0 >= 110)) ) AS tab1_924
----
11 values hashing to 38040a09288e2b82b9d880b53534d7ec

query I rowsort label-5100-3
SELECT * FROM view_3_tab1_924
----
11 values hashing to 38040a09288e2b82b9d880b53534d7ec

query I rowsort label-5100-3
SELECT pk FROM tab1 WHERE ((col4 >= 877.43 AND col0 >= 110))
----
11 values hashing to 38040a09288e2b82b9d880b53534d7ec

statement ok
DROP VIEW view_1_tab1_924

statement ok
DROP VIEW view_2_tab1_924

statement ok
DROP VIEW view_3_tab1_924

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_924') DROP VIEW view_1_tab2_924

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_924

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_924') DROP VIEW view_2_tab2_924

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_924

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_924') DROP VIEW view_3_tab2_924

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_924

statement ok
CREATE VIEW view_1_tab2_924 AS SELECT pk, col0 FROM tab2 WHERE ((col4 >= 877.43 AND col0 >= 110))

statement ok
CREATE VIEW view_2_tab2_924 AS SELECT pk, col0 FROM tab2 WHERE NOT (((col4 >= 877.43 AND col0 >= 110)))

statement ok
CREATE VIEW view_3_tab2_924 AS SELECT pk FROM view_1_tab2_924

query II rowsort label-5100-1
SELECT pk, col0 FROM tab2 WHERE ((col4 >= 877.43 AND col0 >= 110))
----
22 values hashing to 20caa2b6c6949775eaa237618cf934e3

query II rowsort label-5100-2
SELECT pk, col0 FROM tab2 WHERE NOT (((col4 >= 877.43 AND col0 >= 110)))
----
178 values hashing to 2588b180242ce39f84faf58d67c5d3e2

query II rowsort label-5100-1
SELECT pk, col0 FROM view_1_tab2_924
----
22 values hashing to 20caa2b6c6949775eaa237618cf934e3

query II rowsort label-5100-2
SELECT pk, col0 FROM view_2_tab2_924
----
178 values hashing to 2588b180242ce39f84faf58d67c5d3e2

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE ((col4 >= 877.43 AND col0 >= 110)) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (((col4 >= 877.43 AND col0 >= 110)))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_924 UNION ALL SELECT pk, col0 FROM view_2_tab2_924
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE ((col4 >= 877.43 AND col0 >= 110)) UNION SELECT pk, col0 FROM tab2 WHERE NOT (((col4 >= 877.43 AND col0 >= 110)))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_924 UNION SELECT pk, col0 FROM view_2_tab2_924
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-5100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE ((col4 >= 877.43 AND col0 >= 110)) ) AS tab2_924
----
11 values hashing to 38040a09288e2b82b9d880b53534d7ec

query I rowsort label-5100-3
SELECT * FROM view_3_tab2_924
----
11 values hashing to 38040a09288e2b82b9d880b53534d7ec

query I rowsort label-5100-3
SELECT pk FROM tab2 WHERE ((col4 >= 877.43 AND col0 >= 110))
----
11 values hashing to 38040a09288e2b82b9d880b53534d7ec

statement ok
DROP VIEW view_1_tab2_924

statement ok
DROP VIEW view_2_tab2_924

statement ok
DROP VIEW view_3_tab2_924

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_924') DROP VIEW view_1_tab3_924

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_924

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_924') DROP VIEW view_2_tab3_924

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_924

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_924') DROP VIEW view_3_tab3_924

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_924

statement ok
CREATE VIEW view_1_tab3_924 AS SELECT pk, col0 FROM tab3 WHERE ((col4 >= 877.43 AND col0 >= 110))

statement ok
CREATE VIEW view_2_tab3_924 AS SELECT pk, col0 FROM tab3 WHERE NOT (((col4 >= 877.43 AND col0 >= 110)))

statement ok
CREATE VIEW view_3_tab3_924 AS SELECT pk FROM view_1_tab3_924

query II rowsort label-5100-1
SELECT pk, col0 FROM tab3 WHERE ((col4 >= 877.43 AND col0 >= 110))
----
22 values hashing to 20caa2b6c6949775eaa237618cf934e3

query II rowsort label-5100-2
SELECT pk, col0 FROM tab3 WHERE NOT (((col4 >= 877.43 AND col0 >= 110)))
----
178 values hashing to 2588b180242ce39f84faf58d67c5d3e2

query II rowsort label-5100-1
SELECT pk, col0 FROM view_1_tab3_924
----
22 values hashing to 20caa2b6c6949775eaa237618cf934e3

query II rowsort label-5100-2
SELECT pk, col0 FROM view_2_tab3_924
----
178 values hashing to 2588b180242ce39f84faf58d67c5d3e2

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE ((col4 >= 877.43 AND col0 >= 110)) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (((col4 >= 877.43 AND col0 >= 110)))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_924 UNION ALL SELECT pk, col0 FROM view_2_tab3_924
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE ((col4 >= 877.43 AND col0 >= 110)) UNION SELECT pk, col0 FROM tab3 WHERE NOT (((col4 >= 877.43 AND col0 >= 110)))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_924 UNION SELECT pk, col0 FROM view_2_tab3_924
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-5100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE ((col4 >= 877.43 AND col0 >= 110)) ) AS tab3_924
----
11 values hashing to 38040a09288e2b82b9d880b53534d7ec

query I rowsort label-5100-3
SELECT * FROM view_3_tab3_924
----
11 values hashing to 38040a09288e2b82b9d880b53534d7ec

query I rowsort label-5100-3
SELECT pk FROM tab3 WHERE ((col4 >= 877.43 AND col0 >= 110))
----
11 values hashing to 38040a09288e2b82b9d880b53534d7ec

statement ok
DROP VIEW view_1_tab3_924

statement ok
DROP VIEW view_2_tab3_924

statement ok
DROP VIEW view_3_tab3_924

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_924') DROP VIEW view_1_tab4_924

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_924

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_924') DROP VIEW view_2_tab4_924

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_924

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_924') DROP VIEW view_3_tab4_924

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_924

statement ok
CREATE VIEW view_1_tab4_924 AS SELECT pk, col0 FROM tab4 WHERE ((col4 >= 877.43 AND col0 >= 110))

statement ok
CREATE VIEW view_2_tab4_924 AS SELECT pk, col0 FROM tab4 WHERE NOT (((col4 >= 877.43 AND col0 >= 110)))

statement ok
CREATE VIEW view_3_tab4_924 AS SELECT pk FROM view_1_tab4_924

query II rowsort label-5100-1
SELECT pk, col0 FROM tab4 WHERE ((col4 >= 877.43 AND col0 >= 110))
----
22 values hashing to 20caa2b6c6949775eaa237618cf934e3

query II rowsort label-5100-2
SELECT pk, col0 FROM tab4 WHERE NOT (((col4 >= 877.43 AND col0 >= 110)))
----
178 values hashing to 2588b180242ce39f84faf58d67c5d3e2

query II rowsort label-5100-1
SELECT pk, col0 FROM view_1_tab4_924
----
22 values hashing to 20caa2b6c6949775eaa237618cf934e3

query II rowsort label-5100-2
SELECT pk, col0 FROM view_2_tab4_924
----
178 values hashing to 2588b180242ce39f84faf58d67c5d3e2

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE ((col4 >= 877.43 AND col0 >= 110)) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (((col4 >= 877.43 AND col0 >= 110)))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_924 UNION ALL SELECT pk, col0 FROM view_2_tab4_924
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE ((col4 >= 877.43 AND col0 >= 110)) UNION SELECT pk, col0 FROM tab4 WHERE NOT (((col4 >= 877.43 AND col0 >= 110)))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_924 UNION SELECT pk, col0 FROM view_2_tab4_924
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-5100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE ((col4 >= 877.43 AND col0 >= 110)) ) AS tab4_924
----
11 values hashing to 38040a09288e2b82b9d880b53534d7ec

query I rowsort label-5100-3
SELECT * FROM view_3_tab4_924
----
11 values hashing to 38040a09288e2b82b9d880b53534d7ec

query I rowsort label-5100-3
SELECT pk FROM tab4 WHERE ((col4 >= 877.43 AND col0 >= 110))
----
11 values hashing to 38040a09288e2b82b9d880b53534d7ec

statement ok
DROP VIEW view_1_tab4_924

statement ok
DROP VIEW view_2_tab4_924

statement ok
DROP VIEW view_3_tab4_924

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_925') DROP VIEW view_1_tab0_925

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_925

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_925') DROP VIEW view_2_tab0_925

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_925

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_925') DROP VIEW view_3_tab0_925

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_925

statement ok
CREATE VIEW view_1_tab0_925 AS SELECT pk, col0 FROM tab0 WHERE col1 < 792.60

statement ok
CREATE VIEW view_2_tab0_925 AS SELECT pk, col0 FROM tab0 WHERE NOT (col1 < 792.60)

statement ok
CREATE VIEW view_3_tab0_925 AS SELECT pk FROM view_1_tab0_925

query II rowsort label-5200-1
SELECT pk, col0 FROM tab0 WHERE col1 < 792.60
----
156 values hashing to 8cda75df90d93740d0ec766595d4b6ec

query II rowsort label-5200-2
SELECT pk, col0 FROM tab0 WHERE NOT (col1 < 792.60)
----
44 values hashing to 13c7737c32041a1f001037790372b385

query II rowsort label-5200-1
SELECT pk, col0 FROM view_1_tab0_925
----
156 values hashing to 8cda75df90d93740d0ec766595d4b6ec

query II rowsort label-5200-2
SELECT pk, col0 FROM view_2_tab0_925
----
44 values hashing to 13c7737c32041a1f001037790372b385

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col1 < 792.60 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col1 < 792.60)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_925 UNION ALL SELECT pk, col0 FROM view_2_tab0_925
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col1 < 792.60 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col1 < 792.60)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_925 UNION SELECT pk, col0 FROM view_2_tab0_925
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-5200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col1 < 792.60 ) AS tab0_925
----
78 values hashing to 8e24963e49b3b2ad9531c140e8da084a

query I rowsort label-5200-3
SELECT * FROM view_3_tab0_925
----
78 values hashing to 8e24963e49b3b2ad9531c140e8da084a

query I rowsort label-5200-3
SELECT pk FROM tab0 WHERE col1 < 792.60
----
78 values hashing to 8e24963e49b3b2ad9531c140e8da084a

statement ok
DROP VIEW view_1_tab0_925

statement ok
DROP VIEW view_2_tab0_925

statement ok
DROP VIEW view_3_tab0_925

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_925') DROP VIEW view_1_tab1_925

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_925

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_925') DROP VIEW view_2_tab1_925

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_925

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_925') DROP VIEW view_3_tab1_925

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_925

statement ok
CREATE VIEW view_1_tab1_925 AS SELECT pk, col0 FROM tab1 WHERE col1 < 792.60

statement ok
CREATE VIEW view_2_tab1_925 AS SELECT pk, col0 FROM tab1 WHERE NOT (col1 < 792.60)

statement ok
CREATE VIEW view_3_tab1_925 AS SELECT pk FROM view_1_tab1_925

query II rowsort label-5200-1
SELECT pk, col0 FROM tab1 WHERE col1 < 792.60
----
156 values hashing to 8cda75df90d93740d0ec766595d4b6ec

query II rowsort label-5200-2
SELECT pk, col0 FROM tab1 WHERE NOT (col1 < 792.60)
----
44 values hashing to 13c7737c32041a1f001037790372b385

query II rowsort label-5200-1
SELECT pk, col0 FROM view_1_tab1_925
----
156 values hashing to 8cda75df90d93740d0ec766595d4b6ec

query II rowsort label-5200-2
SELECT pk, col0 FROM view_2_tab1_925
----
44 values hashing to 13c7737c32041a1f001037790372b385

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col1 < 792.60 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col1 < 792.60)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_925 UNION ALL SELECT pk, col0 FROM view_2_tab1_925
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col1 < 792.60 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col1 < 792.60)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_925 UNION SELECT pk, col0 FROM view_2_tab1_925
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-5200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col1 < 792.60 ) AS tab1_925
----
78 values hashing to 8e24963e49b3b2ad9531c140e8da084a

query I rowsort label-5200-3
SELECT * FROM view_3_tab1_925
----
78 values hashing to 8e24963e49b3b2ad9531c140e8da084a

query I rowsort label-5200-3
SELECT pk FROM tab1 WHERE col1 < 792.60
----
78 values hashing to 8e24963e49b3b2ad9531c140e8da084a

statement ok
DROP VIEW view_1_tab1_925

statement ok
DROP VIEW view_2_tab1_925

statement ok
DROP VIEW view_3_tab1_925

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_925') DROP VIEW view_1_tab2_925

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_925

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_925') DROP VIEW view_2_tab2_925

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_925

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_925') DROP VIEW view_3_tab2_925

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_925

statement ok
CREATE VIEW view_1_tab2_925 AS SELECT pk, col0 FROM tab2 WHERE col1 < 792.60

statement ok
CREATE VIEW view_2_tab2_925 AS SELECT pk, col0 FROM tab2 WHERE NOT (col1 < 792.60)

statement ok
CREATE VIEW view_3_tab2_925 AS SELECT pk FROM view_1_tab2_925

query II rowsort label-5200-1
SELECT pk, col0 FROM tab2 WHERE col1 < 792.60
----
156 values hashing to 8cda75df90d93740d0ec766595d4b6ec

query II rowsort label-5200-2
SELECT pk, col0 FROM tab2 WHERE NOT (col1 < 792.60)
----
44 values hashing to 13c7737c32041a1f001037790372b385

query II rowsort label-5200-1
SELECT pk, col0 FROM view_1_tab2_925
----
156 values hashing to 8cda75df90d93740d0ec766595d4b6ec

query II rowsort label-5200-2
SELECT pk, col0 FROM view_2_tab2_925
----
44 values hashing to 13c7737c32041a1f001037790372b385

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col1 < 792.60 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col1 < 792.60)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_925 UNION ALL SELECT pk, col0 FROM view_2_tab2_925
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col1 < 792.60 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col1 < 792.60)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_925 UNION SELECT pk, col0 FROM view_2_tab2_925
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-5200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col1 < 792.60 ) AS tab2_925
----
78 values hashing to 8e24963e49b3b2ad9531c140e8da084a

query I rowsort label-5200-3
SELECT * FROM view_3_tab2_925
----
78 values hashing to 8e24963e49b3b2ad9531c140e8da084a

query I rowsort label-5200-3
SELECT pk FROM tab2 WHERE col1 < 792.60
----
78 values hashing to 8e24963e49b3b2ad9531c140e8da084a

statement ok
DROP VIEW view_1_tab2_925

statement ok
DROP VIEW view_2_tab2_925

statement ok
DROP VIEW view_3_tab2_925

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_925') DROP VIEW view_1_tab3_925

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_925

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_925') DROP VIEW view_2_tab3_925

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_925

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_925') DROP VIEW view_3_tab3_925

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_925

statement ok
CREATE VIEW view_1_tab3_925 AS SELECT pk, col0 FROM tab3 WHERE col1 < 792.60

statement ok
CREATE VIEW view_2_tab3_925 AS SELECT pk, col0 FROM tab3 WHERE NOT (col1 < 792.60)

statement ok
CREATE VIEW view_3_tab3_925 AS SELECT pk FROM view_1_tab3_925

query II rowsort label-5200-1
SELECT pk, col0 FROM tab3 WHERE col1 < 792.60
----
156 values hashing to 8cda75df90d93740d0ec766595d4b6ec

query II rowsort label-5200-2
SELECT pk, col0 FROM tab3 WHERE NOT (col1 < 792.60)
----
44 values hashing to 13c7737c32041a1f001037790372b385

query II rowsort label-5200-1
SELECT pk, col0 FROM view_1_tab3_925
----
156 values hashing to 8cda75df90d93740d0ec766595d4b6ec

query II rowsort label-5200-2
SELECT pk, col0 FROM view_2_tab3_925
----
44 values hashing to 13c7737c32041a1f001037790372b385

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col1 < 792.60 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col1 < 792.60)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_925 UNION ALL SELECT pk, col0 FROM view_2_tab3_925
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col1 < 792.60 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col1 < 792.60)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_925 UNION SELECT pk, col0 FROM view_2_tab3_925
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-5200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col1 < 792.60 ) AS tab3_925
----
78 values hashing to 8e24963e49b3b2ad9531c140e8da084a

query I rowsort label-5200-3
SELECT * FROM view_3_tab3_925
----
78 values hashing to 8e24963e49b3b2ad9531c140e8da084a

query I rowsort label-5200-3
SELECT pk FROM tab3 WHERE col1 < 792.60
----
78 values hashing to 8e24963e49b3b2ad9531c140e8da084a

statement ok
DROP VIEW view_1_tab3_925

statement ok
DROP VIEW view_2_tab3_925

statement ok
DROP VIEW view_3_tab3_925

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_925') DROP VIEW view_1_tab4_925

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_925

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_925') DROP VIEW view_2_tab4_925

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_925

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_925') DROP VIEW view_3_tab4_925

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_925

statement ok
CREATE VIEW view_1_tab4_925 AS SELECT pk, col0 FROM tab4 WHERE col1 < 792.60

statement ok
CREATE VIEW view_2_tab4_925 AS SELECT pk, col0 FROM tab4 WHERE NOT (col1 < 792.60)

statement ok
CREATE VIEW view_3_tab4_925 AS SELECT pk FROM view_1_tab4_925

query II rowsort label-5200-1
SELECT pk, col0 FROM tab4 WHERE col1 < 792.60
----
156 values hashing to 8cda75df90d93740d0ec766595d4b6ec

query II rowsort label-5200-2
SELECT pk, col0 FROM tab4 WHERE NOT (col1 < 792.60)
----
44 values hashing to 13c7737c32041a1f001037790372b385

query II rowsort label-5200-1
SELECT pk, col0 FROM view_1_tab4_925
----
156 values hashing to 8cda75df90d93740d0ec766595d4b6ec

query II rowsort label-5200-2
SELECT pk, col0 FROM view_2_tab4_925
----
44 values hashing to 13c7737c32041a1f001037790372b385

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col1 < 792.60 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col1 < 792.60)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_925 UNION ALL SELECT pk, col0 FROM view_2_tab4_925
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col1 < 792.60 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col1 < 792.60)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_925 UNION SELECT pk, col0 FROM view_2_tab4_925
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-5200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col1 < 792.60 ) AS tab4_925
----
78 values hashing to 8e24963e49b3b2ad9531c140e8da084a

query I rowsort label-5200-3
SELECT * FROM view_3_tab4_925
----
78 values hashing to 8e24963e49b3b2ad9531c140e8da084a

query I rowsort label-5200-3
SELECT pk FROM tab4 WHERE col1 < 792.60
----
78 values hashing to 8e24963e49b3b2ad9531c140e8da084a

statement ok
DROP VIEW view_1_tab4_925

statement ok
DROP VIEW view_2_tab4_925

statement ok
DROP VIEW view_3_tab4_925

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_926') DROP VIEW view_1_tab0_926

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_926

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_926') DROP VIEW view_2_tab0_926

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_926

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_926') DROP VIEW view_3_tab0_926

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_926

statement ok
CREATE VIEW view_1_tab0_926 AS SELECT pk, col0 FROM tab0 WHERE col3 >= 264 AND col4 IN (651.96,956.25,874.76,464.30,21.57,39.33) OR col3 IN (491) OR ((col3 = 903)) AND col3 >= 477 AND col3 < 851

statement ok
CREATE VIEW view_2_tab0_926 AS SELECT pk, col0 FROM tab0 WHERE NOT (col3 >= 264 AND col4 IN (651.96,956.25,874.76,464.30,21.57,39.33) OR col3 IN (491) OR ((col3 = 903)) AND col3 >= 477 AND col3 < 851)

statement ok
CREATE VIEW view_3_tab0_926 AS SELECT pk FROM view_1_tab0_926

query II rowsort label-5300-1
SELECT pk, col0 FROM tab0 WHERE col3 >= 264 AND col4 IN (651.96,956.25,874.76,464.30,21.57,39.33) OR col3 IN (491) OR ((col3 = 903)) AND col3 >= 477 AND col3 < 851
----

query II rowsort label-5300-2
SELECT pk, col0 FROM tab0 WHERE NOT (col3 >= 264 AND col4 IN (651.96,956.25,874.76,464.30,21.57,39.33) OR col3 IN (491) OR ((col3 = 903)) AND col3 >= 477 AND col3 < 851)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-5300-1
SELECT pk, col0 FROM view_1_tab0_926
----

query II rowsort label-5300-2
SELECT pk, col0 FROM view_2_tab0_926
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 >= 264 AND col4 IN (651.96,956.25,874.76,464.30,21.57,39.33) OR col3 IN (491) OR ((col3 = 903)) AND col3 >= 477 AND col3 < 851 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col3 >= 264 AND col4 IN (651.96,956.25,874.76,464.30,21.57,39.33) OR col3 IN (491) OR ((col3 = 903)) AND col3 >= 477 AND col3 < 851)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_926 UNION ALL SELECT pk, col0 FROM view_2_tab0_926
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 >= 264 AND col4 IN (651.96,956.25,874.76,464.30,21.57,39.33) OR col3 IN (491) OR ((col3 = 903)) AND col3 >= 477 AND col3 < 851 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col3 >= 264 AND col4 IN (651.96,956.25,874.76,464.30,21.57,39.33) OR col3 IN (491) OR ((col3 = 903)) AND col3 >= 477 AND col3 < 851)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_926 UNION SELECT pk, col0 FROM view_2_tab0_926
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-5300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col3 >= 264 AND col4 IN (651.96,956.25,874.76,464.30,21.57,39.33) OR col3 IN (491) OR ((col3 = 903)) AND col3 >= 477 AND col3 < 851 ) AS tab0_926
----

query I rowsort label-5300-3
SELECT * FROM view_3_tab0_926
----

query I rowsort label-5300-3
SELECT pk FROM tab0 WHERE col3 >= 264 AND col4 IN (651.96,956.25,874.76,464.30,21.57,39.33) OR col3 IN (491) OR ((col3 = 903)) AND col3 >= 477 AND col3 < 851
----

statement ok
DROP VIEW view_1_tab0_926

statement ok
DROP VIEW view_2_tab0_926

statement ok
DROP VIEW view_3_tab0_926

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_926') DROP VIEW view_1_tab1_926

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_926

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_926') DROP VIEW view_2_tab1_926

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_926

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_926') DROP VIEW view_3_tab1_926

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_926

statement ok
CREATE VIEW view_1_tab1_926 AS SELECT pk, col0 FROM tab1 WHERE col3 >= 264 AND col4 IN (651.96,956.25,874.76,464.30,21.57,39.33) OR col3 IN (491) OR ((col3 = 903)) AND col3 >= 477 AND col3 < 851

statement ok
CREATE VIEW view_2_tab1_926 AS SELECT pk, col0 FROM tab1 WHERE NOT (col3 >= 264 AND col4 IN (651.96,956.25,874.76,464.30,21.57,39.33) OR col3 IN (491) OR ((col3 = 903)) AND col3 >= 477 AND col3 < 851)

statement ok
CREATE VIEW view_3_tab1_926 AS SELECT pk FROM view_1_tab1_926

query II rowsort label-5300-1
SELECT pk, col0 FROM tab1 WHERE col3 >= 264 AND col4 IN (651.96,956.25,874.76,464.30,21.57,39.33) OR col3 IN (491) OR ((col3 = 903)) AND col3 >= 477 AND col3 < 851
----

query II rowsort label-5300-2
SELECT pk, col0 FROM tab1 WHERE NOT (col3 >= 264 AND col4 IN (651.96,956.25,874.76,464.30,21.57,39.33) OR col3 IN (491) OR ((col3 = 903)) AND col3 >= 477 AND col3 < 851)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-5300-1
SELECT pk, col0 FROM view_1_tab1_926
----

query II rowsort label-5300-2
SELECT pk, col0 FROM view_2_tab1_926
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 >= 264 AND col4 IN (651.96,956.25,874.76,464.30,21.57,39.33) OR col3 IN (491) OR ((col3 = 903)) AND col3 >= 477 AND col3 < 851 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col3 >= 264 AND col4 IN (651.96,956.25,874.76,464.30,21.57,39.33) OR col3 IN (491) OR ((col3 = 903)) AND col3 >= 477 AND col3 < 851)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_926 UNION ALL SELECT pk, col0 FROM view_2_tab1_926
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 >= 264 AND col4 IN (651.96,956.25,874.76,464.30,21.57,39.33) OR col3 IN (491) OR ((col3 = 903)) AND col3 >= 477 AND col3 < 851 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col3 >= 264 AND col4 IN (651.96,956.25,874.76,464.30,21.57,39.33) OR col3 IN (491) OR ((col3 = 903)) AND col3 >= 477 AND col3 < 851)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_926 UNION SELECT pk, col0 FROM view_2_tab1_926
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-5300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col3 >= 264 AND col4 IN (651.96,956.25,874.76,464.30,21.57,39.33) OR col3 IN (491) OR ((col3 = 903)) AND col3 >= 477 AND col3 < 851 ) AS tab1_926
----

query I rowsort label-5300-3
SELECT * FROM view_3_tab1_926
----

query I rowsort label-5300-3
SELECT pk FROM tab1 WHERE col3 >= 264 AND col4 IN (651.96,956.25,874.76,464.30,21.57,39.33) OR col3 IN (491) OR ((col3 = 903)) AND col3 >= 477 AND col3 < 851
----

statement ok
DROP VIEW view_1_tab1_926

statement ok
DROP VIEW view_2_tab1_926

statement ok
DROP VIEW view_3_tab1_926

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_926') DROP VIEW view_1_tab2_926

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_926

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_926') DROP VIEW view_2_tab2_926

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_926

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_926') DROP VIEW view_3_tab2_926

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_926

statement ok
CREATE VIEW view_1_tab2_926 AS SELECT pk, col0 FROM tab2 WHERE col3 >= 264 AND col4 IN (651.96,956.25,874.76,464.30,21.57,39.33) OR col3 IN (491) OR ((col3 = 903)) AND col3 >= 477 AND col3 < 851

statement ok
CREATE VIEW view_2_tab2_926 AS SELECT pk, col0 FROM tab2 WHERE NOT (col3 >= 264 AND col4 IN (651.96,956.25,874.76,464.30,21.57,39.33) OR col3 IN (491) OR ((col3 = 903)) AND col3 >= 477 AND col3 < 851)

statement ok
CREATE VIEW view_3_tab2_926 AS SELECT pk FROM view_1_tab2_926

query II rowsort label-5300-1
SELECT pk, col0 FROM tab2 WHERE col3 >= 264 AND col4 IN (651.96,956.25,874.76,464.30,21.57,39.33) OR col3 IN (491) OR ((col3 = 903)) AND col3 >= 477 AND col3 < 851
----

query II rowsort label-5300-2
SELECT pk, col0 FROM tab2 WHERE NOT (col3 >= 264 AND col4 IN (651.96,956.25,874.76,464.30,21.57,39.33) OR col3 IN (491) OR ((col3 = 903)) AND col3 >= 477 AND col3 < 851)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-5300-1
SELECT pk, col0 FROM view_1_tab2_926
----

query II rowsort label-5300-2
SELECT pk, col0 FROM view_2_tab2_926
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 >= 264 AND col4 IN (651.96,956.25,874.76,464.30,21.57,39.33) OR col3 IN (491) OR ((col3 = 903)) AND col3 >= 477 AND col3 < 851 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col3 >= 264 AND col4 IN (651.96,956.25,874.76,464.30,21.57,39.33) OR col3 IN (491) OR ((col3 = 903)) AND col3 >= 477 AND col3 < 851)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_926 UNION ALL SELECT pk, col0 FROM view_2_tab2_926
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 >= 264 AND col4 IN (651.96,956.25,874.76,464.30,21.57,39.33) OR col3 IN (491) OR ((col3 = 903)) AND col3 >= 477 AND col3 < 851 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col3 >= 264 AND col4 IN (651.96,956.25,874.76,464.30,21.57,39.33) OR col3 IN (491) OR ((col3 = 903)) AND col3 >= 477 AND col3 < 851)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_926 UNION SELECT pk, col0 FROM view_2_tab2_926
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-5300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col3 >= 264 AND col4 IN (651.96,956.25,874.76,464.30,21.57,39.33) OR col3 IN (491) OR ((col3 = 903)) AND col3 >= 477 AND col3 < 851 ) AS tab2_926
----

query I rowsort label-5300-3
SELECT * FROM view_3_tab2_926
----

query I rowsort label-5300-3
SELECT pk FROM tab2 WHERE col3 >= 264 AND col4 IN (651.96,956.25,874.76,464.30,21.57,39.33) OR col3 IN (491) OR ((col3 = 903)) AND col3 >= 477 AND col3 < 851
----

statement ok
DROP VIEW view_1_tab2_926

statement ok
DROP VIEW view_2_tab2_926

statement ok
DROP VIEW view_3_tab2_926

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_926') DROP VIEW view_1_tab3_926

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_926

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_926') DROP VIEW view_2_tab3_926

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_926

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_926') DROP VIEW view_3_tab3_926

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_926

statement ok
CREATE VIEW view_1_tab3_926 AS SELECT pk, col0 FROM tab3 WHERE col3 >= 264 AND col4 IN (651.96,956.25,874.76,464.30,21.57,39.33) OR col3 IN (491) OR ((col3 = 903)) AND col3 >= 477 AND col3 < 851

statement ok
CREATE VIEW view_2_tab3_926 AS SELECT pk, col0 FROM tab3 WHERE NOT (col3 >= 264 AND col4 IN (651.96,956.25,874.76,464.30,21.57,39.33) OR col3 IN (491) OR ((col3 = 903)) AND col3 >= 477 AND col3 < 851)

statement ok
CREATE VIEW view_3_tab3_926 AS SELECT pk FROM view_1_tab3_926

query II rowsort label-5300-1
SELECT pk, col0 FROM tab3 WHERE col3 >= 264 AND col4 IN (651.96,956.25,874.76,464.30,21.57,39.33) OR col3 IN (491) OR ((col3 = 903)) AND col3 >= 477 AND col3 < 851
----

query II rowsort label-5300-2
SELECT pk, col0 FROM tab3 WHERE NOT (col3 >= 264 AND col4 IN (651.96,956.25,874.76,464.30,21.57,39.33) OR col3 IN (491) OR ((col3 = 903)) AND col3 >= 477 AND col3 < 851)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-5300-1
SELECT pk, col0 FROM view_1_tab3_926
----

query II rowsort label-5300-2
SELECT pk, col0 FROM view_2_tab3_926
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 >= 264 AND col4 IN (651.96,956.25,874.76,464.30,21.57,39.33) OR col3 IN (491) OR ((col3 = 903)) AND col3 >= 477 AND col3 < 851 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col3 >= 264 AND col4 IN (651.96,956.25,874.76,464.30,21.57,39.33) OR col3 IN (491) OR ((col3 = 903)) AND col3 >= 477 AND col3 < 851)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_926 UNION ALL SELECT pk, col0 FROM view_2_tab3_926
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 >= 264 AND col4 IN (651.96,956.25,874.76,464.30,21.57,39.33) OR col3 IN (491) OR ((col3 = 903)) AND col3 >= 477 AND col3 < 851 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col3 >= 264 AND col4 IN (651.96,956.25,874.76,464.30,21.57,39.33) OR col3 IN (491) OR ((col3 = 903)) AND col3 >= 477 AND col3 < 851)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_926 UNION SELECT pk, col0 FROM view_2_tab3_926
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-5300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col3 >= 264 AND col4 IN (651.96,956.25,874.76,464.30,21.57,39.33) OR col3 IN (491) OR ((col3 = 903)) AND col3 >= 477 AND col3 < 851 ) AS tab3_926
----

query I rowsort label-5300-3
SELECT * FROM view_3_tab3_926
----

query I rowsort label-5300-3
SELECT pk FROM tab3 WHERE col3 >= 264 AND col4 IN (651.96,956.25,874.76,464.30,21.57,39.33) OR col3 IN (491) OR ((col3 = 903)) AND col3 >= 477 AND col3 < 851
----

statement ok
DROP VIEW view_1_tab3_926

statement ok
DROP VIEW view_2_tab3_926

statement ok
DROP VIEW view_3_tab3_926

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_926') DROP VIEW view_1_tab4_926

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_926

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_926') DROP VIEW view_2_tab4_926

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_926

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_926') DROP VIEW view_3_tab4_926

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_926

statement ok
CREATE VIEW view_1_tab4_926 AS SELECT pk, col0 FROM tab4 WHERE col3 >= 264 AND col4 IN (651.96,956.25,874.76,464.30,21.57,39.33) OR col3 IN (491) OR ((col3 = 903)) AND col3 >= 477 AND col3 < 851

statement ok
CREATE VIEW view_2_tab4_926 AS SELECT pk, col0 FROM tab4 WHERE NOT (col3 >= 264 AND col4 IN (651.96,956.25,874.76,464.30,21.57,39.33) OR col3 IN (491) OR ((col3 = 903)) AND col3 >= 477 AND col3 < 851)

statement ok
CREATE VIEW view_3_tab4_926 AS SELECT pk FROM view_1_tab4_926

query II rowsort label-5300-1
SELECT pk, col0 FROM tab4 WHERE col3 >= 264 AND col4 IN (651.96,956.25,874.76,464.30,21.57,39.33) OR col3 IN (491) OR ((col3 = 903)) AND col3 >= 477 AND col3 < 851
----

query II rowsort label-5300-2
SELECT pk, col0 FROM tab4 WHERE NOT (col3 >= 264 AND col4 IN (651.96,956.25,874.76,464.30,21.57,39.33) OR col3 IN (491) OR ((col3 = 903)) AND col3 >= 477 AND col3 < 851)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-5300-1
SELECT pk, col0 FROM view_1_tab4_926
----

query II rowsort label-5300-2
SELECT pk, col0 FROM view_2_tab4_926
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 >= 264 AND col4 IN (651.96,956.25,874.76,464.30,21.57,39.33) OR col3 IN (491) OR ((col3 = 903)) AND col3 >= 477 AND col3 < 851 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col3 >= 264 AND col4 IN (651.96,956.25,874.76,464.30,21.57,39.33) OR col3 IN (491) OR ((col3 = 903)) AND col3 >= 477 AND col3 < 851)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_926 UNION ALL SELECT pk, col0 FROM view_2_tab4_926
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 >= 264 AND col4 IN (651.96,956.25,874.76,464.30,21.57,39.33) OR col3 IN (491) OR ((col3 = 903)) AND col3 >= 477 AND col3 < 851 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col3 >= 264 AND col4 IN (651.96,956.25,874.76,464.30,21.57,39.33) OR col3 IN (491) OR ((col3 = 903)) AND col3 >= 477 AND col3 < 851)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_926 UNION SELECT pk, col0 FROM view_2_tab4_926
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-5300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col3 >= 264 AND col4 IN (651.96,956.25,874.76,464.30,21.57,39.33) OR col3 IN (491) OR ((col3 = 903)) AND col3 >= 477 AND col3 < 851 ) AS tab4_926
----

query I rowsort label-5300-3
SELECT * FROM view_3_tab4_926
----

query I rowsort label-5300-3
SELECT pk FROM tab4 WHERE col3 >= 264 AND col4 IN (651.96,956.25,874.76,464.30,21.57,39.33) OR col3 IN (491) OR ((col3 = 903)) AND col3 >= 477 AND col3 < 851
----

statement ok
DROP VIEW view_1_tab4_926

statement ok
DROP VIEW view_2_tab4_926

statement ok
DROP VIEW view_3_tab4_926

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_927') DROP VIEW view_1_tab0_927

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_927

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_927') DROP VIEW view_2_tab0_927

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_927

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_927') DROP VIEW view_3_tab0_927

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_927

statement ok
CREATE VIEW view_1_tab0_927 AS SELECT pk, col0 FROM tab0 WHERE ((((col3 < 617 OR (col0 IS NULL OR (((col1 < 182.89 AND col3 = 185) AND (col3 > 95 OR ((col3 < 726)) OR col4 > 78.86 AND col3 < 723 OR (col0 <= 761 OR (col4 < 741.83) OR (col0 <= 85 OR col4 IS NULL)) AND col4 = 830.49 AND (((((col4 IS NULL OR (col1 IS NULL) AND col4 < 889.47)) OR col0 > 197 OR (col4 IN (677.8,245.99,832.62,590.60,373.98))))) OR col1 >= 885.78 OR col4 < 179.35 AND col0 > 828) OR (((col4 <= 798.35)) AND col0 <= 157) OR col0 < 423)))) OR (col0 >= 337) AND col1 = 704.61 AND col4 = 971.2 OR (col3 >= 11) AND (col0 <= 809)) OR (col4 < 704.47) OR (((col3 = 818)) OR col3 <= 446 AND col0 = 973 AND col0 IN (401,755) AND ((col0 > 944)) AND (col4 >= 604.0) AND col3 >= 208 AND col1 <= 769.44 AND col3 < 471 OR col0 < 416 AND col0 <= 557) AND (col1 BETWEEN 543.41 AND 259.54) AND col1 > 439.69) AND col3 > 975)

statement ok
CREATE VIEW view_2_tab0_927 AS SELECT pk, col0 FROM tab0 WHERE NOT (((((col3 < 617 OR (col0 IS NULL OR (((col1 < 182.89 AND col3 = 185) AND (col3 > 95 OR ((col3 < 726)) OR col4 > 78.86 AND col3 < 723 OR (col0 <= 761 OR (col4 < 741.83) OR (col0 <= 85 OR col4 IS NULL)) AND col4 = 830.49 AND (((((col4 IS NULL OR (col1 IS NULL) AND col4 < 889.47)) OR col0 > 197 OR (col4 IN (677.8,245.99,832.62,590.60,373.98))))) OR col1 >= 885.78 OR col4 < 179.35 AND col0 > 828) OR (((col4 <= 798.35)) AND col0 <= 157) OR col0 < 423)))) OR (col0 >= 337) AND col1 = 704.61 AND col4 = 971.2 OR (col3 >= 11) AND (col0 <= 809)) OR (col4 < 704.47) OR (((col3 = 818)) OR col3 <= 446 AND col0 = 973 AND col0 IN (401,755) AND ((col0 > 944)) AND (col4 >= 604.0) AND col3 >= 208 AND col1 <= 769.44 AND col3 < 471 OR col0 < 416 AND col0 <= 557) AND (col1 BETWEEN 543.41 AND 259.54) AND col1 > 439.69) AND col3 > 975))

statement ok
CREATE VIEW view_3_tab0_927 AS SELECT pk FROM view_1_tab0_927

query II rowsort label-5400-1
SELECT pk, col0 FROM tab0 WHERE ((((col3 < 617 OR (col0 IS NULL OR (((col1 < 182.89 AND col3 = 185) AND (col3 > 95 OR ((col3 < 726)) OR col4 > 78.86 AND col3 < 723 OR (col0 <= 761 OR (col4 < 741.83) OR (col0 <= 85 OR col4 IS NULL)) AND col4 = 830.49 AND (((((col4 IS NULL OR (col1 IS NULL) AND col4 < 889.47)) OR col0 > 197 OR (col4 IN (677.8,245.99,832.62,590.60,373.98))))) OR col1 >= 885.78 OR col4 < 179.35 AND col0 > 828) OR (((col4 <= 798.35)) AND col0 <= 157) OR col0 < 423)))) OR (col0 >= 337) AND col1 = 704.61 AND col4 = 971.2 OR (col3 >= 11) AND (col0 <= 809)) OR (col4 < 704.47) OR (((col3 = 818)) OR col3 <= 446 AND col0 = 973 AND col0 IN (401,755) AND ((col0 > 944)) AND (col4 >= 604.0) AND col3 >= 208 AND col1 <= 769.44 AND col3 < 471 OR col0 < 416 AND col0 <= 557) AND (col1 BETWEEN 543.41 AND 259.54) AND col1 > 439.69) AND col3 > 975)
----
27
872
35
285

query II rowsort label-5400-2
SELECT pk, col0 FROM tab0 WHERE NOT (((((col3 < 617 OR (col0 IS NULL OR (((col1 < 182.89 AND col3 = 185) AND (col3 > 95 OR ((col3 < 726)) OR col4 > 78.86 AND col3 < 723 OR (col0 <= 761 OR (col4 < 741.83) OR (col0 <= 85 OR col4 IS NULL)) AND col4 = 830.49 AND (((((col4 IS NULL OR (col1 IS NULL) AND col4 < 889.47)) OR col0 > 197 OR (col4 IN (677.8,245.99,832.62,590.60,373.98))))) OR col1 >= 885.78 OR col4 < 179.35 AND col0 > 828) OR (((col4 <= 798.35)) AND col0 <= 157) OR col0 < 423)))) OR (col0 >= 337) AND col1 = 704.61 AND col4 = 971.2 OR (col3 >= 11) AND (col0 <= 809)) OR (col4 < 704.47) OR (((col3 = 818)) OR col3 <= 446 AND col0 = 973 AND col0 IN (401,755) AND ((col0 > 944)) AND (col4 >= 604.0) AND col3 >= 208 AND col1 <= 769.44 AND col3 < 471 OR col0 < 416 AND col0 <= 557) AND (col1 BETWEEN 543.41 AND 259.54) AND col1 > 439.69) AND col3 > 975))
----
196 values hashing to 4615ff6444e8328dad59f9efb3945bbe

query II rowsort label-5400-1
SELECT pk, col0 FROM view_1_tab0_927
----
27
872
35
285

query II rowsort label-5400-2
SELECT pk, col0 FROM view_2_tab0_927
----
196 values hashing to 4615ff6444e8328dad59f9efb3945bbe

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE ((((col3 < 617 OR (col0 IS NULL OR (((col1 < 182.89 AND col3 = 185) AND (col3 > 95 OR ((col3 < 726)) OR col4 > 78.86 AND col3 < 723 OR (col0 <= 761 OR (col4 < 741.83) OR (col0 <= 85 OR col4 IS NULL)) AND col4 = 830.49 AND (((((col4 IS NULL OR (col1 IS NULL) AND col4 < 889.47)) OR col0 > 197 OR (col4 IN (677.8,245.99,832.62,590.60,373.98))))) OR col1 >= 885.78 OR col4 < 179.35 AND col0 > 828) OR (((col4 <= 798.35)) AND col0 <= 157) OR col0 < 423)))) OR (col0 >= 337) AND col1 = 704.61 AND col4 = 971.2 OR (col3 >= 11) AND (col0 <= 809)) OR (col4 < 704.47) OR (((col3 = 818)) OR col3 <= 446 AND col0 = 973 AND col0 IN (401,755) AND ((col0 > 944)) AND (col4 >= 604.0) AND col3 >= 208 AND col1 <= 769.44 AND col3 < 471 OR col0 < 416 AND col0 <= 557) AND (col1 BETWEEN 543.41 AND 259.54) AND col1 > 439.69) AND col3 > 975) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (((((col3 < 617 OR (col0 IS NULL OR (((col1 < 182.89 AND col3 = 185) AND (col3 > 95 OR ((col3 < 726)) OR col4 > 78.86 AND col3 < 723 OR (col0 <= 761 OR (col4 < 741.83) OR (col0 <= 85 OR col4 IS NULL)) AND col4 = 830.49 AND (((((col4 IS NULL OR (col1 IS NULL) AND col4 < 889.47)) OR col0 > 197 OR (col4 IN (677.8,245.99,832.62,590.60,373.98))))) OR col1 >= 885.78 OR col4 < 179.35 AND col0 > 828) OR (((col4 <= 798.35)) AND col0 <= 157) OR col0 < 423)))) OR (col0 >= 337) AND col1 = 704.61 AND col4 = 971.2 OR (col3 >= 11) AND (col0 <= 809)) OR (col4 < 704.47) OR (((col3 = 818)) OR col3 <= 446 AND col0 = 973 AND col0 IN (401,755) AND ((col0 > 944)) AND (col4 >= 604.0) AND col3 >= 208 AND col1 <= 769.44 AND col3 < 471 OR col0 < 416 AND col0 <= 557) AND (col1 BETWEEN 543.41 AND 259.54) AND col1 > 439.69) AND col3 > 975))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_927 UNION ALL SELECT pk, col0 FROM view_2_tab0_927
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE ((((col3 < 617 OR (col0 IS NULL OR (((col1 < 182.89 AND col3 = 185) AND (col3 > 95 OR ((col3 < 726)) OR col4 > 78.86 AND col3 < 723 OR (col0 <= 761 OR (col4 < 741.83) OR (col0 <= 85 OR col4 IS NULL)) AND col4 = 830.49 AND (((((col4 IS NULL OR (col1 IS NULL) AND col4 < 889.47)) OR col0 > 197 OR (col4 IN (677.8,245.99,832.62,590.60,373.98))))) OR col1 >= 885.78 OR col4 < 179.35 AND col0 > 828) OR (((col4 <= 798.35)) AND col0 <= 157) OR col0 < 423)))) OR (col0 >= 337) AND col1 = 704.61 AND col4 = 971.2 OR (col3 >= 11) AND (col0 <= 809)) OR (col4 < 704.47) OR (((col3 = 818)) OR col3 <= 446 AND col0 = 973 AND col0 IN (401,755) AND ((col0 > 944)) AND (col4 >= 604.0) AND col3 >= 208 AND col1 <= 769.44 AND col3 < 471 OR col0 < 416 AND col0 <= 557) AND (col1 BETWEEN 543.41 AND 259.54) AND col1 > 439.69) AND col3 > 975) UNION SELECT pk, col0 FROM tab0 WHERE NOT (((((col3 < 617 OR (col0 IS NULL OR (((col1 < 182.89 AND col3 = 185) AND (col3 > 95 OR ((col3 < 726)) OR col4 > 78.86 AND col3 < 723 OR (col0 <= 761 OR (col4 < 741.83) OR (col0 <= 85 OR col4 IS NULL)) AND col4 = 830.49 AND (((((col4 IS NULL OR (col1 IS NULL) AND col4 < 889.47)) OR col0 > 197 OR (col4 IN (677.8,245.99,832.62,590.60,373.98))))) OR col1 >= 885.78 OR col4 < 179.35 AND col0 > 828) OR (((col4 <= 798.35)) AND col0 <= 157) OR col0 < 423)))) OR (col0 >= 337) AND col1 = 704.61 AND col4 = 971.2 OR (col3 >= 11) AND (col0 <= 809)) OR (col4 < 704.47) OR (((col3 = 818)) OR col3 <= 446 AND col0 = 973 AND col0 IN (401,755) AND ((col0 > 944)) AND (col4 >= 604.0) AND col3 >= 208 AND col1 <= 769.44 AND col3 < 471 OR col0 < 416 AND col0 <= 557) AND (col1 BETWEEN 543.41 AND 259.54) AND col1 > 439.69) AND col3 > 975))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_927 UNION SELECT pk, col0 FROM view_2_tab0_927
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-5400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE ((((col3 < 617 OR (col0 IS NULL OR (((col1 < 182.89 AND col3 = 185) AND (col3 > 95 OR ((col3 < 726)) OR col4 > 78.86 AND col3 < 723 OR (col0 <= 761 OR (col4 < 741.83) OR (col0 <= 85 OR col4 IS NULL)) AND col4 = 830.49 AND (((((col4 IS NULL OR (col1 IS NULL) AND col4 < 889.47)) OR col0 > 197 OR (col4 IN (677.8,245.99,832.62,590.60,373.98))))) OR col1 >= 885.78 OR col4 < 179.35 AND col0 > 828) OR (((col4 <= 798.35)) AND col0 <= 157) OR col0 < 423)))) OR (col0 >= 337) AND col1 = 704.61 AND col4 = 971.2 OR (col3 >= 11) AND (col0 <= 809)) OR (col4 < 704.47) OR (((col3 = 818)) OR col3 <= 446 AND col0 = 973 AND col0 IN (401,755) AND ((col0 > 944)) AND (col4 >= 604.0) AND col3 >= 208 AND col1 <= 769.44 AND col3 < 471 OR col0 < 416 AND col0 <= 557) AND (col1 BETWEEN 543.41 AND 259.54) AND col1 > 439.69) AND col3 > 975) ) AS tab0_927
----
27
35

query I rowsort label-5400-3
SELECT * FROM view_3_tab0_927
----
27
35

query I rowsort label-5400-3
SELECT pk FROM tab0 WHERE ((((col3 < 617 OR (col0 IS NULL OR (((col1 < 182.89 AND col3 = 185) AND (col3 > 95 OR ((col3 < 726)) OR col4 > 78.86 AND col3 < 723 OR (col0 <= 761 OR (col4 < 741.83) OR (col0 <= 85 OR col4 IS NULL)) AND col4 = 830.49 AND (((((col4 IS NULL OR (col1 IS NULL) AND col4 < 889.47)) OR col0 > 197 OR (col4 IN (677.8,245.99,832.62,590.60,373.98))))) OR col1 >= 885.78 OR col4 < 179.35 AND col0 > 828) OR (((col4 <= 798.35)) AND col0 <= 157) OR col0 < 423)))) OR (col0 >= 337) AND col1 = 704.61 AND col4 = 971.2 OR (col3 >= 11) AND (col0 <= 809)) OR (col4 < 704.47) OR (((col3 = 818)) OR col3 <= 446 AND col0 = 973 AND col0 IN (401,755) AND ((col0 > 944)) AND (col4 >= 604.0) AND col3 >= 208 AND col1 <= 769.44 AND col3 < 471 OR col0 < 416 AND col0 <= 557) AND (col1 BETWEEN 543.41 AND 259.54) AND col1 > 439.69) AND col3 > 975)
----
27
35

statement ok
DROP VIEW view_1_tab0_927

statement ok
DROP VIEW view_2_tab0_927

statement ok
DROP VIEW view_3_tab0_927

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_927') DROP VIEW view_1_tab1_927

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_927

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_927') DROP VIEW view_2_tab1_927

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_927

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_927') DROP VIEW view_3_tab1_927

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_927

statement ok
CREATE VIEW view_1_tab1_927 AS SELECT pk, col0 FROM tab1 WHERE ((((col3 < 617 OR (col0 IS NULL OR (((col1 < 182.89 AND col3 = 185) AND (col3 > 95 OR ((col3 < 726)) OR col4 > 78.86 AND col3 < 723 OR (col0 <= 761 OR (col4 < 741.83) OR (col0 <= 85 OR col4 IS NULL)) AND col4 = 830.49 AND (((((col4 IS NULL OR (col1 IS NULL) AND col4 < 889.47)) OR col0 > 197 OR (col4 IN (677.8,245.99,832.62,590.60,373.98))))) OR col1 >= 885.78 OR col4 < 179.35 AND col0 > 828) OR (((col4 <= 798.35)) AND col0 <= 157) OR col0 < 423)))) OR (col0 >= 337) AND col1 = 704.61 AND col4 = 971.2 OR (col3 >= 11) AND (col0 <= 809)) OR (col4 < 704.47) OR (((col3 = 818)) OR col3 <= 446 AND col0 = 973 AND col0 IN (401,755) AND ((col0 > 944)) AND (col4 >= 604.0) AND col3 >= 208 AND col1 <= 769.44 AND col3 < 471 OR col0 < 416 AND col0 <= 557) AND (col1 BETWEEN 543.41 AND 259.54) AND col1 > 439.69) AND col3 > 975)

statement ok
CREATE VIEW view_2_tab1_927 AS SELECT pk, col0 FROM tab1 WHERE NOT (((((col3 < 617 OR (col0 IS NULL OR (((col1 < 182.89 AND col3 = 185) AND (col3 > 95 OR ((col3 < 726)) OR col4 > 78.86 AND col3 < 723 OR (col0 <= 761 OR (col4 < 741.83) OR (col0 <= 85 OR col4 IS NULL)) AND col4 = 830.49 AND (((((col4 IS NULL OR (col1 IS NULL) AND col4 < 889.47)) OR col0 > 197 OR (col4 IN (677.8,245.99,832.62,590.60,373.98))))) OR col1 >= 885.78 OR col4 < 179.35 AND col0 > 828) OR (((col4 <= 798.35)) AND col0 <= 157) OR col0 < 423)))) OR (col0 >= 337) AND col1 = 704.61 AND col4 = 971.2 OR (col3 >= 11) AND (col0 <= 809)) OR (col4 < 704.47) OR (((col3 = 818)) OR col3 <= 446 AND col0 = 973 AND col0 IN (401,755) AND ((col0 > 944)) AND (col4 >= 604.0) AND col3 >= 208 AND col1 <= 769.44 AND col3 < 471 OR col0 < 416 AND col0 <= 557) AND (col1 BETWEEN 543.41 AND 259.54) AND col1 > 439.69) AND col3 > 975))

statement ok
CREATE VIEW view_3_tab1_927 AS SELECT pk FROM view_1_tab1_927

query II rowsort label-5400-1
SELECT pk, col0 FROM tab1 WHERE ((((col3 < 617 OR (col0 IS NULL OR (((col1 < 182.89 AND col3 = 185) AND (col3 > 95 OR ((col3 < 726)) OR col4 > 78.86 AND col3 < 723 OR (col0 <= 761 OR (col4 < 741.83) OR (col0 <= 85 OR col4 IS NULL)) AND col4 = 830.49 AND (((((col4 IS NULL OR (col1 IS NULL) AND col4 < 889.47)) OR col0 > 197 OR (col4 IN (677.8,245.99,832.62,590.60,373.98))))) OR col1 >= 885.78 OR col4 < 179.35 AND col0 > 828) OR (((col4 <= 798.35)) AND col0 <= 157) OR col0 < 423)))) OR (col0 >= 337) AND col1 = 704.61 AND col4 = 971.2 OR (col3 >= 11) AND (col0 <= 809)) OR (col4 < 704.47) OR (((col3 = 818)) OR col3 <= 446 AND col0 = 973 AND col0 IN (401,755) AND ((col0 > 944)) AND (col4 >= 604.0) AND col3 >= 208 AND col1 <= 769.44 AND col3 < 471 OR col0 < 416 AND col0 <= 557) AND (col1 BETWEEN 543.41 AND 259.54) AND col1 > 439.69) AND col3 > 975)
----
27
872
35
285

query II rowsort label-5400-2
SELECT pk, col0 FROM tab1 WHERE NOT (((((col3 < 617 OR (col0 IS NULL OR (((col1 < 182.89 AND col3 = 185) AND (col3 > 95 OR ((col3 < 726)) OR col4 > 78.86 AND col3 < 723 OR (col0 <= 761 OR (col4 < 741.83) OR (col0 <= 85 OR col4 IS NULL)) AND col4 = 830.49 AND (((((col4 IS NULL OR (col1 IS NULL) AND col4 < 889.47)) OR col0 > 197 OR (col4 IN (677.8,245.99,832.62,590.60,373.98))))) OR col1 >= 885.78 OR col4 < 179.35 AND col0 > 828) OR (((col4 <= 798.35)) AND col0 <= 157) OR col0 < 423)))) OR (col0 >= 337) AND col1 = 704.61 AND col4 = 971.2 OR (col3 >= 11) AND (col0 <= 809)) OR (col4 < 704.47) OR (((col3 = 818)) OR col3 <= 446 AND col0 = 973 AND col0 IN (401,755) AND ((col0 > 944)) AND (col4 >= 604.0) AND col3 >= 208 AND col1 <= 769.44 AND col3 < 471 OR col0 < 416 AND col0 <= 557) AND (col1 BETWEEN 543.41 AND 259.54) AND col1 > 439.69) AND col3 > 975))
----
196 values hashing to 4615ff6444e8328dad59f9efb3945bbe

query II rowsort label-5400-1
SELECT pk, col0 FROM view_1_tab1_927
----
27
872
35
285

query II rowsort label-5400-2
SELECT pk, col0 FROM view_2_tab1_927
----
196 values hashing to 4615ff6444e8328dad59f9efb3945bbe

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE ((((col3 < 617 OR (col0 IS NULL OR (((col1 < 182.89 AND col3 = 185) AND (col3 > 95 OR ((col3 < 726)) OR col4 > 78.86 AND col3 < 723 OR (col0 <= 761 OR (col4 < 741.83) OR (col0 <= 85 OR col4 IS NULL)) AND col4 = 830.49 AND (((((col4 IS NULL OR (col1 IS NULL) AND col4 < 889.47)) OR col0 > 197 OR (col4 IN (677.8,245.99,832.62,590.60,373.98))))) OR col1 >= 885.78 OR col4 < 179.35 AND col0 > 828) OR (((col4 <= 798.35)) AND col0 <= 157) OR col0 < 423)))) OR (col0 >= 337) AND col1 = 704.61 AND col4 = 971.2 OR (col3 >= 11) AND (col0 <= 809)) OR (col4 < 704.47) OR (((col3 = 818)) OR col3 <= 446 AND col0 = 973 AND col0 IN (401,755) AND ((col0 > 944)) AND (col4 >= 604.0) AND col3 >= 208 AND col1 <= 769.44 AND col3 < 471 OR col0 < 416 AND col0 <= 557) AND (col1 BETWEEN 543.41 AND 259.54) AND col1 > 439.69) AND col3 > 975) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (((((col3 < 617 OR (col0 IS NULL OR (((col1 < 182.89 AND col3 = 185) AND (col3 > 95 OR ((col3 < 726)) OR col4 > 78.86 AND col3 < 723 OR (col0 <= 761 OR (col4 < 741.83) OR (col0 <= 85 OR col4 IS NULL)) AND col4 = 830.49 AND (((((col4 IS NULL OR (col1 IS NULL) AND col4 < 889.47)) OR col0 > 197 OR (col4 IN (677.8,245.99,832.62,590.60,373.98))))) OR col1 >= 885.78 OR col4 < 179.35 AND col0 > 828) OR (((col4 <= 798.35)) AND col0 <= 157) OR col0 < 423)))) OR (col0 >= 337) AND col1 = 704.61 AND col4 = 971.2 OR (col3 >= 11) AND (col0 <= 809)) OR (col4 < 704.47) OR (((col3 = 818)) OR col3 <= 446 AND col0 = 973 AND col0 IN (401,755) AND ((col0 > 944)) AND (col4 >= 604.0) AND col3 >= 208 AND col1 <= 769.44 AND col3 < 471 OR col0 < 416 AND col0 <= 557) AND (col1 BETWEEN 543.41 AND 259.54) AND col1 > 439.69) AND col3 > 975))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_927 UNION ALL SELECT pk, col0 FROM view_2_tab1_927
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE ((((col3 < 617 OR (col0 IS NULL OR (((col1 < 182.89 AND col3 = 185) AND (col3 > 95 OR ((col3 < 726)) OR col4 > 78.86 AND col3 < 723 OR (col0 <= 761 OR (col4 < 741.83) OR (col0 <= 85 OR col4 IS NULL)) AND col4 = 830.49 AND (((((col4 IS NULL OR (col1 IS NULL) AND col4 < 889.47)) OR col0 > 197 OR (col4 IN (677.8,245.99,832.62,590.60,373.98))))) OR col1 >= 885.78 OR col4 < 179.35 AND col0 > 828) OR (((col4 <= 798.35)) AND col0 <= 157) OR col0 < 423)))) OR (col0 >= 337) AND col1 = 704.61 AND col4 = 971.2 OR (col3 >= 11) AND (col0 <= 809)) OR (col4 < 704.47) OR (((col3 = 818)) OR col3 <= 446 AND col0 = 973 AND col0 IN (401,755) AND ((col0 > 944)) AND (col4 >= 604.0) AND col3 >= 208 AND col1 <= 769.44 AND col3 < 471 OR col0 < 416 AND col0 <= 557) AND (col1 BETWEEN 543.41 AND 259.54) AND col1 > 439.69) AND col3 > 975) UNION SELECT pk, col0 FROM tab1 WHERE NOT (((((col3 < 617 OR (col0 IS NULL OR (((col1 < 182.89 AND col3 = 185) AND (col3 > 95 OR ((col3 < 726)) OR col4 > 78.86 AND col3 < 723 OR (col0 <= 761 OR (col4 < 741.83) OR (col0 <= 85 OR col4 IS NULL)) AND col4 = 830.49 AND (((((col4 IS NULL OR (col1 IS NULL) AND col4 < 889.47)) OR col0 > 197 OR (col4 IN (677.8,245.99,832.62,590.60,373.98))))) OR col1 >= 885.78 OR col4 < 179.35 AND col0 > 828) OR (((col4 <= 798.35)) AND col0 <= 157) OR col0 < 423)))) OR (col0 >= 337) AND col1 = 704.61 AND col4 = 971.2 OR (col3 >= 11) AND (col0 <= 809)) OR (col4 < 704.47) OR (((col3 = 818)) OR col3 <= 446 AND col0 = 973 AND col0 IN (401,755) AND ((col0 > 944)) AND (col4 >= 604.0) AND col3 >= 208 AND col1 <= 769.44 AND col3 < 471 OR col0 < 416 AND col0 <= 557) AND (col1 BETWEEN 543.41 AND 259.54) AND col1 > 439.69) AND col3 > 975))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_927 UNION SELECT pk, col0 FROM view_2_tab1_927
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-5400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE ((((col3 < 617 OR (col0 IS NULL OR (((col1 < 182.89 AND col3 = 185) AND (col3 > 95 OR ((col3 < 726)) OR col4 > 78.86 AND col3 < 723 OR (col0 <= 761 OR (col4 < 741.83) OR (col0 <= 85 OR col4 IS NULL)) AND col4 = 830.49 AND (((((col4 IS NULL OR (col1 IS NULL) AND col4 < 889.47)) OR col0 > 197 OR (col4 IN (677.8,245.99,832.62,590.60,373.98))))) OR col1 >= 885.78 OR col4 < 179.35 AND col0 > 828) OR (((col4 <= 798.35)) AND col0 <= 157) OR col0 < 423)))) OR (col0 >= 337) AND col1 = 704.61 AND col4 = 971.2 OR (col3 >= 11) AND (col0 <= 809)) OR (col4 < 704.47) OR (((col3 = 818)) OR col3 <= 446 AND col0 = 973 AND col0 IN (401,755) AND ((col0 > 944)) AND (col4 >= 604.0) AND col3 >= 208 AND col1 <= 769.44 AND col3 < 471 OR col0 < 416 AND col0 <= 557) AND (col1 BETWEEN 543.41 AND 259.54) AND col1 > 439.69) AND col3 > 975) ) AS tab1_927
----
27
35

query I rowsort label-5400-3
SELECT * FROM view_3_tab1_927
----
27
35

query I rowsort label-5400-3
SELECT pk FROM tab1 WHERE ((((col3 < 617 OR (col0 IS NULL OR (((col1 < 182.89 AND col3 = 185) AND (col3 > 95 OR ((col3 < 726)) OR col4 > 78.86 AND col3 < 723 OR (col0 <= 761 OR (col4 < 741.83) OR (col0 <= 85 OR col4 IS NULL)) AND col4 = 830.49 AND (((((col4 IS NULL OR (col1 IS NULL) AND col4 < 889.47)) OR col0 > 197 OR (col4 IN (677.8,245.99,832.62,590.60,373.98))))) OR col1 >= 885.78 OR col4 < 179.35 AND col0 > 828) OR (((col4 <= 798.35)) AND col0 <= 157) OR col0 < 423)))) OR (col0 >= 337) AND col1 = 704.61 AND col4 = 971.2 OR (col3 >= 11) AND (col0 <= 809)) OR (col4 < 704.47) OR (((col3 = 818)) OR col3 <= 446 AND col0 = 973 AND col0 IN (401,755) AND ((col0 > 944)) AND (col4 >= 604.0) AND col3 >= 208 AND col1 <= 769.44 AND col3 < 471 OR col0 < 416 AND col0 <= 557) AND (col1 BETWEEN 543.41 AND 259.54) AND col1 > 439.69) AND col3 > 975)
----
27
35

statement ok
DROP VIEW view_1_tab1_927

statement ok
DROP VIEW view_2_tab1_927

statement ok
DROP VIEW view_3_tab1_927

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_927') DROP VIEW view_1_tab2_927

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_927

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_927') DROP VIEW view_2_tab2_927

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_927

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_927') DROP VIEW view_3_tab2_927

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_927

statement ok
CREATE VIEW view_1_tab2_927 AS SELECT pk, col0 FROM tab2 WHERE ((((col3 < 617 OR (col0 IS NULL OR (((col1 < 182.89 AND col3 = 185) AND (col3 > 95 OR ((col3 < 726)) OR col4 > 78.86 AND col3 < 723 OR (col0 <= 761 OR (col4 < 741.83) OR (col0 <= 85 OR col4 IS NULL)) AND col4 = 830.49 AND (((((col4 IS NULL OR (col1 IS NULL) AND col4 < 889.47)) OR col0 > 197 OR (col4 IN (677.8,245.99,832.62,590.60,373.98))))) OR col1 >= 885.78 OR col4 < 179.35 AND col0 > 828) OR (((col4 <= 798.35)) AND col0 <= 157) OR col0 < 423)))) OR (col0 >= 337) AND col1 = 704.61 AND col4 = 971.2 OR (col3 >= 11) AND (col0 <= 809)) OR (col4 < 704.47) OR (((col3 = 818)) OR col3 <= 446 AND col0 = 973 AND col0 IN (401,755) AND ((col0 > 944)) AND (col4 >= 604.0) AND col3 >= 208 AND col1 <= 769.44 AND col3 < 471 OR col0 < 416 AND col0 <= 557) AND (col1 BETWEEN 543.41 AND 259.54) AND col1 > 439.69) AND col3 > 975)

statement ok
CREATE VIEW view_2_tab2_927 AS SELECT pk, col0 FROM tab2 WHERE NOT (((((col3 < 617 OR (col0 IS NULL OR (((col1 < 182.89 AND col3 = 185) AND (col3 > 95 OR ((col3 < 726)) OR col4 > 78.86 AND col3 < 723 OR (col0 <= 761 OR (col4 < 741.83) OR (col0 <= 85 OR col4 IS NULL)) AND col4 = 830.49 AND (((((col4 IS NULL OR (col1 IS NULL) AND col4 < 889.47)) OR col0 > 197 OR (col4 IN (677.8,245.99,832.62,590.60,373.98))))) OR col1 >= 885.78 OR col4 < 179.35 AND col0 > 828) OR (((col4 <= 798.35)) AND col0 <= 157) OR col0 < 423)))) OR (col0 >= 337) AND col1 = 704.61 AND col4 = 971.2 OR (col3 >= 11) AND (col0 <= 809)) OR (col4 < 704.47) OR (((col3 = 818)) OR col3 <= 446 AND col0 = 973 AND col0 IN (401,755) AND ((col0 > 944)) AND (col4 >= 604.0) AND col3 >= 208 AND col1 <= 769.44 AND col3 < 471 OR col0 < 416 AND col0 <= 557) AND (col1 BETWEEN 543.41 AND 259.54) AND col1 > 439.69) AND col3 > 975))

statement ok
CREATE VIEW view_3_tab2_927 AS SELECT pk FROM view_1_tab2_927

query II rowsort label-5400-1
SELECT pk, col0 FROM tab2 WHERE ((((col3 < 617 OR (col0 IS NULL OR (((col1 < 182.89 AND col3 = 185) AND (col3 > 95 OR ((col3 < 726)) OR col4 > 78.86 AND col3 < 723 OR (col0 <= 761 OR (col4 < 741.83) OR (col0 <= 85 OR col4 IS NULL)) AND col4 = 830.49 AND (((((col4 IS NULL OR (col1 IS NULL) AND col4 < 889.47)) OR col0 > 197 OR (col4 IN (677.8,245.99,832.62,590.60,373.98))))) OR col1 >= 885.78 OR col4 < 179.35 AND col0 > 828) OR (((col4 <= 798.35)) AND col0 <= 157) OR col0 < 423)))) OR (col0 >= 337) AND col1 = 704.61 AND col4 = 971.2 OR (col3 >= 11) AND (col0 <= 809)) OR (col4 < 704.47) OR (((col3 = 818)) OR col3 <= 446 AND col0 = 973 AND col0 IN (401,755) AND ((col0 > 944)) AND (col4 >= 604.0) AND col3 >= 208 AND col1 <= 769.44 AND col3 < 471 OR col0 < 416 AND col0 <= 557) AND (col1 BETWEEN 543.41 AND 259.54) AND col1 > 439.69) AND col3 > 975)
----
27
872
35
285

query II rowsort label-5400-2
SELECT pk, col0 FROM tab2 WHERE NOT (((((col3 < 617 OR (col0 IS NULL OR (((col1 < 182.89 AND col3 = 185) AND (col3 > 95 OR ((col3 < 726)) OR col4 > 78.86 AND col3 < 723 OR (col0 <= 761 OR (col4 < 741.83) OR (col0 <= 85 OR col4 IS NULL)) AND col4 = 830.49 AND (((((col4 IS NULL OR (col1 IS NULL) AND col4 < 889.47)) OR col0 > 197 OR (col4 IN (677.8,245.99,832.62,590.60,373.98))))) OR col1 >= 885.78 OR col4 < 179.35 AND col0 > 828) OR (((col4 <= 798.35)) AND col0 <= 157) OR col0 < 423)))) OR (col0 >= 337) AND col1 = 704.61 AND col4 = 971.2 OR (col3 >= 11) AND (col0 <= 809)) OR (col4 < 704.47) OR (((col3 = 818)) OR col3 <= 446 AND col0 = 973 AND col0 IN (401,755) AND ((col0 > 944)) AND (col4 >= 604.0) AND col3 >= 208 AND col1 <= 769.44 AND col3 < 471 OR col0 < 416 AND col0 <= 557) AND (col1 BETWEEN 543.41 AND 259.54) AND col1 > 439.69) AND col3 > 975))
----
196 values hashing to 4615ff6444e8328dad59f9efb3945bbe

query II rowsort label-5400-1
SELECT pk, col0 FROM view_1_tab2_927
----
27
872
35
285

query II rowsort label-5400-2
SELECT pk, col0 FROM view_2_tab2_927
----
196 values hashing to 4615ff6444e8328dad59f9efb3945bbe

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE ((((col3 < 617 OR (col0 IS NULL OR (((col1 < 182.89 AND col3 = 185) AND (col3 > 95 OR ((col3 < 726)) OR col4 > 78.86 AND col3 < 723 OR (col0 <= 761 OR (col4 < 741.83) OR (col0 <= 85 OR col4 IS NULL)) AND col4 = 830.49 AND (((((col4 IS NULL OR (col1 IS NULL) AND col4 < 889.47)) OR col0 > 197 OR (col4 IN (677.8,245.99,832.62,590.60,373.98))))) OR col1 >= 885.78 OR col4 < 179.35 AND col0 > 828) OR (((col4 <= 798.35)) AND col0 <= 157) OR col0 < 423)))) OR (col0 >= 337) AND col1 = 704.61 AND col4 = 971.2 OR (col3 >= 11) AND (col0 <= 809)) OR (col4 < 704.47) OR (((col3 = 818)) OR col3 <= 446 AND col0 = 973 AND col0 IN (401,755) AND ((col0 > 944)) AND (col4 >= 604.0) AND col3 >= 208 AND col1 <= 769.44 AND col3 < 471 OR col0 < 416 AND col0 <= 557) AND (col1 BETWEEN 543.41 AND 259.54) AND col1 > 439.69) AND col3 > 975) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (((((col3 < 617 OR (col0 IS NULL OR (((col1 < 182.89 AND col3 = 185) AND (col3 > 95 OR ((col3 < 726)) OR col4 > 78.86 AND col3 < 723 OR (col0 <= 761 OR (col4 < 741.83) OR (col0 <= 85 OR col4 IS NULL)) AND col4 = 830.49 AND (((((col4 IS NULL OR (col1 IS NULL) AND col4 < 889.47)) OR col0 > 197 OR (col4 IN (677.8,245.99,832.62,590.60,373.98))))) OR col1 >= 885.78 OR col4 < 179.35 AND col0 > 828) OR (((col4 <= 798.35)) AND col0 <= 157) OR col0 < 423)))) OR (col0 >= 337) AND col1 = 704.61 AND col4 = 971.2 OR (col3 >= 11) AND (col0 <= 809)) OR (col4 < 704.47) OR (((col3 = 818)) OR col3 <= 446 AND col0 = 973 AND col0 IN (401,755) AND ((col0 > 944)) AND (col4 >= 604.0) AND col3 >= 208 AND col1 <= 769.44 AND col3 < 471 OR col0 < 416 AND col0 <= 557) AND (col1 BETWEEN 543.41 AND 259.54) AND col1 > 439.69) AND col3 > 975))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_927 UNION ALL SELECT pk, col0 FROM view_2_tab2_927
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE ((((col3 < 617 OR (col0 IS NULL OR (((col1 < 182.89 AND col3 = 185) AND (col3 > 95 OR ((col3 < 726)) OR col4 > 78.86 AND col3 < 723 OR (col0 <= 761 OR (col4 < 741.83) OR (col0 <= 85 OR col4 IS NULL)) AND col4 = 830.49 AND (((((col4 IS NULL OR (col1 IS NULL) AND col4 < 889.47)) OR col0 > 197 OR (col4 IN (677.8,245.99,832.62,590.60,373.98))))) OR col1 >= 885.78 OR col4 < 179.35 AND col0 > 828) OR (((col4 <= 798.35)) AND col0 <= 157) OR col0 < 423)))) OR (col0 >= 337) AND col1 = 704.61 AND col4 = 971.2 OR (col3 >= 11) AND (col0 <= 809)) OR (col4 < 704.47) OR (((col3 = 818)) OR col3 <= 446 AND col0 = 973 AND col0 IN (401,755) AND ((col0 > 944)) AND (col4 >= 604.0) AND col3 >= 208 AND col1 <= 769.44 AND col3 < 471 OR col0 < 416 AND col0 <= 557) AND (col1 BETWEEN 543.41 AND 259.54) AND col1 > 439.69) AND col3 > 975) UNION SELECT pk, col0 FROM tab2 WHERE NOT (((((col3 < 617 OR (col0 IS NULL OR (((col1 < 182.89 AND col3 = 185) AND (col3 > 95 OR ((col3 < 726)) OR col4 > 78.86 AND col3 < 723 OR (col0 <= 761 OR (col4 < 741.83) OR (col0 <= 85 OR col4 IS NULL)) AND col4 = 830.49 AND (((((col4 IS NULL OR (col1 IS NULL) AND col4 < 889.47)) OR col0 > 197 OR (col4 IN (677.8,245.99,832.62,590.60,373.98))))) OR col1 >= 885.78 OR col4 < 179.35 AND col0 > 828) OR (((col4 <= 798.35)) AND col0 <= 157) OR col0 < 423)))) OR (col0 >= 337) AND col1 = 704.61 AND col4 = 971.2 OR (col3 >= 11) AND (col0 <= 809)) OR (col4 < 704.47) OR (((col3 = 818)) OR col3 <= 446 AND col0 = 973 AND col0 IN (401,755) AND ((col0 > 944)) AND (col4 >= 604.0) AND col3 >= 208 AND col1 <= 769.44 AND col3 < 471 OR col0 < 416 AND col0 <= 557) AND (col1 BETWEEN 543.41 AND 259.54) AND col1 > 439.69) AND col3 > 975))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_927 UNION SELECT pk, col0 FROM view_2_tab2_927
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-5400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE ((((col3 < 617 OR (col0 IS NULL OR (((col1 < 182.89 AND col3 = 185) AND (col3 > 95 OR ((col3 < 726)) OR col4 > 78.86 AND col3 < 723 OR (col0 <= 761 OR (col4 < 741.83) OR (col0 <= 85 OR col4 IS NULL)) AND col4 = 830.49 AND (((((col4 IS NULL OR (col1 IS NULL) AND col4 < 889.47)) OR col0 > 197 OR (col4 IN (677.8,245.99,832.62,590.60,373.98))))) OR col1 >= 885.78 OR col4 < 179.35 AND col0 > 828) OR (((col4 <= 798.35)) AND col0 <= 157) OR col0 < 423)))) OR (col0 >= 337) AND col1 = 704.61 AND col4 = 971.2 OR (col3 >= 11) AND (col0 <= 809)) OR (col4 < 704.47) OR (((col3 = 818)) OR col3 <= 446 AND col0 = 973 AND col0 IN (401,755) AND ((col0 > 944)) AND (col4 >= 604.0) AND col3 >= 208 AND col1 <= 769.44 AND col3 < 471 OR col0 < 416 AND col0 <= 557) AND (col1 BETWEEN 543.41 AND 259.54) AND col1 > 439.69) AND col3 > 975) ) AS tab2_927
----
27
35

query I rowsort label-5400-3
SELECT * FROM view_3_tab2_927
----
27
35

query I rowsort label-5400-3
SELECT pk FROM tab2 WHERE ((((col3 < 617 OR (col0 IS NULL OR (((col1 < 182.89 AND col3 = 185) AND (col3 > 95 OR ((col3 < 726)) OR col4 > 78.86 AND col3 < 723 OR (col0 <= 761 OR (col4 < 741.83) OR (col0 <= 85 OR col4 IS NULL)) AND col4 = 830.49 AND (((((col4 IS NULL OR (col1 IS NULL) AND col4 < 889.47)) OR col0 > 197 OR (col4 IN (677.8,245.99,832.62,590.60,373.98))))) OR col1 >= 885.78 OR col4 < 179.35 AND col0 > 828) OR (((col4 <= 798.35)) AND col0 <= 157) OR col0 < 423)))) OR (col0 >= 337) AND col1 = 704.61 AND col4 = 971.2 OR (col3 >= 11) AND (col0 <= 809)) OR (col4 < 704.47) OR (((col3 = 818)) OR col3 <= 446 AND col0 = 973 AND col0 IN (401,755) AND ((col0 > 944)) AND (col4 >= 604.0) AND col3 >= 208 AND col1 <= 769.44 AND col3 < 471 OR col0 < 416 AND col0 <= 557) AND (col1 BETWEEN 543.41 AND 259.54) AND col1 > 439.69) AND col3 > 975)
----
27
35

statement ok
DROP VIEW view_1_tab2_927

statement ok
DROP VIEW view_2_tab2_927

statement ok
DROP VIEW view_3_tab2_927

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_927') DROP VIEW view_1_tab3_927

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_927

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_927') DROP VIEW view_2_tab3_927

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_927

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_927') DROP VIEW view_3_tab3_927

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_927

statement ok
CREATE VIEW view_1_tab3_927 AS SELECT pk, col0 FROM tab3 WHERE ((((col3 < 617 OR (col0 IS NULL OR (((col1 < 182.89 AND col3 = 185) AND (col3 > 95 OR ((col3 < 726)) OR col4 > 78.86 AND col3 < 723 OR (col0 <= 761 OR (col4 < 741.83) OR (col0 <= 85 OR col4 IS NULL)) AND col4 = 830.49 AND (((((col4 IS NULL OR (col1 IS NULL) AND col4 < 889.47)) OR col0 > 197 OR (col4 IN (677.8,245.99,832.62,590.60,373.98))))) OR col1 >= 885.78 OR col4 < 179.35 AND col0 > 828) OR (((col4 <= 798.35)) AND col0 <= 157) OR col0 < 423)))) OR (col0 >= 337) AND col1 = 704.61 AND col4 = 971.2 OR (col3 >= 11) AND (col0 <= 809)) OR (col4 < 704.47) OR (((col3 = 818)) OR col3 <= 446 AND col0 = 973 AND col0 IN (401,755) AND ((col0 > 944)) AND (col4 >= 604.0) AND col3 >= 208 AND col1 <= 769.44 AND col3 < 471 OR col0 < 416 AND col0 <= 557) AND (col1 BETWEEN 543.41 AND 259.54) AND col1 > 439.69) AND col3 > 975)

statement ok
CREATE VIEW view_2_tab3_927 AS SELECT pk, col0 FROM tab3 WHERE NOT (((((col3 < 617 OR (col0 IS NULL OR (((col1 < 182.89 AND col3 = 185) AND (col3 > 95 OR ((col3 < 726)) OR col4 > 78.86 AND col3 < 723 OR (col0 <= 761 OR (col4 < 741.83) OR (col0 <= 85 OR col4 IS NULL)) AND col4 = 830.49 AND (((((col4 IS NULL OR (col1 IS NULL) AND col4 < 889.47)) OR col0 > 197 OR (col4 IN (677.8,245.99,832.62,590.60,373.98))))) OR col1 >= 885.78 OR col4 < 179.35 AND col0 > 828) OR (((col4 <= 798.35)) AND col0 <= 157) OR col0 < 423)))) OR (col0 >= 337) AND col1 = 704.61 AND col4 = 971.2 OR (col3 >= 11) AND (col0 <= 809)) OR (col4 < 704.47) OR (((col3 = 818)) OR col3 <= 446 AND col0 = 973 AND col0 IN (401,755) AND ((col0 > 944)) AND (col4 >= 604.0) AND col3 >= 208 AND col1 <= 769.44 AND col3 < 471 OR col0 < 416 AND col0 <= 557) AND (col1 BETWEEN 543.41 AND 259.54) AND col1 > 439.69) AND col3 > 975))

statement ok
CREATE VIEW view_3_tab3_927 AS SELECT pk FROM view_1_tab3_927

query II rowsort label-5400-1
SELECT pk, col0 FROM tab3 WHERE ((((col3 < 617 OR (col0 IS NULL OR (((col1 < 182.89 AND col3 = 185) AND (col3 > 95 OR ((col3 < 726)) OR col4 > 78.86 AND col3 < 723 OR (col0 <= 761 OR (col4 < 741.83) OR (col0 <= 85 OR col4 IS NULL)) AND col4 = 830.49 AND (((((col4 IS NULL OR (col1 IS NULL) AND col4 < 889.47)) OR col0 > 197 OR (col4 IN (677.8,245.99,832.62,590.60,373.98))))) OR col1 >= 885.78 OR col4 < 179.35 AND col0 > 828) OR (((col4 <= 798.35)) AND col0 <= 157) OR col0 < 423)))) OR (col0 >= 337) AND col1 = 704.61 AND col4 = 971.2 OR (col3 >= 11) AND (col0 <= 809)) OR (col4 < 704.47) OR (((col3 = 818)) OR col3 <= 446 AND col0 = 973 AND col0 IN (401,755) AND ((col0 > 944)) AND (col4 >= 604.0) AND col3 >= 208 AND col1 <= 769.44 AND col3 < 471 OR col0 < 416 AND col0 <= 557) AND (col1 BETWEEN 543.41 AND 259.54) AND col1 > 439.69) AND col3 > 975)
----
27
872
35
285

query II rowsort label-5400-2
SELECT pk, col0 FROM tab3 WHERE NOT (((((col3 < 617 OR (col0 IS NULL OR (((col1 < 182.89 AND col3 = 185) AND (col3 > 95 OR ((col3 < 726)) OR col4 > 78.86 AND col3 < 723 OR (col0 <= 761 OR (col4 < 741.83) OR (col0 <= 85 OR col4 IS NULL)) AND col4 = 830.49 AND (((((col4 IS NULL OR (col1 IS NULL) AND col4 < 889.47)) OR col0 > 197 OR (col4 IN (677.8,245.99,832.62,590.60,373.98))))) OR col1 >= 885.78 OR col4 < 179.35 AND col0 > 828) OR (((col4 <= 798.35)) AND col0 <= 157) OR col0 < 423)))) OR (col0 >= 337) AND col1 = 704.61 AND col4 = 971.2 OR (col3 >= 11) AND (col0 <= 809)) OR (col4 < 704.47) OR (((col3 = 818)) OR col3 <= 446 AND col0 = 973 AND col0 IN (401,755) AND ((col0 > 944)) AND (col4 >= 604.0) AND col3 >= 208 AND col1 <= 769.44 AND col3 < 471 OR col0 < 416 AND col0 <= 557) AND (col1 BETWEEN 543.41 AND 259.54) AND col1 > 439.69) AND col3 > 975))
----
196 values hashing to 4615ff6444e8328dad59f9efb3945bbe

query II rowsort label-5400-1
SELECT pk, col0 FROM view_1_tab3_927
----
27
872
35
285

query II rowsort label-5400-2
SELECT pk, col0 FROM view_2_tab3_927
----
196 values hashing to 4615ff6444e8328dad59f9efb3945bbe

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE ((((col3 < 617 OR (col0 IS NULL OR (((col1 < 182.89 AND col3 = 185) AND (col3 > 95 OR ((col3 < 726)) OR col4 > 78.86 AND col3 < 723 OR (col0 <= 761 OR (col4 < 741.83) OR (col0 <= 85 OR col4 IS NULL)) AND col4 = 830.49 AND (((((col4 IS NULL OR (col1 IS NULL) AND col4 < 889.47)) OR col0 > 197 OR (col4 IN (677.8,245.99,832.62,590.60,373.98))))) OR col1 >= 885.78 OR col4 < 179.35 AND col0 > 828) OR (((col4 <= 798.35)) AND col0 <= 157) OR col0 < 423)))) OR (col0 >= 337) AND col1 = 704.61 AND col4 = 971.2 OR (col3 >= 11) AND (col0 <= 809)) OR (col4 < 704.47) OR (((col3 = 818)) OR col3 <= 446 AND col0 = 973 AND col0 IN (401,755) AND ((col0 > 944)) AND (col4 >= 604.0) AND col3 >= 208 AND col1 <= 769.44 AND col3 < 471 OR col0 < 416 AND col0 <= 557) AND (col1 BETWEEN 543.41 AND 259.54) AND col1 > 439.69) AND col3 > 975) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (((((col3 < 617 OR (col0 IS NULL OR (((col1 < 182.89 AND col3 = 185) AND (col3 > 95 OR ((col3 < 726)) OR col4 > 78.86 AND col3 < 723 OR (col0 <= 761 OR (col4 < 741.83) OR (col0 <= 85 OR col4 IS NULL)) AND col4 = 830.49 AND (((((col4 IS NULL OR (col1 IS NULL) AND col4 < 889.47)) OR col0 > 197 OR (col4 IN (677.8,245.99,832.62,590.60,373.98))))) OR col1 >= 885.78 OR col4 < 179.35 AND col0 > 828) OR (((col4 <= 798.35)) AND col0 <= 157) OR col0 < 423)))) OR (col0 >= 337) AND col1 = 704.61 AND col4 = 971.2 OR (col3 >= 11) AND (col0 <= 809)) OR (col4 < 704.47) OR (((col3 = 818)) OR col3 <= 446 AND col0 = 973 AND col0 IN (401,755) AND ((col0 > 944)) AND (col4 >= 604.0) AND col3 >= 208 AND col1 <= 769.44 AND col3 < 471 OR col0 < 416 AND col0 <= 557) AND (col1 BETWEEN 543.41 AND 259.54) AND col1 > 439.69) AND col3 > 975))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_927 UNION ALL SELECT pk, col0 FROM view_2_tab3_927
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE ((((col3 < 617 OR (col0 IS NULL OR (((col1 < 182.89 AND col3 = 185) AND (col3 > 95 OR ((col3 < 726)) OR col4 > 78.86 AND col3 < 723 OR (col0 <= 761 OR (col4 < 741.83) OR (col0 <= 85 OR col4 IS NULL)) AND col4 = 830.49 AND (((((col4 IS NULL OR (col1 IS NULL) AND col4 < 889.47)) OR col0 > 197 OR (col4 IN (677.8,245.99,832.62,590.60,373.98))))) OR col1 >= 885.78 OR col4 < 179.35 AND col0 > 828) OR (((col4 <= 798.35)) AND col0 <= 157) OR col0 < 423)))) OR (col0 >= 337) AND col1 = 704.61 AND col4 = 971.2 OR (col3 >= 11) AND (col0 <= 809)) OR (col4 < 704.47) OR (((col3 = 818)) OR col3 <= 446 AND col0 = 973 AND col0 IN (401,755) AND ((col0 > 944)) AND (col4 >= 604.0) AND col3 >= 208 AND col1 <= 769.44 AND col3 < 471 OR col0 < 416 AND col0 <= 557) AND (col1 BETWEEN 543.41 AND 259.54) AND col1 > 439.69) AND col3 > 975) UNION SELECT pk, col0 FROM tab3 WHERE NOT (((((col3 < 617 OR (col0 IS NULL OR (((col1 < 182.89 AND col3 = 185) AND (col3 > 95 OR ((col3 < 726)) OR col4 > 78.86 AND col3 < 723 OR (col0 <= 761 OR (col4 < 741.83) OR (col0 <= 85 OR col4 IS NULL)) AND col4 = 830.49 AND (((((col4 IS NULL OR (col1 IS NULL) AND col4 < 889.47)) OR col0 > 197 OR (col4 IN (677.8,245.99,832.62,590.60,373.98))))) OR col1 >= 885.78 OR col4 < 179.35 AND col0 > 828) OR (((col4 <= 798.35)) AND col0 <= 157) OR col0 < 423)))) OR (col0 >= 337) AND col1 = 704.61 AND col4 = 971.2 OR (col3 >= 11) AND (col0 <= 809)) OR (col4 < 704.47) OR (((col3 = 818)) OR col3 <= 446 AND col0 = 973 AND col0 IN (401,755) AND ((col0 > 944)) AND (col4 >= 604.0) AND col3 >= 208 AND col1 <= 769.44 AND col3 < 471 OR col0 < 416 AND col0 <= 557) AND (col1 BETWEEN 543.41 AND 259.54) AND col1 > 439.69) AND col3 > 975))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_927 UNION SELECT pk, col0 FROM view_2_tab3_927
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-5400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE ((((col3 < 617 OR (col0 IS NULL OR (((col1 < 182.89 AND col3 = 185) AND (col3 > 95 OR ((col3 < 726)) OR col4 > 78.86 AND col3 < 723 OR (col0 <= 761 OR (col4 < 741.83) OR (col0 <= 85 OR col4 IS NULL)) AND col4 = 830.49 AND (((((col4 IS NULL OR (col1 IS NULL) AND col4 < 889.47)) OR col0 > 197 OR (col4 IN (677.8,245.99,832.62,590.60,373.98))))) OR col1 >= 885.78 OR col4 < 179.35 AND col0 > 828) OR (((col4 <= 798.35)) AND col0 <= 157) OR col0 < 423)))) OR (col0 >= 337) AND col1 = 704.61 AND col4 = 971.2 OR (col3 >= 11) AND (col0 <= 809)) OR (col4 < 704.47) OR (((col3 = 818)) OR col3 <= 446 AND col0 = 973 AND col0 IN (401,755) AND ((col0 > 944)) AND (col4 >= 604.0) AND col3 >= 208 AND col1 <= 769.44 AND col3 < 471 OR col0 < 416 AND col0 <= 557) AND (col1 BETWEEN 543.41 AND 259.54) AND col1 > 439.69) AND col3 > 975) ) AS tab3_927
----
27
35

query I rowsort label-5400-3
SELECT * FROM view_3_tab3_927
----
27
35

query I rowsort label-5400-3
SELECT pk FROM tab3 WHERE ((((col3 < 617 OR (col0 IS NULL OR (((col1 < 182.89 AND col3 = 185) AND (col3 > 95 OR ((col3 < 726)) OR col4 > 78.86 AND col3 < 723 OR (col0 <= 761 OR (col4 < 741.83) OR (col0 <= 85 OR col4 IS NULL)) AND col4 = 830.49 AND (((((col4 IS NULL OR (col1 IS NULL) AND col4 < 889.47)) OR col0 > 197 OR (col4 IN (677.8,245.99,832.62,590.60,373.98))))) OR col1 >= 885.78 OR col4 < 179.35 AND col0 > 828) OR (((col4 <= 798.35)) AND col0 <= 157) OR col0 < 423)))) OR (col0 >= 337) AND col1 = 704.61 AND col4 = 971.2 OR (col3 >= 11) AND (col0 <= 809)) OR (col4 < 704.47) OR (((col3 = 818)) OR col3 <= 446 AND col0 = 973 AND col0 IN (401,755) AND ((col0 > 944)) AND (col4 >= 604.0) AND col3 >= 208 AND col1 <= 769.44 AND col3 < 471 OR col0 < 416 AND col0 <= 557) AND (col1 BETWEEN 543.41 AND 259.54) AND col1 > 439.69) AND col3 > 975)
----
27
35

statement ok
DROP VIEW view_1_tab3_927

statement ok
DROP VIEW view_2_tab3_927

statement ok
DROP VIEW view_3_tab3_927

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_927') DROP VIEW view_1_tab4_927

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_927

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_927') DROP VIEW view_2_tab4_927

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_927

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_927') DROP VIEW view_3_tab4_927

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_927

statement ok
CREATE VIEW view_1_tab4_927 AS SELECT pk, col0 FROM tab4 WHERE ((((col3 < 617 OR (col0 IS NULL OR (((col1 < 182.89 AND col3 = 185) AND (col3 > 95 OR ((col3 < 726)) OR col4 > 78.86 AND col3 < 723 OR (col0 <= 761 OR (col4 < 741.83) OR (col0 <= 85 OR col4 IS NULL)) AND col4 = 830.49 AND (((((col4 IS NULL OR (col1 IS NULL) AND col4 < 889.47)) OR col0 > 197 OR (col4 IN (677.8,245.99,832.62,590.60,373.98))))) OR col1 >= 885.78 OR col4 < 179.35 AND col0 > 828) OR (((col4 <= 798.35)) AND col0 <= 157) OR col0 < 423)))) OR (col0 >= 337) AND col1 = 704.61 AND col4 = 971.2 OR (col3 >= 11) AND (col0 <= 809)) OR (col4 < 704.47) OR (((col3 = 818)) OR col3 <= 446 AND col0 = 973 AND col0 IN (401,755) AND ((col0 > 944)) AND (col4 >= 604.0) AND col3 >= 208 AND col1 <= 769.44 AND col3 < 471 OR col0 < 416 AND col0 <= 557) AND (col1 BETWEEN 543.41 AND 259.54) AND col1 > 439.69) AND col3 > 975)

statement ok
CREATE VIEW view_2_tab4_927 AS SELECT pk, col0 FROM tab4 WHERE NOT (((((col3 < 617 OR (col0 IS NULL OR (((col1 < 182.89 AND col3 = 185) AND (col3 > 95 OR ((col3 < 726)) OR col4 > 78.86 AND col3 < 723 OR (col0 <= 761 OR (col4 < 741.83) OR (col0 <= 85 OR col4 IS NULL)) AND col4 = 830.49 AND (((((col4 IS NULL OR (col1 IS NULL) AND col4 < 889.47)) OR col0 > 197 OR (col4 IN (677.8,245.99,832.62,590.60,373.98))))) OR col1 >= 885.78 OR col4 < 179.35 AND col0 > 828) OR (((col4 <= 798.35)) AND col0 <= 157) OR col0 < 423)))) OR (col0 >= 337) AND col1 = 704.61 AND col4 = 971.2 OR (col3 >= 11) AND (col0 <= 809)) OR (col4 < 704.47) OR (((col3 = 818)) OR col3 <= 446 AND col0 = 973 AND col0 IN (401,755) AND ((col0 > 944)) AND (col4 >= 604.0) AND col3 >= 208 AND col1 <= 769.44 AND col3 < 471 OR col0 < 416 AND col0 <= 557) AND (col1 BETWEEN 543.41 AND 259.54) AND col1 > 439.69) AND col3 > 975))

statement ok
CREATE VIEW view_3_tab4_927 AS SELECT pk FROM view_1_tab4_927

query II rowsort label-5400-1
SELECT pk, col0 FROM tab4 WHERE ((((col3 < 617 OR (col0 IS NULL OR (((col1 < 182.89 AND col3 = 185) AND (col3 > 95 OR ((col3 < 726)) OR col4 > 78.86 AND col3 < 723 OR (col0 <= 761 OR (col4 < 741.83) OR (col0 <= 85 OR col4 IS NULL)) AND col4 = 830.49 AND (((((col4 IS NULL OR (col1 IS NULL) AND col4 < 889.47)) OR col0 > 197 OR (col4 IN (677.8,245.99,832.62,590.60,373.98))))) OR col1 >= 885.78 OR col4 < 179.35 AND col0 > 828) OR (((col4 <= 798.35)) AND col0 <= 157) OR col0 < 423)))) OR (col0 >= 337) AND col1 = 704.61 AND col4 = 971.2 OR (col3 >= 11) AND (col0 <= 809)) OR (col4 < 704.47) OR (((col3 = 818)) OR col3 <= 446 AND col0 = 973 AND col0 IN (401,755) AND ((col0 > 944)) AND (col4 >= 604.0) AND col3 >= 208 AND col1 <= 769.44 AND col3 < 471 OR col0 < 416 AND col0 <= 557) AND (col1 BETWEEN 543.41 AND 259.54) AND col1 > 439.69) AND col3 > 975)
----
27
872
35
285

query II rowsort label-5400-2
SELECT pk, col0 FROM tab4 WHERE NOT (((((col3 < 617 OR (col0 IS NULL OR (((col1 < 182.89 AND col3 = 185) AND (col3 > 95 OR ((col3 < 726)) OR col4 > 78.86 AND col3 < 723 OR (col0 <= 761 OR (col4 < 741.83) OR (col0 <= 85 OR col4 IS NULL)) AND col4 = 830.49 AND (((((col4 IS NULL OR (col1 IS NULL) AND col4 < 889.47)) OR col0 > 197 OR (col4 IN (677.8,245.99,832.62,590.60,373.98))))) OR col1 >= 885.78 OR col4 < 179.35 AND col0 > 828) OR (((col4 <= 798.35)) AND col0 <= 157) OR col0 < 423)))) OR (col0 >= 337) AND col1 = 704.61 AND col4 = 971.2 OR (col3 >= 11) AND (col0 <= 809)) OR (col4 < 704.47) OR (((col3 = 818)) OR col3 <= 446 AND col0 = 973 AND col0 IN (401,755) AND ((col0 > 944)) AND (col4 >= 604.0) AND col3 >= 208 AND col1 <= 769.44 AND col3 < 471 OR col0 < 416 AND col0 <= 557) AND (col1 BETWEEN 543.41 AND 259.54) AND col1 > 439.69) AND col3 > 975))
----
196 values hashing to 4615ff6444e8328dad59f9efb3945bbe

query II rowsort label-5400-1
SELECT pk, col0 FROM view_1_tab4_927
----
27
872
35
285

query II rowsort label-5400-2
SELECT pk, col0 FROM view_2_tab4_927
----
196 values hashing to 4615ff6444e8328dad59f9efb3945bbe

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE ((((col3 < 617 OR (col0 IS NULL OR (((col1 < 182.89 AND col3 = 185) AND (col3 > 95 OR ((col3 < 726)) OR col4 > 78.86 AND col3 < 723 OR (col0 <= 761 OR (col4 < 741.83) OR (col0 <= 85 OR col4 IS NULL)) AND col4 = 830.49 AND (((((col4 IS NULL OR (col1 IS NULL) AND col4 < 889.47)) OR col0 > 197 OR (col4 IN (677.8,245.99,832.62,590.60,373.98))))) OR col1 >= 885.78 OR col4 < 179.35 AND col0 > 828) OR (((col4 <= 798.35)) AND col0 <= 157) OR col0 < 423)))) OR (col0 >= 337) AND col1 = 704.61 AND col4 = 971.2 OR (col3 >= 11) AND (col0 <= 809)) OR (col4 < 704.47) OR (((col3 = 818)) OR col3 <= 446 AND col0 = 973 AND col0 IN (401,755) AND ((col0 > 944)) AND (col4 >= 604.0) AND col3 >= 208 AND col1 <= 769.44 AND col3 < 471 OR col0 < 416 AND col0 <= 557) AND (col1 BETWEEN 543.41 AND 259.54) AND col1 > 439.69) AND col3 > 975) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (((((col3 < 617 OR (col0 IS NULL OR (((col1 < 182.89 AND col3 = 185) AND (col3 > 95 OR ((col3 < 726)) OR col4 > 78.86 AND col3 < 723 OR (col0 <= 761 OR (col4 < 741.83) OR (col0 <= 85 OR col4 IS NULL)) AND col4 = 830.49 AND (((((col4 IS NULL OR (col1 IS NULL) AND col4 < 889.47)) OR col0 > 197 OR (col4 IN (677.8,245.99,832.62,590.60,373.98))))) OR col1 >= 885.78 OR col4 < 179.35 AND col0 > 828) OR (((col4 <= 798.35)) AND col0 <= 157) OR col0 < 423)))) OR (col0 >= 337) AND col1 = 704.61 AND col4 = 971.2 OR (col3 >= 11) AND (col0 <= 809)) OR (col4 < 704.47) OR (((col3 = 818)) OR col3 <= 446 AND col0 = 973 AND col0 IN (401,755) AND ((col0 > 944)) AND (col4 >= 604.0) AND col3 >= 208 AND col1 <= 769.44 AND col3 < 471 OR col0 < 416 AND col0 <= 557) AND (col1 BETWEEN 543.41 AND 259.54) AND col1 > 439.69) AND col3 > 975))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_927 UNION ALL SELECT pk, col0 FROM view_2_tab4_927
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE ((((col3 < 617 OR (col0 IS NULL OR (((col1 < 182.89 AND col3 = 185) AND (col3 > 95 OR ((col3 < 726)) OR col4 > 78.86 AND col3 < 723 OR (col0 <= 761 OR (col4 < 741.83) OR (col0 <= 85 OR col4 IS NULL)) AND col4 = 830.49 AND (((((col4 IS NULL OR (col1 IS NULL) AND col4 < 889.47)) OR col0 > 197 OR (col4 IN (677.8,245.99,832.62,590.60,373.98))))) OR col1 >= 885.78 OR col4 < 179.35 AND col0 > 828) OR (((col4 <= 798.35)) AND col0 <= 157) OR col0 < 423)))) OR (col0 >= 337) AND col1 = 704.61 AND col4 = 971.2 OR (col3 >= 11) AND (col0 <= 809)) OR (col4 < 704.47) OR (((col3 = 818)) OR col3 <= 446 AND col0 = 973 AND col0 IN (401,755) AND ((col0 > 944)) AND (col4 >= 604.0) AND col3 >= 208 AND col1 <= 769.44 AND col3 < 471 OR col0 < 416 AND col0 <= 557) AND (col1 BETWEEN 543.41 AND 259.54) AND col1 > 439.69) AND col3 > 975) UNION SELECT pk, col0 FROM tab4 WHERE NOT (((((col3 < 617 OR (col0 IS NULL OR (((col1 < 182.89 AND col3 = 185) AND (col3 > 95 OR ((col3 < 726)) OR col4 > 78.86 AND col3 < 723 OR (col0 <= 761 OR (col4 < 741.83) OR (col0 <= 85 OR col4 IS NULL)) AND col4 = 830.49 AND (((((col4 IS NULL OR (col1 IS NULL) AND col4 < 889.47)) OR col0 > 197 OR (col4 IN (677.8,245.99,832.62,590.60,373.98))))) OR col1 >= 885.78 OR col4 < 179.35 AND col0 > 828) OR (((col4 <= 798.35)) AND col0 <= 157) OR col0 < 423)))) OR (col0 >= 337) AND col1 = 704.61 AND col4 = 971.2 OR (col3 >= 11) AND (col0 <= 809)) OR (col4 < 704.47) OR (((col3 = 818)) OR col3 <= 446 AND col0 = 973 AND col0 IN (401,755) AND ((col0 > 944)) AND (col4 >= 604.0) AND col3 >= 208 AND col1 <= 769.44 AND col3 < 471 OR col0 < 416 AND col0 <= 557) AND (col1 BETWEEN 543.41 AND 259.54) AND col1 > 439.69) AND col3 > 975))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_927 UNION SELECT pk, col0 FROM view_2_tab4_927
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-5400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE ((((col3 < 617 OR (col0 IS NULL OR (((col1 < 182.89 AND col3 = 185) AND (col3 > 95 OR ((col3 < 726)) OR col4 > 78.86 AND col3 < 723 OR (col0 <= 761 OR (col4 < 741.83) OR (col0 <= 85 OR col4 IS NULL)) AND col4 = 830.49 AND (((((col4 IS NULL OR (col1 IS NULL) AND col4 < 889.47)) OR col0 > 197 OR (col4 IN (677.8,245.99,832.62,590.60,373.98))))) OR col1 >= 885.78 OR col4 < 179.35 AND col0 > 828) OR (((col4 <= 798.35)) AND col0 <= 157) OR col0 < 423)))) OR (col0 >= 337) AND col1 = 704.61 AND col4 = 971.2 OR (col3 >= 11) AND (col0 <= 809)) OR (col4 < 704.47) OR (((col3 = 818)) OR col3 <= 446 AND col0 = 973 AND col0 IN (401,755) AND ((col0 > 944)) AND (col4 >= 604.0) AND col3 >= 208 AND col1 <= 769.44 AND col3 < 471 OR col0 < 416 AND col0 <= 557) AND (col1 BETWEEN 543.41 AND 259.54) AND col1 > 439.69) AND col3 > 975) ) AS tab4_927
----
27
35

query I rowsort label-5400-3
SELECT * FROM view_3_tab4_927
----
27
35

query I rowsort label-5400-3
SELECT pk FROM tab4 WHERE ((((col3 < 617 OR (col0 IS NULL OR (((col1 < 182.89 AND col3 = 185) AND (col3 > 95 OR ((col3 < 726)) OR col4 > 78.86 AND col3 < 723 OR (col0 <= 761 OR (col4 < 741.83) OR (col0 <= 85 OR col4 IS NULL)) AND col4 = 830.49 AND (((((col4 IS NULL OR (col1 IS NULL) AND col4 < 889.47)) OR col0 > 197 OR (col4 IN (677.8,245.99,832.62,590.60,373.98))))) OR col1 >= 885.78 OR col4 < 179.35 AND col0 > 828) OR (((col4 <= 798.35)) AND col0 <= 157) OR col0 < 423)))) OR (col0 >= 337) AND col1 = 704.61 AND col4 = 971.2 OR (col3 >= 11) AND (col0 <= 809)) OR (col4 < 704.47) OR (((col3 = 818)) OR col3 <= 446 AND col0 = 973 AND col0 IN (401,755) AND ((col0 > 944)) AND (col4 >= 604.0) AND col3 >= 208 AND col1 <= 769.44 AND col3 < 471 OR col0 < 416 AND col0 <= 557) AND (col1 BETWEEN 543.41 AND 259.54) AND col1 > 439.69) AND col3 > 975)
----
27
35

statement ok
DROP VIEW view_1_tab4_927

statement ok
DROP VIEW view_2_tab4_927

statement ok
DROP VIEW view_3_tab4_927

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_928') DROP VIEW view_1_tab0_928

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_928

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_928') DROP VIEW view_2_tab0_928

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_928

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_928') DROP VIEW view_3_tab0_928

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_928

statement ok
CREATE VIEW view_1_tab0_928 AS SELECT pk, col0 FROM tab0 WHERE col4 IN (402.10,610.41,438.86,448.19,101.25)

statement ok
CREATE VIEW view_2_tab0_928 AS SELECT pk, col0 FROM tab0 WHERE NOT (col4 IN (402.10,610.41,438.86,448.19,101.25))

statement ok
CREATE VIEW view_3_tab0_928 AS SELECT pk FROM view_1_tab0_928

query II rowsort label-5500-1
SELECT pk, col0 FROM tab0 WHERE col4 IN (402.10,610.41,438.86,448.19,101.25)
----

query II rowsort label-5500-2
SELECT pk, col0 FROM tab0 WHERE NOT (col4 IN (402.10,610.41,438.86,448.19,101.25))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-5500-1
SELECT pk, col0 FROM view_1_tab0_928
----

query II rowsort label-5500-2
SELECT pk, col0 FROM view_2_tab0_928
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col4 IN (402.10,610.41,438.86,448.19,101.25) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col4 IN (402.10,610.41,438.86,448.19,101.25))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_928 UNION ALL SELECT pk, col0 FROM view_2_tab0_928
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col4 IN (402.10,610.41,438.86,448.19,101.25) UNION SELECT pk, col0 FROM tab0 WHERE NOT (col4 IN (402.10,610.41,438.86,448.19,101.25))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_928 UNION SELECT pk, col0 FROM view_2_tab0_928
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-5500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col4 IN (402.10,610.41,438.86,448.19,101.25) ) AS tab0_928
----

query I rowsort label-5500-3
SELECT * FROM view_3_tab0_928
----

query I rowsort label-5500-3
SELECT pk FROM tab0 WHERE col4 IN (402.10,610.41,438.86,448.19,101.25)
----

statement ok
DROP VIEW view_1_tab0_928

statement ok
DROP VIEW view_2_tab0_928

statement ok
DROP VIEW view_3_tab0_928

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_928') DROP VIEW view_1_tab1_928

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_928

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_928') DROP VIEW view_2_tab1_928

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_928

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_928') DROP VIEW view_3_tab1_928

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_928

statement ok
CREATE VIEW view_1_tab1_928 AS SELECT pk, col0 FROM tab1 WHERE col4 IN (402.10,610.41,438.86,448.19,101.25)

statement ok
CREATE VIEW view_2_tab1_928 AS SELECT pk, col0 FROM tab1 WHERE NOT (col4 IN (402.10,610.41,438.86,448.19,101.25))

statement ok
CREATE VIEW view_3_tab1_928 AS SELECT pk FROM view_1_tab1_928

query II rowsort label-5500-1
SELECT pk, col0 FROM tab1 WHERE col4 IN (402.10,610.41,438.86,448.19,101.25)
----

query II rowsort label-5500-2
SELECT pk, col0 FROM tab1 WHERE NOT (col4 IN (402.10,610.41,438.86,448.19,101.25))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-5500-1
SELECT pk, col0 FROM view_1_tab1_928
----

query II rowsort label-5500-2
SELECT pk, col0 FROM view_2_tab1_928
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col4 IN (402.10,610.41,438.86,448.19,101.25) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col4 IN (402.10,610.41,438.86,448.19,101.25))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_928 UNION ALL SELECT pk, col0 FROM view_2_tab1_928
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col4 IN (402.10,610.41,438.86,448.19,101.25) UNION SELECT pk, col0 FROM tab1 WHERE NOT (col4 IN (402.10,610.41,438.86,448.19,101.25))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_928 UNION SELECT pk, col0 FROM view_2_tab1_928
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-5500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col4 IN (402.10,610.41,438.86,448.19,101.25) ) AS tab1_928
----

query I rowsort label-5500-3
SELECT * FROM view_3_tab1_928
----

query I rowsort label-5500-3
SELECT pk FROM tab1 WHERE col4 IN (402.10,610.41,438.86,448.19,101.25)
----

statement ok
DROP VIEW view_1_tab1_928

statement ok
DROP VIEW view_2_tab1_928

statement ok
DROP VIEW view_3_tab1_928

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_928') DROP VIEW view_1_tab2_928

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_928

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_928') DROP VIEW view_2_tab2_928

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_928

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_928') DROP VIEW view_3_tab2_928

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_928

statement ok
CREATE VIEW view_1_tab2_928 AS SELECT pk, col0 FROM tab2 WHERE col4 IN (402.10,610.41,438.86,448.19,101.25)

statement ok
CREATE VIEW view_2_tab2_928 AS SELECT pk, col0 FROM tab2 WHERE NOT (col4 IN (402.10,610.41,438.86,448.19,101.25))

statement ok
CREATE VIEW view_3_tab2_928 AS SELECT pk FROM view_1_tab2_928

query II rowsort label-5500-1
SELECT pk, col0 FROM tab2 WHERE col4 IN (402.10,610.41,438.86,448.19,101.25)
----

query II rowsort label-5500-2
SELECT pk, col0 FROM tab2 WHERE NOT (col4 IN (402.10,610.41,438.86,448.19,101.25))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-5500-1
SELECT pk, col0 FROM view_1_tab2_928
----

query II rowsort label-5500-2
SELECT pk, col0 FROM view_2_tab2_928
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col4 IN (402.10,610.41,438.86,448.19,101.25) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col4 IN (402.10,610.41,438.86,448.19,101.25))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_928 UNION ALL SELECT pk, col0 FROM view_2_tab2_928
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col4 IN (402.10,610.41,438.86,448.19,101.25) UNION SELECT pk, col0 FROM tab2 WHERE NOT (col4 IN (402.10,610.41,438.86,448.19,101.25))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_928 UNION SELECT pk, col0 FROM view_2_tab2_928
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-5500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col4 IN (402.10,610.41,438.86,448.19,101.25) ) AS tab2_928
----

query I rowsort label-5500-3
SELECT * FROM view_3_tab2_928
----

query I rowsort label-5500-3
SELECT pk FROM tab2 WHERE col4 IN (402.10,610.41,438.86,448.19,101.25)
----

statement ok
DROP VIEW view_1_tab2_928

statement ok
DROP VIEW view_2_tab2_928

statement ok
DROP VIEW view_3_tab2_928

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_928') DROP VIEW view_1_tab3_928

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_928

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_928') DROP VIEW view_2_tab3_928

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_928

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_928') DROP VIEW view_3_tab3_928

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_928

statement ok
CREATE VIEW view_1_tab3_928 AS SELECT pk, col0 FROM tab3 WHERE col4 IN (402.10,610.41,438.86,448.19,101.25)

statement ok
CREATE VIEW view_2_tab3_928 AS SELECT pk, col0 FROM tab3 WHERE NOT (col4 IN (402.10,610.41,438.86,448.19,101.25))

statement ok
CREATE VIEW view_3_tab3_928 AS SELECT pk FROM view_1_tab3_928

query II rowsort label-5500-1
SELECT pk, col0 FROM tab3 WHERE col4 IN (402.10,610.41,438.86,448.19,101.25)
----

query II rowsort label-5500-2
SELECT pk, col0 FROM tab3 WHERE NOT (col4 IN (402.10,610.41,438.86,448.19,101.25))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-5500-1
SELECT pk, col0 FROM view_1_tab3_928
----

query II rowsort label-5500-2
SELECT pk, col0 FROM view_2_tab3_928
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col4 IN (402.10,610.41,438.86,448.19,101.25) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col4 IN (402.10,610.41,438.86,448.19,101.25))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_928 UNION ALL SELECT pk, col0 FROM view_2_tab3_928
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col4 IN (402.10,610.41,438.86,448.19,101.25) UNION SELECT pk, col0 FROM tab3 WHERE NOT (col4 IN (402.10,610.41,438.86,448.19,101.25))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_928 UNION SELECT pk, col0 FROM view_2_tab3_928
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-5500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col4 IN (402.10,610.41,438.86,448.19,101.25) ) AS tab3_928
----

query I rowsort label-5500-3
SELECT * FROM view_3_tab3_928
----

query I rowsort label-5500-3
SELECT pk FROM tab3 WHERE col4 IN (402.10,610.41,438.86,448.19,101.25)
----

statement ok
DROP VIEW view_1_tab3_928

statement ok
DROP VIEW view_2_tab3_928

statement ok
DROP VIEW view_3_tab3_928

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_928') DROP VIEW view_1_tab4_928

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_928

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_928') DROP VIEW view_2_tab4_928

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_928

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_928') DROP VIEW view_3_tab4_928

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_928

statement ok
CREATE VIEW view_1_tab4_928 AS SELECT pk, col0 FROM tab4 WHERE col4 IN (402.10,610.41,438.86,448.19,101.25)

statement ok
CREATE VIEW view_2_tab4_928 AS SELECT pk, col0 FROM tab4 WHERE NOT (col4 IN (402.10,610.41,438.86,448.19,101.25))

statement ok
CREATE VIEW view_3_tab4_928 AS SELECT pk FROM view_1_tab4_928

query II rowsort label-5500-1
SELECT pk, col0 FROM tab4 WHERE col4 IN (402.10,610.41,438.86,448.19,101.25)
----

query II rowsort label-5500-2
SELECT pk, col0 FROM tab4 WHERE NOT (col4 IN (402.10,610.41,438.86,448.19,101.25))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-5500-1
SELECT pk, col0 FROM view_1_tab4_928
----

query II rowsort label-5500-2
SELECT pk, col0 FROM view_2_tab4_928
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col4 IN (402.10,610.41,438.86,448.19,101.25) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col4 IN (402.10,610.41,438.86,448.19,101.25))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_928 UNION ALL SELECT pk, col0 FROM view_2_tab4_928
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col4 IN (402.10,610.41,438.86,448.19,101.25) UNION SELECT pk, col0 FROM tab4 WHERE NOT (col4 IN (402.10,610.41,438.86,448.19,101.25))
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_928 UNION SELECT pk, col0 FROM view_2_tab4_928
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-5500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col4 IN (402.10,610.41,438.86,448.19,101.25) ) AS tab4_928
----

query I rowsort label-5500-3
SELECT * FROM view_3_tab4_928
----

query I rowsort label-5500-3
SELECT pk FROM tab4 WHERE col4 IN (402.10,610.41,438.86,448.19,101.25)
----

statement ok
DROP VIEW view_1_tab4_928

statement ok
DROP VIEW view_2_tab4_928

statement ok
DROP VIEW view_3_tab4_928

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_929') DROP VIEW view_1_tab0_929

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_929

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_929') DROP VIEW view_2_tab0_929

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_929

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_929') DROP VIEW view_3_tab0_929

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_929

statement ok
CREATE VIEW view_1_tab0_929 AS SELECT pk, col0 FROM tab0 WHERE col3 <= 654

statement ok
CREATE VIEW view_2_tab0_929 AS SELECT pk, col0 FROM tab0 WHERE NOT (col3 <= 654)

statement ok
CREATE VIEW view_3_tab0_929 AS SELECT pk FROM view_1_tab0_929

query II rowsort label-5600-1
SELECT pk, col0 FROM tab0 WHERE col3 <= 654
----
132 values hashing to 6bfa3e3fab0e2660c8ef19997240e9b1

query II rowsort label-5600-2
SELECT pk, col0 FROM tab0 WHERE NOT (col3 <= 654)
----
68 values hashing to 4abf5efd7c2d46f03c9226fde8f82bcd

query II rowsort label-5600-1
SELECT pk, col0 FROM view_1_tab0_929
----
132 values hashing to 6bfa3e3fab0e2660c8ef19997240e9b1

query II rowsort label-5600-2
SELECT pk, col0 FROM view_2_tab0_929
----
68 values hashing to 4abf5efd7c2d46f03c9226fde8f82bcd

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 <= 654 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col3 <= 654)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_929 UNION ALL SELECT pk, col0 FROM view_2_tab0_929
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 <= 654 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col3 <= 654)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_929 UNION SELECT pk, col0 FROM view_2_tab0_929
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-5600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col3 <= 654 ) AS tab0_929
----
66 values hashing to f5c4c529422f2043b908bd808f63d70e

query I rowsort label-5600-3
SELECT * FROM view_3_tab0_929
----
66 values hashing to f5c4c529422f2043b908bd808f63d70e

query I rowsort label-5600-3
SELECT pk FROM tab0 WHERE col3 <= 654
----
66 values hashing to f5c4c529422f2043b908bd808f63d70e

statement ok
DROP VIEW view_1_tab0_929

statement ok
DROP VIEW view_2_tab0_929

statement ok
DROP VIEW view_3_tab0_929

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_929') DROP VIEW view_1_tab1_929

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_929

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_929') DROP VIEW view_2_tab1_929

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_929

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_929') DROP VIEW view_3_tab1_929

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_929

statement ok
CREATE VIEW view_1_tab1_929 AS SELECT pk, col0 FROM tab1 WHERE col3 <= 654

statement ok
CREATE VIEW view_2_tab1_929 AS SELECT pk, col0 FROM tab1 WHERE NOT (col3 <= 654)

statement ok
CREATE VIEW view_3_tab1_929 AS SELECT pk FROM view_1_tab1_929

query II rowsort label-5600-1
SELECT pk, col0 FROM tab1 WHERE col3 <= 654
----
132 values hashing to 6bfa3e3fab0e2660c8ef19997240e9b1

query II rowsort label-5600-2
SELECT pk, col0 FROM tab1 WHERE NOT (col3 <= 654)
----
68 values hashing to 4abf5efd7c2d46f03c9226fde8f82bcd

query II rowsort label-5600-1
SELECT pk, col0 FROM view_1_tab1_929
----
132 values hashing to 6bfa3e3fab0e2660c8ef19997240e9b1

query II rowsort label-5600-2
SELECT pk, col0 FROM view_2_tab1_929
----
68 values hashing to 4abf5efd7c2d46f03c9226fde8f82bcd

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 <= 654 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col3 <= 654)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_929 UNION ALL SELECT pk, col0 FROM view_2_tab1_929
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 <= 654 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col3 <= 654)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_929 UNION SELECT pk, col0 FROM view_2_tab1_929
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-5600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col3 <= 654 ) AS tab1_929
----
66 values hashing to f5c4c529422f2043b908bd808f63d70e

query I rowsort label-5600-3
SELECT * FROM view_3_tab1_929
----
66 values hashing to f5c4c529422f2043b908bd808f63d70e

query I rowsort label-5600-3
SELECT pk FROM tab1 WHERE col3 <= 654
----
66 values hashing to f5c4c529422f2043b908bd808f63d70e

statement ok
DROP VIEW view_1_tab1_929

statement ok
DROP VIEW view_2_tab1_929

statement ok
DROP VIEW view_3_tab1_929

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_929') DROP VIEW view_1_tab2_929

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_929

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_929') DROP VIEW view_2_tab2_929

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_929

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_929') DROP VIEW view_3_tab2_929

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_929

statement ok
CREATE VIEW view_1_tab2_929 AS SELECT pk, col0 FROM tab2 WHERE col3 <= 654

statement ok
CREATE VIEW view_2_tab2_929 AS SELECT pk, col0 FROM tab2 WHERE NOT (col3 <= 654)

statement ok
CREATE VIEW view_3_tab2_929 AS SELECT pk FROM view_1_tab2_929

query II rowsort label-5600-1
SELECT pk, col0 FROM tab2 WHERE col3 <= 654
----
132 values hashing to 6bfa3e3fab0e2660c8ef19997240e9b1

query II rowsort label-5600-2
SELECT pk, col0 FROM tab2 WHERE NOT (col3 <= 654)
----
68 values hashing to 4abf5efd7c2d46f03c9226fde8f82bcd

query II rowsort label-5600-1
SELECT pk, col0 FROM view_1_tab2_929
----
132 values hashing to 6bfa3e3fab0e2660c8ef19997240e9b1

query II rowsort label-5600-2
SELECT pk, col0 FROM view_2_tab2_929
----
68 values hashing to 4abf5efd7c2d46f03c9226fde8f82bcd

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 <= 654 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col3 <= 654)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_929 UNION ALL SELECT pk, col0 FROM view_2_tab2_929
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 <= 654 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col3 <= 654)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_929 UNION SELECT pk, col0 FROM view_2_tab2_929
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-5600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col3 <= 654 ) AS tab2_929
----
66 values hashing to f5c4c529422f2043b908bd808f63d70e

query I rowsort label-5600-3
SELECT * FROM view_3_tab2_929
----
66 values hashing to f5c4c529422f2043b908bd808f63d70e

query I rowsort label-5600-3
SELECT pk FROM tab2 WHERE col3 <= 654
----
66 values hashing to f5c4c529422f2043b908bd808f63d70e

statement ok
DROP VIEW view_1_tab2_929

statement ok
DROP VIEW view_2_tab2_929

statement ok
DROP VIEW view_3_tab2_929

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_929') DROP VIEW view_1_tab3_929

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_929

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_929') DROP VIEW view_2_tab3_929

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_929

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_929') DROP VIEW view_3_tab3_929

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_929

statement ok
CREATE VIEW view_1_tab3_929 AS SELECT pk, col0 FROM tab3 WHERE col3 <= 654

statement ok
CREATE VIEW view_2_tab3_929 AS SELECT pk, col0 FROM tab3 WHERE NOT (col3 <= 654)

statement ok
CREATE VIEW view_3_tab3_929 AS SELECT pk FROM view_1_tab3_929

query II rowsort label-5600-1
SELECT pk, col0 FROM tab3 WHERE col3 <= 654
----
132 values hashing to 6bfa3e3fab0e2660c8ef19997240e9b1

query II rowsort label-5600-2
SELECT pk, col0 FROM tab3 WHERE NOT (col3 <= 654)
----
68 values hashing to 4abf5efd7c2d46f03c9226fde8f82bcd

query II rowsort label-5600-1
SELECT pk, col0 FROM view_1_tab3_929
----
132 values hashing to 6bfa3e3fab0e2660c8ef19997240e9b1

query II rowsort label-5600-2
SELECT pk, col0 FROM view_2_tab3_929
----
68 values hashing to 4abf5efd7c2d46f03c9226fde8f82bcd

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 <= 654 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col3 <= 654)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_929 UNION ALL SELECT pk, col0 FROM view_2_tab3_929
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 <= 654 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col3 <= 654)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_929 UNION SELECT pk, col0 FROM view_2_tab3_929
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-5600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col3 <= 654 ) AS tab3_929
----
66 values hashing to f5c4c529422f2043b908bd808f63d70e

query I rowsort label-5600-3
SELECT * FROM view_3_tab3_929
----
66 values hashing to f5c4c529422f2043b908bd808f63d70e

query I rowsort label-5600-3
SELECT pk FROM tab3 WHERE col3 <= 654
----
66 values hashing to f5c4c529422f2043b908bd808f63d70e

statement ok
DROP VIEW view_1_tab3_929

statement ok
DROP VIEW view_2_tab3_929

statement ok
DROP VIEW view_3_tab3_929

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_929') DROP VIEW view_1_tab4_929

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_929

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_929') DROP VIEW view_2_tab4_929

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_929

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_929') DROP VIEW view_3_tab4_929

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_929

statement ok
CREATE VIEW view_1_tab4_929 AS SELECT pk, col0 FROM tab4 WHERE col3 <= 654

statement ok
CREATE VIEW view_2_tab4_929 AS SELECT pk, col0 FROM tab4 WHERE NOT (col3 <= 654)

statement ok
CREATE VIEW view_3_tab4_929 AS SELECT pk FROM view_1_tab4_929

query II rowsort label-5600-1
SELECT pk, col0 FROM tab4 WHERE col3 <= 654
----
132 values hashing to 6bfa3e3fab0e2660c8ef19997240e9b1

query II rowsort label-5600-2
SELECT pk, col0 FROM tab4 WHERE NOT (col3 <= 654)
----
68 values hashing to 4abf5efd7c2d46f03c9226fde8f82bcd

query II rowsort label-5600-1
SELECT pk, col0 FROM view_1_tab4_929
----
132 values hashing to 6bfa3e3fab0e2660c8ef19997240e9b1

query II rowsort label-5600-2
SELECT pk, col0 FROM view_2_tab4_929
----
68 values hashing to 4abf5efd7c2d46f03c9226fde8f82bcd

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 <= 654 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col3 <= 654)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_929 UNION ALL SELECT pk, col0 FROM view_2_tab4_929
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 <= 654 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col3 <= 654)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_929 UNION SELECT pk, col0 FROM view_2_tab4_929
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-5600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col3 <= 654 ) AS tab4_929
----
66 values hashing to f5c4c529422f2043b908bd808f63d70e

query I rowsort label-5600-3
SELECT * FROM view_3_tab4_929
----
66 values hashing to f5c4c529422f2043b908bd808f63d70e

query I rowsort label-5600-3
SELECT pk FROM tab4 WHERE col3 <= 654
----
66 values hashing to f5c4c529422f2043b908bd808f63d70e

statement ok
DROP VIEW view_1_tab4_929

statement ok
DROP VIEW view_2_tab4_929

statement ok
DROP VIEW view_3_tab4_929

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_930') DROP VIEW view_1_tab0_930

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_930

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_930') DROP VIEW view_2_tab0_930

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_930

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_930') DROP VIEW view_3_tab0_930

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_930

statement ok
CREATE VIEW view_1_tab0_930 AS SELECT pk, col0 FROM tab0 WHERE col4 < 943.67

statement ok
CREATE VIEW view_2_tab0_930 AS SELECT pk, col0 FROM tab0 WHERE NOT (col4 < 943.67)

statement ok
CREATE VIEW view_3_tab0_930 AS SELECT pk FROM view_1_tab0_930

query II rowsort label-5700-1
SELECT pk, col0 FROM tab0 WHERE col4 < 943.67
----
194 values hashing to a7722c242641550cc83a56d3ac1a7085

query II rowsort label-5700-2
SELECT pk, col0 FROM tab0 WHERE NOT (col4 < 943.67)
----
4
694
68
537
9
762

query II rowsort label-5700-1
SELECT pk, col0 FROM view_1_tab0_930
----
194 values hashing to a7722c242641550cc83a56d3ac1a7085

query II rowsort label-5700-2
SELECT pk, col0 FROM view_2_tab0_930
----
4
694
68
537
9
762

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col4 < 943.67 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col4 < 943.67)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_930 UNION ALL SELECT pk, col0 FROM view_2_tab0_930
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col4 < 943.67 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col4 < 943.67)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_930 UNION SELECT pk, col0 FROM view_2_tab0_930
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-5700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col4 < 943.67 ) AS tab0_930
----
97 values hashing to 2201acd1b6fe4ee123eab69201bb7d38

query I rowsort label-5700-3
SELECT * FROM view_3_tab0_930
----
97 values hashing to 2201acd1b6fe4ee123eab69201bb7d38

query I rowsort label-5700-3
SELECT pk FROM tab0 WHERE col4 < 943.67
----
97 values hashing to 2201acd1b6fe4ee123eab69201bb7d38

statement ok
DROP VIEW view_1_tab0_930

statement ok
DROP VIEW view_2_tab0_930

statement ok
DROP VIEW view_3_tab0_930

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_930') DROP VIEW view_1_tab1_930

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_930

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_930') DROP VIEW view_2_tab1_930

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_930

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_930') DROP VIEW view_3_tab1_930

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_930

statement ok
CREATE VIEW view_1_tab1_930 AS SELECT pk, col0 FROM tab1 WHERE col4 < 943.67

statement ok
CREATE VIEW view_2_tab1_930 AS SELECT pk, col0 FROM tab1 WHERE NOT (col4 < 943.67)

statement ok
CREATE VIEW view_3_tab1_930 AS SELECT pk FROM view_1_tab1_930

query II rowsort label-5700-1
SELECT pk, col0 FROM tab1 WHERE col4 < 943.67
----
194 values hashing to a7722c242641550cc83a56d3ac1a7085

query II rowsort label-5700-2
SELECT pk, col0 FROM tab1 WHERE NOT (col4 < 943.67)
----
4
694
68
537
9
762

query II rowsort label-5700-1
SELECT pk, col0 FROM view_1_tab1_930
----
194 values hashing to a7722c242641550cc83a56d3ac1a7085

query II rowsort label-5700-2
SELECT pk, col0 FROM view_2_tab1_930
----
4
694
68
537
9
762

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col4 < 943.67 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col4 < 943.67)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_930 UNION ALL SELECT pk, col0 FROM view_2_tab1_930
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col4 < 943.67 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col4 < 943.67)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_930 UNION SELECT pk, col0 FROM view_2_tab1_930
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-5700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col4 < 943.67 ) AS tab1_930
----
97 values hashing to 2201acd1b6fe4ee123eab69201bb7d38

query I rowsort label-5700-3
SELECT * FROM view_3_tab1_930
----
97 values hashing to 2201acd1b6fe4ee123eab69201bb7d38

query I rowsort label-5700-3
SELECT pk FROM tab1 WHERE col4 < 943.67
----
97 values hashing to 2201acd1b6fe4ee123eab69201bb7d38

statement ok
DROP VIEW view_1_tab1_930

statement ok
DROP VIEW view_2_tab1_930

statement ok
DROP VIEW view_3_tab1_930

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_930') DROP VIEW view_1_tab2_930

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_930

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_930') DROP VIEW view_2_tab2_930

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_930

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_930') DROP VIEW view_3_tab2_930

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_930

statement ok
CREATE VIEW view_1_tab2_930 AS SELECT pk, col0 FROM tab2 WHERE col4 < 943.67

statement ok
CREATE VIEW view_2_tab2_930 AS SELECT pk, col0 FROM tab2 WHERE NOT (col4 < 943.67)

statement ok
CREATE VIEW view_3_tab2_930 AS SELECT pk FROM view_1_tab2_930

query II rowsort label-5700-1
SELECT pk, col0 FROM tab2 WHERE col4 < 943.67
----
194 values hashing to a7722c242641550cc83a56d3ac1a7085

query II rowsort label-5700-2
SELECT pk, col0 FROM tab2 WHERE NOT (col4 < 943.67)
----
4
694
68
537
9
762

query II rowsort label-5700-1
SELECT pk, col0 FROM view_1_tab2_930
----
194 values hashing to a7722c242641550cc83a56d3ac1a7085

query II rowsort label-5700-2
SELECT pk, col0 FROM view_2_tab2_930
----
4
694
68
537
9
762

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col4 < 943.67 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col4 < 943.67)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_930 UNION ALL SELECT pk, col0 FROM view_2_tab2_930
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col4 < 943.67 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col4 < 943.67)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_930 UNION SELECT pk, col0 FROM view_2_tab2_930
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-5700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col4 < 943.67 ) AS tab2_930
----
97 values hashing to 2201acd1b6fe4ee123eab69201bb7d38

query I rowsort label-5700-3
SELECT * FROM view_3_tab2_930
----
97 values hashing to 2201acd1b6fe4ee123eab69201bb7d38

query I rowsort label-5700-3
SELECT pk FROM tab2 WHERE col4 < 943.67
----
97 values hashing to 2201acd1b6fe4ee123eab69201bb7d38

statement ok
DROP VIEW view_1_tab2_930

statement ok
DROP VIEW view_2_tab2_930

statement ok
DROP VIEW view_3_tab2_930

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_930') DROP VIEW view_1_tab3_930

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_930

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_930') DROP VIEW view_2_tab3_930

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_930

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_930') DROP VIEW view_3_tab3_930

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_930

statement ok
CREATE VIEW view_1_tab3_930 AS SELECT pk, col0 FROM tab3 WHERE col4 < 943.67

statement ok
CREATE VIEW view_2_tab3_930 AS SELECT pk, col0 FROM tab3 WHERE NOT (col4 < 943.67)

statement ok
CREATE VIEW view_3_tab3_930 AS SELECT pk FROM view_1_tab3_930

query II rowsort label-5700-1
SELECT pk, col0 FROM tab3 WHERE col4 < 943.67
----
194 values hashing to a7722c242641550cc83a56d3ac1a7085

query II rowsort label-5700-2
SELECT pk, col0 FROM tab3 WHERE NOT (col4 < 943.67)
----
4
694
68
537
9
762

query II rowsort label-5700-1
SELECT pk, col0 FROM view_1_tab3_930
----
194 values hashing to a7722c242641550cc83a56d3ac1a7085

query II rowsort label-5700-2
SELECT pk, col0 FROM view_2_tab3_930
----
4
694
68
537
9
762

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col4 < 943.67 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col4 < 943.67)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_930 UNION ALL SELECT pk, col0 FROM view_2_tab3_930
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col4 < 943.67 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col4 < 943.67)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_930 UNION SELECT pk, col0 FROM view_2_tab3_930
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-5700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col4 < 943.67 ) AS tab3_930
----
97 values hashing to 2201acd1b6fe4ee123eab69201bb7d38

query I rowsort label-5700-3
SELECT * FROM view_3_tab3_930
----
97 values hashing to 2201acd1b6fe4ee123eab69201bb7d38

query I rowsort label-5700-3
SELECT pk FROM tab3 WHERE col4 < 943.67
----
97 values hashing to 2201acd1b6fe4ee123eab69201bb7d38

statement ok
DROP VIEW view_1_tab3_930

statement ok
DROP VIEW view_2_tab3_930

statement ok
DROP VIEW view_3_tab3_930

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_930') DROP VIEW view_1_tab4_930

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_930

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_930') DROP VIEW view_2_tab4_930

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_930

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_930') DROP VIEW view_3_tab4_930

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_930

statement ok
CREATE VIEW view_1_tab4_930 AS SELECT pk, col0 FROM tab4 WHERE col4 < 943.67

statement ok
CREATE VIEW view_2_tab4_930 AS SELECT pk, col0 FROM tab4 WHERE NOT (col4 < 943.67)

statement ok
CREATE VIEW view_3_tab4_930 AS SELECT pk FROM view_1_tab4_930

query II rowsort label-5700-1
SELECT pk, col0 FROM tab4 WHERE col4 < 943.67
----
194 values hashing to a7722c242641550cc83a56d3ac1a7085

query II rowsort label-5700-2
SELECT pk, col0 FROM tab4 WHERE NOT (col4 < 943.67)
----
4
694
68
537
9
762

query II rowsort label-5700-1
SELECT pk, col0 FROM view_1_tab4_930
----
194 values hashing to a7722c242641550cc83a56d3ac1a7085

query II rowsort label-5700-2
SELECT pk, col0 FROM view_2_tab4_930
----
4
694
68
537
9
762

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col4 < 943.67 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col4 < 943.67)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_930 UNION ALL SELECT pk, col0 FROM view_2_tab4_930
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col4 < 943.67 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col4 < 943.67)
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_930 UNION SELECT pk, col0 FROM view_2_tab4_930
----
200 values hashing to 39373ff7a4d5d894fabd842f5115235d

query I rowsort label-5700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col4 < 943.67 ) AS tab4_930
----
97 values hashing to 2201acd1b6fe4ee123eab69201bb7d38

query I rowsort label-5700-3
SELECT * FROM view_3_tab4_930
----
97 values hashing to 2201acd1b6fe4ee123eab69201bb7d38

query I rowsort label-5700-3
SELECT pk FROM tab4 WHERE col4 < 943.67
----
97 values hashing to 2201acd1b6fe4ee123eab69201bb7d38

statement ok
DROP VIEW view_1_tab4_930

statement ok
DROP VIEW view_2_tab4_930

statement ok
DROP VIEW view_3_tab4_930

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE