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,155,486.77,'aqfke',515,592.79,'gbigp')

statement ok
INSERT INTO tab0 VALUES(1,577,985.89,'ardgn',202,191.17,'ccbod')

statement ok
INSERT INTO tab0 VALUES(2,126,247.78,'cbgyy',537,952.26,'snbxb')

statement ok
INSERT INTO tab0 VALUES(3,783,745.80,'tchkr',208,212.82,'mhaer')

statement ok
INSERT INTO tab0 VALUES(4,105,209.54,'yebnk',799,626.68,'pvxai')

statement ok
INSERT INTO tab0 VALUES(5,855,755.42,'yhopg',410,301.30,'iiujg')

statement ok
INSERT INTO tab0 VALUES(6,628,7.37,'tpccz',284,912.42,'cqeey')

statement ok
INSERT INTO tab0 VALUES(7,472,226.37,'aghgc',432,836.71,'otyug')

statement ok
INSERT INTO tab0 VALUES(8,515,432.16,'fskra',258,267.36,'ulryj')

statement ok
INSERT INTO tab0 VALUES(9,593,529.79,'utixa',182,350.72,'lxrad')

statement ok
INSERT INTO tab0 VALUES(10,869,431.31,'istfs',266,302.91,'slazy')

statement ok
INSERT INTO tab0 VALUES(11,461,188.35,'njhbs',844,533.49,'rzvtd')

statement ok
INSERT INTO tab0 VALUES(12,69,109.77,'mnouf',137,782.2,'gsizw')

statement ok
INSERT INTO tab0 VALUES(13,598,887.26,'ulkgu',887,231.74,'kuyql')

statement ok
INSERT INTO tab0 VALUES(14,781,725.0,'pvxlp',978,635.16,'gzmqi')

statement ok
INSERT INTO tab0 VALUES(15,807,462.25,'scocr',61,446.71,'dcfkf')

statement ok
INSERT INTO tab0 VALUES(16,947,695.0,'vfliv',179,939.35,'xwaqi')

statement ok
INSERT INTO tab0 VALUES(17,175,908.59,'rggfw',395,337.19,'uilvl')

statement ok
INSERT INTO tab0 VALUES(18,795,593.32,'xyons',412,932.12,'vsavx')

statement ok
INSERT INTO tab0 VALUES(19,68,376.8,'onufp',203,217.46,'sueqa')

statement ok
INSERT INTO tab0 VALUES(20,832,146.0,'wcieb',629,6.55,'cskxw')

statement ok
INSERT INTO tab0 VALUES(21,132,173.4,'pkxtd',75,559.39,'qmmqt')

statement ok
INSERT INTO tab0 VALUES(22,845,240.64,'dnlnm',64,710.24,'dsota')

statement ok
INSERT INTO tab0 VALUES(23,298,762.34,'nefqp',888,990.32,'rffsk')

statement ok
INSERT INTO tab0 VALUES(24,904,916.38,'qvetq',231,750.33,'umrfa')

statement ok
INSERT INTO tab0 VALUES(25,776,763.37,'jwvmz',796,292.16,'lpvtp')

statement ok
INSERT INTO tab0 VALUES(26,360,372.87,'qmodz',927,987.47,'inmem')

statement ok
INSERT INTO tab0 VALUES(27,56,950.5,'pfqeh',236,406.34,'vzlpw')

statement ok
INSERT INTO tab0 VALUES(28,846,961.30,'uqhzw',229,439.87,'jampw')

statement ok
INSERT INTO tab0 VALUES(29,912,256.84,'dwalh',928,427.82,'goufq')

statement ok
INSERT INTO tab0 VALUES(30,273,194.38,'fhpoq',496,280.25,'actjo')

statement ok
INSERT INTO tab0 VALUES(31,398,769.72,'gefcu',867,608.10,'lhjoh')

statement ok
INSERT INTO tab0 VALUES(32,838,736.37,'kgngm',367,841.87,'tobmy')

statement ok
INSERT INTO tab0 VALUES(33,848,734.21,'rhycl',338,357.21,'qveqc')

statement ok
INSERT INTO tab0 VALUES(34,15,410.6,'gzrln',764,607.53,'lauzd')

statement ok
INSERT INTO tab0 VALUES(35,880,550.35,'leshu',900,239.68,'itame')

statement ok
INSERT INTO tab0 VALUES(36,563,196.75,'bvhnt',890,222.54,'jxbwi')

statement ok
INSERT INTO tab0 VALUES(37,390,775.73,'enpoi',397,974.63,'ohhdq')

statement ok
INSERT INTO tab0 VALUES(38,519,227.28,'oyiyc',227,485.76,'fingm')

statement ok
INSERT INTO tab0 VALUES(39,559,122.46,'rukxk',953,441.65,'tnzsl')

statement ok
INSERT INTO tab0 VALUES(40,202,795.5,'wejek',540,351.57,'bhpgp')

statement ok
INSERT INTO tab0 VALUES(41,847,461.18,'ihmih',973,671.91,'qixim')

statement ok
INSERT INTO tab0 VALUES(42,215,348.95,'messj',877,931.88,'mmiyl')

statement ok
INSERT INTO tab0 VALUES(43,991,817.6,'wcywe',145,856.8,'lhidn')

statement ok
INSERT INTO tab0 VALUES(44,438,489.42,'kkfdr',564,495.15,'imkpu')

statement ok
INSERT INTO tab0 VALUES(45,20,371.80,'laomf',436,341.38,'vviih')

statement ok
INSERT INTO tab0 VALUES(46,35,979.44,'yclzv',209,464.35,'xoehh')

statement ok
INSERT INTO tab0 VALUES(47,234,463.65,'osrji',96,629.54,'tdobj')

statement ok
INSERT INTO tab0 VALUES(48,451,735.50,'uhpvi',704,421.99,'zvqjm')

statement ok
INSERT INTO tab0 VALUES(49,220,586.37,'eniom',656,377.85,'sfjrg')

statement ok
INSERT INTO tab0 VALUES(50,411,825.63,'etpjn',218,101.10,'rcmaw')

statement ok
INSERT INTO tab0 VALUES(51,844,391.25,'qrggl',926,400.11,'lutkj')

statement ok
INSERT INTO tab0 VALUES(52,923,483.40,'qazeq',205,398.27,'nazot')

statement ok
INSERT INTO tab0 VALUES(53,254,685.13,'tdtoz',0,670.65,'hkinb')

statement ok
INSERT INTO tab0 VALUES(54,275,92.91,'cnwax',398,360.60,'kbehm')

statement ok
INSERT INTO tab0 VALUES(55,878,433.36,'qqxur',252,313.35,'vjlln')

statement ok
INSERT INTO tab0 VALUES(56,36,193.79,'zjdoj',811,193.71,'ukqqe')

statement ok
INSERT INTO tab0 VALUES(57,427,749.85,'wsjcb',339,613.60,'ctzmx')

statement ok
INSERT INTO tab0 VALUES(58,58,484.17,'bkhqz',741,258.77,'iaqxy')

statement ok
INSERT INTO tab0 VALUES(59,892,914.0,'mqltp',194,10.34,'qmrbg')

statement ok
INSERT INTO tab0 VALUES(60,473,818.77,'mllys',766,73.49,'fsfpu')

statement ok
INSERT INTO tab0 VALUES(61,546,357.78,'voccq',39,99.3,'ferpm')

statement ok
INSERT INTO tab0 VALUES(62,691,205.80,'wwmjh',743,312.8,'azwcp')

statement ok
INSERT INTO tab0 VALUES(63,942,668.67,'rhamj',372,634.66,'eizpm')

statement ok
INSERT INTO tab0 VALUES(64,412,813.0,'favsl',814,806.31,'sfxxd')

statement ok
INSERT INTO tab0 VALUES(65,917,590.69,'hnnfb',974,521.75,'dceoa')

statement ok
INSERT INTO tab0 VALUES(66,608,962.66,'wxpwu',399,541.47,'rmfof')

statement ok
INSERT INTO tab0 VALUES(67,586,25.39,'erltq',905,827.36,'folyr')

statement ok
INSERT INTO tab0 VALUES(68,537,133.60,'siotw',200,660.37,'rskoi')

statement ok
INSERT INTO tab0 VALUES(69,348,28.85,'lynle',509,771.9,'xktkc')

statement ok
INSERT INTO tab0 VALUES(70,738,960.16,'yxeia',201,462.38,'yoqnc')

statement ok
INSERT INTO tab0 VALUES(71,881,814.67,'mjxun',411,732.3,'bhqlt')

statement ok
INSERT INTO tab0 VALUES(72,30,234.21,'eaoor',667,402.37,'amway')

statement ok
INSERT INTO tab0 VALUES(73,145,751.99,'crqil',516,242.86,'bngta')

statement ok
INSERT INTO tab0 VALUES(74,514,903.17,'lwklz',144,92.76,'zsosd')

statement ok
INSERT INTO tab0 VALUES(75,382,365.50,'nlemq',9,991.75,'nfnye')

statement ok
INSERT INTO tab0 VALUES(76,572,71.97,'djezd',460,299.50,'ehzgz')

statement ok
INSERT INTO tab0 VALUES(77,114,339.40,'kbvxr',361,825.40,'phzsk')

statement ok
INSERT INTO tab0 VALUES(78,868,997.8,'dgwhd',723,949.7,'lzxjp')

statement ok
INSERT INTO tab0 VALUES(79,146,510.41,'uolcc',320,747.7,'ultuw')

statement ok
INSERT INTO tab0 VALUES(80,345,98.51,'sbgmz',323,120.47,'akxta')

statement ok
INSERT INTO tab0 VALUES(81,564,872.82,'dxpsh',916,915.52,'cdrxm')

statement ok
INSERT INTO tab0 VALUES(82,230,947.78,'larqn',931,51.24,'nxcfh')

statement ok
INSERT INTO tab0 VALUES(83,731,576.41,'gtmjn',462,643.7,'tqhvg')

statement ok
INSERT INTO tab0 VALUES(84,31,272.96,'mheyn',499,132.46,'zpine')

statement ok
INSERT INTO tab0 VALUES(85,299,930.51,'lozuc',550,403.55,'ozrky')

statement ok
INSERT INTO tab0 VALUES(86,533,957.64,'frloq',262,916.73,'wmbmn')

statement ok
INSERT INTO tab0 VALUES(87,192,395.0,'kpnqc',54,822.33,'qzskh')

statement ok
INSERT INTO tab0 VALUES(88,809,45.96,'nuutl',734,103.18,'zelzz')

statement ok
INSERT INTO tab0 VALUES(89,625,594.25,'dwjro',130,682.31,'nfuuy')

statement ok
INSERT INTO tab0 VALUES(90,209,733.56,'tcgul',712,558.48,'pffxd')

statement ok
INSERT INTO tab0 VALUES(91,87,298.19,'dfhsk',215,925.91,'fbblk')

statement ok
INSERT INTO tab0 VALUES(92,364,375.64,'mumxa',271,300.83,'jwwem')

statement ok
INSERT INTO tab0 VALUES(93,351,441.28,'jevlm',27,645.11,'bsige')

statement ok
INSERT INTO tab0 VALUES(94,189,481.92,'xvtlm',773,499.94,'kfmsl')

statement ok
INSERT INTO tab0 VALUES(95,474,112.49,'aebvo',565,95.40,'ucyfo')

statement ok
INSERT INTO tab0 VALUES(96,876,716.64,'lzbub',855,489.9,'cavng')

statement ok
INSERT INTO tab0 VALUES(97,784,555.36,'whuqh',110,684.80,'qxaiv')

statement ok
INSERT INTO tab0 VALUES(98,905,904.60,'auagu',440,755.6,'kxhqf')

statement ok
INSERT INTO tab0 VALUES(99,903,170.92,'yomuf',223,976.86,'esipe')

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 UNIQUE INDEX idx_tab2_0 ON tab2 (col0,col3 DESC)

statement ok
CREATE INDEX idx_tab2_2 ON tab2 (col1 DESC)

statement ok
CREATE INDEX idx_tab2_3 ON tab2 (col3 DESC)

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 INDEX idx_tab3_1 ON tab3 (col3 DESC)

statement ok
CREATE INDEX idx_tab3_3 ON tab3 (col4 DESC)

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 (col4 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab4_3 ON tab4 (col0)

statement ok
CREATE INDEX idx_tab4_5 ON tab4 (col3 DESC)

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 06b39c45fae5a895bfa7653ed4bed045

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab0_521 AS SELECT pk, col0 FROM tab0 WHERE col0 >= 789 AND (col4 >= 141.85 AND col1 IS NULL)

statement ok
CREATE VIEW view_2_tab0_521 AS SELECT pk, col0 FROM tab0 WHERE NOT (col0 >= 789 AND (col4 >= 141.85 AND col1 IS NULL))

statement ok
CREATE VIEW view_3_tab0_521 AS SELECT pk FROM view_1_tab0_521

query II rowsort label-0-1
SELECT pk, col0 FROM tab0 WHERE col0 >= 789 AND (col4 >= 141.85 AND col1 IS NULL)
----

query II rowsort label-0-2
SELECT pk, col0 FROM tab0 WHERE NOT (col0 >= 789 AND (col4 >= 141.85 AND col1 IS NULL))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-0-1
SELECT pk, col0 FROM view_1_tab0_521
----

query II rowsort label-0-2
SELECT pk, col0 FROM view_2_tab0_521
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col0 >= 789 AND (col4 >= 141.85 AND col1 IS NULL) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col0 >= 789 AND (col4 >= 141.85 AND col1 IS NULL))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_521 UNION ALL SELECT pk, col0 FROM view_2_tab0_521
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col0 >= 789 AND (col4 >= 141.85 AND col1 IS NULL) UNION SELECT pk, col0 FROM tab0 WHERE NOT (col0 >= 789 AND (col4 >= 141.85 AND col1 IS NULL))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_521 UNION SELECT pk, col0 FROM view_2_tab0_521
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-0-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col0 >= 789 AND (col4 >= 141.85 AND col1 IS NULL) ) AS tab0_521
----

query I rowsort label-0-3
SELECT * FROM view_3_tab0_521
----

query I rowsort label-0-3
SELECT pk FROM tab0 WHERE col0 >= 789 AND (col4 >= 141.85 AND col1 IS NULL)
----

statement ok
DROP VIEW view_1_tab0_521

statement ok
DROP VIEW view_2_tab0_521

statement ok
DROP VIEW view_3_tab0_521

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab1_521 AS SELECT pk, col0 FROM tab1 WHERE col0 >= 789 AND (col4 >= 141.85 AND col1 IS NULL)

statement ok
CREATE VIEW view_2_tab1_521 AS SELECT pk, col0 FROM tab1 WHERE NOT (col0 >= 789 AND (col4 >= 141.85 AND col1 IS NULL))

statement ok
CREATE VIEW view_3_tab1_521 AS SELECT pk FROM view_1_tab1_521

query II rowsort label-0-1
SELECT pk, col0 FROM tab1 WHERE col0 >= 789 AND (col4 >= 141.85 AND col1 IS NULL)
----

query II rowsort label-0-2
SELECT pk, col0 FROM tab1 WHERE NOT (col0 >= 789 AND (col4 >= 141.85 AND col1 IS NULL))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-0-1
SELECT pk, col0 FROM view_1_tab1_521
----

query II rowsort label-0-2
SELECT pk, col0 FROM view_2_tab1_521
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col0 >= 789 AND (col4 >= 141.85 AND col1 IS NULL) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col0 >= 789 AND (col4 >= 141.85 AND col1 IS NULL))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_521 UNION ALL SELECT pk, col0 FROM view_2_tab1_521
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col0 >= 789 AND (col4 >= 141.85 AND col1 IS NULL) UNION SELECT pk, col0 FROM tab1 WHERE NOT (col0 >= 789 AND (col4 >= 141.85 AND col1 IS NULL))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_521 UNION SELECT pk, col0 FROM view_2_tab1_521
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-0-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col0 >= 789 AND (col4 >= 141.85 AND col1 IS NULL) ) AS tab1_521
----

query I rowsort label-0-3
SELECT * FROM view_3_tab1_521
----

query I rowsort label-0-3
SELECT pk FROM tab1 WHERE col0 >= 789 AND (col4 >= 141.85 AND col1 IS NULL)
----

statement ok
DROP VIEW view_1_tab1_521

statement ok
DROP VIEW view_2_tab1_521

statement ok
DROP VIEW view_3_tab1_521

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab2_521 AS SELECT pk, col0 FROM tab2 WHERE col0 >= 789 AND (col4 >= 141.85 AND col1 IS NULL)

statement ok
CREATE VIEW view_2_tab2_521 AS SELECT pk, col0 FROM tab2 WHERE NOT (col0 >= 789 AND (col4 >= 141.85 AND col1 IS NULL))

statement ok
CREATE VIEW view_3_tab2_521 AS SELECT pk FROM view_1_tab2_521

query II rowsort label-0-1
SELECT pk, col0 FROM tab2 WHERE col0 >= 789 AND (col4 >= 141.85 AND col1 IS NULL)
----

query II rowsort label-0-2
SELECT pk, col0 FROM tab2 WHERE NOT (col0 >= 789 AND (col4 >= 141.85 AND col1 IS NULL))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-0-1
SELECT pk, col0 FROM view_1_tab2_521
----

query II rowsort label-0-2
SELECT pk, col0 FROM view_2_tab2_521
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col0 >= 789 AND (col4 >= 141.85 AND col1 IS NULL) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col0 >= 789 AND (col4 >= 141.85 AND col1 IS NULL))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_521 UNION ALL SELECT pk, col0 FROM view_2_tab2_521
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col0 >= 789 AND (col4 >= 141.85 AND col1 IS NULL) UNION SELECT pk, col0 FROM tab2 WHERE NOT (col0 >= 789 AND (col4 >= 141.85 AND col1 IS NULL))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_521 UNION SELECT pk, col0 FROM view_2_tab2_521
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-0-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col0 >= 789 AND (col4 >= 141.85 AND col1 IS NULL) ) AS tab2_521
----

query I rowsort label-0-3
SELECT * FROM view_3_tab2_521
----

query I rowsort label-0-3
SELECT pk FROM tab2 WHERE col0 >= 789 AND (col4 >= 141.85 AND col1 IS NULL)
----

statement ok
DROP VIEW view_1_tab2_521

statement ok
DROP VIEW view_2_tab2_521

statement ok
DROP VIEW view_3_tab2_521

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab3_521 AS SELECT pk, col0 FROM tab3 WHERE col0 >= 789 AND (col4 >= 141.85 AND col1 IS NULL)

statement ok
CREATE VIEW view_2_tab3_521 AS SELECT pk, col0 FROM tab3 WHERE NOT (col0 >= 789 AND (col4 >= 141.85 AND col1 IS NULL))

statement ok
CREATE VIEW view_3_tab3_521 AS SELECT pk FROM view_1_tab3_521

query II rowsort label-0-1
SELECT pk, col0 FROM tab3 WHERE col0 >= 789 AND (col4 >= 141.85 AND col1 IS NULL)
----

query II rowsort label-0-2
SELECT pk, col0 FROM tab3 WHERE NOT (col0 >= 789 AND (col4 >= 141.85 AND col1 IS NULL))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-0-1
SELECT pk, col0 FROM view_1_tab3_521
----

query II rowsort label-0-2
SELECT pk, col0 FROM view_2_tab3_521
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col0 >= 789 AND (col4 >= 141.85 AND col1 IS NULL) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col0 >= 789 AND (col4 >= 141.85 AND col1 IS NULL))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_521 UNION ALL SELECT pk, col0 FROM view_2_tab3_521
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col0 >= 789 AND (col4 >= 141.85 AND col1 IS NULL) UNION SELECT pk, col0 FROM tab3 WHERE NOT (col0 >= 789 AND (col4 >= 141.85 AND col1 IS NULL))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_521 UNION SELECT pk, col0 FROM view_2_tab3_521
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-0-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col0 >= 789 AND (col4 >= 141.85 AND col1 IS NULL) ) AS tab3_521
----

query I rowsort label-0-3
SELECT * FROM view_3_tab3_521
----

query I rowsort label-0-3
SELECT pk FROM tab3 WHERE col0 >= 789 AND (col4 >= 141.85 AND col1 IS NULL)
----

statement ok
DROP VIEW view_1_tab3_521

statement ok
DROP VIEW view_2_tab3_521

statement ok
DROP VIEW view_3_tab3_521

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab4_521 AS SELECT pk, col0 FROM tab4 WHERE col0 >= 789 AND (col4 >= 141.85 AND col1 IS NULL)

statement ok
CREATE VIEW view_2_tab4_521 AS SELECT pk, col0 FROM tab4 WHERE NOT (col0 >= 789 AND (col4 >= 141.85 AND col1 IS NULL))

statement ok
CREATE VIEW view_3_tab4_521 AS SELECT pk FROM view_1_tab4_521

query II rowsort label-0-1
SELECT pk, col0 FROM tab4 WHERE col0 >= 789 AND (col4 >= 141.85 AND col1 IS NULL)
----

query II rowsort label-0-2
SELECT pk, col0 FROM tab4 WHERE NOT (col0 >= 789 AND (col4 >= 141.85 AND col1 IS NULL))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-0-1
SELECT pk, col0 FROM view_1_tab4_521
----

query II rowsort label-0-2
SELECT pk, col0 FROM view_2_tab4_521
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col0 >= 789 AND (col4 >= 141.85 AND col1 IS NULL) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col0 >= 789 AND (col4 >= 141.85 AND col1 IS NULL))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_521 UNION ALL SELECT pk, col0 FROM view_2_tab4_521
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col0 >= 789 AND (col4 >= 141.85 AND col1 IS NULL) UNION SELECT pk, col0 FROM tab4 WHERE NOT (col0 >= 789 AND (col4 >= 141.85 AND col1 IS NULL))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_521 UNION SELECT pk, col0 FROM view_2_tab4_521
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-0-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col0 >= 789 AND (col4 >= 141.85 AND col1 IS NULL) ) AS tab4_521
----

query I rowsort label-0-3
SELECT * FROM view_3_tab4_521
----

query I rowsort label-0-3
SELECT pk FROM tab4 WHERE col0 >= 789 AND (col4 >= 141.85 AND col1 IS NULL)
----

statement ok
DROP VIEW view_1_tab4_521

statement ok
DROP VIEW view_2_tab4_521

statement ok
DROP VIEW view_3_tab4_521

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab0_523 AS SELECT pk, col0 FROM tab0 WHERE (col0 > 333)

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

statement ok
CREATE VIEW view_3_tab0_523 AS SELECT pk FROM view_1_tab0_523

query II rowsort label-100-1
SELECT pk, col0 FROM tab0 WHERE (col0 > 333)
----
136 values hashing to db5a6bb3ba5b664d7d4ca1118f326e27

query II rowsort label-100-2
SELECT pk, col0 FROM tab0 WHERE NOT ((col0 > 333))
----
64 values hashing to a3e87338fa9668b935eed721cc5356d7

query II rowsort label-100-1
SELECT pk, col0 FROM view_1_tab0_523
----
136 values hashing to db5a6bb3ba5b664d7d4ca1118f326e27

query II rowsort label-100-2
SELECT pk, col0 FROM view_2_tab0_523
----
64 values hashing to a3e87338fa9668b935eed721cc5356d7

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col0 > 333) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT ((col0 > 333))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_523 UNION ALL SELECT pk, col0 FROM view_2_tab0_523
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col0 > 333) UNION SELECT pk, col0 FROM tab0 WHERE NOT ((col0 > 333))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_523 UNION SELECT pk, col0 FROM view_2_tab0_523
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE (col0 > 333) ) AS tab0_523
----
68 values hashing to 8a9f460682d7c9ced371eafa52142f78

query I rowsort label-100-3
SELECT * FROM view_3_tab0_523
----
68 values hashing to 8a9f460682d7c9ced371eafa52142f78

query I rowsort label-100-3
SELECT pk FROM tab0 WHERE (col0 > 333)
----
68 values hashing to 8a9f460682d7c9ced371eafa52142f78

statement ok
DROP VIEW view_1_tab0_523

statement ok
DROP VIEW view_2_tab0_523

statement ok
DROP VIEW view_3_tab0_523

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab1_523 AS SELECT pk, col0 FROM tab1 WHERE (col0 > 333)

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

statement ok
CREATE VIEW view_3_tab1_523 AS SELECT pk FROM view_1_tab1_523

query II rowsort label-100-1
SELECT pk, col0 FROM tab1 WHERE (col0 > 333)
----
136 values hashing to db5a6bb3ba5b664d7d4ca1118f326e27

query II rowsort label-100-2
SELECT pk, col0 FROM tab1 WHERE NOT ((col0 > 333))
----
64 values hashing to a3e87338fa9668b935eed721cc5356d7

query II rowsort label-100-1
SELECT pk, col0 FROM view_1_tab1_523
----
136 values hashing to db5a6bb3ba5b664d7d4ca1118f326e27

query II rowsort label-100-2
SELECT pk, col0 FROM view_2_tab1_523
----
64 values hashing to a3e87338fa9668b935eed721cc5356d7

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col0 > 333) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT ((col0 > 333))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_523 UNION ALL SELECT pk, col0 FROM view_2_tab1_523
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col0 > 333) UNION SELECT pk, col0 FROM tab1 WHERE NOT ((col0 > 333))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_523 UNION SELECT pk, col0 FROM view_2_tab1_523
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE (col0 > 333) ) AS tab1_523
----
68 values hashing to 8a9f460682d7c9ced371eafa52142f78

query I rowsort label-100-3
SELECT * FROM view_3_tab1_523
----
68 values hashing to 8a9f460682d7c9ced371eafa52142f78

query I rowsort label-100-3
SELECT pk FROM tab1 WHERE (col0 > 333)
----
68 values hashing to 8a9f460682d7c9ced371eafa52142f78

statement ok
DROP VIEW view_1_tab1_523

statement ok
DROP VIEW view_2_tab1_523

statement ok
DROP VIEW view_3_tab1_523

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab2_523 AS SELECT pk, col0 FROM tab2 WHERE (col0 > 333)

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

statement ok
CREATE VIEW view_3_tab2_523 AS SELECT pk FROM view_1_tab2_523

query II rowsort label-100-1
SELECT pk, col0 FROM tab2 WHERE (col0 > 333)
----
136 values hashing to db5a6bb3ba5b664d7d4ca1118f326e27

query II rowsort label-100-2
SELECT pk, col0 FROM tab2 WHERE NOT ((col0 > 333))
----
64 values hashing to a3e87338fa9668b935eed721cc5356d7

query II rowsort label-100-1
SELECT pk, col0 FROM view_1_tab2_523
----
136 values hashing to db5a6bb3ba5b664d7d4ca1118f326e27

query II rowsort label-100-2
SELECT pk, col0 FROM view_2_tab2_523
----
64 values hashing to a3e87338fa9668b935eed721cc5356d7

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col0 > 333) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT ((col0 > 333))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_523 UNION ALL SELECT pk, col0 FROM view_2_tab2_523
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col0 > 333) UNION SELECT pk, col0 FROM tab2 WHERE NOT ((col0 > 333))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_523 UNION SELECT pk, col0 FROM view_2_tab2_523
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE (col0 > 333) ) AS tab2_523
----
68 values hashing to 8a9f460682d7c9ced371eafa52142f78

query I rowsort label-100-3
SELECT * FROM view_3_tab2_523
----
68 values hashing to 8a9f460682d7c9ced371eafa52142f78

query I rowsort label-100-3
SELECT pk FROM tab2 WHERE (col0 > 333)
----
68 values hashing to 8a9f460682d7c9ced371eafa52142f78

statement ok
DROP VIEW view_1_tab2_523

statement ok
DROP VIEW view_2_tab2_523

statement ok
DROP VIEW view_3_tab2_523

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab3_523 AS SELECT pk, col0 FROM tab3 WHERE (col0 > 333)

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

statement ok
CREATE VIEW view_3_tab3_523 AS SELECT pk FROM view_1_tab3_523

query II rowsort label-100-1
SELECT pk, col0 FROM tab3 WHERE (col0 > 333)
----
136 values hashing to db5a6bb3ba5b664d7d4ca1118f326e27

query II rowsort label-100-2
SELECT pk, col0 FROM tab3 WHERE NOT ((col0 > 333))
----
64 values hashing to a3e87338fa9668b935eed721cc5356d7

query II rowsort label-100-1
SELECT pk, col0 FROM view_1_tab3_523
----
136 values hashing to db5a6bb3ba5b664d7d4ca1118f326e27

query II rowsort label-100-2
SELECT pk, col0 FROM view_2_tab3_523
----
64 values hashing to a3e87338fa9668b935eed721cc5356d7

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col0 > 333) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT ((col0 > 333))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_523 UNION ALL SELECT pk, col0 FROM view_2_tab3_523
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col0 > 333) UNION SELECT pk, col0 FROM tab3 WHERE NOT ((col0 > 333))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_523 UNION SELECT pk, col0 FROM view_2_tab3_523
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE (col0 > 333) ) AS tab3_523
----
68 values hashing to 8a9f460682d7c9ced371eafa52142f78

query I rowsort label-100-3
SELECT * FROM view_3_tab3_523
----
68 values hashing to 8a9f460682d7c9ced371eafa52142f78

query I rowsort label-100-3
SELECT pk FROM tab3 WHERE (col0 > 333)
----
68 values hashing to 8a9f460682d7c9ced371eafa52142f78

statement ok
DROP VIEW view_1_tab3_523

statement ok
DROP VIEW view_2_tab3_523

statement ok
DROP VIEW view_3_tab3_523

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab4_523 AS SELECT pk, col0 FROM tab4 WHERE (col0 > 333)

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

statement ok
CREATE VIEW view_3_tab4_523 AS SELECT pk FROM view_1_tab4_523

query II rowsort label-100-1
SELECT pk, col0 FROM tab4 WHERE (col0 > 333)
----
136 values hashing to db5a6bb3ba5b664d7d4ca1118f326e27

query II rowsort label-100-2
SELECT pk, col0 FROM tab4 WHERE NOT ((col0 > 333))
----
64 values hashing to a3e87338fa9668b935eed721cc5356d7

query II rowsort label-100-1
SELECT pk, col0 FROM view_1_tab4_523
----
136 values hashing to db5a6bb3ba5b664d7d4ca1118f326e27

query II rowsort label-100-2
SELECT pk, col0 FROM view_2_tab4_523
----
64 values hashing to a3e87338fa9668b935eed721cc5356d7

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col0 > 333) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT ((col0 > 333))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_523 UNION ALL SELECT pk, col0 FROM view_2_tab4_523
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col0 > 333) UNION SELECT pk, col0 FROM tab4 WHERE NOT ((col0 > 333))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_523 UNION SELECT pk, col0 FROM view_2_tab4_523
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE (col0 > 333) ) AS tab4_523
----
68 values hashing to 8a9f460682d7c9ced371eafa52142f78

query I rowsort label-100-3
SELECT * FROM view_3_tab4_523
----
68 values hashing to 8a9f460682d7c9ced371eafa52142f78

query I rowsort label-100-3
SELECT pk FROM tab4 WHERE (col0 > 333)
----
68 values hashing to 8a9f460682d7c9ced371eafa52142f78

statement ok
DROP VIEW view_1_tab4_523

statement ok
DROP VIEW view_2_tab4_523

statement ok
DROP VIEW view_3_tab4_523

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab0_524 AS SELECT pk, col0 FROM tab0 WHERE col3 > 693 OR col0 > 732 OR col3 IS NULL OR col4 >= 538.47

statement ok
CREATE VIEW view_2_tab0_524 AS SELECT pk, col0 FROM tab0 WHERE NOT (col3 > 693 OR col0 > 732 OR col3 IS NULL OR col4 >= 538.47)

statement ok
CREATE VIEW view_3_tab0_524 AS SELECT pk FROM view_1_tab0_524

query II rowsort label-200-1
SELECT pk, col0 FROM tab0 WHERE col3 > 693 OR col0 > 732 OR col3 IS NULL OR col4 >= 538.47
----
150 values hashing to 8c8ed857d050f3d2e39c0d0970714819

query II rowsort label-200-2
SELECT pk, col0 FROM tab0 WHERE NOT (col3 > 693 OR col0 > 732 OR col3 IS NULL OR col4 >= 538.47)
----
50 values hashing to 9f976b0280d4afa722a790ca879fdf05

query II rowsort label-200-1
SELECT pk, col0 FROM view_1_tab0_524
----
150 values hashing to 8c8ed857d050f3d2e39c0d0970714819

query II rowsort label-200-2
SELECT pk, col0 FROM view_2_tab0_524
----
50 values hashing to 9f976b0280d4afa722a790ca879fdf05

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 > 693 OR col0 > 732 OR col3 IS NULL OR col4 >= 538.47 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col3 > 693 OR col0 > 732 OR col3 IS NULL OR col4 >= 538.47)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_524 UNION ALL SELECT pk, col0 FROM view_2_tab0_524
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 > 693 OR col0 > 732 OR col3 IS NULL OR col4 >= 538.47 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col3 > 693 OR col0 > 732 OR col3 IS NULL OR col4 >= 538.47)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_524 UNION SELECT pk, col0 FROM view_2_tab0_524
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col3 > 693 OR col0 > 732 OR col3 IS NULL OR col4 >= 538.47 ) AS tab0_524
----
75 values hashing to 71cf3485d900af3a9950fd548a1b37d0

query I rowsort label-200-3
SELECT * FROM view_3_tab0_524
----
75 values hashing to 71cf3485d900af3a9950fd548a1b37d0

query I rowsort label-200-3
SELECT pk FROM tab0 WHERE col3 > 693 OR col0 > 732 OR col3 IS NULL OR col4 >= 538.47
----
75 values hashing to 71cf3485d900af3a9950fd548a1b37d0

statement ok
DROP VIEW view_1_tab0_524

statement ok
DROP VIEW view_2_tab0_524

statement ok
DROP VIEW view_3_tab0_524

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab1_524 AS SELECT pk, col0 FROM tab1 WHERE col3 > 693 OR col0 > 732 OR col3 IS NULL OR col4 >= 538.47

statement ok
CREATE VIEW view_2_tab1_524 AS SELECT pk, col0 FROM tab1 WHERE NOT (col3 > 693 OR col0 > 732 OR col3 IS NULL OR col4 >= 538.47)

statement ok
CREATE VIEW view_3_tab1_524 AS SELECT pk FROM view_1_tab1_524

query II rowsort label-200-1
SELECT pk, col0 FROM tab1 WHERE col3 > 693 OR col0 > 732 OR col3 IS NULL OR col4 >= 538.47
----
150 values hashing to 8c8ed857d050f3d2e39c0d0970714819

query II rowsort label-200-2
SELECT pk, col0 FROM tab1 WHERE NOT (col3 > 693 OR col0 > 732 OR col3 IS NULL OR col4 >= 538.47)
----
50 values hashing to 9f976b0280d4afa722a790ca879fdf05

query II rowsort label-200-1
SELECT pk, col0 FROM view_1_tab1_524
----
150 values hashing to 8c8ed857d050f3d2e39c0d0970714819

query II rowsort label-200-2
SELECT pk, col0 FROM view_2_tab1_524
----
50 values hashing to 9f976b0280d4afa722a790ca879fdf05

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 > 693 OR col0 > 732 OR col3 IS NULL OR col4 >= 538.47 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col3 > 693 OR col0 > 732 OR col3 IS NULL OR col4 >= 538.47)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_524 UNION ALL SELECT pk, col0 FROM view_2_tab1_524
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 > 693 OR col0 > 732 OR col3 IS NULL OR col4 >= 538.47 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col3 > 693 OR col0 > 732 OR col3 IS NULL OR col4 >= 538.47)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_524 UNION SELECT pk, col0 FROM view_2_tab1_524
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col3 > 693 OR col0 > 732 OR col3 IS NULL OR col4 >= 538.47 ) AS tab1_524
----
75 values hashing to 71cf3485d900af3a9950fd548a1b37d0

query I rowsort label-200-3
SELECT * FROM view_3_tab1_524
----
75 values hashing to 71cf3485d900af3a9950fd548a1b37d0

query I rowsort label-200-3
SELECT pk FROM tab1 WHERE col3 > 693 OR col0 > 732 OR col3 IS NULL OR col4 >= 538.47
----
75 values hashing to 71cf3485d900af3a9950fd548a1b37d0

statement ok
DROP VIEW view_1_tab1_524

statement ok
DROP VIEW view_2_tab1_524

statement ok
DROP VIEW view_3_tab1_524

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab2_524 AS SELECT pk, col0 FROM tab2 WHERE col3 > 693 OR col0 > 732 OR col3 IS NULL OR col4 >= 538.47

statement ok
CREATE VIEW view_2_tab2_524 AS SELECT pk, col0 FROM tab2 WHERE NOT (col3 > 693 OR col0 > 732 OR col3 IS NULL OR col4 >= 538.47)

statement ok
CREATE VIEW view_3_tab2_524 AS SELECT pk FROM view_1_tab2_524

query II rowsort label-200-1
SELECT pk, col0 FROM tab2 WHERE col3 > 693 OR col0 > 732 OR col3 IS NULL OR col4 >= 538.47
----
150 values hashing to 8c8ed857d050f3d2e39c0d0970714819

query II rowsort label-200-2
SELECT pk, col0 FROM tab2 WHERE NOT (col3 > 693 OR col0 > 732 OR col3 IS NULL OR col4 >= 538.47)
----
50 values hashing to 9f976b0280d4afa722a790ca879fdf05

query II rowsort label-200-1
SELECT pk, col0 FROM view_1_tab2_524
----
150 values hashing to 8c8ed857d050f3d2e39c0d0970714819

query II rowsort label-200-2
SELECT pk, col0 FROM view_2_tab2_524
----
50 values hashing to 9f976b0280d4afa722a790ca879fdf05

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 > 693 OR col0 > 732 OR col3 IS NULL OR col4 >= 538.47 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col3 > 693 OR col0 > 732 OR col3 IS NULL OR col4 >= 538.47)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_524 UNION ALL SELECT pk, col0 FROM view_2_tab2_524
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 > 693 OR col0 > 732 OR col3 IS NULL OR col4 >= 538.47 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col3 > 693 OR col0 > 732 OR col3 IS NULL OR col4 >= 538.47)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_524 UNION SELECT pk, col0 FROM view_2_tab2_524
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col3 > 693 OR col0 > 732 OR col3 IS NULL OR col4 >= 538.47 ) AS tab2_524
----
75 values hashing to 71cf3485d900af3a9950fd548a1b37d0

query I rowsort label-200-3
SELECT * FROM view_3_tab2_524
----
75 values hashing to 71cf3485d900af3a9950fd548a1b37d0

query I rowsort label-200-3
SELECT pk FROM tab2 WHERE col3 > 693 OR col0 > 732 OR col3 IS NULL OR col4 >= 538.47
----
75 values hashing to 71cf3485d900af3a9950fd548a1b37d0

statement ok
DROP VIEW view_1_tab2_524

statement ok
DROP VIEW view_2_tab2_524

statement ok
DROP VIEW view_3_tab2_524

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab3_524 AS SELECT pk, col0 FROM tab3 WHERE col3 > 693 OR col0 > 732 OR col3 IS NULL OR col4 >= 538.47

statement ok
CREATE VIEW view_2_tab3_524 AS SELECT pk, col0 FROM tab3 WHERE NOT (col3 > 693 OR col0 > 732 OR col3 IS NULL OR col4 >= 538.47)

statement ok
CREATE VIEW view_3_tab3_524 AS SELECT pk FROM view_1_tab3_524

query II rowsort label-200-1
SELECT pk, col0 FROM tab3 WHERE col3 > 693 OR col0 > 732 OR col3 IS NULL OR col4 >= 538.47
----
150 values hashing to 8c8ed857d050f3d2e39c0d0970714819

query II rowsort label-200-2
SELECT pk, col0 FROM tab3 WHERE NOT (col3 > 693 OR col0 > 732 OR col3 IS NULL OR col4 >= 538.47)
----
50 values hashing to 9f976b0280d4afa722a790ca879fdf05

query II rowsort label-200-1
SELECT pk, col0 FROM view_1_tab3_524
----
150 values hashing to 8c8ed857d050f3d2e39c0d0970714819

query II rowsort label-200-2
SELECT pk, col0 FROM view_2_tab3_524
----
50 values hashing to 9f976b0280d4afa722a790ca879fdf05

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 > 693 OR col0 > 732 OR col3 IS NULL OR col4 >= 538.47 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col3 > 693 OR col0 > 732 OR col3 IS NULL OR col4 >= 538.47)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_524 UNION ALL SELECT pk, col0 FROM view_2_tab3_524
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 > 693 OR col0 > 732 OR col3 IS NULL OR col4 >= 538.47 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col3 > 693 OR col0 > 732 OR col3 IS NULL OR col4 >= 538.47)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_524 UNION SELECT pk, col0 FROM view_2_tab3_524
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col3 > 693 OR col0 > 732 OR col3 IS NULL OR col4 >= 538.47 ) AS tab3_524
----
75 values hashing to 71cf3485d900af3a9950fd548a1b37d0

query I rowsort label-200-3
SELECT * FROM view_3_tab3_524
----
75 values hashing to 71cf3485d900af3a9950fd548a1b37d0

query I rowsort label-200-3
SELECT pk FROM tab3 WHERE col3 > 693 OR col0 > 732 OR col3 IS NULL OR col4 >= 538.47
----
75 values hashing to 71cf3485d900af3a9950fd548a1b37d0

statement ok
DROP VIEW view_1_tab3_524

statement ok
DROP VIEW view_2_tab3_524

statement ok
DROP VIEW view_3_tab3_524

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab4_524 AS SELECT pk, col0 FROM tab4 WHERE col3 > 693 OR col0 > 732 OR col3 IS NULL OR col4 >= 538.47

statement ok
CREATE VIEW view_2_tab4_524 AS SELECT pk, col0 FROM tab4 WHERE NOT (col3 > 693 OR col0 > 732 OR col3 IS NULL OR col4 >= 538.47)

statement ok
CREATE VIEW view_3_tab4_524 AS SELECT pk FROM view_1_tab4_524

query II rowsort label-200-1
SELECT pk, col0 FROM tab4 WHERE col3 > 693 OR col0 > 732 OR col3 IS NULL OR col4 >= 538.47
----
150 values hashing to 8c8ed857d050f3d2e39c0d0970714819

query II rowsort label-200-2
SELECT pk, col0 FROM tab4 WHERE NOT (col3 > 693 OR col0 > 732 OR col3 IS NULL OR col4 >= 538.47)
----
50 values hashing to 9f976b0280d4afa722a790ca879fdf05

query II rowsort label-200-1
SELECT pk, col0 FROM view_1_tab4_524
----
150 values hashing to 8c8ed857d050f3d2e39c0d0970714819

query II rowsort label-200-2
SELECT pk, col0 FROM view_2_tab4_524
----
50 values hashing to 9f976b0280d4afa722a790ca879fdf05

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 > 693 OR col0 > 732 OR col3 IS NULL OR col4 >= 538.47 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col3 > 693 OR col0 > 732 OR col3 IS NULL OR col4 >= 538.47)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_524 UNION ALL SELECT pk, col0 FROM view_2_tab4_524
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 > 693 OR col0 > 732 OR col3 IS NULL OR col4 >= 538.47 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col3 > 693 OR col0 > 732 OR col3 IS NULL OR col4 >= 538.47)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_524 UNION SELECT pk, col0 FROM view_2_tab4_524
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col3 > 693 OR col0 > 732 OR col3 IS NULL OR col4 >= 538.47 ) AS tab4_524
----
75 values hashing to 71cf3485d900af3a9950fd548a1b37d0

query I rowsort label-200-3
SELECT * FROM view_3_tab4_524
----
75 values hashing to 71cf3485d900af3a9950fd548a1b37d0

query I rowsort label-200-3
SELECT pk FROM tab4 WHERE col3 > 693 OR col0 > 732 OR col3 IS NULL OR col4 >= 538.47
----
75 values hashing to 71cf3485d900af3a9950fd548a1b37d0

statement ok
DROP VIEW view_1_tab4_524

statement ok
DROP VIEW view_2_tab4_524

statement ok
DROP VIEW view_3_tab4_524

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab0_525 AS SELECT pk, col0 FROM tab0 WHERE (((col1 BETWEEN 950.56 AND 148.61)))

statement ok
CREATE VIEW view_2_tab0_525 AS SELECT pk, col0 FROM tab0 WHERE NOT ((((col1 BETWEEN 950.56 AND 148.61))))

statement ok
CREATE VIEW view_3_tab0_525 AS SELECT pk FROM view_1_tab0_525

query II rowsort label-300-1
SELECT pk, col0 FROM tab0 WHERE (((col1 BETWEEN 950.56 AND 148.61)))
----

query II rowsort label-300-2
SELECT pk, col0 FROM tab0 WHERE NOT ((((col1 BETWEEN 950.56 AND 148.61))))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-300-1
SELECT pk, col0 FROM view_1_tab0_525
----

query II rowsort label-300-2
SELECT pk, col0 FROM view_2_tab0_525
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (((col1 BETWEEN 950.56 AND 148.61))) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT ((((col1 BETWEEN 950.56 AND 148.61))))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_525 UNION ALL SELECT pk, col0 FROM view_2_tab0_525
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (((col1 BETWEEN 950.56 AND 148.61))) UNION SELECT pk, col0 FROM tab0 WHERE NOT ((((col1 BETWEEN 950.56 AND 148.61))))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_525 UNION SELECT pk, col0 FROM view_2_tab0_525
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE (((col1 BETWEEN 950.56 AND 148.61))) ) AS tab0_525
----

query I rowsort label-300-3
SELECT * FROM view_3_tab0_525
----

query I rowsort label-300-3
SELECT pk FROM tab0 WHERE (((col1 BETWEEN 950.56 AND 148.61)))
----

statement ok
DROP VIEW view_1_tab0_525

statement ok
DROP VIEW view_2_tab0_525

statement ok
DROP VIEW view_3_tab0_525

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab1_525 AS SELECT pk, col0 FROM tab1 WHERE (((col1 BETWEEN 950.56 AND 148.61)))

statement ok
CREATE VIEW view_2_tab1_525 AS SELECT pk, col0 FROM tab1 WHERE NOT ((((col1 BETWEEN 950.56 AND 148.61))))

statement ok
CREATE VIEW view_3_tab1_525 AS SELECT pk FROM view_1_tab1_525

query II rowsort label-300-1
SELECT pk, col0 FROM tab1 WHERE (((col1 BETWEEN 950.56 AND 148.61)))
----

query II rowsort label-300-2
SELECT pk, col0 FROM tab1 WHERE NOT ((((col1 BETWEEN 950.56 AND 148.61))))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-300-1
SELECT pk, col0 FROM view_1_tab1_525
----

query II rowsort label-300-2
SELECT pk, col0 FROM view_2_tab1_525
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (((col1 BETWEEN 950.56 AND 148.61))) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT ((((col1 BETWEEN 950.56 AND 148.61))))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_525 UNION ALL SELECT pk, col0 FROM view_2_tab1_525
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (((col1 BETWEEN 950.56 AND 148.61))) UNION SELECT pk, col0 FROM tab1 WHERE NOT ((((col1 BETWEEN 950.56 AND 148.61))))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_525 UNION SELECT pk, col0 FROM view_2_tab1_525
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE (((col1 BETWEEN 950.56 AND 148.61))) ) AS tab1_525
----

query I rowsort label-300-3
SELECT * FROM view_3_tab1_525
----

query I rowsort label-300-3
SELECT pk FROM tab1 WHERE (((col1 BETWEEN 950.56 AND 148.61)))
----

statement ok
DROP VIEW view_1_tab1_525

statement ok
DROP VIEW view_2_tab1_525

statement ok
DROP VIEW view_3_tab1_525

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab2_525 AS SELECT pk, col0 FROM tab2 WHERE (((col1 BETWEEN 950.56 AND 148.61)))

statement ok
CREATE VIEW view_2_tab2_525 AS SELECT pk, col0 FROM tab2 WHERE NOT ((((col1 BETWEEN 950.56 AND 148.61))))

statement ok
CREATE VIEW view_3_tab2_525 AS SELECT pk FROM view_1_tab2_525

query II rowsort label-300-1
SELECT pk, col0 FROM tab2 WHERE (((col1 BETWEEN 950.56 AND 148.61)))
----

query II rowsort label-300-2
SELECT pk, col0 FROM tab2 WHERE NOT ((((col1 BETWEEN 950.56 AND 148.61))))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-300-1
SELECT pk, col0 FROM view_1_tab2_525
----

query II rowsort label-300-2
SELECT pk, col0 FROM view_2_tab2_525
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (((col1 BETWEEN 950.56 AND 148.61))) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT ((((col1 BETWEEN 950.56 AND 148.61))))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_525 UNION ALL SELECT pk, col0 FROM view_2_tab2_525
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (((col1 BETWEEN 950.56 AND 148.61))) UNION SELECT pk, col0 FROM tab2 WHERE NOT ((((col1 BETWEEN 950.56 AND 148.61))))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_525 UNION SELECT pk, col0 FROM view_2_tab2_525
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE (((col1 BETWEEN 950.56 AND 148.61))) ) AS tab2_525
----

query I rowsort label-300-3
SELECT * FROM view_3_tab2_525
----

query I rowsort label-300-3
SELECT pk FROM tab2 WHERE (((col1 BETWEEN 950.56 AND 148.61)))
----

statement ok
DROP VIEW view_1_tab2_525

statement ok
DROP VIEW view_2_tab2_525

statement ok
DROP VIEW view_3_tab2_525

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab3_525 AS SELECT pk, col0 FROM tab3 WHERE (((col1 BETWEEN 950.56 AND 148.61)))

statement ok
CREATE VIEW view_2_tab3_525 AS SELECT pk, col0 FROM tab3 WHERE NOT ((((col1 BETWEEN 950.56 AND 148.61))))

statement ok
CREATE VIEW view_3_tab3_525 AS SELECT pk FROM view_1_tab3_525

query II rowsort label-300-1
SELECT pk, col0 FROM tab3 WHERE (((col1 BETWEEN 950.56 AND 148.61)))
----

query II rowsort label-300-2
SELECT pk, col0 FROM tab3 WHERE NOT ((((col1 BETWEEN 950.56 AND 148.61))))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-300-1
SELECT pk, col0 FROM view_1_tab3_525
----

query II rowsort label-300-2
SELECT pk, col0 FROM view_2_tab3_525
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (((col1 BETWEEN 950.56 AND 148.61))) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT ((((col1 BETWEEN 950.56 AND 148.61))))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_525 UNION ALL SELECT pk, col0 FROM view_2_tab3_525
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (((col1 BETWEEN 950.56 AND 148.61))) UNION SELECT pk, col0 FROM tab3 WHERE NOT ((((col1 BETWEEN 950.56 AND 148.61))))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_525 UNION SELECT pk, col0 FROM view_2_tab3_525
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE (((col1 BETWEEN 950.56 AND 148.61))) ) AS tab3_525
----

query I rowsort label-300-3
SELECT * FROM view_3_tab3_525
----

query I rowsort label-300-3
SELECT pk FROM tab3 WHERE (((col1 BETWEEN 950.56 AND 148.61)))
----

statement ok
DROP VIEW view_1_tab3_525

statement ok
DROP VIEW view_2_tab3_525

statement ok
DROP VIEW view_3_tab3_525

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab4_525 AS SELECT pk, col0 FROM tab4 WHERE (((col1 BETWEEN 950.56 AND 148.61)))

statement ok
CREATE VIEW view_2_tab4_525 AS SELECT pk, col0 FROM tab4 WHERE NOT ((((col1 BETWEEN 950.56 AND 148.61))))

statement ok
CREATE VIEW view_3_tab4_525 AS SELECT pk FROM view_1_tab4_525

query II rowsort label-300-1
SELECT pk, col0 FROM tab4 WHERE (((col1 BETWEEN 950.56 AND 148.61)))
----

query II rowsort label-300-2
SELECT pk, col0 FROM tab4 WHERE NOT ((((col1 BETWEEN 950.56 AND 148.61))))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-300-1
SELECT pk, col0 FROM view_1_tab4_525
----

query II rowsort label-300-2
SELECT pk, col0 FROM view_2_tab4_525
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (((col1 BETWEEN 950.56 AND 148.61))) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT ((((col1 BETWEEN 950.56 AND 148.61))))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_525 UNION ALL SELECT pk, col0 FROM view_2_tab4_525
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (((col1 BETWEEN 950.56 AND 148.61))) UNION SELECT pk, col0 FROM tab4 WHERE NOT ((((col1 BETWEEN 950.56 AND 148.61))))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_525 UNION SELECT pk, col0 FROM view_2_tab4_525
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE (((col1 BETWEEN 950.56 AND 148.61))) ) AS tab4_525
----

query I rowsort label-300-3
SELECT * FROM view_3_tab4_525
----

query I rowsort label-300-3
SELECT pk FROM tab4 WHERE (((col1 BETWEEN 950.56 AND 148.61)))
----

statement ok
DROP VIEW view_1_tab4_525

statement ok
DROP VIEW view_2_tab4_525

statement ok
DROP VIEW view_3_tab4_525

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab0_526 AS SELECT pk, col0 FROM tab0 WHERE (col4 = 717.55 OR col3 >= 156 AND col0 < 727 OR col3 <= 697)

statement ok
CREATE VIEW view_2_tab0_526 AS SELECT pk, col0 FROM tab0 WHERE NOT ((col4 = 717.55 OR col3 >= 156 AND col0 < 727 OR col3 <= 697))

statement ok
CREATE VIEW view_3_tab0_526 AS SELECT pk FROM view_1_tab0_526

query II rowsort label-400-1
SELECT pk, col0 FROM tab0 WHERE (col4 = 717.55 OR col3 >= 156 AND col0 < 727 OR col3 <= 697)
----
180 values hashing to 5be8066dad2a22000eaa648070d5b9ae

query II rowsort label-400-2
SELECT pk, col0 FROM tab0 WHERE NOT ((col4 = 717.55 OR col3 >= 156 AND col0 < 727 OR col3 <= 697))
----
20 values hashing to c94d4a09ae9505fde5339b27489a10e1

query II rowsort label-400-1
SELECT pk, col0 FROM view_1_tab0_526
----
180 values hashing to 5be8066dad2a22000eaa648070d5b9ae

query II rowsort label-400-2
SELECT pk, col0 FROM view_2_tab0_526
----
20 values hashing to c94d4a09ae9505fde5339b27489a10e1

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col4 = 717.55 OR col3 >= 156 AND col0 < 727 OR col3 <= 697) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT ((col4 = 717.55 OR col3 >= 156 AND col0 < 727 OR col3 <= 697))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_526 UNION ALL SELECT pk, col0 FROM view_2_tab0_526
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col4 = 717.55 OR col3 >= 156 AND col0 < 727 OR col3 <= 697) UNION SELECT pk, col0 FROM tab0 WHERE NOT ((col4 = 717.55 OR col3 >= 156 AND col0 < 727 OR col3 <= 697))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_526 UNION SELECT pk, col0 FROM view_2_tab0_526
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE (col4 = 717.55 OR col3 >= 156 AND col0 < 727 OR col3 <= 697) ) AS tab0_526
----
90 values hashing to 24a25d27bface5604e5edd4f7c7a9d56

query I rowsort label-400-3
SELECT * FROM view_3_tab0_526
----
90 values hashing to 24a25d27bface5604e5edd4f7c7a9d56

query I rowsort label-400-3
SELECT pk FROM tab0 WHERE (col4 = 717.55 OR col3 >= 156 AND col0 < 727 OR col3 <= 697)
----
90 values hashing to 24a25d27bface5604e5edd4f7c7a9d56

statement ok
DROP VIEW view_1_tab0_526

statement ok
DROP VIEW view_2_tab0_526

statement ok
DROP VIEW view_3_tab0_526

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab1_526 AS SELECT pk, col0 FROM tab1 WHERE (col4 = 717.55 OR col3 >= 156 AND col0 < 727 OR col3 <= 697)

statement ok
CREATE VIEW view_2_tab1_526 AS SELECT pk, col0 FROM tab1 WHERE NOT ((col4 = 717.55 OR col3 >= 156 AND col0 < 727 OR col3 <= 697))

statement ok
CREATE VIEW view_3_tab1_526 AS SELECT pk FROM view_1_tab1_526

query II rowsort label-400-1
SELECT pk, col0 FROM tab1 WHERE (col4 = 717.55 OR col3 >= 156 AND col0 < 727 OR col3 <= 697)
----
180 values hashing to 5be8066dad2a22000eaa648070d5b9ae

query II rowsort label-400-2
SELECT pk, col0 FROM tab1 WHERE NOT ((col4 = 717.55 OR col3 >= 156 AND col0 < 727 OR col3 <= 697))
----
20 values hashing to c94d4a09ae9505fde5339b27489a10e1

query II rowsort label-400-1
SELECT pk, col0 FROM view_1_tab1_526
----
180 values hashing to 5be8066dad2a22000eaa648070d5b9ae

query II rowsort label-400-2
SELECT pk, col0 FROM view_2_tab1_526
----
20 values hashing to c94d4a09ae9505fde5339b27489a10e1

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col4 = 717.55 OR col3 >= 156 AND col0 < 727 OR col3 <= 697) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT ((col4 = 717.55 OR col3 >= 156 AND col0 < 727 OR col3 <= 697))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_526 UNION ALL SELECT pk, col0 FROM view_2_tab1_526
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col4 = 717.55 OR col3 >= 156 AND col0 < 727 OR col3 <= 697) UNION SELECT pk, col0 FROM tab1 WHERE NOT ((col4 = 717.55 OR col3 >= 156 AND col0 < 727 OR col3 <= 697))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_526 UNION SELECT pk, col0 FROM view_2_tab1_526
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE (col4 = 717.55 OR col3 >= 156 AND col0 < 727 OR col3 <= 697) ) AS tab1_526
----
90 values hashing to 24a25d27bface5604e5edd4f7c7a9d56

query I rowsort label-400-3
SELECT * FROM view_3_tab1_526
----
90 values hashing to 24a25d27bface5604e5edd4f7c7a9d56

query I rowsort label-400-3
SELECT pk FROM tab1 WHERE (col4 = 717.55 OR col3 >= 156 AND col0 < 727 OR col3 <= 697)
----
90 values hashing to 24a25d27bface5604e5edd4f7c7a9d56

statement ok
DROP VIEW view_1_tab1_526

statement ok
DROP VIEW view_2_tab1_526

statement ok
DROP VIEW view_3_tab1_526

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab2_526 AS SELECT pk, col0 FROM tab2 WHERE (col4 = 717.55 OR col3 >= 156 AND col0 < 727 OR col3 <= 697)

statement ok
CREATE VIEW view_2_tab2_526 AS SELECT pk, col0 FROM tab2 WHERE NOT ((col4 = 717.55 OR col3 >= 156 AND col0 < 727 OR col3 <= 697))

statement ok
CREATE VIEW view_3_tab2_526 AS SELECT pk FROM view_1_tab2_526

query II rowsort label-400-1
SELECT pk, col0 FROM tab2 WHERE (col4 = 717.55 OR col3 >= 156 AND col0 < 727 OR col3 <= 697)
----
180 values hashing to 5be8066dad2a22000eaa648070d5b9ae

query II rowsort label-400-2
SELECT pk, col0 FROM tab2 WHERE NOT ((col4 = 717.55 OR col3 >= 156 AND col0 < 727 OR col3 <= 697))
----
20 values hashing to c94d4a09ae9505fde5339b27489a10e1

query II rowsort label-400-1
SELECT pk, col0 FROM view_1_tab2_526
----
180 values hashing to 5be8066dad2a22000eaa648070d5b9ae

query II rowsort label-400-2
SELECT pk, col0 FROM view_2_tab2_526
----
20 values hashing to c94d4a09ae9505fde5339b27489a10e1

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col4 = 717.55 OR col3 >= 156 AND col0 < 727 OR col3 <= 697) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT ((col4 = 717.55 OR col3 >= 156 AND col0 < 727 OR col3 <= 697))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_526 UNION ALL SELECT pk, col0 FROM view_2_tab2_526
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col4 = 717.55 OR col3 >= 156 AND col0 < 727 OR col3 <= 697) UNION SELECT pk, col0 FROM tab2 WHERE NOT ((col4 = 717.55 OR col3 >= 156 AND col0 < 727 OR col3 <= 697))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_526 UNION SELECT pk, col0 FROM view_2_tab2_526
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE (col4 = 717.55 OR col3 >= 156 AND col0 < 727 OR col3 <= 697) ) AS tab2_526
----
90 values hashing to 24a25d27bface5604e5edd4f7c7a9d56

query I rowsort label-400-3
SELECT * FROM view_3_tab2_526
----
90 values hashing to 24a25d27bface5604e5edd4f7c7a9d56

query I rowsort label-400-3
SELECT pk FROM tab2 WHERE (col4 = 717.55 OR col3 >= 156 AND col0 < 727 OR col3 <= 697)
----
90 values hashing to 24a25d27bface5604e5edd4f7c7a9d56

statement ok
DROP VIEW view_1_tab2_526

statement ok
DROP VIEW view_2_tab2_526

statement ok
DROP VIEW view_3_tab2_526

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab3_526 AS SELECT pk, col0 FROM tab3 WHERE (col4 = 717.55 OR col3 >= 156 AND col0 < 727 OR col3 <= 697)

statement ok
CREATE VIEW view_2_tab3_526 AS SELECT pk, col0 FROM tab3 WHERE NOT ((col4 = 717.55 OR col3 >= 156 AND col0 < 727 OR col3 <= 697))

statement ok
CREATE VIEW view_3_tab3_526 AS SELECT pk FROM view_1_tab3_526

query II rowsort label-400-1
SELECT pk, col0 FROM tab3 WHERE (col4 = 717.55 OR col3 >= 156 AND col0 < 727 OR col3 <= 697)
----
180 values hashing to 5be8066dad2a22000eaa648070d5b9ae

query II rowsort label-400-2
SELECT pk, col0 FROM tab3 WHERE NOT ((col4 = 717.55 OR col3 >= 156 AND col0 < 727 OR col3 <= 697))
----
20 values hashing to c94d4a09ae9505fde5339b27489a10e1

query II rowsort label-400-1
SELECT pk, col0 FROM view_1_tab3_526
----
180 values hashing to 5be8066dad2a22000eaa648070d5b9ae

query II rowsort label-400-2
SELECT pk, col0 FROM view_2_tab3_526
----
20 values hashing to c94d4a09ae9505fde5339b27489a10e1

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col4 = 717.55 OR col3 >= 156 AND col0 < 727 OR col3 <= 697) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT ((col4 = 717.55 OR col3 >= 156 AND col0 < 727 OR col3 <= 697))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_526 UNION ALL SELECT pk, col0 FROM view_2_tab3_526
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col4 = 717.55 OR col3 >= 156 AND col0 < 727 OR col3 <= 697) UNION SELECT pk, col0 FROM tab3 WHERE NOT ((col4 = 717.55 OR col3 >= 156 AND col0 < 727 OR col3 <= 697))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_526 UNION SELECT pk, col0 FROM view_2_tab3_526
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE (col4 = 717.55 OR col3 >= 156 AND col0 < 727 OR col3 <= 697) ) AS tab3_526
----
90 values hashing to 24a25d27bface5604e5edd4f7c7a9d56

query I rowsort label-400-3
SELECT * FROM view_3_tab3_526
----
90 values hashing to 24a25d27bface5604e5edd4f7c7a9d56

query I rowsort label-400-3
SELECT pk FROM tab3 WHERE (col4 = 717.55 OR col3 >= 156 AND col0 < 727 OR col3 <= 697)
----
90 values hashing to 24a25d27bface5604e5edd4f7c7a9d56

statement ok
DROP VIEW view_1_tab3_526

statement ok
DROP VIEW view_2_tab3_526

statement ok
DROP VIEW view_3_tab3_526

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab4_526 AS SELECT pk, col0 FROM tab4 WHERE (col4 = 717.55 OR col3 >= 156 AND col0 < 727 OR col3 <= 697)

statement ok
CREATE VIEW view_2_tab4_526 AS SELECT pk, col0 FROM tab4 WHERE NOT ((col4 = 717.55 OR col3 >= 156 AND col0 < 727 OR col3 <= 697))

statement ok
CREATE VIEW view_3_tab4_526 AS SELECT pk FROM view_1_tab4_526

query II rowsort label-400-1
SELECT pk, col0 FROM tab4 WHERE (col4 = 717.55 OR col3 >= 156 AND col0 < 727 OR col3 <= 697)
----
180 values hashing to 5be8066dad2a22000eaa648070d5b9ae

query II rowsort label-400-2
SELECT pk, col0 FROM tab4 WHERE NOT ((col4 = 717.55 OR col3 >= 156 AND col0 < 727 OR col3 <= 697))
----
20 values hashing to c94d4a09ae9505fde5339b27489a10e1

query II rowsort label-400-1
SELECT pk, col0 FROM view_1_tab4_526
----
180 values hashing to 5be8066dad2a22000eaa648070d5b9ae

query II rowsort label-400-2
SELECT pk, col0 FROM view_2_tab4_526
----
20 values hashing to c94d4a09ae9505fde5339b27489a10e1

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col4 = 717.55 OR col3 >= 156 AND col0 < 727 OR col3 <= 697) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT ((col4 = 717.55 OR col3 >= 156 AND col0 < 727 OR col3 <= 697))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_526 UNION ALL SELECT pk, col0 FROM view_2_tab4_526
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col4 = 717.55 OR col3 >= 156 AND col0 < 727 OR col3 <= 697) UNION SELECT pk, col0 FROM tab4 WHERE NOT ((col4 = 717.55 OR col3 >= 156 AND col0 < 727 OR col3 <= 697))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_526 UNION SELECT pk, col0 FROM view_2_tab4_526
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE (col4 = 717.55 OR col3 >= 156 AND col0 < 727 OR col3 <= 697) ) AS tab4_526
----
90 values hashing to 24a25d27bface5604e5edd4f7c7a9d56

query I rowsort label-400-3
SELECT * FROM view_3_tab4_526
----
90 values hashing to 24a25d27bface5604e5edd4f7c7a9d56

query I rowsort label-400-3
SELECT pk FROM tab4 WHERE (col4 = 717.55 OR col3 >= 156 AND col0 < 727 OR col3 <= 697)
----
90 values hashing to 24a25d27bface5604e5edd4f7c7a9d56

statement ok
DROP VIEW view_1_tab4_526

statement ok
DROP VIEW view_2_tab4_526

statement ok
DROP VIEW view_3_tab4_526

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab0_527 AS SELECT pk, col0 FROM tab0 WHERE col0 < 811

statement ok
CREATE VIEW view_2_tab0_527 AS SELECT pk, col0 FROM tab0 WHERE NOT (col0 < 811)

statement ok
CREATE VIEW view_3_tab0_527 AS SELECT pk FROM view_1_tab0_527

query II rowsort label-500-1
SELECT pk, col0 FROM tab0 WHERE col0 < 811
----
152 values hashing to a0d9241bcc0ff467955d782d38452efc

query II rowsort label-500-2
SELECT pk, col0 FROM tab0 WHERE NOT (col0 < 811)
----
48 values hashing to 766fe2f3e90b8a87ca1f8c33a6f48a19

query II rowsort label-500-1
SELECT pk, col0 FROM view_1_tab0_527
----
152 values hashing to a0d9241bcc0ff467955d782d38452efc

query II rowsort label-500-2
SELECT pk, col0 FROM view_2_tab0_527
----
48 values hashing to 766fe2f3e90b8a87ca1f8c33a6f48a19

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col0 < 811 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col0 < 811)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_527 UNION ALL SELECT pk, col0 FROM view_2_tab0_527
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col0 < 811 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col0 < 811)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_527 UNION SELECT pk, col0 FROM view_2_tab0_527
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col0 < 811 ) AS tab0_527
----
76 values hashing to 0e4ae97f6522c8b6d9e67ae89bc812fb

query I rowsort label-500-3
SELECT * FROM view_3_tab0_527
----
76 values hashing to 0e4ae97f6522c8b6d9e67ae89bc812fb

query I rowsort label-500-3
SELECT pk FROM tab0 WHERE col0 < 811
----
76 values hashing to 0e4ae97f6522c8b6d9e67ae89bc812fb

statement ok
DROP VIEW view_1_tab0_527

statement ok
DROP VIEW view_2_tab0_527

statement ok
DROP VIEW view_3_tab0_527

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab1_527 AS SELECT pk, col0 FROM tab1 WHERE col0 < 811

statement ok
CREATE VIEW view_2_tab1_527 AS SELECT pk, col0 FROM tab1 WHERE NOT (col0 < 811)

statement ok
CREATE VIEW view_3_tab1_527 AS SELECT pk FROM view_1_tab1_527

query II rowsort label-500-1
SELECT pk, col0 FROM tab1 WHERE col0 < 811
----
152 values hashing to a0d9241bcc0ff467955d782d38452efc

query II rowsort label-500-2
SELECT pk, col0 FROM tab1 WHERE NOT (col0 < 811)
----
48 values hashing to 766fe2f3e90b8a87ca1f8c33a6f48a19

query II rowsort label-500-1
SELECT pk, col0 FROM view_1_tab1_527
----
152 values hashing to a0d9241bcc0ff467955d782d38452efc

query II rowsort label-500-2
SELECT pk, col0 FROM view_2_tab1_527
----
48 values hashing to 766fe2f3e90b8a87ca1f8c33a6f48a19

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col0 < 811 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col0 < 811)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_527 UNION ALL SELECT pk, col0 FROM view_2_tab1_527
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col0 < 811 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col0 < 811)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_527 UNION SELECT pk, col0 FROM view_2_tab1_527
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col0 < 811 ) AS tab1_527
----
76 values hashing to 0e4ae97f6522c8b6d9e67ae89bc812fb

query I rowsort label-500-3
SELECT * FROM view_3_tab1_527
----
76 values hashing to 0e4ae97f6522c8b6d9e67ae89bc812fb

query I rowsort label-500-3
SELECT pk FROM tab1 WHERE col0 < 811
----
76 values hashing to 0e4ae97f6522c8b6d9e67ae89bc812fb

statement ok
DROP VIEW view_1_tab1_527

statement ok
DROP VIEW view_2_tab1_527

statement ok
DROP VIEW view_3_tab1_527

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab2_527 AS SELECT pk, col0 FROM tab2 WHERE col0 < 811

statement ok
CREATE VIEW view_2_tab2_527 AS SELECT pk, col0 FROM tab2 WHERE NOT (col0 < 811)

statement ok
CREATE VIEW view_3_tab2_527 AS SELECT pk FROM view_1_tab2_527

query II rowsort label-500-1
SELECT pk, col0 FROM tab2 WHERE col0 < 811
----
152 values hashing to a0d9241bcc0ff467955d782d38452efc

query II rowsort label-500-2
SELECT pk, col0 FROM tab2 WHERE NOT (col0 < 811)
----
48 values hashing to 766fe2f3e90b8a87ca1f8c33a6f48a19

query II rowsort label-500-1
SELECT pk, col0 FROM view_1_tab2_527
----
152 values hashing to a0d9241bcc0ff467955d782d38452efc

query II rowsort label-500-2
SELECT pk, col0 FROM view_2_tab2_527
----
48 values hashing to 766fe2f3e90b8a87ca1f8c33a6f48a19

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col0 < 811 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col0 < 811)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_527 UNION ALL SELECT pk, col0 FROM view_2_tab2_527
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col0 < 811 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col0 < 811)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_527 UNION SELECT pk, col0 FROM view_2_tab2_527
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col0 < 811 ) AS tab2_527
----
76 values hashing to 0e4ae97f6522c8b6d9e67ae89bc812fb

query I rowsort label-500-3
SELECT * FROM view_3_tab2_527
----
76 values hashing to 0e4ae97f6522c8b6d9e67ae89bc812fb

query I rowsort label-500-3
SELECT pk FROM tab2 WHERE col0 < 811
----
76 values hashing to 0e4ae97f6522c8b6d9e67ae89bc812fb

statement ok
DROP VIEW view_1_tab2_527

statement ok
DROP VIEW view_2_tab2_527

statement ok
DROP VIEW view_3_tab2_527

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab3_527 AS SELECT pk, col0 FROM tab3 WHERE col0 < 811

statement ok
CREATE VIEW view_2_tab3_527 AS SELECT pk, col0 FROM tab3 WHERE NOT (col0 < 811)

statement ok
CREATE VIEW view_3_tab3_527 AS SELECT pk FROM view_1_tab3_527

query II rowsort label-500-1
SELECT pk, col0 FROM tab3 WHERE col0 < 811
----
152 values hashing to a0d9241bcc0ff467955d782d38452efc

query II rowsort label-500-2
SELECT pk, col0 FROM tab3 WHERE NOT (col0 < 811)
----
48 values hashing to 766fe2f3e90b8a87ca1f8c33a6f48a19

query II rowsort label-500-1
SELECT pk, col0 FROM view_1_tab3_527
----
152 values hashing to a0d9241bcc0ff467955d782d38452efc

query II rowsort label-500-2
SELECT pk, col0 FROM view_2_tab3_527
----
48 values hashing to 766fe2f3e90b8a87ca1f8c33a6f48a19

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col0 < 811 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col0 < 811)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_527 UNION ALL SELECT pk, col0 FROM view_2_tab3_527
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col0 < 811 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col0 < 811)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_527 UNION SELECT pk, col0 FROM view_2_tab3_527
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col0 < 811 ) AS tab3_527
----
76 values hashing to 0e4ae97f6522c8b6d9e67ae89bc812fb

query I rowsort label-500-3
SELECT * FROM view_3_tab3_527
----
76 values hashing to 0e4ae97f6522c8b6d9e67ae89bc812fb

query I rowsort label-500-3
SELECT pk FROM tab3 WHERE col0 < 811
----
76 values hashing to 0e4ae97f6522c8b6d9e67ae89bc812fb

statement ok
DROP VIEW view_1_tab3_527

statement ok
DROP VIEW view_2_tab3_527

statement ok
DROP VIEW view_3_tab3_527

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab4_527 AS SELECT pk, col0 FROM tab4 WHERE col0 < 811

statement ok
CREATE VIEW view_2_tab4_527 AS SELECT pk, col0 FROM tab4 WHERE NOT (col0 < 811)

statement ok
CREATE VIEW view_3_tab4_527 AS SELECT pk FROM view_1_tab4_527

query II rowsort label-500-1
SELECT pk, col0 FROM tab4 WHERE col0 < 811
----
152 values hashing to a0d9241bcc0ff467955d782d38452efc

query II rowsort label-500-2
SELECT pk, col0 FROM tab4 WHERE NOT (col0 < 811)
----
48 values hashing to 766fe2f3e90b8a87ca1f8c33a6f48a19

query II rowsort label-500-1
SELECT pk, col0 FROM view_1_tab4_527
----
152 values hashing to a0d9241bcc0ff467955d782d38452efc

query II rowsort label-500-2
SELECT pk, col0 FROM view_2_tab4_527
----
48 values hashing to 766fe2f3e90b8a87ca1f8c33a6f48a19

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col0 < 811 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col0 < 811)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_527 UNION ALL SELECT pk, col0 FROM view_2_tab4_527
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col0 < 811 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col0 < 811)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_527 UNION SELECT pk, col0 FROM view_2_tab4_527
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col0 < 811 ) AS tab4_527
----
76 values hashing to 0e4ae97f6522c8b6d9e67ae89bc812fb

query I rowsort label-500-3
SELECT * FROM view_3_tab4_527
----
76 values hashing to 0e4ae97f6522c8b6d9e67ae89bc812fb

query I rowsort label-500-3
SELECT pk FROM tab4 WHERE col0 < 811
----
76 values hashing to 0e4ae97f6522c8b6d9e67ae89bc812fb

statement ok
DROP VIEW view_1_tab4_527

statement ok
DROP VIEW view_2_tab4_527

statement ok
DROP VIEW view_3_tab4_527

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab0_528 AS SELECT pk, col0 FROM tab0 WHERE col3 < 340

statement ok
CREATE VIEW view_2_tab0_528 AS SELECT pk, col0 FROM tab0 WHERE NOT (col3 < 340)

statement ok
CREATE VIEW view_3_tab0_528 AS SELECT pk FROM view_1_tab0_528

query II rowsort label-600-1
SELECT pk, col0 FROM tab0 WHERE col3 < 340
----
82 values hashing to 5555ccdb83f7f722e3ed3091e57f8d6a

query II rowsort label-600-2
SELECT pk, col0 FROM tab0 WHERE NOT (col3 < 340)
----
118 values hashing to 115f858dd700c82c85a701b1e6dd88fe

query II rowsort label-600-1
SELECT pk, col0 FROM view_1_tab0_528
----
82 values hashing to 5555ccdb83f7f722e3ed3091e57f8d6a

query II rowsort label-600-2
SELECT pk, col0 FROM view_2_tab0_528
----
118 values hashing to 115f858dd700c82c85a701b1e6dd88fe

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 < 340 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col3 < 340)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_528 UNION ALL SELECT pk, col0 FROM view_2_tab0_528
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 < 340 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col3 < 340)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_528 UNION SELECT pk, col0 FROM view_2_tab0_528
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col3 < 340 ) AS tab0_528
----
41 values hashing to b52ff2d9346c7fc76ab11c583b1aaf99

query I rowsort label-600-3
SELECT * FROM view_3_tab0_528
----
41 values hashing to b52ff2d9346c7fc76ab11c583b1aaf99

query I rowsort label-600-3
SELECT pk FROM tab0 WHERE col3 < 340
----
41 values hashing to b52ff2d9346c7fc76ab11c583b1aaf99

statement ok
DROP VIEW view_1_tab0_528

statement ok
DROP VIEW view_2_tab0_528

statement ok
DROP VIEW view_3_tab0_528

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab1_528 AS SELECT pk, col0 FROM tab1 WHERE col3 < 340

statement ok
CREATE VIEW view_2_tab1_528 AS SELECT pk, col0 FROM tab1 WHERE NOT (col3 < 340)

statement ok
CREATE VIEW view_3_tab1_528 AS SELECT pk FROM view_1_tab1_528

query II rowsort label-600-1
SELECT pk, col0 FROM tab1 WHERE col3 < 340
----
82 values hashing to 5555ccdb83f7f722e3ed3091e57f8d6a

query II rowsort label-600-2
SELECT pk, col0 FROM tab1 WHERE NOT (col3 < 340)
----
118 values hashing to 115f858dd700c82c85a701b1e6dd88fe

query II rowsort label-600-1
SELECT pk, col0 FROM view_1_tab1_528
----
82 values hashing to 5555ccdb83f7f722e3ed3091e57f8d6a

query II rowsort label-600-2
SELECT pk, col0 FROM view_2_tab1_528
----
118 values hashing to 115f858dd700c82c85a701b1e6dd88fe

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 < 340 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col3 < 340)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_528 UNION ALL SELECT pk, col0 FROM view_2_tab1_528
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 < 340 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col3 < 340)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_528 UNION SELECT pk, col0 FROM view_2_tab1_528
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col3 < 340 ) AS tab1_528
----
41 values hashing to b52ff2d9346c7fc76ab11c583b1aaf99

query I rowsort label-600-3
SELECT * FROM view_3_tab1_528
----
41 values hashing to b52ff2d9346c7fc76ab11c583b1aaf99

query I rowsort label-600-3
SELECT pk FROM tab1 WHERE col3 < 340
----
41 values hashing to b52ff2d9346c7fc76ab11c583b1aaf99

statement ok
DROP VIEW view_1_tab1_528

statement ok
DROP VIEW view_2_tab1_528

statement ok
DROP VIEW view_3_tab1_528

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab2_528 AS SELECT pk, col0 FROM tab2 WHERE col3 < 340

statement ok
CREATE VIEW view_2_tab2_528 AS SELECT pk, col0 FROM tab2 WHERE NOT (col3 < 340)

statement ok
CREATE VIEW view_3_tab2_528 AS SELECT pk FROM view_1_tab2_528

query II rowsort label-600-1
SELECT pk, col0 FROM tab2 WHERE col3 < 340
----
82 values hashing to 5555ccdb83f7f722e3ed3091e57f8d6a

query II rowsort label-600-2
SELECT pk, col0 FROM tab2 WHERE NOT (col3 < 340)
----
118 values hashing to 115f858dd700c82c85a701b1e6dd88fe

query II rowsort label-600-1
SELECT pk, col0 FROM view_1_tab2_528
----
82 values hashing to 5555ccdb83f7f722e3ed3091e57f8d6a

query II rowsort label-600-2
SELECT pk, col0 FROM view_2_tab2_528
----
118 values hashing to 115f858dd700c82c85a701b1e6dd88fe

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 < 340 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col3 < 340)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_528 UNION ALL SELECT pk, col0 FROM view_2_tab2_528
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 < 340 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col3 < 340)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_528 UNION SELECT pk, col0 FROM view_2_tab2_528
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col3 < 340 ) AS tab2_528
----
41 values hashing to b52ff2d9346c7fc76ab11c583b1aaf99

query I rowsort label-600-3
SELECT * FROM view_3_tab2_528
----
41 values hashing to b52ff2d9346c7fc76ab11c583b1aaf99

query I rowsort label-600-3
SELECT pk FROM tab2 WHERE col3 < 340
----
41 values hashing to b52ff2d9346c7fc76ab11c583b1aaf99

statement ok
DROP VIEW view_1_tab2_528

statement ok
DROP VIEW view_2_tab2_528

statement ok
DROP VIEW view_3_tab2_528

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab3_528 AS SELECT pk, col0 FROM tab3 WHERE col3 < 340

statement ok
CREATE VIEW view_2_tab3_528 AS SELECT pk, col0 FROM tab3 WHERE NOT (col3 < 340)

statement ok
CREATE VIEW view_3_tab3_528 AS SELECT pk FROM view_1_tab3_528

query II rowsort label-600-1
SELECT pk, col0 FROM tab3 WHERE col3 < 340
----
82 values hashing to 5555ccdb83f7f722e3ed3091e57f8d6a

query II rowsort label-600-2
SELECT pk, col0 FROM tab3 WHERE NOT (col3 < 340)
----
118 values hashing to 115f858dd700c82c85a701b1e6dd88fe

query II rowsort label-600-1
SELECT pk, col0 FROM view_1_tab3_528
----
82 values hashing to 5555ccdb83f7f722e3ed3091e57f8d6a

query II rowsort label-600-2
SELECT pk, col0 FROM view_2_tab3_528
----
118 values hashing to 115f858dd700c82c85a701b1e6dd88fe

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 < 340 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col3 < 340)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_528 UNION ALL SELECT pk, col0 FROM view_2_tab3_528
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 < 340 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col3 < 340)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_528 UNION SELECT pk, col0 FROM view_2_tab3_528
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col3 < 340 ) AS tab3_528
----
41 values hashing to b52ff2d9346c7fc76ab11c583b1aaf99

query I rowsort label-600-3
SELECT * FROM view_3_tab3_528
----
41 values hashing to b52ff2d9346c7fc76ab11c583b1aaf99

query I rowsort label-600-3
SELECT pk FROM tab3 WHERE col3 < 340
----
41 values hashing to b52ff2d9346c7fc76ab11c583b1aaf99

statement ok
DROP VIEW view_1_tab3_528

statement ok
DROP VIEW view_2_tab3_528

statement ok
DROP VIEW view_3_tab3_528

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab4_528 AS SELECT pk, col0 FROM tab4 WHERE col3 < 340

statement ok
CREATE VIEW view_2_tab4_528 AS SELECT pk, col0 FROM tab4 WHERE NOT (col3 < 340)

statement ok
CREATE VIEW view_3_tab4_528 AS SELECT pk FROM view_1_tab4_528

query II rowsort label-600-1
SELECT pk, col0 FROM tab4 WHERE col3 < 340
----
82 values hashing to 5555ccdb83f7f722e3ed3091e57f8d6a

query II rowsort label-600-2
SELECT pk, col0 FROM tab4 WHERE NOT (col3 < 340)
----
118 values hashing to 115f858dd700c82c85a701b1e6dd88fe

query II rowsort label-600-1
SELECT pk, col0 FROM view_1_tab4_528
----
82 values hashing to 5555ccdb83f7f722e3ed3091e57f8d6a

query II rowsort label-600-2
SELECT pk, col0 FROM view_2_tab4_528
----
118 values hashing to 115f858dd700c82c85a701b1e6dd88fe

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 < 340 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col3 < 340)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_528 UNION ALL SELECT pk, col0 FROM view_2_tab4_528
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 < 340 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col3 < 340)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_528 UNION SELECT pk, col0 FROM view_2_tab4_528
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col3 < 340 ) AS tab4_528
----
41 values hashing to b52ff2d9346c7fc76ab11c583b1aaf99

query I rowsort label-600-3
SELECT * FROM view_3_tab4_528
----
41 values hashing to b52ff2d9346c7fc76ab11c583b1aaf99

query I rowsort label-600-3
SELECT pk FROM tab4 WHERE col3 < 340
----
41 values hashing to b52ff2d9346c7fc76ab11c583b1aaf99

statement ok
DROP VIEW view_1_tab4_528

statement ok
DROP VIEW view_2_tab4_528

statement ok
DROP VIEW view_3_tab4_528

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab0_530 AS SELECT pk, col0 FROM tab0 WHERE (col0 > 428)

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

statement ok
CREATE VIEW view_3_tab0_530 AS SELECT pk FROM view_1_tab0_530

query II rowsort label-700-1
SELECT pk, col0 FROM tab0 WHERE (col0 > 428)
----
114 values hashing to 3476c85e5b006cb77c60ccd7c2a11569

query II rowsort label-700-2
SELECT pk, col0 FROM tab0 WHERE NOT ((col0 > 428))
----
86 values hashing to 6aa47bbfc463f104f5054c196383c64f

query II rowsort label-700-1
SELECT pk, col0 FROM view_1_tab0_530
----
114 values hashing to 3476c85e5b006cb77c60ccd7c2a11569

query II rowsort label-700-2
SELECT pk, col0 FROM view_2_tab0_530
----
86 values hashing to 6aa47bbfc463f104f5054c196383c64f

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col0 > 428) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT ((col0 > 428))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_530 UNION ALL SELECT pk, col0 FROM view_2_tab0_530
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col0 > 428) UNION SELECT pk, col0 FROM tab0 WHERE NOT ((col0 > 428))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_530 UNION SELECT pk, col0 FROM view_2_tab0_530
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE (col0 > 428) ) AS tab0_530
----
57 values hashing to 1bb74fd4cd726f3e47b5d17102d8dfa6

query I rowsort label-700-3
SELECT * FROM view_3_tab0_530
----
57 values hashing to 1bb74fd4cd726f3e47b5d17102d8dfa6

query I rowsort label-700-3
SELECT pk FROM tab0 WHERE (col0 > 428)
----
57 values hashing to 1bb74fd4cd726f3e47b5d17102d8dfa6

statement ok
DROP VIEW view_1_tab0_530

statement ok
DROP VIEW view_2_tab0_530

statement ok
DROP VIEW view_3_tab0_530

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab1_530 AS SELECT pk, col0 FROM tab1 WHERE (col0 > 428)

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

statement ok
CREATE VIEW view_3_tab1_530 AS SELECT pk FROM view_1_tab1_530

query II rowsort label-700-1
SELECT pk, col0 FROM tab1 WHERE (col0 > 428)
----
114 values hashing to 3476c85e5b006cb77c60ccd7c2a11569

query II rowsort label-700-2
SELECT pk, col0 FROM tab1 WHERE NOT ((col0 > 428))
----
86 values hashing to 6aa47bbfc463f104f5054c196383c64f

query II rowsort label-700-1
SELECT pk, col0 FROM view_1_tab1_530
----
114 values hashing to 3476c85e5b006cb77c60ccd7c2a11569

query II rowsort label-700-2
SELECT pk, col0 FROM view_2_tab1_530
----
86 values hashing to 6aa47bbfc463f104f5054c196383c64f

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col0 > 428) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT ((col0 > 428))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_530 UNION ALL SELECT pk, col0 FROM view_2_tab1_530
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col0 > 428) UNION SELECT pk, col0 FROM tab1 WHERE NOT ((col0 > 428))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_530 UNION SELECT pk, col0 FROM view_2_tab1_530
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE (col0 > 428) ) AS tab1_530
----
57 values hashing to 1bb74fd4cd726f3e47b5d17102d8dfa6

query I rowsort label-700-3
SELECT * FROM view_3_tab1_530
----
57 values hashing to 1bb74fd4cd726f3e47b5d17102d8dfa6

query I rowsort label-700-3
SELECT pk FROM tab1 WHERE (col0 > 428)
----
57 values hashing to 1bb74fd4cd726f3e47b5d17102d8dfa6

statement ok
DROP VIEW view_1_tab1_530

statement ok
DROP VIEW view_2_tab1_530

statement ok
DROP VIEW view_3_tab1_530

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab2_530 AS SELECT pk, col0 FROM tab2 WHERE (col0 > 428)

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

statement ok
CREATE VIEW view_3_tab2_530 AS SELECT pk FROM view_1_tab2_530

query II rowsort label-700-1
SELECT pk, col0 FROM tab2 WHERE (col0 > 428)
----
114 values hashing to 3476c85e5b006cb77c60ccd7c2a11569

query II rowsort label-700-2
SELECT pk, col0 FROM tab2 WHERE NOT ((col0 > 428))
----
86 values hashing to 6aa47bbfc463f104f5054c196383c64f

query II rowsort label-700-1
SELECT pk, col0 FROM view_1_tab2_530
----
114 values hashing to 3476c85e5b006cb77c60ccd7c2a11569

query II rowsort label-700-2
SELECT pk, col0 FROM view_2_tab2_530
----
86 values hashing to 6aa47bbfc463f104f5054c196383c64f

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col0 > 428) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT ((col0 > 428))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_530 UNION ALL SELECT pk, col0 FROM view_2_tab2_530
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col0 > 428) UNION SELECT pk, col0 FROM tab2 WHERE NOT ((col0 > 428))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_530 UNION SELECT pk, col0 FROM view_2_tab2_530
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE (col0 > 428) ) AS tab2_530
----
57 values hashing to 1bb74fd4cd726f3e47b5d17102d8dfa6

query I rowsort label-700-3
SELECT * FROM view_3_tab2_530
----
57 values hashing to 1bb74fd4cd726f3e47b5d17102d8dfa6

query I rowsort label-700-3
SELECT pk FROM tab2 WHERE (col0 > 428)
----
57 values hashing to 1bb74fd4cd726f3e47b5d17102d8dfa6

statement ok
DROP VIEW view_1_tab2_530

statement ok
DROP VIEW view_2_tab2_530

statement ok
DROP VIEW view_3_tab2_530

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab3_530 AS SELECT pk, col0 FROM tab3 WHERE (col0 > 428)

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

statement ok
CREATE VIEW view_3_tab3_530 AS SELECT pk FROM view_1_tab3_530

query II rowsort label-700-1
SELECT pk, col0 FROM tab3 WHERE (col0 > 428)
----
114 values hashing to 3476c85e5b006cb77c60ccd7c2a11569

query II rowsort label-700-2
SELECT pk, col0 FROM tab3 WHERE NOT ((col0 > 428))
----
86 values hashing to 6aa47bbfc463f104f5054c196383c64f

query II rowsort label-700-1
SELECT pk, col0 FROM view_1_tab3_530
----
114 values hashing to 3476c85e5b006cb77c60ccd7c2a11569

query II rowsort label-700-2
SELECT pk, col0 FROM view_2_tab3_530
----
86 values hashing to 6aa47bbfc463f104f5054c196383c64f

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col0 > 428) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT ((col0 > 428))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_530 UNION ALL SELECT pk, col0 FROM view_2_tab3_530
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col0 > 428) UNION SELECT pk, col0 FROM tab3 WHERE NOT ((col0 > 428))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_530 UNION SELECT pk, col0 FROM view_2_tab3_530
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE (col0 > 428) ) AS tab3_530
----
57 values hashing to 1bb74fd4cd726f3e47b5d17102d8dfa6

query I rowsort label-700-3
SELECT * FROM view_3_tab3_530
----
57 values hashing to 1bb74fd4cd726f3e47b5d17102d8dfa6

query I rowsort label-700-3
SELECT pk FROM tab3 WHERE (col0 > 428)
----
57 values hashing to 1bb74fd4cd726f3e47b5d17102d8dfa6

statement ok
DROP VIEW view_1_tab3_530

statement ok
DROP VIEW view_2_tab3_530

statement ok
DROP VIEW view_3_tab3_530

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab4_530 AS SELECT pk, col0 FROM tab4 WHERE (col0 > 428)

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

statement ok
CREATE VIEW view_3_tab4_530 AS SELECT pk FROM view_1_tab4_530

query II rowsort label-700-1
SELECT pk, col0 FROM tab4 WHERE (col0 > 428)
----
114 values hashing to 3476c85e5b006cb77c60ccd7c2a11569

query II rowsort label-700-2
SELECT pk, col0 FROM tab4 WHERE NOT ((col0 > 428))
----
86 values hashing to 6aa47bbfc463f104f5054c196383c64f

query II rowsort label-700-1
SELECT pk, col0 FROM view_1_tab4_530
----
114 values hashing to 3476c85e5b006cb77c60ccd7c2a11569

query II rowsort label-700-2
SELECT pk, col0 FROM view_2_tab4_530
----
86 values hashing to 6aa47bbfc463f104f5054c196383c64f

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col0 > 428) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT ((col0 > 428))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_530 UNION ALL SELECT pk, col0 FROM view_2_tab4_530
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col0 > 428) UNION SELECT pk, col0 FROM tab4 WHERE NOT ((col0 > 428))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_530 UNION SELECT pk, col0 FROM view_2_tab4_530
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE (col0 > 428) ) AS tab4_530
----
57 values hashing to 1bb74fd4cd726f3e47b5d17102d8dfa6

query I rowsort label-700-3
SELECT * FROM view_3_tab4_530
----
57 values hashing to 1bb74fd4cd726f3e47b5d17102d8dfa6

query I rowsort label-700-3
SELECT pk FROM tab4 WHERE (col0 > 428)
----
57 values hashing to 1bb74fd4cd726f3e47b5d17102d8dfa6

statement ok
DROP VIEW view_1_tab4_530

statement ok
DROP VIEW view_2_tab4_530

statement ok
DROP VIEW view_3_tab4_530

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab0_531 AS SELECT pk, col0 FROM tab0 WHERE col1 > 562.45

statement ok
CREATE VIEW view_2_tab0_531 AS SELECT pk, col0 FROM tab0 WHERE NOT (col1 > 562.45)

statement ok
CREATE VIEW view_3_tab0_531 AS SELECT pk FROM view_1_tab0_531

query II rowsort label-800-1
SELECT pk, col0 FROM tab0 WHERE col1 > 562.45
----
90 values hashing to 75d558c0844bd8fbf55a8048dc74cb0d

query II rowsort label-800-2
SELECT pk, col0 FROM tab0 WHERE NOT (col1 > 562.45)
----
110 values hashing to 155e64bfda88056837d8852e0503c2cd

query II rowsort label-800-1
SELECT pk, col0 FROM view_1_tab0_531
----
90 values hashing to 75d558c0844bd8fbf55a8048dc74cb0d

query II rowsort label-800-2
SELECT pk, col0 FROM view_2_tab0_531
----
110 values hashing to 155e64bfda88056837d8852e0503c2cd

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col1 > 562.45 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col1 > 562.45)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_531 UNION ALL SELECT pk, col0 FROM view_2_tab0_531
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col1 > 562.45 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col1 > 562.45)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_531 UNION SELECT pk, col0 FROM view_2_tab0_531
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col1 > 562.45 ) AS tab0_531
----
45 values hashing to 22e5fc87a754ca0d11529508963418ab

query I rowsort label-800-3
SELECT * FROM view_3_tab0_531
----
45 values hashing to 22e5fc87a754ca0d11529508963418ab

query I rowsort label-800-3
SELECT pk FROM tab0 WHERE col1 > 562.45
----
45 values hashing to 22e5fc87a754ca0d11529508963418ab

statement ok
DROP VIEW view_1_tab0_531

statement ok
DROP VIEW view_2_tab0_531

statement ok
DROP VIEW view_3_tab0_531

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab1_531 AS SELECT pk, col0 FROM tab1 WHERE col1 > 562.45

statement ok
CREATE VIEW view_2_tab1_531 AS SELECT pk, col0 FROM tab1 WHERE NOT (col1 > 562.45)

statement ok
CREATE VIEW view_3_tab1_531 AS SELECT pk FROM view_1_tab1_531

query II rowsort label-800-1
SELECT pk, col0 FROM tab1 WHERE col1 > 562.45
----
90 values hashing to 75d558c0844bd8fbf55a8048dc74cb0d

query II rowsort label-800-2
SELECT pk, col0 FROM tab1 WHERE NOT (col1 > 562.45)
----
110 values hashing to 155e64bfda88056837d8852e0503c2cd

query II rowsort label-800-1
SELECT pk, col0 FROM view_1_tab1_531
----
90 values hashing to 75d558c0844bd8fbf55a8048dc74cb0d

query II rowsort label-800-2
SELECT pk, col0 FROM view_2_tab1_531
----
110 values hashing to 155e64bfda88056837d8852e0503c2cd

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col1 > 562.45 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col1 > 562.45)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_531 UNION ALL SELECT pk, col0 FROM view_2_tab1_531
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col1 > 562.45 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col1 > 562.45)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_531 UNION SELECT pk, col0 FROM view_2_tab1_531
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col1 > 562.45 ) AS tab1_531
----
45 values hashing to 22e5fc87a754ca0d11529508963418ab

query I rowsort label-800-3
SELECT * FROM view_3_tab1_531
----
45 values hashing to 22e5fc87a754ca0d11529508963418ab

query I rowsort label-800-3
SELECT pk FROM tab1 WHERE col1 > 562.45
----
45 values hashing to 22e5fc87a754ca0d11529508963418ab

statement ok
DROP VIEW view_1_tab1_531

statement ok
DROP VIEW view_2_tab1_531

statement ok
DROP VIEW view_3_tab1_531

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab2_531 AS SELECT pk, col0 FROM tab2 WHERE col1 > 562.45

statement ok
CREATE VIEW view_2_tab2_531 AS SELECT pk, col0 FROM tab2 WHERE NOT (col1 > 562.45)

statement ok
CREATE VIEW view_3_tab2_531 AS SELECT pk FROM view_1_tab2_531

query II rowsort label-800-1
SELECT pk, col0 FROM tab2 WHERE col1 > 562.45
----
90 values hashing to 75d558c0844bd8fbf55a8048dc74cb0d

query II rowsort label-800-2
SELECT pk, col0 FROM tab2 WHERE NOT (col1 > 562.45)
----
110 values hashing to 155e64bfda88056837d8852e0503c2cd

query II rowsort label-800-1
SELECT pk, col0 FROM view_1_tab2_531
----
90 values hashing to 75d558c0844bd8fbf55a8048dc74cb0d

query II rowsort label-800-2
SELECT pk, col0 FROM view_2_tab2_531
----
110 values hashing to 155e64bfda88056837d8852e0503c2cd

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col1 > 562.45 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col1 > 562.45)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_531 UNION ALL SELECT pk, col0 FROM view_2_tab2_531
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col1 > 562.45 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col1 > 562.45)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_531 UNION SELECT pk, col0 FROM view_2_tab2_531
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col1 > 562.45 ) AS tab2_531
----
45 values hashing to 22e5fc87a754ca0d11529508963418ab

query I rowsort label-800-3
SELECT * FROM view_3_tab2_531
----
45 values hashing to 22e5fc87a754ca0d11529508963418ab

query I rowsort label-800-3
SELECT pk FROM tab2 WHERE col1 > 562.45
----
45 values hashing to 22e5fc87a754ca0d11529508963418ab

statement ok
DROP VIEW view_1_tab2_531

statement ok
DROP VIEW view_2_tab2_531

statement ok
DROP VIEW view_3_tab2_531

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab3_531 AS SELECT pk, col0 FROM tab3 WHERE col1 > 562.45

statement ok
CREATE VIEW view_2_tab3_531 AS SELECT pk, col0 FROM tab3 WHERE NOT (col1 > 562.45)

statement ok
CREATE VIEW view_3_tab3_531 AS SELECT pk FROM view_1_tab3_531

query II rowsort label-800-1
SELECT pk, col0 FROM tab3 WHERE col1 > 562.45
----
90 values hashing to 75d558c0844bd8fbf55a8048dc74cb0d

query II rowsort label-800-2
SELECT pk, col0 FROM tab3 WHERE NOT (col1 > 562.45)
----
110 values hashing to 155e64bfda88056837d8852e0503c2cd

query II rowsort label-800-1
SELECT pk, col0 FROM view_1_tab3_531
----
90 values hashing to 75d558c0844bd8fbf55a8048dc74cb0d

query II rowsort label-800-2
SELECT pk, col0 FROM view_2_tab3_531
----
110 values hashing to 155e64bfda88056837d8852e0503c2cd

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col1 > 562.45 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col1 > 562.45)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_531 UNION ALL SELECT pk, col0 FROM view_2_tab3_531
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col1 > 562.45 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col1 > 562.45)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_531 UNION SELECT pk, col0 FROM view_2_tab3_531
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col1 > 562.45 ) AS tab3_531
----
45 values hashing to 22e5fc87a754ca0d11529508963418ab

query I rowsort label-800-3
SELECT * FROM view_3_tab3_531
----
45 values hashing to 22e5fc87a754ca0d11529508963418ab

query I rowsort label-800-3
SELECT pk FROM tab3 WHERE col1 > 562.45
----
45 values hashing to 22e5fc87a754ca0d11529508963418ab

statement ok
DROP VIEW view_1_tab3_531

statement ok
DROP VIEW view_2_tab3_531

statement ok
DROP VIEW view_3_tab3_531

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab4_531 AS SELECT pk, col0 FROM tab4 WHERE col1 > 562.45

statement ok
CREATE VIEW view_2_tab4_531 AS SELECT pk, col0 FROM tab4 WHERE NOT (col1 > 562.45)

statement ok
CREATE VIEW view_3_tab4_531 AS SELECT pk FROM view_1_tab4_531

query II rowsort label-800-1
SELECT pk, col0 FROM tab4 WHERE col1 > 562.45
----
90 values hashing to 75d558c0844bd8fbf55a8048dc74cb0d

query II rowsort label-800-2
SELECT pk, col0 FROM tab4 WHERE NOT (col1 > 562.45)
----
110 values hashing to 155e64bfda88056837d8852e0503c2cd

query II rowsort label-800-1
SELECT pk, col0 FROM view_1_tab4_531
----
90 values hashing to 75d558c0844bd8fbf55a8048dc74cb0d

query II rowsort label-800-2
SELECT pk, col0 FROM view_2_tab4_531
----
110 values hashing to 155e64bfda88056837d8852e0503c2cd

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col1 > 562.45 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col1 > 562.45)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_531 UNION ALL SELECT pk, col0 FROM view_2_tab4_531
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col1 > 562.45 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col1 > 562.45)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_531 UNION SELECT pk, col0 FROM view_2_tab4_531
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col1 > 562.45 ) AS tab4_531
----
45 values hashing to 22e5fc87a754ca0d11529508963418ab

query I rowsort label-800-3
SELECT * FROM view_3_tab4_531
----
45 values hashing to 22e5fc87a754ca0d11529508963418ab

query I rowsort label-800-3
SELECT pk FROM tab4 WHERE col1 > 562.45
----
45 values hashing to 22e5fc87a754ca0d11529508963418ab

statement ok
DROP VIEW view_1_tab4_531

statement ok
DROP VIEW view_2_tab4_531

statement ok
DROP VIEW view_3_tab4_531

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab0_532 AS SELECT pk, col0 FROM tab0 WHERE col0 > 264

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

statement ok
CREATE VIEW view_3_tab0_532 AS SELECT pk FROM view_1_tab0_532

query II rowsort label-900-1
SELECT pk, col0 FROM tab0 WHERE col0 > 264
----
144 values hashing to 55fdbc54ec3e1b790a0ce5396bd243ad

query II rowsort label-900-2
SELECT pk, col0 FROM tab0 WHERE NOT (col0 > 264)
----
56 values hashing to 10812720636e7f43b66f23a2d66b499d

query II rowsort label-900-1
SELECT pk, col0 FROM view_1_tab0_532
----
144 values hashing to 55fdbc54ec3e1b790a0ce5396bd243ad

query II rowsort label-900-2
SELECT pk, col0 FROM view_2_tab0_532
----
56 values hashing to 10812720636e7f43b66f23a2d66b499d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col0 > 264 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col0 > 264)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_532 UNION ALL SELECT pk, col0 FROM view_2_tab0_532
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col0 > 264 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col0 > 264)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_532 UNION SELECT pk, col0 FROM view_2_tab0_532
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col0 > 264 ) AS tab0_532
----
72 values hashing to 2dd089fae396d072402e65199dd94bcd

query I rowsort label-900-3
SELECT * FROM view_3_tab0_532
----
72 values hashing to 2dd089fae396d072402e65199dd94bcd

query I rowsort label-900-3
SELECT pk FROM tab0 WHERE col0 > 264
----
72 values hashing to 2dd089fae396d072402e65199dd94bcd

statement ok
DROP VIEW view_1_tab0_532

statement ok
DROP VIEW view_2_tab0_532

statement ok
DROP VIEW view_3_tab0_532

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab1_532 AS SELECT pk, col0 FROM tab1 WHERE col0 > 264

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

statement ok
CREATE VIEW view_3_tab1_532 AS SELECT pk FROM view_1_tab1_532

query II rowsort label-900-1
SELECT pk, col0 FROM tab1 WHERE col0 > 264
----
144 values hashing to 55fdbc54ec3e1b790a0ce5396bd243ad

query II rowsort label-900-2
SELECT pk, col0 FROM tab1 WHERE NOT (col0 > 264)
----
56 values hashing to 10812720636e7f43b66f23a2d66b499d

query II rowsort label-900-1
SELECT pk, col0 FROM view_1_tab1_532
----
144 values hashing to 55fdbc54ec3e1b790a0ce5396bd243ad

query II rowsort label-900-2
SELECT pk, col0 FROM view_2_tab1_532
----
56 values hashing to 10812720636e7f43b66f23a2d66b499d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col0 > 264 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col0 > 264)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_532 UNION ALL SELECT pk, col0 FROM view_2_tab1_532
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col0 > 264 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col0 > 264)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_532 UNION SELECT pk, col0 FROM view_2_tab1_532
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col0 > 264 ) AS tab1_532
----
72 values hashing to 2dd089fae396d072402e65199dd94bcd

query I rowsort label-900-3
SELECT * FROM view_3_tab1_532
----
72 values hashing to 2dd089fae396d072402e65199dd94bcd

query I rowsort label-900-3
SELECT pk FROM tab1 WHERE col0 > 264
----
72 values hashing to 2dd089fae396d072402e65199dd94bcd

statement ok
DROP VIEW view_1_tab1_532

statement ok
DROP VIEW view_2_tab1_532

statement ok
DROP VIEW view_3_tab1_532

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab2_532 AS SELECT pk, col0 FROM tab2 WHERE col0 > 264

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

statement ok
CREATE VIEW view_3_tab2_532 AS SELECT pk FROM view_1_tab2_532

query II rowsort label-900-1
SELECT pk, col0 FROM tab2 WHERE col0 > 264
----
144 values hashing to 55fdbc54ec3e1b790a0ce5396bd243ad

query II rowsort label-900-2
SELECT pk, col0 FROM tab2 WHERE NOT (col0 > 264)
----
56 values hashing to 10812720636e7f43b66f23a2d66b499d

query II rowsort label-900-1
SELECT pk, col0 FROM view_1_tab2_532
----
144 values hashing to 55fdbc54ec3e1b790a0ce5396bd243ad

query II rowsort label-900-2
SELECT pk, col0 FROM view_2_tab2_532
----
56 values hashing to 10812720636e7f43b66f23a2d66b499d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col0 > 264 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col0 > 264)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_532 UNION ALL SELECT pk, col0 FROM view_2_tab2_532
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col0 > 264 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col0 > 264)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_532 UNION SELECT pk, col0 FROM view_2_tab2_532
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col0 > 264 ) AS tab2_532
----
72 values hashing to 2dd089fae396d072402e65199dd94bcd

query I rowsort label-900-3
SELECT * FROM view_3_tab2_532
----
72 values hashing to 2dd089fae396d072402e65199dd94bcd

query I rowsort label-900-3
SELECT pk FROM tab2 WHERE col0 > 264
----
72 values hashing to 2dd089fae396d072402e65199dd94bcd

statement ok
DROP VIEW view_1_tab2_532

statement ok
DROP VIEW view_2_tab2_532

statement ok
DROP VIEW view_3_tab2_532

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab3_532 AS SELECT pk, col0 FROM tab3 WHERE col0 > 264

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

statement ok
CREATE VIEW view_3_tab3_532 AS SELECT pk FROM view_1_tab3_532

query II rowsort label-900-1
SELECT pk, col0 FROM tab3 WHERE col0 > 264
----
144 values hashing to 55fdbc54ec3e1b790a0ce5396bd243ad

query II rowsort label-900-2
SELECT pk, col0 FROM tab3 WHERE NOT (col0 > 264)
----
56 values hashing to 10812720636e7f43b66f23a2d66b499d

query II rowsort label-900-1
SELECT pk, col0 FROM view_1_tab3_532
----
144 values hashing to 55fdbc54ec3e1b790a0ce5396bd243ad

query II rowsort label-900-2
SELECT pk, col0 FROM view_2_tab3_532
----
56 values hashing to 10812720636e7f43b66f23a2d66b499d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col0 > 264 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col0 > 264)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_532 UNION ALL SELECT pk, col0 FROM view_2_tab3_532
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col0 > 264 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col0 > 264)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_532 UNION SELECT pk, col0 FROM view_2_tab3_532
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col0 > 264 ) AS tab3_532
----
72 values hashing to 2dd089fae396d072402e65199dd94bcd

query I rowsort label-900-3
SELECT * FROM view_3_tab3_532
----
72 values hashing to 2dd089fae396d072402e65199dd94bcd

query I rowsort label-900-3
SELECT pk FROM tab3 WHERE col0 > 264
----
72 values hashing to 2dd089fae396d072402e65199dd94bcd

statement ok
DROP VIEW view_1_tab3_532

statement ok
DROP VIEW view_2_tab3_532

statement ok
DROP VIEW view_3_tab3_532

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab4_532 AS SELECT pk, col0 FROM tab4 WHERE col0 > 264

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

statement ok
CREATE VIEW view_3_tab4_532 AS SELECT pk FROM view_1_tab4_532

query II rowsort label-900-1
SELECT pk, col0 FROM tab4 WHERE col0 > 264
----
144 values hashing to 55fdbc54ec3e1b790a0ce5396bd243ad

query II rowsort label-900-2
SELECT pk, col0 FROM tab4 WHERE NOT (col0 > 264)
----
56 values hashing to 10812720636e7f43b66f23a2d66b499d

query II rowsort label-900-1
SELECT pk, col0 FROM view_1_tab4_532
----
144 values hashing to 55fdbc54ec3e1b790a0ce5396bd243ad

query II rowsort label-900-2
SELECT pk, col0 FROM view_2_tab4_532
----
56 values hashing to 10812720636e7f43b66f23a2d66b499d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col0 > 264 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col0 > 264)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_532 UNION ALL SELECT pk, col0 FROM view_2_tab4_532
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col0 > 264 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col0 > 264)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_532 UNION SELECT pk, col0 FROM view_2_tab4_532
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col0 > 264 ) AS tab4_532
----
72 values hashing to 2dd089fae396d072402e65199dd94bcd

query I rowsort label-900-3
SELECT * FROM view_3_tab4_532
----
72 values hashing to 2dd089fae396d072402e65199dd94bcd

query I rowsort label-900-3
SELECT pk FROM tab4 WHERE col0 > 264
----
72 values hashing to 2dd089fae396d072402e65199dd94bcd

statement ok
DROP VIEW view_1_tab4_532

statement ok
DROP VIEW view_2_tab4_532

statement ok
DROP VIEW view_3_tab4_532

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab0_533 AS SELECT pk, col0 FROM tab0 WHERE col3 < 528 OR col0 <= 427

statement ok
CREATE VIEW view_2_tab0_533 AS SELECT pk, col0 FROM tab0 WHERE NOT (col3 < 528 OR col0 <= 427)

statement ok
CREATE VIEW view_3_tab0_533 AS SELECT pk FROM view_1_tab0_533

query II rowsort label-1000-1
SELECT pk, col0 FROM tab0 WHERE col3 < 528 OR col0 <= 427
----
156 values hashing to 6fb07856bd81db343e7650076483eaf3

query II rowsort label-1000-2
SELECT pk, col0 FROM tab0 WHERE NOT (col3 < 528 OR col0 <= 427)
----
44 values hashing to 1f60af97964a5bd99056c64fcac1d55c

query II rowsort label-1000-1
SELECT pk, col0 FROM view_1_tab0_533
----
156 values hashing to 6fb07856bd81db343e7650076483eaf3

query II rowsort label-1000-2
SELECT pk, col0 FROM view_2_tab0_533
----
44 values hashing to 1f60af97964a5bd99056c64fcac1d55c

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 < 528 OR col0 <= 427 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col3 < 528 OR col0 <= 427)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_533 UNION ALL SELECT pk, col0 FROM view_2_tab0_533
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 < 528 OR col0 <= 427 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col3 < 528 OR col0 <= 427)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_533 UNION SELECT pk, col0 FROM view_2_tab0_533
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-1000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col3 < 528 OR col0 <= 427 ) AS tab0_533
----
78 values hashing to 7cd53392d25caeac90336da8d094a95e

query I rowsort label-1000-3
SELECT * FROM view_3_tab0_533
----
78 values hashing to 7cd53392d25caeac90336da8d094a95e

query I rowsort label-1000-3
SELECT pk FROM tab0 WHERE col3 < 528 OR col0 <= 427
----
78 values hashing to 7cd53392d25caeac90336da8d094a95e

statement ok
DROP VIEW view_1_tab0_533

statement ok
DROP VIEW view_2_tab0_533

statement ok
DROP VIEW view_3_tab0_533

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab1_533 AS SELECT pk, col0 FROM tab1 WHERE col3 < 528 OR col0 <= 427

statement ok
CREATE VIEW view_2_tab1_533 AS SELECT pk, col0 FROM tab1 WHERE NOT (col3 < 528 OR col0 <= 427)

statement ok
CREATE VIEW view_3_tab1_533 AS SELECT pk FROM view_1_tab1_533

query II rowsort label-1000-1
SELECT pk, col0 FROM tab1 WHERE col3 < 528 OR col0 <= 427
----
156 values hashing to 6fb07856bd81db343e7650076483eaf3

query II rowsort label-1000-2
SELECT pk, col0 FROM tab1 WHERE NOT (col3 < 528 OR col0 <= 427)
----
44 values hashing to 1f60af97964a5bd99056c64fcac1d55c

query II rowsort label-1000-1
SELECT pk, col0 FROM view_1_tab1_533
----
156 values hashing to 6fb07856bd81db343e7650076483eaf3

query II rowsort label-1000-2
SELECT pk, col0 FROM view_2_tab1_533
----
44 values hashing to 1f60af97964a5bd99056c64fcac1d55c

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 < 528 OR col0 <= 427 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col3 < 528 OR col0 <= 427)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_533 UNION ALL SELECT pk, col0 FROM view_2_tab1_533
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 < 528 OR col0 <= 427 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col3 < 528 OR col0 <= 427)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_533 UNION SELECT pk, col0 FROM view_2_tab1_533
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-1000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col3 < 528 OR col0 <= 427 ) AS tab1_533
----
78 values hashing to 7cd53392d25caeac90336da8d094a95e

query I rowsort label-1000-3
SELECT * FROM view_3_tab1_533
----
78 values hashing to 7cd53392d25caeac90336da8d094a95e

query I rowsort label-1000-3
SELECT pk FROM tab1 WHERE col3 < 528 OR col0 <= 427
----
78 values hashing to 7cd53392d25caeac90336da8d094a95e

statement ok
DROP VIEW view_1_tab1_533

statement ok
DROP VIEW view_2_tab1_533

statement ok
DROP VIEW view_3_tab1_533

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab2_533 AS SELECT pk, col0 FROM tab2 WHERE col3 < 528 OR col0 <= 427

statement ok
CREATE VIEW view_2_tab2_533 AS SELECT pk, col0 FROM tab2 WHERE NOT (col3 < 528 OR col0 <= 427)

statement ok
CREATE VIEW view_3_tab2_533 AS SELECT pk FROM view_1_tab2_533

query II rowsort label-1000-1
SELECT pk, col0 FROM tab2 WHERE col3 < 528 OR col0 <= 427
----
156 values hashing to 6fb07856bd81db343e7650076483eaf3

query II rowsort label-1000-2
SELECT pk, col0 FROM tab2 WHERE NOT (col3 < 528 OR col0 <= 427)
----
44 values hashing to 1f60af97964a5bd99056c64fcac1d55c

query II rowsort label-1000-1
SELECT pk, col0 FROM view_1_tab2_533
----
156 values hashing to 6fb07856bd81db343e7650076483eaf3

query II rowsort label-1000-2
SELECT pk, col0 FROM view_2_tab2_533
----
44 values hashing to 1f60af97964a5bd99056c64fcac1d55c

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 < 528 OR col0 <= 427 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col3 < 528 OR col0 <= 427)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_533 UNION ALL SELECT pk, col0 FROM view_2_tab2_533
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 < 528 OR col0 <= 427 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col3 < 528 OR col0 <= 427)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_533 UNION SELECT pk, col0 FROM view_2_tab2_533
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-1000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col3 < 528 OR col0 <= 427 ) AS tab2_533
----
78 values hashing to 7cd53392d25caeac90336da8d094a95e

query I rowsort label-1000-3
SELECT * FROM view_3_tab2_533
----
78 values hashing to 7cd53392d25caeac90336da8d094a95e

query I rowsort label-1000-3
SELECT pk FROM tab2 WHERE col3 < 528 OR col0 <= 427
----
78 values hashing to 7cd53392d25caeac90336da8d094a95e

statement ok
DROP VIEW view_1_tab2_533

statement ok
DROP VIEW view_2_tab2_533

statement ok
DROP VIEW view_3_tab2_533

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab3_533 AS SELECT pk, col0 FROM tab3 WHERE col3 < 528 OR col0 <= 427

statement ok
CREATE VIEW view_2_tab3_533 AS SELECT pk, col0 FROM tab3 WHERE NOT (col3 < 528 OR col0 <= 427)

statement ok
CREATE VIEW view_3_tab3_533 AS SELECT pk FROM view_1_tab3_533

query II rowsort label-1000-1
SELECT pk, col0 FROM tab3 WHERE col3 < 528 OR col0 <= 427
----
156 values hashing to 6fb07856bd81db343e7650076483eaf3

query II rowsort label-1000-2
SELECT pk, col0 FROM tab3 WHERE NOT (col3 < 528 OR col0 <= 427)
----
44 values hashing to 1f60af97964a5bd99056c64fcac1d55c

query II rowsort label-1000-1
SELECT pk, col0 FROM view_1_tab3_533
----
156 values hashing to 6fb07856bd81db343e7650076483eaf3

query II rowsort label-1000-2
SELECT pk, col0 FROM view_2_tab3_533
----
44 values hashing to 1f60af97964a5bd99056c64fcac1d55c

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 < 528 OR col0 <= 427 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col3 < 528 OR col0 <= 427)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_533 UNION ALL SELECT pk, col0 FROM view_2_tab3_533
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 < 528 OR col0 <= 427 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col3 < 528 OR col0 <= 427)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_533 UNION SELECT pk, col0 FROM view_2_tab3_533
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-1000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col3 < 528 OR col0 <= 427 ) AS tab3_533
----
78 values hashing to 7cd53392d25caeac90336da8d094a95e

query I rowsort label-1000-3
SELECT * FROM view_3_tab3_533
----
78 values hashing to 7cd53392d25caeac90336da8d094a95e

query I rowsort label-1000-3
SELECT pk FROM tab3 WHERE col3 < 528 OR col0 <= 427
----
78 values hashing to 7cd53392d25caeac90336da8d094a95e

statement ok
DROP VIEW view_1_tab3_533

statement ok
DROP VIEW view_2_tab3_533

statement ok
DROP VIEW view_3_tab3_533

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab4_533 AS SELECT pk, col0 FROM tab4 WHERE col3 < 528 OR col0 <= 427

statement ok
CREATE VIEW view_2_tab4_533 AS SELECT pk, col0 FROM tab4 WHERE NOT (col3 < 528 OR col0 <= 427)

statement ok
CREATE VIEW view_3_tab4_533 AS SELECT pk FROM view_1_tab4_533

query II rowsort label-1000-1
SELECT pk, col0 FROM tab4 WHERE col3 < 528 OR col0 <= 427
----
156 values hashing to 6fb07856bd81db343e7650076483eaf3

query II rowsort label-1000-2
SELECT pk, col0 FROM tab4 WHERE NOT (col3 < 528 OR col0 <= 427)
----
44 values hashing to 1f60af97964a5bd99056c64fcac1d55c

query II rowsort label-1000-1
SELECT pk, col0 FROM view_1_tab4_533
----
156 values hashing to 6fb07856bd81db343e7650076483eaf3

query II rowsort label-1000-2
SELECT pk, col0 FROM view_2_tab4_533
----
44 values hashing to 1f60af97964a5bd99056c64fcac1d55c

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 < 528 OR col0 <= 427 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col3 < 528 OR col0 <= 427)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_533 UNION ALL SELECT pk, col0 FROM view_2_tab4_533
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 < 528 OR col0 <= 427 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col3 < 528 OR col0 <= 427)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_533 UNION SELECT pk, col0 FROM view_2_tab4_533
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-1000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col3 < 528 OR col0 <= 427 ) AS tab4_533
----
78 values hashing to 7cd53392d25caeac90336da8d094a95e

query I rowsort label-1000-3
SELECT * FROM view_3_tab4_533
----
78 values hashing to 7cd53392d25caeac90336da8d094a95e

query I rowsort label-1000-3
SELECT pk FROM tab4 WHERE col3 < 528 OR col0 <= 427
----
78 values hashing to 7cd53392d25caeac90336da8d094a95e

statement ok
DROP VIEW view_1_tab4_533

statement ok
DROP VIEW view_2_tab4_533

statement ok
DROP VIEW view_3_tab4_533

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab0_534 AS SELECT pk, col0 FROM tab0 WHERE col0 < 152 OR (((col1 >= 904.26) AND ((col0 > 91))) OR col1 > 173.50 OR col3 < 641 AND col0 > 612 OR ((((col1 <= 635.91) OR col1 <= 876.74 OR col1 > 329.50 AND ((((((col3 < 593) OR ((col3 IN (447,628) OR (col3 = 133 OR col1 <= 679.69 OR ((col4 IN (SELECT col1 FROM tab0 WHERE col3 IS NULL)) OR col4 >= 155.19 OR col3 > 34)) AND col0 > 346 OR ((col0 < 288 AND ((col3 IN (880,830,371,244)) AND col3 > 773) OR col1 > 352.14 AND (col1 < 109.34) AND col0 > 553))) AND col3 IN (777,84,66)) AND col0 < 886 AND col1 < 871.84 AND col0 >= 29 AND col0 <= 932 AND ((((((col4 >= 321.72 AND col3 > 716)) AND col1 <= 1.70 AND col0 <= 248 OR ((col1 > 677.52)) AND col1 > 93.31 AND col0 <= 684 OR col1 >= 327.14 AND col1 IN (488.87,83.41,279.47) OR col0 >= 85 AND col0 >= 76) AND (col3 IS NULL) OR col3 < 699) AND (col0 < 314) AND col0 IN (SELECT col3 FROM tab0 WHERE ((col1 < 139.91 OR (col4 < 20.86) AND ((col3 <= 26)) AND ((((col0 < 834 OR col3 IN (478) OR col1 <= 991.87 AND col0 < 722 OR ((col3 IS NULL)) AND col3 >= 327 AND col4 > 563.50 AND col0 BETWEEN 596 AND 571 OR (col4 < 141.5 OR col1 BETWEEN 97.83 AND 357.92 AND col3 < 636 OR (col3 < 637 OR col1 > 365.73) OR (col4 IS NULL) AND ((col1 < 808.22 OR col3 = 254 AND col0 IS NULL OR col3 <= 834 OR col4 > 742.2 OR col3 > 660 OR col0 >= 301 AND (((col0 <= 733))) AND (col4 > 994.93 AND col0 > 237 OR col1 >= 855.36)))) AND col0 > 776 AND col0 > 3)))) AND col0 <= 517 OR (col0 = 416) OR col3 < 360 OR (((col0 IS NULL) AND col0 > 697))) OR col3 IN (645,443,242)) AND col0 <= 611) OR col0 IS NULL AND (col4 > 271.17) OR (col1 IN (562.29)) AND col3 <= 27)) OR (col0 > 793) OR col4 < 432.13))) AND col1 > 519.74 OR (col0 <= 466 OR col3 > 481 OR (col0 >= 889)))) OR ((col3 <= 639))))) OR ((((col1 > 375.37) AND col3 IS NULL OR col3 < 156))) AND col3 IS NULL AND ((col3 > 225))) OR ((col1 > 310.17)) OR col0 IS NULL AND col3 > 143 AND col3 < 489

statement ok
CREATE VIEW view_2_tab0_534 AS SELECT pk, col0 FROM tab0 WHERE NOT (col0 < 152 OR (((col1 >= 904.26) AND ((col0 > 91))) OR col1 > 173.50 OR col3 < 641 AND col0 > 612 OR ((((col1 <= 635.91) OR col1 <= 876.74 OR col1 > 329.50 AND ((((((col3 < 593) OR ((col3 IN (447,628) OR (col3 = 133 OR col1 <= 679.69 OR ((col4 IN (SELECT col1 FROM tab0 WHERE col3 IS NULL)) OR col4 >= 155.19 OR col3 > 34)) AND col0 > 346 OR ((col0 < 288 AND ((col3 IN (880,830,371,244)) AND col3 > 773) OR col1 > 352.14 AND (col1 < 109.34) AND col0 > 553))) AND col3 IN (777,84,66)) AND col0 < 886 AND col1 < 871.84 AND col0 >= 29 AND col0 <= 932 AND ((((((col4 >= 321.72 AND col3 > 716)) AND col1 <= 1.70 AND col0 <= 248 OR ((col1 > 677.52)) AND col1 > 93.31 AND col0 <= 684 OR col1 >= 327.14 AND col1 IN (488.87,83.41,279.47) OR col0 >= 85 AND col0 >= 76) AND (col3 IS NULL) OR col3 < 699) AND (col0 < 314) AND col0 IN (SELECT col3 FROM tab0 WHERE ((col1 < 139.91 OR (col4 < 20.86) AND ((col3 <= 26)) AND ((((col0 < 834 OR col3 IN (478) OR col1 <= 991.87 AND col0 < 722 OR ((col3 IS NULL)) AND col3 >= 327 AND col4 > 563.50 AND col0 BETWEEN 596 AND 571 OR (col4 < 141.5 OR col1 BETWEEN 97.83 AND 357.92 AND col3 < 636 OR (col3 < 637 OR col1 > 365.73) OR (col4 IS NULL) AND ((col1 < 808.22 OR col3 = 254 AND col0 IS NULL OR col3 <= 834 OR col4 > 742.2 OR col3 > 660 OR col0 >= 301 AND (((col0 <= 733))) AND (col4 > 994.93 AND col0 > 237 OR col1 >= 855.36)))) AND col0 > 776 AND col0 > 3)))) AND col0 <= 517 OR (col0 = 416) OR col3 < 360 OR (((col0 IS NULL) AND col0 > 697))) OR col3 IN (645,443,242)) AND col0 <= 611) OR col0 IS NULL AND (col4 > 271.17) OR (col1 IN (562.29)) AND col3 <= 27)) OR (col0 > 793) OR col4 < 432.13))) AND col1 > 519.74 OR (col0 <= 466 OR col3 > 481 OR (col0 >= 889)))) OR ((col3 <= 639))))) OR ((((col1 > 375.37) AND col3 IS NULL OR col3 < 156))) AND col3 IS NULL AND ((col3 > 225))) OR ((col1 > 310.17)) OR col0 IS NULL AND col3 > 143 AND col3 < 489)

statement ok
CREATE VIEW view_3_tab0_534 AS SELECT pk FROM view_1_tab0_534

query II rowsort label-1100-1
SELECT pk, col0 FROM tab0 WHERE col0 < 152 OR (((col1 >= 904.26) AND ((col0 > 91))) OR col1 > 173.50 OR col3 < 641 AND col0 > 612 OR ((((col1 <= 635.91) OR col1 <= 876.74 OR col1 > 329.50 AND ((((((col3 < 593) OR ((col3 IN (447,628) OR (col3 = 133 OR col1 <= 679.69 OR ((col4 IN (SELECT col1 FROM tab0 WHERE col3 IS NULL)) OR col4 >= 155.19 OR col3 > 34)) AND col0 > 346 OR ((col0 < 288 AND ((col3 IN (880,830,371,244)) AND col3 > 773) OR col1 > 352.14 AND (col1 < 109.34) AND col0 > 553))) AND col3 IN (777,84,66)) AND col0 < 886 AND col1 < 871.84 AND col0 >= 29 AND col0 <= 932 AND ((((((col4 >= 321.72 AND col3 > 716)) AND col1 <= 1.70 AND col0 <= 248 OR ((col1 > 677.52)) AND col1 > 93.31 AND col0 <= 684 OR col1 >= 327.14 AND col1 IN (488.87,83.41,279.47) OR col0 >= 85 AND col0 >= 76) AND (col3 IS NULL) OR col3 < 699) AND (col0 < 314) AND col0 IN (SELECT col3 FROM tab0 WHERE ((col1 < 139.91 OR (col4 < 20.86) AND ((col3 <= 26)) AND ((((col0 < 834 OR col3 IN (478) OR col1 <= 991.87 AND col0 < 722 OR ((col3 IS NULL)) AND col3 >= 327 AND col4 > 563.50 AND col0 BETWEEN 596 AND 571 OR (col4 < 141.5 OR col1 BETWEEN 97.83 AND 357.92 AND col3 < 636 OR (col3 < 637 OR col1 > 365.73) OR (col4 IS NULL) AND ((col1 < 808.22 OR col3 = 254 AND col0 IS NULL OR col3 <= 834 OR col4 > 742.2 OR col3 > 660 OR col0 >= 301 AND (((col0 <= 733))) AND (col4 > 994.93 AND col0 > 237 OR col1 >= 855.36)))) AND col0 > 776 AND col0 > 3)))) AND col0 <= 517 OR (col0 = 416) OR col3 < 360 OR (((col0 IS NULL) AND col0 > 697))) OR col3 IN (645,443,242)) AND col0 <= 611) OR col0 IS NULL AND (col4 > 271.17) OR (col1 IN (562.29)) AND col3 <= 27)) OR (col0 > 793) OR col4 < 432.13))) AND col1 > 519.74 OR (col0 <= 466 OR col3 > 481 OR (col0 >= 889)))) OR ((col3 <= 639))))) OR ((((col1 > 375.37) AND col3 IS NULL OR col3 < 156))) AND col3 IS NULL AND ((col3 > 225))) OR ((col1 > 310.17)) OR col0 IS NULL AND col3 > 143 AND col3 < 489
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-1100-2
SELECT pk, col0 FROM tab0 WHERE NOT (col0 < 152 OR (((col1 >= 904.26) AND ((col0 > 91))) OR col1 > 173.50 OR col3 < 641 AND col0 > 612 OR ((((col1 <= 635.91) OR col1 <= 876.74 OR col1 > 329.50 AND ((((((col3 < 593) OR ((col3 IN (447,628) OR (col3 = 133 OR col1 <= 679.69 OR ((col4 IN (SELECT col1 FROM tab0 WHERE col3 IS NULL)) OR col4 >= 155.19 OR col3 > 34)) AND col0 > 346 OR ((col0 < 288 AND ((col3 IN (880,830,371,244)) AND col3 > 773) OR col1 > 352.14 AND (col1 < 109.34) AND col0 > 553))) AND col3 IN (777,84,66)) AND col0 < 886 AND col1 < 871.84 AND col0 >= 29 AND col0 <= 932 AND ((((((col4 >= 321.72 AND col3 > 716)) AND col1 <= 1.70 AND col0 <= 248 OR ((col1 > 677.52)) AND col1 > 93.31 AND col0 <= 684 OR col1 >= 327.14 AND col1 IN (488.87,83.41,279.47) OR col0 >= 85 AND col0 >= 76) AND (col3 IS NULL) OR col3 < 699) AND (col0 < 314) AND col0 IN (SELECT col3 FROM tab0 WHERE ((col1 < 139.91 OR (col4 < 20.86) AND ((col3 <= 26)) AND ((((col0 < 834 OR col3 IN (478) OR col1 <= 991.87 AND col0 < 722 OR ((col3 IS NULL)) AND col3 >= 327 AND col4 > 563.50 AND col0 BETWEEN 596 AND 571 OR (col4 < 141.5 OR col1 BETWEEN 97.83 AND 357.92 AND col3 < 636 OR (col3 < 637 OR col1 > 365.73) OR (col4 IS NULL) AND ((col1 < 808.22 OR col3 = 254 AND col0 IS NULL OR col3 <= 834 OR col4 > 742.2 OR col3 > 660 OR col0 >= 301 AND (((col0 <= 733))) AND (col4 > 994.93 AND col0 > 237 OR col1 >= 855.36)))) AND col0 > 776 AND col0 > 3)))) AND col0 <= 517 OR (col0 = 416) OR col3 < 360 OR (((col0 IS NULL) AND col0 > 697))) OR col3 IN (645,443,242)) AND col0 <= 611) OR col0 IS NULL AND (col4 > 271.17) OR (col1 IN (562.29)) AND col3 <= 27)) OR (col0 > 793) OR col4 < 432.13))) AND col1 > 519.74 OR (col0 <= 466 OR col3 > 481 OR (col0 >= 889)))) OR ((col3 <= 639))))) OR ((((col1 > 375.37) AND col3 IS NULL OR col3 < 156))) AND col3 IS NULL AND ((col3 > 225))) OR ((col1 > 310.17)) OR col0 IS NULL AND col3 > 143 AND col3 < 489)
----

query II rowsort label-1100-1
SELECT pk, col0 FROM view_1_tab0_534
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-1100-2
SELECT pk, col0 FROM view_2_tab0_534
----

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col0 < 152 OR (((col1 >= 904.26) AND ((col0 > 91))) OR col1 > 173.50 OR col3 < 641 AND col0 > 612 OR ((((col1 <= 635.91) OR col1 <= 876.74 OR col1 > 329.50 AND ((((((col3 < 593) OR ((col3 IN (447,628) OR (col3 = 133 OR col1 <= 679.69 OR ((col4 IN (SELECT col1 FROM tab0 WHERE col3 IS NULL)) OR col4 >= 155.19 OR col3 > 34)) AND col0 > 346 OR ((col0 < 288 AND ((col3 IN (880,830,371,244)) AND col3 > 773) OR col1 > 352.14 AND (col1 < 109.34) AND col0 > 553))) AND col3 IN (777,84,66)) AND col0 < 886 AND col1 < 871.84 AND col0 >= 29 AND col0 <= 932 AND ((((((col4 >= 321.72 AND col3 > 716)) AND col1 <= 1.70 AND col0 <= 248 OR ((col1 > 677.52)) AND col1 > 93.31 AND col0 <= 684 OR col1 >= 327.14 AND col1 IN (488.87,83.41,279.47) OR col0 >= 85 AND col0 >= 76) AND (col3 IS NULL) OR col3 < 699) AND (col0 < 314) AND col0 IN (SELECT col3 FROM tab0 WHERE ((col1 < 139.91 OR (col4 < 20.86) AND ((col3 <= 26)) AND ((((col0 < 834 OR col3 IN (478) OR col1 <= 991.87 AND col0 < 722 OR ((col3 IS NULL)) AND col3 >= 327 AND col4 > 563.50 AND col0 BETWEEN 596 AND 571 OR (col4 < 141.5 OR col1 BETWEEN 97.83 AND 357.92 AND col3 < 636 OR (col3 < 637 OR col1 > 365.73) OR (col4 IS NULL) AND ((col1 < 808.22 OR col3 = 254 AND col0 IS NULL OR col3 <= 834 OR col4 > 742.2 OR col3 > 660 OR col0 >= 301 AND (((col0 <= 733))) AND (col4 > 994.93 AND col0 > 237 OR col1 >= 855.36)))) AND col0 > 776 AND col0 > 3)))) AND col0 <= 517 OR (col0 = 416) OR col3 < 360 OR (((col0 IS NULL) AND col0 > 697))) OR col3 IN (645,443,242)) AND col0 <= 611) OR col0 IS NULL AND (col4 > 271.17) OR (col1 IN (562.29)) AND col3 <= 27)) OR (col0 > 793) OR col4 < 432.13))) AND col1 > 519.74 OR (col0 <= 466 OR col3 > 481 OR (col0 >= 889)))) OR ((col3 <= 639))))) OR ((((col1 > 375.37) AND col3 IS NULL OR col3 < 156))) AND col3 IS NULL AND ((col3 > 225))) OR ((col1 > 310.17)) OR col0 IS NULL AND col3 > 143 AND col3 < 489 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col0 < 152 OR (((col1 >= 904.26) AND ((col0 > 91))) OR col1 > 173.50 OR col3 < 641 AND col0 > 612 OR ((((col1 <= 635.91) OR col1 <= 876.74 OR col1 > 329.50 AND ((((((col3 < 593) OR ((col3 IN (447,628) OR (col3 = 133 OR col1 <= 679.69 OR ((col4 IN (SELECT col1 FROM tab0 WHERE col3 IS NULL)) OR col4 >= 155.19 OR col3 > 34)) AND col0 > 346 OR ((col0 < 288 AND ((col3 IN (880,830,371,244)) AND col3 > 773) OR col1 > 352.14 AND (col1 < 109.34) AND col0 > 553))) AND col3 IN (777,84,66)) AND col0 < 886 AND col1 < 871.84 AND col0 >= 29 AND col0 <= 932 AND ((((((col4 >= 321.72 AND col3 > 716)) AND col1 <= 1.70 AND col0 <= 248 OR ((col1 > 677.52)) AND col1 > 93.31 AND col0 <= 684 OR col1 >= 327.14 AND col1 IN (488.87,83.41,279.47) OR col0 >= 85 AND col0 >= 76) AND (col3 IS NULL) OR col3 < 699) AND (col0 < 314) AND col0 IN (SELECT col3 FROM tab0 WHERE ((col1 < 139.91 OR (col4 < 20.86) AND ((col3 <= 26)) AND ((((col0 < 834 OR col3 IN (478) OR col1 <= 991.87 AND col0 < 722 OR ((col3 IS NULL)) AND col3 >= 327 AND col4 > 563.50 AND col0 BETWEEN 596 AND 571 OR (col4 < 141.5 OR col1 BETWEEN 97.83 AND 357.92 AND col3 < 636 OR (col3 < 637 OR col1 > 365.73) OR (col4 IS NULL) AND ((col1 < 808.22 OR col3 = 254 AND col0 IS NULL OR col3 <= 834 OR col4 > 742.2 OR col3 > 660 OR col0 >= 301 AND (((col0 <= 733))) AND (col4 > 994.93 AND col0 > 237 OR col1 >= 855.36)))) AND col0 > 776 AND col0 > 3)))) AND col0 <= 517 OR (col0 = 416) OR col3 < 360 OR (((col0 IS NULL) AND col0 > 697))) OR col3 IN (645,443,242)) AND col0 <= 611) OR col0 IS NULL AND (col4 > 271.17) OR (col1 IN (562.29)) AND col3 <= 27)) OR (col0 > 793) OR col4 < 432.13))) AND col1 > 519.74 OR (col0 <= 466 OR col3 > 481 OR (col0 >= 889)))) OR ((col3 <= 639))))) OR ((((col1 > 375.37) AND col3 IS NULL OR col3 < 156))) AND col3 IS NULL AND ((col3 > 225))) OR ((col1 > 310.17)) OR col0 IS NULL AND col3 > 143 AND col3 < 489)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_534 UNION ALL SELECT pk, col0 FROM view_2_tab0_534
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col0 < 152 OR (((col1 >= 904.26) AND ((col0 > 91))) OR col1 > 173.50 OR col3 < 641 AND col0 > 612 OR ((((col1 <= 635.91) OR col1 <= 876.74 OR col1 > 329.50 AND ((((((col3 < 593) OR ((col3 IN (447,628) OR (col3 = 133 OR col1 <= 679.69 OR ((col4 IN (SELECT col1 FROM tab0 WHERE col3 IS NULL)) OR col4 >= 155.19 OR col3 > 34)) AND col0 > 346 OR ((col0 < 288 AND ((col3 IN (880,830,371,244)) AND col3 > 773) OR col1 > 352.14 AND (col1 < 109.34) AND col0 > 553))) AND col3 IN (777,84,66)) AND col0 < 886 AND col1 < 871.84 AND col0 >= 29 AND col0 <= 932 AND ((((((col4 >= 321.72 AND col3 > 716)) AND col1 <= 1.70 AND col0 <= 248 OR ((col1 > 677.52)) AND col1 > 93.31 AND col0 <= 684 OR col1 >= 327.14 AND col1 IN (488.87,83.41,279.47) OR col0 >= 85 AND col0 >= 76) AND (col3 IS NULL) OR col3 < 699) AND (col0 < 314) AND col0 IN (SELECT col3 FROM tab0 WHERE ((col1 < 139.91 OR (col4 < 20.86) AND ((col3 <= 26)) AND ((((col0 < 834 OR col3 IN (478) OR col1 <= 991.87 AND col0 < 722 OR ((col3 IS NULL)) AND col3 >= 327 AND col4 > 563.50 AND col0 BETWEEN 596 AND 571 OR (col4 < 141.5 OR col1 BETWEEN 97.83 AND 357.92 AND col3 < 636 OR (col3 < 637 OR col1 > 365.73) OR (col4 IS NULL) AND ((col1 < 808.22 OR col3 = 254 AND col0 IS NULL OR col3 <= 834 OR col4 > 742.2 OR col3 > 660 OR col0 >= 301 AND (((col0 <= 733))) AND (col4 > 994.93 AND col0 > 237 OR col1 >= 855.36)))) AND col0 > 776 AND col0 > 3)))) AND col0 <= 517 OR (col0 = 416) OR col3 < 360 OR (((col0 IS NULL) AND col0 > 697))) OR col3 IN (645,443,242)) AND col0 <= 611) OR col0 IS NULL AND (col4 > 271.17) OR (col1 IN (562.29)) AND col3 <= 27)) OR (col0 > 793) OR col4 < 432.13))) AND col1 > 519.74 OR (col0 <= 466 OR col3 > 481 OR (col0 >= 889)))) OR ((col3 <= 639))))) OR ((((col1 > 375.37) AND col3 IS NULL OR col3 < 156))) AND col3 IS NULL AND ((col3 > 225))) OR ((col1 > 310.17)) OR col0 IS NULL AND col3 > 143 AND col3 < 489 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col0 < 152 OR (((col1 >= 904.26) AND ((col0 > 91))) OR col1 > 173.50 OR col3 < 641 AND col0 > 612 OR ((((col1 <= 635.91) OR col1 <= 876.74 OR col1 > 329.50 AND ((((((col3 < 593) OR ((col3 IN (447,628) OR (col3 = 133 OR col1 <= 679.69 OR ((col4 IN (SELECT col1 FROM tab0 WHERE col3 IS NULL)) OR col4 >= 155.19 OR col3 > 34)) AND col0 > 346 OR ((col0 < 288 AND ((col3 IN (880,830,371,244)) AND col3 > 773) OR col1 > 352.14 AND (col1 < 109.34) AND col0 > 553))) AND col3 IN (777,84,66)) AND col0 < 886 AND col1 < 871.84 AND col0 >= 29 AND col0 <= 932 AND ((((((col4 >= 321.72 AND col3 > 716)) AND col1 <= 1.70 AND col0 <= 248 OR ((col1 > 677.52)) AND col1 > 93.31 AND col0 <= 684 OR col1 >= 327.14 AND col1 IN (488.87,83.41,279.47) OR col0 >= 85 AND col0 >= 76) AND (col3 IS NULL) OR col3 < 699) AND (col0 < 314) AND col0 IN (SELECT col3 FROM tab0 WHERE ((col1 < 139.91 OR (col4 < 20.86) AND ((col3 <= 26)) AND ((((col0 < 834 OR col3 IN (478) OR col1 <= 991.87 AND col0 < 722 OR ((col3 IS NULL)) AND col3 >= 327 AND col4 > 563.50 AND col0 BETWEEN 596 AND 571 OR (col4 < 141.5 OR col1 BETWEEN 97.83 AND 357.92 AND col3 < 636 OR (col3 < 637 OR col1 > 365.73) OR (col4 IS NULL) AND ((col1 < 808.22 OR col3 = 254 AND col0 IS NULL OR col3 <= 834 OR col4 > 742.2 OR col3 > 660 OR col0 >= 301 AND (((col0 <= 733))) AND (col4 > 994.93 AND col0 > 237 OR col1 >= 855.36)))) AND col0 > 776 AND col0 > 3)))) AND col0 <= 517 OR (col0 = 416) OR col3 < 360 OR (((col0 IS NULL) AND col0 > 697))) OR col3 IN (645,443,242)) AND col0 <= 611) OR col0 IS NULL AND (col4 > 271.17) OR (col1 IN (562.29)) AND col3 <= 27)) OR (col0 > 793) OR col4 < 432.13))) AND col1 > 519.74 OR (col0 <= 466 OR col3 > 481 OR (col0 >= 889)))) OR ((col3 <= 639))))) OR ((((col1 > 375.37) AND col3 IS NULL OR col3 < 156))) AND col3 IS NULL AND ((col3 > 225))) OR ((col1 > 310.17)) OR col0 IS NULL AND col3 > 143 AND col3 < 489)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_534 UNION SELECT pk, col0 FROM view_2_tab0_534
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-1100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col0 < 152 OR (((col1 >= 904.26) AND ((col0 > 91))) OR col1 > 173.50 OR col3 < 641 AND col0 > 612 OR ((((col1 <= 635.91) OR col1 <= 876.74 OR col1 > 329.50 AND ((((((col3 < 593) OR ((col3 IN (447,628) OR (col3 = 133 OR col1 <= 679.69 OR ((col4 IN (SELECT col1 FROM tab0 WHERE col3 IS NULL)) OR col4 >= 155.19 OR col3 > 34)) AND col0 > 346 OR ((col0 < 288 AND ((col3 IN (880,830,371,244)) AND col3 > 773) OR col1 > 352.14 AND (col1 < 109.34) AND col0 > 553))) AND col3 IN (777,84,66)) AND col0 < 886 AND col1 < 871.84 AND col0 >= 29 AND col0 <= 932 AND ((((((col4 >= 321.72 AND col3 > 716)) AND col1 <= 1.70 AND col0 <= 248 OR ((col1 > 677.52)) AND col1 > 93.31 AND col0 <= 684 OR col1 >= 327.14 AND col1 IN (488.87,83.41,279.47) OR col0 >= 85 AND col0 >= 76) AND (col3 IS NULL) OR col3 < 699) AND (col0 < 314) AND col0 IN (SELECT col3 FROM tab0 WHERE ((col1 < 139.91 OR (col4 < 20.86) AND ((col3 <= 26)) AND ((((col0 < 834 OR col3 IN (478) OR col1 <= 991.87 AND col0 < 722 OR ((col3 IS NULL)) AND col3 >= 327 AND col4 > 563.50 AND col0 BETWEEN 596 AND 571 OR (col4 < 141.5 OR col1 BETWEEN 97.83 AND 357.92 AND col3 < 636 OR (col3 < 637 OR col1 > 365.73) OR (col4 IS NULL) AND ((col1 < 808.22 OR col3 = 254 AND col0 IS NULL OR col3 <= 834 OR col4 > 742.2 OR col3 > 660 OR col0 >= 301 AND (((col0 <= 733))) AND (col4 > 994.93 AND col0 > 237 OR col1 >= 855.36)))) AND col0 > 776 AND col0 > 3)))) AND col0 <= 517 OR (col0 = 416) OR col3 < 360 OR (((col0 IS NULL) AND col0 > 697))) OR col3 IN (645,443,242)) AND col0 <= 611) OR col0 IS NULL AND (col4 > 271.17) OR (col1 IN (562.29)) AND col3 <= 27)) OR (col0 > 793) OR col4 < 432.13))) AND col1 > 519.74 OR (col0 <= 466 OR col3 > 481 OR (col0 >= 889)))) OR ((col3 <= 639))))) OR ((((col1 > 375.37) AND col3 IS NULL OR col3 < 156))) AND col3 IS NULL AND ((col3 > 225))) OR ((col1 > 310.17)) OR col0 IS NULL AND col3 > 143 AND col3 < 489 ) AS tab0_534
----
100 values hashing to d7fd31c3916c207fd3117332326c3f37

query I rowsort label-1100-3
SELECT * FROM view_3_tab0_534
----
100 values hashing to d7fd31c3916c207fd3117332326c3f37

query I rowsort label-1100-3
SELECT pk FROM tab0 WHERE col0 < 152 OR (((col1 >= 904.26) AND ((col0 > 91))) OR col1 > 173.50 OR col3 < 641 AND col0 > 612 OR ((((col1 <= 635.91) OR col1 <= 876.74 OR col1 > 329.50 AND ((((((col3 < 593) OR ((col3 IN (447,628) OR (col3 = 133 OR col1 <= 679.69 OR ((col4 IN (SELECT col1 FROM tab0 WHERE col3 IS NULL)) OR col4 >= 155.19 OR col3 > 34)) AND col0 > 346 OR ((col0 < 288 AND ((col3 IN (880,830,371,244)) AND col3 > 773) OR col1 > 352.14 AND (col1 < 109.34) AND col0 > 553))) AND col3 IN (777,84,66)) AND col0 < 886 AND col1 < 871.84 AND col0 >= 29 AND col0 <= 932 AND ((((((col4 >= 321.72 AND col3 > 716)) AND col1 <= 1.70 AND col0 <= 248 OR ((col1 > 677.52)) AND col1 > 93.31 AND col0 <= 684 OR col1 >= 327.14 AND col1 IN (488.87,83.41,279.47) OR col0 >= 85 AND col0 >= 76) AND (col3 IS NULL) OR col3 < 699) AND (col0 < 314) AND col0 IN (SELECT col3 FROM tab0 WHERE ((col1 < 139.91 OR (col4 < 20.86) AND ((col3 <= 26)) AND ((((col0 < 834 OR col3 IN (478) OR col1 <= 991.87 AND col0 < 722 OR ((col3 IS NULL)) AND col3 >= 327 AND col4 > 563.50 AND col0 BETWEEN 596 AND 571 OR (col4 < 141.5 OR col1 BETWEEN 97.83 AND 357.92 AND col3 < 636 OR (col3 < 637 OR col1 > 365.73) OR (col4 IS NULL) AND ((col1 < 808.22 OR col3 = 254 AND col0 IS NULL OR col3 <= 834 OR col4 > 742.2 OR col3 > 660 OR col0 >= 301 AND (((col0 <= 733))) AND (col4 > 994.93 AND col0 > 237 OR col1 >= 855.36)))) AND col0 > 776 AND col0 > 3)))) AND col0 <= 517 OR (col0 = 416) OR col3 < 360 OR (((col0 IS NULL) AND col0 > 697))) OR col3 IN (645,443,242)) AND col0 <= 611) OR col0 IS NULL AND (col4 > 271.17) OR (col1 IN (562.29)) AND col3 <= 27)) OR (col0 > 793) OR col4 < 432.13))) AND col1 > 519.74 OR (col0 <= 466 OR col3 > 481 OR (col0 >= 889)))) OR ((col3 <= 639))))) OR ((((col1 > 375.37) AND col3 IS NULL OR col3 < 156))) AND col3 IS NULL AND ((col3 > 225))) OR ((col1 > 310.17)) OR col0 IS NULL AND col3 > 143 AND col3 < 489
----
100 values hashing to d7fd31c3916c207fd3117332326c3f37

statement ok
DROP VIEW view_1_tab0_534

statement ok
DROP VIEW view_2_tab0_534

statement ok
DROP VIEW view_3_tab0_534

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab1_534 AS SELECT pk, col0 FROM tab1 WHERE col0 < 152 OR (((col1 >= 904.26) AND ((col0 > 91))) OR col1 > 173.50 OR col3 < 641 AND col0 > 612 OR ((((col1 <= 635.91) OR col1 <= 876.74 OR col1 > 329.50 AND ((((((col3 < 593) OR ((col3 IN (447,628) OR (col3 = 133 OR col1 <= 679.69 OR ((col4 IN (SELECT col1 FROM tab1 WHERE col3 IS NULL)) OR col4 >= 155.19 OR col3 > 34)) AND col0 > 346 OR ((col0 < 288 AND ((col3 IN (880,830,371,244)) AND col3 > 773) OR col1 > 352.14 AND (col1 < 109.34) AND col0 > 553))) AND col3 IN (777,84,66)) AND col0 < 886 AND col1 < 871.84 AND col0 >= 29 AND col0 <= 932 AND ((((((col4 >= 321.72 AND col3 > 716)) AND col1 <= 1.70 AND col0 <= 248 OR ((col1 > 677.52)) AND col1 > 93.31 AND col0 <= 684 OR col1 >= 327.14 AND col1 IN (488.87,83.41,279.47) OR col0 >= 85 AND col0 >= 76) AND (col3 IS NULL) OR col3 < 699) AND (col0 < 314) AND col0 IN (SELECT col3 FROM tab1 WHERE ((col1 < 139.91 OR (col4 < 20.86) AND ((col3 <= 26)) AND ((((col0 < 834 OR col3 IN (478) OR col1 <= 991.87 AND col0 < 722 OR ((col3 IS NULL)) AND col3 >= 327 AND col4 > 563.50 AND col0 BETWEEN 596 AND 571 OR (col4 < 141.5 OR col1 BETWEEN 97.83 AND 357.92 AND col3 < 636 OR (col3 < 637 OR col1 > 365.73) OR (col4 IS NULL) AND ((col1 < 808.22 OR col3 = 254 AND col0 IS NULL OR col3 <= 834 OR col4 > 742.2 OR col3 > 660 OR col0 >= 301 AND (((col0 <= 733))) AND (col4 > 994.93 AND col0 > 237 OR col1 >= 855.36)))) AND col0 > 776 AND col0 > 3)))) AND col0 <= 517 OR (col0 = 416) OR col3 < 360 OR (((col0 IS NULL) AND col0 > 697))) OR col3 IN (645,443,242)) AND col0 <= 611) OR col0 IS NULL AND (col4 > 271.17) OR (col1 IN (562.29)) AND col3 <= 27)) OR (col0 > 793) OR col4 < 432.13))) AND col1 > 519.74 OR (col0 <= 466 OR col3 > 481 OR (col0 >= 889)))) OR ((col3 <= 639))))) OR ((((col1 > 375.37) AND col3 IS NULL OR col3 < 156))) AND col3 IS NULL AND ((col3 > 225))) OR ((col1 > 310.17)) OR col0 IS NULL AND col3 > 143 AND col3 < 489

statement ok
CREATE VIEW view_2_tab1_534 AS SELECT pk, col0 FROM tab1 WHERE NOT (col0 < 152 OR (((col1 >= 904.26) AND ((col0 > 91))) OR col1 > 173.50 OR col3 < 641 AND col0 > 612 OR ((((col1 <= 635.91) OR col1 <= 876.74 OR col1 > 329.50 AND ((((((col3 < 593) OR ((col3 IN (447,628) OR (col3 = 133 OR col1 <= 679.69 OR ((col4 IN (SELECT col1 FROM tab1 WHERE col3 IS NULL)) OR col4 >= 155.19 OR col3 > 34)) AND col0 > 346 OR ((col0 < 288 AND ((col3 IN (880,830,371,244)) AND col3 > 773) OR col1 > 352.14 AND (col1 < 109.34) AND col0 > 553))) AND col3 IN (777,84,66)) AND col0 < 886 AND col1 < 871.84 AND col0 >= 29 AND col0 <= 932 AND ((((((col4 >= 321.72 AND col3 > 716)) AND col1 <= 1.70 AND col0 <= 248 OR ((col1 > 677.52)) AND col1 > 93.31 AND col0 <= 684 OR col1 >= 327.14 AND col1 IN (488.87,83.41,279.47) OR col0 >= 85 AND col0 >= 76) AND (col3 IS NULL) OR col3 < 699) AND (col0 < 314) AND col0 IN (SELECT col3 FROM tab1 WHERE ((col1 < 139.91 OR (col4 < 20.86) AND ((col3 <= 26)) AND ((((col0 < 834 OR col3 IN (478) OR col1 <= 991.87 AND col0 < 722 OR ((col3 IS NULL)) AND col3 >= 327 AND col4 > 563.50 AND col0 BETWEEN 596 AND 571 OR (col4 < 141.5 OR col1 BETWEEN 97.83 AND 357.92 AND col3 < 636 OR (col3 < 637 OR col1 > 365.73) OR (col4 IS NULL) AND ((col1 < 808.22 OR col3 = 254 AND col0 IS NULL OR col3 <= 834 OR col4 > 742.2 OR col3 > 660 OR col0 >= 301 AND (((col0 <= 733))) AND (col4 > 994.93 AND col0 > 237 OR col1 >= 855.36)))) AND col0 > 776 AND col0 > 3)))) AND col0 <= 517 OR (col0 = 416) OR col3 < 360 OR (((col0 IS NULL) AND col0 > 697))) OR col3 IN (645,443,242)) AND col0 <= 611) OR col0 IS NULL AND (col4 > 271.17) OR (col1 IN (562.29)) AND col3 <= 27)) OR (col0 > 793) OR col4 < 432.13))) AND col1 > 519.74 OR (col0 <= 466 OR col3 > 481 OR (col0 >= 889)))) OR ((col3 <= 639))))) OR ((((col1 > 375.37) AND col3 IS NULL OR col3 < 156))) AND col3 IS NULL AND ((col3 > 225))) OR ((col1 > 310.17)) OR col0 IS NULL AND col3 > 143 AND col3 < 489)

statement ok
CREATE VIEW view_3_tab1_534 AS SELECT pk FROM view_1_tab1_534

query II rowsort label-1100-1
SELECT pk, col0 FROM tab1 WHERE col0 < 152 OR (((col1 >= 904.26) AND ((col0 > 91))) OR col1 > 173.50 OR col3 < 641 AND col0 > 612 OR ((((col1 <= 635.91) OR col1 <= 876.74 OR col1 > 329.50 AND ((((((col3 < 593) OR ((col3 IN (447,628) OR (col3 = 133 OR col1 <= 679.69 OR ((col4 IN (SELECT col1 FROM tab1 WHERE col3 IS NULL)) OR col4 >= 155.19 OR col3 > 34)) AND col0 > 346 OR ((col0 < 288 AND ((col3 IN (880,830,371,244)) AND col3 > 773) OR col1 > 352.14 AND (col1 < 109.34) AND col0 > 553))) AND col3 IN (777,84,66)) AND col0 < 886 AND col1 < 871.84 AND col0 >= 29 AND col0 <= 932 AND ((((((col4 >= 321.72 AND col3 > 716)) AND col1 <= 1.70 AND col0 <= 248 OR ((col1 > 677.52)) AND col1 > 93.31 AND col0 <= 684 OR col1 >= 327.14 AND col1 IN (488.87,83.41,279.47) OR col0 >= 85 AND col0 >= 76) AND (col3 IS NULL) OR col3 < 699) AND (col0 < 314) AND col0 IN (SELECT col3 FROM tab1 WHERE ((col1 < 139.91 OR (col4 < 20.86) AND ((col3 <= 26)) AND ((((col0 < 834 OR col3 IN (478) OR col1 <= 991.87 AND col0 < 722 OR ((col3 IS NULL)) AND col3 >= 327 AND col4 > 563.50 AND col0 BETWEEN 596 AND 571 OR (col4 < 141.5 OR col1 BETWEEN 97.83 AND 357.92 AND col3 < 636 OR (col3 < 637 OR col1 > 365.73) OR (col4 IS NULL) AND ((col1 < 808.22 OR col3 = 254 AND col0 IS NULL OR col3 <= 834 OR col4 > 742.2 OR col3 > 660 OR col0 >= 301 AND (((col0 <= 733))) AND (col4 > 994.93 AND col0 > 237 OR col1 >= 855.36)))) AND col0 > 776 AND col0 > 3)))) AND col0 <= 517 OR (col0 = 416) OR col3 < 360 OR (((col0 IS NULL) AND col0 > 697))) OR col3 IN (645,443,242)) AND col0 <= 611) OR col0 IS NULL AND (col4 > 271.17) OR (col1 IN (562.29)) AND col3 <= 27)) OR (col0 > 793) OR col4 < 432.13))) AND col1 > 519.74 OR (col0 <= 466 OR col3 > 481 OR (col0 >= 889)))) OR ((col3 <= 639))))) OR ((((col1 > 375.37) AND col3 IS NULL OR col3 < 156))) AND col3 IS NULL AND ((col3 > 225))) OR ((col1 > 310.17)) OR col0 IS NULL AND col3 > 143 AND col3 < 489
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-1100-2
SELECT pk, col0 FROM tab1 WHERE NOT (col0 < 152 OR (((col1 >= 904.26) AND ((col0 > 91))) OR col1 > 173.50 OR col3 < 641 AND col0 > 612 OR ((((col1 <= 635.91) OR col1 <= 876.74 OR col1 > 329.50 AND ((((((col3 < 593) OR ((col3 IN (447,628) OR (col3 = 133 OR col1 <= 679.69 OR ((col4 IN (SELECT col1 FROM tab1 WHERE col3 IS NULL)) OR col4 >= 155.19 OR col3 > 34)) AND col0 > 346 OR ((col0 < 288 AND ((col3 IN (880,830,371,244)) AND col3 > 773) OR col1 > 352.14 AND (col1 < 109.34) AND col0 > 553))) AND col3 IN (777,84,66)) AND col0 < 886 AND col1 < 871.84 AND col0 >= 29 AND col0 <= 932 AND ((((((col4 >= 321.72 AND col3 > 716)) AND col1 <= 1.70 AND col0 <= 248 OR ((col1 > 677.52)) AND col1 > 93.31 AND col0 <= 684 OR col1 >= 327.14 AND col1 IN (488.87,83.41,279.47) OR col0 >= 85 AND col0 >= 76) AND (col3 IS NULL) OR col3 < 699) AND (col0 < 314) AND col0 IN (SELECT col3 FROM tab1 WHERE ((col1 < 139.91 OR (col4 < 20.86) AND ((col3 <= 26)) AND ((((col0 < 834 OR col3 IN (478) OR col1 <= 991.87 AND col0 < 722 OR ((col3 IS NULL)) AND col3 >= 327 AND col4 > 563.50 AND col0 BETWEEN 596 AND 571 OR (col4 < 141.5 OR col1 BETWEEN 97.83 AND 357.92 AND col3 < 636 OR (col3 < 637 OR col1 > 365.73) OR (col4 IS NULL) AND ((col1 < 808.22 OR col3 = 254 AND col0 IS NULL OR col3 <= 834 OR col4 > 742.2 OR col3 > 660 OR col0 >= 301 AND (((col0 <= 733))) AND (col4 > 994.93 AND col0 > 237 OR col1 >= 855.36)))) AND col0 > 776 AND col0 > 3)))) AND col0 <= 517 OR (col0 = 416) OR col3 < 360 OR (((col0 IS NULL) AND col0 > 697))) OR col3 IN (645,443,242)) AND col0 <= 611) OR col0 IS NULL AND (col4 > 271.17) OR (col1 IN (562.29)) AND col3 <= 27)) OR (col0 > 793) OR col4 < 432.13))) AND col1 > 519.74 OR (col0 <= 466 OR col3 > 481 OR (col0 >= 889)))) OR ((col3 <= 639))))) OR ((((col1 > 375.37) AND col3 IS NULL OR col3 < 156))) AND col3 IS NULL AND ((col3 > 225))) OR ((col1 > 310.17)) OR col0 IS NULL AND col3 > 143 AND col3 < 489)
----

query II rowsort label-1100-1
SELECT pk, col0 FROM view_1_tab1_534
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-1100-2
SELECT pk, col0 FROM view_2_tab1_534
----

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col0 < 152 OR (((col1 >= 904.26) AND ((col0 > 91))) OR col1 > 173.50 OR col3 < 641 AND col0 > 612 OR ((((col1 <= 635.91) OR col1 <= 876.74 OR col1 > 329.50 AND ((((((col3 < 593) OR ((col3 IN (447,628) OR (col3 = 133 OR col1 <= 679.69 OR ((col4 IN (SELECT col1 FROM tab1 WHERE col3 IS NULL)) OR col4 >= 155.19 OR col3 > 34)) AND col0 > 346 OR ((col0 < 288 AND ((col3 IN (880,830,371,244)) AND col3 > 773) OR col1 > 352.14 AND (col1 < 109.34) AND col0 > 553))) AND col3 IN (777,84,66)) AND col0 < 886 AND col1 < 871.84 AND col0 >= 29 AND col0 <= 932 AND ((((((col4 >= 321.72 AND col3 > 716)) AND col1 <= 1.70 AND col0 <= 248 OR ((col1 > 677.52)) AND col1 > 93.31 AND col0 <= 684 OR col1 >= 327.14 AND col1 IN (488.87,83.41,279.47) OR col0 >= 85 AND col0 >= 76) AND (col3 IS NULL) OR col3 < 699) AND (col0 < 314) AND col0 IN (SELECT col3 FROM tab1 WHERE ((col1 < 139.91 OR (col4 < 20.86) AND ((col3 <= 26)) AND ((((col0 < 834 OR col3 IN (478) OR col1 <= 991.87 AND col0 < 722 OR ((col3 IS NULL)) AND col3 >= 327 AND col4 > 563.50 AND col0 BETWEEN 596 AND 571 OR (col4 < 141.5 OR col1 BETWEEN 97.83 AND 357.92 AND col3 < 636 OR (col3 < 637 OR col1 > 365.73) OR (col4 IS NULL) AND ((col1 < 808.22 OR col3 = 254 AND col0 IS NULL OR col3 <= 834 OR col4 > 742.2 OR col3 > 660 OR col0 >= 301 AND (((col0 <= 733))) AND (col4 > 994.93 AND col0 > 237 OR col1 >= 855.36)))) AND col0 > 776 AND col0 > 3)))) AND col0 <= 517 OR (col0 = 416) OR col3 < 360 OR (((col0 IS NULL) AND col0 > 697))) OR col3 IN (645,443,242)) AND col0 <= 611) OR col0 IS NULL AND (col4 > 271.17) OR (col1 IN (562.29)) AND col3 <= 27)) OR (col0 > 793) OR col4 < 432.13))) AND col1 > 519.74 OR (col0 <= 466 OR col3 > 481 OR (col0 >= 889)))) OR ((col3 <= 639))))) OR ((((col1 > 375.37) AND col3 IS NULL OR col3 < 156))) AND col3 IS NULL AND ((col3 > 225))) OR ((col1 > 310.17)) OR col0 IS NULL AND col3 > 143 AND col3 < 489 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col0 < 152 OR (((col1 >= 904.26) AND ((col0 > 91))) OR col1 > 173.50 OR col3 < 641 AND col0 > 612 OR ((((col1 <= 635.91) OR col1 <= 876.74 OR col1 > 329.50 AND ((((((col3 < 593) OR ((col3 IN (447,628) OR (col3 = 133 OR col1 <= 679.69 OR ((col4 IN (SELECT col1 FROM tab1 WHERE col3 IS NULL)) OR col4 >= 155.19 OR col3 > 34)) AND col0 > 346 OR ((col0 < 288 AND ((col3 IN (880,830,371,244)) AND col3 > 773) OR col1 > 352.14 AND (col1 < 109.34) AND col0 > 553))) AND col3 IN (777,84,66)) AND col0 < 886 AND col1 < 871.84 AND col0 >= 29 AND col0 <= 932 AND ((((((col4 >= 321.72 AND col3 > 716)) AND col1 <= 1.70 AND col0 <= 248 OR ((col1 > 677.52)) AND col1 > 93.31 AND col0 <= 684 OR col1 >= 327.14 AND col1 IN (488.87,83.41,279.47) OR col0 >= 85 AND col0 >= 76) AND (col3 IS NULL) OR col3 < 699) AND (col0 < 314) AND col0 IN (SELECT col3 FROM tab1 WHERE ((col1 < 139.91 OR (col4 < 20.86) AND ((col3 <= 26)) AND ((((col0 < 834 OR col3 IN (478) OR col1 <= 991.87 AND col0 < 722 OR ((col3 IS NULL)) AND col3 >= 327 AND col4 > 563.50 AND col0 BETWEEN 596 AND 571 OR (col4 < 141.5 OR col1 BETWEEN 97.83 AND 357.92 AND col3 < 636 OR (col3 < 637 OR col1 > 365.73) OR (col4 IS NULL) AND ((col1 < 808.22 OR col3 = 254 AND col0 IS NULL OR col3 <= 834 OR col4 > 742.2 OR col3 > 660 OR col0 >= 301 AND (((col0 <= 733))) AND (col4 > 994.93 AND col0 > 237 OR col1 >= 855.36)))) AND col0 > 776 AND col0 > 3)))) AND col0 <= 517 OR (col0 = 416) OR col3 < 360 OR (((col0 IS NULL) AND col0 > 697))) OR col3 IN (645,443,242)) AND col0 <= 611) OR col0 IS NULL AND (col4 > 271.17) OR (col1 IN (562.29)) AND col3 <= 27)) OR (col0 > 793) OR col4 < 432.13))) AND col1 > 519.74 OR (col0 <= 466 OR col3 > 481 OR (col0 >= 889)))) OR ((col3 <= 639))))) OR ((((col1 > 375.37) AND col3 IS NULL OR col3 < 156))) AND col3 IS NULL AND ((col3 > 225))) OR ((col1 > 310.17)) OR col0 IS NULL AND col3 > 143 AND col3 < 489)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_534 UNION ALL SELECT pk, col0 FROM view_2_tab1_534
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col0 < 152 OR (((col1 >= 904.26) AND ((col0 > 91))) OR col1 > 173.50 OR col3 < 641 AND col0 > 612 OR ((((col1 <= 635.91) OR col1 <= 876.74 OR col1 > 329.50 AND ((((((col3 < 593) OR ((col3 IN (447,628) OR (col3 = 133 OR col1 <= 679.69 OR ((col4 IN (SELECT col1 FROM tab1 WHERE col3 IS NULL)) OR col4 >= 155.19 OR col3 > 34)) AND col0 > 346 OR ((col0 < 288 AND ((col3 IN (880,830,371,244)) AND col3 > 773) OR col1 > 352.14 AND (col1 < 109.34) AND col0 > 553))) AND col3 IN (777,84,66)) AND col0 < 886 AND col1 < 871.84 AND col0 >= 29 AND col0 <= 932 AND ((((((col4 >= 321.72 AND col3 > 716)) AND col1 <= 1.70 AND col0 <= 248 OR ((col1 > 677.52)) AND col1 > 93.31 AND col0 <= 684 OR col1 >= 327.14 AND col1 IN (488.87,83.41,279.47) OR col0 >= 85 AND col0 >= 76) AND (col3 IS NULL) OR col3 < 699) AND (col0 < 314) AND col0 IN (SELECT col3 FROM tab1 WHERE ((col1 < 139.91 OR (col4 < 20.86) AND ((col3 <= 26)) AND ((((col0 < 834 OR col3 IN (478) OR col1 <= 991.87 AND col0 < 722 OR ((col3 IS NULL)) AND col3 >= 327 AND col4 > 563.50 AND col0 BETWEEN 596 AND 571 OR (col4 < 141.5 OR col1 BETWEEN 97.83 AND 357.92 AND col3 < 636 OR (col3 < 637 OR col1 > 365.73) OR (col4 IS NULL) AND ((col1 < 808.22 OR col3 = 254 AND col0 IS NULL OR col3 <= 834 OR col4 > 742.2 OR col3 > 660 OR col0 >= 301 AND (((col0 <= 733))) AND (col4 > 994.93 AND col0 > 237 OR col1 >= 855.36)))) AND col0 > 776 AND col0 > 3)))) AND col0 <= 517 OR (col0 = 416) OR col3 < 360 OR (((col0 IS NULL) AND col0 > 697))) OR col3 IN (645,443,242)) AND col0 <= 611) OR col0 IS NULL AND (col4 > 271.17) OR (col1 IN (562.29)) AND col3 <= 27)) OR (col0 > 793) OR col4 < 432.13))) AND col1 > 519.74 OR (col0 <= 466 OR col3 > 481 OR (col0 >= 889)))) OR ((col3 <= 639))))) OR ((((col1 > 375.37) AND col3 IS NULL OR col3 < 156))) AND col3 IS NULL AND ((col3 > 225))) OR ((col1 > 310.17)) OR col0 IS NULL AND col3 > 143 AND col3 < 489 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col0 < 152 OR (((col1 >= 904.26) AND ((col0 > 91))) OR col1 > 173.50 OR col3 < 641 AND col0 > 612 OR ((((col1 <= 635.91) OR col1 <= 876.74 OR col1 > 329.50 AND ((((((col3 < 593) OR ((col3 IN (447,628) OR (col3 = 133 OR col1 <= 679.69 OR ((col4 IN (SELECT col1 FROM tab1 WHERE col3 IS NULL)) OR col4 >= 155.19 OR col3 > 34)) AND col0 > 346 OR ((col0 < 288 AND ((col3 IN (880,830,371,244)) AND col3 > 773) OR col1 > 352.14 AND (col1 < 109.34) AND col0 > 553))) AND col3 IN (777,84,66)) AND col0 < 886 AND col1 < 871.84 AND col0 >= 29 AND col0 <= 932 AND ((((((col4 >= 321.72 AND col3 > 716)) AND col1 <= 1.70 AND col0 <= 248 OR ((col1 > 677.52)) AND col1 > 93.31 AND col0 <= 684 OR col1 >= 327.14 AND col1 IN (488.87,83.41,279.47) OR col0 >= 85 AND col0 >= 76) AND (col3 IS NULL) OR col3 < 699) AND (col0 < 314) AND col0 IN (SELECT col3 FROM tab1 WHERE ((col1 < 139.91 OR (col4 < 20.86) AND ((col3 <= 26)) AND ((((col0 < 834 OR col3 IN (478) OR col1 <= 991.87 AND col0 < 722 OR ((col3 IS NULL)) AND col3 >= 327 AND col4 > 563.50 AND col0 BETWEEN 596 AND 571 OR (col4 < 141.5 OR col1 BETWEEN 97.83 AND 357.92 AND col3 < 636 OR (col3 < 637 OR col1 > 365.73) OR (col4 IS NULL) AND ((col1 < 808.22 OR col3 = 254 AND col0 IS NULL OR col3 <= 834 OR col4 > 742.2 OR col3 > 660 OR col0 >= 301 AND (((col0 <= 733))) AND (col4 > 994.93 AND col0 > 237 OR col1 >= 855.36)))) AND col0 > 776 AND col0 > 3)))) AND col0 <= 517 OR (col0 = 416) OR col3 < 360 OR (((col0 IS NULL) AND col0 > 697))) OR col3 IN (645,443,242)) AND col0 <= 611) OR col0 IS NULL AND (col4 > 271.17) OR (col1 IN (562.29)) AND col3 <= 27)) OR (col0 > 793) OR col4 < 432.13))) AND col1 > 519.74 OR (col0 <= 466 OR col3 > 481 OR (col0 >= 889)))) OR ((col3 <= 639))))) OR ((((col1 > 375.37) AND col3 IS NULL OR col3 < 156))) AND col3 IS NULL AND ((col3 > 225))) OR ((col1 > 310.17)) OR col0 IS NULL AND col3 > 143 AND col3 < 489)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_534 UNION SELECT pk, col0 FROM view_2_tab1_534
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-1100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col0 < 152 OR (((col1 >= 904.26) AND ((col0 > 91))) OR col1 > 173.50 OR col3 < 641 AND col0 > 612 OR ((((col1 <= 635.91) OR col1 <= 876.74 OR col1 > 329.50 AND ((((((col3 < 593) OR ((col3 IN (447,628) OR (col3 = 133 OR col1 <= 679.69 OR ((col4 IN (SELECT col1 FROM tab1 WHERE col3 IS NULL)) OR col4 >= 155.19 OR col3 > 34)) AND col0 > 346 OR ((col0 < 288 AND ((col3 IN (880,830,371,244)) AND col3 > 773) OR col1 > 352.14 AND (col1 < 109.34) AND col0 > 553))) AND col3 IN (777,84,66)) AND col0 < 886 AND col1 < 871.84 AND col0 >= 29 AND col0 <= 932 AND ((((((col4 >= 321.72 AND col3 > 716)) AND col1 <= 1.70 AND col0 <= 248 OR ((col1 > 677.52)) AND col1 > 93.31 AND col0 <= 684 OR col1 >= 327.14 AND col1 IN (488.87,83.41,279.47) OR col0 >= 85 AND col0 >= 76) AND (col3 IS NULL) OR col3 < 699) AND (col0 < 314) AND col0 IN (SELECT col3 FROM tab1 WHERE ((col1 < 139.91 OR (col4 < 20.86) AND ((col3 <= 26)) AND ((((col0 < 834 OR col3 IN (478) OR col1 <= 991.87 AND col0 < 722 OR ((col3 IS NULL)) AND col3 >= 327 AND col4 > 563.50 AND col0 BETWEEN 596 AND 571 OR (col4 < 141.5 OR col1 BETWEEN 97.83 AND 357.92 AND col3 < 636 OR (col3 < 637 OR col1 > 365.73) OR (col4 IS NULL) AND ((col1 < 808.22 OR col3 = 254 AND col0 IS NULL OR col3 <= 834 OR col4 > 742.2 OR col3 > 660 OR col0 >= 301 AND (((col0 <= 733))) AND (col4 > 994.93 AND col0 > 237 OR col1 >= 855.36)))) AND col0 > 776 AND col0 > 3)))) AND col0 <= 517 OR (col0 = 416) OR col3 < 360 OR (((col0 IS NULL) AND col0 > 697))) OR col3 IN (645,443,242)) AND col0 <= 611) OR col0 IS NULL AND (col4 > 271.17) OR (col1 IN (562.29)) AND col3 <= 27)) OR (col0 > 793) OR col4 < 432.13))) AND col1 > 519.74 OR (col0 <= 466 OR col3 > 481 OR (col0 >= 889)))) OR ((col3 <= 639))))) OR ((((col1 > 375.37) AND col3 IS NULL OR col3 < 156))) AND col3 IS NULL AND ((col3 > 225))) OR ((col1 > 310.17)) OR col0 IS NULL AND col3 > 143 AND col3 < 489 ) AS tab1_534
----
100 values hashing to d7fd31c3916c207fd3117332326c3f37

query I rowsort label-1100-3
SELECT * FROM view_3_tab1_534
----
100 values hashing to d7fd31c3916c207fd3117332326c3f37

query I rowsort label-1100-3
SELECT pk FROM tab1 WHERE col0 < 152 OR (((col1 >= 904.26) AND ((col0 > 91))) OR col1 > 173.50 OR col3 < 641 AND col0 > 612 OR ((((col1 <= 635.91) OR col1 <= 876.74 OR col1 > 329.50 AND ((((((col3 < 593) OR ((col3 IN (447,628) OR (col3 = 133 OR col1 <= 679.69 OR ((col4 IN (SELECT col1 FROM tab1 WHERE col3 IS NULL)) OR col4 >= 155.19 OR col3 > 34)) AND col0 > 346 OR ((col0 < 288 AND ((col3 IN (880,830,371,244)) AND col3 > 773) OR col1 > 352.14 AND (col1 < 109.34) AND col0 > 553))) AND col3 IN (777,84,66)) AND col0 < 886 AND col1 < 871.84 AND col0 >= 29 AND col0 <= 932 AND ((((((col4 >= 321.72 AND col3 > 716)) AND col1 <= 1.70 AND col0 <= 248 OR ((col1 > 677.52)) AND col1 > 93.31 AND col0 <= 684 OR col1 >= 327.14 AND col1 IN (488.87,83.41,279.47) OR col0 >= 85 AND col0 >= 76) AND (col3 IS NULL) OR col3 < 699) AND (col0 < 314) AND col0 IN (SELECT col3 FROM tab1 WHERE ((col1 < 139.91 OR (col4 < 20.86) AND ((col3 <= 26)) AND ((((col0 < 834 OR col3 IN (478) OR col1 <= 991.87 AND col0 < 722 OR ((col3 IS NULL)) AND col3 >= 327 AND col4 > 563.50 AND col0 BETWEEN 596 AND 571 OR (col4 < 141.5 OR col1 BETWEEN 97.83 AND 357.92 AND col3 < 636 OR (col3 < 637 OR col1 > 365.73) OR (col4 IS NULL) AND ((col1 < 808.22 OR col3 = 254 AND col0 IS NULL OR col3 <= 834 OR col4 > 742.2 OR col3 > 660 OR col0 >= 301 AND (((col0 <= 733))) AND (col4 > 994.93 AND col0 > 237 OR col1 >= 855.36)))) AND col0 > 776 AND col0 > 3)))) AND col0 <= 517 OR (col0 = 416) OR col3 < 360 OR (((col0 IS NULL) AND col0 > 697))) OR col3 IN (645,443,242)) AND col0 <= 611) OR col0 IS NULL AND (col4 > 271.17) OR (col1 IN (562.29)) AND col3 <= 27)) OR (col0 > 793) OR col4 < 432.13))) AND col1 > 519.74 OR (col0 <= 466 OR col3 > 481 OR (col0 >= 889)))) OR ((col3 <= 639))))) OR ((((col1 > 375.37) AND col3 IS NULL OR col3 < 156))) AND col3 IS NULL AND ((col3 > 225))) OR ((col1 > 310.17)) OR col0 IS NULL AND col3 > 143 AND col3 < 489
----
100 values hashing to d7fd31c3916c207fd3117332326c3f37

statement ok
DROP VIEW view_1_tab1_534

statement ok
DROP VIEW view_2_tab1_534

statement ok
DROP VIEW view_3_tab1_534

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab2_534 AS SELECT pk, col0 FROM tab2 WHERE col0 < 152 OR (((col1 >= 904.26) AND ((col0 > 91))) OR col1 > 173.50 OR col3 < 641 AND col0 > 612 OR ((((col1 <= 635.91) OR col1 <= 876.74 OR col1 > 329.50 AND ((((((col3 < 593) OR ((col3 IN (447,628) OR (col3 = 133 OR col1 <= 679.69 OR ((col4 IN (SELECT col1 FROM tab2 WHERE col3 IS NULL)) OR col4 >= 155.19 OR col3 > 34)) AND col0 > 346 OR ((col0 < 288 AND ((col3 IN (880,830,371,244)) AND col3 > 773) OR col1 > 352.14 AND (col1 < 109.34) AND col0 > 553))) AND col3 IN (777,84,66)) AND col0 < 886 AND col1 < 871.84 AND col0 >= 29 AND col0 <= 932 AND ((((((col4 >= 321.72 AND col3 > 716)) AND col1 <= 1.70 AND col0 <= 248 OR ((col1 > 677.52)) AND col1 > 93.31 AND col0 <= 684 OR col1 >= 327.14 AND col1 IN (488.87,83.41,279.47) OR col0 >= 85 AND col0 >= 76) AND (col3 IS NULL) OR col3 < 699) AND (col0 < 314) AND col0 IN (SELECT col3 FROM tab2 WHERE ((col1 < 139.91 OR (col4 < 20.86) AND ((col3 <= 26)) AND ((((col0 < 834 OR col3 IN (478) OR col1 <= 991.87 AND col0 < 722 OR ((col3 IS NULL)) AND col3 >= 327 AND col4 > 563.50 AND col0 BETWEEN 596 AND 571 OR (col4 < 141.5 OR col1 BETWEEN 97.83 AND 357.92 AND col3 < 636 OR (col3 < 637 OR col1 > 365.73) OR (col4 IS NULL) AND ((col1 < 808.22 OR col3 = 254 AND col0 IS NULL OR col3 <= 834 OR col4 > 742.2 OR col3 > 660 OR col0 >= 301 AND (((col0 <= 733))) AND (col4 > 994.93 AND col0 > 237 OR col1 >= 855.36)))) AND col0 > 776 AND col0 > 3)))) AND col0 <= 517 OR (col0 = 416) OR col3 < 360 OR (((col0 IS NULL) AND col0 > 697))) OR col3 IN (645,443,242)) AND col0 <= 611) OR col0 IS NULL AND (col4 > 271.17) OR (col1 IN (562.29)) AND col3 <= 27)) OR (col0 > 793) OR col4 < 432.13))) AND col1 > 519.74 OR (col0 <= 466 OR col3 > 481 OR (col0 >= 889)))) OR ((col3 <= 639))))) OR ((((col1 > 375.37) AND col3 IS NULL OR col3 < 156))) AND col3 IS NULL AND ((col3 > 225))) OR ((col1 > 310.17)) OR col0 IS NULL AND col3 > 143 AND col3 < 489

statement ok
CREATE VIEW view_2_tab2_534 AS SELECT pk, col0 FROM tab2 WHERE NOT (col0 < 152 OR (((col1 >= 904.26) AND ((col0 > 91))) OR col1 > 173.50 OR col3 < 641 AND col0 > 612 OR ((((col1 <= 635.91) OR col1 <= 876.74 OR col1 > 329.50 AND ((((((col3 < 593) OR ((col3 IN (447,628) OR (col3 = 133 OR col1 <= 679.69 OR ((col4 IN (SELECT col1 FROM tab2 WHERE col3 IS NULL)) OR col4 >= 155.19 OR col3 > 34)) AND col0 > 346 OR ((col0 < 288 AND ((col3 IN (880,830,371,244)) AND col3 > 773) OR col1 > 352.14 AND (col1 < 109.34) AND col0 > 553))) AND col3 IN (777,84,66)) AND col0 < 886 AND col1 < 871.84 AND col0 >= 29 AND col0 <= 932 AND ((((((col4 >= 321.72 AND col3 > 716)) AND col1 <= 1.70 AND col0 <= 248 OR ((col1 > 677.52)) AND col1 > 93.31 AND col0 <= 684 OR col1 >= 327.14 AND col1 IN (488.87,83.41,279.47) OR col0 >= 85 AND col0 >= 76) AND (col3 IS NULL) OR col3 < 699) AND (col0 < 314) AND col0 IN (SELECT col3 FROM tab2 WHERE ((col1 < 139.91 OR (col4 < 20.86) AND ((col3 <= 26)) AND ((((col0 < 834 OR col3 IN (478) OR col1 <= 991.87 AND col0 < 722 OR ((col3 IS NULL)) AND col3 >= 327 AND col4 > 563.50 AND col0 BETWEEN 596 AND 571 OR (col4 < 141.5 OR col1 BETWEEN 97.83 AND 357.92 AND col3 < 636 OR (col3 < 637 OR col1 > 365.73) OR (col4 IS NULL) AND ((col1 < 808.22 OR col3 = 254 AND col0 IS NULL OR col3 <= 834 OR col4 > 742.2 OR col3 > 660 OR col0 >= 301 AND (((col0 <= 733))) AND (col4 > 994.93 AND col0 > 237 OR col1 >= 855.36)))) AND col0 > 776 AND col0 > 3)))) AND col0 <= 517 OR (col0 = 416) OR col3 < 360 OR (((col0 IS NULL) AND col0 > 697))) OR col3 IN (645,443,242)) AND col0 <= 611) OR col0 IS NULL AND (col4 > 271.17) OR (col1 IN (562.29)) AND col3 <= 27)) OR (col0 > 793) OR col4 < 432.13))) AND col1 > 519.74 OR (col0 <= 466 OR col3 > 481 OR (col0 >= 889)))) OR ((col3 <= 639))))) OR ((((col1 > 375.37) AND col3 IS NULL OR col3 < 156))) AND col3 IS NULL AND ((col3 > 225))) OR ((col1 > 310.17)) OR col0 IS NULL AND col3 > 143 AND col3 < 489)

statement ok
CREATE VIEW view_3_tab2_534 AS SELECT pk FROM view_1_tab2_534

query II rowsort label-1100-1
SELECT pk, col0 FROM tab2 WHERE col0 < 152 OR (((col1 >= 904.26) AND ((col0 > 91))) OR col1 > 173.50 OR col3 < 641 AND col0 > 612 OR ((((col1 <= 635.91) OR col1 <= 876.74 OR col1 > 329.50 AND ((((((col3 < 593) OR ((col3 IN (447,628) OR (col3 = 133 OR col1 <= 679.69 OR ((col4 IN (SELECT col1 FROM tab2 WHERE col3 IS NULL)) OR col4 >= 155.19 OR col3 > 34)) AND col0 > 346 OR ((col0 < 288 AND ((col3 IN (880,830,371,244)) AND col3 > 773) OR col1 > 352.14 AND (col1 < 109.34) AND col0 > 553))) AND col3 IN (777,84,66)) AND col0 < 886 AND col1 < 871.84 AND col0 >= 29 AND col0 <= 932 AND ((((((col4 >= 321.72 AND col3 > 716)) AND col1 <= 1.70 AND col0 <= 248 OR ((col1 > 677.52)) AND col1 > 93.31 AND col0 <= 684 OR col1 >= 327.14 AND col1 IN (488.87,83.41,279.47) OR col0 >= 85 AND col0 >= 76) AND (col3 IS NULL) OR col3 < 699) AND (col0 < 314) AND col0 IN (SELECT col3 FROM tab2 WHERE ((col1 < 139.91 OR (col4 < 20.86) AND ((col3 <= 26)) AND ((((col0 < 834 OR col3 IN (478) OR col1 <= 991.87 AND col0 < 722 OR ((col3 IS NULL)) AND col3 >= 327 AND col4 > 563.50 AND col0 BETWEEN 596 AND 571 OR (col4 < 141.5 OR col1 BETWEEN 97.83 AND 357.92 AND col3 < 636 OR (col3 < 637 OR col1 > 365.73) OR (col4 IS NULL) AND ((col1 < 808.22 OR col3 = 254 AND col0 IS NULL OR col3 <= 834 OR col4 > 742.2 OR col3 > 660 OR col0 >= 301 AND (((col0 <= 733))) AND (col4 > 994.93 AND col0 > 237 OR col1 >= 855.36)))) AND col0 > 776 AND col0 > 3)))) AND col0 <= 517 OR (col0 = 416) OR col3 < 360 OR (((col0 IS NULL) AND col0 > 697))) OR col3 IN (645,443,242)) AND col0 <= 611) OR col0 IS NULL AND (col4 > 271.17) OR (col1 IN (562.29)) AND col3 <= 27)) OR (col0 > 793) OR col4 < 432.13))) AND col1 > 519.74 OR (col0 <= 466 OR col3 > 481 OR (col0 >= 889)))) OR ((col3 <= 639))))) OR ((((col1 > 375.37) AND col3 IS NULL OR col3 < 156))) AND col3 IS NULL AND ((col3 > 225))) OR ((col1 > 310.17)) OR col0 IS NULL AND col3 > 143 AND col3 < 489
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-1100-2
SELECT pk, col0 FROM tab2 WHERE NOT (col0 < 152 OR (((col1 >= 904.26) AND ((col0 > 91))) OR col1 > 173.50 OR col3 < 641 AND col0 > 612 OR ((((col1 <= 635.91) OR col1 <= 876.74 OR col1 > 329.50 AND ((((((col3 < 593) OR ((col3 IN (447,628) OR (col3 = 133 OR col1 <= 679.69 OR ((col4 IN (SELECT col1 FROM tab2 WHERE col3 IS NULL)) OR col4 >= 155.19 OR col3 > 34)) AND col0 > 346 OR ((col0 < 288 AND ((col3 IN (880,830,371,244)) AND col3 > 773) OR col1 > 352.14 AND (col1 < 109.34) AND col0 > 553))) AND col3 IN (777,84,66)) AND col0 < 886 AND col1 < 871.84 AND col0 >= 29 AND col0 <= 932 AND ((((((col4 >= 321.72 AND col3 > 716)) AND col1 <= 1.70 AND col0 <= 248 OR ((col1 > 677.52)) AND col1 > 93.31 AND col0 <= 684 OR col1 >= 327.14 AND col1 IN (488.87,83.41,279.47) OR col0 >= 85 AND col0 >= 76) AND (col3 IS NULL) OR col3 < 699) AND (col0 < 314) AND col0 IN (SELECT col3 FROM tab2 WHERE ((col1 < 139.91 OR (col4 < 20.86) AND ((col3 <= 26)) AND ((((col0 < 834 OR col3 IN (478) OR col1 <= 991.87 AND col0 < 722 OR ((col3 IS NULL)) AND col3 >= 327 AND col4 > 563.50 AND col0 BETWEEN 596 AND 571 OR (col4 < 141.5 OR col1 BETWEEN 97.83 AND 357.92 AND col3 < 636 OR (col3 < 637 OR col1 > 365.73) OR (col4 IS NULL) AND ((col1 < 808.22 OR col3 = 254 AND col0 IS NULL OR col3 <= 834 OR col4 > 742.2 OR col3 > 660 OR col0 >= 301 AND (((col0 <= 733))) AND (col4 > 994.93 AND col0 > 237 OR col1 >= 855.36)))) AND col0 > 776 AND col0 > 3)))) AND col0 <= 517 OR (col0 = 416) OR col3 < 360 OR (((col0 IS NULL) AND col0 > 697))) OR col3 IN (645,443,242)) AND col0 <= 611) OR col0 IS NULL AND (col4 > 271.17) OR (col1 IN (562.29)) AND col3 <= 27)) OR (col0 > 793) OR col4 < 432.13))) AND col1 > 519.74 OR (col0 <= 466 OR col3 > 481 OR (col0 >= 889)))) OR ((col3 <= 639))))) OR ((((col1 > 375.37) AND col3 IS NULL OR col3 < 156))) AND col3 IS NULL AND ((col3 > 225))) OR ((col1 > 310.17)) OR col0 IS NULL AND col3 > 143 AND col3 < 489)
----

query II rowsort label-1100-1
SELECT pk, col0 FROM view_1_tab2_534
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-1100-2
SELECT pk, col0 FROM view_2_tab2_534
----

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col0 < 152 OR (((col1 >= 904.26) AND ((col0 > 91))) OR col1 > 173.50 OR col3 < 641 AND col0 > 612 OR ((((col1 <= 635.91) OR col1 <= 876.74 OR col1 > 329.50 AND ((((((col3 < 593) OR ((col3 IN (447,628) OR (col3 = 133 OR col1 <= 679.69 OR ((col4 IN (SELECT col1 FROM tab2 WHERE col3 IS NULL)) OR col4 >= 155.19 OR col3 > 34)) AND col0 > 346 OR ((col0 < 288 AND ((col3 IN (880,830,371,244)) AND col3 > 773) OR col1 > 352.14 AND (col1 < 109.34) AND col0 > 553))) AND col3 IN (777,84,66)) AND col0 < 886 AND col1 < 871.84 AND col0 >= 29 AND col0 <= 932 AND ((((((col4 >= 321.72 AND col3 > 716)) AND col1 <= 1.70 AND col0 <= 248 OR ((col1 > 677.52)) AND col1 > 93.31 AND col0 <= 684 OR col1 >= 327.14 AND col1 IN (488.87,83.41,279.47) OR col0 >= 85 AND col0 >= 76) AND (col3 IS NULL) OR col3 < 699) AND (col0 < 314) AND col0 IN (SELECT col3 FROM tab2 WHERE ((col1 < 139.91 OR (col4 < 20.86) AND ((col3 <= 26)) AND ((((col0 < 834 OR col3 IN (478) OR col1 <= 991.87 AND col0 < 722 OR ((col3 IS NULL)) AND col3 >= 327 AND col4 > 563.50 AND col0 BETWEEN 596 AND 571 OR (col4 < 141.5 OR col1 BETWEEN 97.83 AND 357.92 AND col3 < 636 OR (col3 < 637 OR col1 > 365.73) OR (col4 IS NULL) AND ((col1 < 808.22 OR col3 = 254 AND col0 IS NULL OR col3 <= 834 OR col4 > 742.2 OR col3 > 660 OR col0 >= 301 AND (((col0 <= 733))) AND (col4 > 994.93 AND col0 > 237 OR col1 >= 855.36)))) AND col0 > 776 AND col0 > 3)))) AND col0 <= 517 OR (col0 = 416) OR col3 < 360 OR (((col0 IS NULL) AND col0 > 697))) OR col3 IN (645,443,242)) AND col0 <= 611) OR col0 IS NULL AND (col4 > 271.17) OR (col1 IN (562.29)) AND col3 <= 27)) OR (col0 > 793) OR col4 < 432.13))) AND col1 > 519.74 OR (col0 <= 466 OR col3 > 481 OR (col0 >= 889)))) OR ((col3 <= 639))))) OR ((((col1 > 375.37) AND col3 IS NULL OR col3 < 156))) AND col3 IS NULL AND ((col3 > 225))) OR ((col1 > 310.17)) OR col0 IS NULL AND col3 > 143 AND col3 < 489 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col0 < 152 OR (((col1 >= 904.26) AND ((col0 > 91))) OR col1 > 173.50 OR col3 < 641 AND col0 > 612 OR ((((col1 <= 635.91) OR col1 <= 876.74 OR col1 > 329.50 AND ((((((col3 < 593) OR ((col3 IN (447,628) OR (col3 = 133 OR col1 <= 679.69 OR ((col4 IN (SELECT col1 FROM tab2 WHERE col3 IS NULL)) OR col4 >= 155.19 OR col3 > 34)) AND col0 > 346 OR ((col0 < 288 AND ((col3 IN (880,830,371,244)) AND col3 > 773) OR col1 > 352.14 AND (col1 < 109.34) AND col0 > 553))) AND col3 IN (777,84,66)) AND col0 < 886 AND col1 < 871.84 AND col0 >= 29 AND col0 <= 932 AND ((((((col4 >= 321.72 AND col3 > 716)) AND col1 <= 1.70 AND col0 <= 248 OR ((col1 > 677.52)) AND col1 > 93.31 AND col0 <= 684 OR col1 >= 327.14 AND col1 IN (488.87,83.41,279.47) OR col0 >= 85 AND col0 >= 76) AND (col3 IS NULL) OR col3 < 699) AND (col0 < 314) AND col0 IN (SELECT col3 FROM tab2 WHERE ((col1 < 139.91 OR (col4 < 20.86) AND ((col3 <= 26)) AND ((((col0 < 834 OR col3 IN (478) OR col1 <= 991.87 AND col0 < 722 OR ((col3 IS NULL)) AND col3 >= 327 AND col4 > 563.50 AND col0 BETWEEN 596 AND 571 OR (col4 < 141.5 OR col1 BETWEEN 97.83 AND 357.92 AND col3 < 636 OR (col3 < 637 OR col1 > 365.73) OR (col4 IS NULL) AND ((col1 < 808.22 OR col3 = 254 AND col0 IS NULL OR col3 <= 834 OR col4 > 742.2 OR col3 > 660 OR col0 >= 301 AND (((col0 <= 733))) AND (col4 > 994.93 AND col0 > 237 OR col1 >= 855.36)))) AND col0 > 776 AND col0 > 3)))) AND col0 <= 517 OR (col0 = 416) OR col3 < 360 OR (((col0 IS NULL) AND col0 > 697))) OR col3 IN (645,443,242)) AND col0 <= 611) OR col0 IS NULL AND (col4 > 271.17) OR (col1 IN (562.29)) AND col3 <= 27)) OR (col0 > 793) OR col4 < 432.13))) AND col1 > 519.74 OR (col0 <= 466 OR col3 > 481 OR (col0 >= 889)))) OR ((col3 <= 639))))) OR ((((col1 > 375.37) AND col3 IS NULL OR col3 < 156))) AND col3 IS NULL AND ((col3 > 225))) OR ((col1 > 310.17)) OR col0 IS NULL AND col3 > 143 AND col3 < 489)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_534 UNION ALL SELECT pk, col0 FROM view_2_tab2_534
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col0 < 152 OR (((col1 >= 904.26) AND ((col0 > 91))) OR col1 > 173.50 OR col3 < 641 AND col0 > 612 OR ((((col1 <= 635.91) OR col1 <= 876.74 OR col1 > 329.50 AND ((((((col3 < 593) OR ((col3 IN (447,628) OR (col3 = 133 OR col1 <= 679.69 OR ((col4 IN (SELECT col1 FROM tab2 WHERE col3 IS NULL)) OR col4 >= 155.19 OR col3 > 34)) AND col0 > 346 OR ((col0 < 288 AND ((col3 IN (880,830,371,244)) AND col3 > 773) OR col1 > 352.14 AND (col1 < 109.34) AND col0 > 553))) AND col3 IN (777,84,66)) AND col0 < 886 AND col1 < 871.84 AND col0 >= 29 AND col0 <= 932 AND ((((((col4 >= 321.72 AND col3 > 716)) AND col1 <= 1.70 AND col0 <= 248 OR ((col1 > 677.52)) AND col1 > 93.31 AND col0 <= 684 OR col1 >= 327.14 AND col1 IN (488.87,83.41,279.47) OR col0 >= 85 AND col0 >= 76) AND (col3 IS NULL) OR col3 < 699) AND (col0 < 314) AND col0 IN (SELECT col3 FROM tab2 WHERE ((col1 < 139.91 OR (col4 < 20.86) AND ((col3 <= 26)) AND ((((col0 < 834 OR col3 IN (478) OR col1 <= 991.87 AND col0 < 722 OR ((col3 IS NULL)) AND col3 >= 327 AND col4 > 563.50 AND col0 BETWEEN 596 AND 571 OR (col4 < 141.5 OR col1 BETWEEN 97.83 AND 357.92 AND col3 < 636 OR (col3 < 637 OR col1 > 365.73) OR (col4 IS NULL) AND ((col1 < 808.22 OR col3 = 254 AND col0 IS NULL OR col3 <= 834 OR col4 > 742.2 OR col3 > 660 OR col0 >= 301 AND (((col0 <= 733))) AND (col4 > 994.93 AND col0 > 237 OR col1 >= 855.36)))) AND col0 > 776 AND col0 > 3)))) AND col0 <= 517 OR (col0 = 416) OR col3 < 360 OR (((col0 IS NULL) AND col0 > 697))) OR col3 IN (645,443,242)) AND col0 <= 611) OR col0 IS NULL AND (col4 > 271.17) OR (col1 IN (562.29)) AND col3 <= 27)) OR (col0 > 793) OR col4 < 432.13))) AND col1 > 519.74 OR (col0 <= 466 OR col3 > 481 OR (col0 >= 889)))) OR ((col3 <= 639))))) OR ((((col1 > 375.37) AND col3 IS NULL OR col3 < 156))) AND col3 IS NULL AND ((col3 > 225))) OR ((col1 > 310.17)) OR col0 IS NULL AND col3 > 143 AND col3 < 489 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col0 < 152 OR (((col1 >= 904.26) AND ((col0 > 91))) OR col1 > 173.50 OR col3 < 641 AND col0 > 612 OR ((((col1 <= 635.91) OR col1 <= 876.74 OR col1 > 329.50 AND ((((((col3 < 593) OR ((col3 IN (447,628) OR (col3 = 133 OR col1 <= 679.69 OR ((col4 IN (SELECT col1 FROM tab2 WHERE col3 IS NULL)) OR col4 >= 155.19 OR col3 > 34)) AND col0 > 346 OR ((col0 < 288 AND ((col3 IN (880,830,371,244)) AND col3 > 773) OR col1 > 352.14 AND (col1 < 109.34) AND col0 > 553))) AND col3 IN (777,84,66)) AND col0 < 886 AND col1 < 871.84 AND col0 >= 29 AND col0 <= 932 AND ((((((col4 >= 321.72 AND col3 > 716)) AND col1 <= 1.70 AND col0 <= 248 OR ((col1 > 677.52)) AND col1 > 93.31 AND col0 <= 684 OR col1 >= 327.14 AND col1 IN (488.87,83.41,279.47) OR col0 >= 85 AND col0 >= 76) AND (col3 IS NULL) OR col3 < 699) AND (col0 < 314) AND col0 IN (SELECT col3 FROM tab2 WHERE ((col1 < 139.91 OR (col4 < 20.86) AND ((col3 <= 26)) AND ((((col0 < 834 OR col3 IN (478) OR col1 <= 991.87 AND col0 < 722 OR ((col3 IS NULL)) AND col3 >= 327 AND col4 > 563.50 AND col0 BETWEEN 596 AND 571 OR (col4 < 141.5 OR col1 BETWEEN 97.83 AND 357.92 AND col3 < 636 OR (col3 < 637 OR col1 > 365.73) OR (col4 IS NULL) AND ((col1 < 808.22 OR col3 = 254 AND col0 IS NULL OR col3 <= 834 OR col4 > 742.2 OR col3 > 660 OR col0 >= 301 AND (((col0 <= 733))) AND (col4 > 994.93 AND col0 > 237 OR col1 >= 855.36)))) AND col0 > 776 AND col0 > 3)))) AND col0 <= 517 OR (col0 = 416) OR col3 < 360 OR (((col0 IS NULL) AND col0 > 697))) OR col3 IN (645,443,242)) AND col0 <= 611) OR col0 IS NULL AND (col4 > 271.17) OR (col1 IN (562.29)) AND col3 <= 27)) OR (col0 > 793) OR col4 < 432.13))) AND col1 > 519.74 OR (col0 <= 466 OR col3 > 481 OR (col0 >= 889)))) OR ((col3 <= 639))))) OR ((((col1 > 375.37) AND col3 IS NULL OR col3 < 156))) AND col3 IS NULL AND ((col3 > 225))) OR ((col1 > 310.17)) OR col0 IS NULL AND col3 > 143 AND col3 < 489)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_534 UNION SELECT pk, col0 FROM view_2_tab2_534
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-1100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col0 < 152 OR (((col1 >= 904.26) AND ((col0 > 91))) OR col1 > 173.50 OR col3 < 641 AND col0 > 612 OR ((((col1 <= 635.91) OR col1 <= 876.74 OR col1 > 329.50 AND ((((((col3 < 593) OR ((col3 IN (447,628) OR (col3 = 133 OR col1 <= 679.69 OR ((col4 IN (SELECT col1 FROM tab2 WHERE col3 IS NULL)) OR col4 >= 155.19 OR col3 > 34)) AND col0 > 346 OR ((col0 < 288 AND ((col3 IN (880,830,371,244)) AND col3 > 773) OR col1 > 352.14 AND (col1 < 109.34) AND col0 > 553))) AND col3 IN (777,84,66)) AND col0 < 886 AND col1 < 871.84 AND col0 >= 29 AND col0 <= 932 AND ((((((col4 >= 321.72 AND col3 > 716)) AND col1 <= 1.70 AND col0 <= 248 OR ((col1 > 677.52)) AND col1 > 93.31 AND col0 <= 684 OR col1 >= 327.14 AND col1 IN (488.87,83.41,279.47) OR col0 >= 85 AND col0 >= 76) AND (col3 IS NULL) OR col3 < 699) AND (col0 < 314) AND col0 IN (SELECT col3 FROM tab2 WHERE ((col1 < 139.91 OR (col4 < 20.86) AND ((col3 <= 26)) AND ((((col0 < 834 OR col3 IN (478) OR col1 <= 991.87 AND col0 < 722 OR ((col3 IS NULL)) AND col3 >= 327 AND col4 > 563.50 AND col0 BETWEEN 596 AND 571 OR (col4 < 141.5 OR col1 BETWEEN 97.83 AND 357.92 AND col3 < 636 OR (col3 < 637 OR col1 > 365.73) OR (col4 IS NULL) AND ((col1 < 808.22 OR col3 = 254 AND col0 IS NULL OR col3 <= 834 OR col4 > 742.2 OR col3 > 660 OR col0 >= 301 AND (((col0 <= 733))) AND (col4 > 994.93 AND col0 > 237 OR col1 >= 855.36)))) AND col0 > 776 AND col0 > 3)))) AND col0 <= 517 OR (col0 = 416) OR col3 < 360 OR (((col0 IS NULL) AND col0 > 697))) OR col3 IN (645,443,242)) AND col0 <= 611) OR col0 IS NULL AND (col4 > 271.17) OR (col1 IN (562.29)) AND col3 <= 27)) OR (col0 > 793) OR col4 < 432.13))) AND col1 > 519.74 OR (col0 <= 466 OR col3 > 481 OR (col0 >= 889)))) OR ((col3 <= 639))))) OR ((((col1 > 375.37) AND col3 IS NULL OR col3 < 156))) AND col3 IS NULL AND ((col3 > 225))) OR ((col1 > 310.17)) OR col0 IS NULL AND col3 > 143 AND col3 < 489 ) AS tab2_534
----
100 values hashing to d7fd31c3916c207fd3117332326c3f37

query I rowsort label-1100-3
SELECT * FROM view_3_tab2_534
----
100 values hashing to d7fd31c3916c207fd3117332326c3f37

query I rowsort label-1100-3
SELECT pk FROM tab2 WHERE col0 < 152 OR (((col1 >= 904.26) AND ((col0 > 91))) OR col1 > 173.50 OR col3 < 641 AND col0 > 612 OR ((((col1 <= 635.91) OR col1 <= 876.74 OR col1 > 329.50 AND ((((((col3 < 593) OR ((col3 IN (447,628) OR (col3 = 133 OR col1 <= 679.69 OR ((col4 IN (SELECT col1 FROM tab2 WHERE col3 IS NULL)) OR col4 >= 155.19 OR col3 > 34)) AND col0 > 346 OR ((col0 < 288 AND ((col3 IN (880,830,371,244)) AND col3 > 773) OR col1 > 352.14 AND (col1 < 109.34) AND col0 > 553))) AND col3 IN (777,84,66)) AND col0 < 886 AND col1 < 871.84 AND col0 >= 29 AND col0 <= 932 AND ((((((col4 >= 321.72 AND col3 > 716)) AND col1 <= 1.70 AND col0 <= 248 OR ((col1 > 677.52)) AND col1 > 93.31 AND col0 <= 684 OR col1 >= 327.14 AND col1 IN (488.87,83.41,279.47) OR col0 >= 85 AND col0 >= 76) AND (col3 IS NULL) OR col3 < 699) AND (col0 < 314) AND col0 IN (SELECT col3 FROM tab2 WHERE ((col1 < 139.91 OR (col4 < 20.86) AND ((col3 <= 26)) AND ((((col0 < 834 OR col3 IN (478) OR col1 <= 991.87 AND col0 < 722 OR ((col3 IS NULL)) AND col3 >= 327 AND col4 > 563.50 AND col0 BETWEEN 596 AND 571 OR (col4 < 141.5 OR col1 BETWEEN 97.83 AND 357.92 AND col3 < 636 OR (col3 < 637 OR col1 > 365.73) OR (col4 IS NULL) AND ((col1 < 808.22 OR col3 = 254 AND col0 IS NULL OR col3 <= 834 OR col4 > 742.2 OR col3 > 660 OR col0 >= 301 AND (((col0 <= 733))) AND (col4 > 994.93 AND col0 > 237 OR col1 >= 855.36)))) AND col0 > 776 AND col0 > 3)))) AND col0 <= 517 OR (col0 = 416) OR col3 < 360 OR (((col0 IS NULL) AND col0 > 697))) OR col3 IN (645,443,242)) AND col0 <= 611) OR col0 IS NULL AND (col4 > 271.17) OR (col1 IN (562.29)) AND col3 <= 27)) OR (col0 > 793) OR col4 < 432.13))) AND col1 > 519.74 OR (col0 <= 466 OR col3 > 481 OR (col0 >= 889)))) OR ((col3 <= 639))))) OR ((((col1 > 375.37) AND col3 IS NULL OR col3 < 156))) AND col3 IS NULL AND ((col3 > 225))) OR ((col1 > 310.17)) OR col0 IS NULL AND col3 > 143 AND col3 < 489
----
100 values hashing to d7fd31c3916c207fd3117332326c3f37

statement ok
DROP VIEW view_1_tab2_534

statement ok
DROP VIEW view_2_tab2_534

statement ok
DROP VIEW view_3_tab2_534

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab3_534 AS SELECT pk, col0 FROM tab3 WHERE col0 < 152 OR (((col1 >= 904.26) AND ((col0 > 91))) OR col1 > 173.50 OR col3 < 641 AND col0 > 612 OR ((((col1 <= 635.91) OR col1 <= 876.74 OR col1 > 329.50 AND ((((((col3 < 593) OR ((col3 IN (447,628) OR (col3 = 133 OR col1 <= 679.69 OR ((col4 IN (SELECT col1 FROM tab3 WHERE col3 IS NULL)) OR col4 >= 155.19 OR col3 > 34)) AND col0 > 346 OR ((col0 < 288 AND ((col3 IN (880,830,371,244)) AND col3 > 773) OR col1 > 352.14 AND (col1 < 109.34) AND col0 > 553))) AND col3 IN (777,84,66)) AND col0 < 886 AND col1 < 871.84 AND col0 >= 29 AND col0 <= 932 AND ((((((col4 >= 321.72 AND col3 > 716)) AND col1 <= 1.70 AND col0 <= 248 OR ((col1 > 677.52)) AND col1 > 93.31 AND col0 <= 684 OR col1 >= 327.14 AND col1 IN (488.87,83.41,279.47) OR col0 >= 85 AND col0 >= 76) AND (col3 IS NULL) OR col3 < 699) AND (col0 < 314) AND col0 IN (SELECT col3 FROM tab3 WHERE ((col1 < 139.91 OR (col4 < 20.86) AND ((col3 <= 26)) AND ((((col0 < 834 OR col3 IN (478) OR col1 <= 991.87 AND col0 < 722 OR ((col3 IS NULL)) AND col3 >= 327 AND col4 > 563.50 AND col0 BETWEEN 596 AND 571 OR (col4 < 141.5 OR col1 BETWEEN 97.83 AND 357.92 AND col3 < 636 OR (col3 < 637 OR col1 > 365.73) OR (col4 IS NULL) AND ((col1 < 808.22 OR col3 = 254 AND col0 IS NULL OR col3 <= 834 OR col4 > 742.2 OR col3 > 660 OR col0 >= 301 AND (((col0 <= 733))) AND (col4 > 994.93 AND col0 > 237 OR col1 >= 855.36)))) AND col0 > 776 AND col0 > 3)))) AND col0 <= 517 OR (col0 = 416) OR col3 < 360 OR (((col0 IS NULL) AND col0 > 697))) OR col3 IN (645,443,242)) AND col0 <= 611) OR col0 IS NULL AND (col4 > 271.17) OR (col1 IN (562.29)) AND col3 <= 27)) OR (col0 > 793) OR col4 < 432.13))) AND col1 > 519.74 OR (col0 <= 466 OR col3 > 481 OR (col0 >= 889)))) OR ((col3 <= 639))))) OR ((((col1 > 375.37) AND col3 IS NULL OR col3 < 156))) AND col3 IS NULL AND ((col3 > 225))) OR ((col1 > 310.17)) OR col0 IS NULL AND col3 > 143 AND col3 < 489

statement ok
CREATE VIEW view_2_tab3_534 AS SELECT pk, col0 FROM tab3 WHERE NOT (col0 < 152 OR (((col1 >= 904.26) AND ((col0 > 91))) OR col1 > 173.50 OR col3 < 641 AND col0 > 612 OR ((((col1 <= 635.91) OR col1 <= 876.74 OR col1 > 329.50 AND ((((((col3 < 593) OR ((col3 IN (447,628) OR (col3 = 133 OR col1 <= 679.69 OR ((col4 IN (SELECT col1 FROM tab3 WHERE col3 IS NULL)) OR col4 >= 155.19 OR col3 > 34)) AND col0 > 346 OR ((col0 < 288 AND ((col3 IN (880,830,371,244)) AND col3 > 773) OR col1 > 352.14 AND (col1 < 109.34) AND col0 > 553))) AND col3 IN (777,84,66)) AND col0 < 886 AND col1 < 871.84 AND col0 >= 29 AND col0 <= 932 AND ((((((col4 >= 321.72 AND col3 > 716)) AND col1 <= 1.70 AND col0 <= 248 OR ((col1 > 677.52)) AND col1 > 93.31 AND col0 <= 684 OR col1 >= 327.14 AND col1 IN (488.87,83.41,279.47) OR col0 >= 85 AND col0 >= 76) AND (col3 IS NULL) OR col3 < 699) AND (col0 < 314) AND col0 IN (SELECT col3 FROM tab3 WHERE ((col1 < 139.91 OR (col4 < 20.86) AND ((col3 <= 26)) AND ((((col0 < 834 OR col3 IN (478) OR col1 <= 991.87 AND col0 < 722 OR ((col3 IS NULL)) AND col3 >= 327 AND col4 > 563.50 AND col0 BETWEEN 596 AND 571 OR (col4 < 141.5 OR col1 BETWEEN 97.83 AND 357.92 AND col3 < 636 OR (col3 < 637 OR col1 > 365.73) OR (col4 IS NULL) AND ((col1 < 808.22 OR col3 = 254 AND col0 IS NULL OR col3 <= 834 OR col4 > 742.2 OR col3 > 660 OR col0 >= 301 AND (((col0 <= 733))) AND (col4 > 994.93 AND col0 > 237 OR col1 >= 855.36)))) AND col0 > 776 AND col0 > 3)))) AND col0 <= 517 OR (col0 = 416) OR col3 < 360 OR (((col0 IS NULL) AND col0 > 697))) OR col3 IN (645,443,242)) AND col0 <= 611) OR col0 IS NULL AND (col4 > 271.17) OR (col1 IN (562.29)) AND col3 <= 27)) OR (col0 > 793) OR col4 < 432.13))) AND col1 > 519.74 OR (col0 <= 466 OR col3 > 481 OR (col0 >= 889)))) OR ((col3 <= 639))))) OR ((((col1 > 375.37) AND col3 IS NULL OR col3 < 156))) AND col3 IS NULL AND ((col3 > 225))) OR ((col1 > 310.17)) OR col0 IS NULL AND col3 > 143 AND col3 < 489)

statement ok
CREATE VIEW view_3_tab3_534 AS SELECT pk FROM view_1_tab3_534

query II rowsort label-1100-1
SELECT pk, col0 FROM tab3 WHERE col0 < 152 OR (((col1 >= 904.26) AND ((col0 > 91))) OR col1 > 173.50 OR col3 < 641 AND col0 > 612 OR ((((col1 <= 635.91) OR col1 <= 876.74 OR col1 > 329.50 AND ((((((col3 < 593) OR ((col3 IN (447,628) OR (col3 = 133 OR col1 <= 679.69 OR ((col4 IN (SELECT col1 FROM tab3 WHERE col3 IS NULL)) OR col4 >= 155.19 OR col3 > 34)) AND col0 > 346 OR ((col0 < 288 AND ((col3 IN (880,830,371,244)) AND col3 > 773) OR col1 > 352.14 AND (col1 < 109.34) AND col0 > 553))) AND col3 IN (777,84,66)) AND col0 < 886 AND col1 < 871.84 AND col0 >= 29 AND col0 <= 932 AND ((((((col4 >= 321.72 AND col3 > 716)) AND col1 <= 1.70 AND col0 <= 248 OR ((col1 > 677.52)) AND col1 > 93.31 AND col0 <= 684 OR col1 >= 327.14 AND col1 IN (488.87,83.41,279.47) OR col0 >= 85 AND col0 >= 76) AND (col3 IS NULL) OR col3 < 699) AND (col0 < 314) AND col0 IN (SELECT col3 FROM tab3 WHERE ((col1 < 139.91 OR (col4 < 20.86) AND ((col3 <= 26)) AND ((((col0 < 834 OR col3 IN (478) OR col1 <= 991.87 AND col0 < 722 OR ((col3 IS NULL)) AND col3 >= 327 AND col4 > 563.50 AND col0 BETWEEN 596 AND 571 OR (col4 < 141.5 OR col1 BETWEEN 97.83 AND 357.92 AND col3 < 636 OR (col3 < 637 OR col1 > 365.73) OR (col4 IS NULL) AND ((col1 < 808.22 OR col3 = 254 AND col0 IS NULL OR col3 <= 834 OR col4 > 742.2 OR col3 > 660 OR col0 >= 301 AND (((col0 <= 733))) AND (col4 > 994.93 AND col0 > 237 OR col1 >= 855.36)))) AND col0 > 776 AND col0 > 3)))) AND col0 <= 517 OR (col0 = 416) OR col3 < 360 OR (((col0 IS NULL) AND col0 > 697))) OR col3 IN (645,443,242)) AND col0 <= 611) OR col0 IS NULL AND (col4 > 271.17) OR (col1 IN (562.29)) AND col3 <= 27)) OR (col0 > 793) OR col4 < 432.13))) AND col1 > 519.74 OR (col0 <= 466 OR col3 > 481 OR (col0 >= 889)))) OR ((col3 <= 639))))) OR ((((col1 > 375.37) AND col3 IS NULL OR col3 < 156))) AND col3 IS NULL AND ((col3 > 225))) OR ((col1 > 310.17)) OR col0 IS NULL AND col3 > 143 AND col3 < 489
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-1100-2
SELECT pk, col0 FROM tab3 WHERE NOT (col0 < 152 OR (((col1 >= 904.26) AND ((col0 > 91))) OR col1 > 173.50 OR col3 < 641 AND col0 > 612 OR ((((col1 <= 635.91) OR col1 <= 876.74 OR col1 > 329.50 AND ((((((col3 < 593) OR ((col3 IN (447,628) OR (col3 = 133 OR col1 <= 679.69 OR ((col4 IN (SELECT col1 FROM tab3 WHERE col3 IS NULL)) OR col4 >= 155.19 OR col3 > 34)) AND col0 > 346 OR ((col0 < 288 AND ((col3 IN (880,830,371,244)) AND col3 > 773) OR col1 > 352.14 AND (col1 < 109.34) AND col0 > 553))) AND col3 IN (777,84,66)) AND col0 < 886 AND col1 < 871.84 AND col0 >= 29 AND col0 <= 932 AND ((((((col4 >= 321.72 AND col3 > 716)) AND col1 <= 1.70 AND col0 <= 248 OR ((col1 > 677.52)) AND col1 > 93.31 AND col0 <= 684 OR col1 >= 327.14 AND col1 IN (488.87,83.41,279.47) OR col0 >= 85 AND col0 >= 76) AND (col3 IS NULL) OR col3 < 699) AND (col0 < 314) AND col0 IN (SELECT col3 FROM tab3 WHERE ((col1 < 139.91 OR (col4 < 20.86) AND ((col3 <= 26)) AND ((((col0 < 834 OR col3 IN (478) OR col1 <= 991.87 AND col0 < 722 OR ((col3 IS NULL)) AND col3 >= 327 AND col4 > 563.50 AND col0 BETWEEN 596 AND 571 OR (col4 < 141.5 OR col1 BETWEEN 97.83 AND 357.92 AND col3 < 636 OR (col3 < 637 OR col1 > 365.73) OR (col4 IS NULL) AND ((col1 < 808.22 OR col3 = 254 AND col0 IS NULL OR col3 <= 834 OR col4 > 742.2 OR col3 > 660 OR col0 >= 301 AND (((col0 <= 733))) AND (col4 > 994.93 AND col0 > 237 OR col1 >= 855.36)))) AND col0 > 776 AND col0 > 3)))) AND col0 <= 517 OR (col0 = 416) OR col3 < 360 OR (((col0 IS NULL) AND col0 > 697))) OR col3 IN (645,443,242)) AND col0 <= 611) OR col0 IS NULL AND (col4 > 271.17) OR (col1 IN (562.29)) AND col3 <= 27)) OR (col0 > 793) OR col4 < 432.13))) AND col1 > 519.74 OR (col0 <= 466 OR col3 > 481 OR (col0 >= 889)))) OR ((col3 <= 639))))) OR ((((col1 > 375.37) AND col3 IS NULL OR col3 < 156))) AND col3 IS NULL AND ((col3 > 225))) OR ((col1 > 310.17)) OR col0 IS NULL AND col3 > 143 AND col3 < 489)
----

query II rowsort label-1100-1
SELECT pk, col0 FROM view_1_tab3_534
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-1100-2
SELECT pk, col0 FROM view_2_tab3_534
----

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col0 < 152 OR (((col1 >= 904.26) AND ((col0 > 91))) OR col1 > 173.50 OR col3 < 641 AND col0 > 612 OR ((((col1 <= 635.91) OR col1 <= 876.74 OR col1 > 329.50 AND ((((((col3 < 593) OR ((col3 IN (447,628) OR (col3 = 133 OR col1 <= 679.69 OR ((col4 IN (SELECT col1 FROM tab3 WHERE col3 IS NULL)) OR col4 >= 155.19 OR col3 > 34)) AND col0 > 346 OR ((col0 < 288 AND ((col3 IN (880,830,371,244)) AND col3 > 773) OR col1 > 352.14 AND (col1 < 109.34) AND col0 > 553))) AND col3 IN (777,84,66)) AND col0 < 886 AND col1 < 871.84 AND col0 >= 29 AND col0 <= 932 AND ((((((col4 >= 321.72 AND col3 > 716)) AND col1 <= 1.70 AND col0 <= 248 OR ((col1 > 677.52)) AND col1 > 93.31 AND col0 <= 684 OR col1 >= 327.14 AND col1 IN (488.87,83.41,279.47) OR col0 >= 85 AND col0 >= 76) AND (col3 IS NULL) OR col3 < 699) AND (col0 < 314) AND col0 IN (SELECT col3 FROM tab3 WHERE ((col1 < 139.91 OR (col4 < 20.86) AND ((col3 <= 26)) AND ((((col0 < 834 OR col3 IN (478) OR col1 <= 991.87 AND col0 < 722 OR ((col3 IS NULL)) AND col3 >= 327 AND col4 > 563.50 AND col0 BETWEEN 596 AND 571 OR (col4 < 141.5 OR col1 BETWEEN 97.83 AND 357.92 AND col3 < 636 OR (col3 < 637 OR col1 > 365.73) OR (col4 IS NULL) AND ((col1 < 808.22 OR col3 = 254 AND col0 IS NULL OR col3 <= 834 OR col4 > 742.2 OR col3 > 660 OR col0 >= 301 AND (((col0 <= 733))) AND (col4 > 994.93 AND col0 > 237 OR col1 >= 855.36)))) AND col0 > 776 AND col0 > 3)))) AND col0 <= 517 OR (col0 = 416) OR col3 < 360 OR (((col0 IS NULL) AND col0 > 697))) OR col3 IN (645,443,242)) AND col0 <= 611) OR col0 IS NULL AND (col4 > 271.17) OR (col1 IN (562.29)) AND col3 <= 27)) OR (col0 > 793) OR col4 < 432.13))) AND col1 > 519.74 OR (col0 <= 466 OR col3 > 481 OR (col0 >= 889)))) OR ((col3 <= 639))))) OR ((((col1 > 375.37) AND col3 IS NULL OR col3 < 156))) AND col3 IS NULL AND ((col3 > 225))) OR ((col1 > 310.17)) OR col0 IS NULL AND col3 > 143 AND col3 < 489 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col0 < 152 OR (((col1 >= 904.26) AND ((col0 > 91))) OR col1 > 173.50 OR col3 < 641 AND col0 > 612 OR ((((col1 <= 635.91) OR col1 <= 876.74 OR col1 > 329.50 AND ((((((col3 < 593) OR ((col3 IN (447,628) OR (col3 = 133 OR col1 <= 679.69 OR ((col4 IN (SELECT col1 FROM tab3 WHERE col3 IS NULL)) OR col4 >= 155.19 OR col3 > 34)) AND col0 > 346 OR ((col0 < 288 AND ((col3 IN (880,830,371,244)) AND col3 > 773) OR col1 > 352.14 AND (col1 < 109.34) AND col0 > 553))) AND col3 IN (777,84,66)) AND col0 < 886 AND col1 < 871.84 AND col0 >= 29 AND col0 <= 932 AND ((((((col4 >= 321.72 AND col3 > 716)) AND col1 <= 1.70 AND col0 <= 248 OR ((col1 > 677.52)) AND col1 > 93.31 AND col0 <= 684 OR col1 >= 327.14 AND col1 IN (488.87,83.41,279.47) OR col0 >= 85 AND col0 >= 76) AND (col3 IS NULL) OR col3 < 699) AND (col0 < 314) AND col0 IN (SELECT col3 FROM tab3 WHERE ((col1 < 139.91 OR (col4 < 20.86) AND ((col3 <= 26)) AND ((((col0 < 834 OR col3 IN (478) OR col1 <= 991.87 AND col0 < 722 OR ((col3 IS NULL)) AND col3 >= 327 AND col4 > 563.50 AND col0 BETWEEN 596 AND 571 OR (col4 < 141.5 OR col1 BETWEEN 97.83 AND 357.92 AND col3 < 636 OR (col3 < 637 OR col1 > 365.73) OR (col4 IS NULL) AND ((col1 < 808.22 OR col3 = 254 AND col0 IS NULL OR col3 <= 834 OR col4 > 742.2 OR col3 > 660 OR col0 >= 301 AND (((col0 <= 733))) AND (col4 > 994.93 AND col0 > 237 OR col1 >= 855.36)))) AND col0 > 776 AND col0 > 3)))) AND col0 <= 517 OR (col0 = 416) OR col3 < 360 OR (((col0 IS NULL) AND col0 > 697))) OR col3 IN (645,443,242)) AND col0 <= 611) OR col0 IS NULL AND (col4 > 271.17) OR (col1 IN (562.29)) AND col3 <= 27)) OR (col0 > 793) OR col4 < 432.13))) AND col1 > 519.74 OR (col0 <= 466 OR col3 > 481 OR (col0 >= 889)))) OR ((col3 <= 639))))) OR ((((col1 > 375.37) AND col3 IS NULL OR col3 < 156))) AND col3 IS NULL AND ((col3 > 225))) OR ((col1 > 310.17)) OR col0 IS NULL AND col3 > 143 AND col3 < 489)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_534 UNION ALL SELECT pk, col0 FROM view_2_tab3_534
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col0 < 152 OR (((col1 >= 904.26) AND ((col0 > 91))) OR col1 > 173.50 OR col3 < 641 AND col0 > 612 OR ((((col1 <= 635.91) OR col1 <= 876.74 OR col1 > 329.50 AND ((((((col3 < 593) OR ((col3 IN (447,628) OR (col3 = 133 OR col1 <= 679.69 OR ((col4 IN (SELECT col1 FROM tab3 WHERE col3 IS NULL)) OR col4 >= 155.19 OR col3 > 34)) AND col0 > 346 OR ((col0 < 288 AND ((col3 IN (880,830,371,244)) AND col3 > 773) OR col1 > 352.14 AND (col1 < 109.34) AND col0 > 553))) AND col3 IN (777,84,66)) AND col0 < 886 AND col1 < 871.84 AND col0 >= 29 AND col0 <= 932 AND ((((((col4 >= 321.72 AND col3 > 716)) AND col1 <= 1.70 AND col0 <= 248 OR ((col1 > 677.52)) AND col1 > 93.31 AND col0 <= 684 OR col1 >= 327.14 AND col1 IN (488.87,83.41,279.47) OR col0 >= 85 AND col0 >= 76) AND (col3 IS NULL) OR col3 < 699) AND (col0 < 314) AND col0 IN (SELECT col3 FROM tab3 WHERE ((col1 < 139.91 OR (col4 < 20.86) AND ((col3 <= 26)) AND ((((col0 < 834 OR col3 IN (478) OR col1 <= 991.87 AND col0 < 722 OR ((col3 IS NULL)) AND col3 >= 327 AND col4 > 563.50 AND col0 BETWEEN 596 AND 571 OR (col4 < 141.5 OR col1 BETWEEN 97.83 AND 357.92 AND col3 < 636 OR (col3 < 637 OR col1 > 365.73) OR (col4 IS NULL) AND ((col1 < 808.22 OR col3 = 254 AND col0 IS NULL OR col3 <= 834 OR col4 > 742.2 OR col3 > 660 OR col0 >= 301 AND (((col0 <= 733))) AND (col4 > 994.93 AND col0 > 237 OR col1 >= 855.36)))) AND col0 > 776 AND col0 > 3)))) AND col0 <= 517 OR (col0 = 416) OR col3 < 360 OR (((col0 IS NULL) AND col0 > 697))) OR col3 IN (645,443,242)) AND col0 <= 611) OR col0 IS NULL AND (col4 > 271.17) OR (col1 IN (562.29)) AND col3 <= 27)) OR (col0 > 793) OR col4 < 432.13))) AND col1 > 519.74 OR (col0 <= 466 OR col3 > 481 OR (col0 >= 889)))) OR ((col3 <= 639))))) OR ((((col1 > 375.37) AND col3 IS NULL OR col3 < 156))) AND col3 IS NULL AND ((col3 > 225))) OR ((col1 > 310.17)) OR col0 IS NULL AND col3 > 143 AND col3 < 489 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col0 < 152 OR (((col1 >= 904.26) AND ((col0 > 91))) OR col1 > 173.50 OR col3 < 641 AND col0 > 612 OR ((((col1 <= 635.91) OR col1 <= 876.74 OR col1 > 329.50 AND ((((((col3 < 593) OR ((col3 IN (447,628) OR (col3 = 133 OR col1 <= 679.69 OR ((col4 IN (SELECT col1 FROM tab3 WHERE col3 IS NULL)) OR col4 >= 155.19 OR col3 > 34)) AND col0 > 346 OR ((col0 < 288 AND ((col3 IN (880,830,371,244)) AND col3 > 773) OR col1 > 352.14 AND (col1 < 109.34) AND col0 > 553))) AND col3 IN (777,84,66)) AND col0 < 886 AND col1 < 871.84 AND col0 >= 29 AND col0 <= 932 AND ((((((col4 >= 321.72 AND col3 > 716)) AND col1 <= 1.70 AND col0 <= 248 OR ((col1 > 677.52)) AND col1 > 93.31 AND col0 <= 684 OR col1 >= 327.14 AND col1 IN (488.87,83.41,279.47) OR col0 >= 85 AND col0 >= 76) AND (col3 IS NULL) OR col3 < 699) AND (col0 < 314) AND col0 IN (SELECT col3 FROM tab3 WHERE ((col1 < 139.91 OR (col4 < 20.86) AND ((col3 <= 26)) AND ((((col0 < 834 OR col3 IN (478) OR col1 <= 991.87 AND col0 < 722 OR ((col3 IS NULL)) AND col3 >= 327 AND col4 > 563.50 AND col0 BETWEEN 596 AND 571 OR (col4 < 141.5 OR col1 BETWEEN 97.83 AND 357.92 AND col3 < 636 OR (col3 < 637 OR col1 > 365.73) OR (col4 IS NULL) AND ((col1 < 808.22 OR col3 = 254 AND col0 IS NULL OR col3 <= 834 OR col4 > 742.2 OR col3 > 660 OR col0 >= 301 AND (((col0 <= 733))) AND (col4 > 994.93 AND col0 > 237 OR col1 >= 855.36)))) AND col0 > 776 AND col0 > 3)))) AND col0 <= 517 OR (col0 = 416) OR col3 < 360 OR (((col0 IS NULL) AND col0 > 697))) OR col3 IN (645,443,242)) AND col0 <= 611) OR col0 IS NULL AND (col4 > 271.17) OR (col1 IN (562.29)) AND col3 <= 27)) OR (col0 > 793) OR col4 < 432.13))) AND col1 > 519.74 OR (col0 <= 466 OR col3 > 481 OR (col0 >= 889)))) OR ((col3 <= 639))))) OR ((((col1 > 375.37) AND col3 IS NULL OR col3 < 156))) AND col3 IS NULL AND ((col3 > 225))) OR ((col1 > 310.17)) OR col0 IS NULL AND col3 > 143 AND col3 < 489)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_534 UNION SELECT pk, col0 FROM view_2_tab3_534
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-1100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col0 < 152 OR (((col1 >= 904.26) AND ((col0 > 91))) OR col1 > 173.50 OR col3 < 641 AND col0 > 612 OR ((((col1 <= 635.91) OR col1 <= 876.74 OR col1 > 329.50 AND ((((((col3 < 593) OR ((col3 IN (447,628) OR (col3 = 133 OR col1 <= 679.69 OR ((col4 IN (SELECT col1 FROM tab3 WHERE col3 IS NULL)) OR col4 >= 155.19 OR col3 > 34)) AND col0 > 346 OR ((col0 < 288 AND ((col3 IN (880,830,371,244)) AND col3 > 773) OR col1 > 352.14 AND (col1 < 109.34) AND col0 > 553))) AND col3 IN (777,84,66)) AND col0 < 886 AND col1 < 871.84 AND col0 >= 29 AND col0 <= 932 AND ((((((col4 >= 321.72 AND col3 > 716)) AND col1 <= 1.70 AND col0 <= 248 OR ((col1 > 677.52)) AND col1 > 93.31 AND col0 <= 684 OR col1 >= 327.14 AND col1 IN (488.87,83.41,279.47) OR col0 >= 85 AND col0 >= 76) AND (col3 IS NULL) OR col3 < 699) AND (col0 < 314) AND col0 IN (SELECT col3 FROM tab3 WHERE ((col1 < 139.91 OR (col4 < 20.86) AND ((col3 <= 26)) AND ((((col0 < 834 OR col3 IN (478) OR col1 <= 991.87 AND col0 < 722 OR ((col3 IS NULL)) AND col3 >= 327 AND col4 > 563.50 AND col0 BETWEEN 596 AND 571 OR (col4 < 141.5 OR col1 BETWEEN 97.83 AND 357.92 AND col3 < 636 OR (col3 < 637 OR col1 > 365.73) OR (col4 IS NULL) AND ((col1 < 808.22 OR col3 = 254 AND col0 IS NULL OR col3 <= 834 OR col4 > 742.2 OR col3 > 660 OR col0 >= 301 AND (((col0 <= 733))) AND (col4 > 994.93 AND col0 > 237 OR col1 >= 855.36)))) AND col0 > 776 AND col0 > 3)))) AND col0 <= 517 OR (col0 = 416) OR col3 < 360 OR (((col0 IS NULL) AND col0 > 697))) OR col3 IN (645,443,242)) AND col0 <= 611) OR col0 IS NULL AND (col4 > 271.17) OR (col1 IN (562.29)) AND col3 <= 27)) OR (col0 > 793) OR col4 < 432.13))) AND col1 > 519.74 OR (col0 <= 466 OR col3 > 481 OR (col0 >= 889)))) OR ((col3 <= 639))))) OR ((((col1 > 375.37) AND col3 IS NULL OR col3 < 156))) AND col3 IS NULL AND ((col3 > 225))) OR ((col1 > 310.17)) OR col0 IS NULL AND col3 > 143 AND col3 < 489 ) AS tab3_534
----
100 values hashing to d7fd31c3916c207fd3117332326c3f37

query I rowsort label-1100-3
SELECT * FROM view_3_tab3_534
----
100 values hashing to d7fd31c3916c207fd3117332326c3f37

query I rowsort label-1100-3
SELECT pk FROM tab3 WHERE col0 < 152 OR (((col1 >= 904.26) AND ((col0 > 91))) OR col1 > 173.50 OR col3 < 641 AND col0 > 612 OR ((((col1 <= 635.91) OR col1 <= 876.74 OR col1 > 329.50 AND ((((((col3 < 593) OR ((col3 IN (447,628) OR (col3 = 133 OR col1 <= 679.69 OR ((col4 IN (SELECT col1 FROM tab3 WHERE col3 IS NULL)) OR col4 >= 155.19 OR col3 > 34)) AND col0 > 346 OR ((col0 < 288 AND ((col3 IN (880,830,371,244)) AND col3 > 773) OR col1 > 352.14 AND (col1 < 109.34) AND col0 > 553))) AND col3 IN (777,84,66)) AND col0 < 886 AND col1 < 871.84 AND col0 >= 29 AND col0 <= 932 AND ((((((col4 >= 321.72 AND col3 > 716)) AND col1 <= 1.70 AND col0 <= 248 OR ((col1 > 677.52)) AND col1 > 93.31 AND col0 <= 684 OR col1 >= 327.14 AND col1 IN (488.87,83.41,279.47) OR col0 >= 85 AND col0 >= 76) AND (col3 IS NULL) OR col3 < 699) AND (col0 < 314) AND col0 IN (SELECT col3 FROM tab3 WHERE ((col1 < 139.91 OR (col4 < 20.86) AND ((col3 <= 26)) AND ((((col0 < 834 OR col3 IN (478) OR col1 <= 991.87 AND col0 < 722 OR ((col3 IS NULL)) AND col3 >= 327 AND col4 > 563.50 AND col0 BETWEEN 596 AND 571 OR (col4 < 141.5 OR col1 BETWEEN 97.83 AND 357.92 AND col3 < 636 OR (col3 < 637 OR col1 > 365.73) OR (col4 IS NULL) AND ((col1 < 808.22 OR col3 = 254 AND col0 IS NULL OR col3 <= 834 OR col4 > 742.2 OR col3 > 660 OR col0 >= 301 AND (((col0 <= 733))) AND (col4 > 994.93 AND col0 > 237 OR col1 >= 855.36)))) AND col0 > 776 AND col0 > 3)))) AND col0 <= 517 OR (col0 = 416) OR col3 < 360 OR (((col0 IS NULL) AND col0 > 697))) OR col3 IN (645,443,242)) AND col0 <= 611) OR col0 IS NULL AND (col4 > 271.17) OR (col1 IN (562.29)) AND col3 <= 27)) OR (col0 > 793) OR col4 < 432.13))) AND col1 > 519.74 OR (col0 <= 466 OR col3 > 481 OR (col0 >= 889)))) OR ((col3 <= 639))))) OR ((((col1 > 375.37) AND col3 IS NULL OR col3 < 156))) AND col3 IS NULL AND ((col3 > 225))) OR ((col1 > 310.17)) OR col0 IS NULL AND col3 > 143 AND col3 < 489
----
100 values hashing to d7fd31c3916c207fd3117332326c3f37

statement ok
DROP VIEW view_1_tab3_534

statement ok
DROP VIEW view_2_tab3_534

statement ok
DROP VIEW view_3_tab3_534

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab4_534 AS SELECT pk, col0 FROM tab4 WHERE col0 < 152 OR (((col1 >= 904.26) AND ((col0 > 91))) OR col1 > 173.50 OR col3 < 641 AND col0 > 612 OR ((((col1 <= 635.91) OR col1 <= 876.74 OR col1 > 329.50 AND ((((((col3 < 593) OR ((col3 IN (447,628) OR (col3 = 133 OR col1 <= 679.69 OR ((col4 IN (SELECT col1 FROM tab4 WHERE col3 IS NULL)) OR col4 >= 155.19 OR col3 > 34)) AND col0 > 346 OR ((col0 < 288 AND ((col3 IN (880,830,371,244)) AND col3 > 773) OR col1 > 352.14 AND (col1 < 109.34) AND col0 > 553))) AND col3 IN (777,84,66)) AND col0 < 886 AND col1 < 871.84 AND col0 >= 29 AND col0 <= 932 AND ((((((col4 >= 321.72 AND col3 > 716)) AND col1 <= 1.70 AND col0 <= 248 OR ((col1 > 677.52)) AND col1 > 93.31 AND col0 <= 684 OR col1 >= 327.14 AND col1 IN (488.87,83.41,279.47) OR col0 >= 85 AND col0 >= 76) AND (col3 IS NULL) OR col3 < 699) AND (col0 < 314) AND col0 IN (SELECT col3 FROM tab4 WHERE ((col1 < 139.91 OR (col4 < 20.86) AND ((col3 <= 26)) AND ((((col0 < 834 OR col3 IN (478) OR col1 <= 991.87 AND col0 < 722 OR ((col3 IS NULL)) AND col3 >= 327 AND col4 > 563.50 AND col0 BETWEEN 596 AND 571 OR (col4 < 141.5 OR col1 BETWEEN 97.83 AND 357.92 AND col3 < 636 OR (col3 < 637 OR col1 > 365.73) OR (col4 IS NULL) AND ((col1 < 808.22 OR col3 = 254 AND col0 IS NULL OR col3 <= 834 OR col4 > 742.2 OR col3 > 660 OR col0 >= 301 AND (((col0 <= 733))) AND (col4 > 994.93 AND col0 > 237 OR col1 >= 855.36)))) AND col0 > 776 AND col0 > 3)))) AND col0 <= 517 OR (col0 = 416) OR col3 < 360 OR (((col0 IS NULL) AND col0 > 697))) OR col3 IN (645,443,242)) AND col0 <= 611) OR col0 IS NULL AND (col4 > 271.17) OR (col1 IN (562.29)) AND col3 <= 27)) OR (col0 > 793) OR col4 < 432.13))) AND col1 > 519.74 OR (col0 <= 466 OR col3 > 481 OR (col0 >= 889)))) OR ((col3 <= 639))))) OR ((((col1 > 375.37) AND col3 IS NULL OR col3 < 156))) AND col3 IS NULL AND ((col3 > 225))) OR ((col1 > 310.17)) OR col0 IS NULL AND col3 > 143 AND col3 < 489

statement ok
CREATE VIEW view_2_tab4_534 AS SELECT pk, col0 FROM tab4 WHERE NOT (col0 < 152 OR (((col1 >= 904.26) AND ((col0 > 91))) OR col1 > 173.50 OR col3 < 641 AND col0 > 612 OR ((((col1 <= 635.91) OR col1 <= 876.74 OR col1 > 329.50 AND ((((((col3 < 593) OR ((col3 IN (447,628) OR (col3 = 133 OR col1 <= 679.69 OR ((col4 IN (SELECT col1 FROM tab4 WHERE col3 IS NULL)) OR col4 >= 155.19 OR col3 > 34)) AND col0 > 346 OR ((col0 < 288 AND ((col3 IN (880,830,371,244)) AND col3 > 773) OR col1 > 352.14 AND (col1 < 109.34) AND col0 > 553))) AND col3 IN (777,84,66)) AND col0 < 886 AND col1 < 871.84 AND col0 >= 29 AND col0 <= 932 AND ((((((col4 >= 321.72 AND col3 > 716)) AND col1 <= 1.70 AND col0 <= 248 OR ((col1 > 677.52)) AND col1 > 93.31 AND col0 <= 684 OR col1 >= 327.14 AND col1 IN (488.87,83.41,279.47) OR col0 >= 85 AND col0 >= 76) AND (col3 IS NULL) OR col3 < 699) AND (col0 < 314) AND col0 IN (SELECT col3 FROM tab4 WHERE ((col1 < 139.91 OR (col4 < 20.86) AND ((col3 <= 26)) AND ((((col0 < 834 OR col3 IN (478) OR col1 <= 991.87 AND col0 < 722 OR ((col3 IS NULL)) AND col3 >= 327 AND col4 > 563.50 AND col0 BETWEEN 596 AND 571 OR (col4 < 141.5 OR col1 BETWEEN 97.83 AND 357.92 AND col3 < 636 OR (col3 < 637 OR col1 > 365.73) OR (col4 IS NULL) AND ((col1 < 808.22 OR col3 = 254 AND col0 IS NULL OR col3 <= 834 OR col4 > 742.2 OR col3 > 660 OR col0 >= 301 AND (((col0 <= 733))) AND (col4 > 994.93 AND col0 > 237 OR col1 >= 855.36)))) AND col0 > 776 AND col0 > 3)))) AND col0 <= 517 OR (col0 = 416) OR col3 < 360 OR (((col0 IS NULL) AND col0 > 697))) OR col3 IN (645,443,242)) AND col0 <= 611) OR col0 IS NULL AND (col4 > 271.17) OR (col1 IN (562.29)) AND col3 <= 27)) OR (col0 > 793) OR col4 < 432.13))) AND col1 > 519.74 OR (col0 <= 466 OR col3 > 481 OR (col0 >= 889)))) OR ((col3 <= 639))))) OR ((((col1 > 375.37) AND col3 IS NULL OR col3 < 156))) AND col3 IS NULL AND ((col3 > 225))) OR ((col1 > 310.17)) OR col0 IS NULL AND col3 > 143 AND col3 < 489)

statement ok
CREATE VIEW view_3_tab4_534 AS SELECT pk FROM view_1_tab4_534

query II rowsort label-1100-1
SELECT pk, col0 FROM tab4 WHERE col0 < 152 OR (((col1 >= 904.26) AND ((col0 > 91))) OR col1 > 173.50 OR col3 < 641 AND col0 > 612 OR ((((col1 <= 635.91) OR col1 <= 876.74 OR col1 > 329.50 AND ((((((col3 < 593) OR ((col3 IN (447,628) OR (col3 = 133 OR col1 <= 679.69 OR ((col4 IN (SELECT col1 FROM tab4 WHERE col3 IS NULL)) OR col4 >= 155.19 OR col3 > 34)) AND col0 > 346 OR ((col0 < 288 AND ((col3 IN (880,830,371,244)) AND col3 > 773) OR col1 > 352.14 AND (col1 < 109.34) AND col0 > 553))) AND col3 IN (777,84,66)) AND col0 < 886 AND col1 < 871.84 AND col0 >= 29 AND col0 <= 932 AND ((((((col4 >= 321.72 AND col3 > 716)) AND col1 <= 1.70 AND col0 <= 248 OR ((col1 > 677.52)) AND col1 > 93.31 AND col0 <= 684 OR col1 >= 327.14 AND col1 IN (488.87,83.41,279.47) OR col0 >= 85 AND col0 >= 76) AND (col3 IS NULL) OR col3 < 699) AND (col0 < 314) AND col0 IN (SELECT col3 FROM tab4 WHERE ((col1 < 139.91 OR (col4 < 20.86) AND ((col3 <= 26)) AND ((((col0 < 834 OR col3 IN (478) OR col1 <= 991.87 AND col0 < 722 OR ((col3 IS NULL)) AND col3 >= 327 AND col4 > 563.50 AND col0 BETWEEN 596 AND 571 OR (col4 < 141.5 OR col1 BETWEEN 97.83 AND 357.92 AND col3 < 636 OR (col3 < 637 OR col1 > 365.73) OR (col4 IS NULL) AND ((col1 < 808.22 OR col3 = 254 AND col0 IS NULL OR col3 <= 834 OR col4 > 742.2 OR col3 > 660 OR col0 >= 301 AND (((col0 <= 733))) AND (col4 > 994.93 AND col0 > 237 OR col1 >= 855.36)))) AND col0 > 776 AND col0 > 3)))) AND col0 <= 517 OR (col0 = 416) OR col3 < 360 OR (((col0 IS NULL) AND col0 > 697))) OR col3 IN (645,443,242)) AND col0 <= 611) OR col0 IS NULL AND (col4 > 271.17) OR (col1 IN (562.29)) AND col3 <= 27)) OR (col0 > 793) OR col4 < 432.13))) AND col1 > 519.74 OR (col0 <= 466 OR col3 > 481 OR (col0 >= 889)))) OR ((col3 <= 639))))) OR ((((col1 > 375.37) AND col3 IS NULL OR col3 < 156))) AND col3 IS NULL AND ((col3 > 225))) OR ((col1 > 310.17)) OR col0 IS NULL AND col3 > 143 AND col3 < 489
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-1100-2
SELECT pk, col0 FROM tab4 WHERE NOT (col0 < 152 OR (((col1 >= 904.26) AND ((col0 > 91))) OR col1 > 173.50 OR col3 < 641 AND col0 > 612 OR ((((col1 <= 635.91) OR col1 <= 876.74 OR col1 > 329.50 AND ((((((col3 < 593) OR ((col3 IN (447,628) OR (col3 = 133 OR col1 <= 679.69 OR ((col4 IN (SELECT col1 FROM tab4 WHERE col3 IS NULL)) OR col4 >= 155.19 OR col3 > 34)) AND col0 > 346 OR ((col0 < 288 AND ((col3 IN (880,830,371,244)) AND col3 > 773) OR col1 > 352.14 AND (col1 < 109.34) AND col0 > 553))) AND col3 IN (777,84,66)) AND col0 < 886 AND col1 < 871.84 AND col0 >= 29 AND col0 <= 932 AND ((((((col4 >= 321.72 AND col3 > 716)) AND col1 <= 1.70 AND col0 <= 248 OR ((col1 > 677.52)) AND col1 > 93.31 AND col0 <= 684 OR col1 >= 327.14 AND col1 IN (488.87,83.41,279.47) OR col0 >= 85 AND col0 >= 76) AND (col3 IS NULL) OR col3 < 699) AND (col0 < 314) AND col0 IN (SELECT col3 FROM tab4 WHERE ((col1 < 139.91 OR (col4 < 20.86) AND ((col3 <= 26)) AND ((((col0 < 834 OR col3 IN (478) OR col1 <= 991.87 AND col0 < 722 OR ((col3 IS NULL)) AND col3 >= 327 AND col4 > 563.50 AND col0 BETWEEN 596 AND 571 OR (col4 < 141.5 OR col1 BETWEEN 97.83 AND 357.92 AND col3 < 636 OR (col3 < 637 OR col1 > 365.73) OR (col4 IS NULL) AND ((col1 < 808.22 OR col3 = 254 AND col0 IS NULL OR col3 <= 834 OR col4 > 742.2 OR col3 > 660 OR col0 >= 301 AND (((col0 <= 733))) AND (col4 > 994.93 AND col0 > 237 OR col1 >= 855.36)))) AND col0 > 776 AND col0 > 3)))) AND col0 <= 517 OR (col0 = 416) OR col3 < 360 OR (((col0 IS NULL) AND col0 > 697))) OR col3 IN (645,443,242)) AND col0 <= 611) OR col0 IS NULL AND (col4 > 271.17) OR (col1 IN (562.29)) AND col3 <= 27)) OR (col0 > 793) OR col4 < 432.13))) AND col1 > 519.74 OR (col0 <= 466 OR col3 > 481 OR (col0 >= 889)))) OR ((col3 <= 639))))) OR ((((col1 > 375.37) AND col3 IS NULL OR col3 < 156))) AND col3 IS NULL AND ((col3 > 225))) OR ((col1 > 310.17)) OR col0 IS NULL AND col3 > 143 AND col3 < 489)
----

query II rowsort label-1100-1
SELECT pk, col0 FROM view_1_tab4_534
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-1100-2
SELECT pk, col0 FROM view_2_tab4_534
----

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col0 < 152 OR (((col1 >= 904.26) AND ((col0 > 91))) OR col1 > 173.50 OR col3 < 641 AND col0 > 612 OR ((((col1 <= 635.91) OR col1 <= 876.74 OR col1 > 329.50 AND ((((((col3 < 593) OR ((col3 IN (447,628) OR (col3 = 133 OR col1 <= 679.69 OR ((col4 IN (SELECT col1 FROM tab4 WHERE col3 IS NULL)) OR col4 >= 155.19 OR col3 > 34)) AND col0 > 346 OR ((col0 < 288 AND ((col3 IN (880,830,371,244)) AND col3 > 773) OR col1 > 352.14 AND (col1 < 109.34) AND col0 > 553))) AND col3 IN (777,84,66)) AND col0 < 886 AND col1 < 871.84 AND col0 >= 29 AND col0 <= 932 AND ((((((col4 >= 321.72 AND col3 > 716)) AND col1 <= 1.70 AND col0 <= 248 OR ((col1 > 677.52)) AND col1 > 93.31 AND col0 <= 684 OR col1 >= 327.14 AND col1 IN (488.87,83.41,279.47) OR col0 >= 85 AND col0 >= 76) AND (col3 IS NULL) OR col3 < 699) AND (col0 < 314) AND col0 IN (SELECT col3 FROM tab4 WHERE ((col1 < 139.91 OR (col4 < 20.86) AND ((col3 <= 26)) AND ((((col0 < 834 OR col3 IN (478) OR col1 <= 991.87 AND col0 < 722 OR ((col3 IS NULL)) AND col3 >= 327 AND col4 > 563.50 AND col0 BETWEEN 596 AND 571 OR (col4 < 141.5 OR col1 BETWEEN 97.83 AND 357.92 AND col3 < 636 OR (col3 < 637 OR col1 > 365.73) OR (col4 IS NULL) AND ((col1 < 808.22 OR col3 = 254 AND col0 IS NULL OR col3 <= 834 OR col4 > 742.2 OR col3 > 660 OR col0 >= 301 AND (((col0 <= 733))) AND (col4 > 994.93 AND col0 > 237 OR col1 >= 855.36)))) AND col0 > 776 AND col0 > 3)))) AND col0 <= 517 OR (col0 = 416) OR col3 < 360 OR (((col0 IS NULL) AND col0 > 697))) OR col3 IN (645,443,242)) AND col0 <= 611) OR col0 IS NULL AND (col4 > 271.17) OR (col1 IN (562.29)) AND col3 <= 27)) OR (col0 > 793) OR col4 < 432.13))) AND col1 > 519.74 OR (col0 <= 466 OR col3 > 481 OR (col0 >= 889)))) OR ((col3 <= 639))))) OR ((((col1 > 375.37) AND col3 IS NULL OR col3 < 156))) AND col3 IS NULL AND ((col3 > 225))) OR ((col1 > 310.17)) OR col0 IS NULL AND col3 > 143 AND col3 < 489 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col0 < 152 OR (((col1 >= 904.26) AND ((col0 > 91))) OR col1 > 173.50 OR col3 < 641 AND col0 > 612 OR ((((col1 <= 635.91) OR col1 <= 876.74 OR col1 > 329.50 AND ((((((col3 < 593) OR ((col3 IN (447,628) OR (col3 = 133 OR col1 <= 679.69 OR ((col4 IN (SELECT col1 FROM tab4 WHERE col3 IS NULL)) OR col4 >= 155.19 OR col3 > 34)) AND col0 > 346 OR ((col0 < 288 AND ((col3 IN (880,830,371,244)) AND col3 > 773) OR col1 > 352.14 AND (col1 < 109.34) AND col0 > 553))) AND col3 IN (777,84,66)) AND col0 < 886 AND col1 < 871.84 AND col0 >= 29 AND col0 <= 932 AND ((((((col4 >= 321.72 AND col3 > 716)) AND col1 <= 1.70 AND col0 <= 248 OR ((col1 > 677.52)) AND col1 > 93.31 AND col0 <= 684 OR col1 >= 327.14 AND col1 IN (488.87,83.41,279.47) OR col0 >= 85 AND col0 >= 76) AND (col3 IS NULL) OR col3 < 699) AND (col0 < 314) AND col0 IN (SELECT col3 FROM tab4 WHERE ((col1 < 139.91 OR (col4 < 20.86) AND ((col3 <= 26)) AND ((((col0 < 834 OR col3 IN (478) OR col1 <= 991.87 AND col0 < 722 OR ((col3 IS NULL)) AND col3 >= 327 AND col4 > 563.50 AND col0 BETWEEN 596 AND 571 OR (col4 < 141.5 OR col1 BETWEEN 97.83 AND 357.92 AND col3 < 636 OR (col3 < 637 OR col1 > 365.73) OR (col4 IS NULL) AND ((col1 < 808.22 OR col3 = 254 AND col0 IS NULL OR col3 <= 834 OR col4 > 742.2 OR col3 > 660 OR col0 >= 301 AND (((col0 <= 733))) AND (col4 > 994.93 AND col0 > 237 OR col1 >= 855.36)))) AND col0 > 776 AND col0 > 3)))) AND col0 <= 517 OR (col0 = 416) OR col3 < 360 OR (((col0 IS NULL) AND col0 > 697))) OR col3 IN (645,443,242)) AND col0 <= 611) OR col0 IS NULL AND (col4 > 271.17) OR (col1 IN (562.29)) AND col3 <= 27)) OR (col0 > 793) OR col4 < 432.13))) AND col1 > 519.74 OR (col0 <= 466 OR col3 > 481 OR (col0 >= 889)))) OR ((col3 <= 639))))) OR ((((col1 > 375.37) AND col3 IS NULL OR col3 < 156))) AND col3 IS NULL AND ((col3 > 225))) OR ((col1 > 310.17)) OR col0 IS NULL AND col3 > 143 AND col3 < 489)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_534 UNION ALL SELECT pk, col0 FROM view_2_tab4_534
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col0 < 152 OR (((col1 >= 904.26) AND ((col0 > 91))) OR col1 > 173.50 OR col3 < 641 AND col0 > 612 OR ((((col1 <= 635.91) OR col1 <= 876.74 OR col1 > 329.50 AND ((((((col3 < 593) OR ((col3 IN (447,628) OR (col3 = 133 OR col1 <= 679.69 OR ((col4 IN (SELECT col1 FROM tab4 WHERE col3 IS NULL)) OR col4 >= 155.19 OR col3 > 34)) AND col0 > 346 OR ((col0 < 288 AND ((col3 IN (880,830,371,244)) AND col3 > 773) OR col1 > 352.14 AND (col1 < 109.34) AND col0 > 553))) AND col3 IN (777,84,66)) AND col0 < 886 AND col1 < 871.84 AND col0 >= 29 AND col0 <= 932 AND ((((((col4 >= 321.72 AND col3 > 716)) AND col1 <= 1.70 AND col0 <= 248 OR ((col1 > 677.52)) AND col1 > 93.31 AND col0 <= 684 OR col1 >= 327.14 AND col1 IN (488.87,83.41,279.47) OR col0 >= 85 AND col0 >= 76) AND (col3 IS NULL) OR col3 < 699) AND (col0 < 314) AND col0 IN (SELECT col3 FROM tab4 WHERE ((col1 < 139.91 OR (col4 < 20.86) AND ((col3 <= 26)) AND ((((col0 < 834 OR col3 IN (478) OR col1 <= 991.87 AND col0 < 722 OR ((col3 IS NULL)) AND col3 >= 327 AND col4 > 563.50 AND col0 BETWEEN 596 AND 571 OR (col4 < 141.5 OR col1 BETWEEN 97.83 AND 357.92 AND col3 < 636 OR (col3 < 637 OR col1 > 365.73) OR (col4 IS NULL) AND ((col1 < 808.22 OR col3 = 254 AND col0 IS NULL OR col3 <= 834 OR col4 > 742.2 OR col3 > 660 OR col0 >= 301 AND (((col0 <= 733))) AND (col4 > 994.93 AND col0 > 237 OR col1 >= 855.36)))) AND col0 > 776 AND col0 > 3)))) AND col0 <= 517 OR (col0 = 416) OR col3 < 360 OR (((col0 IS NULL) AND col0 > 697))) OR col3 IN (645,443,242)) AND col0 <= 611) OR col0 IS NULL AND (col4 > 271.17) OR (col1 IN (562.29)) AND col3 <= 27)) OR (col0 > 793) OR col4 < 432.13))) AND col1 > 519.74 OR (col0 <= 466 OR col3 > 481 OR (col0 >= 889)))) OR ((col3 <= 639))))) OR ((((col1 > 375.37) AND col3 IS NULL OR col3 < 156))) AND col3 IS NULL AND ((col3 > 225))) OR ((col1 > 310.17)) OR col0 IS NULL AND col3 > 143 AND col3 < 489 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col0 < 152 OR (((col1 >= 904.26) AND ((col0 > 91))) OR col1 > 173.50 OR col3 < 641 AND col0 > 612 OR ((((col1 <= 635.91) OR col1 <= 876.74 OR col1 > 329.50 AND ((((((col3 < 593) OR ((col3 IN (447,628) OR (col3 = 133 OR col1 <= 679.69 OR ((col4 IN (SELECT col1 FROM tab4 WHERE col3 IS NULL)) OR col4 >= 155.19 OR col3 > 34)) AND col0 > 346 OR ((col0 < 288 AND ((col3 IN (880,830,371,244)) AND col3 > 773) OR col1 > 352.14 AND (col1 < 109.34) AND col0 > 553))) AND col3 IN (777,84,66)) AND col0 < 886 AND col1 < 871.84 AND col0 >= 29 AND col0 <= 932 AND ((((((col4 >= 321.72 AND col3 > 716)) AND col1 <= 1.70 AND col0 <= 248 OR ((col1 > 677.52)) AND col1 > 93.31 AND col0 <= 684 OR col1 >= 327.14 AND col1 IN (488.87,83.41,279.47) OR col0 >= 85 AND col0 >= 76) AND (col3 IS NULL) OR col3 < 699) AND (col0 < 314) AND col0 IN (SELECT col3 FROM tab4 WHERE ((col1 < 139.91 OR (col4 < 20.86) AND ((col3 <= 26)) AND ((((col0 < 834 OR col3 IN (478) OR col1 <= 991.87 AND col0 < 722 OR ((col3 IS NULL)) AND col3 >= 327 AND col4 > 563.50 AND col0 BETWEEN 596 AND 571 OR (col4 < 141.5 OR col1 BETWEEN 97.83 AND 357.92 AND col3 < 636 OR (col3 < 637 OR col1 > 365.73) OR (col4 IS NULL) AND ((col1 < 808.22 OR col3 = 254 AND col0 IS NULL OR col3 <= 834 OR col4 > 742.2 OR col3 > 660 OR col0 >= 301 AND (((col0 <= 733))) AND (col4 > 994.93 AND col0 > 237 OR col1 >= 855.36)))) AND col0 > 776 AND col0 > 3)))) AND col0 <= 517 OR (col0 = 416) OR col3 < 360 OR (((col0 IS NULL) AND col0 > 697))) OR col3 IN (645,443,242)) AND col0 <= 611) OR col0 IS NULL AND (col4 > 271.17) OR (col1 IN (562.29)) AND col3 <= 27)) OR (col0 > 793) OR col4 < 432.13))) AND col1 > 519.74 OR (col0 <= 466 OR col3 > 481 OR (col0 >= 889)))) OR ((col3 <= 639))))) OR ((((col1 > 375.37) AND col3 IS NULL OR col3 < 156))) AND col3 IS NULL AND ((col3 > 225))) OR ((col1 > 310.17)) OR col0 IS NULL AND col3 > 143 AND col3 < 489)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_534 UNION SELECT pk, col0 FROM view_2_tab4_534
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-1100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col0 < 152 OR (((col1 >= 904.26) AND ((col0 > 91))) OR col1 > 173.50 OR col3 < 641 AND col0 > 612 OR ((((col1 <= 635.91) OR col1 <= 876.74 OR col1 > 329.50 AND ((((((col3 < 593) OR ((col3 IN (447,628) OR (col3 = 133 OR col1 <= 679.69 OR ((col4 IN (SELECT col1 FROM tab4 WHERE col3 IS NULL)) OR col4 >= 155.19 OR col3 > 34)) AND col0 > 346 OR ((col0 < 288 AND ((col3 IN (880,830,371,244)) AND col3 > 773) OR col1 > 352.14 AND (col1 < 109.34) AND col0 > 553))) AND col3 IN (777,84,66)) AND col0 < 886 AND col1 < 871.84 AND col0 >= 29 AND col0 <= 932 AND ((((((col4 >= 321.72 AND col3 > 716)) AND col1 <= 1.70 AND col0 <= 248 OR ((col1 > 677.52)) AND col1 > 93.31 AND col0 <= 684 OR col1 >= 327.14 AND col1 IN (488.87,83.41,279.47) OR col0 >= 85 AND col0 >= 76) AND (col3 IS NULL) OR col3 < 699) AND (col0 < 314) AND col0 IN (SELECT col3 FROM tab4 WHERE ((col1 < 139.91 OR (col4 < 20.86) AND ((col3 <= 26)) AND ((((col0 < 834 OR col3 IN (478) OR col1 <= 991.87 AND col0 < 722 OR ((col3 IS NULL)) AND col3 >= 327 AND col4 > 563.50 AND col0 BETWEEN 596 AND 571 OR (col4 < 141.5 OR col1 BETWEEN 97.83 AND 357.92 AND col3 < 636 OR (col3 < 637 OR col1 > 365.73) OR (col4 IS NULL) AND ((col1 < 808.22 OR col3 = 254 AND col0 IS NULL OR col3 <= 834 OR col4 > 742.2 OR col3 > 660 OR col0 >= 301 AND (((col0 <= 733))) AND (col4 > 994.93 AND col0 > 237 OR col1 >= 855.36)))) AND col0 > 776 AND col0 > 3)))) AND col0 <= 517 OR (col0 = 416) OR col3 < 360 OR (((col0 IS NULL) AND col0 > 697))) OR col3 IN (645,443,242)) AND col0 <= 611) OR col0 IS NULL AND (col4 > 271.17) OR (col1 IN (562.29)) AND col3 <= 27)) OR (col0 > 793) OR col4 < 432.13))) AND col1 > 519.74 OR (col0 <= 466 OR col3 > 481 OR (col0 >= 889)))) OR ((col3 <= 639))))) OR ((((col1 > 375.37) AND col3 IS NULL OR col3 < 156))) AND col3 IS NULL AND ((col3 > 225))) OR ((col1 > 310.17)) OR col0 IS NULL AND col3 > 143 AND col3 < 489 ) AS tab4_534
----
100 values hashing to d7fd31c3916c207fd3117332326c3f37

query I rowsort label-1100-3
SELECT * FROM view_3_tab4_534
----
100 values hashing to d7fd31c3916c207fd3117332326c3f37

query I rowsort label-1100-3
SELECT pk FROM tab4 WHERE col0 < 152 OR (((col1 >= 904.26) AND ((col0 > 91))) OR col1 > 173.50 OR col3 < 641 AND col0 > 612 OR ((((col1 <= 635.91) OR col1 <= 876.74 OR col1 > 329.50 AND ((((((col3 < 593) OR ((col3 IN (447,628) OR (col3 = 133 OR col1 <= 679.69 OR ((col4 IN (SELECT col1 FROM tab4 WHERE col3 IS NULL)) OR col4 >= 155.19 OR col3 > 34)) AND col0 > 346 OR ((col0 < 288 AND ((col3 IN (880,830,371,244)) AND col3 > 773) OR col1 > 352.14 AND (col1 < 109.34) AND col0 > 553))) AND col3 IN (777,84,66)) AND col0 < 886 AND col1 < 871.84 AND col0 >= 29 AND col0 <= 932 AND ((((((col4 >= 321.72 AND col3 > 716)) AND col1 <= 1.70 AND col0 <= 248 OR ((col1 > 677.52)) AND col1 > 93.31 AND col0 <= 684 OR col1 >= 327.14 AND col1 IN (488.87,83.41,279.47) OR col0 >= 85 AND col0 >= 76) AND (col3 IS NULL) OR col3 < 699) AND (col0 < 314) AND col0 IN (SELECT col3 FROM tab4 WHERE ((col1 < 139.91 OR (col4 < 20.86) AND ((col3 <= 26)) AND ((((col0 < 834 OR col3 IN (478) OR col1 <= 991.87 AND col0 < 722 OR ((col3 IS NULL)) AND col3 >= 327 AND col4 > 563.50 AND col0 BETWEEN 596 AND 571 OR (col4 < 141.5 OR col1 BETWEEN 97.83 AND 357.92 AND col3 < 636 OR (col3 < 637 OR col1 > 365.73) OR (col4 IS NULL) AND ((col1 < 808.22 OR col3 = 254 AND col0 IS NULL OR col3 <= 834 OR col4 > 742.2 OR col3 > 660 OR col0 >= 301 AND (((col0 <= 733))) AND (col4 > 994.93 AND col0 > 237 OR col1 >= 855.36)))) AND col0 > 776 AND col0 > 3)))) AND col0 <= 517 OR (col0 = 416) OR col3 < 360 OR (((col0 IS NULL) AND col0 > 697))) OR col3 IN (645,443,242)) AND col0 <= 611) OR col0 IS NULL AND (col4 > 271.17) OR (col1 IN (562.29)) AND col3 <= 27)) OR (col0 > 793) OR col4 < 432.13))) AND col1 > 519.74 OR (col0 <= 466 OR col3 > 481 OR (col0 >= 889)))) OR ((col3 <= 639))))) OR ((((col1 > 375.37) AND col3 IS NULL OR col3 < 156))) AND col3 IS NULL AND ((col3 > 225))) OR ((col1 > 310.17)) OR col0 IS NULL AND col3 > 143 AND col3 < 489
----
100 values hashing to d7fd31c3916c207fd3117332326c3f37

statement ok
DROP VIEW view_1_tab4_534

statement ok
DROP VIEW view_2_tab4_534

statement ok
DROP VIEW view_3_tab4_534

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab0_535 AS SELECT pk, col0 FROM tab0 WHERE col1 > 649.69

statement ok
CREATE VIEW view_2_tab0_535 AS SELECT pk, col0 FROM tab0 WHERE NOT (col1 > 649.69)

statement ok
CREATE VIEW view_3_tab0_535 AS SELECT pk FROM view_1_tab0_535

query II rowsort label-1200-1
SELECT pk, col0 FROM tab0 WHERE col1 > 649.69
----
80 values hashing to cfeb87f5e71f5b7a51570548ff71e899

query II rowsort label-1200-2
SELECT pk, col0 FROM tab0 WHERE NOT (col1 > 649.69)
----
120 values hashing to 98368f87d301667c59a21f67a5b9859d

query II rowsort label-1200-1
SELECT pk, col0 FROM view_1_tab0_535
----
80 values hashing to cfeb87f5e71f5b7a51570548ff71e899

query II rowsort label-1200-2
SELECT pk, col0 FROM view_2_tab0_535
----
120 values hashing to 98368f87d301667c59a21f67a5b9859d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col1 > 649.69 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col1 > 649.69)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_535 UNION ALL SELECT pk, col0 FROM view_2_tab0_535
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col1 > 649.69 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col1 > 649.69)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_535 UNION SELECT pk, col0 FROM view_2_tab0_535
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-1200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col1 > 649.69 ) AS tab0_535
----
40 values hashing to b799f04f5ddf03018d4509678f9b53b6

query I rowsort label-1200-3
SELECT * FROM view_3_tab0_535
----
40 values hashing to b799f04f5ddf03018d4509678f9b53b6

query I rowsort label-1200-3
SELECT pk FROM tab0 WHERE col1 > 649.69
----
40 values hashing to b799f04f5ddf03018d4509678f9b53b6

statement ok
DROP VIEW view_1_tab0_535

statement ok
DROP VIEW view_2_tab0_535

statement ok
DROP VIEW view_3_tab0_535

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab1_535 AS SELECT pk, col0 FROM tab1 WHERE col1 > 649.69

statement ok
CREATE VIEW view_2_tab1_535 AS SELECT pk, col0 FROM tab1 WHERE NOT (col1 > 649.69)

statement ok
CREATE VIEW view_3_tab1_535 AS SELECT pk FROM view_1_tab1_535

query II rowsort label-1200-1
SELECT pk, col0 FROM tab1 WHERE col1 > 649.69
----
80 values hashing to cfeb87f5e71f5b7a51570548ff71e899

query II rowsort label-1200-2
SELECT pk, col0 FROM tab1 WHERE NOT (col1 > 649.69)
----
120 values hashing to 98368f87d301667c59a21f67a5b9859d

query II rowsort label-1200-1
SELECT pk, col0 FROM view_1_tab1_535
----
80 values hashing to cfeb87f5e71f5b7a51570548ff71e899

query II rowsort label-1200-2
SELECT pk, col0 FROM view_2_tab1_535
----
120 values hashing to 98368f87d301667c59a21f67a5b9859d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col1 > 649.69 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col1 > 649.69)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_535 UNION ALL SELECT pk, col0 FROM view_2_tab1_535
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col1 > 649.69 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col1 > 649.69)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_535 UNION SELECT pk, col0 FROM view_2_tab1_535
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-1200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col1 > 649.69 ) AS tab1_535
----
40 values hashing to b799f04f5ddf03018d4509678f9b53b6

query I rowsort label-1200-3
SELECT * FROM view_3_tab1_535
----
40 values hashing to b799f04f5ddf03018d4509678f9b53b6

query I rowsort label-1200-3
SELECT pk FROM tab1 WHERE col1 > 649.69
----
40 values hashing to b799f04f5ddf03018d4509678f9b53b6

statement ok
DROP VIEW view_1_tab1_535

statement ok
DROP VIEW view_2_tab1_535

statement ok
DROP VIEW view_3_tab1_535

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab2_535 AS SELECT pk, col0 FROM tab2 WHERE col1 > 649.69

statement ok
CREATE VIEW view_2_tab2_535 AS SELECT pk, col0 FROM tab2 WHERE NOT (col1 > 649.69)

statement ok
CREATE VIEW view_3_tab2_535 AS SELECT pk FROM view_1_tab2_535

query II rowsort label-1200-1
SELECT pk, col0 FROM tab2 WHERE col1 > 649.69
----
80 values hashing to cfeb87f5e71f5b7a51570548ff71e899

query II rowsort label-1200-2
SELECT pk, col0 FROM tab2 WHERE NOT (col1 > 649.69)
----
120 values hashing to 98368f87d301667c59a21f67a5b9859d

query II rowsort label-1200-1
SELECT pk, col0 FROM view_1_tab2_535
----
80 values hashing to cfeb87f5e71f5b7a51570548ff71e899

query II rowsort label-1200-2
SELECT pk, col0 FROM view_2_tab2_535
----
120 values hashing to 98368f87d301667c59a21f67a5b9859d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col1 > 649.69 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col1 > 649.69)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_535 UNION ALL SELECT pk, col0 FROM view_2_tab2_535
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col1 > 649.69 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col1 > 649.69)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_535 UNION SELECT pk, col0 FROM view_2_tab2_535
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-1200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col1 > 649.69 ) AS tab2_535
----
40 values hashing to b799f04f5ddf03018d4509678f9b53b6

query I rowsort label-1200-3
SELECT * FROM view_3_tab2_535
----
40 values hashing to b799f04f5ddf03018d4509678f9b53b6

query I rowsort label-1200-3
SELECT pk FROM tab2 WHERE col1 > 649.69
----
40 values hashing to b799f04f5ddf03018d4509678f9b53b6

statement ok
DROP VIEW view_1_tab2_535

statement ok
DROP VIEW view_2_tab2_535

statement ok
DROP VIEW view_3_tab2_535

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab3_535 AS SELECT pk, col0 FROM tab3 WHERE col1 > 649.69

statement ok
CREATE VIEW view_2_tab3_535 AS SELECT pk, col0 FROM tab3 WHERE NOT (col1 > 649.69)

statement ok
CREATE VIEW view_3_tab3_535 AS SELECT pk FROM view_1_tab3_535

query II rowsort label-1200-1
SELECT pk, col0 FROM tab3 WHERE col1 > 649.69
----
80 values hashing to cfeb87f5e71f5b7a51570548ff71e899

query II rowsort label-1200-2
SELECT pk, col0 FROM tab3 WHERE NOT (col1 > 649.69)
----
120 values hashing to 98368f87d301667c59a21f67a5b9859d

query II rowsort label-1200-1
SELECT pk, col0 FROM view_1_tab3_535
----
80 values hashing to cfeb87f5e71f5b7a51570548ff71e899

query II rowsort label-1200-2
SELECT pk, col0 FROM view_2_tab3_535
----
120 values hashing to 98368f87d301667c59a21f67a5b9859d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col1 > 649.69 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col1 > 649.69)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_535 UNION ALL SELECT pk, col0 FROM view_2_tab3_535
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col1 > 649.69 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col1 > 649.69)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_535 UNION SELECT pk, col0 FROM view_2_tab3_535
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-1200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col1 > 649.69 ) AS tab3_535
----
40 values hashing to b799f04f5ddf03018d4509678f9b53b6

query I rowsort label-1200-3
SELECT * FROM view_3_tab3_535
----
40 values hashing to b799f04f5ddf03018d4509678f9b53b6

query I rowsort label-1200-3
SELECT pk FROM tab3 WHERE col1 > 649.69
----
40 values hashing to b799f04f5ddf03018d4509678f9b53b6

statement ok
DROP VIEW view_1_tab3_535

statement ok
DROP VIEW view_2_tab3_535

statement ok
DROP VIEW view_3_tab3_535

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab4_535 AS SELECT pk, col0 FROM tab4 WHERE col1 > 649.69

statement ok
CREATE VIEW view_2_tab4_535 AS SELECT pk, col0 FROM tab4 WHERE NOT (col1 > 649.69)

statement ok
CREATE VIEW view_3_tab4_535 AS SELECT pk FROM view_1_tab4_535

query II rowsort label-1200-1
SELECT pk, col0 FROM tab4 WHERE col1 > 649.69
----
80 values hashing to cfeb87f5e71f5b7a51570548ff71e899

query II rowsort label-1200-2
SELECT pk, col0 FROM tab4 WHERE NOT (col1 > 649.69)
----
120 values hashing to 98368f87d301667c59a21f67a5b9859d

query II rowsort label-1200-1
SELECT pk, col0 FROM view_1_tab4_535
----
80 values hashing to cfeb87f5e71f5b7a51570548ff71e899

query II rowsort label-1200-2
SELECT pk, col0 FROM view_2_tab4_535
----
120 values hashing to 98368f87d301667c59a21f67a5b9859d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col1 > 649.69 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col1 > 649.69)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_535 UNION ALL SELECT pk, col0 FROM view_2_tab4_535
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col1 > 649.69 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col1 > 649.69)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_535 UNION SELECT pk, col0 FROM view_2_tab4_535
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-1200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col1 > 649.69 ) AS tab4_535
----
40 values hashing to b799f04f5ddf03018d4509678f9b53b6

query I rowsort label-1200-3
SELECT * FROM view_3_tab4_535
----
40 values hashing to b799f04f5ddf03018d4509678f9b53b6

query I rowsort label-1200-3
SELECT pk FROM tab4 WHERE col1 > 649.69
----
40 values hashing to b799f04f5ddf03018d4509678f9b53b6

statement ok
DROP VIEW view_1_tab4_535

statement ok
DROP VIEW view_2_tab4_535

statement ok
DROP VIEW view_3_tab4_535

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab0_536 AS SELECT pk, col0 FROM tab0 WHERE col0 < 914

statement ok
CREATE VIEW view_2_tab0_536 AS SELECT pk, col0 FROM tab0 WHERE NOT (col0 < 914)

statement ok
CREATE VIEW view_3_tab0_536 AS SELECT pk FROM view_1_tab0_536

query II rowsort label-1300-1
SELECT pk, col0 FROM tab0 WHERE col0 < 914
----
190 values hashing to 8d177e9dde9457948304d5593b0d6431

query II rowsort label-1300-2
SELECT pk, col0 FROM tab0 WHERE NOT (col0 < 914)
----
10 values hashing to 6ad7e2d8f26ab43f35a339886296dd00

query II rowsort label-1300-1
SELECT pk, col0 FROM view_1_tab0_536
----
190 values hashing to 8d177e9dde9457948304d5593b0d6431

query II rowsort label-1300-2
SELECT pk, col0 FROM view_2_tab0_536
----
10 values hashing to 6ad7e2d8f26ab43f35a339886296dd00

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col0 < 914 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col0 < 914)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_536 UNION ALL SELECT pk, col0 FROM view_2_tab0_536
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col0 < 914 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col0 < 914)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_536 UNION SELECT pk, col0 FROM view_2_tab0_536
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-1300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col0 < 914 ) AS tab0_536
----
95 values hashing to 99efb628b2c7737038b2242f2d51a14d

query I rowsort label-1300-3
SELECT * FROM view_3_tab0_536
----
95 values hashing to 99efb628b2c7737038b2242f2d51a14d

query I rowsort label-1300-3
SELECT pk FROM tab0 WHERE col0 < 914
----
95 values hashing to 99efb628b2c7737038b2242f2d51a14d

statement ok
DROP VIEW view_1_tab0_536

statement ok
DROP VIEW view_2_tab0_536

statement ok
DROP VIEW view_3_tab0_536

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab1_536 AS SELECT pk, col0 FROM tab1 WHERE col0 < 914

statement ok
CREATE VIEW view_2_tab1_536 AS SELECT pk, col0 FROM tab1 WHERE NOT (col0 < 914)

statement ok
CREATE VIEW view_3_tab1_536 AS SELECT pk FROM view_1_tab1_536

query II rowsort label-1300-1
SELECT pk, col0 FROM tab1 WHERE col0 < 914
----
190 values hashing to 8d177e9dde9457948304d5593b0d6431

query II rowsort label-1300-2
SELECT pk, col0 FROM tab1 WHERE NOT (col0 < 914)
----
10 values hashing to 6ad7e2d8f26ab43f35a339886296dd00

query II rowsort label-1300-1
SELECT pk, col0 FROM view_1_tab1_536
----
190 values hashing to 8d177e9dde9457948304d5593b0d6431

query II rowsort label-1300-2
SELECT pk, col0 FROM view_2_tab1_536
----
10 values hashing to 6ad7e2d8f26ab43f35a339886296dd00

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col0 < 914 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col0 < 914)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_536 UNION ALL SELECT pk, col0 FROM view_2_tab1_536
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col0 < 914 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col0 < 914)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_536 UNION SELECT pk, col0 FROM view_2_tab1_536
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-1300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col0 < 914 ) AS tab1_536
----
95 values hashing to 99efb628b2c7737038b2242f2d51a14d

query I rowsort label-1300-3
SELECT * FROM view_3_tab1_536
----
95 values hashing to 99efb628b2c7737038b2242f2d51a14d

query I rowsort label-1300-3
SELECT pk FROM tab1 WHERE col0 < 914
----
95 values hashing to 99efb628b2c7737038b2242f2d51a14d

statement ok
DROP VIEW view_1_tab1_536

statement ok
DROP VIEW view_2_tab1_536

statement ok
DROP VIEW view_3_tab1_536

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab2_536 AS SELECT pk, col0 FROM tab2 WHERE col0 < 914

statement ok
CREATE VIEW view_2_tab2_536 AS SELECT pk, col0 FROM tab2 WHERE NOT (col0 < 914)

statement ok
CREATE VIEW view_3_tab2_536 AS SELECT pk FROM view_1_tab2_536

query II rowsort label-1300-1
SELECT pk, col0 FROM tab2 WHERE col0 < 914
----
190 values hashing to 8d177e9dde9457948304d5593b0d6431

query II rowsort label-1300-2
SELECT pk, col0 FROM tab2 WHERE NOT (col0 < 914)
----
10 values hashing to 6ad7e2d8f26ab43f35a339886296dd00

query II rowsort label-1300-1
SELECT pk, col0 FROM view_1_tab2_536
----
190 values hashing to 8d177e9dde9457948304d5593b0d6431

query II rowsort label-1300-2
SELECT pk, col0 FROM view_2_tab2_536
----
10 values hashing to 6ad7e2d8f26ab43f35a339886296dd00

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col0 < 914 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col0 < 914)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_536 UNION ALL SELECT pk, col0 FROM view_2_tab2_536
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col0 < 914 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col0 < 914)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_536 UNION SELECT pk, col0 FROM view_2_tab2_536
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-1300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col0 < 914 ) AS tab2_536
----
95 values hashing to 99efb628b2c7737038b2242f2d51a14d

query I rowsort label-1300-3
SELECT * FROM view_3_tab2_536
----
95 values hashing to 99efb628b2c7737038b2242f2d51a14d

query I rowsort label-1300-3
SELECT pk FROM tab2 WHERE col0 < 914
----
95 values hashing to 99efb628b2c7737038b2242f2d51a14d

statement ok
DROP VIEW view_1_tab2_536

statement ok
DROP VIEW view_2_tab2_536

statement ok
DROP VIEW view_3_tab2_536

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab3_536 AS SELECT pk, col0 FROM tab3 WHERE col0 < 914

statement ok
CREATE VIEW view_2_tab3_536 AS SELECT pk, col0 FROM tab3 WHERE NOT (col0 < 914)

statement ok
CREATE VIEW view_3_tab3_536 AS SELECT pk FROM view_1_tab3_536

query II rowsort label-1300-1
SELECT pk, col0 FROM tab3 WHERE col0 < 914
----
190 values hashing to 8d177e9dde9457948304d5593b0d6431

query II rowsort label-1300-2
SELECT pk, col0 FROM tab3 WHERE NOT (col0 < 914)
----
10 values hashing to 6ad7e2d8f26ab43f35a339886296dd00

query II rowsort label-1300-1
SELECT pk, col0 FROM view_1_tab3_536
----
190 values hashing to 8d177e9dde9457948304d5593b0d6431

query II rowsort label-1300-2
SELECT pk, col0 FROM view_2_tab3_536
----
10 values hashing to 6ad7e2d8f26ab43f35a339886296dd00

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col0 < 914 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col0 < 914)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_536 UNION ALL SELECT pk, col0 FROM view_2_tab3_536
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col0 < 914 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col0 < 914)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_536 UNION SELECT pk, col0 FROM view_2_tab3_536
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-1300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col0 < 914 ) AS tab3_536
----
95 values hashing to 99efb628b2c7737038b2242f2d51a14d

query I rowsort label-1300-3
SELECT * FROM view_3_tab3_536
----
95 values hashing to 99efb628b2c7737038b2242f2d51a14d

query I rowsort label-1300-3
SELECT pk FROM tab3 WHERE col0 < 914
----
95 values hashing to 99efb628b2c7737038b2242f2d51a14d

statement ok
DROP VIEW view_1_tab3_536

statement ok
DROP VIEW view_2_tab3_536

statement ok
DROP VIEW view_3_tab3_536

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab4_536 AS SELECT pk, col0 FROM tab4 WHERE col0 < 914

statement ok
CREATE VIEW view_2_tab4_536 AS SELECT pk, col0 FROM tab4 WHERE NOT (col0 < 914)

statement ok
CREATE VIEW view_3_tab4_536 AS SELECT pk FROM view_1_tab4_536

query II rowsort label-1300-1
SELECT pk, col0 FROM tab4 WHERE col0 < 914
----
190 values hashing to 8d177e9dde9457948304d5593b0d6431

query II rowsort label-1300-2
SELECT pk, col0 FROM tab4 WHERE NOT (col0 < 914)
----
10 values hashing to 6ad7e2d8f26ab43f35a339886296dd00

query II rowsort label-1300-1
SELECT pk, col0 FROM view_1_tab4_536
----
190 values hashing to 8d177e9dde9457948304d5593b0d6431

query II rowsort label-1300-2
SELECT pk, col0 FROM view_2_tab4_536
----
10 values hashing to 6ad7e2d8f26ab43f35a339886296dd00

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col0 < 914 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col0 < 914)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_536 UNION ALL SELECT pk, col0 FROM view_2_tab4_536
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col0 < 914 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col0 < 914)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_536 UNION SELECT pk, col0 FROM view_2_tab4_536
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-1300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col0 < 914 ) AS tab4_536
----
95 values hashing to 99efb628b2c7737038b2242f2d51a14d

query I rowsort label-1300-3
SELECT * FROM view_3_tab4_536
----
95 values hashing to 99efb628b2c7737038b2242f2d51a14d

query I rowsort label-1300-3
SELECT pk FROM tab4 WHERE col0 < 914
----
95 values hashing to 99efb628b2c7737038b2242f2d51a14d

statement ok
DROP VIEW view_1_tab4_536

statement ok
DROP VIEW view_2_tab4_536

statement ok
DROP VIEW view_3_tab4_536

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab0_537 AS SELECT pk, col0 FROM tab0 WHERE col3 > 964

statement ok
CREATE VIEW view_2_tab0_537 AS SELECT pk, col0 FROM tab0 WHERE NOT (col3 > 964)

statement ok
CREATE VIEW view_3_tab0_537 AS SELECT pk FROM view_1_tab0_537

query II rowsort label-1400-1
SELECT pk, col0 FROM tab0 WHERE col3 > 964
----
14
781
41
847
65
917

query II rowsort label-1400-2
SELECT pk, col0 FROM tab0 WHERE NOT (col3 > 964)
----
194 values hashing to a46d59c62107dd610dcf167c4a03afa4

query II rowsort label-1400-1
SELECT pk, col0 FROM view_1_tab0_537
----
14
781
41
847
65
917

query II rowsort label-1400-2
SELECT pk, col0 FROM view_2_tab0_537
----
194 values hashing to a46d59c62107dd610dcf167c4a03afa4

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 > 964 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col3 > 964)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_537 UNION ALL SELECT pk, col0 FROM view_2_tab0_537
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 > 964 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col3 > 964)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_537 UNION SELECT pk, col0 FROM view_2_tab0_537
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-1400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col3 > 964 ) AS tab0_537
----
14
41
65

query I rowsort label-1400-3
SELECT * FROM view_3_tab0_537
----
14
41
65

query I rowsort label-1400-3
SELECT pk FROM tab0 WHERE col3 > 964
----
14
41
65

statement ok
DROP VIEW view_1_tab0_537

statement ok
DROP VIEW view_2_tab0_537

statement ok
DROP VIEW view_3_tab0_537

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab1_537 AS SELECT pk, col0 FROM tab1 WHERE col3 > 964

statement ok
CREATE VIEW view_2_tab1_537 AS SELECT pk, col0 FROM tab1 WHERE NOT (col3 > 964)

statement ok
CREATE VIEW view_3_tab1_537 AS SELECT pk FROM view_1_tab1_537

query II rowsort label-1400-1
SELECT pk, col0 FROM tab1 WHERE col3 > 964
----
14
781
41
847
65
917

query II rowsort label-1400-2
SELECT pk, col0 FROM tab1 WHERE NOT (col3 > 964)
----
194 values hashing to a46d59c62107dd610dcf167c4a03afa4

query II rowsort label-1400-1
SELECT pk, col0 FROM view_1_tab1_537
----
14
781
41
847
65
917

query II rowsort label-1400-2
SELECT pk, col0 FROM view_2_tab1_537
----
194 values hashing to a46d59c62107dd610dcf167c4a03afa4

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 > 964 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col3 > 964)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_537 UNION ALL SELECT pk, col0 FROM view_2_tab1_537
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 > 964 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col3 > 964)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_537 UNION SELECT pk, col0 FROM view_2_tab1_537
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-1400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col3 > 964 ) AS tab1_537
----
14
41
65

query I rowsort label-1400-3
SELECT * FROM view_3_tab1_537
----
14
41
65

query I rowsort label-1400-3
SELECT pk FROM tab1 WHERE col3 > 964
----
14
41
65

statement ok
DROP VIEW view_1_tab1_537

statement ok
DROP VIEW view_2_tab1_537

statement ok
DROP VIEW view_3_tab1_537

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab2_537 AS SELECT pk, col0 FROM tab2 WHERE col3 > 964

statement ok
CREATE VIEW view_2_tab2_537 AS SELECT pk, col0 FROM tab2 WHERE NOT (col3 > 964)

statement ok
CREATE VIEW view_3_tab2_537 AS SELECT pk FROM view_1_tab2_537

query II rowsort label-1400-1
SELECT pk, col0 FROM tab2 WHERE col3 > 964
----
14
781
41
847
65
917

query II rowsort label-1400-2
SELECT pk, col0 FROM tab2 WHERE NOT (col3 > 964)
----
194 values hashing to a46d59c62107dd610dcf167c4a03afa4

query II rowsort label-1400-1
SELECT pk, col0 FROM view_1_tab2_537
----
14
781
41
847
65
917

query II rowsort label-1400-2
SELECT pk, col0 FROM view_2_tab2_537
----
194 values hashing to a46d59c62107dd610dcf167c4a03afa4

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 > 964 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col3 > 964)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_537 UNION ALL SELECT pk, col0 FROM view_2_tab2_537
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 > 964 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col3 > 964)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_537 UNION SELECT pk, col0 FROM view_2_tab2_537
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-1400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col3 > 964 ) AS tab2_537
----
14
41
65

query I rowsort label-1400-3
SELECT * FROM view_3_tab2_537
----
14
41
65

query I rowsort label-1400-3
SELECT pk FROM tab2 WHERE col3 > 964
----
14
41
65

statement ok
DROP VIEW view_1_tab2_537

statement ok
DROP VIEW view_2_tab2_537

statement ok
DROP VIEW view_3_tab2_537

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab3_537 AS SELECT pk, col0 FROM tab3 WHERE col3 > 964

statement ok
CREATE VIEW view_2_tab3_537 AS SELECT pk, col0 FROM tab3 WHERE NOT (col3 > 964)

statement ok
CREATE VIEW view_3_tab3_537 AS SELECT pk FROM view_1_tab3_537

query II rowsort label-1400-1
SELECT pk, col0 FROM tab3 WHERE col3 > 964
----
14
781
41
847
65
917

query II rowsort label-1400-2
SELECT pk, col0 FROM tab3 WHERE NOT (col3 > 964)
----
194 values hashing to a46d59c62107dd610dcf167c4a03afa4

query II rowsort label-1400-1
SELECT pk, col0 FROM view_1_tab3_537
----
14
781
41
847
65
917

query II rowsort label-1400-2
SELECT pk, col0 FROM view_2_tab3_537
----
194 values hashing to a46d59c62107dd610dcf167c4a03afa4

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 > 964 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col3 > 964)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_537 UNION ALL SELECT pk, col0 FROM view_2_tab3_537
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 > 964 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col3 > 964)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_537 UNION SELECT pk, col0 FROM view_2_tab3_537
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-1400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col3 > 964 ) AS tab3_537
----
14
41
65

query I rowsort label-1400-3
SELECT * FROM view_3_tab3_537
----
14
41
65

query I rowsort label-1400-3
SELECT pk FROM tab3 WHERE col3 > 964
----
14
41
65

statement ok
DROP VIEW view_1_tab3_537

statement ok
DROP VIEW view_2_tab3_537

statement ok
DROP VIEW view_3_tab3_537

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab4_537 AS SELECT pk, col0 FROM tab4 WHERE col3 > 964

statement ok
CREATE VIEW view_2_tab4_537 AS SELECT pk, col0 FROM tab4 WHERE NOT (col3 > 964)

statement ok
CREATE VIEW view_3_tab4_537 AS SELECT pk FROM view_1_tab4_537

query II rowsort label-1400-1
SELECT pk, col0 FROM tab4 WHERE col3 > 964
----
14
781
41
847
65
917

query II rowsort label-1400-2
SELECT pk, col0 FROM tab4 WHERE NOT (col3 > 964)
----
194 values hashing to a46d59c62107dd610dcf167c4a03afa4

query II rowsort label-1400-1
SELECT pk, col0 FROM view_1_tab4_537
----
14
781
41
847
65
917

query II rowsort label-1400-2
SELECT pk, col0 FROM view_2_tab4_537
----
194 values hashing to a46d59c62107dd610dcf167c4a03afa4

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 > 964 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col3 > 964)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_537 UNION ALL SELECT pk, col0 FROM view_2_tab4_537
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 > 964 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col3 > 964)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_537 UNION SELECT pk, col0 FROM view_2_tab4_537
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-1400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col3 > 964 ) AS tab4_537
----
14
41
65

query I rowsort label-1400-3
SELECT * FROM view_3_tab4_537
----
14
41
65

query I rowsort label-1400-3
SELECT pk FROM tab4 WHERE col3 > 964
----
14
41
65

statement ok
DROP VIEW view_1_tab4_537

statement ok
DROP VIEW view_2_tab4_537

statement ok
DROP VIEW view_3_tab4_537

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab0_538 AS SELECT pk, col0 FROM tab0 WHERE (((col0 IS NULL) OR col0 >= 7 OR (col1 >= 61.58) OR col0 < 545))

statement ok
CREATE VIEW view_2_tab0_538 AS SELECT pk, col0 FROM tab0 WHERE NOT ((((col0 IS NULL) OR col0 >= 7 OR (col1 >= 61.58) OR col0 < 545)))

statement ok
CREATE VIEW view_3_tab0_538 AS SELECT pk FROM view_1_tab0_538

query II rowsort label-1500-1
SELECT pk, col0 FROM tab0 WHERE (((col0 IS NULL) OR col0 >= 7 OR (col1 >= 61.58) OR col0 < 545))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-1500-2
SELECT pk, col0 FROM tab0 WHERE NOT ((((col0 IS NULL) OR col0 >= 7 OR (col1 >= 61.58) OR col0 < 545)))
----

query II rowsort label-1500-1
SELECT pk, col0 FROM view_1_tab0_538
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-1500-2
SELECT pk, col0 FROM view_2_tab0_538
----

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (((col0 IS NULL) OR col0 >= 7 OR (col1 >= 61.58) OR col0 < 545)) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT ((((col0 IS NULL) OR col0 >= 7 OR (col1 >= 61.58) OR col0 < 545)))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_538 UNION ALL SELECT pk, col0 FROM view_2_tab0_538
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (((col0 IS NULL) OR col0 >= 7 OR (col1 >= 61.58) OR col0 < 545)) UNION SELECT pk, col0 FROM tab0 WHERE NOT ((((col0 IS NULL) OR col0 >= 7 OR (col1 >= 61.58) OR col0 < 545)))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_538 UNION SELECT pk, col0 FROM view_2_tab0_538
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-1500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE (((col0 IS NULL) OR col0 >= 7 OR (col1 >= 61.58) OR col0 < 545)) ) AS tab0_538
----
100 values hashing to d7fd31c3916c207fd3117332326c3f37

query I rowsort label-1500-3
SELECT * FROM view_3_tab0_538
----
100 values hashing to d7fd31c3916c207fd3117332326c3f37

query I rowsort label-1500-3
SELECT pk FROM tab0 WHERE (((col0 IS NULL) OR col0 >= 7 OR (col1 >= 61.58) OR col0 < 545))
----
100 values hashing to d7fd31c3916c207fd3117332326c3f37

statement ok
DROP VIEW view_1_tab0_538

statement ok
DROP VIEW view_2_tab0_538

statement ok
DROP VIEW view_3_tab0_538

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab1_538 AS SELECT pk, col0 FROM tab1 WHERE (((col0 IS NULL) OR col0 >= 7 OR (col1 >= 61.58) OR col0 < 545))

statement ok
CREATE VIEW view_2_tab1_538 AS SELECT pk, col0 FROM tab1 WHERE NOT ((((col0 IS NULL) OR col0 >= 7 OR (col1 >= 61.58) OR col0 < 545)))

statement ok
CREATE VIEW view_3_tab1_538 AS SELECT pk FROM view_1_tab1_538

query II rowsort label-1500-1
SELECT pk, col0 FROM tab1 WHERE (((col0 IS NULL) OR col0 >= 7 OR (col1 >= 61.58) OR col0 < 545))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-1500-2
SELECT pk, col0 FROM tab1 WHERE NOT ((((col0 IS NULL) OR col0 >= 7 OR (col1 >= 61.58) OR col0 < 545)))
----

query II rowsort label-1500-1
SELECT pk, col0 FROM view_1_tab1_538
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-1500-2
SELECT pk, col0 FROM view_2_tab1_538
----

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (((col0 IS NULL) OR col0 >= 7 OR (col1 >= 61.58) OR col0 < 545)) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT ((((col0 IS NULL) OR col0 >= 7 OR (col1 >= 61.58) OR col0 < 545)))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_538 UNION ALL SELECT pk, col0 FROM view_2_tab1_538
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (((col0 IS NULL) OR col0 >= 7 OR (col1 >= 61.58) OR col0 < 545)) UNION SELECT pk, col0 FROM tab1 WHERE NOT ((((col0 IS NULL) OR col0 >= 7 OR (col1 >= 61.58) OR col0 < 545)))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_538 UNION SELECT pk, col0 FROM view_2_tab1_538
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-1500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE (((col0 IS NULL) OR col0 >= 7 OR (col1 >= 61.58) OR col0 < 545)) ) AS tab1_538
----
100 values hashing to d7fd31c3916c207fd3117332326c3f37

query I rowsort label-1500-3
SELECT * FROM view_3_tab1_538
----
100 values hashing to d7fd31c3916c207fd3117332326c3f37

query I rowsort label-1500-3
SELECT pk FROM tab1 WHERE (((col0 IS NULL) OR col0 >= 7 OR (col1 >= 61.58) OR col0 < 545))
----
100 values hashing to d7fd31c3916c207fd3117332326c3f37

statement ok
DROP VIEW view_1_tab1_538

statement ok
DROP VIEW view_2_tab1_538

statement ok
DROP VIEW view_3_tab1_538

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab2_538 AS SELECT pk, col0 FROM tab2 WHERE (((col0 IS NULL) OR col0 >= 7 OR (col1 >= 61.58) OR col0 < 545))

statement ok
CREATE VIEW view_2_tab2_538 AS SELECT pk, col0 FROM tab2 WHERE NOT ((((col0 IS NULL) OR col0 >= 7 OR (col1 >= 61.58) OR col0 < 545)))

statement ok
CREATE VIEW view_3_tab2_538 AS SELECT pk FROM view_1_tab2_538

query II rowsort label-1500-1
SELECT pk, col0 FROM tab2 WHERE (((col0 IS NULL) OR col0 >= 7 OR (col1 >= 61.58) OR col0 < 545))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-1500-2
SELECT pk, col0 FROM tab2 WHERE NOT ((((col0 IS NULL) OR col0 >= 7 OR (col1 >= 61.58) OR col0 < 545)))
----

query II rowsort label-1500-1
SELECT pk, col0 FROM view_1_tab2_538
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-1500-2
SELECT pk, col0 FROM view_2_tab2_538
----

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (((col0 IS NULL) OR col0 >= 7 OR (col1 >= 61.58) OR col0 < 545)) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT ((((col0 IS NULL) OR col0 >= 7 OR (col1 >= 61.58) OR col0 < 545)))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_538 UNION ALL SELECT pk, col0 FROM view_2_tab2_538
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (((col0 IS NULL) OR col0 >= 7 OR (col1 >= 61.58) OR col0 < 545)) UNION SELECT pk, col0 FROM tab2 WHERE NOT ((((col0 IS NULL) OR col0 >= 7 OR (col1 >= 61.58) OR col0 < 545)))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_538 UNION SELECT pk, col0 FROM view_2_tab2_538
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-1500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE (((col0 IS NULL) OR col0 >= 7 OR (col1 >= 61.58) OR col0 < 545)) ) AS tab2_538
----
100 values hashing to d7fd31c3916c207fd3117332326c3f37

query I rowsort label-1500-3
SELECT * FROM view_3_tab2_538
----
100 values hashing to d7fd31c3916c207fd3117332326c3f37

query I rowsort label-1500-3
SELECT pk FROM tab2 WHERE (((col0 IS NULL) OR col0 >= 7 OR (col1 >= 61.58) OR col0 < 545))
----
100 values hashing to d7fd31c3916c207fd3117332326c3f37

statement ok
DROP VIEW view_1_tab2_538

statement ok
DROP VIEW view_2_tab2_538

statement ok
DROP VIEW view_3_tab2_538

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab3_538 AS SELECT pk, col0 FROM tab3 WHERE (((col0 IS NULL) OR col0 >= 7 OR (col1 >= 61.58) OR col0 < 545))

statement ok
CREATE VIEW view_2_tab3_538 AS SELECT pk, col0 FROM tab3 WHERE NOT ((((col0 IS NULL) OR col0 >= 7 OR (col1 >= 61.58) OR col0 < 545)))

statement ok
CREATE VIEW view_3_tab3_538 AS SELECT pk FROM view_1_tab3_538

query II rowsort label-1500-1
SELECT pk, col0 FROM tab3 WHERE (((col0 IS NULL) OR col0 >= 7 OR (col1 >= 61.58) OR col0 < 545))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-1500-2
SELECT pk, col0 FROM tab3 WHERE NOT ((((col0 IS NULL) OR col0 >= 7 OR (col1 >= 61.58) OR col0 < 545)))
----

query II rowsort label-1500-1
SELECT pk, col0 FROM view_1_tab3_538
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-1500-2
SELECT pk, col0 FROM view_2_tab3_538
----

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (((col0 IS NULL) OR col0 >= 7 OR (col1 >= 61.58) OR col0 < 545)) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT ((((col0 IS NULL) OR col0 >= 7 OR (col1 >= 61.58) OR col0 < 545)))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_538 UNION ALL SELECT pk, col0 FROM view_2_tab3_538
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (((col0 IS NULL) OR col0 >= 7 OR (col1 >= 61.58) OR col0 < 545)) UNION SELECT pk, col0 FROM tab3 WHERE NOT ((((col0 IS NULL) OR col0 >= 7 OR (col1 >= 61.58) OR col0 < 545)))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_538 UNION SELECT pk, col0 FROM view_2_tab3_538
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-1500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE (((col0 IS NULL) OR col0 >= 7 OR (col1 >= 61.58) OR col0 < 545)) ) AS tab3_538
----
100 values hashing to d7fd31c3916c207fd3117332326c3f37

query I rowsort label-1500-3
SELECT * FROM view_3_tab3_538
----
100 values hashing to d7fd31c3916c207fd3117332326c3f37

query I rowsort label-1500-3
SELECT pk FROM tab3 WHERE (((col0 IS NULL) OR col0 >= 7 OR (col1 >= 61.58) OR col0 < 545))
----
100 values hashing to d7fd31c3916c207fd3117332326c3f37

statement ok
DROP VIEW view_1_tab3_538

statement ok
DROP VIEW view_2_tab3_538

statement ok
DROP VIEW view_3_tab3_538

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab4_538 AS SELECT pk, col0 FROM tab4 WHERE (((col0 IS NULL) OR col0 >= 7 OR (col1 >= 61.58) OR col0 < 545))

statement ok
CREATE VIEW view_2_tab4_538 AS SELECT pk, col0 FROM tab4 WHERE NOT ((((col0 IS NULL) OR col0 >= 7 OR (col1 >= 61.58) OR col0 < 545)))

statement ok
CREATE VIEW view_3_tab4_538 AS SELECT pk FROM view_1_tab4_538

query II rowsort label-1500-1
SELECT pk, col0 FROM tab4 WHERE (((col0 IS NULL) OR col0 >= 7 OR (col1 >= 61.58) OR col0 < 545))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-1500-2
SELECT pk, col0 FROM tab4 WHERE NOT ((((col0 IS NULL) OR col0 >= 7 OR (col1 >= 61.58) OR col0 < 545)))
----

query II rowsort label-1500-1
SELECT pk, col0 FROM view_1_tab4_538
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-1500-2
SELECT pk, col0 FROM view_2_tab4_538
----

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (((col0 IS NULL) OR col0 >= 7 OR (col1 >= 61.58) OR col0 < 545)) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT ((((col0 IS NULL) OR col0 >= 7 OR (col1 >= 61.58) OR col0 < 545)))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_538 UNION ALL SELECT pk, col0 FROM view_2_tab4_538
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (((col0 IS NULL) OR col0 >= 7 OR (col1 >= 61.58) OR col0 < 545)) UNION SELECT pk, col0 FROM tab4 WHERE NOT ((((col0 IS NULL) OR col0 >= 7 OR (col1 >= 61.58) OR col0 < 545)))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_538 UNION SELECT pk, col0 FROM view_2_tab4_538
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-1500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE (((col0 IS NULL) OR col0 >= 7 OR (col1 >= 61.58) OR col0 < 545)) ) AS tab4_538
----
100 values hashing to d7fd31c3916c207fd3117332326c3f37

query I rowsort label-1500-3
SELECT * FROM view_3_tab4_538
----
100 values hashing to d7fd31c3916c207fd3117332326c3f37

query I rowsort label-1500-3
SELECT pk FROM tab4 WHERE (((col0 IS NULL) OR col0 >= 7 OR (col1 >= 61.58) OR col0 < 545))
----
100 values hashing to d7fd31c3916c207fd3117332326c3f37

statement ok
DROP VIEW view_1_tab4_538

statement ok
DROP VIEW view_2_tab4_538

statement ok
DROP VIEW view_3_tab4_538

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab0_539 AS SELECT pk, col0 FROM tab0 WHERE ((((col4 IN (272.1,413.34) AND col0 < 382) OR col0 >= 385 OR (col3 <= 508)) OR col0 < 11))

statement ok
CREATE VIEW view_2_tab0_539 AS SELECT pk, col0 FROM tab0 WHERE NOT (((((col4 IN (272.1,413.34) AND col0 < 382) OR col0 >= 385 OR (col3 <= 508)) OR col0 < 11)))

statement ok
CREATE VIEW view_3_tab0_539 AS SELECT pk FROM view_1_tab0_539

query II rowsort label-1600-1
SELECT pk, col0 FROM tab0 WHERE ((((col4 IN (272.1,413.34) AND col0 < 382) OR col0 >= 385 OR (col3 <= 508)) OR col0 < 11))
----
164 values hashing to d85796a24c2a7a4517db7b2b076809ea

query II rowsort label-1600-2
SELECT pk, col0 FROM tab0 WHERE NOT (((((col4 IN (272.1,413.34) AND col0 < 382) OR col0 >= 385 OR (col3 <= 508)) OR col0 < 11)))
----
36 values hashing to 19e2a805bcfec1db1da48283a25dde3a

query II rowsort label-1600-1
SELECT pk, col0 FROM view_1_tab0_539
----
164 values hashing to d85796a24c2a7a4517db7b2b076809ea

query II rowsort label-1600-2
SELECT pk, col0 FROM view_2_tab0_539
----
36 values hashing to 19e2a805bcfec1db1da48283a25dde3a

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE ((((col4 IN (272.1,413.34) AND col0 < 382) OR col0 >= 385 OR (col3 <= 508)) OR col0 < 11)) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (((((col4 IN (272.1,413.34) AND col0 < 382) OR col0 >= 385 OR (col3 <= 508)) OR col0 < 11)))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_539 UNION ALL SELECT pk, col0 FROM view_2_tab0_539
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE ((((col4 IN (272.1,413.34) AND col0 < 382) OR col0 >= 385 OR (col3 <= 508)) OR col0 < 11)) UNION SELECT pk, col0 FROM tab0 WHERE NOT (((((col4 IN (272.1,413.34) AND col0 < 382) OR col0 >= 385 OR (col3 <= 508)) OR col0 < 11)))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_539 UNION SELECT pk, col0 FROM view_2_tab0_539
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-1600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE ((((col4 IN (272.1,413.34) AND col0 < 382) OR col0 >= 385 OR (col3 <= 508)) OR col0 < 11)) ) AS tab0_539
----
82 values hashing to 617dec3e7ac542d5321a7249d0b29f37

query I rowsort label-1600-3
SELECT * FROM view_3_tab0_539
----
82 values hashing to 617dec3e7ac542d5321a7249d0b29f37

query I rowsort label-1600-3
SELECT pk FROM tab0 WHERE ((((col4 IN (272.1,413.34) AND col0 < 382) OR col0 >= 385 OR (col3 <= 508)) OR col0 < 11))
----
82 values hashing to 617dec3e7ac542d5321a7249d0b29f37

statement ok
DROP VIEW view_1_tab0_539

statement ok
DROP VIEW view_2_tab0_539

statement ok
DROP VIEW view_3_tab0_539

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab1_539 AS SELECT pk, col0 FROM tab1 WHERE ((((col4 IN (272.1,413.34) AND col0 < 382) OR col0 >= 385 OR (col3 <= 508)) OR col0 < 11))

statement ok
CREATE VIEW view_2_tab1_539 AS SELECT pk, col0 FROM tab1 WHERE NOT (((((col4 IN (272.1,413.34) AND col0 < 382) OR col0 >= 385 OR (col3 <= 508)) OR col0 < 11)))

statement ok
CREATE VIEW view_3_tab1_539 AS SELECT pk FROM view_1_tab1_539

query II rowsort label-1600-1
SELECT pk, col0 FROM tab1 WHERE ((((col4 IN (272.1,413.34) AND col0 < 382) OR col0 >= 385 OR (col3 <= 508)) OR col0 < 11))
----
164 values hashing to d85796a24c2a7a4517db7b2b076809ea

query II rowsort label-1600-2
SELECT pk, col0 FROM tab1 WHERE NOT (((((col4 IN (272.1,413.34) AND col0 < 382) OR col0 >= 385 OR (col3 <= 508)) OR col0 < 11)))
----
36 values hashing to 19e2a805bcfec1db1da48283a25dde3a

query II rowsort label-1600-1
SELECT pk, col0 FROM view_1_tab1_539
----
164 values hashing to d85796a24c2a7a4517db7b2b076809ea

query II rowsort label-1600-2
SELECT pk, col0 FROM view_2_tab1_539
----
36 values hashing to 19e2a805bcfec1db1da48283a25dde3a

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE ((((col4 IN (272.1,413.34) AND col0 < 382) OR col0 >= 385 OR (col3 <= 508)) OR col0 < 11)) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (((((col4 IN (272.1,413.34) AND col0 < 382) OR col0 >= 385 OR (col3 <= 508)) OR col0 < 11)))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_539 UNION ALL SELECT pk, col0 FROM view_2_tab1_539
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE ((((col4 IN (272.1,413.34) AND col0 < 382) OR col0 >= 385 OR (col3 <= 508)) OR col0 < 11)) UNION SELECT pk, col0 FROM tab1 WHERE NOT (((((col4 IN (272.1,413.34) AND col0 < 382) OR col0 >= 385 OR (col3 <= 508)) OR col0 < 11)))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_539 UNION SELECT pk, col0 FROM view_2_tab1_539
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-1600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE ((((col4 IN (272.1,413.34) AND col0 < 382) OR col0 >= 385 OR (col3 <= 508)) OR col0 < 11)) ) AS tab1_539
----
82 values hashing to 617dec3e7ac542d5321a7249d0b29f37

query I rowsort label-1600-3
SELECT * FROM view_3_tab1_539
----
82 values hashing to 617dec3e7ac542d5321a7249d0b29f37

query I rowsort label-1600-3
SELECT pk FROM tab1 WHERE ((((col4 IN (272.1,413.34) AND col0 < 382) OR col0 >= 385 OR (col3 <= 508)) OR col0 < 11))
----
82 values hashing to 617dec3e7ac542d5321a7249d0b29f37

statement ok
DROP VIEW view_1_tab1_539

statement ok
DROP VIEW view_2_tab1_539

statement ok
DROP VIEW view_3_tab1_539

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab2_539 AS SELECT pk, col0 FROM tab2 WHERE ((((col4 IN (272.1,413.34) AND col0 < 382) OR col0 >= 385 OR (col3 <= 508)) OR col0 < 11))

statement ok
CREATE VIEW view_2_tab2_539 AS SELECT pk, col0 FROM tab2 WHERE NOT (((((col4 IN (272.1,413.34) AND col0 < 382) OR col0 >= 385 OR (col3 <= 508)) OR col0 < 11)))

statement ok
CREATE VIEW view_3_tab2_539 AS SELECT pk FROM view_1_tab2_539

query II rowsort label-1600-1
SELECT pk, col0 FROM tab2 WHERE ((((col4 IN (272.1,413.34) AND col0 < 382) OR col0 >= 385 OR (col3 <= 508)) OR col0 < 11))
----
164 values hashing to d85796a24c2a7a4517db7b2b076809ea

query II rowsort label-1600-2
SELECT pk, col0 FROM tab2 WHERE NOT (((((col4 IN (272.1,413.34) AND col0 < 382) OR col0 >= 385 OR (col3 <= 508)) OR col0 < 11)))
----
36 values hashing to 19e2a805bcfec1db1da48283a25dde3a

query II rowsort label-1600-1
SELECT pk, col0 FROM view_1_tab2_539
----
164 values hashing to d85796a24c2a7a4517db7b2b076809ea

query II rowsort label-1600-2
SELECT pk, col0 FROM view_2_tab2_539
----
36 values hashing to 19e2a805bcfec1db1da48283a25dde3a

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE ((((col4 IN (272.1,413.34) AND col0 < 382) OR col0 >= 385 OR (col3 <= 508)) OR col0 < 11)) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (((((col4 IN (272.1,413.34) AND col0 < 382) OR col0 >= 385 OR (col3 <= 508)) OR col0 < 11)))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_539 UNION ALL SELECT pk, col0 FROM view_2_tab2_539
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE ((((col4 IN (272.1,413.34) AND col0 < 382) OR col0 >= 385 OR (col3 <= 508)) OR col0 < 11)) UNION SELECT pk, col0 FROM tab2 WHERE NOT (((((col4 IN (272.1,413.34) AND col0 < 382) OR col0 >= 385 OR (col3 <= 508)) OR col0 < 11)))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_539 UNION SELECT pk, col0 FROM view_2_tab2_539
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-1600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE ((((col4 IN (272.1,413.34) AND col0 < 382) OR col0 >= 385 OR (col3 <= 508)) OR col0 < 11)) ) AS tab2_539
----
82 values hashing to 617dec3e7ac542d5321a7249d0b29f37

query I rowsort label-1600-3
SELECT * FROM view_3_tab2_539
----
82 values hashing to 617dec3e7ac542d5321a7249d0b29f37

query I rowsort label-1600-3
SELECT pk FROM tab2 WHERE ((((col4 IN (272.1,413.34) AND col0 < 382) OR col0 >= 385 OR (col3 <= 508)) OR col0 < 11))
----
82 values hashing to 617dec3e7ac542d5321a7249d0b29f37

statement ok
DROP VIEW view_1_tab2_539

statement ok
DROP VIEW view_2_tab2_539

statement ok
DROP VIEW view_3_tab2_539

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab3_539 AS SELECT pk, col0 FROM tab3 WHERE ((((col4 IN (272.1,413.34) AND col0 < 382) OR col0 >= 385 OR (col3 <= 508)) OR col0 < 11))

statement ok
CREATE VIEW view_2_tab3_539 AS SELECT pk, col0 FROM tab3 WHERE NOT (((((col4 IN (272.1,413.34) AND col0 < 382) OR col0 >= 385 OR (col3 <= 508)) OR col0 < 11)))

statement ok
CREATE VIEW view_3_tab3_539 AS SELECT pk FROM view_1_tab3_539

query II rowsort label-1600-1
SELECT pk, col0 FROM tab3 WHERE ((((col4 IN (272.1,413.34) AND col0 < 382) OR col0 >= 385 OR (col3 <= 508)) OR col0 < 11))
----
164 values hashing to d85796a24c2a7a4517db7b2b076809ea

query II rowsort label-1600-2
SELECT pk, col0 FROM tab3 WHERE NOT (((((col4 IN (272.1,413.34) AND col0 < 382) OR col0 >= 385 OR (col3 <= 508)) OR col0 < 11)))
----
36 values hashing to 19e2a805bcfec1db1da48283a25dde3a

query II rowsort label-1600-1
SELECT pk, col0 FROM view_1_tab3_539
----
164 values hashing to d85796a24c2a7a4517db7b2b076809ea

query II rowsort label-1600-2
SELECT pk, col0 FROM view_2_tab3_539
----
36 values hashing to 19e2a805bcfec1db1da48283a25dde3a

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE ((((col4 IN (272.1,413.34) AND col0 < 382) OR col0 >= 385 OR (col3 <= 508)) OR col0 < 11)) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (((((col4 IN (272.1,413.34) AND col0 < 382) OR col0 >= 385 OR (col3 <= 508)) OR col0 < 11)))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_539 UNION ALL SELECT pk, col0 FROM view_2_tab3_539
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE ((((col4 IN (272.1,413.34) AND col0 < 382) OR col0 >= 385 OR (col3 <= 508)) OR col0 < 11)) UNION SELECT pk, col0 FROM tab3 WHERE NOT (((((col4 IN (272.1,413.34) AND col0 < 382) OR col0 >= 385 OR (col3 <= 508)) OR col0 < 11)))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_539 UNION SELECT pk, col0 FROM view_2_tab3_539
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-1600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE ((((col4 IN (272.1,413.34) AND col0 < 382) OR col0 >= 385 OR (col3 <= 508)) OR col0 < 11)) ) AS tab3_539
----
82 values hashing to 617dec3e7ac542d5321a7249d0b29f37

query I rowsort label-1600-3
SELECT * FROM view_3_tab3_539
----
82 values hashing to 617dec3e7ac542d5321a7249d0b29f37

query I rowsort label-1600-3
SELECT pk FROM tab3 WHERE ((((col4 IN (272.1,413.34) AND col0 < 382) OR col0 >= 385 OR (col3 <= 508)) OR col0 < 11))
----
82 values hashing to 617dec3e7ac542d5321a7249d0b29f37

statement ok
DROP VIEW view_1_tab3_539

statement ok
DROP VIEW view_2_tab3_539

statement ok
DROP VIEW view_3_tab3_539

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab4_539 AS SELECT pk, col0 FROM tab4 WHERE ((((col4 IN (272.1,413.34) AND col0 < 382) OR col0 >= 385 OR (col3 <= 508)) OR col0 < 11))

statement ok
CREATE VIEW view_2_tab4_539 AS SELECT pk, col0 FROM tab4 WHERE NOT (((((col4 IN (272.1,413.34) AND col0 < 382) OR col0 >= 385 OR (col3 <= 508)) OR col0 < 11)))

statement ok
CREATE VIEW view_3_tab4_539 AS SELECT pk FROM view_1_tab4_539

query II rowsort label-1600-1
SELECT pk, col0 FROM tab4 WHERE ((((col4 IN (272.1,413.34) AND col0 < 382) OR col0 >= 385 OR (col3 <= 508)) OR col0 < 11))
----
164 values hashing to d85796a24c2a7a4517db7b2b076809ea

query II rowsort label-1600-2
SELECT pk, col0 FROM tab4 WHERE NOT (((((col4 IN (272.1,413.34) AND col0 < 382) OR col0 >= 385 OR (col3 <= 508)) OR col0 < 11)))
----
36 values hashing to 19e2a805bcfec1db1da48283a25dde3a

query II rowsort label-1600-1
SELECT pk, col0 FROM view_1_tab4_539
----
164 values hashing to d85796a24c2a7a4517db7b2b076809ea

query II rowsort label-1600-2
SELECT pk, col0 FROM view_2_tab4_539
----
36 values hashing to 19e2a805bcfec1db1da48283a25dde3a

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE ((((col4 IN (272.1,413.34) AND col0 < 382) OR col0 >= 385 OR (col3 <= 508)) OR col0 < 11)) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (((((col4 IN (272.1,413.34) AND col0 < 382) OR col0 >= 385 OR (col3 <= 508)) OR col0 < 11)))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_539 UNION ALL SELECT pk, col0 FROM view_2_tab4_539
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE ((((col4 IN (272.1,413.34) AND col0 < 382) OR col0 >= 385 OR (col3 <= 508)) OR col0 < 11)) UNION SELECT pk, col0 FROM tab4 WHERE NOT (((((col4 IN (272.1,413.34) AND col0 < 382) OR col0 >= 385 OR (col3 <= 508)) OR col0 < 11)))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_539 UNION SELECT pk, col0 FROM view_2_tab4_539
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-1600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE ((((col4 IN (272.1,413.34) AND col0 < 382) OR col0 >= 385 OR (col3 <= 508)) OR col0 < 11)) ) AS tab4_539
----
82 values hashing to 617dec3e7ac542d5321a7249d0b29f37

query I rowsort label-1600-3
SELECT * FROM view_3_tab4_539
----
82 values hashing to 617dec3e7ac542d5321a7249d0b29f37

query I rowsort label-1600-3
SELECT pk FROM tab4 WHERE ((((col4 IN (272.1,413.34) AND col0 < 382) OR col0 >= 385 OR (col3 <= 508)) OR col0 < 11))
----
82 values hashing to 617dec3e7ac542d5321a7249d0b29f37

statement ok
DROP VIEW view_1_tab4_539

statement ok
DROP VIEW view_2_tab4_539

statement ok
DROP VIEW view_3_tab4_539

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab0_540 AS SELECT pk, col0 FROM tab0 WHERE (col0 IN (844,789))

statement ok
CREATE VIEW view_2_tab0_540 AS SELECT pk, col0 FROM tab0 WHERE NOT ((col0 IN (844,789)))

statement ok
CREATE VIEW view_3_tab0_540 AS SELECT pk FROM view_1_tab0_540

query II rowsort label-1700-1
SELECT pk, col0 FROM tab0 WHERE (col0 IN (844,789))
----
51
844

query II rowsort label-1700-2
SELECT pk, col0 FROM tab0 WHERE NOT ((col0 IN (844,789)))
----
198 values hashing to 2f07f9269c3c5b1999f8220e64b9d1f3

query II rowsort label-1700-1
SELECT pk, col0 FROM view_1_tab0_540
----
51
844

query II rowsort label-1700-2
SELECT pk, col0 FROM view_2_tab0_540
----
198 values hashing to 2f07f9269c3c5b1999f8220e64b9d1f3

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col0 IN (844,789)) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT ((col0 IN (844,789)))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_540 UNION ALL SELECT pk, col0 FROM view_2_tab0_540
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col0 IN (844,789)) UNION SELECT pk, col0 FROM tab0 WHERE NOT ((col0 IN (844,789)))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_540 UNION SELECT pk, col0 FROM view_2_tab0_540
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-1700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE (col0 IN (844,789)) ) AS tab0_540
----
51

query I rowsort label-1700-3
SELECT * FROM view_3_tab0_540
----
51

query I rowsort label-1700-3
SELECT pk FROM tab0 WHERE (col0 IN (844,789))
----
51

statement ok
DROP VIEW view_1_tab0_540

statement ok
DROP VIEW view_2_tab0_540

statement ok
DROP VIEW view_3_tab0_540

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab1_540 AS SELECT pk, col0 FROM tab1 WHERE (col0 IN (844,789))

statement ok
CREATE VIEW view_2_tab1_540 AS SELECT pk, col0 FROM tab1 WHERE NOT ((col0 IN (844,789)))

statement ok
CREATE VIEW view_3_tab1_540 AS SELECT pk FROM view_1_tab1_540

query II rowsort label-1700-1
SELECT pk, col0 FROM tab1 WHERE (col0 IN (844,789))
----
51
844

query II rowsort label-1700-2
SELECT pk, col0 FROM tab1 WHERE NOT ((col0 IN (844,789)))
----
198 values hashing to 2f07f9269c3c5b1999f8220e64b9d1f3

query II rowsort label-1700-1
SELECT pk, col0 FROM view_1_tab1_540
----
51
844

query II rowsort label-1700-2
SELECT pk, col0 FROM view_2_tab1_540
----
198 values hashing to 2f07f9269c3c5b1999f8220e64b9d1f3

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col0 IN (844,789)) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT ((col0 IN (844,789)))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_540 UNION ALL SELECT pk, col0 FROM view_2_tab1_540
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col0 IN (844,789)) UNION SELECT pk, col0 FROM tab1 WHERE NOT ((col0 IN (844,789)))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_540 UNION SELECT pk, col0 FROM view_2_tab1_540
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-1700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE (col0 IN (844,789)) ) AS tab1_540
----
51

query I rowsort label-1700-3
SELECT * FROM view_3_tab1_540
----
51

query I rowsort label-1700-3
SELECT pk FROM tab1 WHERE (col0 IN (844,789))
----
51

statement ok
DROP VIEW view_1_tab1_540

statement ok
DROP VIEW view_2_tab1_540

statement ok
DROP VIEW view_3_tab1_540

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab2_540 AS SELECT pk, col0 FROM tab2 WHERE (col0 IN (844,789))

statement ok
CREATE VIEW view_2_tab2_540 AS SELECT pk, col0 FROM tab2 WHERE NOT ((col0 IN (844,789)))

statement ok
CREATE VIEW view_3_tab2_540 AS SELECT pk FROM view_1_tab2_540

query II rowsort label-1700-1
SELECT pk, col0 FROM tab2 WHERE (col0 IN (844,789))
----
51
844

query II rowsort label-1700-2
SELECT pk, col0 FROM tab2 WHERE NOT ((col0 IN (844,789)))
----
198 values hashing to 2f07f9269c3c5b1999f8220e64b9d1f3

query II rowsort label-1700-1
SELECT pk, col0 FROM view_1_tab2_540
----
51
844

query II rowsort label-1700-2
SELECT pk, col0 FROM view_2_tab2_540
----
198 values hashing to 2f07f9269c3c5b1999f8220e64b9d1f3

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col0 IN (844,789)) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT ((col0 IN (844,789)))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_540 UNION ALL SELECT pk, col0 FROM view_2_tab2_540
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col0 IN (844,789)) UNION SELECT pk, col0 FROM tab2 WHERE NOT ((col0 IN (844,789)))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_540 UNION SELECT pk, col0 FROM view_2_tab2_540
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-1700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE (col0 IN (844,789)) ) AS tab2_540
----
51

query I rowsort label-1700-3
SELECT * FROM view_3_tab2_540
----
51

query I rowsort label-1700-3
SELECT pk FROM tab2 WHERE (col0 IN (844,789))
----
51

statement ok
DROP VIEW view_1_tab2_540

statement ok
DROP VIEW view_2_tab2_540

statement ok
DROP VIEW view_3_tab2_540

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab3_540 AS SELECT pk, col0 FROM tab3 WHERE (col0 IN (844,789))

statement ok
CREATE VIEW view_2_tab3_540 AS SELECT pk, col0 FROM tab3 WHERE NOT ((col0 IN (844,789)))

statement ok
CREATE VIEW view_3_tab3_540 AS SELECT pk FROM view_1_tab3_540

query II rowsort label-1700-1
SELECT pk, col0 FROM tab3 WHERE (col0 IN (844,789))
----
51
844

query II rowsort label-1700-2
SELECT pk, col0 FROM tab3 WHERE NOT ((col0 IN (844,789)))
----
198 values hashing to 2f07f9269c3c5b1999f8220e64b9d1f3

query II rowsort label-1700-1
SELECT pk, col0 FROM view_1_tab3_540
----
51
844

query II rowsort label-1700-2
SELECT pk, col0 FROM view_2_tab3_540
----
198 values hashing to 2f07f9269c3c5b1999f8220e64b9d1f3

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col0 IN (844,789)) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT ((col0 IN (844,789)))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_540 UNION ALL SELECT pk, col0 FROM view_2_tab3_540
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col0 IN (844,789)) UNION SELECT pk, col0 FROM tab3 WHERE NOT ((col0 IN (844,789)))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_540 UNION SELECT pk, col0 FROM view_2_tab3_540
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-1700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE (col0 IN (844,789)) ) AS tab3_540
----
51

query I rowsort label-1700-3
SELECT * FROM view_3_tab3_540
----
51

query I rowsort label-1700-3
SELECT pk FROM tab3 WHERE (col0 IN (844,789))
----
51

statement ok
DROP VIEW view_1_tab3_540

statement ok
DROP VIEW view_2_tab3_540

statement ok
DROP VIEW view_3_tab3_540

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab4_540 AS SELECT pk, col0 FROM tab4 WHERE (col0 IN (844,789))

statement ok
CREATE VIEW view_2_tab4_540 AS SELECT pk, col0 FROM tab4 WHERE NOT ((col0 IN (844,789)))

statement ok
CREATE VIEW view_3_tab4_540 AS SELECT pk FROM view_1_tab4_540

query II rowsort label-1700-1
SELECT pk, col0 FROM tab4 WHERE (col0 IN (844,789))
----
51
844

query II rowsort label-1700-2
SELECT pk, col0 FROM tab4 WHERE NOT ((col0 IN (844,789)))
----
198 values hashing to 2f07f9269c3c5b1999f8220e64b9d1f3

query II rowsort label-1700-1
SELECT pk, col0 FROM view_1_tab4_540
----
51
844

query II rowsort label-1700-2
SELECT pk, col0 FROM view_2_tab4_540
----
198 values hashing to 2f07f9269c3c5b1999f8220e64b9d1f3

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col0 IN (844,789)) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT ((col0 IN (844,789)))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_540 UNION ALL SELECT pk, col0 FROM view_2_tab4_540
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col0 IN (844,789)) UNION SELECT pk, col0 FROM tab4 WHERE NOT ((col0 IN (844,789)))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_540 UNION SELECT pk, col0 FROM view_2_tab4_540
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-1700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE (col0 IN (844,789)) ) AS tab4_540
----
51

query I rowsort label-1700-3
SELECT * FROM view_3_tab4_540
----
51

query I rowsort label-1700-3
SELECT pk FROM tab4 WHERE (col0 IN (844,789))
----
51

statement ok
DROP VIEW view_1_tab4_540

statement ok
DROP VIEW view_2_tab4_540

statement ok
DROP VIEW view_3_tab4_540

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab0_541 AS SELECT pk, col0 FROM tab0 WHERE col0 < 766 AND col1 > 808.9 OR col1 > 474.74 OR (col3 <= 327) AND col4 <= 4.15 AND col1 >= 928.63

statement ok
CREATE VIEW view_2_tab0_541 AS SELECT pk, col0 FROM tab0 WHERE NOT (col0 < 766 AND col1 > 808.9 OR col1 > 474.74 OR (col3 <= 327) AND col4 <= 4.15 AND col1 >= 928.63)

statement ok
CREATE VIEW view_3_tab0_541 AS SELECT pk FROM view_1_tab0_541

query II rowsort label-1800-1
SELECT pk, col0 FROM tab0 WHERE col0 < 766 AND col1 > 808.9 OR col1 > 474.74 OR (col3 <= 327) AND col4 <= 4.15 AND col1 >= 928.63
----
108 values hashing to fd89e392bb46afb12b2bd69a46533235

query II rowsort label-1800-2
SELECT pk, col0 FROM tab0 WHERE NOT (col0 < 766 AND col1 > 808.9 OR col1 > 474.74 OR (col3 <= 327) AND col4 <= 4.15 AND col1 >= 928.63)
----
92 values hashing to 14b26bc7cad26fbb4569b5a335c47ab2

query II rowsort label-1800-1
SELECT pk, col0 FROM view_1_tab0_541
----
108 values hashing to fd89e392bb46afb12b2bd69a46533235

query II rowsort label-1800-2
SELECT pk, col0 FROM view_2_tab0_541
----
92 values hashing to 14b26bc7cad26fbb4569b5a335c47ab2

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col0 < 766 AND col1 > 808.9 OR col1 > 474.74 OR (col3 <= 327) AND col4 <= 4.15 AND col1 >= 928.63 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col0 < 766 AND col1 > 808.9 OR col1 > 474.74 OR (col3 <= 327) AND col4 <= 4.15 AND col1 >= 928.63)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_541 UNION ALL SELECT pk, col0 FROM view_2_tab0_541
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col0 < 766 AND col1 > 808.9 OR col1 > 474.74 OR (col3 <= 327) AND col4 <= 4.15 AND col1 >= 928.63 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col0 < 766 AND col1 > 808.9 OR col1 > 474.74 OR (col3 <= 327) AND col4 <= 4.15 AND col1 >= 928.63)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_541 UNION SELECT pk, col0 FROM view_2_tab0_541
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-1800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col0 < 766 AND col1 > 808.9 OR col1 > 474.74 OR (col3 <= 327) AND col4 <= 4.15 AND col1 >= 928.63 ) AS tab0_541
----
54 values hashing to 9213df71149d28d3602fc054be2f58e6

query I rowsort label-1800-3
SELECT * FROM view_3_tab0_541
----
54 values hashing to 9213df71149d28d3602fc054be2f58e6

query I rowsort label-1800-3
SELECT pk FROM tab0 WHERE col0 < 766 AND col1 > 808.9 OR col1 > 474.74 OR (col3 <= 327) AND col4 <= 4.15 AND col1 >= 928.63
----
54 values hashing to 9213df71149d28d3602fc054be2f58e6

statement ok
DROP VIEW view_1_tab0_541

statement ok
DROP VIEW view_2_tab0_541

statement ok
DROP VIEW view_3_tab0_541

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab1_541 AS SELECT pk, col0 FROM tab1 WHERE col0 < 766 AND col1 > 808.9 OR col1 > 474.74 OR (col3 <= 327) AND col4 <= 4.15 AND col1 >= 928.63

statement ok
CREATE VIEW view_2_tab1_541 AS SELECT pk, col0 FROM tab1 WHERE NOT (col0 < 766 AND col1 > 808.9 OR col1 > 474.74 OR (col3 <= 327) AND col4 <= 4.15 AND col1 >= 928.63)

statement ok
CREATE VIEW view_3_tab1_541 AS SELECT pk FROM view_1_tab1_541

query II rowsort label-1800-1
SELECT pk, col0 FROM tab1 WHERE col0 < 766 AND col1 > 808.9 OR col1 > 474.74 OR (col3 <= 327) AND col4 <= 4.15 AND col1 >= 928.63
----
108 values hashing to fd89e392bb46afb12b2bd69a46533235

query II rowsort label-1800-2
SELECT pk, col0 FROM tab1 WHERE NOT (col0 < 766 AND col1 > 808.9 OR col1 > 474.74 OR (col3 <= 327) AND col4 <= 4.15 AND col1 >= 928.63)
----
92 values hashing to 14b26bc7cad26fbb4569b5a335c47ab2

query II rowsort label-1800-1
SELECT pk, col0 FROM view_1_tab1_541
----
108 values hashing to fd89e392bb46afb12b2bd69a46533235

query II rowsort label-1800-2
SELECT pk, col0 FROM view_2_tab1_541
----
92 values hashing to 14b26bc7cad26fbb4569b5a335c47ab2

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col0 < 766 AND col1 > 808.9 OR col1 > 474.74 OR (col3 <= 327) AND col4 <= 4.15 AND col1 >= 928.63 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col0 < 766 AND col1 > 808.9 OR col1 > 474.74 OR (col3 <= 327) AND col4 <= 4.15 AND col1 >= 928.63)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_541 UNION ALL SELECT pk, col0 FROM view_2_tab1_541
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col0 < 766 AND col1 > 808.9 OR col1 > 474.74 OR (col3 <= 327) AND col4 <= 4.15 AND col1 >= 928.63 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col0 < 766 AND col1 > 808.9 OR col1 > 474.74 OR (col3 <= 327) AND col4 <= 4.15 AND col1 >= 928.63)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_541 UNION SELECT pk, col0 FROM view_2_tab1_541
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-1800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col0 < 766 AND col1 > 808.9 OR col1 > 474.74 OR (col3 <= 327) AND col4 <= 4.15 AND col1 >= 928.63 ) AS tab1_541
----
54 values hashing to 9213df71149d28d3602fc054be2f58e6

query I rowsort label-1800-3
SELECT * FROM view_3_tab1_541
----
54 values hashing to 9213df71149d28d3602fc054be2f58e6

query I rowsort label-1800-3
SELECT pk FROM tab1 WHERE col0 < 766 AND col1 > 808.9 OR col1 > 474.74 OR (col3 <= 327) AND col4 <= 4.15 AND col1 >= 928.63
----
54 values hashing to 9213df71149d28d3602fc054be2f58e6

statement ok
DROP VIEW view_1_tab1_541

statement ok
DROP VIEW view_2_tab1_541

statement ok
DROP VIEW view_3_tab1_541

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab2_541 AS SELECT pk, col0 FROM tab2 WHERE col0 < 766 AND col1 > 808.9 OR col1 > 474.74 OR (col3 <= 327) AND col4 <= 4.15 AND col1 >= 928.63

statement ok
CREATE VIEW view_2_tab2_541 AS SELECT pk, col0 FROM tab2 WHERE NOT (col0 < 766 AND col1 > 808.9 OR col1 > 474.74 OR (col3 <= 327) AND col4 <= 4.15 AND col1 >= 928.63)

statement ok
CREATE VIEW view_3_tab2_541 AS SELECT pk FROM view_1_tab2_541

query II rowsort label-1800-1
SELECT pk, col0 FROM tab2 WHERE col0 < 766 AND col1 > 808.9 OR col1 > 474.74 OR (col3 <= 327) AND col4 <= 4.15 AND col1 >= 928.63
----
108 values hashing to fd89e392bb46afb12b2bd69a46533235

query II rowsort label-1800-2
SELECT pk, col0 FROM tab2 WHERE NOT (col0 < 766 AND col1 > 808.9 OR col1 > 474.74 OR (col3 <= 327) AND col4 <= 4.15 AND col1 >= 928.63)
----
92 values hashing to 14b26bc7cad26fbb4569b5a335c47ab2

query II rowsort label-1800-1
SELECT pk, col0 FROM view_1_tab2_541
----
108 values hashing to fd89e392bb46afb12b2bd69a46533235

query II rowsort label-1800-2
SELECT pk, col0 FROM view_2_tab2_541
----
92 values hashing to 14b26bc7cad26fbb4569b5a335c47ab2

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col0 < 766 AND col1 > 808.9 OR col1 > 474.74 OR (col3 <= 327) AND col4 <= 4.15 AND col1 >= 928.63 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col0 < 766 AND col1 > 808.9 OR col1 > 474.74 OR (col3 <= 327) AND col4 <= 4.15 AND col1 >= 928.63)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_541 UNION ALL SELECT pk, col0 FROM view_2_tab2_541
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col0 < 766 AND col1 > 808.9 OR col1 > 474.74 OR (col3 <= 327) AND col4 <= 4.15 AND col1 >= 928.63 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col0 < 766 AND col1 > 808.9 OR col1 > 474.74 OR (col3 <= 327) AND col4 <= 4.15 AND col1 >= 928.63)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_541 UNION SELECT pk, col0 FROM view_2_tab2_541
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-1800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col0 < 766 AND col1 > 808.9 OR col1 > 474.74 OR (col3 <= 327) AND col4 <= 4.15 AND col1 >= 928.63 ) AS tab2_541
----
54 values hashing to 9213df71149d28d3602fc054be2f58e6

query I rowsort label-1800-3
SELECT * FROM view_3_tab2_541
----
54 values hashing to 9213df71149d28d3602fc054be2f58e6

query I rowsort label-1800-3
SELECT pk FROM tab2 WHERE col0 < 766 AND col1 > 808.9 OR col1 > 474.74 OR (col3 <= 327) AND col4 <= 4.15 AND col1 >= 928.63
----
54 values hashing to 9213df71149d28d3602fc054be2f58e6

statement ok
DROP VIEW view_1_tab2_541

statement ok
DROP VIEW view_2_tab2_541

statement ok
DROP VIEW view_3_tab2_541

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab3_541 AS SELECT pk, col0 FROM tab3 WHERE col0 < 766 AND col1 > 808.9 OR col1 > 474.74 OR (col3 <= 327) AND col4 <= 4.15 AND col1 >= 928.63

statement ok
CREATE VIEW view_2_tab3_541 AS SELECT pk, col0 FROM tab3 WHERE NOT (col0 < 766 AND col1 > 808.9 OR col1 > 474.74 OR (col3 <= 327) AND col4 <= 4.15 AND col1 >= 928.63)

statement ok
CREATE VIEW view_3_tab3_541 AS SELECT pk FROM view_1_tab3_541

query II rowsort label-1800-1
SELECT pk, col0 FROM tab3 WHERE col0 < 766 AND col1 > 808.9 OR col1 > 474.74 OR (col3 <= 327) AND col4 <= 4.15 AND col1 >= 928.63
----
108 values hashing to fd89e392bb46afb12b2bd69a46533235

query II rowsort label-1800-2
SELECT pk, col0 FROM tab3 WHERE NOT (col0 < 766 AND col1 > 808.9 OR col1 > 474.74 OR (col3 <= 327) AND col4 <= 4.15 AND col1 >= 928.63)
----
92 values hashing to 14b26bc7cad26fbb4569b5a335c47ab2

query II rowsort label-1800-1
SELECT pk, col0 FROM view_1_tab3_541
----
108 values hashing to fd89e392bb46afb12b2bd69a46533235

query II rowsort label-1800-2
SELECT pk, col0 FROM view_2_tab3_541
----
92 values hashing to 14b26bc7cad26fbb4569b5a335c47ab2

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col0 < 766 AND col1 > 808.9 OR col1 > 474.74 OR (col3 <= 327) AND col4 <= 4.15 AND col1 >= 928.63 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col0 < 766 AND col1 > 808.9 OR col1 > 474.74 OR (col3 <= 327) AND col4 <= 4.15 AND col1 >= 928.63)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_541 UNION ALL SELECT pk, col0 FROM view_2_tab3_541
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col0 < 766 AND col1 > 808.9 OR col1 > 474.74 OR (col3 <= 327) AND col4 <= 4.15 AND col1 >= 928.63 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col0 < 766 AND col1 > 808.9 OR col1 > 474.74 OR (col3 <= 327) AND col4 <= 4.15 AND col1 >= 928.63)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_541 UNION SELECT pk, col0 FROM view_2_tab3_541
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-1800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col0 < 766 AND col1 > 808.9 OR col1 > 474.74 OR (col3 <= 327) AND col4 <= 4.15 AND col1 >= 928.63 ) AS tab3_541
----
54 values hashing to 9213df71149d28d3602fc054be2f58e6

query I rowsort label-1800-3
SELECT * FROM view_3_tab3_541
----
54 values hashing to 9213df71149d28d3602fc054be2f58e6

query I rowsort label-1800-3
SELECT pk FROM tab3 WHERE col0 < 766 AND col1 > 808.9 OR col1 > 474.74 OR (col3 <= 327) AND col4 <= 4.15 AND col1 >= 928.63
----
54 values hashing to 9213df71149d28d3602fc054be2f58e6

statement ok
DROP VIEW view_1_tab3_541

statement ok
DROP VIEW view_2_tab3_541

statement ok
DROP VIEW view_3_tab3_541

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab4_541 AS SELECT pk, col0 FROM tab4 WHERE col0 < 766 AND col1 > 808.9 OR col1 > 474.74 OR (col3 <= 327) AND col4 <= 4.15 AND col1 >= 928.63

statement ok
CREATE VIEW view_2_tab4_541 AS SELECT pk, col0 FROM tab4 WHERE NOT (col0 < 766 AND col1 > 808.9 OR col1 > 474.74 OR (col3 <= 327) AND col4 <= 4.15 AND col1 >= 928.63)

statement ok
CREATE VIEW view_3_tab4_541 AS SELECT pk FROM view_1_tab4_541

query II rowsort label-1800-1
SELECT pk, col0 FROM tab4 WHERE col0 < 766 AND col1 > 808.9 OR col1 > 474.74 OR (col3 <= 327) AND col4 <= 4.15 AND col1 >= 928.63
----
108 values hashing to fd89e392bb46afb12b2bd69a46533235

query II rowsort label-1800-2
SELECT pk, col0 FROM tab4 WHERE NOT (col0 < 766 AND col1 > 808.9 OR col1 > 474.74 OR (col3 <= 327) AND col4 <= 4.15 AND col1 >= 928.63)
----
92 values hashing to 14b26bc7cad26fbb4569b5a335c47ab2

query II rowsort label-1800-1
SELECT pk, col0 FROM view_1_tab4_541
----
108 values hashing to fd89e392bb46afb12b2bd69a46533235

query II rowsort label-1800-2
SELECT pk, col0 FROM view_2_tab4_541
----
92 values hashing to 14b26bc7cad26fbb4569b5a335c47ab2

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col0 < 766 AND col1 > 808.9 OR col1 > 474.74 OR (col3 <= 327) AND col4 <= 4.15 AND col1 >= 928.63 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col0 < 766 AND col1 > 808.9 OR col1 > 474.74 OR (col3 <= 327) AND col4 <= 4.15 AND col1 >= 928.63)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_541 UNION ALL SELECT pk, col0 FROM view_2_tab4_541
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col0 < 766 AND col1 > 808.9 OR col1 > 474.74 OR (col3 <= 327) AND col4 <= 4.15 AND col1 >= 928.63 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col0 < 766 AND col1 > 808.9 OR col1 > 474.74 OR (col3 <= 327) AND col4 <= 4.15 AND col1 >= 928.63)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_541 UNION SELECT pk, col0 FROM view_2_tab4_541
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-1800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col0 < 766 AND col1 > 808.9 OR col1 > 474.74 OR (col3 <= 327) AND col4 <= 4.15 AND col1 >= 928.63 ) AS tab4_541
----
54 values hashing to 9213df71149d28d3602fc054be2f58e6

query I rowsort label-1800-3
SELECT * FROM view_3_tab4_541
----
54 values hashing to 9213df71149d28d3602fc054be2f58e6

query I rowsort label-1800-3
SELECT pk FROM tab4 WHERE col0 < 766 AND col1 > 808.9 OR col1 > 474.74 OR (col3 <= 327) AND col4 <= 4.15 AND col1 >= 928.63
----
54 values hashing to 9213df71149d28d3602fc054be2f58e6

statement ok
DROP VIEW view_1_tab4_541

statement ok
DROP VIEW view_2_tab4_541

statement ok
DROP VIEW view_3_tab4_541

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab0_542 AS SELECT pk, col0 FROM tab0 WHERE col0 > 759

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

statement ok
CREATE VIEW view_3_tab0_542 AS SELECT pk FROM view_1_tab0_542

query II rowsort label-1900-1
SELECT pk, col0 FROM tab0 WHERE col0 > 759
----
62 values hashing to 696cf7859896eb38d71272025fe4b509

query II rowsort label-1900-2
SELECT pk, col0 FROM tab0 WHERE NOT (col0 > 759)
----
138 values hashing to ea5ca52817c5c0e85b00dc012fa5f0d7

query II rowsort label-1900-1
SELECT pk, col0 FROM view_1_tab0_542
----
62 values hashing to 696cf7859896eb38d71272025fe4b509

query II rowsort label-1900-2
SELECT pk, col0 FROM view_2_tab0_542
----
138 values hashing to ea5ca52817c5c0e85b00dc012fa5f0d7

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col0 > 759 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col0 > 759)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_542 UNION ALL SELECT pk, col0 FROM view_2_tab0_542
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col0 > 759 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col0 > 759)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_542 UNION SELECT pk, col0 FROM view_2_tab0_542
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-1900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col0 > 759 ) AS tab0_542
----
31 values hashing to b25eae4444366386067b8e25aca22877

query I rowsort label-1900-3
SELECT * FROM view_3_tab0_542
----
31 values hashing to b25eae4444366386067b8e25aca22877

query I rowsort label-1900-3
SELECT pk FROM tab0 WHERE col0 > 759
----
31 values hashing to b25eae4444366386067b8e25aca22877

statement ok
DROP VIEW view_1_tab0_542

statement ok
DROP VIEW view_2_tab0_542

statement ok
DROP VIEW view_3_tab0_542

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab1_542 AS SELECT pk, col0 FROM tab1 WHERE col0 > 759

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

statement ok
CREATE VIEW view_3_tab1_542 AS SELECT pk FROM view_1_tab1_542

query II rowsort label-1900-1
SELECT pk, col0 FROM tab1 WHERE col0 > 759
----
62 values hashing to 696cf7859896eb38d71272025fe4b509

query II rowsort label-1900-2
SELECT pk, col0 FROM tab1 WHERE NOT (col0 > 759)
----
138 values hashing to ea5ca52817c5c0e85b00dc012fa5f0d7

query II rowsort label-1900-1
SELECT pk, col0 FROM view_1_tab1_542
----
62 values hashing to 696cf7859896eb38d71272025fe4b509

query II rowsort label-1900-2
SELECT pk, col0 FROM view_2_tab1_542
----
138 values hashing to ea5ca52817c5c0e85b00dc012fa5f0d7

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col0 > 759 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col0 > 759)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_542 UNION ALL SELECT pk, col0 FROM view_2_tab1_542
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col0 > 759 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col0 > 759)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_542 UNION SELECT pk, col0 FROM view_2_tab1_542
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-1900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col0 > 759 ) AS tab1_542
----
31 values hashing to b25eae4444366386067b8e25aca22877

query I rowsort label-1900-3
SELECT * FROM view_3_tab1_542
----
31 values hashing to b25eae4444366386067b8e25aca22877

query I rowsort label-1900-3
SELECT pk FROM tab1 WHERE col0 > 759
----
31 values hashing to b25eae4444366386067b8e25aca22877

statement ok
DROP VIEW view_1_tab1_542

statement ok
DROP VIEW view_2_tab1_542

statement ok
DROP VIEW view_3_tab1_542

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab2_542 AS SELECT pk, col0 FROM tab2 WHERE col0 > 759

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

statement ok
CREATE VIEW view_3_tab2_542 AS SELECT pk FROM view_1_tab2_542

query II rowsort label-1900-1
SELECT pk, col0 FROM tab2 WHERE col0 > 759
----
62 values hashing to 696cf7859896eb38d71272025fe4b509

query II rowsort label-1900-2
SELECT pk, col0 FROM tab2 WHERE NOT (col0 > 759)
----
138 values hashing to ea5ca52817c5c0e85b00dc012fa5f0d7

query II rowsort label-1900-1
SELECT pk, col0 FROM view_1_tab2_542
----
62 values hashing to 696cf7859896eb38d71272025fe4b509

query II rowsort label-1900-2
SELECT pk, col0 FROM view_2_tab2_542
----
138 values hashing to ea5ca52817c5c0e85b00dc012fa5f0d7

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col0 > 759 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col0 > 759)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_542 UNION ALL SELECT pk, col0 FROM view_2_tab2_542
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col0 > 759 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col0 > 759)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_542 UNION SELECT pk, col0 FROM view_2_tab2_542
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-1900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col0 > 759 ) AS tab2_542
----
31 values hashing to b25eae4444366386067b8e25aca22877

query I rowsort label-1900-3
SELECT * FROM view_3_tab2_542
----
31 values hashing to b25eae4444366386067b8e25aca22877

query I rowsort label-1900-3
SELECT pk FROM tab2 WHERE col0 > 759
----
31 values hashing to b25eae4444366386067b8e25aca22877

statement ok
DROP VIEW view_1_tab2_542

statement ok
DROP VIEW view_2_tab2_542

statement ok
DROP VIEW view_3_tab2_542

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab3_542 AS SELECT pk, col0 FROM tab3 WHERE col0 > 759

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

statement ok
CREATE VIEW view_3_tab3_542 AS SELECT pk FROM view_1_tab3_542

query II rowsort label-1900-1
SELECT pk, col0 FROM tab3 WHERE col0 > 759
----
62 values hashing to 696cf7859896eb38d71272025fe4b509

query II rowsort label-1900-2
SELECT pk, col0 FROM tab3 WHERE NOT (col0 > 759)
----
138 values hashing to ea5ca52817c5c0e85b00dc012fa5f0d7

query II rowsort label-1900-1
SELECT pk, col0 FROM view_1_tab3_542
----
62 values hashing to 696cf7859896eb38d71272025fe4b509

query II rowsort label-1900-2
SELECT pk, col0 FROM view_2_tab3_542
----
138 values hashing to ea5ca52817c5c0e85b00dc012fa5f0d7

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col0 > 759 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col0 > 759)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_542 UNION ALL SELECT pk, col0 FROM view_2_tab3_542
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col0 > 759 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col0 > 759)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_542 UNION SELECT pk, col0 FROM view_2_tab3_542
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-1900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col0 > 759 ) AS tab3_542
----
31 values hashing to b25eae4444366386067b8e25aca22877

query I rowsort label-1900-3
SELECT * FROM view_3_tab3_542
----
31 values hashing to b25eae4444366386067b8e25aca22877

query I rowsort label-1900-3
SELECT pk FROM tab3 WHERE col0 > 759
----
31 values hashing to b25eae4444366386067b8e25aca22877

statement ok
DROP VIEW view_1_tab3_542

statement ok
DROP VIEW view_2_tab3_542

statement ok
DROP VIEW view_3_tab3_542

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab4_542 AS SELECT pk, col0 FROM tab4 WHERE col0 > 759

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

statement ok
CREATE VIEW view_3_tab4_542 AS SELECT pk FROM view_1_tab4_542

query II rowsort label-1900-1
SELECT pk, col0 FROM tab4 WHERE col0 > 759
----
62 values hashing to 696cf7859896eb38d71272025fe4b509

query II rowsort label-1900-2
SELECT pk, col0 FROM tab4 WHERE NOT (col0 > 759)
----
138 values hashing to ea5ca52817c5c0e85b00dc012fa5f0d7

query II rowsort label-1900-1
SELECT pk, col0 FROM view_1_tab4_542
----
62 values hashing to 696cf7859896eb38d71272025fe4b509

query II rowsort label-1900-2
SELECT pk, col0 FROM view_2_tab4_542
----
138 values hashing to ea5ca52817c5c0e85b00dc012fa5f0d7

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col0 > 759 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col0 > 759)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_542 UNION ALL SELECT pk, col0 FROM view_2_tab4_542
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col0 > 759 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col0 > 759)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_542 UNION SELECT pk, col0 FROM view_2_tab4_542
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-1900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col0 > 759 ) AS tab4_542
----
31 values hashing to b25eae4444366386067b8e25aca22877

query I rowsort label-1900-3
SELECT * FROM view_3_tab4_542
----
31 values hashing to b25eae4444366386067b8e25aca22877

query I rowsort label-1900-3
SELECT pk FROM tab4 WHERE col0 > 759
----
31 values hashing to b25eae4444366386067b8e25aca22877

statement ok
DROP VIEW view_1_tab4_542

statement ok
DROP VIEW view_2_tab4_542

statement ok
DROP VIEW view_3_tab4_542

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab0_543 AS SELECT pk, col0 FROM tab0 WHERE col3 = 919

statement ok
CREATE VIEW view_2_tab0_543 AS SELECT pk, col0 FROM tab0 WHERE NOT (col3 = 919)

statement ok
CREATE VIEW view_3_tab0_543 AS SELECT pk FROM view_1_tab0_543

query II rowsort label-2000-1
SELECT pk, col0 FROM tab0 WHERE col3 = 919
----

query II rowsort label-2000-2
SELECT pk, col0 FROM tab0 WHERE NOT (col3 = 919)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-2000-1
SELECT pk, col0 FROM view_1_tab0_543
----

query II rowsort label-2000-2
SELECT pk, col0 FROM view_2_tab0_543
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 = 919 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col3 = 919)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_543 UNION ALL SELECT pk, col0 FROM view_2_tab0_543
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 = 919 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col3 = 919)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_543 UNION SELECT pk, col0 FROM view_2_tab0_543
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-2000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col3 = 919 ) AS tab0_543
----

query I rowsort label-2000-3
SELECT * FROM view_3_tab0_543
----

query I rowsort label-2000-3
SELECT pk FROM tab0 WHERE col3 = 919
----

statement ok
DROP VIEW view_1_tab0_543

statement ok
DROP VIEW view_2_tab0_543

statement ok
DROP VIEW view_3_tab0_543

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab1_543 AS SELECT pk, col0 FROM tab1 WHERE col3 = 919

statement ok
CREATE VIEW view_2_tab1_543 AS SELECT pk, col0 FROM tab1 WHERE NOT (col3 = 919)

statement ok
CREATE VIEW view_3_tab1_543 AS SELECT pk FROM view_1_tab1_543

query II rowsort label-2000-1
SELECT pk, col0 FROM tab1 WHERE col3 = 919
----

query II rowsort label-2000-2
SELECT pk, col0 FROM tab1 WHERE NOT (col3 = 919)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-2000-1
SELECT pk, col0 FROM view_1_tab1_543
----

query II rowsort label-2000-2
SELECT pk, col0 FROM view_2_tab1_543
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 = 919 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col3 = 919)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_543 UNION ALL SELECT pk, col0 FROM view_2_tab1_543
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 = 919 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col3 = 919)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_543 UNION SELECT pk, col0 FROM view_2_tab1_543
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-2000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col3 = 919 ) AS tab1_543
----

query I rowsort label-2000-3
SELECT * FROM view_3_tab1_543
----

query I rowsort label-2000-3
SELECT pk FROM tab1 WHERE col3 = 919
----

statement ok
DROP VIEW view_1_tab1_543

statement ok
DROP VIEW view_2_tab1_543

statement ok
DROP VIEW view_3_tab1_543

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab2_543 AS SELECT pk, col0 FROM tab2 WHERE col3 = 919

statement ok
CREATE VIEW view_2_tab2_543 AS SELECT pk, col0 FROM tab2 WHERE NOT (col3 = 919)

statement ok
CREATE VIEW view_3_tab2_543 AS SELECT pk FROM view_1_tab2_543

query II rowsort label-2000-1
SELECT pk, col0 FROM tab2 WHERE col3 = 919
----

query II rowsort label-2000-2
SELECT pk, col0 FROM tab2 WHERE NOT (col3 = 919)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-2000-1
SELECT pk, col0 FROM view_1_tab2_543
----

query II rowsort label-2000-2
SELECT pk, col0 FROM view_2_tab2_543
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 = 919 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col3 = 919)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_543 UNION ALL SELECT pk, col0 FROM view_2_tab2_543
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 = 919 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col3 = 919)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_543 UNION SELECT pk, col0 FROM view_2_tab2_543
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-2000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col3 = 919 ) AS tab2_543
----

query I rowsort label-2000-3
SELECT * FROM view_3_tab2_543
----

query I rowsort label-2000-3
SELECT pk FROM tab2 WHERE col3 = 919
----

statement ok
DROP VIEW view_1_tab2_543

statement ok
DROP VIEW view_2_tab2_543

statement ok
DROP VIEW view_3_tab2_543

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab3_543 AS SELECT pk, col0 FROM tab3 WHERE col3 = 919

statement ok
CREATE VIEW view_2_tab3_543 AS SELECT pk, col0 FROM tab3 WHERE NOT (col3 = 919)

statement ok
CREATE VIEW view_3_tab3_543 AS SELECT pk FROM view_1_tab3_543

query II rowsort label-2000-1
SELECT pk, col0 FROM tab3 WHERE col3 = 919
----

query II rowsort label-2000-2
SELECT pk, col0 FROM tab3 WHERE NOT (col3 = 919)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-2000-1
SELECT pk, col0 FROM view_1_tab3_543
----

query II rowsort label-2000-2
SELECT pk, col0 FROM view_2_tab3_543
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 = 919 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col3 = 919)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_543 UNION ALL SELECT pk, col0 FROM view_2_tab3_543
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 = 919 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col3 = 919)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_543 UNION SELECT pk, col0 FROM view_2_tab3_543
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-2000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col3 = 919 ) AS tab3_543
----

query I rowsort label-2000-3
SELECT * FROM view_3_tab3_543
----

query I rowsort label-2000-3
SELECT pk FROM tab3 WHERE col3 = 919
----

statement ok
DROP VIEW view_1_tab3_543

statement ok
DROP VIEW view_2_tab3_543

statement ok
DROP VIEW view_3_tab3_543

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab4_543 AS SELECT pk, col0 FROM tab4 WHERE col3 = 919

statement ok
CREATE VIEW view_2_tab4_543 AS SELECT pk, col0 FROM tab4 WHERE NOT (col3 = 919)

statement ok
CREATE VIEW view_3_tab4_543 AS SELECT pk FROM view_1_tab4_543

query II rowsort label-2000-1
SELECT pk, col0 FROM tab4 WHERE col3 = 919
----

query II rowsort label-2000-2
SELECT pk, col0 FROM tab4 WHERE NOT (col3 = 919)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-2000-1
SELECT pk, col0 FROM view_1_tab4_543
----

query II rowsort label-2000-2
SELECT pk, col0 FROM view_2_tab4_543
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 = 919 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col3 = 919)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_543 UNION ALL SELECT pk, col0 FROM view_2_tab4_543
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 = 919 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col3 = 919)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_543 UNION SELECT pk, col0 FROM view_2_tab4_543
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-2000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col3 = 919 ) AS tab4_543
----

query I rowsort label-2000-3
SELECT * FROM view_3_tab4_543
----

query I rowsort label-2000-3
SELECT pk FROM tab4 WHERE col3 = 919
----

statement ok
DROP VIEW view_1_tab4_543

statement ok
DROP VIEW view_2_tab4_543

statement ok
DROP VIEW view_3_tab4_543

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab0_544 AS SELECT pk, col0 FROM tab0 WHERE (((col3 > 386 OR col0 <= 556) AND col3 >= 841))

statement ok
CREATE VIEW view_2_tab0_544 AS SELECT pk, col0 FROM tab0 WHERE NOT ((((col3 > 386 OR col0 <= 556) AND col3 >= 841)))

statement ok
CREATE VIEW view_3_tab0_544 AS SELECT pk FROM view_1_tab0_544

query II rowsort label-2100-1
SELECT pk, col0 FROM tab0 WHERE (((col3 > 386 OR col0 <= 556) AND col3 >= 841))
----
36 values hashing to fa56d55218c22c8a4c2817024027c1a0

query II rowsort label-2100-2
SELECT pk, col0 FROM tab0 WHERE NOT ((((col3 > 386 OR col0 <= 556) AND col3 >= 841)))
----
164 values hashing to d31ecaef889f0301c4f41ac55ce15820

query II rowsort label-2100-1
SELECT pk, col0 FROM view_1_tab0_544
----
36 values hashing to fa56d55218c22c8a4c2817024027c1a0

query II rowsort label-2100-2
SELECT pk, col0 FROM view_2_tab0_544
----
164 values hashing to d31ecaef889f0301c4f41ac55ce15820

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (((col3 > 386 OR col0 <= 556) AND col3 >= 841)) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT ((((col3 > 386 OR col0 <= 556) AND col3 >= 841)))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_544 UNION ALL SELECT pk, col0 FROM view_2_tab0_544
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (((col3 > 386 OR col0 <= 556) AND col3 >= 841)) UNION SELECT pk, col0 FROM tab0 WHERE NOT ((((col3 > 386 OR col0 <= 556) AND col3 >= 841)))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_544 UNION SELECT pk, col0 FROM view_2_tab0_544
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-2100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE (((col3 > 386 OR col0 <= 556) AND col3 >= 841)) ) AS tab0_544
----
18 values hashing to 07ff8a0995e1b1767fc5e6624c909fd3

query I rowsort label-2100-3
SELECT * FROM view_3_tab0_544
----
18 values hashing to 07ff8a0995e1b1767fc5e6624c909fd3

query I rowsort label-2100-3
SELECT pk FROM tab0 WHERE (((col3 > 386 OR col0 <= 556) AND col3 >= 841))
----
18 values hashing to 07ff8a0995e1b1767fc5e6624c909fd3

statement ok
DROP VIEW view_1_tab0_544

statement ok
DROP VIEW view_2_tab0_544

statement ok
DROP VIEW view_3_tab0_544

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab1_544 AS SELECT pk, col0 FROM tab1 WHERE (((col3 > 386 OR col0 <= 556) AND col3 >= 841))

statement ok
CREATE VIEW view_2_tab1_544 AS SELECT pk, col0 FROM tab1 WHERE NOT ((((col3 > 386 OR col0 <= 556) AND col3 >= 841)))

statement ok
CREATE VIEW view_3_tab1_544 AS SELECT pk FROM view_1_tab1_544

query II rowsort label-2100-1
SELECT pk, col0 FROM tab1 WHERE (((col3 > 386 OR col0 <= 556) AND col3 >= 841))
----
36 values hashing to fa56d55218c22c8a4c2817024027c1a0

query II rowsort label-2100-2
SELECT pk, col0 FROM tab1 WHERE NOT ((((col3 > 386 OR col0 <= 556) AND col3 >= 841)))
----
164 values hashing to d31ecaef889f0301c4f41ac55ce15820

query II rowsort label-2100-1
SELECT pk, col0 FROM view_1_tab1_544
----
36 values hashing to fa56d55218c22c8a4c2817024027c1a0

query II rowsort label-2100-2
SELECT pk, col0 FROM view_2_tab1_544
----
164 values hashing to d31ecaef889f0301c4f41ac55ce15820

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (((col3 > 386 OR col0 <= 556) AND col3 >= 841)) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT ((((col3 > 386 OR col0 <= 556) AND col3 >= 841)))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_544 UNION ALL SELECT pk, col0 FROM view_2_tab1_544
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (((col3 > 386 OR col0 <= 556) AND col3 >= 841)) UNION SELECT pk, col0 FROM tab1 WHERE NOT ((((col3 > 386 OR col0 <= 556) AND col3 >= 841)))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_544 UNION SELECT pk, col0 FROM view_2_tab1_544
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-2100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE (((col3 > 386 OR col0 <= 556) AND col3 >= 841)) ) AS tab1_544
----
18 values hashing to 07ff8a0995e1b1767fc5e6624c909fd3

query I rowsort label-2100-3
SELECT * FROM view_3_tab1_544
----
18 values hashing to 07ff8a0995e1b1767fc5e6624c909fd3

query I rowsort label-2100-3
SELECT pk FROM tab1 WHERE (((col3 > 386 OR col0 <= 556) AND col3 >= 841))
----
18 values hashing to 07ff8a0995e1b1767fc5e6624c909fd3

statement ok
DROP VIEW view_1_tab1_544

statement ok
DROP VIEW view_2_tab1_544

statement ok
DROP VIEW view_3_tab1_544

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab2_544 AS SELECT pk, col0 FROM tab2 WHERE (((col3 > 386 OR col0 <= 556) AND col3 >= 841))

statement ok
CREATE VIEW view_2_tab2_544 AS SELECT pk, col0 FROM tab2 WHERE NOT ((((col3 > 386 OR col0 <= 556) AND col3 >= 841)))

statement ok
CREATE VIEW view_3_tab2_544 AS SELECT pk FROM view_1_tab2_544

query II rowsort label-2100-1
SELECT pk, col0 FROM tab2 WHERE (((col3 > 386 OR col0 <= 556) AND col3 >= 841))
----
36 values hashing to fa56d55218c22c8a4c2817024027c1a0

query II rowsort label-2100-2
SELECT pk, col0 FROM tab2 WHERE NOT ((((col3 > 386 OR col0 <= 556) AND col3 >= 841)))
----
164 values hashing to d31ecaef889f0301c4f41ac55ce15820

query II rowsort label-2100-1
SELECT pk, col0 FROM view_1_tab2_544
----
36 values hashing to fa56d55218c22c8a4c2817024027c1a0

query II rowsort label-2100-2
SELECT pk, col0 FROM view_2_tab2_544
----
164 values hashing to d31ecaef889f0301c4f41ac55ce15820

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (((col3 > 386 OR col0 <= 556) AND col3 >= 841)) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT ((((col3 > 386 OR col0 <= 556) AND col3 >= 841)))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_544 UNION ALL SELECT pk, col0 FROM view_2_tab2_544
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (((col3 > 386 OR col0 <= 556) AND col3 >= 841)) UNION SELECT pk, col0 FROM tab2 WHERE NOT ((((col3 > 386 OR col0 <= 556) AND col3 >= 841)))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_544 UNION SELECT pk, col0 FROM view_2_tab2_544
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-2100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE (((col3 > 386 OR col0 <= 556) AND col3 >= 841)) ) AS tab2_544
----
18 values hashing to 07ff8a0995e1b1767fc5e6624c909fd3

query I rowsort label-2100-3
SELECT * FROM view_3_tab2_544
----
18 values hashing to 07ff8a0995e1b1767fc5e6624c909fd3

query I rowsort label-2100-3
SELECT pk FROM tab2 WHERE (((col3 > 386 OR col0 <= 556) AND col3 >= 841))
----
18 values hashing to 07ff8a0995e1b1767fc5e6624c909fd3

statement ok
DROP VIEW view_1_tab2_544

statement ok
DROP VIEW view_2_tab2_544

statement ok
DROP VIEW view_3_tab2_544

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab3_544 AS SELECT pk, col0 FROM tab3 WHERE (((col3 > 386 OR col0 <= 556) AND col3 >= 841))

statement ok
CREATE VIEW view_2_tab3_544 AS SELECT pk, col0 FROM tab3 WHERE NOT ((((col3 > 386 OR col0 <= 556) AND col3 >= 841)))

statement ok
CREATE VIEW view_3_tab3_544 AS SELECT pk FROM view_1_tab3_544

query II rowsort label-2100-1
SELECT pk, col0 FROM tab3 WHERE (((col3 > 386 OR col0 <= 556) AND col3 >= 841))
----
36 values hashing to fa56d55218c22c8a4c2817024027c1a0

query II rowsort label-2100-2
SELECT pk, col0 FROM tab3 WHERE NOT ((((col3 > 386 OR col0 <= 556) AND col3 >= 841)))
----
164 values hashing to d31ecaef889f0301c4f41ac55ce15820

query II rowsort label-2100-1
SELECT pk, col0 FROM view_1_tab3_544
----
36 values hashing to fa56d55218c22c8a4c2817024027c1a0

query II rowsort label-2100-2
SELECT pk, col0 FROM view_2_tab3_544
----
164 values hashing to d31ecaef889f0301c4f41ac55ce15820

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (((col3 > 386 OR col0 <= 556) AND col3 >= 841)) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT ((((col3 > 386 OR col0 <= 556) AND col3 >= 841)))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_544 UNION ALL SELECT pk, col0 FROM view_2_tab3_544
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (((col3 > 386 OR col0 <= 556) AND col3 >= 841)) UNION SELECT pk, col0 FROM tab3 WHERE NOT ((((col3 > 386 OR col0 <= 556) AND col3 >= 841)))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_544 UNION SELECT pk, col0 FROM view_2_tab3_544
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-2100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE (((col3 > 386 OR col0 <= 556) AND col3 >= 841)) ) AS tab3_544
----
18 values hashing to 07ff8a0995e1b1767fc5e6624c909fd3

query I rowsort label-2100-3
SELECT * FROM view_3_tab3_544
----
18 values hashing to 07ff8a0995e1b1767fc5e6624c909fd3

query I rowsort label-2100-3
SELECT pk FROM tab3 WHERE (((col3 > 386 OR col0 <= 556) AND col3 >= 841))
----
18 values hashing to 07ff8a0995e1b1767fc5e6624c909fd3

statement ok
DROP VIEW view_1_tab3_544

statement ok
DROP VIEW view_2_tab3_544

statement ok
DROP VIEW view_3_tab3_544

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab4_544 AS SELECT pk, col0 FROM tab4 WHERE (((col3 > 386 OR col0 <= 556) AND col3 >= 841))

statement ok
CREATE VIEW view_2_tab4_544 AS SELECT pk, col0 FROM tab4 WHERE NOT ((((col3 > 386 OR col0 <= 556) AND col3 >= 841)))

statement ok
CREATE VIEW view_3_tab4_544 AS SELECT pk FROM view_1_tab4_544

query II rowsort label-2100-1
SELECT pk, col0 FROM tab4 WHERE (((col3 > 386 OR col0 <= 556) AND col3 >= 841))
----
36 values hashing to fa56d55218c22c8a4c2817024027c1a0

query II rowsort label-2100-2
SELECT pk, col0 FROM tab4 WHERE NOT ((((col3 > 386 OR col0 <= 556) AND col3 >= 841)))
----
164 values hashing to d31ecaef889f0301c4f41ac55ce15820

query II rowsort label-2100-1
SELECT pk, col0 FROM view_1_tab4_544
----
36 values hashing to fa56d55218c22c8a4c2817024027c1a0

query II rowsort label-2100-2
SELECT pk, col0 FROM view_2_tab4_544
----
164 values hashing to d31ecaef889f0301c4f41ac55ce15820

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (((col3 > 386 OR col0 <= 556) AND col3 >= 841)) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT ((((col3 > 386 OR col0 <= 556) AND col3 >= 841)))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_544 UNION ALL SELECT pk, col0 FROM view_2_tab4_544
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (((col3 > 386 OR col0 <= 556) AND col3 >= 841)) UNION SELECT pk, col0 FROM tab4 WHERE NOT ((((col3 > 386 OR col0 <= 556) AND col3 >= 841)))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_544 UNION SELECT pk, col0 FROM view_2_tab4_544
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-2100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE (((col3 > 386 OR col0 <= 556) AND col3 >= 841)) ) AS tab4_544
----
18 values hashing to 07ff8a0995e1b1767fc5e6624c909fd3

query I rowsort label-2100-3
SELECT * FROM view_3_tab4_544
----
18 values hashing to 07ff8a0995e1b1767fc5e6624c909fd3

query I rowsort label-2100-3
SELECT pk FROM tab4 WHERE (((col3 > 386 OR col0 <= 556) AND col3 >= 841))
----
18 values hashing to 07ff8a0995e1b1767fc5e6624c909fd3

statement ok
DROP VIEW view_1_tab4_544

statement ok
DROP VIEW view_2_tab4_544

statement ok
DROP VIEW view_3_tab4_544

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab0_545 AS SELECT pk, col0 FROM tab0 WHERE ((((col4 <= 13.6 AND col0 >= 3 OR (col0 < 68)))) AND col3 > 463)

statement ok
CREATE VIEW view_2_tab0_545 AS SELECT pk, col0 FROM tab0 WHERE NOT (((((col4 <= 13.6 AND col0 >= 3 OR (col0 < 68)))) AND col3 > 463))

statement ok
CREATE VIEW view_3_tab0_545 AS SELECT pk FROM view_1_tab0_545

query II rowsort label-2200-1
SELECT pk, col0 FROM tab0 WHERE ((((col4 <= 13.6 AND col0 >= 3 OR (col0 < 68)))) AND col3 > 463)
----
12 values hashing to 26b58e43d3a9de2f7d245677bb930ebb

query II rowsort label-2200-2
SELECT pk, col0 FROM tab0 WHERE NOT (((((col4 <= 13.6 AND col0 >= 3 OR (col0 < 68)))) AND col3 > 463))
----
188 values hashing to 0b7ab8f25201b483bb1cab7f0d795217

query II rowsort label-2200-1
SELECT pk, col0 FROM view_1_tab0_545
----
12 values hashing to 26b58e43d3a9de2f7d245677bb930ebb

query II rowsort label-2200-2
SELECT pk, col0 FROM view_2_tab0_545
----
188 values hashing to 0b7ab8f25201b483bb1cab7f0d795217

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE ((((col4 <= 13.6 AND col0 >= 3 OR (col0 < 68)))) AND col3 > 463) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (((((col4 <= 13.6 AND col0 >= 3 OR (col0 < 68)))) AND col3 > 463))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_545 UNION ALL SELECT pk, col0 FROM view_2_tab0_545
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE ((((col4 <= 13.6 AND col0 >= 3 OR (col0 < 68)))) AND col3 > 463) UNION SELECT pk, col0 FROM tab0 WHERE NOT (((((col4 <= 13.6 AND col0 >= 3 OR (col0 < 68)))) AND col3 > 463))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_545 UNION SELECT pk, col0 FROM view_2_tab0_545
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-2200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE ((((col4 <= 13.6 AND col0 >= 3 OR (col0 < 68)))) AND col3 > 463) ) AS tab0_545
----
20
34
56
58
72
84

query I rowsort label-2200-3
SELECT * FROM view_3_tab0_545
----
20
34
56
58
72
84

query I rowsort label-2200-3
SELECT pk FROM tab0 WHERE ((((col4 <= 13.6 AND col0 >= 3 OR (col0 < 68)))) AND col3 > 463)
----
20
34
56
58
72
84

statement ok
DROP VIEW view_1_tab0_545

statement ok
DROP VIEW view_2_tab0_545

statement ok
DROP VIEW view_3_tab0_545

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab1_545 AS SELECT pk, col0 FROM tab1 WHERE ((((col4 <= 13.6 AND col0 >= 3 OR (col0 < 68)))) AND col3 > 463)

statement ok
CREATE VIEW view_2_tab1_545 AS SELECT pk, col0 FROM tab1 WHERE NOT (((((col4 <= 13.6 AND col0 >= 3 OR (col0 < 68)))) AND col3 > 463))

statement ok
CREATE VIEW view_3_tab1_545 AS SELECT pk FROM view_1_tab1_545

query II rowsort label-2200-1
SELECT pk, col0 FROM tab1 WHERE ((((col4 <= 13.6 AND col0 >= 3 OR (col0 < 68)))) AND col3 > 463)
----
12 values hashing to 26b58e43d3a9de2f7d245677bb930ebb

query II rowsort label-2200-2
SELECT pk, col0 FROM tab1 WHERE NOT (((((col4 <= 13.6 AND col0 >= 3 OR (col0 < 68)))) AND col3 > 463))
----
188 values hashing to 0b7ab8f25201b483bb1cab7f0d795217

query II rowsort label-2200-1
SELECT pk, col0 FROM view_1_tab1_545
----
12 values hashing to 26b58e43d3a9de2f7d245677bb930ebb

query II rowsort label-2200-2
SELECT pk, col0 FROM view_2_tab1_545
----
188 values hashing to 0b7ab8f25201b483bb1cab7f0d795217

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE ((((col4 <= 13.6 AND col0 >= 3 OR (col0 < 68)))) AND col3 > 463) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (((((col4 <= 13.6 AND col0 >= 3 OR (col0 < 68)))) AND col3 > 463))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_545 UNION ALL SELECT pk, col0 FROM view_2_tab1_545
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE ((((col4 <= 13.6 AND col0 >= 3 OR (col0 < 68)))) AND col3 > 463) UNION SELECT pk, col0 FROM tab1 WHERE NOT (((((col4 <= 13.6 AND col0 >= 3 OR (col0 < 68)))) AND col3 > 463))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_545 UNION SELECT pk, col0 FROM view_2_tab1_545
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-2200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE ((((col4 <= 13.6 AND col0 >= 3 OR (col0 < 68)))) AND col3 > 463) ) AS tab1_545
----
20
34
56
58
72
84

query I rowsort label-2200-3
SELECT * FROM view_3_tab1_545
----
20
34
56
58
72
84

query I rowsort label-2200-3
SELECT pk FROM tab1 WHERE ((((col4 <= 13.6 AND col0 >= 3 OR (col0 < 68)))) AND col3 > 463)
----
20
34
56
58
72
84

statement ok
DROP VIEW view_1_tab1_545

statement ok
DROP VIEW view_2_tab1_545

statement ok
DROP VIEW view_3_tab1_545

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab2_545 AS SELECT pk, col0 FROM tab2 WHERE ((((col4 <= 13.6 AND col0 >= 3 OR (col0 < 68)))) AND col3 > 463)

statement ok
CREATE VIEW view_2_tab2_545 AS SELECT pk, col0 FROM tab2 WHERE NOT (((((col4 <= 13.6 AND col0 >= 3 OR (col0 < 68)))) AND col3 > 463))

statement ok
CREATE VIEW view_3_tab2_545 AS SELECT pk FROM view_1_tab2_545

query II rowsort label-2200-1
SELECT pk, col0 FROM tab2 WHERE ((((col4 <= 13.6 AND col0 >= 3 OR (col0 < 68)))) AND col3 > 463)
----
12 values hashing to 26b58e43d3a9de2f7d245677bb930ebb

query II rowsort label-2200-2
SELECT pk, col0 FROM tab2 WHERE NOT (((((col4 <= 13.6 AND col0 >= 3 OR (col0 < 68)))) AND col3 > 463))
----
188 values hashing to 0b7ab8f25201b483bb1cab7f0d795217

query II rowsort label-2200-1
SELECT pk, col0 FROM view_1_tab2_545
----
12 values hashing to 26b58e43d3a9de2f7d245677bb930ebb

query II rowsort label-2200-2
SELECT pk, col0 FROM view_2_tab2_545
----
188 values hashing to 0b7ab8f25201b483bb1cab7f0d795217

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE ((((col4 <= 13.6 AND col0 >= 3 OR (col0 < 68)))) AND col3 > 463) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (((((col4 <= 13.6 AND col0 >= 3 OR (col0 < 68)))) AND col3 > 463))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_545 UNION ALL SELECT pk, col0 FROM view_2_tab2_545
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE ((((col4 <= 13.6 AND col0 >= 3 OR (col0 < 68)))) AND col3 > 463) UNION SELECT pk, col0 FROM tab2 WHERE NOT (((((col4 <= 13.6 AND col0 >= 3 OR (col0 < 68)))) AND col3 > 463))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_545 UNION SELECT pk, col0 FROM view_2_tab2_545
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-2200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE ((((col4 <= 13.6 AND col0 >= 3 OR (col0 < 68)))) AND col3 > 463) ) AS tab2_545
----
20
34
56
58
72
84

query I rowsort label-2200-3
SELECT * FROM view_3_tab2_545
----
20
34
56
58
72
84

query I rowsort label-2200-3
SELECT pk FROM tab2 WHERE ((((col4 <= 13.6 AND col0 >= 3 OR (col0 < 68)))) AND col3 > 463)
----
20
34
56
58
72
84

statement ok
DROP VIEW view_1_tab2_545

statement ok
DROP VIEW view_2_tab2_545

statement ok
DROP VIEW view_3_tab2_545

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab3_545 AS SELECT pk, col0 FROM tab3 WHERE ((((col4 <= 13.6 AND col0 >= 3 OR (col0 < 68)))) AND col3 > 463)

statement ok
CREATE VIEW view_2_tab3_545 AS SELECT pk, col0 FROM tab3 WHERE NOT (((((col4 <= 13.6 AND col0 >= 3 OR (col0 < 68)))) AND col3 > 463))

statement ok
CREATE VIEW view_3_tab3_545 AS SELECT pk FROM view_1_tab3_545

query II rowsort label-2200-1
SELECT pk, col0 FROM tab3 WHERE ((((col4 <= 13.6 AND col0 >= 3 OR (col0 < 68)))) AND col3 > 463)
----
12 values hashing to 26b58e43d3a9de2f7d245677bb930ebb

query II rowsort label-2200-2
SELECT pk, col0 FROM tab3 WHERE NOT (((((col4 <= 13.6 AND col0 >= 3 OR (col0 < 68)))) AND col3 > 463))
----
188 values hashing to 0b7ab8f25201b483bb1cab7f0d795217

query II rowsort label-2200-1
SELECT pk, col0 FROM view_1_tab3_545
----
12 values hashing to 26b58e43d3a9de2f7d245677bb930ebb

query II rowsort label-2200-2
SELECT pk, col0 FROM view_2_tab3_545
----
188 values hashing to 0b7ab8f25201b483bb1cab7f0d795217

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE ((((col4 <= 13.6 AND col0 >= 3 OR (col0 < 68)))) AND col3 > 463) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (((((col4 <= 13.6 AND col0 >= 3 OR (col0 < 68)))) AND col3 > 463))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_545 UNION ALL SELECT pk, col0 FROM view_2_tab3_545
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE ((((col4 <= 13.6 AND col0 >= 3 OR (col0 < 68)))) AND col3 > 463) UNION SELECT pk, col0 FROM tab3 WHERE NOT (((((col4 <= 13.6 AND col0 >= 3 OR (col0 < 68)))) AND col3 > 463))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_545 UNION SELECT pk, col0 FROM view_2_tab3_545
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-2200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE ((((col4 <= 13.6 AND col0 >= 3 OR (col0 < 68)))) AND col3 > 463) ) AS tab3_545
----
20
34
56
58
72
84

query I rowsort label-2200-3
SELECT * FROM view_3_tab3_545
----
20
34
56
58
72
84

query I rowsort label-2200-3
SELECT pk FROM tab3 WHERE ((((col4 <= 13.6 AND col0 >= 3 OR (col0 < 68)))) AND col3 > 463)
----
20
34
56
58
72
84

statement ok
DROP VIEW view_1_tab3_545

statement ok
DROP VIEW view_2_tab3_545

statement ok
DROP VIEW view_3_tab3_545

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab4_545 AS SELECT pk, col0 FROM tab4 WHERE ((((col4 <= 13.6 AND col0 >= 3 OR (col0 < 68)))) AND col3 > 463)

statement ok
CREATE VIEW view_2_tab4_545 AS SELECT pk, col0 FROM tab4 WHERE NOT (((((col4 <= 13.6 AND col0 >= 3 OR (col0 < 68)))) AND col3 > 463))

statement ok
CREATE VIEW view_3_tab4_545 AS SELECT pk FROM view_1_tab4_545

query II rowsort label-2200-1
SELECT pk, col0 FROM tab4 WHERE ((((col4 <= 13.6 AND col0 >= 3 OR (col0 < 68)))) AND col3 > 463)
----
12 values hashing to 26b58e43d3a9de2f7d245677bb930ebb

query II rowsort label-2200-2
SELECT pk, col0 FROM tab4 WHERE NOT (((((col4 <= 13.6 AND col0 >= 3 OR (col0 < 68)))) AND col3 > 463))
----
188 values hashing to 0b7ab8f25201b483bb1cab7f0d795217

query II rowsort label-2200-1
SELECT pk, col0 FROM view_1_tab4_545
----
12 values hashing to 26b58e43d3a9de2f7d245677bb930ebb

query II rowsort label-2200-2
SELECT pk, col0 FROM view_2_tab4_545
----
188 values hashing to 0b7ab8f25201b483bb1cab7f0d795217

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE ((((col4 <= 13.6 AND col0 >= 3 OR (col0 < 68)))) AND col3 > 463) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (((((col4 <= 13.6 AND col0 >= 3 OR (col0 < 68)))) AND col3 > 463))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_545 UNION ALL SELECT pk, col0 FROM view_2_tab4_545
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE ((((col4 <= 13.6 AND col0 >= 3 OR (col0 < 68)))) AND col3 > 463) UNION SELECT pk, col0 FROM tab4 WHERE NOT (((((col4 <= 13.6 AND col0 >= 3 OR (col0 < 68)))) AND col3 > 463))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_545 UNION SELECT pk, col0 FROM view_2_tab4_545
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-2200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE ((((col4 <= 13.6 AND col0 >= 3 OR (col0 < 68)))) AND col3 > 463) ) AS tab4_545
----
20
34
56
58
72
84

query I rowsort label-2200-3
SELECT * FROM view_3_tab4_545
----
20
34
56
58
72
84

query I rowsort label-2200-3
SELECT pk FROM tab4 WHERE ((((col4 <= 13.6 AND col0 >= 3 OR (col0 < 68)))) AND col3 > 463)
----
20
34
56
58
72
84

statement ok
DROP VIEW view_1_tab4_545

statement ok
DROP VIEW view_2_tab4_545

statement ok
DROP VIEW view_3_tab4_545

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab0_546 AS SELECT pk, col0 FROM tab0 WHERE col3 > 332

statement ok
CREATE VIEW view_2_tab0_546 AS SELECT pk, col0 FROM tab0 WHERE NOT (col3 > 332)

statement ok
CREATE VIEW view_3_tab0_546 AS SELECT pk FROM view_1_tab0_546

query II rowsort label-2300-1
SELECT pk, col0 FROM tab0 WHERE col3 > 332
----
122 values hashing to 6c2a1d8405375143f61ad78606e46979

query II rowsort label-2300-2
SELECT pk, col0 FROM tab0 WHERE NOT (col3 > 332)
----
78 values hashing to 1ab346ea275306105634c5cb5775eaf1

query II rowsort label-2300-1
SELECT pk, col0 FROM view_1_tab0_546
----
122 values hashing to 6c2a1d8405375143f61ad78606e46979

query II rowsort label-2300-2
SELECT pk, col0 FROM view_2_tab0_546
----
78 values hashing to 1ab346ea275306105634c5cb5775eaf1

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 > 332 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col3 > 332)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_546 UNION ALL SELECT pk, col0 FROM view_2_tab0_546
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 > 332 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col3 > 332)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_546 UNION SELECT pk, col0 FROM view_2_tab0_546
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-2300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col3 > 332 ) AS tab0_546
----
61 values hashing to 139c03fa11c8dfefe5cd4294a92dca48

query I rowsort label-2300-3
SELECT * FROM view_3_tab0_546
----
61 values hashing to 139c03fa11c8dfefe5cd4294a92dca48

query I rowsort label-2300-3
SELECT pk FROM tab0 WHERE col3 > 332
----
61 values hashing to 139c03fa11c8dfefe5cd4294a92dca48

statement ok
DROP VIEW view_1_tab0_546

statement ok
DROP VIEW view_2_tab0_546

statement ok
DROP VIEW view_3_tab0_546

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab1_546 AS SELECT pk, col0 FROM tab1 WHERE col3 > 332

statement ok
CREATE VIEW view_2_tab1_546 AS SELECT pk, col0 FROM tab1 WHERE NOT (col3 > 332)

statement ok
CREATE VIEW view_3_tab1_546 AS SELECT pk FROM view_1_tab1_546

query II rowsort label-2300-1
SELECT pk, col0 FROM tab1 WHERE col3 > 332
----
122 values hashing to 6c2a1d8405375143f61ad78606e46979

query II rowsort label-2300-2
SELECT pk, col0 FROM tab1 WHERE NOT (col3 > 332)
----
78 values hashing to 1ab346ea275306105634c5cb5775eaf1

query II rowsort label-2300-1
SELECT pk, col0 FROM view_1_tab1_546
----
122 values hashing to 6c2a1d8405375143f61ad78606e46979

query II rowsort label-2300-2
SELECT pk, col0 FROM view_2_tab1_546
----
78 values hashing to 1ab346ea275306105634c5cb5775eaf1

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 > 332 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col3 > 332)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_546 UNION ALL SELECT pk, col0 FROM view_2_tab1_546
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 > 332 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col3 > 332)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_546 UNION SELECT pk, col0 FROM view_2_tab1_546
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-2300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col3 > 332 ) AS tab1_546
----
61 values hashing to 139c03fa11c8dfefe5cd4294a92dca48

query I rowsort label-2300-3
SELECT * FROM view_3_tab1_546
----
61 values hashing to 139c03fa11c8dfefe5cd4294a92dca48

query I rowsort label-2300-3
SELECT pk FROM tab1 WHERE col3 > 332
----
61 values hashing to 139c03fa11c8dfefe5cd4294a92dca48

statement ok
DROP VIEW view_1_tab1_546

statement ok
DROP VIEW view_2_tab1_546

statement ok
DROP VIEW view_3_tab1_546

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab2_546 AS SELECT pk, col0 FROM tab2 WHERE col3 > 332

statement ok
CREATE VIEW view_2_tab2_546 AS SELECT pk, col0 FROM tab2 WHERE NOT (col3 > 332)

statement ok
CREATE VIEW view_3_tab2_546 AS SELECT pk FROM view_1_tab2_546

query II rowsort label-2300-1
SELECT pk, col0 FROM tab2 WHERE col3 > 332
----
122 values hashing to 6c2a1d8405375143f61ad78606e46979

query II rowsort label-2300-2
SELECT pk, col0 FROM tab2 WHERE NOT (col3 > 332)
----
78 values hashing to 1ab346ea275306105634c5cb5775eaf1

query II rowsort label-2300-1
SELECT pk, col0 FROM view_1_tab2_546
----
122 values hashing to 6c2a1d8405375143f61ad78606e46979

query II rowsort label-2300-2
SELECT pk, col0 FROM view_2_tab2_546
----
78 values hashing to 1ab346ea275306105634c5cb5775eaf1

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 > 332 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col3 > 332)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_546 UNION ALL SELECT pk, col0 FROM view_2_tab2_546
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 > 332 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col3 > 332)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_546 UNION SELECT pk, col0 FROM view_2_tab2_546
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-2300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col3 > 332 ) AS tab2_546
----
61 values hashing to 139c03fa11c8dfefe5cd4294a92dca48

query I rowsort label-2300-3
SELECT * FROM view_3_tab2_546
----
61 values hashing to 139c03fa11c8dfefe5cd4294a92dca48

query I rowsort label-2300-3
SELECT pk FROM tab2 WHERE col3 > 332
----
61 values hashing to 139c03fa11c8dfefe5cd4294a92dca48

statement ok
DROP VIEW view_1_tab2_546

statement ok
DROP VIEW view_2_tab2_546

statement ok
DROP VIEW view_3_tab2_546

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab3_546 AS SELECT pk, col0 FROM tab3 WHERE col3 > 332

statement ok
CREATE VIEW view_2_tab3_546 AS SELECT pk, col0 FROM tab3 WHERE NOT (col3 > 332)

statement ok
CREATE VIEW view_3_tab3_546 AS SELECT pk FROM view_1_tab3_546

query II rowsort label-2300-1
SELECT pk, col0 FROM tab3 WHERE col3 > 332
----
122 values hashing to 6c2a1d8405375143f61ad78606e46979

query II rowsort label-2300-2
SELECT pk, col0 FROM tab3 WHERE NOT (col3 > 332)
----
78 values hashing to 1ab346ea275306105634c5cb5775eaf1

query II rowsort label-2300-1
SELECT pk, col0 FROM view_1_tab3_546
----
122 values hashing to 6c2a1d8405375143f61ad78606e46979

query II rowsort label-2300-2
SELECT pk, col0 FROM view_2_tab3_546
----
78 values hashing to 1ab346ea275306105634c5cb5775eaf1

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 > 332 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col3 > 332)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_546 UNION ALL SELECT pk, col0 FROM view_2_tab3_546
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 > 332 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col3 > 332)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_546 UNION SELECT pk, col0 FROM view_2_tab3_546
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-2300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col3 > 332 ) AS tab3_546
----
61 values hashing to 139c03fa11c8dfefe5cd4294a92dca48

query I rowsort label-2300-3
SELECT * FROM view_3_tab3_546
----
61 values hashing to 139c03fa11c8dfefe5cd4294a92dca48

query I rowsort label-2300-3
SELECT pk FROM tab3 WHERE col3 > 332
----
61 values hashing to 139c03fa11c8dfefe5cd4294a92dca48

statement ok
DROP VIEW view_1_tab3_546

statement ok
DROP VIEW view_2_tab3_546

statement ok
DROP VIEW view_3_tab3_546

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab4_546 AS SELECT pk, col0 FROM tab4 WHERE col3 > 332

statement ok
CREATE VIEW view_2_tab4_546 AS SELECT pk, col0 FROM tab4 WHERE NOT (col3 > 332)

statement ok
CREATE VIEW view_3_tab4_546 AS SELECT pk FROM view_1_tab4_546

query II rowsort label-2300-1
SELECT pk, col0 FROM tab4 WHERE col3 > 332
----
122 values hashing to 6c2a1d8405375143f61ad78606e46979

query II rowsort label-2300-2
SELECT pk, col0 FROM tab4 WHERE NOT (col3 > 332)
----
78 values hashing to 1ab346ea275306105634c5cb5775eaf1

query II rowsort label-2300-1
SELECT pk, col0 FROM view_1_tab4_546
----
122 values hashing to 6c2a1d8405375143f61ad78606e46979

query II rowsort label-2300-2
SELECT pk, col0 FROM view_2_tab4_546
----
78 values hashing to 1ab346ea275306105634c5cb5775eaf1

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 > 332 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col3 > 332)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_546 UNION ALL SELECT pk, col0 FROM view_2_tab4_546
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 > 332 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col3 > 332)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_546 UNION SELECT pk, col0 FROM view_2_tab4_546
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-2300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col3 > 332 ) AS tab4_546
----
61 values hashing to 139c03fa11c8dfefe5cd4294a92dca48

query I rowsort label-2300-3
SELECT * FROM view_3_tab4_546
----
61 values hashing to 139c03fa11c8dfefe5cd4294a92dca48

query I rowsort label-2300-3
SELECT pk FROM tab4 WHERE col3 > 332
----
61 values hashing to 139c03fa11c8dfefe5cd4294a92dca48

statement ok
DROP VIEW view_1_tab4_546

statement ok
DROP VIEW view_2_tab4_546

statement ok
DROP VIEW view_3_tab4_546

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab0_547 AS SELECT pk, col0 FROM tab0 WHERE ((col3 < 401))

statement ok
CREATE VIEW view_2_tab0_547 AS SELECT pk, col0 FROM tab0 WHERE NOT (((col3 < 401)))

statement ok
CREATE VIEW view_3_tab0_547 AS SELECT pk FROM view_1_tab0_547

query II rowsort label-2400-1
SELECT pk, col0 FROM tab0 WHERE ((col3 < 401))
----
96 values hashing to 3d7443a4cd63a8a7855c74523131f981

query II rowsort label-2400-2
SELECT pk, col0 FROM tab0 WHERE NOT (((col3 < 401)))
----
104 values hashing to fa9df9a8ab46d9aea9d2e2ec64aa4422

query II rowsort label-2400-1
SELECT pk, col0 FROM view_1_tab0_547
----
96 values hashing to 3d7443a4cd63a8a7855c74523131f981

query II rowsort label-2400-2
SELECT pk, col0 FROM view_2_tab0_547
----
104 values hashing to fa9df9a8ab46d9aea9d2e2ec64aa4422

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE ((col3 < 401)) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (((col3 < 401)))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_547 UNION ALL SELECT pk, col0 FROM view_2_tab0_547
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE ((col3 < 401)) UNION SELECT pk, col0 FROM tab0 WHERE NOT (((col3 < 401)))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_547 UNION SELECT pk, col0 FROM view_2_tab0_547
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-2400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE ((col3 < 401)) ) AS tab0_547
----
48 values hashing to 1bdbcd11b33df94c0d87106ea28a866f

query I rowsort label-2400-3
SELECT * FROM view_3_tab0_547
----
48 values hashing to 1bdbcd11b33df94c0d87106ea28a866f

query I rowsort label-2400-3
SELECT pk FROM tab0 WHERE ((col3 < 401))
----
48 values hashing to 1bdbcd11b33df94c0d87106ea28a866f

statement ok
DROP VIEW view_1_tab0_547

statement ok
DROP VIEW view_2_tab0_547

statement ok
DROP VIEW view_3_tab0_547

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab1_547 AS SELECT pk, col0 FROM tab1 WHERE ((col3 < 401))

statement ok
CREATE VIEW view_2_tab1_547 AS SELECT pk, col0 FROM tab1 WHERE NOT (((col3 < 401)))

statement ok
CREATE VIEW view_3_tab1_547 AS SELECT pk FROM view_1_tab1_547

query II rowsort label-2400-1
SELECT pk, col0 FROM tab1 WHERE ((col3 < 401))
----
96 values hashing to 3d7443a4cd63a8a7855c74523131f981

query II rowsort label-2400-2
SELECT pk, col0 FROM tab1 WHERE NOT (((col3 < 401)))
----
104 values hashing to fa9df9a8ab46d9aea9d2e2ec64aa4422

query II rowsort label-2400-1
SELECT pk, col0 FROM view_1_tab1_547
----
96 values hashing to 3d7443a4cd63a8a7855c74523131f981

query II rowsort label-2400-2
SELECT pk, col0 FROM view_2_tab1_547
----
104 values hashing to fa9df9a8ab46d9aea9d2e2ec64aa4422

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE ((col3 < 401)) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (((col3 < 401)))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_547 UNION ALL SELECT pk, col0 FROM view_2_tab1_547
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE ((col3 < 401)) UNION SELECT pk, col0 FROM tab1 WHERE NOT (((col3 < 401)))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_547 UNION SELECT pk, col0 FROM view_2_tab1_547
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-2400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE ((col3 < 401)) ) AS tab1_547
----
48 values hashing to 1bdbcd11b33df94c0d87106ea28a866f

query I rowsort label-2400-3
SELECT * FROM view_3_tab1_547
----
48 values hashing to 1bdbcd11b33df94c0d87106ea28a866f

query I rowsort label-2400-3
SELECT pk FROM tab1 WHERE ((col3 < 401))
----
48 values hashing to 1bdbcd11b33df94c0d87106ea28a866f

statement ok
DROP VIEW view_1_tab1_547

statement ok
DROP VIEW view_2_tab1_547

statement ok
DROP VIEW view_3_tab1_547

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab2_547 AS SELECT pk, col0 FROM tab2 WHERE ((col3 < 401))

statement ok
CREATE VIEW view_2_tab2_547 AS SELECT pk, col0 FROM tab2 WHERE NOT (((col3 < 401)))

statement ok
CREATE VIEW view_3_tab2_547 AS SELECT pk FROM view_1_tab2_547

query II rowsort label-2400-1
SELECT pk, col0 FROM tab2 WHERE ((col3 < 401))
----
96 values hashing to 3d7443a4cd63a8a7855c74523131f981

query II rowsort label-2400-2
SELECT pk, col0 FROM tab2 WHERE NOT (((col3 < 401)))
----
104 values hashing to fa9df9a8ab46d9aea9d2e2ec64aa4422

query II rowsort label-2400-1
SELECT pk, col0 FROM view_1_tab2_547
----
96 values hashing to 3d7443a4cd63a8a7855c74523131f981

query II rowsort label-2400-2
SELECT pk, col0 FROM view_2_tab2_547
----
104 values hashing to fa9df9a8ab46d9aea9d2e2ec64aa4422

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE ((col3 < 401)) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (((col3 < 401)))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_547 UNION ALL SELECT pk, col0 FROM view_2_tab2_547
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE ((col3 < 401)) UNION SELECT pk, col0 FROM tab2 WHERE NOT (((col3 < 401)))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_547 UNION SELECT pk, col0 FROM view_2_tab2_547
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-2400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE ((col3 < 401)) ) AS tab2_547
----
48 values hashing to 1bdbcd11b33df94c0d87106ea28a866f

query I rowsort label-2400-3
SELECT * FROM view_3_tab2_547
----
48 values hashing to 1bdbcd11b33df94c0d87106ea28a866f

query I rowsort label-2400-3
SELECT pk FROM tab2 WHERE ((col3 < 401))
----
48 values hashing to 1bdbcd11b33df94c0d87106ea28a866f

statement ok
DROP VIEW view_1_tab2_547

statement ok
DROP VIEW view_2_tab2_547

statement ok
DROP VIEW view_3_tab2_547

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab3_547 AS SELECT pk, col0 FROM tab3 WHERE ((col3 < 401))

statement ok
CREATE VIEW view_2_tab3_547 AS SELECT pk, col0 FROM tab3 WHERE NOT (((col3 < 401)))

statement ok
CREATE VIEW view_3_tab3_547 AS SELECT pk FROM view_1_tab3_547

query II rowsort label-2400-1
SELECT pk, col0 FROM tab3 WHERE ((col3 < 401))
----
96 values hashing to 3d7443a4cd63a8a7855c74523131f981

query II rowsort label-2400-2
SELECT pk, col0 FROM tab3 WHERE NOT (((col3 < 401)))
----
104 values hashing to fa9df9a8ab46d9aea9d2e2ec64aa4422

query II rowsort label-2400-1
SELECT pk, col0 FROM view_1_tab3_547
----
96 values hashing to 3d7443a4cd63a8a7855c74523131f981

query II rowsort label-2400-2
SELECT pk, col0 FROM view_2_tab3_547
----
104 values hashing to fa9df9a8ab46d9aea9d2e2ec64aa4422

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE ((col3 < 401)) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (((col3 < 401)))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_547 UNION ALL SELECT pk, col0 FROM view_2_tab3_547
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE ((col3 < 401)) UNION SELECT pk, col0 FROM tab3 WHERE NOT (((col3 < 401)))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_547 UNION SELECT pk, col0 FROM view_2_tab3_547
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-2400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE ((col3 < 401)) ) AS tab3_547
----
48 values hashing to 1bdbcd11b33df94c0d87106ea28a866f

query I rowsort label-2400-3
SELECT * FROM view_3_tab3_547
----
48 values hashing to 1bdbcd11b33df94c0d87106ea28a866f

query I rowsort label-2400-3
SELECT pk FROM tab3 WHERE ((col3 < 401))
----
48 values hashing to 1bdbcd11b33df94c0d87106ea28a866f

statement ok
DROP VIEW view_1_tab3_547

statement ok
DROP VIEW view_2_tab3_547

statement ok
DROP VIEW view_3_tab3_547

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab4_547 AS SELECT pk, col0 FROM tab4 WHERE ((col3 < 401))

statement ok
CREATE VIEW view_2_tab4_547 AS SELECT pk, col0 FROM tab4 WHERE NOT (((col3 < 401)))

statement ok
CREATE VIEW view_3_tab4_547 AS SELECT pk FROM view_1_tab4_547

query II rowsort label-2400-1
SELECT pk, col0 FROM tab4 WHERE ((col3 < 401))
----
96 values hashing to 3d7443a4cd63a8a7855c74523131f981

query II rowsort label-2400-2
SELECT pk, col0 FROM tab4 WHERE NOT (((col3 < 401)))
----
104 values hashing to fa9df9a8ab46d9aea9d2e2ec64aa4422

query II rowsort label-2400-1
SELECT pk, col0 FROM view_1_tab4_547
----
96 values hashing to 3d7443a4cd63a8a7855c74523131f981

query II rowsort label-2400-2
SELECT pk, col0 FROM view_2_tab4_547
----
104 values hashing to fa9df9a8ab46d9aea9d2e2ec64aa4422

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE ((col3 < 401)) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (((col3 < 401)))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_547 UNION ALL SELECT pk, col0 FROM view_2_tab4_547
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE ((col3 < 401)) UNION SELECT pk, col0 FROM tab4 WHERE NOT (((col3 < 401)))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_547 UNION SELECT pk, col0 FROM view_2_tab4_547
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-2400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE ((col3 < 401)) ) AS tab4_547
----
48 values hashing to 1bdbcd11b33df94c0d87106ea28a866f

query I rowsort label-2400-3
SELECT * FROM view_3_tab4_547
----
48 values hashing to 1bdbcd11b33df94c0d87106ea28a866f

query I rowsort label-2400-3
SELECT pk FROM tab4 WHERE ((col3 < 401))
----
48 values hashing to 1bdbcd11b33df94c0d87106ea28a866f

statement ok
DROP VIEW view_1_tab4_547

statement ok
DROP VIEW view_2_tab4_547

statement ok
DROP VIEW view_3_tab4_547

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab0_548 AS SELECT pk, col0 FROM tab0 WHERE (col3 <= 777 AND (col3 > 311))

statement ok
CREATE VIEW view_2_tab0_548 AS SELECT pk, col0 FROM tab0 WHERE NOT ((col3 <= 777 AND (col3 > 311)))

statement ok
CREATE VIEW view_3_tab0_548 AS SELECT pk FROM view_1_tab0_548

query II rowsort label-2500-1
SELECT pk, col0 FROM tab0 WHERE (col3 <= 777 AND (col3 > 311))
----
82 values hashing to aa109697bf6d4d9478bd2ae030c051e1

query II rowsort label-2500-2
SELECT pk, col0 FROM tab0 WHERE NOT ((col3 <= 777 AND (col3 > 311)))
----
118 values hashing to c93e2bc976d650e7807c63e7f0dbff5b

query II rowsort label-2500-1
SELECT pk, col0 FROM view_1_tab0_548
----
82 values hashing to aa109697bf6d4d9478bd2ae030c051e1

query II rowsort label-2500-2
SELECT pk, col0 FROM view_2_tab0_548
----
118 values hashing to c93e2bc976d650e7807c63e7f0dbff5b

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col3 <= 777 AND (col3 > 311)) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT ((col3 <= 777 AND (col3 > 311)))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_548 UNION ALL SELECT pk, col0 FROM view_2_tab0_548
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col3 <= 777 AND (col3 > 311)) UNION SELECT pk, col0 FROM tab0 WHERE NOT ((col3 <= 777 AND (col3 > 311)))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_548 UNION SELECT pk, col0 FROM view_2_tab0_548
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-2500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE (col3 <= 777 AND (col3 > 311)) ) AS tab0_548
----
41 values hashing to 3a6fc2069f944f99179f9dbab9ed04e9

query I rowsort label-2500-3
SELECT * FROM view_3_tab0_548
----
41 values hashing to 3a6fc2069f944f99179f9dbab9ed04e9

query I rowsort label-2500-3
SELECT pk FROM tab0 WHERE (col3 <= 777 AND (col3 > 311))
----
41 values hashing to 3a6fc2069f944f99179f9dbab9ed04e9

statement ok
DROP VIEW view_1_tab0_548

statement ok
DROP VIEW view_2_tab0_548

statement ok
DROP VIEW view_3_tab0_548

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab1_548 AS SELECT pk, col0 FROM tab1 WHERE (col3 <= 777 AND (col3 > 311))

statement ok
CREATE VIEW view_2_tab1_548 AS SELECT pk, col0 FROM tab1 WHERE NOT ((col3 <= 777 AND (col3 > 311)))

statement ok
CREATE VIEW view_3_tab1_548 AS SELECT pk FROM view_1_tab1_548

query II rowsort label-2500-1
SELECT pk, col0 FROM tab1 WHERE (col3 <= 777 AND (col3 > 311))
----
82 values hashing to aa109697bf6d4d9478bd2ae030c051e1

query II rowsort label-2500-2
SELECT pk, col0 FROM tab1 WHERE NOT ((col3 <= 777 AND (col3 > 311)))
----
118 values hashing to c93e2bc976d650e7807c63e7f0dbff5b

query II rowsort label-2500-1
SELECT pk, col0 FROM view_1_tab1_548
----
82 values hashing to aa109697bf6d4d9478bd2ae030c051e1

query II rowsort label-2500-2
SELECT pk, col0 FROM view_2_tab1_548
----
118 values hashing to c93e2bc976d650e7807c63e7f0dbff5b

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col3 <= 777 AND (col3 > 311)) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT ((col3 <= 777 AND (col3 > 311)))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_548 UNION ALL SELECT pk, col0 FROM view_2_tab1_548
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col3 <= 777 AND (col3 > 311)) UNION SELECT pk, col0 FROM tab1 WHERE NOT ((col3 <= 777 AND (col3 > 311)))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_548 UNION SELECT pk, col0 FROM view_2_tab1_548
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-2500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE (col3 <= 777 AND (col3 > 311)) ) AS tab1_548
----
41 values hashing to 3a6fc2069f944f99179f9dbab9ed04e9

query I rowsort label-2500-3
SELECT * FROM view_3_tab1_548
----
41 values hashing to 3a6fc2069f944f99179f9dbab9ed04e9

query I rowsort label-2500-3
SELECT pk FROM tab1 WHERE (col3 <= 777 AND (col3 > 311))
----
41 values hashing to 3a6fc2069f944f99179f9dbab9ed04e9

statement ok
DROP VIEW view_1_tab1_548

statement ok
DROP VIEW view_2_tab1_548

statement ok
DROP VIEW view_3_tab1_548

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab2_548 AS SELECT pk, col0 FROM tab2 WHERE (col3 <= 777 AND (col3 > 311))

statement ok
CREATE VIEW view_2_tab2_548 AS SELECT pk, col0 FROM tab2 WHERE NOT ((col3 <= 777 AND (col3 > 311)))

statement ok
CREATE VIEW view_3_tab2_548 AS SELECT pk FROM view_1_tab2_548

query II rowsort label-2500-1
SELECT pk, col0 FROM tab2 WHERE (col3 <= 777 AND (col3 > 311))
----
82 values hashing to aa109697bf6d4d9478bd2ae030c051e1

query II rowsort label-2500-2
SELECT pk, col0 FROM tab2 WHERE NOT ((col3 <= 777 AND (col3 > 311)))
----
118 values hashing to c93e2bc976d650e7807c63e7f0dbff5b

query II rowsort label-2500-1
SELECT pk, col0 FROM view_1_tab2_548
----
82 values hashing to aa109697bf6d4d9478bd2ae030c051e1

query II rowsort label-2500-2
SELECT pk, col0 FROM view_2_tab2_548
----
118 values hashing to c93e2bc976d650e7807c63e7f0dbff5b

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col3 <= 777 AND (col3 > 311)) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT ((col3 <= 777 AND (col3 > 311)))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_548 UNION ALL SELECT pk, col0 FROM view_2_tab2_548
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col3 <= 777 AND (col3 > 311)) UNION SELECT pk, col0 FROM tab2 WHERE NOT ((col3 <= 777 AND (col3 > 311)))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_548 UNION SELECT pk, col0 FROM view_2_tab2_548
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-2500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE (col3 <= 777 AND (col3 > 311)) ) AS tab2_548
----
41 values hashing to 3a6fc2069f944f99179f9dbab9ed04e9

query I rowsort label-2500-3
SELECT * FROM view_3_tab2_548
----
41 values hashing to 3a6fc2069f944f99179f9dbab9ed04e9

query I rowsort label-2500-3
SELECT pk FROM tab2 WHERE (col3 <= 777 AND (col3 > 311))
----
41 values hashing to 3a6fc2069f944f99179f9dbab9ed04e9

statement ok
DROP VIEW view_1_tab2_548

statement ok
DROP VIEW view_2_tab2_548

statement ok
DROP VIEW view_3_tab2_548

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab3_548 AS SELECT pk, col0 FROM tab3 WHERE (col3 <= 777 AND (col3 > 311))

statement ok
CREATE VIEW view_2_tab3_548 AS SELECT pk, col0 FROM tab3 WHERE NOT ((col3 <= 777 AND (col3 > 311)))

statement ok
CREATE VIEW view_3_tab3_548 AS SELECT pk FROM view_1_tab3_548

query II rowsort label-2500-1
SELECT pk, col0 FROM tab3 WHERE (col3 <= 777 AND (col3 > 311))
----
82 values hashing to aa109697bf6d4d9478bd2ae030c051e1

query II rowsort label-2500-2
SELECT pk, col0 FROM tab3 WHERE NOT ((col3 <= 777 AND (col3 > 311)))
----
118 values hashing to c93e2bc976d650e7807c63e7f0dbff5b

query II rowsort label-2500-1
SELECT pk, col0 FROM view_1_tab3_548
----
82 values hashing to aa109697bf6d4d9478bd2ae030c051e1

query II rowsort label-2500-2
SELECT pk, col0 FROM view_2_tab3_548
----
118 values hashing to c93e2bc976d650e7807c63e7f0dbff5b

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col3 <= 777 AND (col3 > 311)) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT ((col3 <= 777 AND (col3 > 311)))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_548 UNION ALL SELECT pk, col0 FROM view_2_tab3_548
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col3 <= 777 AND (col3 > 311)) UNION SELECT pk, col0 FROM tab3 WHERE NOT ((col3 <= 777 AND (col3 > 311)))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_548 UNION SELECT pk, col0 FROM view_2_tab3_548
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-2500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE (col3 <= 777 AND (col3 > 311)) ) AS tab3_548
----
41 values hashing to 3a6fc2069f944f99179f9dbab9ed04e9

query I rowsort label-2500-3
SELECT * FROM view_3_tab3_548
----
41 values hashing to 3a6fc2069f944f99179f9dbab9ed04e9

query I rowsort label-2500-3
SELECT pk FROM tab3 WHERE (col3 <= 777 AND (col3 > 311))
----
41 values hashing to 3a6fc2069f944f99179f9dbab9ed04e9

statement ok
DROP VIEW view_1_tab3_548

statement ok
DROP VIEW view_2_tab3_548

statement ok
DROP VIEW view_3_tab3_548

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab4_548 AS SELECT pk, col0 FROM tab4 WHERE (col3 <= 777 AND (col3 > 311))

statement ok
CREATE VIEW view_2_tab4_548 AS SELECT pk, col0 FROM tab4 WHERE NOT ((col3 <= 777 AND (col3 > 311)))

statement ok
CREATE VIEW view_3_tab4_548 AS SELECT pk FROM view_1_tab4_548

query II rowsort label-2500-1
SELECT pk, col0 FROM tab4 WHERE (col3 <= 777 AND (col3 > 311))
----
82 values hashing to aa109697bf6d4d9478bd2ae030c051e1

query II rowsort label-2500-2
SELECT pk, col0 FROM tab4 WHERE NOT ((col3 <= 777 AND (col3 > 311)))
----
118 values hashing to c93e2bc976d650e7807c63e7f0dbff5b

query II rowsort label-2500-1
SELECT pk, col0 FROM view_1_tab4_548
----
82 values hashing to aa109697bf6d4d9478bd2ae030c051e1

query II rowsort label-2500-2
SELECT pk, col0 FROM view_2_tab4_548
----
118 values hashing to c93e2bc976d650e7807c63e7f0dbff5b

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col3 <= 777 AND (col3 > 311)) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT ((col3 <= 777 AND (col3 > 311)))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_548 UNION ALL SELECT pk, col0 FROM view_2_tab4_548
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col3 <= 777 AND (col3 > 311)) UNION SELECT pk, col0 FROM tab4 WHERE NOT ((col3 <= 777 AND (col3 > 311)))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_548 UNION SELECT pk, col0 FROM view_2_tab4_548
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-2500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE (col3 <= 777 AND (col3 > 311)) ) AS tab4_548
----
41 values hashing to 3a6fc2069f944f99179f9dbab9ed04e9

query I rowsort label-2500-3
SELECT * FROM view_3_tab4_548
----
41 values hashing to 3a6fc2069f944f99179f9dbab9ed04e9

query I rowsort label-2500-3
SELECT pk FROM tab4 WHERE (col3 <= 777 AND (col3 > 311))
----
41 values hashing to 3a6fc2069f944f99179f9dbab9ed04e9

statement ok
DROP VIEW view_1_tab4_548

statement ok
DROP VIEW view_2_tab4_548

statement ok
DROP VIEW view_3_tab4_548

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_549') DROP VIEW view_1_tab0_549

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_549

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_549') DROP VIEW view_2_tab0_549

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_549

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_549') DROP VIEW view_3_tab0_549

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_549

statement ok
CREATE VIEW view_1_tab0_549 AS SELECT pk, col0 FROM tab0 WHERE col4 <= 557.21

statement ok
CREATE VIEW view_2_tab0_549 AS SELECT pk, col0 FROM tab0 WHERE NOT (col4 <= 557.21)

statement ok
CREATE VIEW view_3_tab0_549 AS SELECT pk FROM view_1_tab0_549

query II rowsort label-2600-1
SELECT pk, col0 FROM tab0 WHERE col4 <= 557.21
----
110 values hashing to d628a61a9c3125a344405bfb47edff07

query II rowsort label-2600-2
SELECT pk, col0 FROM tab0 WHERE NOT (col4 <= 557.21)
----
90 values hashing to 0433059bfbf4e11071cb6794a07c9ab1

query II rowsort label-2600-1
SELECT pk, col0 FROM view_1_tab0_549
----
110 values hashing to d628a61a9c3125a344405bfb47edff07

query II rowsort label-2600-2
SELECT pk, col0 FROM view_2_tab0_549
----
90 values hashing to 0433059bfbf4e11071cb6794a07c9ab1

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col4 <= 557.21 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col4 <= 557.21)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_549 UNION ALL SELECT pk, col0 FROM view_2_tab0_549
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col4 <= 557.21 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col4 <= 557.21)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_549 UNION SELECT pk, col0 FROM view_2_tab0_549
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-2600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col4 <= 557.21 ) AS tab0_549
----
55 values hashing to 8a188e963d7c11801b348633c441e267

query I rowsort label-2600-3
SELECT * FROM view_3_tab0_549
----
55 values hashing to 8a188e963d7c11801b348633c441e267

query I rowsort label-2600-3
SELECT pk FROM tab0 WHERE col4 <= 557.21
----
55 values hashing to 8a188e963d7c11801b348633c441e267

statement ok
DROP VIEW view_1_tab0_549

statement ok
DROP VIEW view_2_tab0_549

statement ok
DROP VIEW view_3_tab0_549

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_549') DROP VIEW view_1_tab1_549

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_549

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_549') DROP VIEW view_2_tab1_549

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_549

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_549') DROP VIEW view_3_tab1_549

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_549

statement ok
CREATE VIEW view_1_tab1_549 AS SELECT pk, col0 FROM tab1 WHERE col4 <= 557.21

statement ok
CREATE VIEW view_2_tab1_549 AS SELECT pk, col0 FROM tab1 WHERE NOT (col4 <= 557.21)

statement ok
CREATE VIEW view_3_tab1_549 AS SELECT pk FROM view_1_tab1_549

query II rowsort label-2600-1
SELECT pk, col0 FROM tab1 WHERE col4 <= 557.21
----
110 values hashing to d628a61a9c3125a344405bfb47edff07

query II rowsort label-2600-2
SELECT pk, col0 FROM tab1 WHERE NOT (col4 <= 557.21)
----
90 values hashing to 0433059bfbf4e11071cb6794a07c9ab1

query II rowsort label-2600-1
SELECT pk, col0 FROM view_1_tab1_549
----
110 values hashing to d628a61a9c3125a344405bfb47edff07

query II rowsort label-2600-2
SELECT pk, col0 FROM view_2_tab1_549
----
90 values hashing to 0433059bfbf4e11071cb6794a07c9ab1

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col4 <= 557.21 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col4 <= 557.21)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_549 UNION ALL SELECT pk, col0 FROM view_2_tab1_549
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col4 <= 557.21 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col4 <= 557.21)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_549 UNION SELECT pk, col0 FROM view_2_tab1_549
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-2600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col4 <= 557.21 ) AS tab1_549
----
55 values hashing to 8a188e963d7c11801b348633c441e267

query I rowsort label-2600-3
SELECT * FROM view_3_tab1_549
----
55 values hashing to 8a188e963d7c11801b348633c441e267

query I rowsort label-2600-3
SELECT pk FROM tab1 WHERE col4 <= 557.21
----
55 values hashing to 8a188e963d7c11801b348633c441e267

statement ok
DROP VIEW view_1_tab1_549

statement ok
DROP VIEW view_2_tab1_549

statement ok
DROP VIEW view_3_tab1_549

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_549') DROP VIEW view_1_tab2_549

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_549

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_549') DROP VIEW view_2_tab2_549

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_549

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_549') DROP VIEW view_3_tab2_549

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_549

statement ok
CREATE VIEW view_1_tab2_549 AS SELECT pk, col0 FROM tab2 WHERE col4 <= 557.21

statement ok
CREATE VIEW view_2_tab2_549 AS SELECT pk, col0 FROM tab2 WHERE NOT (col4 <= 557.21)

statement ok
CREATE VIEW view_3_tab2_549 AS SELECT pk FROM view_1_tab2_549

query II rowsort label-2600-1
SELECT pk, col0 FROM tab2 WHERE col4 <= 557.21
----
110 values hashing to d628a61a9c3125a344405bfb47edff07

query II rowsort label-2600-2
SELECT pk, col0 FROM tab2 WHERE NOT (col4 <= 557.21)
----
90 values hashing to 0433059bfbf4e11071cb6794a07c9ab1

query II rowsort label-2600-1
SELECT pk, col0 FROM view_1_tab2_549
----
110 values hashing to d628a61a9c3125a344405bfb47edff07

query II rowsort label-2600-2
SELECT pk, col0 FROM view_2_tab2_549
----
90 values hashing to 0433059bfbf4e11071cb6794a07c9ab1

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col4 <= 557.21 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col4 <= 557.21)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_549 UNION ALL SELECT pk, col0 FROM view_2_tab2_549
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col4 <= 557.21 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col4 <= 557.21)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_549 UNION SELECT pk, col0 FROM view_2_tab2_549
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-2600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col4 <= 557.21 ) AS tab2_549
----
55 values hashing to 8a188e963d7c11801b348633c441e267

query I rowsort label-2600-3
SELECT * FROM view_3_tab2_549
----
55 values hashing to 8a188e963d7c11801b348633c441e267

query I rowsort label-2600-3
SELECT pk FROM tab2 WHERE col4 <= 557.21
----
55 values hashing to 8a188e963d7c11801b348633c441e267

statement ok
DROP VIEW view_1_tab2_549

statement ok
DROP VIEW view_2_tab2_549

statement ok
DROP VIEW view_3_tab2_549

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_549') DROP VIEW view_1_tab3_549

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_549

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_549') DROP VIEW view_2_tab3_549

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_549

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_549') DROP VIEW view_3_tab3_549

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_549

statement ok
CREATE VIEW view_1_tab3_549 AS SELECT pk, col0 FROM tab3 WHERE col4 <= 557.21

statement ok
CREATE VIEW view_2_tab3_549 AS SELECT pk, col0 FROM tab3 WHERE NOT (col4 <= 557.21)

statement ok
CREATE VIEW view_3_tab3_549 AS SELECT pk FROM view_1_tab3_549

query II rowsort label-2600-1
SELECT pk, col0 FROM tab3 WHERE col4 <= 557.21
----
110 values hashing to d628a61a9c3125a344405bfb47edff07

query II rowsort label-2600-2
SELECT pk, col0 FROM tab3 WHERE NOT (col4 <= 557.21)
----
90 values hashing to 0433059bfbf4e11071cb6794a07c9ab1

query II rowsort label-2600-1
SELECT pk, col0 FROM view_1_tab3_549
----
110 values hashing to d628a61a9c3125a344405bfb47edff07

query II rowsort label-2600-2
SELECT pk, col0 FROM view_2_tab3_549
----
90 values hashing to 0433059bfbf4e11071cb6794a07c9ab1

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col4 <= 557.21 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col4 <= 557.21)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_549 UNION ALL SELECT pk, col0 FROM view_2_tab3_549
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col4 <= 557.21 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col4 <= 557.21)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_549 UNION SELECT pk, col0 FROM view_2_tab3_549
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-2600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col4 <= 557.21 ) AS tab3_549
----
55 values hashing to 8a188e963d7c11801b348633c441e267

query I rowsort label-2600-3
SELECT * FROM view_3_tab3_549
----
55 values hashing to 8a188e963d7c11801b348633c441e267

query I rowsort label-2600-3
SELECT pk FROM tab3 WHERE col4 <= 557.21
----
55 values hashing to 8a188e963d7c11801b348633c441e267

statement ok
DROP VIEW view_1_tab3_549

statement ok
DROP VIEW view_2_tab3_549

statement ok
DROP VIEW view_3_tab3_549

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_549') DROP VIEW view_1_tab4_549

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_549

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_549') DROP VIEW view_2_tab4_549

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_549

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_549') DROP VIEW view_3_tab4_549

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_549

statement ok
CREATE VIEW view_1_tab4_549 AS SELECT pk, col0 FROM tab4 WHERE col4 <= 557.21

statement ok
CREATE VIEW view_2_tab4_549 AS SELECT pk, col0 FROM tab4 WHERE NOT (col4 <= 557.21)

statement ok
CREATE VIEW view_3_tab4_549 AS SELECT pk FROM view_1_tab4_549

query II rowsort label-2600-1
SELECT pk, col0 FROM tab4 WHERE col4 <= 557.21
----
110 values hashing to d628a61a9c3125a344405bfb47edff07

query II rowsort label-2600-2
SELECT pk, col0 FROM tab4 WHERE NOT (col4 <= 557.21)
----
90 values hashing to 0433059bfbf4e11071cb6794a07c9ab1

query II rowsort label-2600-1
SELECT pk, col0 FROM view_1_tab4_549
----
110 values hashing to d628a61a9c3125a344405bfb47edff07

query II rowsort label-2600-2
SELECT pk, col0 FROM view_2_tab4_549
----
90 values hashing to 0433059bfbf4e11071cb6794a07c9ab1

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col4 <= 557.21 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col4 <= 557.21)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_549 UNION ALL SELECT pk, col0 FROM view_2_tab4_549
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col4 <= 557.21 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col4 <= 557.21)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_549 UNION SELECT pk, col0 FROM view_2_tab4_549
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-2600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col4 <= 557.21 ) AS tab4_549
----
55 values hashing to 8a188e963d7c11801b348633c441e267

query I rowsort label-2600-3
SELECT * FROM view_3_tab4_549
----
55 values hashing to 8a188e963d7c11801b348633c441e267

query I rowsort label-2600-3
SELECT pk FROM tab4 WHERE col4 <= 557.21
----
55 values hashing to 8a188e963d7c11801b348633c441e267

statement ok
DROP VIEW view_1_tab4_549

statement ok
DROP VIEW view_2_tab4_549

statement ok
DROP VIEW view_3_tab4_549

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_550') DROP VIEW view_1_tab0_550

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_550

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_550') DROP VIEW view_2_tab0_550

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_550

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_550') DROP VIEW view_3_tab0_550

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_550

statement ok
CREATE VIEW view_1_tab0_550 AS SELECT pk, col0 FROM tab0 WHERE (col1 < 902.3)

statement ok
CREATE VIEW view_2_tab0_550 AS SELECT pk, col0 FROM tab0 WHERE NOT ((col1 < 902.3))

statement ok
CREATE VIEW view_3_tab0_550 AS SELECT pk FROM view_1_tab0_550

query II rowsort label-2700-1
SELECT pk, col0 FROM tab0 WHERE (col1 < 902.3)
----
170 values hashing to fb0384e87ac5a5b7ca32a23046c9ab2d

query II rowsort label-2700-2
SELECT pk, col0 FROM tab0 WHERE NOT ((col1 < 902.3))
----
30 values hashing to 60371a66e25fea4be21d72434427aee6

query II rowsort label-2700-1
SELECT pk, col0 FROM view_1_tab0_550
----
170 values hashing to fb0384e87ac5a5b7ca32a23046c9ab2d

query II rowsort label-2700-2
SELECT pk, col0 FROM view_2_tab0_550
----
30 values hashing to 60371a66e25fea4be21d72434427aee6

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col1 < 902.3) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT ((col1 < 902.3))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_550 UNION ALL SELECT pk, col0 FROM view_2_tab0_550
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col1 < 902.3) UNION SELECT pk, col0 FROM tab0 WHERE NOT ((col1 < 902.3))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_550 UNION SELECT pk, col0 FROM view_2_tab0_550
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-2700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE (col1 < 902.3) ) AS tab0_550
----
85 values hashing to d929e5081a45daa1b326472dbad181b3

query I rowsort label-2700-3
SELECT * FROM view_3_tab0_550
----
85 values hashing to d929e5081a45daa1b326472dbad181b3

query I rowsort label-2700-3
SELECT pk FROM tab0 WHERE (col1 < 902.3)
----
85 values hashing to d929e5081a45daa1b326472dbad181b3

statement ok
DROP VIEW view_1_tab0_550

statement ok
DROP VIEW view_2_tab0_550

statement ok
DROP VIEW view_3_tab0_550

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_550') DROP VIEW view_1_tab1_550

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_550

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_550') DROP VIEW view_2_tab1_550

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_550

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_550') DROP VIEW view_3_tab1_550

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_550

statement ok
CREATE VIEW view_1_tab1_550 AS SELECT pk, col0 FROM tab1 WHERE (col1 < 902.3)

statement ok
CREATE VIEW view_2_tab1_550 AS SELECT pk, col0 FROM tab1 WHERE NOT ((col1 < 902.3))

statement ok
CREATE VIEW view_3_tab1_550 AS SELECT pk FROM view_1_tab1_550

query II rowsort label-2700-1
SELECT pk, col0 FROM tab1 WHERE (col1 < 902.3)
----
170 values hashing to fb0384e87ac5a5b7ca32a23046c9ab2d

query II rowsort label-2700-2
SELECT pk, col0 FROM tab1 WHERE NOT ((col1 < 902.3))
----
30 values hashing to 60371a66e25fea4be21d72434427aee6

query II rowsort label-2700-1
SELECT pk, col0 FROM view_1_tab1_550
----
170 values hashing to fb0384e87ac5a5b7ca32a23046c9ab2d

query II rowsort label-2700-2
SELECT pk, col0 FROM view_2_tab1_550
----
30 values hashing to 60371a66e25fea4be21d72434427aee6

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col1 < 902.3) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT ((col1 < 902.3))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_550 UNION ALL SELECT pk, col0 FROM view_2_tab1_550
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col1 < 902.3) UNION SELECT pk, col0 FROM tab1 WHERE NOT ((col1 < 902.3))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_550 UNION SELECT pk, col0 FROM view_2_tab1_550
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-2700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE (col1 < 902.3) ) AS tab1_550
----
85 values hashing to d929e5081a45daa1b326472dbad181b3

query I rowsort label-2700-3
SELECT * FROM view_3_tab1_550
----
85 values hashing to d929e5081a45daa1b326472dbad181b3

query I rowsort label-2700-3
SELECT pk FROM tab1 WHERE (col1 < 902.3)
----
85 values hashing to d929e5081a45daa1b326472dbad181b3

statement ok
DROP VIEW view_1_tab1_550

statement ok
DROP VIEW view_2_tab1_550

statement ok
DROP VIEW view_3_tab1_550

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_550') DROP VIEW view_1_tab2_550

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_550

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_550') DROP VIEW view_2_tab2_550

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_550

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_550') DROP VIEW view_3_tab2_550

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_550

statement ok
CREATE VIEW view_1_tab2_550 AS SELECT pk, col0 FROM tab2 WHERE (col1 < 902.3)

statement ok
CREATE VIEW view_2_tab2_550 AS SELECT pk, col0 FROM tab2 WHERE NOT ((col1 < 902.3))

statement ok
CREATE VIEW view_3_tab2_550 AS SELECT pk FROM view_1_tab2_550

query II rowsort label-2700-1
SELECT pk, col0 FROM tab2 WHERE (col1 < 902.3)
----
170 values hashing to fb0384e87ac5a5b7ca32a23046c9ab2d

query II rowsort label-2700-2
SELECT pk, col0 FROM tab2 WHERE NOT ((col1 < 902.3))
----
30 values hashing to 60371a66e25fea4be21d72434427aee6

query II rowsort label-2700-1
SELECT pk, col0 FROM view_1_tab2_550
----
170 values hashing to fb0384e87ac5a5b7ca32a23046c9ab2d

query II rowsort label-2700-2
SELECT pk, col0 FROM view_2_tab2_550
----
30 values hashing to 60371a66e25fea4be21d72434427aee6

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col1 < 902.3) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT ((col1 < 902.3))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_550 UNION ALL SELECT pk, col0 FROM view_2_tab2_550
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col1 < 902.3) UNION SELECT pk, col0 FROM tab2 WHERE NOT ((col1 < 902.3))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_550 UNION SELECT pk, col0 FROM view_2_tab2_550
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-2700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE (col1 < 902.3) ) AS tab2_550
----
85 values hashing to d929e5081a45daa1b326472dbad181b3

query I rowsort label-2700-3
SELECT * FROM view_3_tab2_550
----
85 values hashing to d929e5081a45daa1b326472dbad181b3

query I rowsort label-2700-3
SELECT pk FROM tab2 WHERE (col1 < 902.3)
----
85 values hashing to d929e5081a45daa1b326472dbad181b3

statement ok
DROP VIEW view_1_tab2_550

statement ok
DROP VIEW view_2_tab2_550

statement ok
DROP VIEW view_3_tab2_550

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_550') DROP VIEW view_1_tab3_550

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_550

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_550') DROP VIEW view_2_tab3_550

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_550

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_550') DROP VIEW view_3_tab3_550

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_550

statement ok
CREATE VIEW view_1_tab3_550 AS SELECT pk, col0 FROM tab3 WHERE (col1 < 902.3)

statement ok
CREATE VIEW view_2_tab3_550 AS SELECT pk, col0 FROM tab3 WHERE NOT ((col1 < 902.3))

statement ok
CREATE VIEW view_3_tab3_550 AS SELECT pk FROM view_1_tab3_550

query II rowsort label-2700-1
SELECT pk, col0 FROM tab3 WHERE (col1 < 902.3)
----
170 values hashing to fb0384e87ac5a5b7ca32a23046c9ab2d

query II rowsort label-2700-2
SELECT pk, col0 FROM tab3 WHERE NOT ((col1 < 902.3))
----
30 values hashing to 60371a66e25fea4be21d72434427aee6

query II rowsort label-2700-1
SELECT pk, col0 FROM view_1_tab3_550
----
170 values hashing to fb0384e87ac5a5b7ca32a23046c9ab2d

query II rowsort label-2700-2
SELECT pk, col0 FROM view_2_tab3_550
----
30 values hashing to 60371a66e25fea4be21d72434427aee6

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col1 < 902.3) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT ((col1 < 902.3))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_550 UNION ALL SELECT pk, col0 FROM view_2_tab3_550
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col1 < 902.3) UNION SELECT pk, col0 FROM tab3 WHERE NOT ((col1 < 902.3))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_550 UNION SELECT pk, col0 FROM view_2_tab3_550
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-2700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE (col1 < 902.3) ) AS tab3_550
----
85 values hashing to d929e5081a45daa1b326472dbad181b3

query I rowsort label-2700-3
SELECT * FROM view_3_tab3_550
----
85 values hashing to d929e5081a45daa1b326472dbad181b3

query I rowsort label-2700-3
SELECT pk FROM tab3 WHERE (col1 < 902.3)
----
85 values hashing to d929e5081a45daa1b326472dbad181b3

statement ok
DROP VIEW view_1_tab3_550

statement ok
DROP VIEW view_2_tab3_550

statement ok
DROP VIEW view_3_tab3_550

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_550') DROP VIEW view_1_tab4_550

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_550

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_550') DROP VIEW view_2_tab4_550

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_550

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_550') DROP VIEW view_3_tab4_550

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_550

statement ok
CREATE VIEW view_1_tab4_550 AS SELECT pk, col0 FROM tab4 WHERE (col1 < 902.3)

statement ok
CREATE VIEW view_2_tab4_550 AS SELECT pk, col0 FROM tab4 WHERE NOT ((col1 < 902.3))

statement ok
CREATE VIEW view_3_tab4_550 AS SELECT pk FROM view_1_tab4_550

query II rowsort label-2700-1
SELECT pk, col0 FROM tab4 WHERE (col1 < 902.3)
----
170 values hashing to fb0384e87ac5a5b7ca32a23046c9ab2d

query II rowsort label-2700-2
SELECT pk, col0 FROM tab4 WHERE NOT ((col1 < 902.3))
----
30 values hashing to 60371a66e25fea4be21d72434427aee6

query II rowsort label-2700-1
SELECT pk, col0 FROM view_1_tab4_550
----
170 values hashing to fb0384e87ac5a5b7ca32a23046c9ab2d

query II rowsort label-2700-2
SELECT pk, col0 FROM view_2_tab4_550
----
30 values hashing to 60371a66e25fea4be21d72434427aee6

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col1 < 902.3) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT ((col1 < 902.3))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_550 UNION ALL SELECT pk, col0 FROM view_2_tab4_550
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col1 < 902.3) UNION SELECT pk, col0 FROM tab4 WHERE NOT ((col1 < 902.3))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_550 UNION SELECT pk, col0 FROM view_2_tab4_550
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-2700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE (col1 < 902.3) ) AS tab4_550
----
85 values hashing to d929e5081a45daa1b326472dbad181b3

query I rowsort label-2700-3
SELECT * FROM view_3_tab4_550
----
85 values hashing to d929e5081a45daa1b326472dbad181b3

query I rowsort label-2700-3
SELECT pk FROM tab4 WHERE (col1 < 902.3)
----
85 values hashing to d929e5081a45daa1b326472dbad181b3

statement ok
DROP VIEW view_1_tab4_550

statement ok
DROP VIEW view_2_tab4_550

statement ok
DROP VIEW view_3_tab4_550

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_551') DROP VIEW view_1_tab0_551

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_551

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_551') DROP VIEW view_2_tab0_551

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_551

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_551') DROP VIEW view_3_tab0_551

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_551

statement ok
CREATE VIEW view_1_tab0_551 AS SELECT pk, col0 FROM tab0 WHERE (col3 >= 534) OR col0 >= 193 OR (col3 > 616 OR (col3 IS NULL) AND ((((col3 >= 69)))) OR ((col3 >= 261)) OR (col3 = 585)) OR (((col0 > 990 AND col3 <= 492) OR (col0 = 980) OR col3 IN (284,219))) AND (col4 IS NULL) OR col3 < 703

statement ok
CREATE VIEW view_2_tab0_551 AS SELECT pk, col0 FROM tab0 WHERE NOT ((col3 >= 534) OR col0 >= 193 OR (col3 > 616 OR (col3 IS NULL) AND ((((col3 >= 69)))) OR ((col3 >= 261)) OR (col3 = 585)) OR (((col0 > 990 AND col3 <= 492) OR (col0 = 980) OR col3 IN (284,219))) AND (col4 IS NULL) OR col3 < 703)

statement ok
CREATE VIEW view_3_tab0_551 AS SELECT pk FROM view_1_tab0_551

query II rowsort label-2800-1
SELECT pk, col0 FROM tab0 WHERE (col3 >= 534) OR col0 >= 193 OR (col3 > 616 OR (col3 IS NULL) AND ((((col3 >= 69)))) OR ((col3 >= 261)) OR (col3 = 585)) OR (((col0 > 990 AND col3 <= 492) OR (col0 = 980) OR col3 IN (284,219))) AND (col4 IS NULL) OR col3 < 703
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-2800-2
SELECT pk, col0 FROM tab0 WHERE NOT ((col3 >= 534) OR col0 >= 193 OR (col3 > 616 OR (col3 IS NULL) AND ((((col3 >= 69)))) OR ((col3 >= 261)) OR (col3 = 585)) OR (((col0 > 990 AND col3 <= 492) OR (col0 = 980) OR col3 IN (284,219))) AND (col4 IS NULL) OR col3 < 703)
----

query II rowsort label-2800-1
SELECT pk, col0 FROM view_1_tab0_551
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-2800-2
SELECT pk, col0 FROM view_2_tab0_551
----

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col3 >= 534) OR col0 >= 193 OR (col3 > 616 OR (col3 IS NULL) AND ((((col3 >= 69)))) OR ((col3 >= 261)) OR (col3 = 585)) OR (((col0 > 990 AND col3 <= 492) OR (col0 = 980) OR col3 IN (284,219))) AND (col4 IS NULL) OR col3 < 703 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT ((col3 >= 534) OR col0 >= 193 OR (col3 > 616 OR (col3 IS NULL) AND ((((col3 >= 69)))) OR ((col3 >= 261)) OR (col3 = 585)) OR (((col0 > 990 AND col3 <= 492) OR (col0 = 980) OR col3 IN (284,219))) AND (col4 IS NULL) OR col3 < 703)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_551 UNION ALL SELECT pk, col0 FROM view_2_tab0_551
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col3 >= 534) OR col0 >= 193 OR (col3 > 616 OR (col3 IS NULL) AND ((((col3 >= 69)))) OR ((col3 >= 261)) OR (col3 = 585)) OR (((col0 > 990 AND col3 <= 492) OR (col0 = 980) OR col3 IN (284,219))) AND (col4 IS NULL) OR col3 < 703 UNION SELECT pk, col0 FROM tab0 WHERE NOT ((col3 >= 534) OR col0 >= 193 OR (col3 > 616 OR (col3 IS NULL) AND ((((col3 >= 69)))) OR ((col3 >= 261)) OR (col3 = 585)) OR (((col0 > 990 AND col3 <= 492) OR (col0 = 980) OR col3 IN (284,219))) AND (col4 IS NULL) OR col3 < 703)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_551 UNION SELECT pk, col0 FROM view_2_tab0_551
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-2800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE (col3 >= 534) OR col0 >= 193 OR (col3 > 616 OR (col3 IS NULL) AND ((((col3 >= 69)))) OR ((col3 >= 261)) OR (col3 = 585)) OR (((col0 > 990 AND col3 <= 492) OR (col0 = 980) OR col3 IN (284,219))) AND (col4 IS NULL) OR col3 < 703 ) AS tab0_551
----
100 values hashing to d7fd31c3916c207fd3117332326c3f37

query I rowsort label-2800-3
SELECT * FROM view_3_tab0_551
----
100 values hashing to d7fd31c3916c207fd3117332326c3f37

query I rowsort label-2800-3
SELECT pk FROM tab0 WHERE (col3 >= 534) OR col0 >= 193 OR (col3 > 616 OR (col3 IS NULL) AND ((((col3 >= 69)))) OR ((col3 >= 261)) OR (col3 = 585)) OR (((col0 > 990 AND col3 <= 492) OR (col0 = 980) OR col3 IN (284,219))) AND (col4 IS NULL) OR col3 < 703
----
100 values hashing to d7fd31c3916c207fd3117332326c3f37

statement ok
DROP VIEW view_1_tab0_551

statement ok
DROP VIEW view_2_tab0_551

statement ok
DROP VIEW view_3_tab0_551

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_551') DROP VIEW view_1_tab1_551

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_551

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_551') DROP VIEW view_2_tab1_551

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_551

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_551') DROP VIEW view_3_tab1_551

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_551

statement ok
CREATE VIEW view_1_tab1_551 AS SELECT pk, col0 FROM tab1 WHERE (col3 >= 534) OR col0 >= 193 OR (col3 > 616 OR (col3 IS NULL) AND ((((col3 >= 69)))) OR ((col3 >= 261)) OR (col3 = 585)) OR (((col0 > 990 AND col3 <= 492) OR (col0 = 980) OR col3 IN (284,219))) AND (col4 IS NULL) OR col3 < 703

statement ok
CREATE VIEW view_2_tab1_551 AS SELECT pk, col0 FROM tab1 WHERE NOT ((col3 >= 534) OR col0 >= 193 OR (col3 > 616 OR (col3 IS NULL) AND ((((col3 >= 69)))) OR ((col3 >= 261)) OR (col3 = 585)) OR (((col0 > 990 AND col3 <= 492) OR (col0 = 980) OR col3 IN (284,219))) AND (col4 IS NULL) OR col3 < 703)

statement ok
CREATE VIEW view_3_tab1_551 AS SELECT pk FROM view_1_tab1_551

query II rowsort label-2800-1
SELECT pk, col0 FROM tab1 WHERE (col3 >= 534) OR col0 >= 193 OR (col3 > 616 OR (col3 IS NULL) AND ((((col3 >= 69)))) OR ((col3 >= 261)) OR (col3 = 585)) OR (((col0 > 990 AND col3 <= 492) OR (col0 = 980) OR col3 IN (284,219))) AND (col4 IS NULL) OR col3 < 703
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-2800-2
SELECT pk, col0 FROM tab1 WHERE NOT ((col3 >= 534) OR col0 >= 193 OR (col3 > 616 OR (col3 IS NULL) AND ((((col3 >= 69)))) OR ((col3 >= 261)) OR (col3 = 585)) OR (((col0 > 990 AND col3 <= 492) OR (col0 = 980) OR col3 IN (284,219))) AND (col4 IS NULL) OR col3 < 703)
----

query II rowsort label-2800-1
SELECT pk, col0 FROM view_1_tab1_551
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-2800-2
SELECT pk, col0 FROM view_2_tab1_551
----

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col3 >= 534) OR col0 >= 193 OR (col3 > 616 OR (col3 IS NULL) AND ((((col3 >= 69)))) OR ((col3 >= 261)) OR (col3 = 585)) OR (((col0 > 990 AND col3 <= 492) OR (col0 = 980) OR col3 IN (284,219))) AND (col4 IS NULL) OR col3 < 703 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT ((col3 >= 534) OR col0 >= 193 OR (col3 > 616 OR (col3 IS NULL) AND ((((col3 >= 69)))) OR ((col3 >= 261)) OR (col3 = 585)) OR (((col0 > 990 AND col3 <= 492) OR (col0 = 980) OR col3 IN (284,219))) AND (col4 IS NULL) OR col3 < 703)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_551 UNION ALL SELECT pk, col0 FROM view_2_tab1_551
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col3 >= 534) OR col0 >= 193 OR (col3 > 616 OR (col3 IS NULL) AND ((((col3 >= 69)))) OR ((col3 >= 261)) OR (col3 = 585)) OR (((col0 > 990 AND col3 <= 492) OR (col0 = 980) OR col3 IN (284,219))) AND (col4 IS NULL) OR col3 < 703 UNION SELECT pk, col0 FROM tab1 WHERE NOT ((col3 >= 534) OR col0 >= 193 OR (col3 > 616 OR (col3 IS NULL) AND ((((col3 >= 69)))) OR ((col3 >= 261)) OR (col3 = 585)) OR (((col0 > 990 AND col3 <= 492) OR (col0 = 980) OR col3 IN (284,219))) AND (col4 IS NULL) OR col3 < 703)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_551 UNION SELECT pk, col0 FROM view_2_tab1_551
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-2800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE (col3 >= 534) OR col0 >= 193 OR (col3 > 616 OR (col3 IS NULL) AND ((((col3 >= 69)))) OR ((col3 >= 261)) OR (col3 = 585)) OR (((col0 > 990 AND col3 <= 492) OR (col0 = 980) OR col3 IN (284,219))) AND (col4 IS NULL) OR col3 < 703 ) AS tab1_551
----
100 values hashing to d7fd31c3916c207fd3117332326c3f37

query I rowsort label-2800-3
SELECT * FROM view_3_tab1_551
----
100 values hashing to d7fd31c3916c207fd3117332326c3f37

query I rowsort label-2800-3
SELECT pk FROM tab1 WHERE (col3 >= 534) OR col0 >= 193 OR (col3 > 616 OR (col3 IS NULL) AND ((((col3 >= 69)))) OR ((col3 >= 261)) OR (col3 = 585)) OR (((col0 > 990 AND col3 <= 492) OR (col0 = 980) OR col3 IN (284,219))) AND (col4 IS NULL) OR col3 < 703
----
100 values hashing to d7fd31c3916c207fd3117332326c3f37

statement ok
DROP VIEW view_1_tab1_551

statement ok
DROP VIEW view_2_tab1_551

statement ok
DROP VIEW view_3_tab1_551

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_551') DROP VIEW view_1_tab2_551

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_551

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_551') DROP VIEW view_2_tab2_551

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_551

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_551') DROP VIEW view_3_tab2_551

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_551

statement ok
CREATE VIEW view_1_tab2_551 AS SELECT pk, col0 FROM tab2 WHERE (col3 >= 534) OR col0 >= 193 OR (col3 > 616 OR (col3 IS NULL) AND ((((col3 >= 69)))) OR ((col3 >= 261)) OR (col3 = 585)) OR (((col0 > 990 AND col3 <= 492) OR (col0 = 980) OR col3 IN (284,219))) AND (col4 IS NULL) OR col3 < 703

statement ok
CREATE VIEW view_2_tab2_551 AS SELECT pk, col0 FROM tab2 WHERE NOT ((col3 >= 534) OR col0 >= 193 OR (col3 > 616 OR (col3 IS NULL) AND ((((col3 >= 69)))) OR ((col3 >= 261)) OR (col3 = 585)) OR (((col0 > 990 AND col3 <= 492) OR (col0 = 980) OR col3 IN (284,219))) AND (col4 IS NULL) OR col3 < 703)

statement ok
CREATE VIEW view_3_tab2_551 AS SELECT pk FROM view_1_tab2_551

query II rowsort label-2800-1
SELECT pk, col0 FROM tab2 WHERE (col3 >= 534) OR col0 >= 193 OR (col3 > 616 OR (col3 IS NULL) AND ((((col3 >= 69)))) OR ((col3 >= 261)) OR (col3 = 585)) OR (((col0 > 990 AND col3 <= 492) OR (col0 = 980) OR col3 IN (284,219))) AND (col4 IS NULL) OR col3 < 703
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-2800-2
SELECT pk, col0 FROM tab2 WHERE NOT ((col3 >= 534) OR col0 >= 193 OR (col3 > 616 OR (col3 IS NULL) AND ((((col3 >= 69)))) OR ((col3 >= 261)) OR (col3 = 585)) OR (((col0 > 990 AND col3 <= 492) OR (col0 = 980) OR col3 IN (284,219))) AND (col4 IS NULL) OR col3 < 703)
----

query II rowsort label-2800-1
SELECT pk, col0 FROM view_1_tab2_551
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-2800-2
SELECT pk, col0 FROM view_2_tab2_551
----

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col3 >= 534) OR col0 >= 193 OR (col3 > 616 OR (col3 IS NULL) AND ((((col3 >= 69)))) OR ((col3 >= 261)) OR (col3 = 585)) OR (((col0 > 990 AND col3 <= 492) OR (col0 = 980) OR col3 IN (284,219))) AND (col4 IS NULL) OR col3 < 703 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT ((col3 >= 534) OR col0 >= 193 OR (col3 > 616 OR (col3 IS NULL) AND ((((col3 >= 69)))) OR ((col3 >= 261)) OR (col3 = 585)) OR (((col0 > 990 AND col3 <= 492) OR (col0 = 980) OR col3 IN (284,219))) AND (col4 IS NULL) OR col3 < 703)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_551 UNION ALL SELECT pk, col0 FROM view_2_tab2_551
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col3 >= 534) OR col0 >= 193 OR (col3 > 616 OR (col3 IS NULL) AND ((((col3 >= 69)))) OR ((col3 >= 261)) OR (col3 = 585)) OR (((col0 > 990 AND col3 <= 492) OR (col0 = 980) OR col3 IN (284,219))) AND (col4 IS NULL) OR col3 < 703 UNION SELECT pk, col0 FROM tab2 WHERE NOT ((col3 >= 534) OR col0 >= 193 OR (col3 > 616 OR (col3 IS NULL) AND ((((col3 >= 69)))) OR ((col3 >= 261)) OR (col3 = 585)) OR (((col0 > 990 AND col3 <= 492) OR (col0 = 980) OR col3 IN (284,219))) AND (col4 IS NULL) OR col3 < 703)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_551 UNION SELECT pk, col0 FROM view_2_tab2_551
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-2800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE (col3 >= 534) OR col0 >= 193 OR (col3 > 616 OR (col3 IS NULL) AND ((((col3 >= 69)))) OR ((col3 >= 261)) OR (col3 = 585)) OR (((col0 > 990 AND col3 <= 492) OR (col0 = 980) OR col3 IN (284,219))) AND (col4 IS NULL) OR col3 < 703 ) AS tab2_551
----
100 values hashing to d7fd31c3916c207fd3117332326c3f37

query I rowsort label-2800-3
SELECT * FROM view_3_tab2_551
----
100 values hashing to d7fd31c3916c207fd3117332326c3f37

query I rowsort label-2800-3
SELECT pk FROM tab2 WHERE (col3 >= 534) OR col0 >= 193 OR (col3 > 616 OR (col3 IS NULL) AND ((((col3 >= 69)))) OR ((col3 >= 261)) OR (col3 = 585)) OR (((col0 > 990 AND col3 <= 492) OR (col0 = 980) OR col3 IN (284,219))) AND (col4 IS NULL) OR col3 < 703
----
100 values hashing to d7fd31c3916c207fd3117332326c3f37

statement ok
DROP VIEW view_1_tab2_551

statement ok
DROP VIEW view_2_tab2_551

statement ok
DROP VIEW view_3_tab2_551

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_551') DROP VIEW view_1_tab3_551

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_551

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_551') DROP VIEW view_2_tab3_551

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_551

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_551') DROP VIEW view_3_tab3_551

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_551

statement ok
CREATE VIEW view_1_tab3_551 AS SELECT pk, col0 FROM tab3 WHERE (col3 >= 534) OR col0 >= 193 OR (col3 > 616 OR (col3 IS NULL) AND ((((col3 >= 69)))) OR ((col3 >= 261)) OR (col3 = 585)) OR (((col0 > 990 AND col3 <= 492) OR (col0 = 980) OR col3 IN (284,219))) AND (col4 IS NULL) OR col3 < 703

statement ok
CREATE VIEW view_2_tab3_551 AS SELECT pk, col0 FROM tab3 WHERE NOT ((col3 >= 534) OR col0 >= 193 OR (col3 > 616 OR (col3 IS NULL) AND ((((col3 >= 69)))) OR ((col3 >= 261)) OR (col3 = 585)) OR (((col0 > 990 AND col3 <= 492) OR (col0 = 980) OR col3 IN (284,219))) AND (col4 IS NULL) OR col3 < 703)

statement ok
CREATE VIEW view_3_tab3_551 AS SELECT pk FROM view_1_tab3_551

query II rowsort label-2800-1
SELECT pk, col0 FROM tab3 WHERE (col3 >= 534) OR col0 >= 193 OR (col3 > 616 OR (col3 IS NULL) AND ((((col3 >= 69)))) OR ((col3 >= 261)) OR (col3 = 585)) OR (((col0 > 990 AND col3 <= 492) OR (col0 = 980) OR col3 IN (284,219))) AND (col4 IS NULL) OR col3 < 703
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-2800-2
SELECT pk, col0 FROM tab3 WHERE NOT ((col3 >= 534) OR col0 >= 193 OR (col3 > 616 OR (col3 IS NULL) AND ((((col3 >= 69)))) OR ((col3 >= 261)) OR (col3 = 585)) OR (((col0 > 990 AND col3 <= 492) OR (col0 = 980) OR col3 IN (284,219))) AND (col4 IS NULL) OR col3 < 703)
----

query II rowsort label-2800-1
SELECT pk, col0 FROM view_1_tab3_551
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-2800-2
SELECT pk, col0 FROM view_2_tab3_551
----

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col3 >= 534) OR col0 >= 193 OR (col3 > 616 OR (col3 IS NULL) AND ((((col3 >= 69)))) OR ((col3 >= 261)) OR (col3 = 585)) OR (((col0 > 990 AND col3 <= 492) OR (col0 = 980) OR col3 IN (284,219))) AND (col4 IS NULL) OR col3 < 703 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT ((col3 >= 534) OR col0 >= 193 OR (col3 > 616 OR (col3 IS NULL) AND ((((col3 >= 69)))) OR ((col3 >= 261)) OR (col3 = 585)) OR (((col0 > 990 AND col3 <= 492) OR (col0 = 980) OR col3 IN (284,219))) AND (col4 IS NULL) OR col3 < 703)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_551 UNION ALL SELECT pk, col0 FROM view_2_tab3_551
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col3 >= 534) OR col0 >= 193 OR (col3 > 616 OR (col3 IS NULL) AND ((((col3 >= 69)))) OR ((col3 >= 261)) OR (col3 = 585)) OR (((col0 > 990 AND col3 <= 492) OR (col0 = 980) OR col3 IN (284,219))) AND (col4 IS NULL) OR col3 < 703 UNION SELECT pk, col0 FROM tab3 WHERE NOT ((col3 >= 534) OR col0 >= 193 OR (col3 > 616 OR (col3 IS NULL) AND ((((col3 >= 69)))) OR ((col3 >= 261)) OR (col3 = 585)) OR (((col0 > 990 AND col3 <= 492) OR (col0 = 980) OR col3 IN (284,219))) AND (col4 IS NULL) OR col3 < 703)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_551 UNION SELECT pk, col0 FROM view_2_tab3_551
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-2800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE (col3 >= 534) OR col0 >= 193 OR (col3 > 616 OR (col3 IS NULL) AND ((((col3 >= 69)))) OR ((col3 >= 261)) OR (col3 = 585)) OR (((col0 > 990 AND col3 <= 492) OR (col0 = 980) OR col3 IN (284,219))) AND (col4 IS NULL) OR col3 < 703 ) AS tab3_551
----
100 values hashing to d7fd31c3916c207fd3117332326c3f37

query I rowsort label-2800-3
SELECT * FROM view_3_tab3_551
----
100 values hashing to d7fd31c3916c207fd3117332326c3f37

query I rowsort label-2800-3
SELECT pk FROM tab3 WHERE (col3 >= 534) OR col0 >= 193 OR (col3 > 616 OR (col3 IS NULL) AND ((((col3 >= 69)))) OR ((col3 >= 261)) OR (col3 = 585)) OR (((col0 > 990 AND col3 <= 492) OR (col0 = 980) OR col3 IN (284,219))) AND (col4 IS NULL) OR col3 < 703
----
100 values hashing to d7fd31c3916c207fd3117332326c3f37

statement ok
DROP VIEW view_1_tab3_551

statement ok
DROP VIEW view_2_tab3_551

statement ok
DROP VIEW view_3_tab3_551

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_551') DROP VIEW view_1_tab4_551

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_551

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_551') DROP VIEW view_2_tab4_551

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_551

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_551') DROP VIEW view_3_tab4_551

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_551

statement ok
CREATE VIEW view_1_tab4_551 AS SELECT pk, col0 FROM tab4 WHERE (col3 >= 534) OR col0 >= 193 OR (col3 > 616 OR (col3 IS NULL) AND ((((col3 >= 69)))) OR ((col3 >= 261)) OR (col3 = 585)) OR (((col0 > 990 AND col3 <= 492) OR (col0 = 980) OR col3 IN (284,219))) AND (col4 IS NULL) OR col3 < 703

statement ok
CREATE VIEW view_2_tab4_551 AS SELECT pk, col0 FROM tab4 WHERE NOT ((col3 >= 534) OR col0 >= 193 OR (col3 > 616 OR (col3 IS NULL) AND ((((col3 >= 69)))) OR ((col3 >= 261)) OR (col3 = 585)) OR (((col0 > 990 AND col3 <= 492) OR (col0 = 980) OR col3 IN (284,219))) AND (col4 IS NULL) OR col3 < 703)

statement ok
CREATE VIEW view_3_tab4_551 AS SELECT pk FROM view_1_tab4_551

query II rowsort label-2800-1
SELECT pk, col0 FROM tab4 WHERE (col3 >= 534) OR col0 >= 193 OR (col3 > 616 OR (col3 IS NULL) AND ((((col3 >= 69)))) OR ((col3 >= 261)) OR (col3 = 585)) OR (((col0 > 990 AND col3 <= 492) OR (col0 = 980) OR col3 IN (284,219))) AND (col4 IS NULL) OR col3 < 703
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-2800-2
SELECT pk, col0 FROM tab4 WHERE NOT ((col3 >= 534) OR col0 >= 193 OR (col3 > 616 OR (col3 IS NULL) AND ((((col3 >= 69)))) OR ((col3 >= 261)) OR (col3 = 585)) OR (((col0 > 990 AND col3 <= 492) OR (col0 = 980) OR col3 IN (284,219))) AND (col4 IS NULL) OR col3 < 703)
----

query II rowsort label-2800-1
SELECT pk, col0 FROM view_1_tab4_551
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-2800-2
SELECT pk, col0 FROM view_2_tab4_551
----

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col3 >= 534) OR col0 >= 193 OR (col3 > 616 OR (col3 IS NULL) AND ((((col3 >= 69)))) OR ((col3 >= 261)) OR (col3 = 585)) OR (((col0 > 990 AND col3 <= 492) OR (col0 = 980) OR col3 IN (284,219))) AND (col4 IS NULL) OR col3 < 703 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT ((col3 >= 534) OR col0 >= 193 OR (col3 > 616 OR (col3 IS NULL) AND ((((col3 >= 69)))) OR ((col3 >= 261)) OR (col3 = 585)) OR (((col0 > 990 AND col3 <= 492) OR (col0 = 980) OR col3 IN (284,219))) AND (col4 IS NULL) OR col3 < 703)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_551 UNION ALL SELECT pk, col0 FROM view_2_tab4_551
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col3 >= 534) OR col0 >= 193 OR (col3 > 616 OR (col3 IS NULL) AND ((((col3 >= 69)))) OR ((col3 >= 261)) OR (col3 = 585)) OR (((col0 > 990 AND col3 <= 492) OR (col0 = 980) OR col3 IN (284,219))) AND (col4 IS NULL) OR col3 < 703 UNION SELECT pk, col0 FROM tab4 WHERE NOT ((col3 >= 534) OR col0 >= 193 OR (col3 > 616 OR (col3 IS NULL) AND ((((col3 >= 69)))) OR ((col3 >= 261)) OR (col3 = 585)) OR (((col0 > 990 AND col3 <= 492) OR (col0 = 980) OR col3 IN (284,219))) AND (col4 IS NULL) OR col3 < 703)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_551 UNION SELECT pk, col0 FROM view_2_tab4_551
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-2800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE (col3 >= 534) OR col0 >= 193 OR (col3 > 616 OR (col3 IS NULL) AND ((((col3 >= 69)))) OR ((col3 >= 261)) OR (col3 = 585)) OR (((col0 > 990 AND col3 <= 492) OR (col0 = 980) OR col3 IN (284,219))) AND (col4 IS NULL) OR col3 < 703 ) AS tab4_551
----
100 values hashing to d7fd31c3916c207fd3117332326c3f37

query I rowsort label-2800-3
SELECT * FROM view_3_tab4_551
----
100 values hashing to d7fd31c3916c207fd3117332326c3f37

query I rowsort label-2800-3
SELECT pk FROM tab4 WHERE (col3 >= 534) OR col0 >= 193 OR (col3 > 616 OR (col3 IS NULL) AND ((((col3 >= 69)))) OR ((col3 >= 261)) OR (col3 = 585)) OR (((col0 > 990 AND col3 <= 492) OR (col0 = 980) OR col3 IN (284,219))) AND (col4 IS NULL) OR col3 < 703
----
100 values hashing to d7fd31c3916c207fd3117332326c3f37

statement ok
DROP VIEW view_1_tab4_551

statement ok
DROP VIEW view_2_tab4_551

statement ok
DROP VIEW view_3_tab4_551

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_552') DROP VIEW view_1_tab0_552

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_552

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_552') DROP VIEW view_2_tab0_552

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_552

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_552') DROP VIEW view_3_tab0_552

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_552

statement ok
CREATE VIEW view_1_tab0_552 AS SELECT pk, col0 FROM tab0 WHERE (col3 IS NULL AND (col0 >= 558) AND col4 IS NULL AND col3 = 239 OR col0 IS NULL)

statement ok
CREATE VIEW view_2_tab0_552 AS SELECT pk, col0 FROM tab0 WHERE NOT ((col3 IS NULL AND (col0 >= 558) AND col4 IS NULL AND col3 = 239 OR col0 IS NULL))

statement ok
CREATE VIEW view_3_tab0_552 AS SELECT pk FROM view_1_tab0_552

query II rowsort label-2900-1
SELECT pk, col0 FROM tab0 WHERE (col3 IS NULL AND (col0 >= 558) AND col4 IS NULL AND col3 = 239 OR col0 IS NULL)
----

query II rowsort label-2900-2
SELECT pk, col0 FROM tab0 WHERE NOT ((col3 IS NULL AND (col0 >= 558) AND col4 IS NULL AND col3 = 239 OR col0 IS NULL))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-2900-1
SELECT pk, col0 FROM view_1_tab0_552
----

query II rowsort label-2900-2
SELECT pk, col0 FROM view_2_tab0_552
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col3 IS NULL AND (col0 >= 558) AND col4 IS NULL AND col3 = 239 OR col0 IS NULL) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT ((col3 IS NULL AND (col0 >= 558) AND col4 IS NULL AND col3 = 239 OR col0 IS NULL))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_552 UNION ALL SELECT pk, col0 FROM view_2_tab0_552
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col3 IS NULL AND (col0 >= 558) AND col4 IS NULL AND col3 = 239 OR col0 IS NULL) UNION SELECT pk, col0 FROM tab0 WHERE NOT ((col3 IS NULL AND (col0 >= 558) AND col4 IS NULL AND col3 = 239 OR col0 IS NULL))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_552 UNION SELECT pk, col0 FROM view_2_tab0_552
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-2900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE (col3 IS NULL AND (col0 >= 558) AND col4 IS NULL AND col3 = 239 OR col0 IS NULL) ) AS tab0_552
----

query I rowsort label-2900-3
SELECT * FROM view_3_tab0_552
----

query I rowsort label-2900-3
SELECT pk FROM tab0 WHERE (col3 IS NULL AND (col0 >= 558) AND col4 IS NULL AND col3 = 239 OR col0 IS NULL)
----

statement ok
DROP VIEW view_1_tab0_552

statement ok
DROP VIEW view_2_tab0_552

statement ok
DROP VIEW view_3_tab0_552

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_552') DROP VIEW view_1_tab1_552

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_552

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_552') DROP VIEW view_2_tab1_552

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_552

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_552') DROP VIEW view_3_tab1_552

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_552

statement ok
CREATE VIEW view_1_tab1_552 AS SELECT pk, col0 FROM tab1 WHERE (col3 IS NULL AND (col0 >= 558) AND col4 IS NULL AND col3 = 239 OR col0 IS NULL)

statement ok
CREATE VIEW view_2_tab1_552 AS SELECT pk, col0 FROM tab1 WHERE NOT ((col3 IS NULL AND (col0 >= 558) AND col4 IS NULL AND col3 = 239 OR col0 IS NULL))

statement ok
CREATE VIEW view_3_tab1_552 AS SELECT pk FROM view_1_tab1_552

query II rowsort label-2900-1
SELECT pk, col0 FROM tab1 WHERE (col3 IS NULL AND (col0 >= 558) AND col4 IS NULL AND col3 = 239 OR col0 IS NULL)
----

query II rowsort label-2900-2
SELECT pk, col0 FROM tab1 WHERE NOT ((col3 IS NULL AND (col0 >= 558) AND col4 IS NULL AND col3 = 239 OR col0 IS NULL))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-2900-1
SELECT pk, col0 FROM view_1_tab1_552
----

query II rowsort label-2900-2
SELECT pk, col0 FROM view_2_tab1_552
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col3 IS NULL AND (col0 >= 558) AND col4 IS NULL AND col3 = 239 OR col0 IS NULL) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT ((col3 IS NULL AND (col0 >= 558) AND col4 IS NULL AND col3 = 239 OR col0 IS NULL))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_552 UNION ALL SELECT pk, col0 FROM view_2_tab1_552
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col3 IS NULL AND (col0 >= 558) AND col4 IS NULL AND col3 = 239 OR col0 IS NULL) UNION SELECT pk, col0 FROM tab1 WHERE NOT ((col3 IS NULL AND (col0 >= 558) AND col4 IS NULL AND col3 = 239 OR col0 IS NULL))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_552 UNION SELECT pk, col0 FROM view_2_tab1_552
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-2900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE (col3 IS NULL AND (col0 >= 558) AND col4 IS NULL AND col3 = 239 OR col0 IS NULL) ) AS tab1_552
----

query I rowsort label-2900-3
SELECT * FROM view_3_tab1_552
----

query I rowsort label-2900-3
SELECT pk FROM tab1 WHERE (col3 IS NULL AND (col0 >= 558) AND col4 IS NULL AND col3 = 239 OR col0 IS NULL)
----

statement ok
DROP VIEW view_1_tab1_552

statement ok
DROP VIEW view_2_tab1_552

statement ok
DROP VIEW view_3_tab1_552

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_552') DROP VIEW view_1_tab2_552

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_552

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_552') DROP VIEW view_2_tab2_552

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_552

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_552') DROP VIEW view_3_tab2_552

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_552

statement ok
CREATE VIEW view_1_tab2_552 AS SELECT pk, col0 FROM tab2 WHERE (col3 IS NULL AND (col0 >= 558) AND col4 IS NULL AND col3 = 239 OR col0 IS NULL)

statement ok
CREATE VIEW view_2_tab2_552 AS SELECT pk, col0 FROM tab2 WHERE NOT ((col3 IS NULL AND (col0 >= 558) AND col4 IS NULL AND col3 = 239 OR col0 IS NULL))

statement ok
CREATE VIEW view_3_tab2_552 AS SELECT pk FROM view_1_tab2_552

query II rowsort label-2900-1
SELECT pk, col0 FROM tab2 WHERE (col3 IS NULL AND (col0 >= 558) AND col4 IS NULL AND col3 = 239 OR col0 IS NULL)
----

query II rowsort label-2900-2
SELECT pk, col0 FROM tab2 WHERE NOT ((col3 IS NULL AND (col0 >= 558) AND col4 IS NULL AND col3 = 239 OR col0 IS NULL))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-2900-1
SELECT pk, col0 FROM view_1_tab2_552
----

query II rowsort label-2900-2
SELECT pk, col0 FROM view_2_tab2_552
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col3 IS NULL AND (col0 >= 558) AND col4 IS NULL AND col3 = 239 OR col0 IS NULL) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT ((col3 IS NULL AND (col0 >= 558) AND col4 IS NULL AND col3 = 239 OR col0 IS NULL))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_552 UNION ALL SELECT pk, col0 FROM view_2_tab2_552
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col3 IS NULL AND (col0 >= 558) AND col4 IS NULL AND col3 = 239 OR col0 IS NULL) UNION SELECT pk, col0 FROM tab2 WHERE NOT ((col3 IS NULL AND (col0 >= 558) AND col4 IS NULL AND col3 = 239 OR col0 IS NULL))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_552 UNION SELECT pk, col0 FROM view_2_tab2_552
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-2900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE (col3 IS NULL AND (col0 >= 558) AND col4 IS NULL AND col3 = 239 OR col0 IS NULL) ) AS tab2_552
----

query I rowsort label-2900-3
SELECT * FROM view_3_tab2_552
----

query I rowsort label-2900-3
SELECT pk FROM tab2 WHERE (col3 IS NULL AND (col0 >= 558) AND col4 IS NULL AND col3 = 239 OR col0 IS NULL)
----

statement ok
DROP VIEW view_1_tab2_552

statement ok
DROP VIEW view_2_tab2_552

statement ok
DROP VIEW view_3_tab2_552

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_552') DROP VIEW view_1_tab3_552

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_552

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_552') DROP VIEW view_2_tab3_552

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_552

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_552') DROP VIEW view_3_tab3_552

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_552

statement ok
CREATE VIEW view_1_tab3_552 AS SELECT pk, col0 FROM tab3 WHERE (col3 IS NULL AND (col0 >= 558) AND col4 IS NULL AND col3 = 239 OR col0 IS NULL)

statement ok
CREATE VIEW view_2_tab3_552 AS SELECT pk, col0 FROM tab3 WHERE NOT ((col3 IS NULL AND (col0 >= 558) AND col4 IS NULL AND col3 = 239 OR col0 IS NULL))

statement ok
CREATE VIEW view_3_tab3_552 AS SELECT pk FROM view_1_tab3_552

query II rowsort label-2900-1
SELECT pk, col0 FROM tab3 WHERE (col3 IS NULL AND (col0 >= 558) AND col4 IS NULL AND col3 = 239 OR col0 IS NULL)
----

query II rowsort label-2900-2
SELECT pk, col0 FROM tab3 WHERE NOT ((col3 IS NULL AND (col0 >= 558) AND col4 IS NULL AND col3 = 239 OR col0 IS NULL))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-2900-1
SELECT pk, col0 FROM view_1_tab3_552
----

query II rowsort label-2900-2
SELECT pk, col0 FROM view_2_tab3_552
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col3 IS NULL AND (col0 >= 558) AND col4 IS NULL AND col3 = 239 OR col0 IS NULL) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT ((col3 IS NULL AND (col0 >= 558) AND col4 IS NULL AND col3 = 239 OR col0 IS NULL))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_552 UNION ALL SELECT pk, col0 FROM view_2_tab3_552
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col3 IS NULL AND (col0 >= 558) AND col4 IS NULL AND col3 = 239 OR col0 IS NULL) UNION SELECT pk, col0 FROM tab3 WHERE NOT ((col3 IS NULL AND (col0 >= 558) AND col4 IS NULL AND col3 = 239 OR col0 IS NULL))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_552 UNION SELECT pk, col0 FROM view_2_tab3_552
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-2900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE (col3 IS NULL AND (col0 >= 558) AND col4 IS NULL AND col3 = 239 OR col0 IS NULL) ) AS tab3_552
----

query I rowsort label-2900-3
SELECT * FROM view_3_tab3_552
----

query I rowsort label-2900-3
SELECT pk FROM tab3 WHERE (col3 IS NULL AND (col0 >= 558) AND col4 IS NULL AND col3 = 239 OR col0 IS NULL)
----

statement ok
DROP VIEW view_1_tab3_552

statement ok
DROP VIEW view_2_tab3_552

statement ok
DROP VIEW view_3_tab3_552

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_552') DROP VIEW view_1_tab4_552

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_552

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_552') DROP VIEW view_2_tab4_552

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_552

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_552') DROP VIEW view_3_tab4_552

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_552

statement ok
CREATE VIEW view_1_tab4_552 AS SELECT pk, col0 FROM tab4 WHERE (col3 IS NULL AND (col0 >= 558) AND col4 IS NULL AND col3 = 239 OR col0 IS NULL)

statement ok
CREATE VIEW view_2_tab4_552 AS SELECT pk, col0 FROM tab4 WHERE NOT ((col3 IS NULL AND (col0 >= 558) AND col4 IS NULL AND col3 = 239 OR col0 IS NULL))

statement ok
CREATE VIEW view_3_tab4_552 AS SELECT pk FROM view_1_tab4_552

query II rowsort label-2900-1
SELECT pk, col0 FROM tab4 WHERE (col3 IS NULL AND (col0 >= 558) AND col4 IS NULL AND col3 = 239 OR col0 IS NULL)
----

query II rowsort label-2900-2
SELECT pk, col0 FROM tab4 WHERE NOT ((col3 IS NULL AND (col0 >= 558) AND col4 IS NULL AND col3 = 239 OR col0 IS NULL))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-2900-1
SELECT pk, col0 FROM view_1_tab4_552
----

query II rowsort label-2900-2
SELECT pk, col0 FROM view_2_tab4_552
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col3 IS NULL AND (col0 >= 558) AND col4 IS NULL AND col3 = 239 OR col0 IS NULL) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT ((col3 IS NULL AND (col0 >= 558) AND col4 IS NULL AND col3 = 239 OR col0 IS NULL))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_552 UNION ALL SELECT pk, col0 FROM view_2_tab4_552
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col3 IS NULL AND (col0 >= 558) AND col4 IS NULL AND col3 = 239 OR col0 IS NULL) UNION SELECT pk, col0 FROM tab4 WHERE NOT ((col3 IS NULL AND (col0 >= 558) AND col4 IS NULL AND col3 = 239 OR col0 IS NULL))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_552 UNION SELECT pk, col0 FROM view_2_tab4_552
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-2900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE (col3 IS NULL AND (col0 >= 558) AND col4 IS NULL AND col3 = 239 OR col0 IS NULL) ) AS tab4_552
----

query I rowsort label-2900-3
SELECT * FROM view_3_tab4_552
----

query I rowsort label-2900-3
SELECT pk FROM tab4 WHERE (col3 IS NULL AND (col0 >= 558) AND col4 IS NULL AND col3 = 239 OR col0 IS NULL)
----

statement ok
DROP VIEW view_1_tab4_552

statement ok
DROP VIEW view_2_tab4_552

statement ok
DROP VIEW view_3_tab4_552

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_554') DROP VIEW view_1_tab0_554

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_554

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_554') DROP VIEW view_2_tab0_554

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_554

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_554') DROP VIEW view_3_tab0_554

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_554

statement ok
CREATE VIEW view_1_tab0_554 AS SELECT pk, col0 FROM tab0 WHERE col1 < 94.39

statement ok
CREATE VIEW view_2_tab0_554 AS SELECT pk, col0 FROM tab0 WHERE NOT (col1 < 94.39)

statement ok
CREATE VIEW view_3_tab0_554 AS SELECT pk FROM view_1_tab0_554

query II rowsort label-3000-1
SELECT pk, col0 FROM tab0 WHERE col1 < 94.39
----
12 values hashing to 05fd62af9714da5fe493d3c79b178320

query II rowsort label-3000-2
SELECT pk, col0 FROM tab0 WHERE NOT (col1 < 94.39)
----
188 values hashing to 57ebd3afbe82816e81851e36e54718fc

query II rowsort label-3000-1
SELECT pk, col0 FROM view_1_tab0_554
----
12 values hashing to 05fd62af9714da5fe493d3c79b178320

query II rowsort label-3000-2
SELECT pk, col0 FROM view_2_tab0_554
----
188 values hashing to 57ebd3afbe82816e81851e36e54718fc

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col1 < 94.39 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col1 < 94.39)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_554 UNION ALL SELECT pk, col0 FROM view_2_tab0_554
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col1 < 94.39 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col1 < 94.39)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_554 UNION SELECT pk, col0 FROM view_2_tab0_554
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-3000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col1 < 94.39 ) AS tab0_554
----
54
6
67
69
76
88

query I rowsort label-3000-3
SELECT * FROM view_3_tab0_554
----
54
6
67
69
76
88

query I rowsort label-3000-3
SELECT pk FROM tab0 WHERE col1 < 94.39
----
54
6
67
69
76
88

statement ok
DROP VIEW view_1_tab0_554

statement ok
DROP VIEW view_2_tab0_554

statement ok
DROP VIEW view_3_tab0_554

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_554') DROP VIEW view_1_tab1_554

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_554

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_554') DROP VIEW view_2_tab1_554

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_554

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_554') DROP VIEW view_3_tab1_554

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_554

statement ok
CREATE VIEW view_1_tab1_554 AS SELECT pk, col0 FROM tab1 WHERE col1 < 94.39

statement ok
CREATE VIEW view_2_tab1_554 AS SELECT pk, col0 FROM tab1 WHERE NOT (col1 < 94.39)

statement ok
CREATE VIEW view_3_tab1_554 AS SELECT pk FROM view_1_tab1_554

query II rowsort label-3000-1
SELECT pk, col0 FROM tab1 WHERE col1 < 94.39
----
12 values hashing to 05fd62af9714da5fe493d3c79b178320

query II rowsort label-3000-2
SELECT pk, col0 FROM tab1 WHERE NOT (col1 < 94.39)
----
188 values hashing to 57ebd3afbe82816e81851e36e54718fc

query II rowsort label-3000-1
SELECT pk, col0 FROM view_1_tab1_554
----
12 values hashing to 05fd62af9714da5fe493d3c79b178320

query II rowsort label-3000-2
SELECT pk, col0 FROM view_2_tab1_554
----
188 values hashing to 57ebd3afbe82816e81851e36e54718fc

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col1 < 94.39 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col1 < 94.39)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_554 UNION ALL SELECT pk, col0 FROM view_2_tab1_554
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col1 < 94.39 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col1 < 94.39)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_554 UNION SELECT pk, col0 FROM view_2_tab1_554
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-3000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col1 < 94.39 ) AS tab1_554
----
54
6
67
69
76
88

query I rowsort label-3000-3
SELECT * FROM view_3_tab1_554
----
54
6
67
69
76
88

query I rowsort label-3000-3
SELECT pk FROM tab1 WHERE col1 < 94.39
----
54
6
67
69
76
88

statement ok
DROP VIEW view_1_tab1_554

statement ok
DROP VIEW view_2_tab1_554

statement ok
DROP VIEW view_3_tab1_554

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_554') DROP VIEW view_1_tab2_554

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_554

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_554') DROP VIEW view_2_tab2_554

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_554

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_554') DROP VIEW view_3_tab2_554

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_554

statement ok
CREATE VIEW view_1_tab2_554 AS SELECT pk, col0 FROM tab2 WHERE col1 < 94.39

statement ok
CREATE VIEW view_2_tab2_554 AS SELECT pk, col0 FROM tab2 WHERE NOT (col1 < 94.39)

statement ok
CREATE VIEW view_3_tab2_554 AS SELECT pk FROM view_1_tab2_554

query II rowsort label-3000-1
SELECT pk, col0 FROM tab2 WHERE col1 < 94.39
----
12 values hashing to 05fd62af9714da5fe493d3c79b178320

query II rowsort label-3000-2
SELECT pk, col0 FROM tab2 WHERE NOT (col1 < 94.39)
----
188 values hashing to 57ebd3afbe82816e81851e36e54718fc

query II rowsort label-3000-1
SELECT pk, col0 FROM view_1_tab2_554
----
12 values hashing to 05fd62af9714da5fe493d3c79b178320

query II rowsort label-3000-2
SELECT pk, col0 FROM view_2_tab2_554
----
188 values hashing to 57ebd3afbe82816e81851e36e54718fc

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col1 < 94.39 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col1 < 94.39)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_554 UNION ALL SELECT pk, col0 FROM view_2_tab2_554
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col1 < 94.39 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col1 < 94.39)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_554 UNION SELECT pk, col0 FROM view_2_tab2_554
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-3000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col1 < 94.39 ) AS tab2_554
----
54
6
67
69
76
88

query I rowsort label-3000-3
SELECT * FROM view_3_tab2_554
----
54
6
67
69
76
88

query I rowsort label-3000-3
SELECT pk FROM tab2 WHERE col1 < 94.39
----
54
6
67
69
76
88

statement ok
DROP VIEW view_1_tab2_554

statement ok
DROP VIEW view_2_tab2_554

statement ok
DROP VIEW view_3_tab2_554

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_554') DROP VIEW view_1_tab3_554

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_554

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_554') DROP VIEW view_2_tab3_554

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_554

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_554') DROP VIEW view_3_tab3_554

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_554

statement ok
CREATE VIEW view_1_tab3_554 AS SELECT pk, col0 FROM tab3 WHERE col1 < 94.39

statement ok
CREATE VIEW view_2_tab3_554 AS SELECT pk, col0 FROM tab3 WHERE NOT (col1 < 94.39)

statement ok
CREATE VIEW view_3_tab3_554 AS SELECT pk FROM view_1_tab3_554

query II rowsort label-3000-1
SELECT pk, col0 FROM tab3 WHERE col1 < 94.39
----
12 values hashing to 05fd62af9714da5fe493d3c79b178320

query II rowsort label-3000-2
SELECT pk, col0 FROM tab3 WHERE NOT (col1 < 94.39)
----
188 values hashing to 57ebd3afbe82816e81851e36e54718fc

query II rowsort label-3000-1
SELECT pk, col0 FROM view_1_tab3_554
----
12 values hashing to 05fd62af9714da5fe493d3c79b178320

query II rowsort label-3000-2
SELECT pk, col0 FROM view_2_tab3_554
----
188 values hashing to 57ebd3afbe82816e81851e36e54718fc

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col1 < 94.39 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col1 < 94.39)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_554 UNION ALL SELECT pk, col0 FROM view_2_tab3_554
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col1 < 94.39 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col1 < 94.39)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_554 UNION SELECT pk, col0 FROM view_2_tab3_554
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-3000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col1 < 94.39 ) AS tab3_554
----
54
6
67
69
76
88

query I rowsort label-3000-3
SELECT * FROM view_3_tab3_554
----
54
6
67
69
76
88

query I rowsort label-3000-3
SELECT pk FROM tab3 WHERE col1 < 94.39
----
54
6
67
69
76
88

statement ok
DROP VIEW view_1_tab3_554

statement ok
DROP VIEW view_2_tab3_554

statement ok
DROP VIEW view_3_tab3_554

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_554') DROP VIEW view_1_tab4_554

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_554

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_554') DROP VIEW view_2_tab4_554

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_554

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_554') DROP VIEW view_3_tab4_554

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_554

statement ok
CREATE VIEW view_1_tab4_554 AS SELECT pk, col0 FROM tab4 WHERE col1 < 94.39

statement ok
CREATE VIEW view_2_tab4_554 AS SELECT pk, col0 FROM tab4 WHERE NOT (col1 < 94.39)

statement ok
CREATE VIEW view_3_tab4_554 AS SELECT pk FROM view_1_tab4_554

query II rowsort label-3000-1
SELECT pk, col0 FROM tab4 WHERE col1 < 94.39
----
12 values hashing to 05fd62af9714da5fe493d3c79b178320

query II rowsort label-3000-2
SELECT pk, col0 FROM tab4 WHERE NOT (col1 < 94.39)
----
188 values hashing to 57ebd3afbe82816e81851e36e54718fc

query II rowsort label-3000-1
SELECT pk, col0 FROM view_1_tab4_554
----
12 values hashing to 05fd62af9714da5fe493d3c79b178320

query II rowsort label-3000-2
SELECT pk, col0 FROM view_2_tab4_554
----
188 values hashing to 57ebd3afbe82816e81851e36e54718fc

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col1 < 94.39 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col1 < 94.39)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_554 UNION ALL SELECT pk, col0 FROM view_2_tab4_554
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col1 < 94.39 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col1 < 94.39)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_554 UNION SELECT pk, col0 FROM view_2_tab4_554
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-3000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col1 < 94.39 ) AS tab4_554
----
54
6
67
69
76
88

query I rowsort label-3000-3
SELECT * FROM view_3_tab4_554
----
54
6
67
69
76
88

query I rowsort label-3000-3
SELECT pk FROM tab4 WHERE col1 < 94.39
----
54
6
67
69
76
88

statement ok
DROP VIEW view_1_tab4_554

statement ok
DROP VIEW view_2_tab4_554

statement ok
DROP VIEW view_3_tab4_554

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_555') DROP VIEW view_1_tab0_555

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_555

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_555') DROP VIEW view_2_tab0_555

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_555

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_555') DROP VIEW view_3_tab0_555

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_555

statement ok
CREATE VIEW view_1_tab0_555 AS SELECT pk, col0 FROM tab0 WHERE ((col1 >= 570.11 AND (col3 <= 158))) OR col1 >= 228.8 AND col3 = 339 OR col3 < 871 OR col4 >= 931.63 OR ((col3 > 5)) AND col4 > 169.64

statement ok
CREATE VIEW view_2_tab0_555 AS SELECT pk, col0 FROM tab0 WHERE NOT (((col1 >= 570.11 AND (col3 <= 158))) OR col1 >= 228.8 AND col3 = 339 OR col3 < 871 OR col4 >= 931.63 OR ((col3 > 5)) AND col4 > 169.64)

statement ok
CREATE VIEW view_3_tab0_555 AS SELECT pk FROM view_1_tab0_555

query II rowsort label-3100-1
SELECT pk, col0 FROM tab0 WHERE ((col1 >= 570.11 AND (col3 <= 158))) OR col1 >= 228.8 AND col3 = 339 OR col3 < 871 OR col4 >= 931.63 OR ((col3 > 5)) AND col4 > 169.64
----
198 values hashing to aee9f4216b52c7facb87a2dba211336f

query II rowsort label-3100-2
SELECT pk, col0 FROM tab0 WHERE NOT (((col1 >= 570.11 AND (col3 <= 158))) OR col1 >= 228.8 AND col3 = 339 OR col3 < 871 OR col4 >= 931.63 OR ((col3 > 5)) AND col4 > 169.64)
----
82
230

query II rowsort label-3100-1
SELECT pk, col0 FROM view_1_tab0_555
----
198 values hashing to aee9f4216b52c7facb87a2dba211336f

query II rowsort label-3100-2
SELECT pk, col0 FROM view_2_tab0_555
----
82
230

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE ((col1 >= 570.11 AND (col3 <= 158))) OR col1 >= 228.8 AND col3 = 339 OR col3 < 871 OR col4 >= 931.63 OR ((col3 > 5)) AND col4 > 169.64 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (((col1 >= 570.11 AND (col3 <= 158))) OR col1 >= 228.8 AND col3 = 339 OR col3 < 871 OR col4 >= 931.63 OR ((col3 > 5)) AND col4 > 169.64)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_555 UNION ALL SELECT pk, col0 FROM view_2_tab0_555
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE ((col1 >= 570.11 AND (col3 <= 158))) OR col1 >= 228.8 AND col3 = 339 OR col3 < 871 OR col4 >= 931.63 OR ((col3 > 5)) AND col4 > 169.64 UNION SELECT pk, col0 FROM tab0 WHERE NOT (((col1 >= 570.11 AND (col3 <= 158))) OR col1 >= 228.8 AND col3 = 339 OR col3 < 871 OR col4 >= 931.63 OR ((col3 > 5)) AND col4 > 169.64)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_555 UNION SELECT pk, col0 FROM view_2_tab0_555
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-3100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE ((col1 >= 570.11 AND (col3 <= 158))) OR col1 >= 228.8 AND col3 = 339 OR col3 < 871 OR col4 >= 931.63 OR ((col3 > 5)) AND col4 > 169.64 ) AS tab0_555
----
99 values hashing to 59f386e277e147a6435c2b3d1c98c7a8

query I rowsort label-3100-3
SELECT * FROM view_3_tab0_555
----
99 values hashing to 59f386e277e147a6435c2b3d1c98c7a8

query I rowsort label-3100-3
SELECT pk FROM tab0 WHERE ((col1 >= 570.11 AND (col3 <= 158))) OR col1 >= 228.8 AND col3 = 339 OR col3 < 871 OR col4 >= 931.63 OR ((col3 > 5)) AND col4 > 169.64
----
99 values hashing to 59f386e277e147a6435c2b3d1c98c7a8

statement ok
DROP VIEW view_1_tab0_555

statement ok
DROP VIEW view_2_tab0_555

statement ok
DROP VIEW view_3_tab0_555

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_555') DROP VIEW view_1_tab1_555

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_555

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_555') DROP VIEW view_2_tab1_555

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_555

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_555') DROP VIEW view_3_tab1_555

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_555

statement ok
CREATE VIEW view_1_tab1_555 AS SELECT pk, col0 FROM tab1 WHERE ((col1 >= 570.11 AND (col3 <= 158))) OR col1 >= 228.8 AND col3 = 339 OR col3 < 871 OR col4 >= 931.63 OR ((col3 > 5)) AND col4 > 169.64

statement ok
CREATE VIEW view_2_tab1_555 AS SELECT pk, col0 FROM tab1 WHERE NOT (((col1 >= 570.11 AND (col3 <= 158))) OR col1 >= 228.8 AND col3 = 339 OR col3 < 871 OR col4 >= 931.63 OR ((col3 > 5)) AND col4 > 169.64)

statement ok
CREATE VIEW view_3_tab1_555 AS SELECT pk FROM view_1_tab1_555

query II rowsort label-3100-1
SELECT pk, col0 FROM tab1 WHERE ((col1 >= 570.11 AND (col3 <= 158))) OR col1 >= 228.8 AND col3 = 339 OR col3 < 871 OR col4 >= 931.63 OR ((col3 > 5)) AND col4 > 169.64
----
198 values hashing to aee9f4216b52c7facb87a2dba211336f

query II rowsort label-3100-2
SELECT pk, col0 FROM tab1 WHERE NOT (((col1 >= 570.11 AND (col3 <= 158))) OR col1 >= 228.8 AND col3 = 339 OR col3 < 871 OR col4 >= 931.63 OR ((col3 > 5)) AND col4 > 169.64)
----
82
230

query II rowsort label-3100-1
SELECT pk, col0 FROM view_1_tab1_555
----
198 values hashing to aee9f4216b52c7facb87a2dba211336f

query II rowsort label-3100-2
SELECT pk, col0 FROM view_2_tab1_555
----
82
230

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE ((col1 >= 570.11 AND (col3 <= 158))) OR col1 >= 228.8 AND col3 = 339 OR col3 < 871 OR col4 >= 931.63 OR ((col3 > 5)) AND col4 > 169.64 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (((col1 >= 570.11 AND (col3 <= 158))) OR col1 >= 228.8 AND col3 = 339 OR col3 < 871 OR col4 >= 931.63 OR ((col3 > 5)) AND col4 > 169.64)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_555 UNION ALL SELECT pk, col0 FROM view_2_tab1_555
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE ((col1 >= 570.11 AND (col3 <= 158))) OR col1 >= 228.8 AND col3 = 339 OR col3 < 871 OR col4 >= 931.63 OR ((col3 > 5)) AND col4 > 169.64 UNION SELECT pk, col0 FROM tab1 WHERE NOT (((col1 >= 570.11 AND (col3 <= 158))) OR col1 >= 228.8 AND col3 = 339 OR col3 < 871 OR col4 >= 931.63 OR ((col3 > 5)) AND col4 > 169.64)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_555 UNION SELECT pk, col0 FROM view_2_tab1_555
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-3100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE ((col1 >= 570.11 AND (col3 <= 158))) OR col1 >= 228.8 AND col3 = 339 OR col3 < 871 OR col4 >= 931.63 OR ((col3 > 5)) AND col4 > 169.64 ) AS tab1_555
----
99 values hashing to 59f386e277e147a6435c2b3d1c98c7a8

query I rowsort label-3100-3
SELECT * FROM view_3_tab1_555
----
99 values hashing to 59f386e277e147a6435c2b3d1c98c7a8

query I rowsort label-3100-3
SELECT pk FROM tab1 WHERE ((col1 >= 570.11 AND (col3 <= 158))) OR col1 >= 228.8 AND col3 = 339 OR col3 < 871 OR col4 >= 931.63 OR ((col3 > 5)) AND col4 > 169.64
----
99 values hashing to 59f386e277e147a6435c2b3d1c98c7a8

statement ok
DROP VIEW view_1_tab1_555

statement ok
DROP VIEW view_2_tab1_555

statement ok
DROP VIEW view_3_tab1_555

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_555') DROP VIEW view_1_tab2_555

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_555

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_555') DROP VIEW view_2_tab2_555

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_555

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_555') DROP VIEW view_3_tab2_555

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_555

statement ok
CREATE VIEW view_1_tab2_555 AS SELECT pk, col0 FROM tab2 WHERE ((col1 >= 570.11 AND (col3 <= 158))) OR col1 >= 228.8 AND col3 = 339 OR col3 < 871 OR col4 >= 931.63 OR ((col3 > 5)) AND col4 > 169.64

statement ok
CREATE VIEW view_2_tab2_555 AS SELECT pk, col0 FROM tab2 WHERE NOT (((col1 >= 570.11 AND (col3 <= 158))) OR col1 >= 228.8 AND col3 = 339 OR col3 < 871 OR col4 >= 931.63 OR ((col3 > 5)) AND col4 > 169.64)

statement ok
CREATE VIEW view_3_tab2_555 AS SELECT pk FROM view_1_tab2_555

query II rowsort label-3100-1
SELECT pk, col0 FROM tab2 WHERE ((col1 >= 570.11 AND (col3 <= 158))) OR col1 >= 228.8 AND col3 = 339 OR col3 < 871 OR col4 >= 931.63 OR ((col3 > 5)) AND col4 > 169.64
----
198 values hashing to aee9f4216b52c7facb87a2dba211336f

query II rowsort label-3100-2
SELECT pk, col0 FROM tab2 WHERE NOT (((col1 >= 570.11 AND (col3 <= 158))) OR col1 >= 228.8 AND col3 = 339 OR col3 < 871 OR col4 >= 931.63 OR ((col3 > 5)) AND col4 > 169.64)
----
82
230

query II rowsort label-3100-1
SELECT pk, col0 FROM view_1_tab2_555
----
198 values hashing to aee9f4216b52c7facb87a2dba211336f

query II rowsort label-3100-2
SELECT pk, col0 FROM view_2_tab2_555
----
82
230

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE ((col1 >= 570.11 AND (col3 <= 158))) OR col1 >= 228.8 AND col3 = 339 OR col3 < 871 OR col4 >= 931.63 OR ((col3 > 5)) AND col4 > 169.64 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (((col1 >= 570.11 AND (col3 <= 158))) OR col1 >= 228.8 AND col3 = 339 OR col3 < 871 OR col4 >= 931.63 OR ((col3 > 5)) AND col4 > 169.64)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_555 UNION ALL SELECT pk, col0 FROM view_2_tab2_555
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE ((col1 >= 570.11 AND (col3 <= 158))) OR col1 >= 228.8 AND col3 = 339 OR col3 < 871 OR col4 >= 931.63 OR ((col3 > 5)) AND col4 > 169.64 UNION SELECT pk, col0 FROM tab2 WHERE NOT (((col1 >= 570.11 AND (col3 <= 158))) OR col1 >= 228.8 AND col3 = 339 OR col3 < 871 OR col4 >= 931.63 OR ((col3 > 5)) AND col4 > 169.64)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_555 UNION SELECT pk, col0 FROM view_2_tab2_555
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-3100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE ((col1 >= 570.11 AND (col3 <= 158))) OR col1 >= 228.8 AND col3 = 339 OR col3 < 871 OR col4 >= 931.63 OR ((col3 > 5)) AND col4 > 169.64 ) AS tab2_555
----
99 values hashing to 59f386e277e147a6435c2b3d1c98c7a8

query I rowsort label-3100-3
SELECT * FROM view_3_tab2_555
----
99 values hashing to 59f386e277e147a6435c2b3d1c98c7a8

query I rowsort label-3100-3
SELECT pk FROM tab2 WHERE ((col1 >= 570.11 AND (col3 <= 158))) OR col1 >= 228.8 AND col3 = 339 OR col3 < 871 OR col4 >= 931.63 OR ((col3 > 5)) AND col4 > 169.64
----
99 values hashing to 59f386e277e147a6435c2b3d1c98c7a8

statement ok
DROP VIEW view_1_tab2_555

statement ok
DROP VIEW view_2_tab2_555

statement ok
DROP VIEW view_3_tab2_555

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_555') DROP VIEW view_1_tab3_555

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_555

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_555') DROP VIEW view_2_tab3_555

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_555

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_555') DROP VIEW view_3_tab3_555

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_555

statement ok
CREATE VIEW view_1_tab3_555 AS SELECT pk, col0 FROM tab3 WHERE ((col1 >= 570.11 AND (col3 <= 158))) OR col1 >= 228.8 AND col3 = 339 OR col3 < 871 OR col4 >= 931.63 OR ((col3 > 5)) AND col4 > 169.64

statement ok
CREATE VIEW view_2_tab3_555 AS SELECT pk, col0 FROM tab3 WHERE NOT (((col1 >= 570.11 AND (col3 <= 158))) OR col1 >= 228.8 AND col3 = 339 OR col3 < 871 OR col4 >= 931.63 OR ((col3 > 5)) AND col4 > 169.64)

statement ok
CREATE VIEW view_3_tab3_555 AS SELECT pk FROM view_1_tab3_555

query II rowsort label-3100-1
SELECT pk, col0 FROM tab3 WHERE ((col1 >= 570.11 AND (col3 <= 158))) OR col1 >= 228.8 AND col3 = 339 OR col3 < 871 OR col4 >= 931.63 OR ((col3 > 5)) AND col4 > 169.64
----
198 values hashing to aee9f4216b52c7facb87a2dba211336f

query II rowsort label-3100-2
SELECT pk, col0 FROM tab3 WHERE NOT (((col1 >= 570.11 AND (col3 <= 158))) OR col1 >= 228.8 AND col3 = 339 OR col3 < 871 OR col4 >= 931.63 OR ((col3 > 5)) AND col4 > 169.64)
----
82
230

query II rowsort label-3100-1
SELECT pk, col0 FROM view_1_tab3_555
----
198 values hashing to aee9f4216b52c7facb87a2dba211336f

query II rowsort label-3100-2
SELECT pk, col0 FROM view_2_tab3_555
----
82
230

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE ((col1 >= 570.11 AND (col3 <= 158))) OR col1 >= 228.8 AND col3 = 339 OR col3 < 871 OR col4 >= 931.63 OR ((col3 > 5)) AND col4 > 169.64 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (((col1 >= 570.11 AND (col3 <= 158))) OR col1 >= 228.8 AND col3 = 339 OR col3 < 871 OR col4 >= 931.63 OR ((col3 > 5)) AND col4 > 169.64)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_555 UNION ALL SELECT pk, col0 FROM view_2_tab3_555
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE ((col1 >= 570.11 AND (col3 <= 158))) OR col1 >= 228.8 AND col3 = 339 OR col3 < 871 OR col4 >= 931.63 OR ((col3 > 5)) AND col4 > 169.64 UNION SELECT pk, col0 FROM tab3 WHERE NOT (((col1 >= 570.11 AND (col3 <= 158))) OR col1 >= 228.8 AND col3 = 339 OR col3 < 871 OR col4 >= 931.63 OR ((col3 > 5)) AND col4 > 169.64)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_555 UNION SELECT pk, col0 FROM view_2_tab3_555
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-3100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE ((col1 >= 570.11 AND (col3 <= 158))) OR col1 >= 228.8 AND col3 = 339 OR col3 < 871 OR col4 >= 931.63 OR ((col3 > 5)) AND col4 > 169.64 ) AS tab3_555
----
99 values hashing to 59f386e277e147a6435c2b3d1c98c7a8

query I rowsort label-3100-3
SELECT * FROM view_3_tab3_555
----
99 values hashing to 59f386e277e147a6435c2b3d1c98c7a8

query I rowsort label-3100-3
SELECT pk FROM tab3 WHERE ((col1 >= 570.11 AND (col3 <= 158))) OR col1 >= 228.8 AND col3 = 339 OR col3 < 871 OR col4 >= 931.63 OR ((col3 > 5)) AND col4 > 169.64
----
99 values hashing to 59f386e277e147a6435c2b3d1c98c7a8

statement ok
DROP VIEW view_1_tab3_555

statement ok
DROP VIEW view_2_tab3_555

statement ok
DROP VIEW view_3_tab3_555

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_555') DROP VIEW view_1_tab4_555

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_555

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_555') DROP VIEW view_2_tab4_555

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_555

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_555') DROP VIEW view_3_tab4_555

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_555

statement ok
CREATE VIEW view_1_tab4_555 AS SELECT pk, col0 FROM tab4 WHERE ((col1 >= 570.11 AND (col3 <= 158))) OR col1 >= 228.8 AND col3 = 339 OR col3 < 871 OR col4 >= 931.63 OR ((col3 > 5)) AND col4 > 169.64

statement ok
CREATE VIEW view_2_tab4_555 AS SELECT pk, col0 FROM tab4 WHERE NOT (((col1 >= 570.11 AND (col3 <= 158))) OR col1 >= 228.8 AND col3 = 339 OR col3 < 871 OR col4 >= 931.63 OR ((col3 > 5)) AND col4 > 169.64)

statement ok
CREATE VIEW view_3_tab4_555 AS SELECT pk FROM view_1_tab4_555

query II rowsort label-3100-1
SELECT pk, col0 FROM tab4 WHERE ((col1 >= 570.11 AND (col3 <= 158))) OR col1 >= 228.8 AND col3 = 339 OR col3 < 871 OR col4 >= 931.63 OR ((col3 > 5)) AND col4 > 169.64
----
198 values hashing to aee9f4216b52c7facb87a2dba211336f

query II rowsort label-3100-2
SELECT pk, col0 FROM tab4 WHERE NOT (((col1 >= 570.11 AND (col3 <= 158))) OR col1 >= 228.8 AND col3 = 339 OR col3 < 871 OR col4 >= 931.63 OR ((col3 > 5)) AND col4 > 169.64)
----
82
230

query II rowsort label-3100-1
SELECT pk, col0 FROM view_1_tab4_555
----
198 values hashing to aee9f4216b52c7facb87a2dba211336f

query II rowsort label-3100-2
SELECT pk, col0 FROM view_2_tab4_555
----
82
230

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE ((col1 >= 570.11 AND (col3 <= 158))) OR col1 >= 228.8 AND col3 = 339 OR col3 < 871 OR col4 >= 931.63 OR ((col3 > 5)) AND col4 > 169.64 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (((col1 >= 570.11 AND (col3 <= 158))) OR col1 >= 228.8 AND col3 = 339 OR col3 < 871 OR col4 >= 931.63 OR ((col3 > 5)) AND col4 > 169.64)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_555 UNION ALL SELECT pk, col0 FROM view_2_tab4_555
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE ((col1 >= 570.11 AND (col3 <= 158))) OR col1 >= 228.8 AND col3 = 339 OR col3 < 871 OR col4 >= 931.63 OR ((col3 > 5)) AND col4 > 169.64 UNION SELECT pk, col0 FROM tab4 WHERE NOT (((col1 >= 570.11 AND (col3 <= 158))) OR col1 >= 228.8 AND col3 = 339 OR col3 < 871 OR col4 >= 931.63 OR ((col3 > 5)) AND col4 > 169.64)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_555 UNION SELECT pk, col0 FROM view_2_tab4_555
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-3100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE ((col1 >= 570.11 AND (col3 <= 158))) OR col1 >= 228.8 AND col3 = 339 OR col3 < 871 OR col4 >= 931.63 OR ((col3 > 5)) AND col4 > 169.64 ) AS tab4_555
----
99 values hashing to 59f386e277e147a6435c2b3d1c98c7a8

query I rowsort label-3100-3
SELECT * FROM view_3_tab4_555
----
99 values hashing to 59f386e277e147a6435c2b3d1c98c7a8

query I rowsort label-3100-3
SELECT pk FROM tab4 WHERE ((col1 >= 570.11 AND (col3 <= 158))) OR col1 >= 228.8 AND col3 = 339 OR col3 < 871 OR col4 >= 931.63 OR ((col3 > 5)) AND col4 > 169.64
----
99 values hashing to 59f386e277e147a6435c2b3d1c98c7a8

statement ok
DROP VIEW view_1_tab4_555

statement ok
DROP VIEW view_2_tab4_555

statement ok
DROP VIEW view_3_tab4_555

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_556') DROP VIEW view_1_tab0_556

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_556

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_556') DROP VIEW view_2_tab0_556

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_556

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_556') DROP VIEW view_3_tab0_556

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_556

statement ok
CREATE VIEW view_1_tab0_556 AS SELECT pk, col0 FROM tab0 WHERE col3 BETWEEN 132 AND 850

statement ok
CREATE VIEW view_2_tab0_556 AS SELECT pk, col0 FROM tab0 WHERE NOT (col3 BETWEEN 132 AND 850)

statement ok
CREATE VIEW view_3_tab0_556 AS SELECT pk FROM view_1_tab0_556

query II rowsort label-3200-1
SELECT pk, col0 FROM tab0 WHERE col3 BETWEEN 132 AND 850
----
144 values hashing to b4493243c61805eb9dde7f1c2f51144d

query II rowsort label-3200-2
SELECT pk, col0 FROM tab0 WHERE NOT (col3 BETWEEN 132 AND 850)
----
56 values hashing to 6494a6f9ae4f49995368e4f17cc6e222

query II rowsort label-3200-1
SELECT pk, col0 FROM view_1_tab0_556
----
144 values hashing to b4493243c61805eb9dde7f1c2f51144d

query II rowsort label-3200-2
SELECT pk, col0 FROM view_2_tab0_556
----
56 values hashing to 6494a6f9ae4f49995368e4f17cc6e222

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 BETWEEN 132 AND 850 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col3 BETWEEN 132 AND 850)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_556 UNION ALL SELECT pk, col0 FROM view_2_tab0_556
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 BETWEEN 132 AND 850 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col3 BETWEEN 132 AND 850)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_556 UNION SELECT pk, col0 FROM view_2_tab0_556
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-3200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col3 BETWEEN 132 AND 850 ) AS tab0_556
----
72 values hashing to d0ff4be1066638ae0098d9d00e778944

query I rowsort label-3200-3
SELECT * FROM view_3_tab0_556
----
72 values hashing to d0ff4be1066638ae0098d9d00e778944

query I rowsort label-3200-3
SELECT pk FROM tab0 WHERE col3 BETWEEN 132 AND 850
----
72 values hashing to d0ff4be1066638ae0098d9d00e778944

statement ok
DROP VIEW view_1_tab0_556

statement ok
DROP VIEW view_2_tab0_556

statement ok
DROP VIEW view_3_tab0_556

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_556') DROP VIEW view_1_tab1_556

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_556

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_556') DROP VIEW view_2_tab1_556

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_556

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_556') DROP VIEW view_3_tab1_556

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_556

statement ok
CREATE VIEW view_1_tab1_556 AS SELECT pk, col0 FROM tab1 WHERE col3 BETWEEN 132 AND 850

statement ok
CREATE VIEW view_2_tab1_556 AS SELECT pk, col0 FROM tab1 WHERE NOT (col3 BETWEEN 132 AND 850)

statement ok
CREATE VIEW view_3_tab1_556 AS SELECT pk FROM view_1_tab1_556

query II rowsort label-3200-1
SELECT pk, col0 FROM tab1 WHERE col3 BETWEEN 132 AND 850
----
144 values hashing to b4493243c61805eb9dde7f1c2f51144d

query II rowsort label-3200-2
SELECT pk, col0 FROM tab1 WHERE NOT (col3 BETWEEN 132 AND 850)
----
56 values hashing to 6494a6f9ae4f49995368e4f17cc6e222

query II rowsort label-3200-1
SELECT pk, col0 FROM view_1_tab1_556
----
144 values hashing to b4493243c61805eb9dde7f1c2f51144d

query II rowsort label-3200-2
SELECT pk, col0 FROM view_2_tab1_556
----
56 values hashing to 6494a6f9ae4f49995368e4f17cc6e222

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 BETWEEN 132 AND 850 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col3 BETWEEN 132 AND 850)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_556 UNION ALL SELECT pk, col0 FROM view_2_tab1_556
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 BETWEEN 132 AND 850 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col3 BETWEEN 132 AND 850)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_556 UNION SELECT pk, col0 FROM view_2_tab1_556
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-3200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col3 BETWEEN 132 AND 850 ) AS tab1_556
----
72 values hashing to d0ff4be1066638ae0098d9d00e778944

query I rowsort label-3200-3
SELECT * FROM view_3_tab1_556
----
72 values hashing to d0ff4be1066638ae0098d9d00e778944

query I rowsort label-3200-3
SELECT pk FROM tab1 WHERE col3 BETWEEN 132 AND 850
----
72 values hashing to d0ff4be1066638ae0098d9d00e778944

statement ok
DROP VIEW view_1_tab1_556

statement ok
DROP VIEW view_2_tab1_556

statement ok
DROP VIEW view_3_tab1_556

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_556') DROP VIEW view_1_tab2_556

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_556

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_556') DROP VIEW view_2_tab2_556

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_556

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_556') DROP VIEW view_3_tab2_556

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_556

statement ok
CREATE VIEW view_1_tab2_556 AS SELECT pk, col0 FROM tab2 WHERE col3 BETWEEN 132 AND 850

statement ok
CREATE VIEW view_2_tab2_556 AS SELECT pk, col0 FROM tab2 WHERE NOT (col3 BETWEEN 132 AND 850)

statement ok
CREATE VIEW view_3_tab2_556 AS SELECT pk FROM view_1_tab2_556

query II rowsort label-3200-1
SELECT pk, col0 FROM tab2 WHERE col3 BETWEEN 132 AND 850
----
144 values hashing to b4493243c61805eb9dde7f1c2f51144d

query II rowsort label-3200-2
SELECT pk, col0 FROM tab2 WHERE NOT (col3 BETWEEN 132 AND 850)
----
56 values hashing to 6494a6f9ae4f49995368e4f17cc6e222

query II rowsort label-3200-1
SELECT pk, col0 FROM view_1_tab2_556
----
144 values hashing to b4493243c61805eb9dde7f1c2f51144d

query II rowsort label-3200-2
SELECT pk, col0 FROM view_2_tab2_556
----
56 values hashing to 6494a6f9ae4f49995368e4f17cc6e222

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 BETWEEN 132 AND 850 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col3 BETWEEN 132 AND 850)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_556 UNION ALL SELECT pk, col0 FROM view_2_tab2_556
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 BETWEEN 132 AND 850 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col3 BETWEEN 132 AND 850)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_556 UNION SELECT pk, col0 FROM view_2_tab2_556
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-3200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col3 BETWEEN 132 AND 850 ) AS tab2_556
----
72 values hashing to d0ff4be1066638ae0098d9d00e778944

query I rowsort label-3200-3
SELECT * FROM view_3_tab2_556
----
72 values hashing to d0ff4be1066638ae0098d9d00e778944

query I rowsort label-3200-3
SELECT pk FROM tab2 WHERE col3 BETWEEN 132 AND 850
----
72 values hashing to d0ff4be1066638ae0098d9d00e778944

statement ok
DROP VIEW view_1_tab2_556

statement ok
DROP VIEW view_2_tab2_556

statement ok
DROP VIEW view_3_tab2_556

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_556') DROP VIEW view_1_tab3_556

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_556

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_556') DROP VIEW view_2_tab3_556

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_556

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_556') DROP VIEW view_3_tab3_556

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_556

statement ok
CREATE VIEW view_1_tab3_556 AS SELECT pk, col0 FROM tab3 WHERE col3 BETWEEN 132 AND 850

statement ok
CREATE VIEW view_2_tab3_556 AS SELECT pk, col0 FROM tab3 WHERE NOT (col3 BETWEEN 132 AND 850)

statement ok
CREATE VIEW view_3_tab3_556 AS SELECT pk FROM view_1_tab3_556

query II rowsort label-3200-1
SELECT pk, col0 FROM tab3 WHERE col3 BETWEEN 132 AND 850
----
144 values hashing to b4493243c61805eb9dde7f1c2f51144d

query II rowsort label-3200-2
SELECT pk, col0 FROM tab3 WHERE NOT (col3 BETWEEN 132 AND 850)
----
56 values hashing to 6494a6f9ae4f49995368e4f17cc6e222

query II rowsort label-3200-1
SELECT pk, col0 FROM view_1_tab3_556
----
144 values hashing to b4493243c61805eb9dde7f1c2f51144d

query II rowsort label-3200-2
SELECT pk, col0 FROM view_2_tab3_556
----
56 values hashing to 6494a6f9ae4f49995368e4f17cc6e222

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 BETWEEN 132 AND 850 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col3 BETWEEN 132 AND 850)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_556 UNION ALL SELECT pk, col0 FROM view_2_tab3_556
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 BETWEEN 132 AND 850 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col3 BETWEEN 132 AND 850)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_556 UNION SELECT pk, col0 FROM view_2_tab3_556
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-3200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col3 BETWEEN 132 AND 850 ) AS tab3_556
----
72 values hashing to d0ff4be1066638ae0098d9d00e778944

query I rowsort label-3200-3
SELECT * FROM view_3_tab3_556
----
72 values hashing to d0ff4be1066638ae0098d9d00e778944

query I rowsort label-3200-3
SELECT pk FROM tab3 WHERE col3 BETWEEN 132 AND 850
----
72 values hashing to d0ff4be1066638ae0098d9d00e778944

statement ok
DROP VIEW view_1_tab3_556

statement ok
DROP VIEW view_2_tab3_556

statement ok
DROP VIEW view_3_tab3_556

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_556') DROP VIEW view_1_tab4_556

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_556

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_556') DROP VIEW view_2_tab4_556

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_556

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_556') DROP VIEW view_3_tab4_556

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_556

statement ok
CREATE VIEW view_1_tab4_556 AS SELECT pk, col0 FROM tab4 WHERE col3 BETWEEN 132 AND 850

statement ok
CREATE VIEW view_2_tab4_556 AS SELECT pk, col0 FROM tab4 WHERE NOT (col3 BETWEEN 132 AND 850)

statement ok
CREATE VIEW view_3_tab4_556 AS SELECT pk FROM view_1_tab4_556

query II rowsort label-3200-1
SELECT pk, col0 FROM tab4 WHERE col3 BETWEEN 132 AND 850
----
144 values hashing to b4493243c61805eb9dde7f1c2f51144d

query II rowsort label-3200-2
SELECT pk, col0 FROM tab4 WHERE NOT (col3 BETWEEN 132 AND 850)
----
56 values hashing to 6494a6f9ae4f49995368e4f17cc6e222

query II rowsort label-3200-1
SELECT pk, col0 FROM view_1_tab4_556
----
144 values hashing to b4493243c61805eb9dde7f1c2f51144d

query II rowsort label-3200-2
SELECT pk, col0 FROM view_2_tab4_556
----
56 values hashing to 6494a6f9ae4f49995368e4f17cc6e222

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 BETWEEN 132 AND 850 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col3 BETWEEN 132 AND 850)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_556 UNION ALL SELECT pk, col0 FROM view_2_tab4_556
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 BETWEEN 132 AND 850 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col3 BETWEEN 132 AND 850)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_556 UNION SELECT pk, col0 FROM view_2_tab4_556
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-3200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col3 BETWEEN 132 AND 850 ) AS tab4_556
----
72 values hashing to d0ff4be1066638ae0098d9d00e778944

query I rowsort label-3200-3
SELECT * FROM view_3_tab4_556
----
72 values hashing to d0ff4be1066638ae0098d9d00e778944

query I rowsort label-3200-3
SELECT pk FROM tab4 WHERE col3 BETWEEN 132 AND 850
----
72 values hashing to d0ff4be1066638ae0098d9d00e778944

statement ok
DROP VIEW view_1_tab4_556

statement ok
DROP VIEW view_2_tab4_556

statement ok
DROP VIEW view_3_tab4_556

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_557') DROP VIEW view_1_tab0_557

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_557

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_557') DROP VIEW view_2_tab0_557

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_557

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_557') DROP VIEW view_3_tab0_557

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_557

statement ok
CREATE VIEW view_1_tab0_557 AS SELECT pk, col0 FROM tab0 WHERE (((col3 > 799)))

statement ok
CREATE VIEW view_2_tab0_557 AS SELECT pk, col0 FROM tab0 WHERE NOT ((((col3 > 799))))

statement ok
CREATE VIEW view_3_tab0_557 AS SELECT pk FROM view_1_tab0_557

query II rowsort label-3300-1
SELECT pk, col0 FROM tab0 WHERE (((col3 > 799)))
----
40 values hashing to cb552750aa1e268a18af755b1f67f64c

query II rowsort label-3300-2
SELECT pk, col0 FROM tab0 WHERE NOT ((((col3 > 799))))
----
160 values hashing to ce8d8f0acaba68fe6665b790d24af99c

query II rowsort label-3300-1
SELECT pk, col0 FROM view_1_tab0_557
----
40 values hashing to cb552750aa1e268a18af755b1f67f64c

query II rowsort label-3300-2
SELECT pk, col0 FROM view_2_tab0_557
----
160 values hashing to ce8d8f0acaba68fe6665b790d24af99c

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (((col3 > 799))) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT ((((col3 > 799))))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_557 UNION ALL SELECT pk, col0 FROM view_2_tab0_557
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (((col3 > 799))) UNION SELECT pk, col0 FROM tab0 WHERE NOT ((((col3 > 799))))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_557 UNION SELECT pk, col0 FROM view_2_tab0_557
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-3300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE (((col3 > 799))) ) AS tab0_557
----
20 values hashing to 579257c89a104be8ca2d7a211b4075e6

query I rowsort label-3300-3
SELECT * FROM view_3_tab0_557
----
20 values hashing to 579257c89a104be8ca2d7a211b4075e6

query I rowsort label-3300-3
SELECT pk FROM tab0 WHERE (((col3 > 799)))
----
20 values hashing to 579257c89a104be8ca2d7a211b4075e6

statement ok
DROP VIEW view_1_tab0_557

statement ok
DROP VIEW view_2_tab0_557

statement ok
DROP VIEW view_3_tab0_557

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_557') DROP VIEW view_1_tab1_557

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_557

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_557') DROP VIEW view_2_tab1_557

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_557

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_557') DROP VIEW view_3_tab1_557

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_557

statement ok
CREATE VIEW view_1_tab1_557 AS SELECT pk, col0 FROM tab1 WHERE (((col3 > 799)))

statement ok
CREATE VIEW view_2_tab1_557 AS SELECT pk, col0 FROM tab1 WHERE NOT ((((col3 > 799))))

statement ok
CREATE VIEW view_3_tab1_557 AS SELECT pk FROM view_1_tab1_557

query II rowsort label-3300-1
SELECT pk, col0 FROM tab1 WHERE (((col3 > 799)))
----
40 values hashing to cb552750aa1e268a18af755b1f67f64c

query II rowsort label-3300-2
SELECT pk, col0 FROM tab1 WHERE NOT ((((col3 > 799))))
----
160 values hashing to ce8d8f0acaba68fe6665b790d24af99c

query II rowsort label-3300-1
SELECT pk, col0 FROM view_1_tab1_557
----
40 values hashing to cb552750aa1e268a18af755b1f67f64c

query II rowsort label-3300-2
SELECT pk, col0 FROM view_2_tab1_557
----
160 values hashing to ce8d8f0acaba68fe6665b790d24af99c

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (((col3 > 799))) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT ((((col3 > 799))))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_557 UNION ALL SELECT pk, col0 FROM view_2_tab1_557
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (((col3 > 799))) UNION SELECT pk, col0 FROM tab1 WHERE NOT ((((col3 > 799))))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_557 UNION SELECT pk, col0 FROM view_2_tab1_557
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-3300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE (((col3 > 799))) ) AS tab1_557
----
20 values hashing to 579257c89a104be8ca2d7a211b4075e6

query I rowsort label-3300-3
SELECT * FROM view_3_tab1_557
----
20 values hashing to 579257c89a104be8ca2d7a211b4075e6

query I rowsort label-3300-3
SELECT pk FROM tab1 WHERE (((col3 > 799)))
----
20 values hashing to 579257c89a104be8ca2d7a211b4075e6

statement ok
DROP VIEW view_1_tab1_557

statement ok
DROP VIEW view_2_tab1_557

statement ok
DROP VIEW view_3_tab1_557

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_557') DROP VIEW view_1_tab2_557

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_557

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_557') DROP VIEW view_2_tab2_557

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_557

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_557') DROP VIEW view_3_tab2_557

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_557

statement ok
CREATE VIEW view_1_tab2_557 AS SELECT pk, col0 FROM tab2 WHERE (((col3 > 799)))

statement ok
CREATE VIEW view_2_tab2_557 AS SELECT pk, col0 FROM tab2 WHERE NOT ((((col3 > 799))))

statement ok
CREATE VIEW view_3_tab2_557 AS SELECT pk FROM view_1_tab2_557

query II rowsort label-3300-1
SELECT pk, col0 FROM tab2 WHERE (((col3 > 799)))
----
40 values hashing to cb552750aa1e268a18af755b1f67f64c

query II rowsort label-3300-2
SELECT pk, col0 FROM tab2 WHERE NOT ((((col3 > 799))))
----
160 values hashing to ce8d8f0acaba68fe6665b790d24af99c

query II rowsort label-3300-1
SELECT pk, col0 FROM view_1_tab2_557
----
40 values hashing to cb552750aa1e268a18af755b1f67f64c

query II rowsort label-3300-2
SELECT pk, col0 FROM view_2_tab2_557
----
160 values hashing to ce8d8f0acaba68fe6665b790d24af99c

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (((col3 > 799))) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT ((((col3 > 799))))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_557 UNION ALL SELECT pk, col0 FROM view_2_tab2_557
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (((col3 > 799))) UNION SELECT pk, col0 FROM tab2 WHERE NOT ((((col3 > 799))))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_557 UNION SELECT pk, col0 FROM view_2_tab2_557
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-3300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE (((col3 > 799))) ) AS tab2_557
----
20 values hashing to 579257c89a104be8ca2d7a211b4075e6

query I rowsort label-3300-3
SELECT * FROM view_3_tab2_557
----
20 values hashing to 579257c89a104be8ca2d7a211b4075e6

query I rowsort label-3300-3
SELECT pk FROM tab2 WHERE (((col3 > 799)))
----
20 values hashing to 579257c89a104be8ca2d7a211b4075e6

statement ok
DROP VIEW view_1_tab2_557

statement ok
DROP VIEW view_2_tab2_557

statement ok
DROP VIEW view_3_tab2_557

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_557') DROP VIEW view_1_tab3_557

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_557

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_557') DROP VIEW view_2_tab3_557

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_557

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_557') DROP VIEW view_3_tab3_557

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_557

statement ok
CREATE VIEW view_1_tab3_557 AS SELECT pk, col0 FROM tab3 WHERE (((col3 > 799)))

statement ok
CREATE VIEW view_2_tab3_557 AS SELECT pk, col0 FROM tab3 WHERE NOT ((((col3 > 799))))

statement ok
CREATE VIEW view_3_tab3_557 AS SELECT pk FROM view_1_tab3_557

query II rowsort label-3300-1
SELECT pk, col0 FROM tab3 WHERE (((col3 > 799)))
----
40 values hashing to cb552750aa1e268a18af755b1f67f64c

query II rowsort label-3300-2
SELECT pk, col0 FROM tab3 WHERE NOT ((((col3 > 799))))
----
160 values hashing to ce8d8f0acaba68fe6665b790d24af99c

query II rowsort label-3300-1
SELECT pk, col0 FROM view_1_tab3_557
----
40 values hashing to cb552750aa1e268a18af755b1f67f64c

query II rowsort label-3300-2
SELECT pk, col0 FROM view_2_tab3_557
----
160 values hashing to ce8d8f0acaba68fe6665b790d24af99c

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (((col3 > 799))) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT ((((col3 > 799))))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_557 UNION ALL SELECT pk, col0 FROM view_2_tab3_557
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (((col3 > 799))) UNION SELECT pk, col0 FROM tab3 WHERE NOT ((((col3 > 799))))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_557 UNION SELECT pk, col0 FROM view_2_tab3_557
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-3300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE (((col3 > 799))) ) AS tab3_557
----
20 values hashing to 579257c89a104be8ca2d7a211b4075e6

query I rowsort label-3300-3
SELECT * FROM view_3_tab3_557
----
20 values hashing to 579257c89a104be8ca2d7a211b4075e6

query I rowsort label-3300-3
SELECT pk FROM tab3 WHERE (((col3 > 799)))
----
20 values hashing to 579257c89a104be8ca2d7a211b4075e6

statement ok
DROP VIEW view_1_tab3_557

statement ok
DROP VIEW view_2_tab3_557

statement ok
DROP VIEW view_3_tab3_557

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_557') DROP VIEW view_1_tab4_557

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_557

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_557') DROP VIEW view_2_tab4_557

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_557

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_557') DROP VIEW view_3_tab4_557

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_557

statement ok
CREATE VIEW view_1_tab4_557 AS SELECT pk, col0 FROM tab4 WHERE (((col3 > 799)))

statement ok
CREATE VIEW view_2_tab4_557 AS SELECT pk, col0 FROM tab4 WHERE NOT ((((col3 > 799))))

statement ok
CREATE VIEW view_3_tab4_557 AS SELECT pk FROM view_1_tab4_557

query II rowsort label-3300-1
SELECT pk, col0 FROM tab4 WHERE (((col3 > 799)))
----
40 values hashing to cb552750aa1e268a18af755b1f67f64c

query II rowsort label-3300-2
SELECT pk, col0 FROM tab4 WHERE NOT ((((col3 > 799))))
----
160 values hashing to ce8d8f0acaba68fe6665b790d24af99c

query II rowsort label-3300-1
SELECT pk, col0 FROM view_1_tab4_557
----
40 values hashing to cb552750aa1e268a18af755b1f67f64c

query II rowsort label-3300-2
SELECT pk, col0 FROM view_2_tab4_557
----
160 values hashing to ce8d8f0acaba68fe6665b790d24af99c

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (((col3 > 799))) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT ((((col3 > 799))))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_557 UNION ALL SELECT pk, col0 FROM view_2_tab4_557
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (((col3 > 799))) UNION SELECT pk, col0 FROM tab4 WHERE NOT ((((col3 > 799))))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_557 UNION SELECT pk, col0 FROM view_2_tab4_557
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-3300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE (((col3 > 799))) ) AS tab4_557
----
20 values hashing to 579257c89a104be8ca2d7a211b4075e6

query I rowsort label-3300-3
SELECT * FROM view_3_tab4_557
----
20 values hashing to 579257c89a104be8ca2d7a211b4075e6

query I rowsort label-3300-3
SELECT pk FROM tab4 WHERE (((col3 > 799)))
----
20 values hashing to 579257c89a104be8ca2d7a211b4075e6

statement ok
DROP VIEW view_1_tab4_557

statement ok
DROP VIEW view_2_tab4_557

statement ok
DROP VIEW view_3_tab4_557

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_558') DROP VIEW view_1_tab0_558

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_558

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_558') DROP VIEW view_2_tab0_558

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_558

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_558') DROP VIEW view_3_tab0_558

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_558

statement ok
CREATE VIEW view_1_tab0_558 AS SELECT pk, col0 FROM tab0 WHERE col1 < 344.47 OR (col3 <= 281) OR col3 <= 82 AND col0 = 548 AND (col3 < 545 AND col1 > 351.12)

statement ok
CREATE VIEW view_2_tab0_558 AS SELECT pk, col0 FROM tab0 WHERE NOT (col1 < 344.47 OR (col3 <= 281) OR col3 <= 82 AND col0 = 548 AND (col3 < 545 AND col1 > 351.12))

statement ok
CREATE VIEW view_3_tab0_558 AS SELECT pk FROM view_1_tab0_558

query II rowsort label-3400-1
SELECT pk, col0 FROM tab0 WHERE col1 < 344.47 OR (col3 <= 281) OR col3 <= 82 AND col0 = 548 AND (col3 < 545 AND col1 > 351.12)
----
116 values hashing to 8eff458b34333abac326ba6bedc95a33

query II rowsort label-3400-2
SELECT pk, col0 FROM tab0 WHERE NOT (col1 < 344.47 OR (col3 <= 281) OR col3 <= 82 AND col0 = 548 AND (col3 < 545 AND col1 > 351.12))
----
84 values hashing to db5993f0ffe87a844c94e9e3d008a9f0

query II rowsort label-3400-1
SELECT pk, col0 FROM view_1_tab0_558
----
116 values hashing to 8eff458b34333abac326ba6bedc95a33

query II rowsort label-3400-2
SELECT pk, col0 FROM view_2_tab0_558
----
84 values hashing to db5993f0ffe87a844c94e9e3d008a9f0

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col1 < 344.47 OR (col3 <= 281) OR col3 <= 82 AND col0 = 548 AND (col3 < 545 AND col1 > 351.12) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col1 < 344.47 OR (col3 <= 281) OR col3 <= 82 AND col0 = 548 AND (col3 < 545 AND col1 > 351.12))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_558 UNION ALL SELECT pk, col0 FROM view_2_tab0_558
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col1 < 344.47 OR (col3 <= 281) OR col3 <= 82 AND col0 = 548 AND (col3 < 545 AND col1 > 351.12) UNION SELECT pk, col0 FROM tab0 WHERE NOT (col1 < 344.47 OR (col3 <= 281) OR col3 <= 82 AND col0 = 548 AND (col3 < 545 AND col1 > 351.12))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_558 UNION SELECT pk, col0 FROM view_2_tab0_558
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-3400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col1 < 344.47 OR (col3 <= 281) OR col3 <= 82 AND col0 = 548 AND (col3 < 545 AND col1 > 351.12) ) AS tab0_558
----
58 values hashing to 9a7c900839ac3705c2864850d40c716f

query I rowsort label-3400-3
SELECT * FROM view_3_tab0_558
----
58 values hashing to 9a7c900839ac3705c2864850d40c716f

query I rowsort label-3400-3
SELECT pk FROM tab0 WHERE col1 < 344.47 OR (col3 <= 281) OR col3 <= 82 AND col0 = 548 AND (col3 < 545 AND col1 > 351.12)
----
58 values hashing to 9a7c900839ac3705c2864850d40c716f

statement ok
DROP VIEW view_1_tab0_558

statement ok
DROP VIEW view_2_tab0_558

statement ok
DROP VIEW view_3_tab0_558

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_558') DROP VIEW view_1_tab1_558

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_558

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_558') DROP VIEW view_2_tab1_558

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_558

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_558') DROP VIEW view_3_tab1_558

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_558

statement ok
CREATE VIEW view_1_tab1_558 AS SELECT pk, col0 FROM tab1 WHERE col1 < 344.47 OR (col3 <= 281) OR col3 <= 82 AND col0 = 548 AND (col3 < 545 AND col1 > 351.12)

statement ok
CREATE VIEW view_2_tab1_558 AS SELECT pk, col0 FROM tab1 WHERE NOT (col1 < 344.47 OR (col3 <= 281) OR col3 <= 82 AND col0 = 548 AND (col3 < 545 AND col1 > 351.12))

statement ok
CREATE VIEW view_3_tab1_558 AS SELECT pk FROM view_1_tab1_558

query II rowsort label-3400-1
SELECT pk, col0 FROM tab1 WHERE col1 < 344.47 OR (col3 <= 281) OR col3 <= 82 AND col0 = 548 AND (col3 < 545 AND col1 > 351.12)
----
116 values hashing to 8eff458b34333abac326ba6bedc95a33

query II rowsort label-3400-2
SELECT pk, col0 FROM tab1 WHERE NOT (col1 < 344.47 OR (col3 <= 281) OR col3 <= 82 AND col0 = 548 AND (col3 < 545 AND col1 > 351.12))
----
84 values hashing to db5993f0ffe87a844c94e9e3d008a9f0

query II rowsort label-3400-1
SELECT pk, col0 FROM view_1_tab1_558
----
116 values hashing to 8eff458b34333abac326ba6bedc95a33

query II rowsort label-3400-2
SELECT pk, col0 FROM view_2_tab1_558
----
84 values hashing to db5993f0ffe87a844c94e9e3d008a9f0

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col1 < 344.47 OR (col3 <= 281) OR col3 <= 82 AND col0 = 548 AND (col3 < 545 AND col1 > 351.12) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col1 < 344.47 OR (col3 <= 281) OR col3 <= 82 AND col0 = 548 AND (col3 < 545 AND col1 > 351.12))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_558 UNION ALL SELECT pk, col0 FROM view_2_tab1_558
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col1 < 344.47 OR (col3 <= 281) OR col3 <= 82 AND col0 = 548 AND (col3 < 545 AND col1 > 351.12) UNION SELECT pk, col0 FROM tab1 WHERE NOT (col1 < 344.47 OR (col3 <= 281) OR col3 <= 82 AND col0 = 548 AND (col3 < 545 AND col1 > 351.12))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_558 UNION SELECT pk, col0 FROM view_2_tab1_558
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-3400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col1 < 344.47 OR (col3 <= 281) OR col3 <= 82 AND col0 = 548 AND (col3 < 545 AND col1 > 351.12) ) AS tab1_558
----
58 values hashing to 9a7c900839ac3705c2864850d40c716f

query I rowsort label-3400-3
SELECT * FROM view_3_tab1_558
----
58 values hashing to 9a7c900839ac3705c2864850d40c716f

query I rowsort label-3400-3
SELECT pk FROM tab1 WHERE col1 < 344.47 OR (col3 <= 281) OR col3 <= 82 AND col0 = 548 AND (col3 < 545 AND col1 > 351.12)
----
58 values hashing to 9a7c900839ac3705c2864850d40c716f

statement ok
DROP VIEW view_1_tab1_558

statement ok
DROP VIEW view_2_tab1_558

statement ok
DROP VIEW view_3_tab1_558

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_558') DROP VIEW view_1_tab2_558

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_558

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_558') DROP VIEW view_2_tab2_558

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_558

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_558') DROP VIEW view_3_tab2_558

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_558

statement ok
CREATE VIEW view_1_tab2_558 AS SELECT pk, col0 FROM tab2 WHERE col1 < 344.47 OR (col3 <= 281) OR col3 <= 82 AND col0 = 548 AND (col3 < 545 AND col1 > 351.12)

statement ok
CREATE VIEW view_2_tab2_558 AS SELECT pk, col0 FROM tab2 WHERE NOT (col1 < 344.47 OR (col3 <= 281) OR col3 <= 82 AND col0 = 548 AND (col3 < 545 AND col1 > 351.12))

statement ok
CREATE VIEW view_3_tab2_558 AS SELECT pk FROM view_1_tab2_558

query II rowsort label-3400-1
SELECT pk, col0 FROM tab2 WHERE col1 < 344.47 OR (col3 <= 281) OR col3 <= 82 AND col0 = 548 AND (col3 < 545 AND col1 > 351.12)
----
116 values hashing to 8eff458b34333abac326ba6bedc95a33

query II rowsort label-3400-2
SELECT pk, col0 FROM tab2 WHERE NOT (col1 < 344.47 OR (col3 <= 281) OR col3 <= 82 AND col0 = 548 AND (col3 < 545 AND col1 > 351.12))
----
84 values hashing to db5993f0ffe87a844c94e9e3d008a9f0

query II rowsort label-3400-1
SELECT pk, col0 FROM view_1_tab2_558
----
116 values hashing to 8eff458b34333abac326ba6bedc95a33

query II rowsort label-3400-2
SELECT pk, col0 FROM view_2_tab2_558
----
84 values hashing to db5993f0ffe87a844c94e9e3d008a9f0

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col1 < 344.47 OR (col3 <= 281) OR col3 <= 82 AND col0 = 548 AND (col3 < 545 AND col1 > 351.12) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col1 < 344.47 OR (col3 <= 281) OR col3 <= 82 AND col0 = 548 AND (col3 < 545 AND col1 > 351.12))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_558 UNION ALL SELECT pk, col0 FROM view_2_tab2_558
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col1 < 344.47 OR (col3 <= 281) OR col3 <= 82 AND col0 = 548 AND (col3 < 545 AND col1 > 351.12) UNION SELECT pk, col0 FROM tab2 WHERE NOT (col1 < 344.47 OR (col3 <= 281) OR col3 <= 82 AND col0 = 548 AND (col3 < 545 AND col1 > 351.12))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_558 UNION SELECT pk, col0 FROM view_2_tab2_558
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-3400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col1 < 344.47 OR (col3 <= 281) OR col3 <= 82 AND col0 = 548 AND (col3 < 545 AND col1 > 351.12) ) AS tab2_558
----
58 values hashing to 9a7c900839ac3705c2864850d40c716f

query I rowsort label-3400-3
SELECT * FROM view_3_tab2_558
----
58 values hashing to 9a7c900839ac3705c2864850d40c716f

query I rowsort label-3400-3
SELECT pk FROM tab2 WHERE col1 < 344.47 OR (col3 <= 281) OR col3 <= 82 AND col0 = 548 AND (col3 < 545 AND col1 > 351.12)
----
58 values hashing to 9a7c900839ac3705c2864850d40c716f

statement ok
DROP VIEW view_1_tab2_558

statement ok
DROP VIEW view_2_tab2_558

statement ok
DROP VIEW view_3_tab2_558

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_558') DROP VIEW view_1_tab3_558

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_558

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_558') DROP VIEW view_2_tab3_558

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_558

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_558') DROP VIEW view_3_tab3_558

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_558

statement ok
CREATE VIEW view_1_tab3_558 AS SELECT pk, col0 FROM tab3 WHERE col1 < 344.47 OR (col3 <= 281) OR col3 <= 82 AND col0 = 548 AND (col3 < 545 AND col1 > 351.12)

statement ok
CREATE VIEW view_2_tab3_558 AS SELECT pk, col0 FROM tab3 WHERE NOT (col1 < 344.47 OR (col3 <= 281) OR col3 <= 82 AND col0 = 548 AND (col3 < 545 AND col1 > 351.12))

statement ok
CREATE VIEW view_3_tab3_558 AS SELECT pk FROM view_1_tab3_558

query II rowsort label-3400-1
SELECT pk, col0 FROM tab3 WHERE col1 < 344.47 OR (col3 <= 281) OR col3 <= 82 AND col0 = 548 AND (col3 < 545 AND col1 > 351.12)
----
116 values hashing to 8eff458b34333abac326ba6bedc95a33

query II rowsort label-3400-2
SELECT pk, col0 FROM tab3 WHERE NOT (col1 < 344.47 OR (col3 <= 281) OR col3 <= 82 AND col0 = 548 AND (col3 < 545 AND col1 > 351.12))
----
84 values hashing to db5993f0ffe87a844c94e9e3d008a9f0

query II rowsort label-3400-1
SELECT pk, col0 FROM view_1_tab3_558
----
116 values hashing to 8eff458b34333abac326ba6bedc95a33

query II rowsort label-3400-2
SELECT pk, col0 FROM view_2_tab3_558
----
84 values hashing to db5993f0ffe87a844c94e9e3d008a9f0

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col1 < 344.47 OR (col3 <= 281) OR col3 <= 82 AND col0 = 548 AND (col3 < 545 AND col1 > 351.12) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col1 < 344.47 OR (col3 <= 281) OR col3 <= 82 AND col0 = 548 AND (col3 < 545 AND col1 > 351.12))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_558 UNION ALL SELECT pk, col0 FROM view_2_tab3_558
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col1 < 344.47 OR (col3 <= 281) OR col3 <= 82 AND col0 = 548 AND (col3 < 545 AND col1 > 351.12) UNION SELECT pk, col0 FROM tab3 WHERE NOT (col1 < 344.47 OR (col3 <= 281) OR col3 <= 82 AND col0 = 548 AND (col3 < 545 AND col1 > 351.12))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_558 UNION SELECT pk, col0 FROM view_2_tab3_558
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-3400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col1 < 344.47 OR (col3 <= 281) OR col3 <= 82 AND col0 = 548 AND (col3 < 545 AND col1 > 351.12) ) AS tab3_558
----
58 values hashing to 9a7c900839ac3705c2864850d40c716f

query I rowsort label-3400-3
SELECT * FROM view_3_tab3_558
----
58 values hashing to 9a7c900839ac3705c2864850d40c716f

query I rowsort label-3400-3
SELECT pk FROM tab3 WHERE col1 < 344.47 OR (col3 <= 281) OR col3 <= 82 AND col0 = 548 AND (col3 < 545 AND col1 > 351.12)
----
58 values hashing to 9a7c900839ac3705c2864850d40c716f

statement ok
DROP VIEW view_1_tab3_558

statement ok
DROP VIEW view_2_tab3_558

statement ok
DROP VIEW view_3_tab3_558

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_558') DROP VIEW view_1_tab4_558

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_558

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_558') DROP VIEW view_2_tab4_558

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_558

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_558') DROP VIEW view_3_tab4_558

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_558

statement ok
CREATE VIEW view_1_tab4_558 AS SELECT pk, col0 FROM tab4 WHERE col1 < 344.47 OR (col3 <= 281) OR col3 <= 82 AND col0 = 548 AND (col3 < 545 AND col1 > 351.12)

statement ok
CREATE VIEW view_2_tab4_558 AS SELECT pk, col0 FROM tab4 WHERE NOT (col1 < 344.47 OR (col3 <= 281) OR col3 <= 82 AND col0 = 548 AND (col3 < 545 AND col1 > 351.12))

statement ok
CREATE VIEW view_3_tab4_558 AS SELECT pk FROM view_1_tab4_558

query II rowsort label-3400-1
SELECT pk, col0 FROM tab4 WHERE col1 < 344.47 OR (col3 <= 281) OR col3 <= 82 AND col0 = 548 AND (col3 < 545 AND col1 > 351.12)
----
116 values hashing to 8eff458b34333abac326ba6bedc95a33

query II rowsort label-3400-2
SELECT pk, col0 FROM tab4 WHERE NOT (col1 < 344.47 OR (col3 <= 281) OR col3 <= 82 AND col0 = 548 AND (col3 < 545 AND col1 > 351.12))
----
84 values hashing to db5993f0ffe87a844c94e9e3d008a9f0

query II rowsort label-3400-1
SELECT pk, col0 FROM view_1_tab4_558
----
116 values hashing to 8eff458b34333abac326ba6bedc95a33

query II rowsort label-3400-2
SELECT pk, col0 FROM view_2_tab4_558
----
84 values hashing to db5993f0ffe87a844c94e9e3d008a9f0

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col1 < 344.47 OR (col3 <= 281) OR col3 <= 82 AND col0 = 548 AND (col3 < 545 AND col1 > 351.12) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col1 < 344.47 OR (col3 <= 281) OR col3 <= 82 AND col0 = 548 AND (col3 < 545 AND col1 > 351.12))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_558 UNION ALL SELECT pk, col0 FROM view_2_tab4_558
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col1 < 344.47 OR (col3 <= 281) OR col3 <= 82 AND col0 = 548 AND (col3 < 545 AND col1 > 351.12) UNION SELECT pk, col0 FROM tab4 WHERE NOT (col1 < 344.47 OR (col3 <= 281) OR col3 <= 82 AND col0 = 548 AND (col3 < 545 AND col1 > 351.12))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_558 UNION SELECT pk, col0 FROM view_2_tab4_558
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-3400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col1 < 344.47 OR (col3 <= 281) OR col3 <= 82 AND col0 = 548 AND (col3 < 545 AND col1 > 351.12) ) AS tab4_558
----
58 values hashing to 9a7c900839ac3705c2864850d40c716f

query I rowsort label-3400-3
SELECT * FROM view_3_tab4_558
----
58 values hashing to 9a7c900839ac3705c2864850d40c716f

query I rowsort label-3400-3
SELECT pk FROM tab4 WHERE col1 < 344.47 OR (col3 <= 281) OR col3 <= 82 AND col0 = 548 AND (col3 < 545 AND col1 > 351.12)
----
58 values hashing to 9a7c900839ac3705c2864850d40c716f

statement ok
DROP VIEW view_1_tab4_558

statement ok
DROP VIEW view_2_tab4_558

statement ok
DROP VIEW view_3_tab4_558

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_559') DROP VIEW view_1_tab0_559

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_559

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_559') DROP VIEW view_2_tab0_559

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_559

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_559') DROP VIEW view_3_tab0_559

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_559

statement ok
CREATE VIEW view_1_tab0_559 AS SELECT pk, col0 FROM tab0 WHERE col1 BETWEEN 308.75 AND 57.44

statement ok
CREATE VIEW view_2_tab0_559 AS SELECT pk, col0 FROM tab0 WHERE NOT (col1 BETWEEN 308.75 AND 57.44)

statement ok
CREATE VIEW view_3_tab0_559 AS SELECT pk FROM view_1_tab0_559

query II rowsort label-3500-1
SELECT pk, col0 FROM tab0 WHERE col1 BETWEEN 308.75 AND 57.44
----

query II rowsort label-3500-2
SELECT pk, col0 FROM tab0 WHERE NOT (col1 BETWEEN 308.75 AND 57.44)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-3500-1
SELECT pk, col0 FROM view_1_tab0_559
----

query II rowsort label-3500-2
SELECT pk, col0 FROM view_2_tab0_559
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col1 BETWEEN 308.75 AND 57.44 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col1 BETWEEN 308.75 AND 57.44)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_559 UNION ALL SELECT pk, col0 FROM view_2_tab0_559
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col1 BETWEEN 308.75 AND 57.44 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col1 BETWEEN 308.75 AND 57.44)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_559 UNION SELECT pk, col0 FROM view_2_tab0_559
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-3500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col1 BETWEEN 308.75 AND 57.44 ) AS tab0_559
----

query I rowsort label-3500-3
SELECT * FROM view_3_tab0_559
----

query I rowsort label-3500-3
SELECT pk FROM tab0 WHERE col1 BETWEEN 308.75 AND 57.44
----

statement ok
DROP VIEW view_1_tab0_559

statement ok
DROP VIEW view_2_tab0_559

statement ok
DROP VIEW view_3_tab0_559

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_559') DROP VIEW view_1_tab1_559

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_559

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_559') DROP VIEW view_2_tab1_559

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_559

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_559') DROP VIEW view_3_tab1_559

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_559

statement ok
CREATE VIEW view_1_tab1_559 AS SELECT pk, col0 FROM tab1 WHERE col1 BETWEEN 308.75 AND 57.44

statement ok
CREATE VIEW view_2_tab1_559 AS SELECT pk, col0 FROM tab1 WHERE NOT (col1 BETWEEN 308.75 AND 57.44)

statement ok
CREATE VIEW view_3_tab1_559 AS SELECT pk FROM view_1_tab1_559

query II rowsort label-3500-1
SELECT pk, col0 FROM tab1 WHERE col1 BETWEEN 308.75 AND 57.44
----

query II rowsort label-3500-2
SELECT pk, col0 FROM tab1 WHERE NOT (col1 BETWEEN 308.75 AND 57.44)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-3500-1
SELECT pk, col0 FROM view_1_tab1_559
----

query II rowsort label-3500-2
SELECT pk, col0 FROM view_2_tab1_559
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col1 BETWEEN 308.75 AND 57.44 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col1 BETWEEN 308.75 AND 57.44)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_559 UNION ALL SELECT pk, col0 FROM view_2_tab1_559
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col1 BETWEEN 308.75 AND 57.44 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col1 BETWEEN 308.75 AND 57.44)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_559 UNION SELECT pk, col0 FROM view_2_tab1_559
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-3500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col1 BETWEEN 308.75 AND 57.44 ) AS tab1_559
----

query I rowsort label-3500-3
SELECT * FROM view_3_tab1_559
----

query I rowsort label-3500-3
SELECT pk FROM tab1 WHERE col1 BETWEEN 308.75 AND 57.44
----

statement ok
DROP VIEW view_1_tab1_559

statement ok
DROP VIEW view_2_tab1_559

statement ok
DROP VIEW view_3_tab1_559

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_559') DROP VIEW view_1_tab2_559

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_559

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_559') DROP VIEW view_2_tab2_559

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_559

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_559') DROP VIEW view_3_tab2_559

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_559

statement ok
CREATE VIEW view_1_tab2_559 AS SELECT pk, col0 FROM tab2 WHERE col1 BETWEEN 308.75 AND 57.44

statement ok
CREATE VIEW view_2_tab2_559 AS SELECT pk, col0 FROM tab2 WHERE NOT (col1 BETWEEN 308.75 AND 57.44)

statement ok
CREATE VIEW view_3_tab2_559 AS SELECT pk FROM view_1_tab2_559

query II rowsort label-3500-1
SELECT pk, col0 FROM tab2 WHERE col1 BETWEEN 308.75 AND 57.44
----

query II rowsort label-3500-2
SELECT pk, col0 FROM tab2 WHERE NOT (col1 BETWEEN 308.75 AND 57.44)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-3500-1
SELECT pk, col0 FROM view_1_tab2_559
----

query II rowsort label-3500-2
SELECT pk, col0 FROM view_2_tab2_559
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col1 BETWEEN 308.75 AND 57.44 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col1 BETWEEN 308.75 AND 57.44)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_559 UNION ALL SELECT pk, col0 FROM view_2_tab2_559
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col1 BETWEEN 308.75 AND 57.44 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col1 BETWEEN 308.75 AND 57.44)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_559 UNION SELECT pk, col0 FROM view_2_tab2_559
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-3500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col1 BETWEEN 308.75 AND 57.44 ) AS tab2_559
----

query I rowsort label-3500-3
SELECT * FROM view_3_tab2_559
----

query I rowsort label-3500-3
SELECT pk FROM tab2 WHERE col1 BETWEEN 308.75 AND 57.44
----

statement ok
DROP VIEW view_1_tab2_559

statement ok
DROP VIEW view_2_tab2_559

statement ok
DROP VIEW view_3_tab2_559

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_559') DROP VIEW view_1_tab3_559

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_559

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_559') DROP VIEW view_2_tab3_559

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_559

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_559') DROP VIEW view_3_tab3_559

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_559

statement ok
CREATE VIEW view_1_tab3_559 AS SELECT pk, col0 FROM tab3 WHERE col1 BETWEEN 308.75 AND 57.44

statement ok
CREATE VIEW view_2_tab3_559 AS SELECT pk, col0 FROM tab3 WHERE NOT (col1 BETWEEN 308.75 AND 57.44)

statement ok
CREATE VIEW view_3_tab3_559 AS SELECT pk FROM view_1_tab3_559

query II rowsort label-3500-1
SELECT pk, col0 FROM tab3 WHERE col1 BETWEEN 308.75 AND 57.44
----

query II rowsort label-3500-2
SELECT pk, col0 FROM tab3 WHERE NOT (col1 BETWEEN 308.75 AND 57.44)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-3500-1
SELECT pk, col0 FROM view_1_tab3_559
----

query II rowsort label-3500-2
SELECT pk, col0 FROM view_2_tab3_559
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col1 BETWEEN 308.75 AND 57.44 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col1 BETWEEN 308.75 AND 57.44)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_559 UNION ALL SELECT pk, col0 FROM view_2_tab3_559
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col1 BETWEEN 308.75 AND 57.44 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col1 BETWEEN 308.75 AND 57.44)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_559 UNION SELECT pk, col0 FROM view_2_tab3_559
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-3500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col1 BETWEEN 308.75 AND 57.44 ) AS tab3_559
----

query I rowsort label-3500-3
SELECT * FROM view_3_tab3_559
----

query I rowsort label-3500-3
SELECT pk FROM tab3 WHERE col1 BETWEEN 308.75 AND 57.44
----

statement ok
DROP VIEW view_1_tab3_559

statement ok
DROP VIEW view_2_tab3_559

statement ok
DROP VIEW view_3_tab3_559

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_559') DROP VIEW view_1_tab4_559

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_559

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_559') DROP VIEW view_2_tab4_559

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_559

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_559') DROP VIEW view_3_tab4_559

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_559

statement ok
CREATE VIEW view_1_tab4_559 AS SELECT pk, col0 FROM tab4 WHERE col1 BETWEEN 308.75 AND 57.44

statement ok
CREATE VIEW view_2_tab4_559 AS SELECT pk, col0 FROM tab4 WHERE NOT (col1 BETWEEN 308.75 AND 57.44)

statement ok
CREATE VIEW view_3_tab4_559 AS SELECT pk FROM view_1_tab4_559

query II rowsort label-3500-1
SELECT pk, col0 FROM tab4 WHERE col1 BETWEEN 308.75 AND 57.44
----

query II rowsort label-3500-2
SELECT pk, col0 FROM tab4 WHERE NOT (col1 BETWEEN 308.75 AND 57.44)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-3500-1
SELECT pk, col0 FROM view_1_tab4_559
----

query II rowsort label-3500-2
SELECT pk, col0 FROM view_2_tab4_559
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col1 BETWEEN 308.75 AND 57.44 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col1 BETWEEN 308.75 AND 57.44)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_559 UNION ALL SELECT pk, col0 FROM view_2_tab4_559
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col1 BETWEEN 308.75 AND 57.44 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col1 BETWEEN 308.75 AND 57.44)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_559 UNION SELECT pk, col0 FROM view_2_tab4_559
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-3500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col1 BETWEEN 308.75 AND 57.44 ) AS tab4_559
----

query I rowsort label-3500-3
SELECT * FROM view_3_tab4_559
----

query I rowsort label-3500-3
SELECT pk FROM tab4 WHERE col1 BETWEEN 308.75 AND 57.44
----

statement ok
DROP VIEW view_1_tab4_559

statement ok
DROP VIEW view_2_tab4_559

statement ok
DROP VIEW view_3_tab4_559

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_560') DROP VIEW view_1_tab0_560

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_560

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_560') DROP VIEW view_2_tab0_560

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_560

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_560') DROP VIEW view_3_tab0_560

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_560

statement ok
CREATE VIEW view_1_tab0_560 AS SELECT pk, col0 FROM tab0 WHERE (((col0 > 391)))

statement ok
CREATE VIEW view_2_tab0_560 AS SELECT pk, col0 FROM tab0 WHERE NOT ((((col0 > 391))))

statement ok
CREATE VIEW view_3_tab0_560 AS SELECT pk FROM view_1_tab0_560

query II rowsort label-3600-1
SELECT pk, col0 FROM tab0 WHERE (((col0 > 391)))
----
122 values hashing to c09512ed91e5d22a36201515907b1946

query II rowsort label-3600-2
SELECT pk, col0 FROM tab0 WHERE NOT ((((col0 > 391))))
----
78 values hashing to 11c782527b433ee68f3ac131111d2ab6

query II rowsort label-3600-1
SELECT pk, col0 FROM view_1_tab0_560
----
122 values hashing to c09512ed91e5d22a36201515907b1946

query II rowsort label-3600-2
SELECT pk, col0 FROM view_2_tab0_560
----
78 values hashing to 11c782527b433ee68f3ac131111d2ab6

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (((col0 > 391))) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT ((((col0 > 391))))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_560 UNION ALL SELECT pk, col0 FROM view_2_tab0_560
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (((col0 > 391))) UNION SELECT pk, col0 FROM tab0 WHERE NOT ((((col0 > 391))))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_560 UNION SELECT pk, col0 FROM view_2_tab0_560
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-3600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE (((col0 > 391))) ) AS tab0_560
----
61 values hashing to ac62ac22ade6bfcc0bee9796ab543919

query I rowsort label-3600-3
SELECT * FROM view_3_tab0_560
----
61 values hashing to ac62ac22ade6bfcc0bee9796ab543919

query I rowsort label-3600-3
SELECT pk FROM tab0 WHERE (((col0 > 391)))
----
61 values hashing to ac62ac22ade6bfcc0bee9796ab543919

statement ok
DROP VIEW view_1_tab0_560

statement ok
DROP VIEW view_2_tab0_560

statement ok
DROP VIEW view_3_tab0_560

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_560') DROP VIEW view_1_tab1_560

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_560

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_560') DROP VIEW view_2_tab1_560

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_560

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_560') DROP VIEW view_3_tab1_560

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_560

statement ok
CREATE VIEW view_1_tab1_560 AS SELECT pk, col0 FROM tab1 WHERE (((col0 > 391)))

statement ok
CREATE VIEW view_2_tab1_560 AS SELECT pk, col0 FROM tab1 WHERE NOT ((((col0 > 391))))

statement ok
CREATE VIEW view_3_tab1_560 AS SELECT pk FROM view_1_tab1_560

query II rowsort label-3600-1
SELECT pk, col0 FROM tab1 WHERE (((col0 > 391)))
----
122 values hashing to c09512ed91e5d22a36201515907b1946

query II rowsort label-3600-2
SELECT pk, col0 FROM tab1 WHERE NOT ((((col0 > 391))))
----
78 values hashing to 11c782527b433ee68f3ac131111d2ab6

query II rowsort label-3600-1
SELECT pk, col0 FROM view_1_tab1_560
----
122 values hashing to c09512ed91e5d22a36201515907b1946

query II rowsort label-3600-2
SELECT pk, col0 FROM view_2_tab1_560
----
78 values hashing to 11c782527b433ee68f3ac131111d2ab6

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (((col0 > 391))) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT ((((col0 > 391))))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_560 UNION ALL SELECT pk, col0 FROM view_2_tab1_560
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (((col0 > 391))) UNION SELECT pk, col0 FROM tab1 WHERE NOT ((((col0 > 391))))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_560 UNION SELECT pk, col0 FROM view_2_tab1_560
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-3600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE (((col0 > 391))) ) AS tab1_560
----
61 values hashing to ac62ac22ade6bfcc0bee9796ab543919

query I rowsort label-3600-3
SELECT * FROM view_3_tab1_560
----
61 values hashing to ac62ac22ade6bfcc0bee9796ab543919

query I rowsort label-3600-3
SELECT pk FROM tab1 WHERE (((col0 > 391)))
----
61 values hashing to ac62ac22ade6bfcc0bee9796ab543919

statement ok
DROP VIEW view_1_tab1_560

statement ok
DROP VIEW view_2_tab1_560

statement ok
DROP VIEW view_3_tab1_560

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_560') DROP VIEW view_1_tab2_560

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_560

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_560') DROP VIEW view_2_tab2_560

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_560

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_560') DROP VIEW view_3_tab2_560

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_560

statement ok
CREATE VIEW view_1_tab2_560 AS SELECT pk, col0 FROM tab2 WHERE (((col0 > 391)))

statement ok
CREATE VIEW view_2_tab2_560 AS SELECT pk, col0 FROM tab2 WHERE NOT ((((col0 > 391))))

statement ok
CREATE VIEW view_3_tab2_560 AS SELECT pk FROM view_1_tab2_560

query II rowsort label-3600-1
SELECT pk, col0 FROM tab2 WHERE (((col0 > 391)))
----
122 values hashing to c09512ed91e5d22a36201515907b1946

query II rowsort label-3600-2
SELECT pk, col0 FROM tab2 WHERE NOT ((((col0 > 391))))
----
78 values hashing to 11c782527b433ee68f3ac131111d2ab6

query II rowsort label-3600-1
SELECT pk, col0 FROM view_1_tab2_560
----
122 values hashing to c09512ed91e5d22a36201515907b1946

query II rowsort label-3600-2
SELECT pk, col0 FROM view_2_tab2_560
----
78 values hashing to 11c782527b433ee68f3ac131111d2ab6

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (((col0 > 391))) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT ((((col0 > 391))))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_560 UNION ALL SELECT pk, col0 FROM view_2_tab2_560
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (((col0 > 391))) UNION SELECT pk, col0 FROM tab2 WHERE NOT ((((col0 > 391))))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_560 UNION SELECT pk, col0 FROM view_2_tab2_560
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-3600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE (((col0 > 391))) ) AS tab2_560
----
61 values hashing to ac62ac22ade6bfcc0bee9796ab543919

query I rowsort label-3600-3
SELECT * FROM view_3_tab2_560
----
61 values hashing to ac62ac22ade6bfcc0bee9796ab543919

query I rowsort label-3600-3
SELECT pk FROM tab2 WHERE (((col0 > 391)))
----
61 values hashing to ac62ac22ade6bfcc0bee9796ab543919

statement ok
DROP VIEW view_1_tab2_560

statement ok
DROP VIEW view_2_tab2_560

statement ok
DROP VIEW view_3_tab2_560

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_560') DROP VIEW view_1_tab3_560

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_560

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_560') DROP VIEW view_2_tab3_560

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_560

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_560') DROP VIEW view_3_tab3_560

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_560

statement ok
CREATE VIEW view_1_tab3_560 AS SELECT pk, col0 FROM tab3 WHERE (((col0 > 391)))

statement ok
CREATE VIEW view_2_tab3_560 AS SELECT pk, col0 FROM tab3 WHERE NOT ((((col0 > 391))))

statement ok
CREATE VIEW view_3_tab3_560 AS SELECT pk FROM view_1_tab3_560

query II rowsort label-3600-1
SELECT pk, col0 FROM tab3 WHERE (((col0 > 391)))
----
122 values hashing to c09512ed91e5d22a36201515907b1946

query II rowsort label-3600-2
SELECT pk, col0 FROM tab3 WHERE NOT ((((col0 > 391))))
----
78 values hashing to 11c782527b433ee68f3ac131111d2ab6

query II rowsort label-3600-1
SELECT pk, col0 FROM view_1_tab3_560
----
122 values hashing to c09512ed91e5d22a36201515907b1946

query II rowsort label-3600-2
SELECT pk, col0 FROM view_2_tab3_560
----
78 values hashing to 11c782527b433ee68f3ac131111d2ab6

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (((col0 > 391))) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT ((((col0 > 391))))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_560 UNION ALL SELECT pk, col0 FROM view_2_tab3_560
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (((col0 > 391))) UNION SELECT pk, col0 FROM tab3 WHERE NOT ((((col0 > 391))))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_560 UNION SELECT pk, col0 FROM view_2_tab3_560
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-3600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE (((col0 > 391))) ) AS tab3_560
----
61 values hashing to ac62ac22ade6bfcc0bee9796ab543919

query I rowsort label-3600-3
SELECT * FROM view_3_tab3_560
----
61 values hashing to ac62ac22ade6bfcc0bee9796ab543919

query I rowsort label-3600-3
SELECT pk FROM tab3 WHERE (((col0 > 391)))
----
61 values hashing to ac62ac22ade6bfcc0bee9796ab543919

statement ok
DROP VIEW view_1_tab3_560

statement ok
DROP VIEW view_2_tab3_560

statement ok
DROP VIEW view_3_tab3_560

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_560') DROP VIEW view_1_tab4_560

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_560

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_560') DROP VIEW view_2_tab4_560

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_560

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_560') DROP VIEW view_3_tab4_560

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_560

statement ok
CREATE VIEW view_1_tab4_560 AS SELECT pk, col0 FROM tab4 WHERE (((col0 > 391)))

statement ok
CREATE VIEW view_2_tab4_560 AS SELECT pk, col0 FROM tab4 WHERE NOT ((((col0 > 391))))

statement ok
CREATE VIEW view_3_tab4_560 AS SELECT pk FROM view_1_tab4_560

query II rowsort label-3600-1
SELECT pk, col0 FROM tab4 WHERE (((col0 > 391)))
----
122 values hashing to c09512ed91e5d22a36201515907b1946

query II rowsort label-3600-2
SELECT pk, col0 FROM tab4 WHERE NOT ((((col0 > 391))))
----
78 values hashing to 11c782527b433ee68f3ac131111d2ab6

query II rowsort label-3600-1
SELECT pk, col0 FROM view_1_tab4_560
----
122 values hashing to c09512ed91e5d22a36201515907b1946

query II rowsort label-3600-2
SELECT pk, col0 FROM view_2_tab4_560
----
78 values hashing to 11c782527b433ee68f3ac131111d2ab6

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (((col0 > 391))) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT ((((col0 > 391))))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_560 UNION ALL SELECT pk, col0 FROM view_2_tab4_560
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (((col0 > 391))) UNION SELECT pk, col0 FROM tab4 WHERE NOT ((((col0 > 391))))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_560 UNION SELECT pk, col0 FROM view_2_tab4_560
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-3600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE (((col0 > 391))) ) AS tab4_560
----
61 values hashing to ac62ac22ade6bfcc0bee9796ab543919

query I rowsort label-3600-3
SELECT * FROM view_3_tab4_560
----
61 values hashing to ac62ac22ade6bfcc0bee9796ab543919

query I rowsort label-3600-3
SELECT pk FROM tab4 WHERE (((col0 > 391)))
----
61 values hashing to ac62ac22ade6bfcc0bee9796ab543919

statement ok
DROP VIEW view_1_tab4_560

statement ok
DROP VIEW view_2_tab4_560

statement ok
DROP VIEW view_3_tab4_560

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_561') DROP VIEW view_1_tab0_561

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_561

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_561') DROP VIEW view_2_tab0_561

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_561

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_561') DROP VIEW view_3_tab0_561

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_561

statement ok
CREATE VIEW view_1_tab0_561 AS SELECT pk, col0 FROM tab0 WHERE col0 = 548

statement ok
CREATE VIEW view_2_tab0_561 AS SELECT pk, col0 FROM tab0 WHERE NOT (col0 = 548)

statement ok
CREATE VIEW view_3_tab0_561 AS SELECT pk FROM view_1_tab0_561

query II rowsort label-3700-1
SELECT pk, col0 FROM tab0 WHERE col0 = 548
----

query II rowsort label-3700-2
SELECT pk, col0 FROM tab0 WHERE NOT (col0 = 548)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-3700-1
SELECT pk, col0 FROM view_1_tab0_561
----

query II rowsort label-3700-2
SELECT pk, col0 FROM view_2_tab0_561
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col0 = 548 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col0 = 548)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_561 UNION ALL SELECT pk, col0 FROM view_2_tab0_561
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col0 = 548 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col0 = 548)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_561 UNION SELECT pk, col0 FROM view_2_tab0_561
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-3700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col0 = 548 ) AS tab0_561
----

query I rowsort label-3700-3
SELECT * FROM view_3_tab0_561
----

query I rowsort label-3700-3
SELECT pk FROM tab0 WHERE col0 = 548
----

statement ok
DROP VIEW view_1_tab0_561

statement ok
DROP VIEW view_2_tab0_561

statement ok
DROP VIEW view_3_tab0_561

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_561') DROP VIEW view_1_tab1_561

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_561

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_561') DROP VIEW view_2_tab1_561

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_561

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_561') DROP VIEW view_3_tab1_561

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_561

statement ok
CREATE VIEW view_1_tab1_561 AS SELECT pk, col0 FROM tab1 WHERE col0 = 548

statement ok
CREATE VIEW view_2_tab1_561 AS SELECT pk, col0 FROM tab1 WHERE NOT (col0 = 548)

statement ok
CREATE VIEW view_3_tab1_561 AS SELECT pk FROM view_1_tab1_561

query II rowsort label-3700-1
SELECT pk, col0 FROM tab1 WHERE col0 = 548
----

query II rowsort label-3700-2
SELECT pk, col0 FROM tab1 WHERE NOT (col0 = 548)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-3700-1
SELECT pk, col0 FROM view_1_tab1_561
----

query II rowsort label-3700-2
SELECT pk, col0 FROM view_2_tab1_561
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col0 = 548 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col0 = 548)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_561 UNION ALL SELECT pk, col0 FROM view_2_tab1_561
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col0 = 548 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col0 = 548)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_561 UNION SELECT pk, col0 FROM view_2_tab1_561
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-3700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col0 = 548 ) AS tab1_561
----

query I rowsort label-3700-3
SELECT * FROM view_3_tab1_561
----

query I rowsort label-3700-3
SELECT pk FROM tab1 WHERE col0 = 548
----

statement ok
DROP VIEW view_1_tab1_561

statement ok
DROP VIEW view_2_tab1_561

statement ok
DROP VIEW view_3_tab1_561

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_561') DROP VIEW view_1_tab2_561

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_561

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_561') DROP VIEW view_2_tab2_561

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_561

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_561') DROP VIEW view_3_tab2_561

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_561

statement ok
CREATE VIEW view_1_tab2_561 AS SELECT pk, col0 FROM tab2 WHERE col0 = 548

statement ok
CREATE VIEW view_2_tab2_561 AS SELECT pk, col0 FROM tab2 WHERE NOT (col0 = 548)

statement ok
CREATE VIEW view_3_tab2_561 AS SELECT pk FROM view_1_tab2_561

query II rowsort label-3700-1
SELECT pk, col0 FROM tab2 WHERE col0 = 548
----

query II rowsort label-3700-2
SELECT pk, col0 FROM tab2 WHERE NOT (col0 = 548)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-3700-1
SELECT pk, col0 FROM view_1_tab2_561
----

query II rowsort label-3700-2
SELECT pk, col0 FROM view_2_tab2_561
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col0 = 548 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col0 = 548)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_561 UNION ALL SELECT pk, col0 FROM view_2_tab2_561
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col0 = 548 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col0 = 548)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_561 UNION SELECT pk, col0 FROM view_2_tab2_561
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-3700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col0 = 548 ) AS tab2_561
----

query I rowsort label-3700-3
SELECT * FROM view_3_tab2_561
----

query I rowsort label-3700-3
SELECT pk FROM tab2 WHERE col0 = 548
----

statement ok
DROP VIEW view_1_tab2_561

statement ok
DROP VIEW view_2_tab2_561

statement ok
DROP VIEW view_3_tab2_561

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_561') DROP VIEW view_1_tab3_561

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_561

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_561') DROP VIEW view_2_tab3_561

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_561

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_561') DROP VIEW view_3_tab3_561

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_561

statement ok
CREATE VIEW view_1_tab3_561 AS SELECT pk, col0 FROM tab3 WHERE col0 = 548

statement ok
CREATE VIEW view_2_tab3_561 AS SELECT pk, col0 FROM tab3 WHERE NOT (col0 = 548)

statement ok
CREATE VIEW view_3_tab3_561 AS SELECT pk FROM view_1_tab3_561

query II rowsort label-3700-1
SELECT pk, col0 FROM tab3 WHERE col0 = 548
----

query II rowsort label-3700-2
SELECT pk, col0 FROM tab3 WHERE NOT (col0 = 548)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-3700-1
SELECT pk, col0 FROM view_1_tab3_561
----

query II rowsort label-3700-2
SELECT pk, col0 FROM view_2_tab3_561
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col0 = 548 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col0 = 548)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_561 UNION ALL SELECT pk, col0 FROM view_2_tab3_561
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col0 = 548 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col0 = 548)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_561 UNION SELECT pk, col0 FROM view_2_tab3_561
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-3700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col0 = 548 ) AS tab3_561
----

query I rowsort label-3700-3
SELECT * FROM view_3_tab3_561
----

query I rowsort label-3700-3
SELECT pk FROM tab3 WHERE col0 = 548
----

statement ok
DROP VIEW view_1_tab3_561

statement ok
DROP VIEW view_2_tab3_561

statement ok
DROP VIEW view_3_tab3_561

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_561') DROP VIEW view_1_tab4_561

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_561

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_561') DROP VIEW view_2_tab4_561

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_561

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_561') DROP VIEW view_3_tab4_561

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_561

statement ok
CREATE VIEW view_1_tab4_561 AS SELECT pk, col0 FROM tab4 WHERE col0 = 548

statement ok
CREATE VIEW view_2_tab4_561 AS SELECT pk, col0 FROM tab4 WHERE NOT (col0 = 548)

statement ok
CREATE VIEW view_3_tab4_561 AS SELECT pk FROM view_1_tab4_561

query II rowsort label-3700-1
SELECT pk, col0 FROM tab4 WHERE col0 = 548
----

query II rowsort label-3700-2
SELECT pk, col0 FROM tab4 WHERE NOT (col0 = 548)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-3700-1
SELECT pk, col0 FROM view_1_tab4_561
----

query II rowsort label-3700-2
SELECT pk, col0 FROM view_2_tab4_561
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col0 = 548 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col0 = 548)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_561 UNION ALL SELECT pk, col0 FROM view_2_tab4_561
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col0 = 548 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col0 = 548)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_561 UNION SELECT pk, col0 FROM view_2_tab4_561
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-3700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col0 = 548 ) AS tab4_561
----

query I rowsort label-3700-3
SELECT * FROM view_3_tab4_561
----

query I rowsort label-3700-3
SELECT pk FROM tab4 WHERE col0 = 548
----

statement ok
DROP VIEW view_1_tab4_561

statement ok
DROP VIEW view_2_tab4_561

statement ok
DROP VIEW view_3_tab4_561

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_562') DROP VIEW view_1_tab0_562

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_562

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_562') DROP VIEW view_2_tab0_562

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_562

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_562') DROP VIEW view_3_tab0_562

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_562

statement ok
CREATE VIEW view_1_tab0_562 AS SELECT pk, col0 FROM tab0 WHERE col0 > 444

statement ok
CREATE VIEW view_2_tab0_562 AS SELECT pk, col0 FROM tab0 WHERE NOT (col0 > 444)

statement ok
CREATE VIEW view_3_tab0_562 AS SELECT pk FROM view_1_tab0_562

query II rowsort label-3800-1
SELECT pk, col0 FROM tab0 WHERE col0 > 444
----
112 values hashing to 5789c7d38acf20a4567fd17a594e65af

query II rowsort label-3800-2
SELECT pk, col0 FROM tab0 WHERE NOT (col0 > 444)
----
88 values hashing to 167402ff2ad3af775807d6c69a3567af

query II rowsort label-3800-1
SELECT pk, col0 FROM view_1_tab0_562
----
112 values hashing to 5789c7d38acf20a4567fd17a594e65af

query II rowsort label-3800-2
SELECT pk, col0 FROM view_2_tab0_562
----
88 values hashing to 167402ff2ad3af775807d6c69a3567af

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col0 > 444 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col0 > 444)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_562 UNION ALL SELECT pk, col0 FROM view_2_tab0_562
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col0 > 444 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col0 > 444)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_562 UNION SELECT pk, col0 FROM view_2_tab0_562
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-3800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col0 > 444 ) AS tab0_562
----
56 values hashing to a02417a05ef78596b438cbfa07a33bdd

query I rowsort label-3800-3
SELECT * FROM view_3_tab0_562
----
56 values hashing to a02417a05ef78596b438cbfa07a33bdd

query I rowsort label-3800-3
SELECT pk FROM tab0 WHERE col0 > 444
----
56 values hashing to a02417a05ef78596b438cbfa07a33bdd

statement ok
DROP VIEW view_1_tab0_562

statement ok
DROP VIEW view_2_tab0_562

statement ok
DROP VIEW view_3_tab0_562

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_562') DROP VIEW view_1_tab1_562

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_562

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_562') DROP VIEW view_2_tab1_562

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_562

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_562') DROP VIEW view_3_tab1_562

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_562

statement ok
CREATE VIEW view_1_tab1_562 AS SELECT pk, col0 FROM tab1 WHERE col0 > 444

statement ok
CREATE VIEW view_2_tab1_562 AS SELECT pk, col0 FROM tab1 WHERE NOT (col0 > 444)

statement ok
CREATE VIEW view_3_tab1_562 AS SELECT pk FROM view_1_tab1_562

query II rowsort label-3800-1
SELECT pk, col0 FROM tab1 WHERE col0 > 444
----
112 values hashing to 5789c7d38acf20a4567fd17a594e65af

query II rowsort label-3800-2
SELECT pk, col0 FROM tab1 WHERE NOT (col0 > 444)
----
88 values hashing to 167402ff2ad3af775807d6c69a3567af

query II rowsort label-3800-1
SELECT pk, col0 FROM view_1_tab1_562
----
112 values hashing to 5789c7d38acf20a4567fd17a594e65af

query II rowsort label-3800-2
SELECT pk, col0 FROM view_2_tab1_562
----
88 values hashing to 167402ff2ad3af775807d6c69a3567af

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col0 > 444 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col0 > 444)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_562 UNION ALL SELECT pk, col0 FROM view_2_tab1_562
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col0 > 444 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col0 > 444)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_562 UNION SELECT pk, col0 FROM view_2_tab1_562
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-3800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col0 > 444 ) AS tab1_562
----
56 values hashing to a02417a05ef78596b438cbfa07a33bdd

query I rowsort label-3800-3
SELECT * FROM view_3_tab1_562
----
56 values hashing to a02417a05ef78596b438cbfa07a33bdd

query I rowsort label-3800-3
SELECT pk FROM tab1 WHERE col0 > 444
----
56 values hashing to a02417a05ef78596b438cbfa07a33bdd

statement ok
DROP VIEW view_1_tab1_562

statement ok
DROP VIEW view_2_tab1_562

statement ok
DROP VIEW view_3_tab1_562

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_562') DROP VIEW view_1_tab2_562

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_562

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_562') DROP VIEW view_2_tab2_562

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_562

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_562') DROP VIEW view_3_tab2_562

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_562

statement ok
CREATE VIEW view_1_tab2_562 AS SELECT pk, col0 FROM tab2 WHERE col0 > 444

statement ok
CREATE VIEW view_2_tab2_562 AS SELECT pk, col0 FROM tab2 WHERE NOT (col0 > 444)

statement ok
CREATE VIEW view_3_tab2_562 AS SELECT pk FROM view_1_tab2_562

query II rowsort label-3800-1
SELECT pk, col0 FROM tab2 WHERE col0 > 444
----
112 values hashing to 5789c7d38acf20a4567fd17a594e65af

query II rowsort label-3800-2
SELECT pk, col0 FROM tab2 WHERE NOT (col0 > 444)
----
88 values hashing to 167402ff2ad3af775807d6c69a3567af

query II rowsort label-3800-1
SELECT pk, col0 FROM view_1_tab2_562
----
112 values hashing to 5789c7d38acf20a4567fd17a594e65af

query II rowsort label-3800-2
SELECT pk, col0 FROM view_2_tab2_562
----
88 values hashing to 167402ff2ad3af775807d6c69a3567af

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col0 > 444 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col0 > 444)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_562 UNION ALL SELECT pk, col0 FROM view_2_tab2_562
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col0 > 444 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col0 > 444)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_562 UNION SELECT pk, col0 FROM view_2_tab2_562
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-3800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col0 > 444 ) AS tab2_562
----
56 values hashing to a02417a05ef78596b438cbfa07a33bdd

query I rowsort label-3800-3
SELECT * FROM view_3_tab2_562
----
56 values hashing to a02417a05ef78596b438cbfa07a33bdd

query I rowsort label-3800-3
SELECT pk FROM tab2 WHERE col0 > 444
----
56 values hashing to a02417a05ef78596b438cbfa07a33bdd

statement ok
DROP VIEW view_1_tab2_562

statement ok
DROP VIEW view_2_tab2_562

statement ok
DROP VIEW view_3_tab2_562

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_562') DROP VIEW view_1_tab3_562

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_562

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_562') DROP VIEW view_2_tab3_562

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_562

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_562') DROP VIEW view_3_tab3_562

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_562

statement ok
CREATE VIEW view_1_tab3_562 AS SELECT pk, col0 FROM tab3 WHERE col0 > 444

statement ok
CREATE VIEW view_2_tab3_562 AS SELECT pk, col0 FROM tab3 WHERE NOT (col0 > 444)

statement ok
CREATE VIEW view_3_tab3_562 AS SELECT pk FROM view_1_tab3_562

query II rowsort label-3800-1
SELECT pk, col0 FROM tab3 WHERE col0 > 444
----
112 values hashing to 5789c7d38acf20a4567fd17a594e65af

query II rowsort label-3800-2
SELECT pk, col0 FROM tab3 WHERE NOT (col0 > 444)
----
88 values hashing to 167402ff2ad3af775807d6c69a3567af

query II rowsort label-3800-1
SELECT pk, col0 FROM view_1_tab3_562
----
112 values hashing to 5789c7d38acf20a4567fd17a594e65af

query II rowsort label-3800-2
SELECT pk, col0 FROM view_2_tab3_562
----
88 values hashing to 167402ff2ad3af775807d6c69a3567af

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col0 > 444 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col0 > 444)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_562 UNION ALL SELECT pk, col0 FROM view_2_tab3_562
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col0 > 444 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col0 > 444)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_562 UNION SELECT pk, col0 FROM view_2_tab3_562
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-3800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col0 > 444 ) AS tab3_562
----
56 values hashing to a02417a05ef78596b438cbfa07a33bdd

query I rowsort label-3800-3
SELECT * FROM view_3_tab3_562
----
56 values hashing to a02417a05ef78596b438cbfa07a33bdd

query I rowsort label-3800-3
SELECT pk FROM tab3 WHERE col0 > 444
----
56 values hashing to a02417a05ef78596b438cbfa07a33bdd

statement ok
DROP VIEW view_1_tab3_562

statement ok
DROP VIEW view_2_tab3_562

statement ok
DROP VIEW view_3_tab3_562

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_562') DROP VIEW view_1_tab4_562

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_562

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_562') DROP VIEW view_2_tab4_562

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_562

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_562') DROP VIEW view_3_tab4_562

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_562

statement ok
CREATE VIEW view_1_tab4_562 AS SELECT pk, col0 FROM tab4 WHERE col0 > 444

statement ok
CREATE VIEW view_2_tab4_562 AS SELECT pk, col0 FROM tab4 WHERE NOT (col0 > 444)

statement ok
CREATE VIEW view_3_tab4_562 AS SELECT pk FROM view_1_tab4_562

query II rowsort label-3800-1
SELECT pk, col0 FROM tab4 WHERE col0 > 444
----
112 values hashing to 5789c7d38acf20a4567fd17a594e65af

query II rowsort label-3800-2
SELECT pk, col0 FROM tab4 WHERE NOT (col0 > 444)
----
88 values hashing to 167402ff2ad3af775807d6c69a3567af

query II rowsort label-3800-1
SELECT pk, col0 FROM view_1_tab4_562
----
112 values hashing to 5789c7d38acf20a4567fd17a594e65af

query II rowsort label-3800-2
SELECT pk, col0 FROM view_2_tab4_562
----
88 values hashing to 167402ff2ad3af775807d6c69a3567af

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col0 > 444 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col0 > 444)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_562 UNION ALL SELECT pk, col0 FROM view_2_tab4_562
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col0 > 444 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col0 > 444)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_562 UNION SELECT pk, col0 FROM view_2_tab4_562
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-3800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col0 > 444 ) AS tab4_562
----
56 values hashing to a02417a05ef78596b438cbfa07a33bdd

query I rowsort label-3800-3
SELECT * FROM view_3_tab4_562
----
56 values hashing to a02417a05ef78596b438cbfa07a33bdd

query I rowsort label-3800-3
SELECT pk FROM tab4 WHERE col0 > 444
----
56 values hashing to a02417a05ef78596b438cbfa07a33bdd

statement ok
DROP VIEW view_1_tab4_562

statement ok
DROP VIEW view_2_tab4_562

statement ok
DROP VIEW view_3_tab4_562

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_563') DROP VIEW view_1_tab0_563

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_563

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_563') DROP VIEW view_2_tab0_563

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_563

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_563') DROP VIEW view_3_tab0_563

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_563

statement ok
CREATE VIEW view_1_tab0_563 AS SELECT pk, col0 FROM tab0 WHERE col0 < 680

statement ok
CREATE VIEW view_2_tab0_563 AS SELECT pk, col0 FROM tab0 WHERE NOT (col0 < 680)

statement ok
CREATE VIEW view_3_tab0_563 AS SELECT pk FROM view_1_tab0_563

query II rowsort label-3900-1
SELECT pk, col0 FROM tab0 WHERE col0 < 680
----
132 values hashing to 9f64d59b3ac0d9e6af10adbc1bfe37c6

query II rowsort label-3900-2
SELECT pk, col0 FROM tab0 WHERE NOT (col0 < 680)
----
68 values hashing to 93b00f042af109fc6d38ad38b4c50daa

query II rowsort label-3900-1
SELECT pk, col0 FROM view_1_tab0_563
----
132 values hashing to 9f64d59b3ac0d9e6af10adbc1bfe37c6

query II rowsort label-3900-2
SELECT pk, col0 FROM view_2_tab0_563
----
68 values hashing to 93b00f042af109fc6d38ad38b4c50daa

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col0 < 680 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col0 < 680)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_563 UNION ALL SELECT pk, col0 FROM view_2_tab0_563
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col0 < 680 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col0 < 680)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_563 UNION SELECT pk, col0 FROM view_2_tab0_563
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-3900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col0 < 680 ) AS tab0_563
----
66 values hashing to 1f5a70284e3c639853886a7cec03e360

query I rowsort label-3900-3
SELECT * FROM view_3_tab0_563
----
66 values hashing to 1f5a70284e3c639853886a7cec03e360

query I rowsort label-3900-3
SELECT pk FROM tab0 WHERE col0 < 680
----
66 values hashing to 1f5a70284e3c639853886a7cec03e360

statement ok
DROP VIEW view_1_tab0_563

statement ok
DROP VIEW view_2_tab0_563

statement ok
DROP VIEW view_3_tab0_563

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_563') DROP VIEW view_1_tab1_563

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_563

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_563') DROP VIEW view_2_tab1_563

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_563

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_563') DROP VIEW view_3_tab1_563

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_563

statement ok
CREATE VIEW view_1_tab1_563 AS SELECT pk, col0 FROM tab1 WHERE col0 < 680

statement ok
CREATE VIEW view_2_tab1_563 AS SELECT pk, col0 FROM tab1 WHERE NOT (col0 < 680)

statement ok
CREATE VIEW view_3_tab1_563 AS SELECT pk FROM view_1_tab1_563

query II rowsort label-3900-1
SELECT pk, col0 FROM tab1 WHERE col0 < 680
----
132 values hashing to 9f64d59b3ac0d9e6af10adbc1bfe37c6

query II rowsort label-3900-2
SELECT pk, col0 FROM tab1 WHERE NOT (col0 < 680)
----
68 values hashing to 93b00f042af109fc6d38ad38b4c50daa

query II rowsort label-3900-1
SELECT pk, col0 FROM view_1_tab1_563
----
132 values hashing to 9f64d59b3ac0d9e6af10adbc1bfe37c6

query II rowsort label-3900-2
SELECT pk, col0 FROM view_2_tab1_563
----
68 values hashing to 93b00f042af109fc6d38ad38b4c50daa

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col0 < 680 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col0 < 680)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_563 UNION ALL SELECT pk, col0 FROM view_2_tab1_563
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col0 < 680 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col0 < 680)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_563 UNION SELECT pk, col0 FROM view_2_tab1_563
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-3900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col0 < 680 ) AS tab1_563
----
66 values hashing to 1f5a70284e3c639853886a7cec03e360

query I rowsort label-3900-3
SELECT * FROM view_3_tab1_563
----
66 values hashing to 1f5a70284e3c639853886a7cec03e360

query I rowsort label-3900-3
SELECT pk FROM tab1 WHERE col0 < 680
----
66 values hashing to 1f5a70284e3c639853886a7cec03e360

statement ok
DROP VIEW view_1_tab1_563

statement ok
DROP VIEW view_2_tab1_563

statement ok
DROP VIEW view_3_tab1_563

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_563') DROP VIEW view_1_tab2_563

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_563

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_563') DROP VIEW view_2_tab2_563

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_563

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_563') DROP VIEW view_3_tab2_563

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_563

statement ok
CREATE VIEW view_1_tab2_563 AS SELECT pk, col0 FROM tab2 WHERE col0 < 680

statement ok
CREATE VIEW view_2_tab2_563 AS SELECT pk, col0 FROM tab2 WHERE NOT (col0 < 680)

statement ok
CREATE VIEW view_3_tab2_563 AS SELECT pk FROM view_1_tab2_563

query II rowsort label-3900-1
SELECT pk, col0 FROM tab2 WHERE col0 < 680
----
132 values hashing to 9f64d59b3ac0d9e6af10adbc1bfe37c6

query II rowsort label-3900-2
SELECT pk, col0 FROM tab2 WHERE NOT (col0 < 680)
----
68 values hashing to 93b00f042af109fc6d38ad38b4c50daa

query II rowsort label-3900-1
SELECT pk, col0 FROM view_1_tab2_563
----
132 values hashing to 9f64d59b3ac0d9e6af10adbc1bfe37c6

query II rowsort label-3900-2
SELECT pk, col0 FROM view_2_tab2_563
----
68 values hashing to 93b00f042af109fc6d38ad38b4c50daa

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col0 < 680 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col0 < 680)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_563 UNION ALL SELECT pk, col0 FROM view_2_tab2_563
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col0 < 680 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col0 < 680)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_563 UNION SELECT pk, col0 FROM view_2_tab2_563
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-3900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col0 < 680 ) AS tab2_563
----
66 values hashing to 1f5a70284e3c639853886a7cec03e360

query I rowsort label-3900-3
SELECT * FROM view_3_tab2_563
----
66 values hashing to 1f5a70284e3c639853886a7cec03e360

query I rowsort label-3900-3
SELECT pk FROM tab2 WHERE col0 < 680
----
66 values hashing to 1f5a70284e3c639853886a7cec03e360

statement ok
DROP VIEW view_1_tab2_563

statement ok
DROP VIEW view_2_tab2_563

statement ok
DROP VIEW view_3_tab2_563

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_563') DROP VIEW view_1_tab3_563

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_563

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_563') DROP VIEW view_2_tab3_563

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_563

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_563') DROP VIEW view_3_tab3_563

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_563

statement ok
CREATE VIEW view_1_tab3_563 AS SELECT pk, col0 FROM tab3 WHERE col0 < 680

statement ok
CREATE VIEW view_2_tab3_563 AS SELECT pk, col0 FROM tab3 WHERE NOT (col0 < 680)

statement ok
CREATE VIEW view_3_tab3_563 AS SELECT pk FROM view_1_tab3_563

query II rowsort label-3900-1
SELECT pk, col0 FROM tab3 WHERE col0 < 680
----
132 values hashing to 9f64d59b3ac0d9e6af10adbc1bfe37c6

query II rowsort label-3900-2
SELECT pk, col0 FROM tab3 WHERE NOT (col0 < 680)
----
68 values hashing to 93b00f042af109fc6d38ad38b4c50daa

query II rowsort label-3900-1
SELECT pk, col0 FROM view_1_tab3_563
----
132 values hashing to 9f64d59b3ac0d9e6af10adbc1bfe37c6

query II rowsort label-3900-2
SELECT pk, col0 FROM view_2_tab3_563
----
68 values hashing to 93b00f042af109fc6d38ad38b4c50daa

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col0 < 680 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col0 < 680)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_563 UNION ALL SELECT pk, col0 FROM view_2_tab3_563
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col0 < 680 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col0 < 680)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_563 UNION SELECT pk, col0 FROM view_2_tab3_563
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-3900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col0 < 680 ) AS tab3_563
----
66 values hashing to 1f5a70284e3c639853886a7cec03e360

query I rowsort label-3900-3
SELECT * FROM view_3_tab3_563
----
66 values hashing to 1f5a70284e3c639853886a7cec03e360

query I rowsort label-3900-3
SELECT pk FROM tab3 WHERE col0 < 680
----
66 values hashing to 1f5a70284e3c639853886a7cec03e360

statement ok
DROP VIEW view_1_tab3_563

statement ok
DROP VIEW view_2_tab3_563

statement ok
DROP VIEW view_3_tab3_563

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_563') DROP VIEW view_1_tab4_563

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_563

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_563') DROP VIEW view_2_tab4_563

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_563

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_563') DROP VIEW view_3_tab4_563

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_563

statement ok
CREATE VIEW view_1_tab4_563 AS SELECT pk, col0 FROM tab4 WHERE col0 < 680

statement ok
CREATE VIEW view_2_tab4_563 AS SELECT pk, col0 FROM tab4 WHERE NOT (col0 < 680)

statement ok
CREATE VIEW view_3_tab4_563 AS SELECT pk FROM view_1_tab4_563

query II rowsort label-3900-1
SELECT pk, col0 FROM tab4 WHERE col0 < 680
----
132 values hashing to 9f64d59b3ac0d9e6af10adbc1bfe37c6

query II rowsort label-3900-2
SELECT pk, col0 FROM tab4 WHERE NOT (col0 < 680)
----
68 values hashing to 93b00f042af109fc6d38ad38b4c50daa

query II rowsort label-3900-1
SELECT pk, col0 FROM view_1_tab4_563
----
132 values hashing to 9f64d59b3ac0d9e6af10adbc1bfe37c6

query II rowsort label-3900-2
SELECT pk, col0 FROM view_2_tab4_563
----
68 values hashing to 93b00f042af109fc6d38ad38b4c50daa

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col0 < 680 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col0 < 680)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_563 UNION ALL SELECT pk, col0 FROM view_2_tab4_563
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col0 < 680 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col0 < 680)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_563 UNION SELECT pk, col0 FROM view_2_tab4_563
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-3900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col0 < 680 ) AS tab4_563
----
66 values hashing to 1f5a70284e3c639853886a7cec03e360

query I rowsort label-3900-3
SELECT * FROM view_3_tab4_563
----
66 values hashing to 1f5a70284e3c639853886a7cec03e360

query I rowsort label-3900-3
SELECT pk FROM tab4 WHERE col0 < 680
----
66 values hashing to 1f5a70284e3c639853886a7cec03e360

statement ok
DROP VIEW view_1_tab4_563

statement ok
DROP VIEW view_2_tab4_563

statement ok
DROP VIEW view_3_tab4_563

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_564') DROP VIEW view_1_tab0_564

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_564

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_564') DROP VIEW view_2_tab0_564

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_564

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_564') DROP VIEW view_3_tab0_564

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_564

statement ok
CREATE VIEW view_1_tab0_564 AS SELECT pk, col0 FROM tab0 WHERE col4 = 987.12

statement ok
CREATE VIEW view_2_tab0_564 AS SELECT pk, col0 FROM tab0 WHERE NOT (col4 = 987.12)

statement ok
CREATE VIEW view_3_tab0_564 AS SELECT pk FROM view_1_tab0_564

query II rowsort label-4000-1
SELECT pk, col0 FROM tab0 WHERE col4 = 987.12
----

query II rowsort label-4000-2
SELECT pk, col0 FROM tab0 WHERE NOT (col4 = 987.12)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-4000-1
SELECT pk, col0 FROM view_1_tab0_564
----

query II rowsort label-4000-2
SELECT pk, col0 FROM view_2_tab0_564
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col4 = 987.12 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col4 = 987.12)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_564 UNION ALL SELECT pk, col0 FROM view_2_tab0_564
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col4 = 987.12 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col4 = 987.12)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_564 UNION SELECT pk, col0 FROM view_2_tab0_564
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-4000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col4 = 987.12 ) AS tab0_564
----

query I rowsort label-4000-3
SELECT * FROM view_3_tab0_564
----

query I rowsort label-4000-3
SELECT pk FROM tab0 WHERE col4 = 987.12
----

statement ok
DROP VIEW view_1_tab0_564

statement ok
DROP VIEW view_2_tab0_564

statement ok
DROP VIEW view_3_tab0_564

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_564') DROP VIEW view_1_tab1_564

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_564

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_564') DROP VIEW view_2_tab1_564

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_564

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_564') DROP VIEW view_3_tab1_564

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_564

statement ok
CREATE VIEW view_1_tab1_564 AS SELECT pk, col0 FROM tab1 WHERE col4 = 987.12

statement ok
CREATE VIEW view_2_tab1_564 AS SELECT pk, col0 FROM tab1 WHERE NOT (col4 = 987.12)

statement ok
CREATE VIEW view_3_tab1_564 AS SELECT pk FROM view_1_tab1_564

query II rowsort label-4000-1
SELECT pk, col0 FROM tab1 WHERE col4 = 987.12
----

query II rowsort label-4000-2
SELECT pk, col0 FROM tab1 WHERE NOT (col4 = 987.12)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-4000-1
SELECT pk, col0 FROM view_1_tab1_564
----

query II rowsort label-4000-2
SELECT pk, col0 FROM view_2_tab1_564
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col4 = 987.12 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col4 = 987.12)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_564 UNION ALL SELECT pk, col0 FROM view_2_tab1_564
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col4 = 987.12 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col4 = 987.12)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_564 UNION SELECT pk, col0 FROM view_2_tab1_564
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-4000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col4 = 987.12 ) AS tab1_564
----

query I rowsort label-4000-3
SELECT * FROM view_3_tab1_564
----

query I rowsort label-4000-3
SELECT pk FROM tab1 WHERE col4 = 987.12
----

statement ok
DROP VIEW view_1_tab1_564

statement ok
DROP VIEW view_2_tab1_564

statement ok
DROP VIEW view_3_tab1_564

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_564') DROP VIEW view_1_tab2_564

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_564

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_564') DROP VIEW view_2_tab2_564

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_564

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_564') DROP VIEW view_3_tab2_564

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_564

statement ok
CREATE VIEW view_1_tab2_564 AS SELECT pk, col0 FROM tab2 WHERE col4 = 987.12

statement ok
CREATE VIEW view_2_tab2_564 AS SELECT pk, col0 FROM tab2 WHERE NOT (col4 = 987.12)

statement ok
CREATE VIEW view_3_tab2_564 AS SELECT pk FROM view_1_tab2_564

query II rowsort label-4000-1
SELECT pk, col0 FROM tab2 WHERE col4 = 987.12
----

query II rowsort label-4000-2
SELECT pk, col0 FROM tab2 WHERE NOT (col4 = 987.12)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-4000-1
SELECT pk, col0 FROM view_1_tab2_564
----

query II rowsort label-4000-2
SELECT pk, col0 FROM view_2_tab2_564
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col4 = 987.12 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col4 = 987.12)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_564 UNION ALL SELECT pk, col0 FROM view_2_tab2_564
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col4 = 987.12 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col4 = 987.12)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_564 UNION SELECT pk, col0 FROM view_2_tab2_564
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-4000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col4 = 987.12 ) AS tab2_564
----

query I rowsort label-4000-3
SELECT * FROM view_3_tab2_564
----

query I rowsort label-4000-3
SELECT pk FROM tab2 WHERE col4 = 987.12
----

statement ok
DROP VIEW view_1_tab2_564

statement ok
DROP VIEW view_2_tab2_564

statement ok
DROP VIEW view_3_tab2_564

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_564') DROP VIEW view_1_tab3_564

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_564

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_564') DROP VIEW view_2_tab3_564

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_564

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_564') DROP VIEW view_3_tab3_564

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_564

statement ok
CREATE VIEW view_1_tab3_564 AS SELECT pk, col0 FROM tab3 WHERE col4 = 987.12

statement ok
CREATE VIEW view_2_tab3_564 AS SELECT pk, col0 FROM tab3 WHERE NOT (col4 = 987.12)

statement ok
CREATE VIEW view_3_tab3_564 AS SELECT pk FROM view_1_tab3_564

query II rowsort label-4000-1
SELECT pk, col0 FROM tab3 WHERE col4 = 987.12
----

query II rowsort label-4000-2
SELECT pk, col0 FROM tab3 WHERE NOT (col4 = 987.12)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-4000-1
SELECT pk, col0 FROM view_1_tab3_564
----

query II rowsort label-4000-2
SELECT pk, col0 FROM view_2_tab3_564
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col4 = 987.12 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col4 = 987.12)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_564 UNION ALL SELECT pk, col0 FROM view_2_tab3_564
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col4 = 987.12 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col4 = 987.12)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_564 UNION SELECT pk, col0 FROM view_2_tab3_564
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-4000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col4 = 987.12 ) AS tab3_564
----

query I rowsort label-4000-3
SELECT * FROM view_3_tab3_564
----

query I rowsort label-4000-3
SELECT pk FROM tab3 WHERE col4 = 987.12
----

statement ok
DROP VIEW view_1_tab3_564

statement ok
DROP VIEW view_2_tab3_564

statement ok
DROP VIEW view_3_tab3_564

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_564') DROP VIEW view_1_tab4_564

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_564

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_564') DROP VIEW view_2_tab4_564

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_564

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_564') DROP VIEW view_3_tab4_564

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_564

statement ok
CREATE VIEW view_1_tab4_564 AS SELECT pk, col0 FROM tab4 WHERE col4 = 987.12

statement ok
CREATE VIEW view_2_tab4_564 AS SELECT pk, col0 FROM tab4 WHERE NOT (col4 = 987.12)

statement ok
CREATE VIEW view_3_tab4_564 AS SELECT pk FROM view_1_tab4_564

query II rowsort label-4000-1
SELECT pk, col0 FROM tab4 WHERE col4 = 987.12
----

query II rowsort label-4000-2
SELECT pk, col0 FROM tab4 WHERE NOT (col4 = 987.12)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-4000-1
SELECT pk, col0 FROM view_1_tab4_564
----

query II rowsort label-4000-2
SELECT pk, col0 FROM view_2_tab4_564
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col4 = 987.12 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col4 = 987.12)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_564 UNION ALL SELECT pk, col0 FROM view_2_tab4_564
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col4 = 987.12 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col4 = 987.12)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_564 UNION SELECT pk, col0 FROM view_2_tab4_564
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-4000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col4 = 987.12 ) AS tab4_564
----

query I rowsort label-4000-3
SELECT * FROM view_3_tab4_564
----

query I rowsort label-4000-3
SELECT pk FROM tab4 WHERE col4 = 987.12
----

statement ok
DROP VIEW view_1_tab4_564

statement ok
DROP VIEW view_2_tab4_564

statement ok
DROP VIEW view_3_tab4_564

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_565') DROP VIEW view_1_tab0_565

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_565

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_565') DROP VIEW view_2_tab0_565

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_565

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_565') DROP VIEW view_3_tab0_565

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_565

statement ok
CREATE VIEW view_1_tab0_565 AS SELECT pk, col0 FROM tab0 WHERE (col4 > 357.73 OR col0 >= 898 AND (col4 = 369.9) OR col1 IS NULL OR (col0 > 50) AND col3 > 433 OR col3 <= 284) AND col3 IS NULL

statement ok
CREATE VIEW view_2_tab0_565 AS SELECT pk, col0 FROM tab0 WHERE NOT ((col4 > 357.73 OR col0 >= 898 AND (col4 = 369.9) OR col1 IS NULL OR (col0 > 50) AND col3 > 433 OR col3 <= 284) AND col3 IS NULL)

statement ok
CREATE VIEW view_3_tab0_565 AS SELECT pk FROM view_1_tab0_565

query II rowsort label-4100-1
SELECT pk, col0 FROM tab0 WHERE (col4 > 357.73 OR col0 >= 898 AND (col4 = 369.9) OR col1 IS NULL OR (col0 > 50) AND col3 > 433 OR col3 <= 284) AND col3 IS NULL
----

query II rowsort label-4100-2
SELECT pk, col0 FROM tab0 WHERE NOT ((col4 > 357.73 OR col0 >= 898 AND (col4 = 369.9) OR col1 IS NULL OR (col0 > 50) AND col3 > 433 OR col3 <= 284) AND col3 IS NULL)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-4100-1
SELECT pk, col0 FROM view_1_tab0_565
----

query II rowsort label-4100-2
SELECT pk, col0 FROM view_2_tab0_565
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col4 > 357.73 OR col0 >= 898 AND (col4 = 369.9) OR col1 IS NULL OR (col0 > 50) AND col3 > 433 OR col3 <= 284) AND col3 IS NULL UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT ((col4 > 357.73 OR col0 >= 898 AND (col4 = 369.9) OR col1 IS NULL OR (col0 > 50) AND col3 > 433 OR col3 <= 284) AND col3 IS NULL)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_565 UNION ALL SELECT pk, col0 FROM view_2_tab0_565
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col4 > 357.73 OR col0 >= 898 AND (col4 = 369.9) OR col1 IS NULL OR (col0 > 50) AND col3 > 433 OR col3 <= 284) AND col3 IS NULL UNION SELECT pk, col0 FROM tab0 WHERE NOT ((col4 > 357.73 OR col0 >= 898 AND (col4 = 369.9) OR col1 IS NULL OR (col0 > 50) AND col3 > 433 OR col3 <= 284) AND col3 IS NULL)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_565 UNION SELECT pk, col0 FROM view_2_tab0_565
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-4100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE (col4 > 357.73 OR col0 >= 898 AND (col4 = 369.9) OR col1 IS NULL OR (col0 > 50) AND col3 > 433 OR col3 <= 284) AND col3 IS NULL ) AS tab0_565
----

query I rowsort label-4100-3
SELECT * FROM view_3_tab0_565
----

query I rowsort label-4100-3
SELECT pk FROM tab0 WHERE (col4 > 357.73 OR col0 >= 898 AND (col4 = 369.9) OR col1 IS NULL OR (col0 > 50) AND col3 > 433 OR col3 <= 284) AND col3 IS NULL
----

statement ok
DROP VIEW view_1_tab0_565

statement ok
DROP VIEW view_2_tab0_565

statement ok
DROP VIEW view_3_tab0_565

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_565') DROP VIEW view_1_tab1_565

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_565

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_565') DROP VIEW view_2_tab1_565

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_565

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_565') DROP VIEW view_3_tab1_565

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_565

statement ok
CREATE VIEW view_1_tab1_565 AS SELECT pk, col0 FROM tab1 WHERE (col4 > 357.73 OR col0 >= 898 AND (col4 = 369.9) OR col1 IS NULL OR (col0 > 50) AND col3 > 433 OR col3 <= 284) AND col3 IS NULL

statement ok
CREATE VIEW view_2_tab1_565 AS SELECT pk, col0 FROM tab1 WHERE NOT ((col4 > 357.73 OR col0 >= 898 AND (col4 = 369.9) OR col1 IS NULL OR (col0 > 50) AND col3 > 433 OR col3 <= 284) AND col3 IS NULL)

statement ok
CREATE VIEW view_3_tab1_565 AS SELECT pk FROM view_1_tab1_565

query II rowsort label-4100-1
SELECT pk, col0 FROM tab1 WHERE (col4 > 357.73 OR col0 >= 898 AND (col4 = 369.9) OR col1 IS NULL OR (col0 > 50) AND col3 > 433 OR col3 <= 284) AND col3 IS NULL
----

query II rowsort label-4100-2
SELECT pk, col0 FROM tab1 WHERE NOT ((col4 > 357.73 OR col0 >= 898 AND (col4 = 369.9) OR col1 IS NULL OR (col0 > 50) AND col3 > 433 OR col3 <= 284) AND col3 IS NULL)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-4100-1
SELECT pk, col0 FROM view_1_tab1_565
----

query II rowsort label-4100-2
SELECT pk, col0 FROM view_2_tab1_565
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col4 > 357.73 OR col0 >= 898 AND (col4 = 369.9) OR col1 IS NULL OR (col0 > 50) AND col3 > 433 OR col3 <= 284) AND col3 IS NULL UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT ((col4 > 357.73 OR col0 >= 898 AND (col4 = 369.9) OR col1 IS NULL OR (col0 > 50) AND col3 > 433 OR col3 <= 284) AND col3 IS NULL)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_565 UNION ALL SELECT pk, col0 FROM view_2_tab1_565
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col4 > 357.73 OR col0 >= 898 AND (col4 = 369.9) OR col1 IS NULL OR (col0 > 50) AND col3 > 433 OR col3 <= 284) AND col3 IS NULL UNION SELECT pk, col0 FROM tab1 WHERE NOT ((col4 > 357.73 OR col0 >= 898 AND (col4 = 369.9) OR col1 IS NULL OR (col0 > 50) AND col3 > 433 OR col3 <= 284) AND col3 IS NULL)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_565 UNION SELECT pk, col0 FROM view_2_tab1_565
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-4100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE (col4 > 357.73 OR col0 >= 898 AND (col4 = 369.9) OR col1 IS NULL OR (col0 > 50) AND col3 > 433 OR col3 <= 284) AND col3 IS NULL ) AS tab1_565
----

query I rowsort label-4100-3
SELECT * FROM view_3_tab1_565
----

query I rowsort label-4100-3
SELECT pk FROM tab1 WHERE (col4 > 357.73 OR col0 >= 898 AND (col4 = 369.9) OR col1 IS NULL OR (col0 > 50) AND col3 > 433 OR col3 <= 284) AND col3 IS NULL
----

statement ok
DROP VIEW view_1_tab1_565

statement ok
DROP VIEW view_2_tab1_565

statement ok
DROP VIEW view_3_tab1_565

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_565') DROP VIEW view_1_tab2_565

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_565

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_565') DROP VIEW view_2_tab2_565

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_565

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_565') DROP VIEW view_3_tab2_565

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_565

statement ok
CREATE VIEW view_1_tab2_565 AS SELECT pk, col0 FROM tab2 WHERE (col4 > 357.73 OR col0 >= 898 AND (col4 = 369.9) OR col1 IS NULL OR (col0 > 50) AND col3 > 433 OR col3 <= 284) AND col3 IS NULL

statement ok
CREATE VIEW view_2_tab2_565 AS SELECT pk, col0 FROM tab2 WHERE NOT ((col4 > 357.73 OR col0 >= 898 AND (col4 = 369.9) OR col1 IS NULL OR (col0 > 50) AND col3 > 433 OR col3 <= 284) AND col3 IS NULL)

statement ok
CREATE VIEW view_3_tab2_565 AS SELECT pk FROM view_1_tab2_565

query II rowsort label-4100-1
SELECT pk, col0 FROM tab2 WHERE (col4 > 357.73 OR col0 >= 898 AND (col4 = 369.9) OR col1 IS NULL OR (col0 > 50) AND col3 > 433 OR col3 <= 284) AND col3 IS NULL
----

query II rowsort label-4100-2
SELECT pk, col0 FROM tab2 WHERE NOT ((col4 > 357.73 OR col0 >= 898 AND (col4 = 369.9) OR col1 IS NULL OR (col0 > 50) AND col3 > 433 OR col3 <= 284) AND col3 IS NULL)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-4100-1
SELECT pk, col0 FROM view_1_tab2_565
----

query II rowsort label-4100-2
SELECT pk, col0 FROM view_2_tab2_565
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col4 > 357.73 OR col0 >= 898 AND (col4 = 369.9) OR col1 IS NULL OR (col0 > 50) AND col3 > 433 OR col3 <= 284) AND col3 IS NULL UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT ((col4 > 357.73 OR col0 >= 898 AND (col4 = 369.9) OR col1 IS NULL OR (col0 > 50) AND col3 > 433 OR col3 <= 284) AND col3 IS NULL)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_565 UNION ALL SELECT pk, col0 FROM view_2_tab2_565
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col4 > 357.73 OR col0 >= 898 AND (col4 = 369.9) OR col1 IS NULL OR (col0 > 50) AND col3 > 433 OR col3 <= 284) AND col3 IS NULL UNION SELECT pk, col0 FROM tab2 WHERE NOT ((col4 > 357.73 OR col0 >= 898 AND (col4 = 369.9) OR col1 IS NULL OR (col0 > 50) AND col3 > 433 OR col3 <= 284) AND col3 IS NULL)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_565 UNION SELECT pk, col0 FROM view_2_tab2_565
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-4100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE (col4 > 357.73 OR col0 >= 898 AND (col4 = 369.9) OR col1 IS NULL OR (col0 > 50) AND col3 > 433 OR col3 <= 284) AND col3 IS NULL ) AS tab2_565
----

query I rowsort label-4100-3
SELECT * FROM view_3_tab2_565
----

query I rowsort label-4100-3
SELECT pk FROM tab2 WHERE (col4 > 357.73 OR col0 >= 898 AND (col4 = 369.9) OR col1 IS NULL OR (col0 > 50) AND col3 > 433 OR col3 <= 284) AND col3 IS NULL
----

statement ok
DROP VIEW view_1_tab2_565

statement ok
DROP VIEW view_2_tab2_565

statement ok
DROP VIEW view_3_tab2_565

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_565') DROP VIEW view_1_tab3_565

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_565

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_565') DROP VIEW view_2_tab3_565

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_565

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_565') DROP VIEW view_3_tab3_565

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_565

statement ok
CREATE VIEW view_1_tab3_565 AS SELECT pk, col0 FROM tab3 WHERE (col4 > 357.73 OR col0 >= 898 AND (col4 = 369.9) OR col1 IS NULL OR (col0 > 50) AND col3 > 433 OR col3 <= 284) AND col3 IS NULL

statement ok
CREATE VIEW view_2_tab3_565 AS SELECT pk, col0 FROM tab3 WHERE NOT ((col4 > 357.73 OR col0 >= 898 AND (col4 = 369.9) OR col1 IS NULL OR (col0 > 50) AND col3 > 433 OR col3 <= 284) AND col3 IS NULL)

statement ok
CREATE VIEW view_3_tab3_565 AS SELECT pk FROM view_1_tab3_565

query II rowsort label-4100-1
SELECT pk, col0 FROM tab3 WHERE (col4 > 357.73 OR col0 >= 898 AND (col4 = 369.9) OR col1 IS NULL OR (col0 > 50) AND col3 > 433 OR col3 <= 284) AND col3 IS NULL
----

query II rowsort label-4100-2
SELECT pk, col0 FROM tab3 WHERE NOT ((col4 > 357.73 OR col0 >= 898 AND (col4 = 369.9) OR col1 IS NULL OR (col0 > 50) AND col3 > 433 OR col3 <= 284) AND col3 IS NULL)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-4100-1
SELECT pk, col0 FROM view_1_tab3_565
----

query II rowsort label-4100-2
SELECT pk, col0 FROM view_2_tab3_565
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col4 > 357.73 OR col0 >= 898 AND (col4 = 369.9) OR col1 IS NULL OR (col0 > 50) AND col3 > 433 OR col3 <= 284) AND col3 IS NULL UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT ((col4 > 357.73 OR col0 >= 898 AND (col4 = 369.9) OR col1 IS NULL OR (col0 > 50) AND col3 > 433 OR col3 <= 284) AND col3 IS NULL)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_565 UNION ALL SELECT pk, col0 FROM view_2_tab3_565
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col4 > 357.73 OR col0 >= 898 AND (col4 = 369.9) OR col1 IS NULL OR (col0 > 50) AND col3 > 433 OR col3 <= 284) AND col3 IS NULL UNION SELECT pk, col0 FROM tab3 WHERE NOT ((col4 > 357.73 OR col0 >= 898 AND (col4 = 369.9) OR col1 IS NULL OR (col0 > 50) AND col3 > 433 OR col3 <= 284) AND col3 IS NULL)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_565 UNION SELECT pk, col0 FROM view_2_tab3_565
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-4100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE (col4 > 357.73 OR col0 >= 898 AND (col4 = 369.9) OR col1 IS NULL OR (col0 > 50) AND col3 > 433 OR col3 <= 284) AND col3 IS NULL ) AS tab3_565
----

query I rowsort label-4100-3
SELECT * FROM view_3_tab3_565
----

query I rowsort label-4100-3
SELECT pk FROM tab3 WHERE (col4 > 357.73 OR col0 >= 898 AND (col4 = 369.9) OR col1 IS NULL OR (col0 > 50) AND col3 > 433 OR col3 <= 284) AND col3 IS NULL
----

statement ok
DROP VIEW view_1_tab3_565

statement ok
DROP VIEW view_2_tab3_565

statement ok
DROP VIEW view_3_tab3_565

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_565') DROP VIEW view_1_tab4_565

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_565

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_565') DROP VIEW view_2_tab4_565

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_565

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_565') DROP VIEW view_3_tab4_565

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_565

statement ok
CREATE VIEW view_1_tab4_565 AS SELECT pk, col0 FROM tab4 WHERE (col4 > 357.73 OR col0 >= 898 AND (col4 = 369.9) OR col1 IS NULL OR (col0 > 50) AND col3 > 433 OR col3 <= 284) AND col3 IS NULL

statement ok
CREATE VIEW view_2_tab4_565 AS SELECT pk, col0 FROM tab4 WHERE NOT ((col4 > 357.73 OR col0 >= 898 AND (col4 = 369.9) OR col1 IS NULL OR (col0 > 50) AND col3 > 433 OR col3 <= 284) AND col3 IS NULL)

statement ok
CREATE VIEW view_3_tab4_565 AS SELECT pk FROM view_1_tab4_565

query II rowsort label-4100-1
SELECT pk, col0 FROM tab4 WHERE (col4 > 357.73 OR col0 >= 898 AND (col4 = 369.9) OR col1 IS NULL OR (col0 > 50) AND col3 > 433 OR col3 <= 284) AND col3 IS NULL
----

query II rowsort label-4100-2
SELECT pk, col0 FROM tab4 WHERE NOT ((col4 > 357.73 OR col0 >= 898 AND (col4 = 369.9) OR col1 IS NULL OR (col0 > 50) AND col3 > 433 OR col3 <= 284) AND col3 IS NULL)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-4100-1
SELECT pk, col0 FROM view_1_tab4_565
----

query II rowsort label-4100-2
SELECT pk, col0 FROM view_2_tab4_565
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col4 > 357.73 OR col0 >= 898 AND (col4 = 369.9) OR col1 IS NULL OR (col0 > 50) AND col3 > 433 OR col3 <= 284) AND col3 IS NULL UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT ((col4 > 357.73 OR col0 >= 898 AND (col4 = 369.9) OR col1 IS NULL OR (col0 > 50) AND col3 > 433 OR col3 <= 284) AND col3 IS NULL)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_565 UNION ALL SELECT pk, col0 FROM view_2_tab4_565
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col4 > 357.73 OR col0 >= 898 AND (col4 = 369.9) OR col1 IS NULL OR (col0 > 50) AND col3 > 433 OR col3 <= 284) AND col3 IS NULL UNION SELECT pk, col0 FROM tab4 WHERE NOT ((col4 > 357.73 OR col0 >= 898 AND (col4 = 369.9) OR col1 IS NULL OR (col0 > 50) AND col3 > 433 OR col3 <= 284) AND col3 IS NULL)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_565 UNION SELECT pk, col0 FROM view_2_tab4_565
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-4100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE (col4 > 357.73 OR col0 >= 898 AND (col4 = 369.9) OR col1 IS NULL OR (col0 > 50) AND col3 > 433 OR col3 <= 284) AND col3 IS NULL ) AS tab4_565
----

query I rowsort label-4100-3
SELECT * FROM view_3_tab4_565
----

query I rowsort label-4100-3
SELECT pk FROM tab4 WHERE (col4 > 357.73 OR col0 >= 898 AND (col4 = 369.9) OR col1 IS NULL OR (col0 > 50) AND col3 > 433 OR col3 <= 284) AND col3 IS NULL
----

statement ok
DROP VIEW view_1_tab4_565

statement ok
DROP VIEW view_2_tab4_565

statement ok
DROP VIEW view_3_tab4_565

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_566') DROP VIEW view_1_tab0_566

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_566

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_566') DROP VIEW view_2_tab0_566

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_566

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_566') DROP VIEW view_3_tab0_566

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_566

statement ok
CREATE VIEW view_1_tab0_566 AS SELECT pk, col0 FROM tab0 WHERE (col3 > 999 AND col1 = 524.55) OR col3 > 124

statement ok
CREATE VIEW view_2_tab0_566 AS SELECT pk, col0 FROM tab0 WHERE NOT ((col3 > 999 AND col1 = 524.55) OR col3 > 124)

statement ok
CREATE VIEW view_3_tab0_566 AS SELECT pk FROM view_1_tab0_566

query II rowsort label-4200-1
SELECT pk, col0 FROM tab0 WHERE (col3 > 999 AND col1 = 524.55) OR col3 > 124
----
180 values hashing to a130a073fe6c43d5002971ca3479e818

query II rowsort label-4200-2
SELECT pk, col0 FROM tab0 WHERE NOT ((col3 > 999 AND col1 = 524.55) OR col3 > 124)
----
20 values hashing to 77ba8eb1496f392cfd54a38a3462df64

query II rowsort label-4200-1
SELECT pk, col0 FROM view_1_tab0_566
----
180 values hashing to a130a073fe6c43d5002971ca3479e818

query II rowsort label-4200-2
SELECT pk, col0 FROM view_2_tab0_566
----
20 values hashing to 77ba8eb1496f392cfd54a38a3462df64

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col3 > 999 AND col1 = 524.55) OR col3 > 124 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT ((col3 > 999 AND col1 = 524.55) OR col3 > 124)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_566 UNION ALL SELECT pk, col0 FROM view_2_tab0_566
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col3 > 999 AND col1 = 524.55) OR col3 > 124 UNION SELECT pk, col0 FROM tab0 WHERE NOT ((col3 > 999 AND col1 = 524.55) OR col3 > 124)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_566 UNION SELECT pk, col0 FROM view_2_tab0_566
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-4200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE (col3 > 999 AND col1 = 524.55) OR col3 > 124 ) AS tab0_566
----
90 values hashing to 10d84ebcab4a71420cc1bf69ac6434cd

query I rowsort label-4200-3
SELECT * FROM view_3_tab0_566
----
90 values hashing to 10d84ebcab4a71420cc1bf69ac6434cd

query I rowsort label-4200-3
SELECT pk FROM tab0 WHERE (col3 > 999 AND col1 = 524.55) OR col3 > 124
----
90 values hashing to 10d84ebcab4a71420cc1bf69ac6434cd

statement ok
DROP VIEW view_1_tab0_566

statement ok
DROP VIEW view_2_tab0_566

statement ok
DROP VIEW view_3_tab0_566

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_566') DROP VIEW view_1_tab1_566

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_566

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_566') DROP VIEW view_2_tab1_566

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_566

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_566') DROP VIEW view_3_tab1_566

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_566

statement ok
CREATE VIEW view_1_tab1_566 AS SELECT pk, col0 FROM tab1 WHERE (col3 > 999 AND col1 = 524.55) OR col3 > 124

statement ok
CREATE VIEW view_2_tab1_566 AS SELECT pk, col0 FROM tab1 WHERE NOT ((col3 > 999 AND col1 = 524.55) OR col3 > 124)

statement ok
CREATE VIEW view_3_tab1_566 AS SELECT pk FROM view_1_tab1_566

query II rowsort label-4200-1
SELECT pk, col0 FROM tab1 WHERE (col3 > 999 AND col1 = 524.55) OR col3 > 124
----
180 values hashing to a130a073fe6c43d5002971ca3479e818

query II rowsort label-4200-2
SELECT pk, col0 FROM tab1 WHERE NOT ((col3 > 999 AND col1 = 524.55) OR col3 > 124)
----
20 values hashing to 77ba8eb1496f392cfd54a38a3462df64

query II rowsort label-4200-1
SELECT pk, col0 FROM view_1_tab1_566
----
180 values hashing to a130a073fe6c43d5002971ca3479e818

query II rowsort label-4200-2
SELECT pk, col0 FROM view_2_tab1_566
----
20 values hashing to 77ba8eb1496f392cfd54a38a3462df64

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col3 > 999 AND col1 = 524.55) OR col3 > 124 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT ((col3 > 999 AND col1 = 524.55) OR col3 > 124)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_566 UNION ALL SELECT pk, col0 FROM view_2_tab1_566
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col3 > 999 AND col1 = 524.55) OR col3 > 124 UNION SELECT pk, col0 FROM tab1 WHERE NOT ((col3 > 999 AND col1 = 524.55) OR col3 > 124)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_566 UNION SELECT pk, col0 FROM view_2_tab1_566
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-4200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE (col3 > 999 AND col1 = 524.55) OR col3 > 124 ) AS tab1_566
----
90 values hashing to 10d84ebcab4a71420cc1bf69ac6434cd

query I rowsort label-4200-3
SELECT * FROM view_3_tab1_566
----
90 values hashing to 10d84ebcab4a71420cc1bf69ac6434cd

query I rowsort label-4200-3
SELECT pk FROM tab1 WHERE (col3 > 999 AND col1 = 524.55) OR col3 > 124
----
90 values hashing to 10d84ebcab4a71420cc1bf69ac6434cd

statement ok
DROP VIEW view_1_tab1_566

statement ok
DROP VIEW view_2_tab1_566

statement ok
DROP VIEW view_3_tab1_566

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_566') DROP VIEW view_1_tab2_566

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_566

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_566') DROP VIEW view_2_tab2_566

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_566

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_566') DROP VIEW view_3_tab2_566

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_566

statement ok
CREATE VIEW view_1_tab2_566 AS SELECT pk, col0 FROM tab2 WHERE (col3 > 999 AND col1 = 524.55) OR col3 > 124

statement ok
CREATE VIEW view_2_tab2_566 AS SELECT pk, col0 FROM tab2 WHERE NOT ((col3 > 999 AND col1 = 524.55) OR col3 > 124)

statement ok
CREATE VIEW view_3_tab2_566 AS SELECT pk FROM view_1_tab2_566

query II rowsort label-4200-1
SELECT pk, col0 FROM tab2 WHERE (col3 > 999 AND col1 = 524.55) OR col3 > 124
----
180 values hashing to a130a073fe6c43d5002971ca3479e818

query II rowsort label-4200-2
SELECT pk, col0 FROM tab2 WHERE NOT ((col3 > 999 AND col1 = 524.55) OR col3 > 124)
----
20 values hashing to 77ba8eb1496f392cfd54a38a3462df64

query II rowsort label-4200-1
SELECT pk, col0 FROM view_1_tab2_566
----
180 values hashing to a130a073fe6c43d5002971ca3479e818

query II rowsort label-4200-2
SELECT pk, col0 FROM view_2_tab2_566
----
20 values hashing to 77ba8eb1496f392cfd54a38a3462df64

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col3 > 999 AND col1 = 524.55) OR col3 > 124 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT ((col3 > 999 AND col1 = 524.55) OR col3 > 124)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_566 UNION ALL SELECT pk, col0 FROM view_2_tab2_566
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col3 > 999 AND col1 = 524.55) OR col3 > 124 UNION SELECT pk, col0 FROM tab2 WHERE NOT ((col3 > 999 AND col1 = 524.55) OR col3 > 124)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_566 UNION SELECT pk, col0 FROM view_2_tab2_566
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-4200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE (col3 > 999 AND col1 = 524.55) OR col3 > 124 ) AS tab2_566
----
90 values hashing to 10d84ebcab4a71420cc1bf69ac6434cd

query I rowsort label-4200-3
SELECT * FROM view_3_tab2_566
----
90 values hashing to 10d84ebcab4a71420cc1bf69ac6434cd

query I rowsort label-4200-3
SELECT pk FROM tab2 WHERE (col3 > 999 AND col1 = 524.55) OR col3 > 124
----
90 values hashing to 10d84ebcab4a71420cc1bf69ac6434cd

statement ok
DROP VIEW view_1_tab2_566

statement ok
DROP VIEW view_2_tab2_566

statement ok
DROP VIEW view_3_tab2_566

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_566') DROP VIEW view_1_tab3_566

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_566

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_566') DROP VIEW view_2_tab3_566

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_566

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_566') DROP VIEW view_3_tab3_566

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_566

statement ok
CREATE VIEW view_1_tab3_566 AS SELECT pk, col0 FROM tab3 WHERE (col3 > 999 AND col1 = 524.55) OR col3 > 124

statement ok
CREATE VIEW view_2_tab3_566 AS SELECT pk, col0 FROM tab3 WHERE NOT ((col3 > 999 AND col1 = 524.55) OR col3 > 124)

statement ok
CREATE VIEW view_3_tab3_566 AS SELECT pk FROM view_1_tab3_566

query II rowsort label-4200-1
SELECT pk, col0 FROM tab3 WHERE (col3 > 999 AND col1 = 524.55) OR col3 > 124
----
180 values hashing to a130a073fe6c43d5002971ca3479e818

query II rowsort label-4200-2
SELECT pk, col0 FROM tab3 WHERE NOT ((col3 > 999 AND col1 = 524.55) OR col3 > 124)
----
20 values hashing to 77ba8eb1496f392cfd54a38a3462df64

query II rowsort label-4200-1
SELECT pk, col0 FROM view_1_tab3_566
----
180 values hashing to a130a073fe6c43d5002971ca3479e818

query II rowsort label-4200-2
SELECT pk, col0 FROM view_2_tab3_566
----
20 values hashing to 77ba8eb1496f392cfd54a38a3462df64

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col3 > 999 AND col1 = 524.55) OR col3 > 124 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT ((col3 > 999 AND col1 = 524.55) OR col3 > 124)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_566 UNION ALL SELECT pk, col0 FROM view_2_tab3_566
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col3 > 999 AND col1 = 524.55) OR col3 > 124 UNION SELECT pk, col0 FROM tab3 WHERE NOT ((col3 > 999 AND col1 = 524.55) OR col3 > 124)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_566 UNION SELECT pk, col0 FROM view_2_tab3_566
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-4200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE (col3 > 999 AND col1 = 524.55) OR col3 > 124 ) AS tab3_566
----
90 values hashing to 10d84ebcab4a71420cc1bf69ac6434cd

query I rowsort label-4200-3
SELECT * FROM view_3_tab3_566
----
90 values hashing to 10d84ebcab4a71420cc1bf69ac6434cd

query I rowsort label-4200-3
SELECT pk FROM tab3 WHERE (col3 > 999 AND col1 = 524.55) OR col3 > 124
----
90 values hashing to 10d84ebcab4a71420cc1bf69ac6434cd

statement ok
DROP VIEW view_1_tab3_566

statement ok
DROP VIEW view_2_tab3_566

statement ok
DROP VIEW view_3_tab3_566

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_566') DROP VIEW view_1_tab4_566

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_566

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_566') DROP VIEW view_2_tab4_566

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_566

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_566') DROP VIEW view_3_tab4_566

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_566

statement ok
CREATE VIEW view_1_tab4_566 AS SELECT pk, col0 FROM tab4 WHERE (col3 > 999 AND col1 = 524.55) OR col3 > 124

statement ok
CREATE VIEW view_2_tab4_566 AS SELECT pk, col0 FROM tab4 WHERE NOT ((col3 > 999 AND col1 = 524.55) OR col3 > 124)

statement ok
CREATE VIEW view_3_tab4_566 AS SELECT pk FROM view_1_tab4_566

query II rowsort label-4200-1
SELECT pk, col0 FROM tab4 WHERE (col3 > 999 AND col1 = 524.55) OR col3 > 124
----
180 values hashing to a130a073fe6c43d5002971ca3479e818

query II rowsort label-4200-2
SELECT pk, col0 FROM tab4 WHERE NOT ((col3 > 999 AND col1 = 524.55) OR col3 > 124)
----
20 values hashing to 77ba8eb1496f392cfd54a38a3462df64

query II rowsort label-4200-1
SELECT pk, col0 FROM view_1_tab4_566
----
180 values hashing to a130a073fe6c43d5002971ca3479e818

query II rowsort label-4200-2
SELECT pk, col0 FROM view_2_tab4_566
----
20 values hashing to 77ba8eb1496f392cfd54a38a3462df64

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col3 > 999 AND col1 = 524.55) OR col3 > 124 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT ((col3 > 999 AND col1 = 524.55) OR col3 > 124)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_566 UNION ALL SELECT pk, col0 FROM view_2_tab4_566
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col3 > 999 AND col1 = 524.55) OR col3 > 124 UNION SELECT pk, col0 FROM tab4 WHERE NOT ((col3 > 999 AND col1 = 524.55) OR col3 > 124)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_566 UNION SELECT pk, col0 FROM view_2_tab4_566
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-4200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE (col3 > 999 AND col1 = 524.55) OR col3 > 124 ) AS tab4_566
----
90 values hashing to 10d84ebcab4a71420cc1bf69ac6434cd

query I rowsort label-4200-3
SELECT * FROM view_3_tab4_566
----
90 values hashing to 10d84ebcab4a71420cc1bf69ac6434cd

query I rowsort label-4200-3
SELECT pk FROM tab4 WHERE (col3 > 999 AND col1 = 524.55) OR col3 > 124
----
90 values hashing to 10d84ebcab4a71420cc1bf69ac6434cd

statement ok
DROP VIEW view_1_tab4_566

statement ok
DROP VIEW view_2_tab4_566

statement ok
DROP VIEW view_3_tab4_566

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_567') DROP VIEW view_1_tab0_567

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_567

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_567') DROP VIEW view_2_tab0_567

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_567

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_567') DROP VIEW view_3_tab0_567

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_567

statement ok
CREATE VIEW view_1_tab0_567 AS SELECT pk, col0 FROM tab0 WHERE col3 < 361

statement ok
CREATE VIEW view_2_tab0_567 AS SELECT pk, col0 FROM tab0 WHERE NOT (col3 < 361)

statement ok
CREATE VIEW view_3_tab0_567 AS SELECT pk FROM view_1_tab0_567

query II rowsort label-4300-1
SELECT pk, col0 FROM tab0 WHERE col3 < 361
----
82 values hashing to 5555ccdb83f7f722e3ed3091e57f8d6a

query II rowsort label-4300-2
SELECT pk, col0 FROM tab0 WHERE NOT (col3 < 361)
----
118 values hashing to 115f858dd700c82c85a701b1e6dd88fe

query II rowsort label-4300-1
SELECT pk, col0 FROM view_1_tab0_567
----
82 values hashing to 5555ccdb83f7f722e3ed3091e57f8d6a

query II rowsort label-4300-2
SELECT pk, col0 FROM view_2_tab0_567
----
118 values hashing to 115f858dd700c82c85a701b1e6dd88fe

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 < 361 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col3 < 361)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_567 UNION ALL SELECT pk, col0 FROM view_2_tab0_567
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 < 361 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col3 < 361)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_567 UNION SELECT pk, col0 FROM view_2_tab0_567
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-4300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col3 < 361 ) AS tab0_567
----
41 values hashing to b52ff2d9346c7fc76ab11c583b1aaf99

query I rowsort label-4300-3
SELECT * FROM view_3_tab0_567
----
41 values hashing to b52ff2d9346c7fc76ab11c583b1aaf99

query I rowsort label-4300-3
SELECT pk FROM tab0 WHERE col3 < 361
----
41 values hashing to b52ff2d9346c7fc76ab11c583b1aaf99

statement ok
DROP VIEW view_1_tab0_567

statement ok
DROP VIEW view_2_tab0_567

statement ok
DROP VIEW view_3_tab0_567

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_567') DROP VIEW view_1_tab1_567

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_567

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_567') DROP VIEW view_2_tab1_567

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_567

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_567') DROP VIEW view_3_tab1_567

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_567

statement ok
CREATE VIEW view_1_tab1_567 AS SELECT pk, col0 FROM tab1 WHERE col3 < 361

statement ok
CREATE VIEW view_2_tab1_567 AS SELECT pk, col0 FROM tab1 WHERE NOT (col3 < 361)

statement ok
CREATE VIEW view_3_tab1_567 AS SELECT pk FROM view_1_tab1_567

query II rowsort label-4300-1
SELECT pk, col0 FROM tab1 WHERE col3 < 361
----
82 values hashing to 5555ccdb83f7f722e3ed3091e57f8d6a

query II rowsort label-4300-2
SELECT pk, col0 FROM tab1 WHERE NOT (col3 < 361)
----
118 values hashing to 115f858dd700c82c85a701b1e6dd88fe

query II rowsort label-4300-1
SELECT pk, col0 FROM view_1_tab1_567
----
82 values hashing to 5555ccdb83f7f722e3ed3091e57f8d6a

query II rowsort label-4300-2
SELECT pk, col0 FROM view_2_tab1_567
----
118 values hashing to 115f858dd700c82c85a701b1e6dd88fe

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 < 361 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col3 < 361)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_567 UNION ALL SELECT pk, col0 FROM view_2_tab1_567
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 < 361 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col3 < 361)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_567 UNION SELECT pk, col0 FROM view_2_tab1_567
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-4300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col3 < 361 ) AS tab1_567
----
41 values hashing to b52ff2d9346c7fc76ab11c583b1aaf99

query I rowsort label-4300-3
SELECT * FROM view_3_tab1_567
----
41 values hashing to b52ff2d9346c7fc76ab11c583b1aaf99

query I rowsort label-4300-3
SELECT pk FROM tab1 WHERE col3 < 361
----
41 values hashing to b52ff2d9346c7fc76ab11c583b1aaf99

statement ok
DROP VIEW view_1_tab1_567

statement ok
DROP VIEW view_2_tab1_567

statement ok
DROP VIEW view_3_tab1_567

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_567') DROP VIEW view_1_tab2_567

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_567

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_567') DROP VIEW view_2_tab2_567

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_567

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_567') DROP VIEW view_3_tab2_567

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_567

statement ok
CREATE VIEW view_1_tab2_567 AS SELECT pk, col0 FROM tab2 WHERE col3 < 361

statement ok
CREATE VIEW view_2_tab2_567 AS SELECT pk, col0 FROM tab2 WHERE NOT (col3 < 361)

statement ok
CREATE VIEW view_3_tab2_567 AS SELECT pk FROM view_1_tab2_567

query II rowsort label-4300-1
SELECT pk, col0 FROM tab2 WHERE col3 < 361
----
82 values hashing to 5555ccdb83f7f722e3ed3091e57f8d6a

query II rowsort label-4300-2
SELECT pk, col0 FROM tab2 WHERE NOT (col3 < 361)
----
118 values hashing to 115f858dd700c82c85a701b1e6dd88fe

query II rowsort label-4300-1
SELECT pk, col0 FROM view_1_tab2_567
----
82 values hashing to 5555ccdb83f7f722e3ed3091e57f8d6a

query II rowsort label-4300-2
SELECT pk, col0 FROM view_2_tab2_567
----
118 values hashing to 115f858dd700c82c85a701b1e6dd88fe

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 < 361 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col3 < 361)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_567 UNION ALL SELECT pk, col0 FROM view_2_tab2_567
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 < 361 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col3 < 361)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_567 UNION SELECT pk, col0 FROM view_2_tab2_567
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-4300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col3 < 361 ) AS tab2_567
----
41 values hashing to b52ff2d9346c7fc76ab11c583b1aaf99

query I rowsort label-4300-3
SELECT * FROM view_3_tab2_567
----
41 values hashing to b52ff2d9346c7fc76ab11c583b1aaf99

query I rowsort label-4300-3
SELECT pk FROM tab2 WHERE col3 < 361
----
41 values hashing to b52ff2d9346c7fc76ab11c583b1aaf99

statement ok
DROP VIEW view_1_tab2_567

statement ok
DROP VIEW view_2_tab2_567

statement ok
DROP VIEW view_3_tab2_567

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_567') DROP VIEW view_1_tab3_567

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_567

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_567') DROP VIEW view_2_tab3_567

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_567

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_567') DROP VIEW view_3_tab3_567

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_567

statement ok
CREATE VIEW view_1_tab3_567 AS SELECT pk, col0 FROM tab3 WHERE col3 < 361

statement ok
CREATE VIEW view_2_tab3_567 AS SELECT pk, col0 FROM tab3 WHERE NOT (col3 < 361)

statement ok
CREATE VIEW view_3_tab3_567 AS SELECT pk FROM view_1_tab3_567

query II rowsort label-4300-1
SELECT pk, col0 FROM tab3 WHERE col3 < 361
----
82 values hashing to 5555ccdb83f7f722e3ed3091e57f8d6a

query II rowsort label-4300-2
SELECT pk, col0 FROM tab3 WHERE NOT (col3 < 361)
----
118 values hashing to 115f858dd700c82c85a701b1e6dd88fe

query II rowsort label-4300-1
SELECT pk, col0 FROM view_1_tab3_567
----
82 values hashing to 5555ccdb83f7f722e3ed3091e57f8d6a

query II rowsort label-4300-2
SELECT pk, col0 FROM view_2_tab3_567
----
118 values hashing to 115f858dd700c82c85a701b1e6dd88fe

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 < 361 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col3 < 361)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_567 UNION ALL SELECT pk, col0 FROM view_2_tab3_567
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 < 361 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col3 < 361)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_567 UNION SELECT pk, col0 FROM view_2_tab3_567
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-4300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col3 < 361 ) AS tab3_567
----
41 values hashing to b52ff2d9346c7fc76ab11c583b1aaf99

query I rowsort label-4300-3
SELECT * FROM view_3_tab3_567
----
41 values hashing to b52ff2d9346c7fc76ab11c583b1aaf99

query I rowsort label-4300-3
SELECT pk FROM tab3 WHERE col3 < 361
----
41 values hashing to b52ff2d9346c7fc76ab11c583b1aaf99

statement ok
DROP VIEW view_1_tab3_567

statement ok
DROP VIEW view_2_tab3_567

statement ok
DROP VIEW view_3_tab3_567

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_567') DROP VIEW view_1_tab4_567

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_567

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_567') DROP VIEW view_2_tab4_567

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_567

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_567') DROP VIEW view_3_tab4_567

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_567

statement ok
CREATE VIEW view_1_tab4_567 AS SELECT pk, col0 FROM tab4 WHERE col3 < 361

statement ok
CREATE VIEW view_2_tab4_567 AS SELECT pk, col0 FROM tab4 WHERE NOT (col3 < 361)

statement ok
CREATE VIEW view_3_tab4_567 AS SELECT pk FROM view_1_tab4_567

query II rowsort label-4300-1
SELECT pk, col0 FROM tab4 WHERE col3 < 361
----
82 values hashing to 5555ccdb83f7f722e3ed3091e57f8d6a

query II rowsort label-4300-2
SELECT pk, col0 FROM tab4 WHERE NOT (col3 < 361)
----
118 values hashing to 115f858dd700c82c85a701b1e6dd88fe

query II rowsort label-4300-1
SELECT pk, col0 FROM view_1_tab4_567
----
82 values hashing to 5555ccdb83f7f722e3ed3091e57f8d6a

query II rowsort label-4300-2
SELECT pk, col0 FROM view_2_tab4_567
----
118 values hashing to 115f858dd700c82c85a701b1e6dd88fe

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 < 361 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col3 < 361)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_567 UNION ALL SELECT pk, col0 FROM view_2_tab4_567
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 < 361 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col3 < 361)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_567 UNION SELECT pk, col0 FROM view_2_tab4_567
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-4300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col3 < 361 ) AS tab4_567
----
41 values hashing to b52ff2d9346c7fc76ab11c583b1aaf99

query I rowsort label-4300-3
SELECT * FROM view_3_tab4_567
----
41 values hashing to b52ff2d9346c7fc76ab11c583b1aaf99

query I rowsort label-4300-3
SELECT pk FROM tab4 WHERE col3 < 361
----
41 values hashing to b52ff2d9346c7fc76ab11c583b1aaf99

statement ok
DROP VIEW view_1_tab4_567

statement ok
DROP VIEW view_2_tab4_567

statement ok
DROP VIEW view_3_tab4_567

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_568') DROP VIEW view_1_tab0_568

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_568

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_568') DROP VIEW view_2_tab0_568

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_568

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_568') DROP VIEW view_3_tab0_568

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_568

statement ok
CREATE VIEW view_1_tab0_568 AS SELECT pk, col0 FROM tab0 WHERE (col0 > 569)

statement ok
CREATE VIEW view_2_tab0_568 AS SELECT pk, col0 FROM tab0 WHERE NOT ((col0 > 569))

statement ok
CREATE VIEW view_3_tab0_568 AS SELECT pk FROM view_1_tab0_568

query II rowsort label-4400-1
SELECT pk, col0 FROM tab0 WHERE (col0 > 569)
----
84 values hashing to b32cfa14fa0bf741d18872606778ee37

query II rowsort label-4400-2
SELECT pk, col0 FROM tab0 WHERE NOT ((col0 > 569))
----
116 values hashing to 8b91cbc6385961e19762227fc5bd2d12

query II rowsort label-4400-1
SELECT pk, col0 FROM view_1_tab0_568
----
84 values hashing to b32cfa14fa0bf741d18872606778ee37

query II rowsort label-4400-2
SELECT pk, col0 FROM view_2_tab0_568
----
116 values hashing to 8b91cbc6385961e19762227fc5bd2d12

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col0 > 569) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT ((col0 > 569))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_568 UNION ALL SELECT pk, col0 FROM view_2_tab0_568
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col0 > 569) UNION SELECT pk, col0 FROM tab0 WHERE NOT ((col0 > 569))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_568 UNION SELECT pk, col0 FROM view_2_tab0_568
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-4400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE (col0 > 569) ) AS tab0_568
----
42 values hashing to 12b6a09e49655beb1518de72513c9eb7

query I rowsort label-4400-3
SELECT * FROM view_3_tab0_568
----
42 values hashing to 12b6a09e49655beb1518de72513c9eb7

query I rowsort label-4400-3
SELECT pk FROM tab0 WHERE (col0 > 569)
----
42 values hashing to 12b6a09e49655beb1518de72513c9eb7

statement ok
DROP VIEW view_1_tab0_568

statement ok
DROP VIEW view_2_tab0_568

statement ok
DROP VIEW view_3_tab0_568

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_568') DROP VIEW view_1_tab1_568

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_568

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_568') DROP VIEW view_2_tab1_568

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_568

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_568') DROP VIEW view_3_tab1_568

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_568

statement ok
CREATE VIEW view_1_tab1_568 AS SELECT pk, col0 FROM tab1 WHERE (col0 > 569)

statement ok
CREATE VIEW view_2_tab1_568 AS SELECT pk, col0 FROM tab1 WHERE NOT ((col0 > 569))

statement ok
CREATE VIEW view_3_tab1_568 AS SELECT pk FROM view_1_tab1_568

query II rowsort label-4400-1
SELECT pk, col0 FROM tab1 WHERE (col0 > 569)
----
84 values hashing to b32cfa14fa0bf741d18872606778ee37

query II rowsort label-4400-2
SELECT pk, col0 FROM tab1 WHERE NOT ((col0 > 569))
----
116 values hashing to 8b91cbc6385961e19762227fc5bd2d12

query II rowsort label-4400-1
SELECT pk, col0 FROM view_1_tab1_568
----
84 values hashing to b32cfa14fa0bf741d18872606778ee37

query II rowsort label-4400-2
SELECT pk, col0 FROM view_2_tab1_568
----
116 values hashing to 8b91cbc6385961e19762227fc5bd2d12

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col0 > 569) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT ((col0 > 569))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_568 UNION ALL SELECT pk, col0 FROM view_2_tab1_568
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col0 > 569) UNION SELECT pk, col0 FROM tab1 WHERE NOT ((col0 > 569))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_568 UNION SELECT pk, col0 FROM view_2_tab1_568
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-4400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE (col0 > 569) ) AS tab1_568
----
42 values hashing to 12b6a09e49655beb1518de72513c9eb7

query I rowsort label-4400-3
SELECT * FROM view_3_tab1_568
----
42 values hashing to 12b6a09e49655beb1518de72513c9eb7

query I rowsort label-4400-3
SELECT pk FROM tab1 WHERE (col0 > 569)
----
42 values hashing to 12b6a09e49655beb1518de72513c9eb7

statement ok
DROP VIEW view_1_tab1_568

statement ok
DROP VIEW view_2_tab1_568

statement ok
DROP VIEW view_3_tab1_568

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_568') DROP VIEW view_1_tab2_568

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_568

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_568') DROP VIEW view_2_tab2_568

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_568

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_568') DROP VIEW view_3_tab2_568

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_568

statement ok
CREATE VIEW view_1_tab2_568 AS SELECT pk, col0 FROM tab2 WHERE (col0 > 569)

statement ok
CREATE VIEW view_2_tab2_568 AS SELECT pk, col0 FROM tab2 WHERE NOT ((col0 > 569))

statement ok
CREATE VIEW view_3_tab2_568 AS SELECT pk FROM view_1_tab2_568

query II rowsort label-4400-1
SELECT pk, col0 FROM tab2 WHERE (col0 > 569)
----
84 values hashing to b32cfa14fa0bf741d18872606778ee37

query II rowsort label-4400-2
SELECT pk, col0 FROM tab2 WHERE NOT ((col0 > 569))
----
116 values hashing to 8b91cbc6385961e19762227fc5bd2d12

query II rowsort label-4400-1
SELECT pk, col0 FROM view_1_tab2_568
----
84 values hashing to b32cfa14fa0bf741d18872606778ee37

query II rowsort label-4400-2
SELECT pk, col0 FROM view_2_tab2_568
----
116 values hashing to 8b91cbc6385961e19762227fc5bd2d12

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col0 > 569) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT ((col0 > 569))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_568 UNION ALL SELECT pk, col0 FROM view_2_tab2_568
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col0 > 569) UNION SELECT pk, col0 FROM tab2 WHERE NOT ((col0 > 569))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_568 UNION SELECT pk, col0 FROM view_2_tab2_568
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-4400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE (col0 > 569) ) AS tab2_568
----
42 values hashing to 12b6a09e49655beb1518de72513c9eb7

query I rowsort label-4400-3
SELECT * FROM view_3_tab2_568
----
42 values hashing to 12b6a09e49655beb1518de72513c9eb7

query I rowsort label-4400-3
SELECT pk FROM tab2 WHERE (col0 > 569)
----
42 values hashing to 12b6a09e49655beb1518de72513c9eb7

statement ok
DROP VIEW view_1_tab2_568

statement ok
DROP VIEW view_2_tab2_568

statement ok
DROP VIEW view_3_tab2_568

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_568') DROP VIEW view_1_tab3_568

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_568

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_568') DROP VIEW view_2_tab3_568

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_568

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_568') DROP VIEW view_3_tab3_568

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_568

statement ok
CREATE VIEW view_1_tab3_568 AS SELECT pk, col0 FROM tab3 WHERE (col0 > 569)

statement ok
CREATE VIEW view_2_tab3_568 AS SELECT pk, col0 FROM tab3 WHERE NOT ((col0 > 569))

statement ok
CREATE VIEW view_3_tab3_568 AS SELECT pk FROM view_1_tab3_568

query II rowsort label-4400-1
SELECT pk, col0 FROM tab3 WHERE (col0 > 569)
----
84 values hashing to b32cfa14fa0bf741d18872606778ee37

query II rowsort label-4400-2
SELECT pk, col0 FROM tab3 WHERE NOT ((col0 > 569))
----
116 values hashing to 8b91cbc6385961e19762227fc5bd2d12

query II rowsort label-4400-1
SELECT pk, col0 FROM view_1_tab3_568
----
84 values hashing to b32cfa14fa0bf741d18872606778ee37

query II rowsort label-4400-2
SELECT pk, col0 FROM view_2_tab3_568
----
116 values hashing to 8b91cbc6385961e19762227fc5bd2d12

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col0 > 569) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT ((col0 > 569))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_568 UNION ALL SELECT pk, col0 FROM view_2_tab3_568
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col0 > 569) UNION SELECT pk, col0 FROM tab3 WHERE NOT ((col0 > 569))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_568 UNION SELECT pk, col0 FROM view_2_tab3_568
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-4400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE (col0 > 569) ) AS tab3_568
----
42 values hashing to 12b6a09e49655beb1518de72513c9eb7

query I rowsort label-4400-3
SELECT * FROM view_3_tab3_568
----
42 values hashing to 12b6a09e49655beb1518de72513c9eb7

query I rowsort label-4400-3
SELECT pk FROM tab3 WHERE (col0 > 569)
----
42 values hashing to 12b6a09e49655beb1518de72513c9eb7

statement ok
DROP VIEW view_1_tab3_568

statement ok
DROP VIEW view_2_tab3_568

statement ok
DROP VIEW view_3_tab3_568

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_568') DROP VIEW view_1_tab4_568

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_568

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_568') DROP VIEW view_2_tab4_568

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_568

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_568') DROP VIEW view_3_tab4_568

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_568

statement ok
CREATE VIEW view_1_tab4_568 AS SELECT pk, col0 FROM tab4 WHERE (col0 > 569)

statement ok
CREATE VIEW view_2_tab4_568 AS SELECT pk, col0 FROM tab4 WHERE NOT ((col0 > 569))

statement ok
CREATE VIEW view_3_tab4_568 AS SELECT pk FROM view_1_tab4_568

query II rowsort label-4400-1
SELECT pk, col0 FROM tab4 WHERE (col0 > 569)
----
84 values hashing to b32cfa14fa0bf741d18872606778ee37

query II rowsort label-4400-2
SELECT pk, col0 FROM tab4 WHERE NOT ((col0 > 569))
----
116 values hashing to 8b91cbc6385961e19762227fc5bd2d12

query II rowsort label-4400-1
SELECT pk, col0 FROM view_1_tab4_568
----
84 values hashing to b32cfa14fa0bf741d18872606778ee37

query II rowsort label-4400-2
SELECT pk, col0 FROM view_2_tab4_568
----
116 values hashing to 8b91cbc6385961e19762227fc5bd2d12

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col0 > 569) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT ((col0 > 569))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_568 UNION ALL SELECT pk, col0 FROM view_2_tab4_568
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col0 > 569) UNION SELECT pk, col0 FROM tab4 WHERE NOT ((col0 > 569))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_568 UNION SELECT pk, col0 FROM view_2_tab4_568
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-4400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE (col0 > 569) ) AS tab4_568
----
42 values hashing to 12b6a09e49655beb1518de72513c9eb7

query I rowsort label-4400-3
SELECT * FROM view_3_tab4_568
----
42 values hashing to 12b6a09e49655beb1518de72513c9eb7

query I rowsort label-4400-3
SELECT pk FROM tab4 WHERE (col0 > 569)
----
42 values hashing to 12b6a09e49655beb1518de72513c9eb7

statement ok
DROP VIEW view_1_tab4_568

statement ok
DROP VIEW view_2_tab4_568

statement ok
DROP VIEW view_3_tab4_568

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_569') DROP VIEW view_1_tab0_569

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_569

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_569') DROP VIEW view_2_tab0_569

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_569

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_569') DROP VIEW view_3_tab0_569

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_569

statement ok
CREATE VIEW view_1_tab0_569 AS SELECT pk, col0 FROM tab0 WHERE (col3 > 930)

statement ok
CREATE VIEW view_2_tab0_569 AS SELECT pk, col0 FROM tab0 WHERE NOT ((col3 > 930))

statement ok
CREATE VIEW view_3_tab0_569 AS SELECT pk FROM view_1_tab0_569

query II rowsort label-4500-1
SELECT pk, col0 FROM tab0 WHERE (col3 > 930)
----
10 values hashing to 09d01abd62cfd3bd95423eccabadda4c

query II rowsort label-4500-2
SELECT pk, col0 FROM tab0 WHERE NOT ((col3 > 930))
----
190 values hashing to 75d192a876a460692f6c14e7dad66762

query II rowsort label-4500-1
SELECT pk, col0 FROM view_1_tab0_569
----
10 values hashing to 09d01abd62cfd3bd95423eccabadda4c

query II rowsort label-4500-2
SELECT pk, col0 FROM view_2_tab0_569
----
190 values hashing to 75d192a876a460692f6c14e7dad66762

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col3 > 930) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT ((col3 > 930))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_569 UNION ALL SELECT pk, col0 FROM view_2_tab0_569
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col3 > 930) UNION SELECT pk, col0 FROM tab0 WHERE NOT ((col3 > 930))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_569 UNION SELECT pk, col0 FROM view_2_tab0_569
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-4500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE (col3 > 930) ) AS tab0_569
----
14
39
41
65
82

query I rowsort label-4500-3
SELECT * FROM view_3_tab0_569
----
14
39
41
65
82

query I rowsort label-4500-3
SELECT pk FROM tab0 WHERE (col3 > 930)
----
14
39
41
65
82

statement ok
DROP VIEW view_1_tab0_569

statement ok
DROP VIEW view_2_tab0_569

statement ok
DROP VIEW view_3_tab0_569

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_569') DROP VIEW view_1_tab1_569

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_569

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_569') DROP VIEW view_2_tab1_569

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_569

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_569') DROP VIEW view_3_tab1_569

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_569

statement ok
CREATE VIEW view_1_tab1_569 AS SELECT pk, col0 FROM tab1 WHERE (col3 > 930)

statement ok
CREATE VIEW view_2_tab1_569 AS SELECT pk, col0 FROM tab1 WHERE NOT ((col3 > 930))

statement ok
CREATE VIEW view_3_tab1_569 AS SELECT pk FROM view_1_tab1_569

query II rowsort label-4500-1
SELECT pk, col0 FROM tab1 WHERE (col3 > 930)
----
10 values hashing to 09d01abd62cfd3bd95423eccabadda4c

query II rowsort label-4500-2
SELECT pk, col0 FROM tab1 WHERE NOT ((col3 > 930))
----
190 values hashing to 75d192a876a460692f6c14e7dad66762

query II rowsort label-4500-1
SELECT pk, col0 FROM view_1_tab1_569
----
10 values hashing to 09d01abd62cfd3bd95423eccabadda4c

query II rowsort label-4500-2
SELECT pk, col0 FROM view_2_tab1_569
----
190 values hashing to 75d192a876a460692f6c14e7dad66762

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col3 > 930) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT ((col3 > 930))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_569 UNION ALL SELECT pk, col0 FROM view_2_tab1_569
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col3 > 930) UNION SELECT pk, col0 FROM tab1 WHERE NOT ((col3 > 930))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_569 UNION SELECT pk, col0 FROM view_2_tab1_569
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-4500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE (col3 > 930) ) AS tab1_569
----
14
39
41
65
82

query I rowsort label-4500-3
SELECT * FROM view_3_tab1_569
----
14
39
41
65
82

query I rowsort label-4500-3
SELECT pk FROM tab1 WHERE (col3 > 930)
----
14
39
41
65
82

statement ok
DROP VIEW view_1_tab1_569

statement ok
DROP VIEW view_2_tab1_569

statement ok
DROP VIEW view_3_tab1_569

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_569') DROP VIEW view_1_tab2_569

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_569

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_569') DROP VIEW view_2_tab2_569

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_569

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_569') DROP VIEW view_3_tab2_569

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_569

statement ok
CREATE VIEW view_1_tab2_569 AS SELECT pk, col0 FROM tab2 WHERE (col3 > 930)

statement ok
CREATE VIEW view_2_tab2_569 AS SELECT pk, col0 FROM tab2 WHERE NOT ((col3 > 930))

statement ok
CREATE VIEW view_3_tab2_569 AS SELECT pk FROM view_1_tab2_569

query II rowsort label-4500-1
SELECT pk, col0 FROM tab2 WHERE (col3 > 930)
----
10 values hashing to 09d01abd62cfd3bd95423eccabadda4c

query II rowsort label-4500-2
SELECT pk, col0 FROM tab2 WHERE NOT ((col3 > 930))
----
190 values hashing to 75d192a876a460692f6c14e7dad66762

query II rowsort label-4500-1
SELECT pk, col0 FROM view_1_tab2_569
----
10 values hashing to 09d01abd62cfd3bd95423eccabadda4c

query II rowsort label-4500-2
SELECT pk, col0 FROM view_2_tab2_569
----
190 values hashing to 75d192a876a460692f6c14e7dad66762

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col3 > 930) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT ((col3 > 930))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_569 UNION ALL SELECT pk, col0 FROM view_2_tab2_569
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col3 > 930) UNION SELECT pk, col0 FROM tab2 WHERE NOT ((col3 > 930))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_569 UNION SELECT pk, col0 FROM view_2_tab2_569
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-4500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE (col3 > 930) ) AS tab2_569
----
14
39
41
65
82

query I rowsort label-4500-3
SELECT * FROM view_3_tab2_569
----
14
39
41
65
82

query I rowsort label-4500-3
SELECT pk FROM tab2 WHERE (col3 > 930)
----
14
39
41
65
82

statement ok
DROP VIEW view_1_tab2_569

statement ok
DROP VIEW view_2_tab2_569

statement ok
DROP VIEW view_3_tab2_569

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_569') DROP VIEW view_1_tab3_569

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_569

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_569') DROP VIEW view_2_tab3_569

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_569

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_569') DROP VIEW view_3_tab3_569

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_569

statement ok
CREATE VIEW view_1_tab3_569 AS SELECT pk, col0 FROM tab3 WHERE (col3 > 930)

statement ok
CREATE VIEW view_2_tab3_569 AS SELECT pk, col0 FROM tab3 WHERE NOT ((col3 > 930))

statement ok
CREATE VIEW view_3_tab3_569 AS SELECT pk FROM view_1_tab3_569

query II rowsort label-4500-1
SELECT pk, col0 FROM tab3 WHERE (col3 > 930)
----
10 values hashing to 09d01abd62cfd3bd95423eccabadda4c

query II rowsort label-4500-2
SELECT pk, col0 FROM tab3 WHERE NOT ((col3 > 930))
----
190 values hashing to 75d192a876a460692f6c14e7dad66762

query II rowsort label-4500-1
SELECT pk, col0 FROM view_1_tab3_569
----
10 values hashing to 09d01abd62cfd3bd95423eccabadda4c

query II rowsort label-4500-2
SELECT pk, col0 FROM view_2_tab3_569
----
190 values hashing to 75d192a876a460692f6c14e7dad66762

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col3 > 930) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT ((col3 > 930))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_569 UNION ALL SELECT pk, col0 FROM view_2_tab3_569
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col3 > 930) UNION SELECT pk, col0 FROM tab3 WHERE NOT ((col3 > 930))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_569 UNION SELECT pk, col0 FROM view_2_tab3_569
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-4500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE (col3 > 930) ) AS tab3_569
----
14
39
41
65
82

query I rowsort label-4500-3
SELECT * FROM view_3_tab3_569
----
14
39
41
65
82

query I rowsort label-4500-3
SELECT pk FROM tab3 WHERE (col3 > 930)
----
14
39
41
65
82

statement ok
DROP VIEW view_1_tab3_569

statement ok
DROP VIEW view_2_tab3_569

statement ok
DROP VIEW view_3_tab3_569

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_569') DROP VIEW view_1_tab4_569

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_569

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_569') DROP VIEW view_2_tab4_569

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_569

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_569') DROP VIEW view_3_tab4_569

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_569

statement ok
CREATE VIEW view_1_tab4_569 AS SELECT pk, col0 FROM tab4 WHERE (col3 > 930)

statement ok
CREATE VIEW view_2_tab4_569 AS SELECT pk, col0 FROM tab4 WHERE NOT ((col3 > 930))

statement ok
CREATE VIEW view_3_tab4_569 AS SELECT pk FROM view_1_tab4_569

query II rowsort label-4500-1
SELECT pk, col0 FROM tab4 WHERE (col3 > 930)
----
10 values hashing to 09d01abd62cfd3bd95423eccabadda4c

query II rowsort label-4500-2
SELECT pk, col0 FROM tab4 WHERE NOT ((col3 > 930))
----
190 values hashing to 75d192a876a460692f6c14e7dad66762

query II rowsort label-4500-1
SELECT pk, col0 FROM view_1_tab4_569
----
10 values hashing to 09d01abd62cfd3bd95423eccabadda4c

query II rowsort label-4500-2
SELECT pk, col0 FROM view_2_tab4_569
----
190 values hashing to 75d192a876a460692f6c14e7dad66762

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col3 > 930) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT ((col3 > 930))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_569 UNION ALL SELECT pk, col0 FROM view_2_tab4_569
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col3 > 930) UNION SELECT pk, col0 FROM tab4 WHERE NOT ((col3 > 930))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_569 UNION SELECT pk, col0 FROM view_2_tab4_569
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-4500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE (col3 > 930) ) AS tab4_569
----
14
39
41
65
82

query I rowsort label-4500-3
SELECT * FROM view_3_tab4_569
----
14
39
41
65
82

query I rowsort label-4500-3
SELECT pk FROM tab4 WHERE (col3 > 930)
----
14
39
41
65
82

statement ok
DROP VIEW view_1_tab4_569

statement ok
DROP VIEW view_2_tab4_569

statement ok
DROP VIEW view_3_tab4_569

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_571') DROP VIEW view_1_tab0_571

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_571

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_571') DROP VIEW view_2_tab0_571

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_571

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_571') DROP VIEW view_3_tab0_571

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_571

statement ok
CREATE VIEW view_1_tab0_571 AS SELECT pk, col0 FROM tab0 WHERE ((col4 < 748.78) OR ((col3 > 788)))

statement ok
CREATE VIEW view_2_tab0_571 AS SELECT pk, col0 FROM tab0 WHERE NOT (((col4 < 748.78) OR ((col3 > 788))))

statement ok
CREATE VIEW view_3_tab0_571 AS SELECT pk FROM view_1_tab0_571

query II rowsort label-4600-1
SELECT pk, col0 FROM tab0 WHERE ((col4 < 748.78) OR ((col3 > 788)))
----
162 values hashing to aa0067776f480359834be799832c8231

query II rowsort label-4600-2
SELECT pk, col0 FROM tab0 WHERE NOT (((col4 < 748.78) OR ((col3 > 788))))
----
38 values hashing to 9977bf36572129aaa1b256cc977f9da0

query II rowsort label-4600-1
SELECT pk, col0 FROM view_1_tab0_571
----
162 values hashing to aa0067776f480359834be799832c8231

query II rowsort label-4600-2
SELECT pk, col0 FROM view_2_tab0_571
----
38 values hashing to 9977bf36572129aaa1b256cc977f9da0

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE ((col4 < 748.78) OR ((col3 > 788))) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (((col4 < 748.78) OR ((col3 > 788))))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_571 UNION ALL SELECT pk, col0 FROM view_2_tab0_571
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE ((col4 < 748.78) OR ((col3 > 788))) UNION SELECT pk, col0 FROM tab0 WHERE NOT (((col4 < 748.78) OR ((col3 > 788))))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_571 UNION SELECT pk, col0 FROM view_2_tab0_571
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-4600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE ((col4 < 748.78) OR ((col3 > 788))) ) AS tab0_571
----
81 values hashing to 6a18948d2f265d56a551c994c91f7b56

query I rowsort label-4600-3
SELECT * FROM view_3_tab0_571
----
81 values hashing to 6a18948d2f265d56a551c994c91f7b56

query I rowsort label-4600-3
SELECT pk FROM tab0 WHERE ((col4 < 748.78) OR ((col3 > 788)))
----
81 values hashing to 6a18948d2f265d56a551c994c91f7b56

statement ok
DROP VIEW view_1_tab0_571

statement ok
DROP VIEW view_2_tab0_571

statement ok
DROP VIEW view_3_tab0_571

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_571') DROP VIEW view_1_tab1_571

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_571

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_571') DROP VIEW view_2_tab1_571

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_571

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_571') DROP VIEW view_3_tab1_571

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_571

statement ok
CREATE VIEW view_1_tab1_571 AS SELECT pk, col0 FROM tab1 WHERE ((col4 < 748.78) OR ((col3 > 788)))

statement ok
CREATE VIEW view_2_tab1_571 AS SELECT pk, col0 FROM tab1 WHERE NOT (((col4 < 748.78) OR ((col3 > 788))))

statement ok
CREATE VIEW view_3_tab1_571 AS SELECT pk FROM view_1_tab1_571

query II rowsort label-4600-1
SELECT pk, col0 FROM tab1 WHERE ((col4 < 748.78) OR ((col3 > 788)))
----
162 values hashing to aa0067776f480359834be799832c8231

query II rowsort label-4600-2
SELECT pk, col0 FROM tab1 WHERE NOT (((col4 < 748.78) OR ((col3 > 788))))
----
38 values hashing to 9977bf36572129aaa1b256cc977f9da0

query II rowsort label-4600-1
SELECT pk, col0 FROM view_1_tab1_571
----
162 values hashing to aa0067776f480359834be799832c8231

query II rowsort label-4600-2
SELECT pk, col0 FROM view_2_tab1_571
----
38 values hashing to 9977bf36572129aaa1b256cc977f9da0

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE ((col4 < 748.78) OR ((col3 > 788))) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (((col4 < 748.78) OR ((col3 > 788))))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_571 UNION ALL SELECT pk, col0 FROM view_2_tab1_571
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE ((col4 < 748.78) OR ((col3 > 788))) UNION SELECT pk, col0 FROM tab1 WHERE NOT (((col4 < 748.78) OR ((col3 > 788))))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_571 UNION SELECT pk, col0 FROM view_2_tab1_571
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-4600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE ((col4 < 748.78) OR ((col3 > 788))) ) AS tab1_571
----
81 values hashing to 6a18948d2f265d56a551c994c91f7b56

query I rowsort label-4600-3
SELECT * FROM view_3_tab1_571
----
81 values hashing to 6a18948d2f265d56a551c994c91f7b56

query I rowsort label-4600-3
SELECT pk FROM tab1 WHERE ((col4 < 748.78) OR ((col3 > 788)))
----
81 values hashing to 6a18948d2f265d56a551c994c91f7b56

statement ok
DROP VIEW view_1_tab1_571

statement ok
DROP VIEW view_2_tab1_571

statement ok
DROP VIEW view_3_tab1_571

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_571') DROP VIEW view_1_tab2_571

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_571

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_571') DROP VIEW view_2_tab2_571

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_571

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_571') DROP VIEW view_3_tab2_571

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_571

statement ok
CREATE VIEW view_1_tab2_571 AS SELECT pk, col0 FROM tab2 WHERE ((col4 < 748.78) OR ((col3 > 788)))

statement ok
CREATE VIEW view_2_tab2_571 AS SELECT pk, col0 FROM tab2 WHERE NOT (((col4 < 748.78) OR ((col3 > 788))))

statement ok
CREATE VIEW view_3_tab2_571 AS SELECT pk FROM view_1_tab2_571

query II rowsort label-4600-1
SELECT pk, col0 FROM tab2 WHERE ((col4 < 748.78) OR ((col3 > 788)))
----
162 values hashing to aa0067776f480359834be799832c8231

query II rowsort label-4600-2
SELECT pk, col0 FROM tab2 WHERE NOT (((col4 < 748.78) OR ((col3 > 788))))
----
38 values hashing to 9977bf36572129aaa1b256cc977f9da0

query II rowsort label-4600-1
SELECT pk, col0 FROM view_1_tab2_571
----
162 values hashing to aa0067776f480359834be799832c8231

query II rowsort label-4600-2
SELECT pk, col0 FROM view_2_tab2_571
----
38 values hashing to 9977bf36572129aaa1b256cc977f9da0

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE ((col4 < 748.78) OR ((col3 > 788))) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (((col4 < 748.78) OR ((col3 > 788))))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_571 UNION ALL SELECT pk, col0 FROM view_2_tab2_571
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE ((col4 < 748.78) OR ((col3 > 788))) UNION SELECT pk, col0 FROM tab2 WHERE NOT (((col4 < 748.78) OR ((col3 > 788))))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_571 UNION SELECT pk, col0 FROM view_2_tab2_571
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-4600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE ((col4 < 748.78) OR ((col3 > 788))) ) AS tab2_571
----
81 values hashing to 6a18948d2f265d56a551c994c91f7b56

query I rowsort label-4600-3
SELECT * FROM view_3_tab2_571
----
81 values hashing to 6a18948d2f265d56a551c994c91f7b56

query I rowsort label-4600-3
SELECT pk FROM tab2 WHERE ((col4 < 748.78) OR ((col3 > 788)))
----
81 values hashing to 6a18948d2f265d56a551c994c91f7b56

statement ok
DROP VIEW view_1_tab2_571

statement ok
DROP VIEW view_2_tab2_571

statement ok
DROP VIEW view_3_tab2_571

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_571') DROP VIEW view_1_tab3_571

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_571

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_571') DROP VIEW view_2_tab3_571

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_571

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_571') DROP VIEW view_3_tab3_571

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_571

statement ok
CREATE VIEW view_1_tab3_571 AS SELECT pk, col0 FROM tab3 WHERE ((col4 < 748.78) OR ((col3 > 788)))

statement ok
CREATE VIEW view_2_tab3_571 AS SELECT pk, col0 FROM tab3 WHERE NOT (((col4 < 748.78) OR ((col3 > 788))))

statement ok
CREATE VIEW view_3_tab3_571 AS SELECT pk FROM view_1_tab3_571

query II rowsort label-4600-1
SELECT pk, col0 FROM tab3 WHERE ((col4 < 748.78) OR ((col3 > 788)))
----
162 values hashing to aa0067776f480359834be799832c8231

query II rowsort label-4600-2
SELECT pk, col0 FROM tab3 WHERE NOT (((col4 < 748.78) OR ((col3 > 788))))
----
38 values hashing to 9977bf36572129aaa1b256cc977f9da0

query II rowsort label-4600-1
SELECT pk, col0 FROM view_1_tab3_571
----
162 values hashing to aa0067776f480359834be799832c8231

query II rowsort label-4600-2
SELECT pk, col0 FROM view_2_tab3_571
----
38 values hashing to 9977bf36572129aaa1b256cc977f9da0

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE ((col4 < 748.78) OR ((col3 > 788))) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (((col4 < 748.78) OR ((col3 > 788))))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_571 UNION ALL SELECT pk, col0 FROM view_2_tab3_571
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE ((col4 < 748.78) OR ((col3 > 788))) UNION SELECT pk, col0 FROM tab3 WHERE NOT (((col4 < 748.78) OR ((col3 > 788))))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_571 UNION SELECT pk, col0 FROM view_2_tab3_571
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-4600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE ((col4 < 748.78) OR ((col3 > 788))) ) AS tab3_571
----
81 values hashing to 6a18948d2f265d56a551c994c91f7b56

query I rowsort label-4600-3
SELECT * FROM view_3_tab3_571
----
81 values hashing to 6a18948d2f265d56a551c994c91f7b56

query I rowsort label-4600-3
SELECT pk FROM tab3 WHERE ((col4 < 748.78) OR ((col3 > 788)))
----
81 values hashing to 6a18948d2f265d56a551c994c91f7b56

statement ok
DROP VIEW view_1_tab3_571

statement ok
DROP VIEW view_2_tab3_571

statement ok
DROP VIEW view_3_tab3_571

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_571') DROP VIEW view_1_tab4_571

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_571

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_571') DROP VIEW view_2_tab4_571

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_571

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_571') DROP VIEW view_3_tab4_571

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_571

statement ok
CREATE VIEW view_1_tab4_571 AS SELECT pk, col0 FROM tab4 WHERE ((col4 < 748.78) OR ((col3 > 788)))

statement ok
CREATE VIEW view_2_tab4_571 AS SELECT pk, col0 FROM tab4 WHERE NOT (((col4 < 748.78) OR ((col3 > 788))))

statement ok
CREATE VIEW view_3_tab4_571 AS SELECT pk FROM view_1_tab4_571

query II rowsort label-4600-1
SELECT pk, col0 FROM tab4 WHERE ((col4 < 748.78) OR ((col3 > 788)))
----
162 values hashing to aa0067776f480359834be799832c8231

query II rowsort label-4600-2
SELECT pk, col0 FROM tab4 WHERE NOT (((col4 < 748.78) OR ((col3 > 788))))
----
38 values hashing to 9977bf36572129aaa1b256cc977f9da0

query II rowsort label-4600-1
SELECT pk, col0 FROM view_1_tab4_571
----
162 values hashing to aa0067776f480359834be799832c8231

query II rowsort label-4600-2
SELECT pk, col0 FROM view_2_tab4_571
----
38 values hashing to 9977bf36572129aaa1b256cc977f9da0

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE ((col4 < 748.78) OR ((col3 > 788))) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (((col4 < 748.78) OR ((col3 > 788))))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_571 UNION ALL SELECT pk, col0 FROM view_2_tab4_571
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE ((col4 < 748.78) OR ((col3 > 788))) UNION SELECT pk, col0 FROM tab4 WHERE NOT (((col4 < 748.78) OR ((col3 > 788))))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_571 UNION SELECT pk, col0 FROM view_2_tab4_571
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-4600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE ((col4 < 748.78) OR ((col3 > 788))) ) AS tab4_571
----
81 values hashing to 6a18948d2f265d56a551c994c91f7b56

query I rowsort label-4600-3
SELECT * FROM view_3_tab4_571
----
81 values hashing to 6a18948d2f265d56a551c994c91f7b56

query I rowsort label-4600-3
SELECT pk FROM tab4 WHERE ((col4 < 748.78) OR ((col3 > 788)))
----
81 values hashing to 6a18948d2f265d56a551c994c91f7b56

statement ok
DROP VIEW view_1_tab4_571

statement ok
DROP VIEW view_2_tab4_571

statement ok
DROP VIEW view_3_tab4_571

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_572') DROP VIEW view_1_tab0_572

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_572

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_572') DROP VIEW view_2_tab0_572

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_572

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_572') DROP VIEW view_3_tab0_572

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_572

statement ok
CREATE VIEW view_1_tab0_572 AS SELECT pk, col0 FROM tab0 WHERE col3 < 953 OR col0 < 269 OR (col1 > 109.76) AND (col3 < 7) OR (col3 > 721)

statement ok
CREATE VIEW view_2_tab0_572 AS SELECT pk, col0 FROM tab0 WHERE NOT (col3 < 953 OR col0 < 269 OR (col1 > 109.76) AND (col3 < 7) OR (col3 > 721))

statement ok
CREATE VIEW view_3_tab0_572 AS SELECT pk FROM view_1_tab0_572

query II rowsort label-4700-1
SELECT pk, col0 FROM tab0 WHERE col3 < 953 OR col0 < 269 OR (col1 > 109.76) AND (col3 < 7) OR (col3 > 721)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-4700-2
SELECT pk, col0 FROM tab0 WHERE NOT (col3 < 953 OR col0 < 269 OR (col1 > 109.76) AND (col3 < 7) OR (col3 > 721))
----

query II rowsort label-4700-1
SELECT pk, col0 FROM view_1_tab0_572
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-4700-2
SELECT pk, col0 FROM view_2_tab0_572
----

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 < 953 OR col0 < 269 OR (col1 > 109.76) AND (col3 < 7) OR (col3 > 721) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col3 < 953 OR col0 < 269 OR (col1 > 109.76) AND (col3 < 7) OR (col3 > 721))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_572 UNION ALL SELECT pk, col0 FROM view_2_tab0_572
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 < 953 OR col0 < 269 OR (col1 > 109.76) AND (col3 < 7) OR (col3 > 721) UNION SELECT pk, col0 FROM tab0 WHERE NOT (col3 < 953 OR col0 < 269 OR (col1 > 109.76) AND (col3 < 7) OR (col3 > 721))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_572 UNION SELECT pk, col0 FROM view_2_tab0_572
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-4700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col3 < 953 OR col0 < 269 OR (col1 > 109.76) AND (col3 < 7) OR (col3 > 721) ) AS tab0_572
----
100 values hashing to d7fd31c3916c207fd3117332326c3f37

query I rowsort label-4700-3
SELECT * FROM view_3_tab0_572
----
100 values hashing to d7fd31c3916c207fd3117332326c3f37

query I rowsort label-4700-3
SELECT pk FROM tab0 WHERE col3 < 953 OR col0 < 269 OR (col1 > 109.76) AND (col3 < 7) OR (col3 > 721)
----
100 values hashing to d7fd31c3916c207fd3117332326c3f37

statement ok
DROP VIEW view_1_tab0_572

statement ok
DROP VIEW view_2_tab0_572

statement ok
DROP VIEW view_3_tab0_572

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_572') DROP VIEW view_1_tab1_572

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_572

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_572') DROP VIEW view_2_tab1_572

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_572

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_572') DROP VIEW view_3_tab1_572

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_572

statement ok
CREATE VIEW view_1_tab1_572 AS SELECT pk, col0 FROM tab1 WHERE col3 < 953 OR col0 < 269 OR (col1 > 109.76) AND (col3 < 7) OR (col3 > 721)

statement ok
CREATE VIEW view_2_tab1_572 AS SELECT pk, col0 FROM tab1 WHERE NOT (col3 < 953 OR col0 < 269 OR (col1 > 109.76) AND (col3 < 7) OR (col3 > 721))

statement ok
CREATE VIEW view_3_tab1_572 AS SELECT pk FROM view_1_tab1_572

query II rowsort label-4700-1
SELECT pk, col0 FROM tab1 WHERE col3 < 953 OR col0 < 269 OR (col1 > 109.76) AND (col3 < 7) OR (col3 > 721)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-4700-2
SELECT pk, col0 FROM tab1 WHERE NOT (col3 < 953 OR col0 < 269 OR (col1 > 109.76) AND (col3 < 7) OR (col3 > 721))
----

query II rowsort label-4700-1
SELECT pk, col0 FROM view_1_tab1_572
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-4700-2
SELECT pk, col0 FROM view_2_tab1_572
----

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 < 953 OR col0 < 269 OR (col1 > 109.76) AND (col3 < 7) OR (col3 > 721) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col3 < 953 OR col0 < 269 OR (col1 > 109.76) AND (col3 < 7) OR (col3 > 721))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_572 UNION ALL SELECT pk, col0 FROM view_2_tab1_572
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 < 953 OR col0 < 269 OR (col1 > 109.76) AND (col3 < 7) OR (col3 > 721) UNION SELECT pk, col0 FROM tab1 WHERE NOT (col3 < 953 OR col0 < 269 OR (col1 > 109.76) AND (col3 < 7) OR (col3 > 721))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_572 UNION SELECT pk, col0 FROM view_2_tab1_572
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-4700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col3 < 953 OR col0 < 269 OR (col1 > 109.76) AND (col3 < 7) OR (col3 > 721) ) AS tab1_572
----
100 values hashing to d7fd31c3916c207fd3117332326c3f37

query I rowsort label-4700-3
SELECT * FROM view_3_tab1_572
----
100 values hashing to d7fd31c3916c207fd3117332326c3f37

query I rowsort label-4700-3
SELECT pk FROM tab1 WHERE col3 < 953 OR col0 < 269 OR (col1 > 109.76) AND (col3 < 7) OR (col3 > 721)
----
100 values hashing to d7fd31c3916c207fd3117332326c3f37

statement ok
DROP VIEW view_1_tab1_572

statement ok
DROP VIEW view_2_tab1_572

statement ok
DROP VIEW view_3_tab1_572

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_572') DROP VIEW view_1_tab2_572

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_572

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_572') DROP VIEW view_2_tab2_572

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_572

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_572') DROP VIEW view_3_tab2_572

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_572

statement ok
CREATE VIEW view_1_tab2_572 AS SELECT pk, col0 FROM tab2 WHERE col3 < 953 OR col0 < 269 OR (col1 > 109.76) AND (col3 < 7) OR (col3 > 721)

statement ok
CREATE VIEW view_2_tab2_572 AS SELECT pk, col0 FROM tab2 WHERE NOT (col3 < 953 OR col0 < 269 OR (col1 > 109.76) AND (col3 < 7) OR (col3 > 721))

statement ok
CREATE VIEW view_3_tab2_572 AS SELECT pk FROM view_1_tab2_572

query II rowsort label-4700-1
SELECT pk, col0 FROM tab2 WHERE col3 < 953 OR col0 < 269 OR (col1 > 109.76) AND (col3 < 7) OR (col3 > 721)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-4700-2
SELECT pk, col0 FROM tab2 WHERE NOT (col3 < 953 OR col0 < 269 OR (col1 > 109.76) AND (col3 < 7) OR (col3 > 721))
----

query II rowsort label-4700-1
SELECT pk, col0 FROM view_1_tab2_572
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-4700-2
SELECT pk, col0 FROM view_2_tab2_572
----

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 < 953 OR col0 < 269 OR (col1 > 109.76) AND (col3 < 7) OR (col3 > 721) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col3 < 953 OR col0 < 269 OR (col1 > 109.76) AND (col3 < 7) OR (col3 > 721))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_572 UNION ALL SELECT pk, col0 FROM view_2_tab2_572
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 < 953 OR col0 < 269 OR (col1 > 109.76) AND (col3 < 7) OR (col3 > 721) UNION SELECT pk, col0 FROM tab2 WHERE NOT (col3 < 953 OR col0 < 269 OR (col1 > 109.76) AND (col3 < 7) OR (col3 > 721))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_572 UNION SELECT pk, col0 FROM view_2_tab2_572
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-4700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col3 < 953 OR col0 < 269 OR (col1 > 109.76) AND (col3 < 7) OR (col3 > 721) ) AS tab2_572
----
100 values hashing to d7fd31c3916c207fd3117332326c3f37

query I rowsort label-4700-3
SELECT * FROM view_3_tab2_572
----
100 values hashing to d7fd31c3916c207fd3117332326c3f37

query I rowsort label-4700-3
SELECT pk FROM tab2 WHERE col3 < 953 OR col0 < 269 OR (col1 > 109.76) AND (col3 < 7) OR (col3 > 721)
----
100 values hashing to d7fd31c3916c207fd3117332326c3f37

statement ok
DROP VIEW view_1_tab2_572

statement ok
DROP VIEW view_2_tab2_572

statement ok
DROP VIEW view_3_tab2_572

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_572') DROP VIEW view_1_tab3_572

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_572

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_572') DROP VIEW view_2_tab3_572

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_572

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_572') DROP VIEW view_3_tab3_572

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_572

statement ok
CREATE VIEW view_1_tab3_572 AS SELECT pk, col0 FROM tab3 WHERE col3 < 953 OR col0 < 269 OR (col1 > 109.76) AND (col3 < 7) OR (col3 > 721)

statement ok
CREATE VIEW view_2_tab3_572 AS SELECT pk, col0 FROM tab3 WHERE NOT (col3 < 953 OR col0 < 269 OR (col1 > 109.76) AND (col3 < 7) OR (col3 > 721))

statement ok
CREATE VIEW view_3_tab3_572 AS SELECT pk FROM view_1_tab3_572

query II rowsort label-4700-1
SELECT pk, col0 FROM tab3 WHERE col3 < 953 OR col0 < 269 OR (col1 > 109.76) AND (col3 < 7) OR (col3 > 721)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-4700-2
SELECT pk, col0 FROM tab3 WHERE NOT (col3 < 953 OR col0 < 269 OR (col1 > 109.76) AND (col3 < 7) OR (col3 > 721))
----

query II rowsort label-4700-1
SELECT pk, col0 FROM view_1_tab3_572
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-4700-2
SELECT pk, col0 FROM view_2_tab3_572
----

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 < 953 OR col0 < 269 OR (col1 > 109.76) AND (col3 < 7) OR (col3 > 721) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col3 < 953 OR col0 < 269 OR (col1 > 109.76) AND (col3 < 7) OR (col3 > 721))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_572 UNION ALL SELECT pk, col0 FROM view_2_tab3_572
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 < 953 OR col0 < 269 OR (col1 > 109.76) AND (col3 < 7) OR (col3 > 721) UNION SELECT pk, col0 FROM tab3 WHERE NOT (col3 < 953 OR col0 < 269 OR (col1 > 109.76) AND (col3 < 7) OR (col3 > 721))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_572 UNION SELECT pk, col0 FROM view_2_tab3_572
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-4700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col3 < 953 OR col0 < 269 OR (col1 > 109.76) AND (col3 < 7) OR (col3 > 721) ) AS tab3_572
----
100 values hashing to d7fd31c3916c207fd3117332326c3f37

query I rowsort label-4700-3
SELECT * FROM view_3_tab3_572
----
100 values hashing to d7fd31c3916c207fd3117332326c3f37

query I rowsort label-4700-3
SELECT pk FROM tab3 WHERE col3 < 953 OR col0 < 269 OR (col1 > 109.76) AND (col3 < 7) OR (col3 > 721)
----
100 values hashing to d7fd31c3916c207fd3117332326c3f37

statement ok
DROP VIEW view_1_tab3_572

statement ok
DROP VIEW view_2_tab3_572

statement ok
DROP VIEW view_3_tab3_572

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_572') DROP VIEW view_1_tab4_572

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_572

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_572') DROP VIEW view_2_tab4_572

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_572

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_572') DROP VIEW view_3_tab4_572

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_572

statement ok
CREATE VIEW view_1_tab4_572 AS SELECT pk, col0 FROM tab4 WHERE col3 < 953 OR col0 < 269 OR (col1 > 109.76) AND (col3 < 7) OR (col3 > 721)

statement ok
CREATE VIEW view_2_tab4_572 AS SELECT pk, col0 FROM tab4 WHERE NOT (col3 < 953 OR col0 < 269 OR (col1 > 109.76) AND (col3 < 7) OR (col3 > 721))

statement ok
CREATE VIEW view_3_tab4_572 AS SELECT pk FROM view_1_tab4_572

query II rowsort label-4700-1
SELECT pk, col0 FROM tab4 WHERE col3 < 953 OR col0 < 269 OR (col1 > 109.76) AND (col3 < 7) OR (col3 > 721)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-4700-2
SELECT pk, col0 FROM tab4 WHERE NOT (col3 < 953 OR col0 < 269 OR (col1 > 109.76) AND (col3 < 7) OR (col3 > 721))
----

query II rowsort label-4700-1
SELECT pk, col0 FROM view_1_tab4_572
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-4700-2
SELECT pk, col0 FROM view_2_tab4_572
----

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 < 953 OR col0 < 269 OR (col1 > 109.76) AND (col3 < 7) OR (col3 > 721) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col3 < 953 OR col0 < 269 OR (col1 > 109.76) AND (col3 < 7) OR (col3 > 721))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_572 UNION ALL SELECT pk, col0 FROM view_2_tab4_572
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 < 953 OR col0 < 269 OR (col1 > 109.76) AND (col3 < 7) OR (col3 > 721) UNION SELECT pk, col0 FROM tab4 WHERE NOT (col3 < 953 OR col0 < 269 OR (col1 > 109.76) AND (col3 < 7) OR (col3 > 721))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_572 UNION SELECT pk, col0 FROM view_2_tab4_572
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-4700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col3 < 953 OR col0 < 269 OR (col1 > 109.76) AND (col3 < 7) OR (col3 > 721) ) AS tab4_572
----
100 values hashing to d7fd31c3916c207fd3117332326c3f37

query I rowsort label-4700-3
SELECT * FROM view_3_tab4_572
----
100 values hashing to d7fd31c3916c207fd3117332326c3f37

query I rowsort label-4700-3
SELECT pk FROM tab4 WHERE col3 < 953 OR col0 < 269 OR (col1 > 109.76) AND (col3 < 7) OR (col3 > 721)
----
100 values hashing to d7fd31c3916c207fd3117332326c3f37

statement ok
DROP VIEW view_1_tab4_572

statement ok
DROP VIEW view_2_tab4_572

statement ok
DROP VIEW view_3_tab4_572

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_573') DROP VIEW view_1_tab0_573

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_573

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_573') DROP VIEW view_2_tab0_573

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_573

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_573') DROP VIEW view_3_tab0_573

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_573

statement ok
CREATE VIEW view_1_tab0_573 AS SELECT pk, col0 FROM tab0 WHERE (col3 < 460 AND (col4 IN (384.47,269.1) AND col3 < 705)) OR ((col0 < 232)) AND col0 IS NULL OR (col4 < 302.81) OR (col0 IN (SELECT col3 FROM tab0 WHERE col0 < 708)) OR (col0 = 673)

statement ok
CREATE VIEW view_2_tab0_573 AS SELECT pk, col0 FROM tab0 WHERE NOT ((col3 < 460 AND (col4 IN (384.47,269.1) AND col3 < 705)) OR ((col0 < 232)) AND col0 IS NULL OR (col4 < 302.81) OR (col0 IN (SELECT col3 FROM tab0 WHERE col0 < 708)) OR (col0 = 673))

statement ok
CREATE VIEW view_3_tab0_573 AS SELECT pk FROM view_1_tab0_573

query II rowsort label-4800-1
SELECT pk, col0 FROM tab0 WHERE (col3 < 460 AND (col4 IN (384.47,269.1) AND col3 < 705)) OR ((col0 < 232)) AND col0 IS NULL OR (col4 < 302.81) OR (col0 IN (SELECT col3 FROM tab0 WHERE col0 < 708)) OR (col0 = 673)
----
68 values hashing to 63b97ce234d4ba3a8d7853a941b58784

query II rowsort label-4800-2
SELECT pk, col0 FROM tab0 WHERE NOT ((col3 < 460 AND (col4 IN (384.47,269.1) AND col3 < 705)) OR ((col0 < 232)) AND col0 IS NULL OR (col4 < 302.81) OR (col0 IN (SELECT col3 FROM tab0 WHERE col0 < 708)) OR (col0 = 673))
----
132 values hashing to 3ce322af50b877430b8fc3ed8b92fef4

query II rowsort label-4800-1
SELECT pk, col0 FROM view_1_tab0_573
----
68 values hashing to 63b97ce234d4ba3a8d7853a941b58784

query II rowsort label-4800-2
SELECT pk, col0 FROM view_2_tab0_573
----
132 values hashing to 3ce322af50b877430b8fc3ed8b92fef4

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col3 < 460 AND (col4 IN (384.47,269.1) AND col3 < 705)) OR ((col0 < 232)) AND col0 IS NULL OR (col4 < 302.81) OR (col0 IN (SELECT col3 FROM tab0 WHERE col0 < 708)) OR (col0 = 673) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT ((col3 < 460 AND (col4 IN (384.47,269.1) AND col3 < 705)) OR ((col0 < 232)) AND col0 IS NULL OR (col4 < 302.81) OR (col0 IN (SELECT col3 FROM tab0 WHERE col0 < 708)) OR (col0 = 673))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_573 UNION ALL SELECT pk, col0 FROM view_2_tab0_573
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col3 < 460 AND (col4 IN (384.47,269.1) AND col3 < 705)) OR ((col0 < 232)) AND col0 IS NULL OR (col4 < 302.81) OR (col0 IN (SELECT col3 FROM tab0 WHERE col0 < 708)) OR (col0 = 673) UNION SELECT pk, col0 FROM tab0 WHERE NOT ((col3 < 460 AND (col4 IN (384.47,269.1) AND col3 < 705)) OR ((col0 < 232)) AND col0 IS NULL OR (col4 < 302.81) OR (col0 IN (SELECT col3 FROM tab0 WHERE col0 < 708)) OR (col0 = 673))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_573 UNION SELECT pk, col0 FROM view_2_tab0_573
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-4800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE (col3 < 460 AND (col4 IN (384.47,269.1) AND col3 < 705)) OR ((col0 < 232)) AND col0 IS NULL OR (col4 < 302.81) OR (col0 IN (SELECT col3 FROM tab0 WHERE col0 < 708)) OR (col0 = 673) ) AS tab0_573
----
34 values hashing to 417a2ad63ea1a2dc4c50dc6071197632

query I rowsort label-4800-3
SELECT * FROM view_3_tab0_573
----
34 values hashing to 417a2ad63ea1a2dc4c50dc6071197632

query I rowsort label-4800-3
SELECT pk FROM tab0 WHERE (col3 < 460 AND (col4 IN (384.47,269.1) AND col3 < 705)) OR ((col0 < 232)) AND col0 IS NULL OR (col4 < 302.81) OR (col0 IN (SELECT col3 FROM tab0 WHERE col0 < 708)) OR (col0 = 673)
----
34 values hashing to 417a2ad63ea1a2dc4c50dc6071197632

statement ok
DROP VIEW view_1_tab0_573

statement ok
DROP VIEW view_2_tab0_573

statement ok
DROP VIEW view_3_tab0_573

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_573') DROP VIEW view_1_tab1_573

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_573

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_573') DROP VIEW view_2_tab1_573

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_573

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_573') DROP VIEW view_3_tab1_573

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_573

statement ok
CREATE VIEW view_1_tab1_573 AS SELECT pk, col0 FROM tab1 WHERE (col3 < 460 AND (col4 IN (384.47,269.1) AND col3 < 705)) OR ((col0 < 232)) AND col0 IS NULL OR (col4 < 302.81) OR (col0 IN (SELECT col3 FROM tab1 WHERE col0 < 708)) OR (col0 = 673)

statement ok
CREATE VIEW view_2_tab1_573 AS SELECT pk, col0 FROM tab1 WHERE NOT ((col3 < 460 AND (col4 IN (384.47,269.1) AND col3 < 705)) OR ((col0 < 232)) AND col0 IS NULL OR (col4 < 302.81) OR (col0 IN (SELECT col3 FROM tab1 WHERE col0 < 708)) OR (col0 = 673))

statement ok
CREATE VIEW view_3_tab1_573 AS SELECT pk FROM view_1_tab1_573

query II rowsort label-4800-1
SELECT pk, col0 FROM tab1 WHERE (col3 < 460 AND (col4 IN (384.47,269.1) AND col3 < 705)) OR ((col0 < 232)) AND col0 IS NULL OR (col4 < 302.81) OR (col0 IN (SELECT col3 FROM tab1 WHERE col0 < 708)) OR (col0 = 673)
----
68 values hashing to 63b97ce234d4ba3a8d7853a941b58784

query II rowsort label-4800-2
SELECT pk, col0 FROM tab1 WHERE NOT ((col3 < 460 AND (col4 IN (384.47,269.1) AND col3 < 705)) OR ((col0 < 232)) AND col0 IS NULL OR (col4 < 302.81) OR (col0 IN (SELECT col3 FROM tab1 WHERE col0 < 708)) OR (col0 = 673))
----
132 values hashing to 3ce322af50b877430b8fc3ed8b92fef4

query II rowsort label-4800-1
SELECT pk, col0 FROM view_1_tab1_573
----
68 values hashing to 63b97ce234d4ba3a8d7853a941b58784

query II rowsort label-4800-2
SELECT pk, col0 FROM view_2_tab1_573
----
132 values hashing to 3ce322af50b877430b8fc3ed8b92fef4

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col3 < 460 AND (col4 IN (384.47,269.1) AND col3 < 705)) OR ((col0 < 232)) AND col0 IS NULL OR (col4 < 302.81) OR (col0 IN (SELECT col3 FROM tab1 WHERE col0 < 708)) OR (col0 = 673) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT ((col3 < 460 AND (col4 IN (384.47,269.1) AND col3 < 705)) OR ((col0 < 232)) AND col0 IS NULL OR (col4 < 302.81) OR (col0 IN (SELECT col3 FROM tab1 WHERE col0 < 708)) OR (col0 = 673))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_573 UNION ALL SELECT pk, col0 FROM view_2_tab1_573
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col3 < 460 AND (col4 IN (384.47,269.1) AND col3 < 705)) OR ((col0 < 232)) AND col0 IS NULL OR (col4 < 302.81) OR (col0 IN (SELECT col3 FROM tab1 WHERE col0 < 708)) OR (col0 = 673) UNION SELECT pk, col0 FROM tab1 WHERE NOT ((col3 < 460 AND (col4 IN (384.47,269.1) AND col3 < 705)) OR ((col0 < 232)) AND col0 IS NULL OR (col4 < 302.81) OR (col0 IN (SELECT col3 FROM tab1 WHERE col0 < 708)) OR (col0 = 673))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_573 UNION SELECT pk, col0 FROM view_2_tab1_573
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-4800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE (col3 < 460 AND (col4 IN (384.47,269.1) AND col3 < 705)) OR ((col0 < 232)) AND col0 IS NULL OR (col4 < 302.81) OR (col0 IN (SELECT col3 FROM tab1 WHERE col0 < 708)) OR (col0 = 673) ) AS tab1_573
----
34 values hashing to 417a2ad63ea1a2dc4c50dc6071197632

query I rowsort label-4800-3
SELECT * FROM view_3_tab1_573
----
34 values hashing to 417a2ad63ea1a2dc4c50dc6071197632

query I rowsort label-4800-3
SELECT pk FROM tab1 WHERE (col3 < 460 AND (col4 IN (384.47,269.1) AND col3 < 705)) OR ((col0 < 232)) AND col0 IS NULL OR (col4 < 302.81) OR (col0 IN (SELECT col3 FROM tab1 WHERE col0 < 708)) OR (col0 = 673)
----
34 values hashing to 417a2ad63ea1a2dc4c50dc6071197632

statement ok
DROP VIEW view_1_tab1_573

statement ok
DROP VIEW view_2_tab1_573

statement ok
DROP VIEW view_3_tab1_573

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_573') DROP VIEW view_1_tab2_573

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_573

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_573') DROP VIEW view_2_tab2_573

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_573

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_573') DROP VIEW view_3_tab2_573

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_573

statement ok
CREATE VIEW view_1_tab2_573 AS SELECT pk, col0 FROM tab2 WHERE (col3 < 460 AND (col4 IN (384.47,269.1) AND col3 < 705)) OR ((col0 < 232)) AND col0 IS NULL OR (col4 < 302.81) OR (col0 IN (SELECT col3 FROM tab2 WHERE col0 < 708)) OR (col0 = 673)

statement ok
CREATE VIEW view_2_tab2_573 AS SELECT pk, col0 FROM tab2 WHERE NOT ((col3 < 460 AND (col4 IN (384.47,269.1) AND col3 < 705)) OR ((col0 < 232)) AND col0 IS NULL OR (col4 < 302.81) OR (col0 IN (SELECT col3 FROM tab2 WHERE col0 < 708)) OR (col0 = 673))

statement ok
CREATE VIEW view_3_tab2_573 AS SELECT pk FROM view_1_tab2_573

query II rowsort label-4800-1
SELECT pk, col0 FROM tab2 WHERE (col3 < 460 AND (col4 IN (384.47,269.1) AND col3 < 705)) OR ((col0 < 232)) AND col0 IS NULL OR (col4 < 302.81) OR (col0 IN (SELECT col3 FROM tab2 WHERE col0 < 708)) OR (col0 = 673)
----
68 values hashing to 63b97ce234d4ba3a8d7853a941b58784

query II rowsort label-4800-2
SELECT pk, col0 FROM tab2 WHERE NOT ((col3 < 460 AND (col4 IN (384.47,269.1) AND col3 < 705)) OR ((col0 < 232)) AND col0 IS NULL OR (col4 < 302.81) OR (col0 IN (SELECT col3 FROM tab2 WHERE col0 < 708)) OR (col0 = 673))
----
132 values hashing to 3ce322af50b877430b8fc3ed8b92fef4

query II rowsort label-4800-1
SELECT pk, col0 FROM view_1_tab2_573
----
68 values hashing to 63b97ce234d4ba3a8d7853a941b58784

query II rowsort label-4800-2
SELECT pk, col0 FROM view_2_tab2_573
----
132 values hashing to 3ce322af50b877430b8fc3ed8b92fef4

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col3 < 460 AND (col4 IN (384.47,269.1) AND col3 < 705)) OR ((col0 < 232)) AND col0 IS NULL OR (col4 < 302.81) OR (col0 IN (SELECT col3 FROM tab2 WHERE col0 < 708)) OR (col0 = 673) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT ((col3 < 460 AND (col4 IN (384.47,269.1) AND col3 < 705)) OR ((col0 < 232)) AND col0 IS NULL OR (col4 < 302.81) OR (col0 IN (SELECT col3 FROM tab2 WHERE col0 < 708)) OR (col0 = 673))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_573 UNION ALL SELECT pk, col0 FROM view_2_tab2_573
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col3 < 460 AND (col4 IN (384.47,269.1) AND col3 < 705)) OR ((col0 < 232)) AND col0 IS NULL OR (col4 < 302.81) OR (col0 IN (SELECT col3 FROM tab2 WHERE col0 < 708)) OR (col0 = 673) UNION SELECT pk, col0 FROM tab2 WHERE NOT ((col3 < 460 AND (col4 IN (384.47,269.1) AND col3 < 705)) OR ((col0 < 232)) AND col0 IS NULL OR (col4 < 302.81) OR (col0 IN (SELECT col3 FROM tab2 WHERE col0 < 708)) OR (col0 = 673))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_573 UNION SELECT pk, col0 FROM view_2_tab2_573
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-4800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE (col3 < 460 AND (col4 IN (384.47,269.1) AND col3 < 705)) OR ((col0 < 232)) AND col0 IS NULL OR (col4 < 302.81) OR (col0 IN (SELECT col3 FROM tab2 WHERE col0 < 708)) OR (col0 = 673) ) AS tab2_573
----
34 values hashing to 417a2ad63ea1a2dc4c50dc6071197632

query I rowsort label-4800-3
SELECT * FROM view_3_tab2_573
----
34 values hashing to 417a2ad63ea1a2dc4c50dc6071197632

query I rowsort label-4800-3
SELECT pk FROM tab2 WHERE (col3 < 460 AND (col4 IN (384.47,269.1) AND col3 < 705)) OR ((col0 < 232)) AND col0 IS NULL OR (col4 < 302.81) OR (col0 IN (SELECT col3 FROM tab2 WHERE col0 < 708)) OR (col0 = 673)
----
34 values hashing to 417a2ad63ea1a2dc4c50dc6071197632

statement ok
DROP VIEW view_1_tab2_573

statement ok
DROP VIEW view_2_tab2_573

statement ok
DROP VIEW view_3_tab2_573

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_573') DROP VIEW view_1_tab3_573

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_573

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_573') DROP VIEW view_2_tab3_573

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_573

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_573') DROP VIEW view_3_tab3_573

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_573

statement ok
CREATE VIEW view_1_tab3_573 AS SELECT pk, col0 FROM tab3 WHERE (col3 < 460 AND (col4 IN (384.47,269.1) AND col3 < 705)) OR ((col0 < 232)) AND col0 IS NULL OR (col4 < 302.81) OR (col0 IN (SELECT col3 FROM tab3 WHERE col0 < 708)) OR (col0 = 673)

statement ok
CREATE VIEW view_2_tab3_573 AS SELECT pk, col0 FROM tab3 WHERE NOT ((col3 < 460 AND (col4 IN (384.47,269.1) AND col3 < 705)) OR ((col0 < 232)) AND col0 IS NULL OR (col4 < 302.81) OR (col0 IN (SELECT col3 FROM tab3 WHERE col0 < 708)) OR (col0 = 673))

statement ok
CREATE VIEW view_3_tab3_573 AS SELECT pk FROM view_1_tab3_573

query II rowsort label-4800-1
SELECT pk, col0 FROM tab3 WHERE (col3 < 460 AND (col4 IN (384.47,269.1) AND col3 < 705)) OR ((col0 < 232)) AND col0 IS NULL OR (col4 < 302.81) OR (col0 IN (SELECT col3 FROM tab3 WHERE col0 < 708)) OR (col0 = 673)
----
68 values hashing to 63b97ce234d4ba3a8d7853a941b58784

query II rowsort label-4800-2
SELECT pk, col0 FROM tab3 WHERE NOT ((col3 < 460 AND (col4 IN (384.47,269.1) AND col3 < 705)) OR ((col0 < 232)) AND col0 IS NULL OR (col4 < 302.81) OR (col0 IN (SELECT col3 FROM tab3 WHERE col0 < 708)) OR (col0 = 673))
----
132 values hashing to 3ce322af50b877430b8fc3ed8b92fef4

query II rowsort label-4800-1
SELECT pk, col0 FROM view_1_tab3_573
----
68 values hashing to 63b97ce234d4ba3a8d7853a941b58784

query II rowsort label-4800-2
SELECT pk, col0 FROM view_2_tab3_573
----
132 values hashing to 3ce322af50b877430b8fc3ed8b92fef4

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col3 < 460 AND (col4 IN (384.47,269.1) AND col3 < 705)) OR ((col0 < 232)) AND col0 IS NULL OR (col4 < 302.81) OR (col0 IN (SELECT col3 FROM tab3 WHERE col0 < 708)) OR (col0 = 673) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT ((col3 < 460 AND (col4 IN (384.47,269.1) AND col3 < 705)) OR ((col0 < 232)) AND col0 IS NULL OR (col4 < 302.81) OR (col0 IN (SELECT col3 FROM tab3 WHERE col0 < 708)) OR (col0 = 673))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_573 UNION ALL SELECT pk, col0 FROM view_2_tab3_573
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col3 < 460 AND (col4 IN (384.47,269.1) AND col3 < 705)) OR ((col0 < 232)) AND col0 IS NULL OR (col4 < 302.81) OR (col0 IN (SELECT col3 FROM tab3 WHERE col0 < 708)) OR (col0 = 673) UNION SELECT pk, col0 FROM tab3 WHERE NOT ((col3 < 460 AND (col4 IN (384.47,269.1) AND col3 < 705)) OR ((col0 < 232)) AND col0 IS NULL OR (col4 < 302.81) OR (col0 IN (SELECT col3 FROM tab3 WHERE col0 < 708)) OR (col0 = 673))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_573 UNION SELECT pk, col0 FROM view_2_tab3_573
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-4800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE (col3 < 460 AND (col4 IN (384.47,269.1) AND col3 < 705)) OR ((col0 < 232)) AND col0 IS NULL OR (col4 < 302.81) OR (col0 IN (SELECT col3 FROM tab3 WHERE col0 < 708)) OR (col0 = 673) ) AS tab3_573
----
34 values hashing to 417a2ad63ea1a2dc4c50dc6071197632

query I rowsort label-4800-3
SELECT * FROM view_3_tab3_573
----
34 values hashing to 417a2ad63ea1a2dc4c50dc6071197632

query I rowsort label-4800-3
SELECT pk FROM tab3 WHERE (col3 < 460 AND (col4 IN (384.47,269.1) AND col3 < 705)) OR ((col0 < 232)) AND col0 IS NULL OR (col4 < 302.81) OR (col0 IN (SELECT col3 FROM tab3 WHERE col0 < 708)) OR (col0 = 673)
----
34 values hashing to 417a2ad63ea1a2dc4c50dc6071197632

statement ok
DROP VIEW view_1_tab3_573

statement ok
DROP VIEW view_2_tab3_573

statement ok
DROP VIEW view_3_tab3_573

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_573') DROP VIEW view_1_tab4_573

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_573

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_573') DROP VIEW view_2_tab4_573

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_573

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_573') DROP VIEW view_3_tab4_573

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_573

statement ok
CREATE VIEW view_1_tab4_573 AS SELECT pk, col0 FROM tab4 WHERE (col3 < 460 AND (col4 IN (384.47,269.1) AND col3 < 705)) OR ((col0 < 232)) AND col0 IS NULL OR (col4 < 302.81) OR (col0 IN (SELECT col3 FROM tab4 WHERE col0 < 708)) OR (col0 = 673)

statement ok
CREATE VIEW view_2_tab4_573 AS SELECT pk, col0 FROM tab4 WHERE NOT ((col3 < 460 AND (col4 IN (384.47,269.1) AND col3 < 705)) OR ((col0 < 232)) AND col0 IS NULL OR (col4 < 302.81) OR (col0 IN (SELECT col3 FROM tab4 WHERE col0 < 708)) OR (col0 = 673))

statement ok
CREATE VIEW view_3_tab4_573 AS SELECT pk FROM view_1_tab4_573

query II rowsort label-4800-1
SELECT pk, col0 FROM tab4 WHERE (col3 < 460 AND (col4 IN (384.47,269.1) AND col3 < 705)) OR ((col0 < 232)) AND col0 IS NULL OR (col4 < 302.81) OR (col0 IN (SELECT col3 FROM tab4 WHERE col0 < 708)) OR (col0 = 673)
----
68 values hashing to 63b97ce234d4ba3a8d7853a941b58784

query II rowsort label-4800-2
SELECT pk, col0 FROM tab4 WHERE NOT ((col3 < 460 AND (col4 IN (384.47,269.1) AND col3 < 705)) OR ((col0 < 232)) AND col0 IS NULL OR (col4 < 302.81) OR (col0 IN (SELECT col3 FROM tab4 WHERE col0 < 708)) OR (col0 = 673))
----
132 values hashing to 3ce322af50b877430b8fc3ed8b92fef4

query II rowsort label-4800-1
SELECT pk, col0 FROM view_1_tab4_573
----
68 values hashing to 63b97ce234d4ba3a8d7853a941b58784

query II rowsort label-4800-2
SELECT pk, col0 FROM view_2_tab4_573
----
132 values hashing to 3ce322af50b877430b8fc3ed8b92fef4

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col3 < 460 AND (col4 IN (384.47,269.1) AND col3 < 705)) OR ((col0 < 232)) AND col0 IS NULL OR (col4 < 302.81) OR (col0 IN (SELECT col3 FROM tab4 WHERE col0 < 708)) OR (col0 = 673) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT ((col3 < 460 AND (col4 IN (384.47,269.1) AND col3 < 705)) OR ((col0 < 232)) AND col0 IS NULL OR (col4 < 302.81) OR (col0 IN (SELECT col3 FROM tab4 WHERE col0 < 708)) OR (col0 = 673))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_573 UNION ALL SELECT pk, col0 FROM view_2_tab4_573
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col3 < 460 AND (col4 IN (384.47,269.1) AND col3 < 705)) OR ((col0 < 232)) AND col0 IS NULL OR (col4 < 302.81) OR (col0 IN (SELECT col3 FROM tab4 WHERE col0 < 708)) OR (col0 = 673) UNION SELECT pk, col0 FROM tab4 WHERE NOT ((col3 < 460 AND (col4 IN (384.47,269.1) AND col3 < 705)) OR ((col0 < 232)) AND col0 IS NULL OR (col4 < 302.81) OR (col0 IN (SELECT col3 FROM tab4 WHERE col0 < 708)) OR (col0 = 673))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_573 UNION SELECT pk, col0 FROM view_2_tab4_573
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-4800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE (col3 < 460 AND (col4 IN (384.47,269.1) AND col3 < 705)) OR ((col0 < 232)) AND col0 IS NULL OR (col4 < 302.81) OR (col0 IN (SELECT col3 FROM tab4 WHERE col0 < 708)) OR (col0 = 673) ) AS tab4_573
----
34 values hashing to 417a2ad63ea1a2dc4c50dc6071197632

query I rowsort label-4800-3
SELECT * FROM view_3_tab4_573
----
34 values hashing to 417a2ad63ea1a2dc4c50dc6071197632

query I rowsort label-4800-3
SELECT pk FROM tab4 WHERE (col3 < 460 AND (col4 IN (384.47,269.1) AND col3 < 705)) OR ((col0 < 232)) AND col0 IS NULL OR (col4 < 302.81) OR (col0 IN (SELECT col3 FROM tab4 WHERE col0 < 708)) OR (col0 = 673)
----
34 values hashing to 417a2ad63ea1a2dc4c50dc6071197632

statement ok
DROP VIEW view_1_tab4_573

statement ok
DROP VIEW view_2_tab4_573

statement ok
DROP VIEW view_3_tab4_573

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_574') DROP VIEW view_1_tab0_574

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_574

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_574') DROP VIEW view_2_tab0_574

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_574

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_574') DROP VIEW view_3_tab0_574

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_574

statement ok
CREATE VIEW view_1_tab0_574 AS SELECT pk, col0 FROM tab0 WHERE (col0 < 198 AND col0 = 671)

statement ok
CREATE VIEW view_2_tab0_574 AS SELECT pk, col0 FROM tab0 WHERE NOT ((col0 < 198 AND col0 = 671))

statement ok
CREATE VIEW view_3_tab0_574 AS SELECT pk FROM view_1_tab0_574

query II rowsort label-4900-1
SELECT pk, col0 FROM tab0 WHERE (col0 < 198 AND col0 = 671)
----

query II rowsort label-4900-2
SELECT pk, col0 FROM tab0 WHERE NOT ((col0 < 198 AND col0 = 671))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-4900-1
SELECT pk, col0 FROM view_1_tab0_574
----

query II rowsort label-4900-2
SELECT pk, col0 FROM view_2_tab0_574
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col0 < 198 AND col0 = 671) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT ((col0 < 198 AND col0 = 671))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_574 UNION ALL SELECT pk, col0 FROM view_2_tab0_574
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col0 < 198 AND col0 = 671) UNION SELECT pk, col0 FROM tab0 WHERE NOT ((col0 < 198 AND col0 = 671))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_574 UNION SELECT pk, col0 FROM view_2_tab0_574
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-4900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE (col0 < 198 AND col0 = 671) ) AS tab0_574
----

query I rowsort label-4900-3
SELECT * FROM view_3_tab0_574
----

query I rowsort label-4900-3
SELECT pk FROM tab0 WHERE (col0 < 198 AND col0 = 671)
----

statement ok
DROP VIEW view_1_tab0_574

statement ok
DROP VIEW view_2_tab0_574

statement ok
DROP VIEW view_3_tab0_574

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_574') DROP VIEW view_1_tab1_574

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_574

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_574') DROP VIEW view_2_tab1_574

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_574

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_574') DROP VIEW view_3_tab1_574

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_574

statement ok
CREATE VIEW view_1_tab1_574 AS SELECT pk, col0 FROM tab1 WHERE (col0 < 198 AND col0 = 671)

statement ok
CREATE VIEW view_2_tab1_574 AS SELECT pk, col0 FROM tab1 WHERE NOT ((col0 < 198 AND col0 = 671))

statement ok
CREATE VIEW view_3_tab1_574 AS SELECT pk FROM view_1_tab1_574

query II rowsort label-4900-1
SELECT pk, col0 FROM tab1 WHERE (col0 < 198 AND col0 = 671)
----

query II rowsort label-4900-2
SELECT pk, col0 FROM tab1 WHERE NOT ((col0 < 198 AND col0 = 671))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-4900-1
SELECT pk, col0 FROM view_1_tab1_574
----

query II rowsort label-4900-2
SELECT pk, col0 FROM view_2_tab1_574
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col0 < 198 AND col0 = 671) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT ((col0 < 198 AND col0 = 671))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_574 UNION ALL SELECT pk, col0 FROM view_2_tab1_574
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col0 < 198 AND col0 = 671) UNION SELECT pk, col0 FROM tab1 WHERE NOT ((col0 < 198 AND col0 = 671))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_574 UNION SELECT pk, col0 FROM view_2_tab1_574
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-4900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE (col0 < 198 AND col0 = 671) ) AS tab1_574
----

query I rowsort label-4900-3
SELECT * FROM view_3_tab1_574
----

query I rowsort label-4900-3
SELECT pk FROM tab1 WHERE (col0 < 198 AND col0 = 671)
----

statement ok
DROP VIEW view_1_tab1_574

statement ok
DROP VIEW view_2_tab1_574

statement ok
DROP VIEW view_3_tab1_574

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_574') DROP VIEW view_1_tab2_574

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_574

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_574') DROP VIEW view_2_tab2_574

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_574

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_574') DROP VIEW view_3_tab2_574

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_574

statement ok
CREATE VIEW view_1_tab2_574 AS SELECT pk, col0 FROM tab2 WHERE (col0 < 198 AND col0 = 671)

statement ok
CREATE VIEW view_2_tab2_574 AS SELECT pk, col0 FROM tab2 WHERE NOT ((col0 < 198 AND col0 = 671))

statement ok
CREATE VIEW view_3_tab2_574 AS SELECT pk FROM view_1_tab2_574

query II rowsort label-4900-1
SELECT pk, col0 FROM tab2 WHERE (col0 < 198 AND col0 = 671)
----

query II rowsort label-4900-2
SELECT pk, col0 FROM tab2 WHERE NOT ((col0 < 198 AND col0 = 671))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-4900-1
SELECT pk, col0 FROM view_1_tab2_574
----

query II rowsort label-4900-2
SELECT pk, col0 FROM view_2_tab2_574
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col0 < 198 AND col0 = 671) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT ((col0 < 198 AND col0 = 671))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_574 UNION ALL SELECT pk, col0 FROM view_2_tab2_574
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col0 < 198 AND col0 = 671) UNION SELECT pk, col0 FROM tab2 WHERE NOT ((col0 < 198 AND col0 = 671))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_574 UNION SELECT pk, col0 FROM view_2_tab2_574
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-4900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE (col0 < 198 AND col0 = 671) ) AS tab2_574
----

query I rowsort label-4900-3
SELECT * FROM view_3_tab2_574
----

query I rowsort label-4900-3
SELECT pk FROM tab2 WHERE (col0 < 198 AND col0 = 671)
----

statement ok
DROP VIEW view_1_tab2_574

statement ok
DROP VIEW view_2_tab2_574

statement ok
DROP VIEW view_3_tab2_574

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_574') DROP VIEW view_1_tab3_574

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_574

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_574') DROP VIEW view_2_tab3_574

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_574

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_574') DROP VIEW view_3_tab3_574

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_574

statement ok
CREATE VIEW view_1_tab3_574 AS SELECT pk, col0 FROM tab3 WHERE (col0 < 198 AND col0 = 671)

statement ok
CREATE VIEW view_2_tab3_574 AS SELECT pk, col0 FROM tab3 WHERE NOT ((col0 < 198 AND col0 = 671))

statement ok
CREATE VIEW view_3_tab3_574 AS SELECT pk FROM view_1_tab3_574

query II rowsort label-4900-1
SELECT pk, col0 FROM tab3 WHERE (col0 < 198 AND col0 = 671)
----

query II rowsort label-4900-2
SELECT pk, col0 FROM tab3 WHERE NOT ((col0 < 198 AND col0 = 671))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-4900-1
SELECT pk, col0 FROM view_1_tab3_574
----

query II rowsort label-4900-2
SELECT pk, col0 FROM view_2_tab3_574
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col0 < 198 AND col0 = 671) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT ((col0 < 198 AND col0 = 671))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_574 UNION ALL SELECT pk, col0 FROM view_2_tab3_574
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col0 < 198 AND col0 = 671) UNION SELECT pk, col0 FROM tab3 WHERE NOT ((col0 < 198 AND col0 = 671))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_574 UNION SELECT pk, col0 FROM view_2_tab3_574
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-4900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE (col0 < 198 AND col0 = 671) ) AS tab3_574
----

query I rowsort label-4900-3
SELECT * FROM view_3_tab3_574
----

query I rowsort label-4900-3
SELECT pk FROM tab3 WHERE (col0 < 198 AND col0 = 671)
----

statement ok
DROP VIEW view_1_tab3_574

statement ok
DROP VIEW view_2_tab3_574

statement ok
DROP VIEW view_3_tab3_574

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_574') DROP VIEW view_1_tab4_574

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_574

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_574') DROP VIEW view_2_tab4_574

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_574

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_574') DROP VIEW view_3_tab4_574

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_574

statement ok
CREATE VIEW view_1_tab4_574 AS SELECT pk, col0 FROM tab4 WHERE (col0 < 198 AND col0 = 671)

statement ok
CREATE VIEW view_2_tab4_574 AS SELECT pk, col0 FROM tab4 WHERE NOT ((col0 < 198 AND col0 = 671))

statement ok
CREATE VIEW view_3_tab4_574 AS SELECT pk FROM view_1_tab4_574

query II rowsort label-4900-1
SELECT pk, col0 FROM tab4 WHERE (col0 < 198 AND col0 = 671)
----

query II rowsort label-4900-2
SELECT pk, col0 FROM tab4 WHERE NOT ((col0 < 198 AND col0 = 671))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-4900-1
SELECT pk, col0 FROM view_1_tab4_574
----

query II rowsort label-4900-2
SELECT pk, col0 FROM view_2_tab4_574
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col0 < 198 AND col0 = 671) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT ((col0 < 198 AND col0 = 671))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_574 UNION ALL SELECT pk, col0 FROM view_2_tab4_574
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col0 < 198 AND col0 = 671) UNION SELECT pk, col0 FROM tab4 WHERE NOT ((col0 < 198 AND col0 = 671))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_574 UNION SELECT pk, col0 FROM view_2_tab4_574
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-4900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE (col0 < 198 AND col0 = 671) ) AS tab4_574
----

query I rowsort label-4900-3
SELECT * FROM view_3_tab4_574
----

query I rowsort label-4900-3
SELECT pk FROM tab4 WHERE (col0 < 198 AND col0 = 671)
----

statement ok
DROP VIEW view_1_tab4_574

statement ok
DROP VIEW view_2_tab4_574

statement ok
DROP VIEW view_3_tab4_574

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_575') DROP VIEW view_1_tab0_575

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_575

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_575') DROP VIEW view_2_tab0_575

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_575

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_575') DROP VIEW view_3_tab0_575

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_575

statement ok
CREATE VIEW view_1_tab0_575 AS SELECT pk, col0 FROM tab0 WHERE col3 <= 421

statement ok
CREATE VIEW view_2_tab0_575 AS SELECT pk, col0 FROM tab0 WHERE NOT (col3 <= 421)

statement ok
CREATE VIEW view_3_tab0_575 AS SELECT pk FROM view_1_tab0_575

query II rowsort label-5000-1
SELECT pk, col0 FROM tab0 WHERE col3 <= 421
----
102 values hashing to 298ae03dd1b86bfb5c52f21a4423f4e8

query II rowsort label-5000-2
SELECT pk, col0 FROM tab0 WHERE NOT (col3 <= 421)
----
98 values hashing to 942d1292117dbb0a27f8324be2aba1fe

query II rowsort label-5000-1
SELECT pk, col0 FROM view_1_tab0_575
----
102 values hashing to 298ae03dd1b86bfb5c52f21a4423f4e8

query II rowsort label-5000-2
SELECT pk, col0 FROM view_2_tab0_575
----
98 values hashing to 942d1292117dbb0a27f8324be2aba1fe

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 <= 421 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col3 <= 421)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_575 UNION ALL SELECT pk, col0 FROM view_2_tab0_575
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 <= 421 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col3 <= 421)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_575 UNION SELECT pk, col0 FROM view_2_tab0_575
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-5000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col3 <= 421 ) AS tab0_575
----
51 values hashing to 09fda650ce498f7b06e1212ae78be9e5

query I rowsort label-5000-3
SELECT * FROM view_3_tab0_575
----
51 values hashing to 09fda650ce498f7b06e1212ae78be9e5

query I rowsort label-5000-3
SELECT pk FROM tab0 WHERE col3 <= 421
----
51 values hashing to 09fda650ce498f7b06e1212ae78be9e5

statement ok
DROP VIEW view_1_tab0_575

statement ok
DROP VIEW view_2_tab0_575

statement ok
DROP VIEW view_3_tab0_575

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_575') DROP VIEW view_1_tab1_575

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_575

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_575') DROP VIEW view_2_tab1_575

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_575

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_575') DROP VIEW view_3_tab1_575

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_575

statement ok
CREATE VIEW view_1_tab1_575 AS SELECT pk, col0 FROM tab1 WHERE col3 <= 421

statement ok
CREATE VIEW view_2_tab1_575 AS SELECT pk, col0 FROM tab1 WHERE NOT (col3 <= 421)

statement ok
CREATE VIEW view_3_tab1_575 AS SELECT pk FROM view_1_tab1_575

query II rowsort label-5000-1
SELECT pk, col0 FROM tab1 WHERE col3 <= 421
----
102 values hashing to 298ae03dd1b86bfb5c52f21a4423f4e8

query II rowsort label-5000-2
SELECT pk, col0 FROM tab1 WHERE NOT (col3 <= 421)
----
98 values hashing to 942d1292117dbb0a27f8324be2aba1fe

query II rowsort label-5000-1
SELECT pk, col0 FROM view_1_tab1_575
----
102 values hashing to 298ae03dd1b86bfb5c52f21a4423f4e8

query II rowsort label-5000-2
SELECT pk, col0 FROM view_2_tab1_575
----
98 values hashing to 942d1292117dbb0a27f8324be2aba1fe

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 <= 421 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col3 <= 421)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_575 UNION ALL SELECT pk, col0 FROM view_2_tab1_575
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 <= 421 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col3 <= 421)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_575 UNION SELECT pk, col0 FROM view_2_tab1_575
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-5000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col3 <= 421 ) AS tab1_575
----
51 values hashing to 09fda650ce498f7b06e1212ae78be9e5

query I rowsort label-5000-3
SELECT * FROM view_3_tab1_575
----
51 values hashing to 09fda650ce498f7b06e1212ae78be9e5

query I rowsort label-5000-3
SELECT pk FROM tab1 WHERE col3 <= 421
----
51 values hashing to 09fda650ce498f7b06e1212ae78be9e5

statement ok
DROP VIEW view_1_tab1_575

statement ok
DROP VIEW view_2_tab1_575

statement ok
DROP VIEW view_3_tab1_575

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_575') DROP VIEW view_1_tab2_575

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_575

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_575') DROP VIEW view_2_tab2_575

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_575

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_575') DROP VIEW view_3_tab2_575

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_575

statement ok
CREATE VIEW view_1_tab2_575 AS SELECT pk, col0 FROM tab2 WHERE col3 <= 421

statement ok
CREATE VIEW view_2_tab2_575 AS SELECT pk, col0 FROM tab2 WHERE NOT (col3 <= 421)

statement ok
CREATE VIEW view_3_tab2_575 AS SELECT pk FROM view_1_tab2_575

query II rowsort label-5000-1
SELECT pk, col0 FROM tab2 WHERE col3 <= 421
----
102 values hashing to 298ae03dd1b86bfb5c52f21a4423f4e8

query II rowsort label-5000-2
SELECT pk, col0 FROM tab2 WHERE NOT (col3 <= 421)
----
98 values hashing to 942d1292117dbb0a27f8324be2aba1fe

query II rowsort label-5000-1
SELECT pk, col0 FROM view_1_tab2_575
----
102 values hashing to 298ae03dd1b86bfb5c52f21a4423f4e8

query II rowsort label-5000-2
SELECT pk, col0 FROM view_2_tab2_575
----
98 values hashing to 942d1292117dbb0a27f8324be2aba1fe

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 <= 421 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col3 <= 421)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_575 UNION ALL SELECT pk, col0 FROM view_2_tab2_575
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 <= 421 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col3 <= 421)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_575 UNION SELECT pk, col0 FROM view_2_tab2_575
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-5000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col3 <= 421 ) AS tab2_575
----
51 values hashing to 09fda650ce498f7b06e1212ae78be9e5

query I rowsort label-5000-3
SELECT * FROM view_3_tab2_575
----
51 values hashing to 09fda650ce498f7b06e1212ae78be9e5

query I rowsort label-5000-3
SELECT pk FROM tab2 WHERE col3 <= 421
----
51 values hashing to 09fda650ce498f7b06e1212ae78be9e5

statement ok
DROP VIEW view_1_tab2_575

statement ok
DROP VIEW view_2_tab2_575

statement ok
DROP VIEW view_3_tab2_575

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_575') DROP VIEW view_1_tab3_575

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_575

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_575') DROP VIEW view_2_tab3_575

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_575

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_575') DROP VIEW view_3_tab3_575

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_575

statement ok
CREATE VIEW view_1_tab3_575 AS SELECT pk, col0 FROM tab3 WHERE col3 <= 421

statement ok
CREATE VIEW view_2_tab3_575 AS SELECT pk, col0 FROM tab3 WHERE NOT (col3 <= 421)

statement ok
CREATE VIEW view_3_tab3_575 AS SELECT pk FROM view_1_tab3_575

query II rowsort label-5000-1
SELECT pk, col0 FROM tab3 WHERE col3 <= 421
----
102 values hashing to 298ae03dd1b86bfb5c52f21a4423f4e8

query II rowsort label-5000-2
SELECT pk, col0 FROM tab3 WHERE NOT (col3 <= 421)
----
98 values hashing to 942d1292117dbb0a27f8324be2aba1fe

query II rowsort label-5000-1
SELECT pk, col0 FROM view_1_tab3_575
----
102 values hashing to 298ae03dd1b86bfb5c52f21a4423f4e8

query II rowsort label-5000-2
SELECT pk, col0 FROM view_2_tab3_575
----
98 values hashing to 942d1292117dbb0a27f8324be2aba1fe

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 <= 421 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col3 <= 421)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_575 UNION ALL SELECT pk, col0 FROM view_2_tab3_575
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 <= 421 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col3 <= 421)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_575 UNION SELECT pk, col0 FROM view_2_tab3_575
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-5000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col3 <= 421 ) AS tab3_575
----
51 values hashing to 09fda650ce498f7b06e1212ae78be9e5

query I rowsort label-5000-3
SELECT * FROM view_3_tab3_575
----
51 values hashing to 09fda650ce498f7b06e1212ae78be9e5

query I rowsort label-5000-3
SELECT pk FROM tab3 WHERE col3 <= 421
----
51 values hashing to 09fda650ce498f7b06e1212ae78be9e5

statement ok
DROP VIEW view_1_tab3_575

statement ok
DROP VIEW view_2_tab3_575

statement ok
DROP VIEW view_3_tab3_575

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_575') DROP VIEW view_1_tab4_575

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_575

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_575') DROP VIEW view_2_tab4_575

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_575

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_575') DROP VIEW view_3_tab4_575

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_575

statement ok
CREATE VIEW view_1_tab4_575 AS SELECT pk, col0 FROM tab4 WHERE col3 <= 421

statement ok
CREATE VIEW view_2_tab4_575 AS SELECT pk, col0 FROM tab4 WHERE NOT (col3 <= 421)

statement ok
CREATE VIEW view_3_tab4_575 AS SELECT pk FROM view_1_tab4_575

query II rowsort label-5000-1
SELECT pk, col0 FROM tab4 WHERE col3 <= 421
----
102 values hashing to 298ae03dd1b86bfb5c52f21a4423f4e8

query II rowsort label-5000-2
SELECT pk, col0 FROM tab4 WHERE NOT (col3 <= 421)
----
98 values hashing to 942d1292117dbb0a27f8324be2aba1fe

query II rowsort label-5000-1
SELECT pk, col0 FROM view_1_tab4_575
----
102 values hashing to 298ae03dd1b86bfb5c52f21a4423f4e8

query II rowsort label-5000-2
SELECT pk, col0 FROM view_2_tab4_575
----
98 values hashing to 942d1292117dbb0a27f8324be2aba1fe

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 <= 421 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col3 <= 421)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_575 UNION ALL SELECT pk, col0 FROM view_2_tab4_575
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 <= 421 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col3 <= 421)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_575 UNION SELECT pk, col0 FROM view_2_tab4_575
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-5000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col3 <= 421 ) AS tab4_575
----
51 values hashing to 09fda650ce498f7b06e1212ae78be9e5

query I rowsort label-5000-3
SELECT * FROM view_3_tab4_575
----
51 values hashing to 09fda650ce498f7b06e1212ae78be9e5

query I rowsort label-5000-3
SELECT pk FROM tab4 WHERE col3 <= 421
----
51 values hashing to 09fda650ce498f7b06e1212ae78be9e5

statement ok
DROP VIEW view_1_tab4_575

statement ok
DROP VIEW view_2_tab4_575

statement ok
DROP VIEW view_3_tab4_575

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_576') DROP VIEW view_1_tab0_576

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_576

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_576') DROP VIEW view_2_tab0_576

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_576

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_576') DROP VIEW view_3_tab0_576

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_576

statement ok
CREATE VIEW view_1_tab0_576 AS SELECT pk, col0 FROM tab0 WHERE col3 < 76

statement ok
CREATE VIEW view_2_tab0_576 AS SELECT pk, col0 FROM tab0 WHERE NOT (col3 < 76)

statement ok
CREATE VIEW view_3_tab0_576 AS SELECT pk FROM view_1_tab0_576

query II rowsort label-5100-1
SELECT pk, col0 FROM tab0 WHERE col3 < 76
----
16 values hashing to 6c074cbb47e03fcc13176ae3e71078f5

query II rowsort label-5100-2
SELECT pk, col0 FROM tab0 WHERE NOT (col3 < 76)
----
184 values hashing to 6687d0d3468046d88b34b8a9ab229949

query II rowsort label-5100-1
SELECT pk, col0 FROM view_1_tab0_576
----
16 values hashing to 6c074cbb47e03fcc13176ae3e71078f5

query II rowsort label-5100-2
SELECT pk, col0 FROM view_2_tab0_576
----
184 values hashing to 6687d0d3468046d88b34b8a9ab229949

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 < 76 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col3 < 76)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_576 UNION ALL SELECT pk, col0 FROM view_2_tab0_576
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 < 76 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col3 < 76)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_576 UNION SELECT pk, col0 FROM view_2_tab0_576
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-5100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col3 < 76 ) AS tab0_576
----
15
21
22
53
61
75
87
93

query I rowsort label-5100-3
SELECT * FROM view_3_tab0_576
----
15
21
22
53
61
75
87
93

query I rowsort label-5100-3
SELECT pk FROM tab0 WHERE col3 < 76
----
15
21
22
53
61
75
87
93

statement ok
DROP VIEW view_1_tab0_576

statement ok
DROP VIEW view_2_tab0_576

statement ok
DROP VIEW view_3_tab0_576

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_576') DROP VIEW view_1_tab1_576

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_576

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_576') DROP VIEW view_2_tab1_576

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_576

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_576') DROP VIEW view_3_tab1_576

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_576

statement ok
CREATE VIEW view_1_tab1_576 AS SELECT pk, col0 FROM tab1 WHERE col3 < 76

statement ok
CREATE VIEW view_2_tab1_576 AS SELECT pk, col0 FROM tab1 WHERE NOT (col3 < 76)

statement ok
CREATE VIEW view_3_tab1_576 AS SELECT pk FROM view_1_tab1_576

query II rowsort label-5100-1
SELECT pk, col0 FROM tab1 WHERE col3 < 76
----
16 values hashing to 6c074cbb47e03fcc13176ae3e71078f5

query II rowsort label-5100-2
SELECT pk, col0 FROM tab1 WHERE NOT (col3 < 76)
----
184 values hashing to 6687d0d3468046d88b34b8a9ab229949

query II rowsort label-5100-1
SELECT pk, col0 FROM view_1_tab1_576
----
16 values hashing to 6c074cbb47e03fcc13176ae3e71078f5

query II rowsort label-5100-2
SELECT pk, col0 FROM view_2_tab1_576
----
184 values hashing to 6687d0d3468046d88b34b8a9ab229949

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 < 76 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col3 < 76)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_576 UNION ALL SELECT pk, col0 FROM view_2_tab1_576
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 < 76 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col3 < 76)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_576 UNION SELECT pk, col0 FROM view_2_tab1_576
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-5100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col3 < 76 ) AS tab1_576
----
15
21
22
53
61
75
87
93

query I rowsort label-5100-3
SELECT * FROM view_3_tab1_576
----
15
21
22
53
61
75
87
93

query I rowsort label-5100-3
SELECT pk FROM tab1 WHERE col3 < 76
----
15
21
22
53
61
75
87
93

statement ok
DROP VIEW view_1_tab1_576

statement ok
DROP VIEW view_2_tab1_576

statement ok
DROP VIEW view_3_tab1_576

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_576') DROP VIEW view_1_tab2_576

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_576

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_576') DROP VIEW view_2_tab2_576

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_576

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_576') DROP VIEW view_3_tab2_576

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_576

statement ok
CREATE VIEW view_1_tab2_576 AS SELECT pk, col0 FROM tab2 WHERE col3 < 76

statement ok
CREATE VIEW view_2_tab2_576 AS SELECT pk, col0 FROM tab2 WHERE NOT (col3 < 76)

statement ok
CREATE VIEW view_3_tab2_576 AS SELECT pk FROM view_1_tab2_576

query II rowsort label-5100-1
SELECT pk, col0 FROM tab2 WHERE col3 < 76
----
16 values hashing to 6c074cbb47e03fcc13176ae3e71078f5

query II rowsort label-5100-2
SELECT pk, col0 FROM tab2 WHERE NOT (col3 < 76)
----
184 values hashing to 6687d0d3468046d88b34b8a9ab229949

query II rowsort label-5100-1
SELECT pk, col0 FROM view_1_tab2_576
----
16 values hashing to 6c074cbb47e03fcc13176ae3e71078f5

query II rowsort label-5100-2
SELECT pk, col0 FROM view_2_tab2_576
----
184 values hashing to 6687d0d3468046d88b34b8a9ab229949

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 < 76 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col3 < 76)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_576 UNION ALL SELECT pk, col0 FROM view_2_tab2_576
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 < 76 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col3 < 76)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_576 UNION SELECT pk, col0 FROM view_2_tab2_576
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-5100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col3 < 76 ) AS tab2_576
----
15
21
22
53
61
75
87
93

query I rowsort label-5100-3
SELECT * FROM view_3_tab2_576
----
15
21
22
53
61
75
87
93

query I rowsort label-5100-3
SELECT pk FROM tab2 WHERE col3 < 76
----
15
21
22
53
61
75
87
93

statement ok
DROP VIEW view_1_tab2_576

statement ok
DROP VIEW view_2_tab2_576

statement ok
DROP VIEW view_3_tab2_576

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_576') DROP VIEW view_1_tab3_576

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_576

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_576') DROP VIEW view_2_tab3_576

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_576

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_576') DROP VIEW view_3_tab3_576

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_576

statement ok
CREATE VIEW view_1_tab3_576 AS SELECT pk, col0 FROM tab3 WHERE col3 < 76

statement ok
CREATE VIEW view_2_tab3_576 AS SELECT pk, col0 FROM tab3 WHERE NOT (col3 < 76)

statement ok
CREATE VIEW view_3_tab3_576 AS SELECT pk FROM view_1_tab3_576

query II rowsort label-5100-1
SELECT pk, col0 FROM tab3 WHERE col3 < 76
----
16 values hashing to 6c074cbb47e03fcc13176ae3e71078f5

query II rowsort label-5100-2
SELECT pk, col0 FROM tab3 WHERE NOT (col3 < 76)
----
184 values hashing to 6687d0d3468046d88b34b8a9ab229949

query II rowsort label-5100-1
SELECT pk, col0 FROM view_1_tab3_576
----
16 values hashing to 6c074cbb47e03fcc13176ae3e71078f5

query II rowsort label-5100-2
SELECT pk, col0 FROM view_2_tab3_576
----
184 values hashing to 6687d0d3468046d88b34b8a9ab229949

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 < 76 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col3 < 76)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_576 UNION ALL SELECT pk, col0 FROM view_2_tab3_576
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 < 76 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col3 < 76)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_576 UNION SELECT pk, col0 FROM view_2_tab3_576
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-5100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col3 < 76 ) AS tab3_576
----
15
21
22
53
61
75
87
93

query I rowsort label-5100-3
SELECT * FROM view_3_tab3_576
----
15
21
22
53
61
75
87
93

query I rowsort label-5100-3
SELECT pk FROM tab3 WHERE col3 < 76
----
15
21
22
53
61
75
87
93

statement ok
DROP VIEW view_1_tab3_576

statement ok
DROP VIEW view_2_tab3_576

statement ok
DROP VIEW view_3_tab3_576

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_576') DROP VIEW view_1_tab4_576

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_576

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_576') DROP VIEW view_2_tab4_576

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_576

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_576') DROP VIEW view_3_tab4_576

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_576

statement ok
CREATE VIEW view_1_tab4_576 AS SELECT pk, col0 FROM tab4 WHERE col3 < 76

statement ok
CREATE VIEW view_2_tab4_576 AS SELECT pk, col0 FROM tab4 WHERE NOT (col3 < 76)

statement ok
CREATE VIEW view_3_tab4_576 AS SELECT pk FROM view_1_tab4_576

query II rowsort label-5100-1
SELECT pk, col0 FROM tab4 WHERE col3 < 76
----
16 values hashing to 6c074cbb47e03fcc13176ae3e71078f5

query II rowsort label-5100-2
SELECT pk, col0 FROM tab4 WHERE NOT (col3 < 76)
----
184 values hashing to 6687d0d3468046d88b34b8a9ab229949

query II rowsort label-5100-1
SELECT pk, col0 FROM view_1_tab4_576
----
16 values hashing to 6c074cbb47e03fcc13176ae3e71078f5

query II rowsort label-5100-2
SELECT pk, col0 FROM view_2_tab4_576
----
184 values hashing to 6687d0d3468046d88b34b8a9ab229949

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 < 76 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col3 < 76)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_576 UNION ALL SELECT pk, col0 FROM view_2_tab4_576
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 < 76 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col3 < 76)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_576 UNION SELECT pk, col0 FROM view_2_tab4_576
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-5100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col3 < 76 ) AS tab4_576
----
15
21
22
53
61
75
87
93

query I rowsort label-5100-3
SELECT * FROM view_3_tab4_576
----
15
21
22
53
61
75
87
93

query I rowsort label-5100-3
SELECT pk FROM tab4 WHERE col3 < 76
----
15
21
22
53
61
75
87
93

statement ok
DROP VIEW view_1_tab4_576

statement ok
DROP VIEW view_2_tab4_576

statement ok
DROP VIEW view_3_tab4_576

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_577') DROP VIEW view_1_tab0_577

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_577

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_577') DROP VIEW view_2_tab0_577

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_577

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_577') DROP VIEW view_3_tab0_577

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_577

statement ok
CREATE VIEW view_1_tab0_577 AS SELECT pk, col0 FROM tab0 WHERE col1 < 628.40

statement ok
CREATE VIEW view_2_tab0_577 AS SELECT pk, col0 FROM tab0 WHERE NOT (col1 < 628.40)

statement ok
CREATE VIEW view_3_tab0_577 AS SELECT pk FROM view_1_tab0_577

query II rowsort label-5200-1
SELECT pk, col0 FROM tab0 WHERE col1 < 628.40
----
120 values hashing to 98368f87d301667c59a21f67a5b9859d

query II rowsort label-5200-2
SELECT pk, col0 FROM tab0 WHERE NOT (col1 < 628.40)
----
80 values hashing to cfeb87f5e71f5b7a51570548ff71e899

query II rowsort label-5200-1
SELECT pk, col0 FROM view_1_tab0_577
----
120 values hashing to 98368f87d301667c59a21f67a5b9859d

query II rowsort label-5200-2
SELECT pk, col0 FROM view_2_tab0_577
----
80 values hashing to cfeb87f5e71f5b7a51570548ff71e899

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col1 < 628.40 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col1 < 628.40)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_577 UNION ALL SELECT pk, col0 FROM view_2_tab0_577
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col1 < 628.40 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col1 < 628.40)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_577 UNION SELECT pk, col0 FROM view_2_tab0_577
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-5200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col1 < 628.40 ) AS tab0_577
----
60 values hashing to cee27017317d2fec82b368371056f78c

query I rowsort label-5200-3
SELECT * FROM view_3_tab0_577
----
60 values hashing to cee27017317d2fec82b368371056f78c

query I rowsort label-5200-3
SELECT pk FROM tab0 WHERE col1 < 628.40
----
60 values hashing to cee27017317d2fec82b368371056f78c

statement ok
DROP VIEW view_1_tab0_577

statement ok
DROP VIEW view_2_tab0_577

statement ok
DROP VIEW view_3_tab0_577

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_577') DROP VIEW view_1_tab1_577

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_577

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_577') DROP VIEW view_2_tab1_577

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_577

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_577') DROP VIEW view_3_tab1_577

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_577

statement ok
CREATE VIEW view_1_tab1_577 AS SELECT pk, col0 FROM tab1 WHERE col1 < 628.40

statement ok
CREATE VIEW view_2_tab1_577 AS SELECT pk, col0 FROM tab1 WHERE NOT (col1 < 628.40)

statement ok
CREATE VIEW view_3_tab1_577 AS SELECT pk FROM view_1_tab1_577

query II rowsort label-5200-1
SELECT pk, col0 FROM tab1 WHERE col1 < 628.40
----
120 values hashing to 98368f87d301667c59a21f67a5b9859d

query II rowsort label-5200-2
SELECT pk, col0 FROM tab1 WHERE NOT (col1 < 628.40)
----
80 values hashing to cfeb87f5e71f5b7a51570548ff71e899

query II rowsort label-5200-1
SELECT pk, col0 FROM view_1_tab1_577
----
120 values hashing to 98368f87d301667c59a21f67a5b9859d

query II rowsort label-5200-2
SELECT pk, col0 FROM view_2_tab1_577
----
80 values hashing to cfeb87f5e71f5b7a51570548ff71e899

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col1 < 628.40 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col1 < 628.40)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_577 UNION ALL SELECT pk, col0 FROM view_2_tab1_577
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col1 < 628.40 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col1 < 628.40)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_577 UNION SELECT pk, col0 FROM view_2_tab1_577
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-5200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col1 < 628.40 ) AS tab1_577
----
60 values hashing to cee27017317d2fec82b368371056f78c

query I rowsort label-5200-3
SELECT * FROM view_3_tab1_577
----
60 values hashing to cee27017317d2fec82b368371056f78c

query I rowsort label-5200-3
SELECT pk FROM tab1 WHERE col1 < 628.40
----
60 values hashing to cee27017317d2fec82b368371056f78c

statement ok
DROP VIEW view_1_tab1_577

statement ok
DROP VIEW view_2_tab1_577

statement ok
DROP VIEW view_3_tab1_577

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_577') DROP VIEW view_1_tab2_577

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_577

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_577') DROP VIEW view_2_tab2_577

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_577

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_577') DROP VIEW view_3_tab2_577

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_577

statement ok
CREATE VIEW view_1_tab2_577 AS SELECT pk, col0 FROM tab2 WHERE col1 < 628.40

statement ok
CREATE VIEW view_2_tab2_577 AS SELECT pk, col0 FROM tab2 WHERE NOT (col1 < 628.40)

statement ok
CREATE VIEW view_3_tab2_577 AS SELECT pk FROM view_1_tab2_577

query II rowsort label-5200-1
SELECT pk, col0 FROM tab2 WHERE col1 < 628.40
----
120 values hashing to 98368f87d301667c59a21f67a5b9859d

query II rowsort label-5200-2
SELECT pk, col0 FROM tab2 WHERE NOT (col1 < 628.40)
----
80 values hashing to cfeb87f5e71f5b7a51570548ff71e899

query II rowsort label-5200-1
SELECT pk, col0 FROM view_1_tab2_577
----
120 values hashing to 98368f87d301667c59a21f67a5b9859d

query II rowsort label-5200-2
SELECT pk, col0 FROM view_2_tab2_577
----
80 values hashing to cfeb87f5e71f5b7a51570548ff71e899

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col1 < 628.40 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col1 < 628.40)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_577 UNION ALL SELECT pk, col0 FROM view_2_tab2_577
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col1 < 628.40 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col1 < 628.40)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_577 UNION SELECT pk, col0 FROM view_2_tab2_577
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-5200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col1 < 628.40 ) AS tab2_577
----
60 values hashing to cee27017317d2fec82b368371056f78c

query I rowsort label-5200-3
SELECT * FROM view_3_tab2_577
----
60 values hashing to cee27017317d2fec82b368371056f78c

query I rowsort label-5200-3
SELECT pk FROM tab2 WHERE col1 < 628.40
----
60 values hashing to cee27017317d2fec82b368371056f78c

statement ok
DROP VIEW view_1_tab2_577

statement ok
DROP VIEW view_2_tab2_577

statement ok
DROP VIEW view_3_tab2_577

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_577') DROP VIEW view_1_tab3_577

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_577

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_577') DROP VIEW view_2_tab3_577

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_577

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_577') DROP VIEW view_3_tab3_577

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_577

statement ok
CREATE VIEW view_1_tab3_577 AS SELECT pk, col0 FROM tab3 WHERE col1 < 628.40

statement ok
CREATE VIEW view_2_tab3_577 AS SELECT pk, col0 FROM tab3 WHERE NOT (col1 < 628.40)

statement ok
CREATE VIEW view_3_tab3_577 AS SELECT pk FROM view_1_tab3_577

query II rowsort label-5200-1
SELECT pk, col0 FROM tab3 WHERE col1 < 628.40
----
120 values hashing to 98368f87d301667c59a21f67a5b9859d

query II rowsort label-5200-2
SELECT pk, col0 FROM tab3 WHERE NOT (col1 < 628.40)
----
80 values hashing to cfeb87f5e71f5b7a51570548ff71e899

query II rowsort label-5200-1
SELECT pk, col0 FROM view_1_tab3_577
----
120 values hashing to 98368f87d301667c59a21f67a5b9859d

query II rowsort label-5200-2
SELECT pk, col0 FROM view_2_tab3_577
----
80 values hashing to cfeb87f5e71f5b7a51570548ff71e899

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col1 < 628.40 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col1 < 628.40)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_577 UNION ALL SELECT pk, col0 FROM view_2_tab3_577
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col1 < 628.40 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col1 < 628.40)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_577 UNION SELECT pk, col0 FROM view_2_tab3_577
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-5200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col1 < 628.40 ) AS tab3_577
----
60 values hashing to cee27017317d2fec82b368371056f78c

query I rowsort label-5200-3
SELECT * FROM view_3_tab3_577
----
60 values hashing to cee27017317d2fec82b368371056f78c

query I rowsort label-5200-3
SELECT pk FROM tab3 WHERE col1 < 628.40
----
60 values hashing to cee27017317d2fec82b368371056f78c

statement ok
DROP VIEW view_1_tab3_577

statement ok
DROP VIEW view_2_tab3_577

statement ok
DROP VIEW view_3_tab3_577

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_577') DROP VIEW view_1_tab4_577

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_577

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_577') DROP VIEW view_2_tab4_577

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_577

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_577') DROP VIEW view_3_tab4_577

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_577

statement ok
CREATE VIEW view_1_tab4_577 AS SELECT pk, col0 FROM tab4 WHERE col1 < 628.40

statement ok
CREATE VIEW view_2_tab4_577 AS SELECT pk, col0 FROM tab4 WHERE NOT (col1 < 628.40)

statement ok
CREATE VIEW view_3_tab4_577 AS SELECT pk FROM view_1_tab4_577

query II rowsort label-5200-1
SELECT pk, col0 FROM tab4 WHERE col1 < 628.40
----
120 values hashing to 98368f87d301667c59a21f67a5b9859d

query II rowsort label-5200-2
SELECT pk, col0 FROM tab4 WHERE NOT (col1 < 628.40)
----
80 values hashing to cfeb87f5e71f5b7a51570548ff71e899

query II rowsort label-5200-1
SELECT pk, col0 FROM view_1_tab4_577
----
120 values hashing to 98368f87d301667c59a21f67a5b9859d

query II rowsort label-5200-2
SELECT pk, col0 FROM view_2_tab4_577
----
80 values hashing to cfeb87f5e71f5b7a51570548ff71e899

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col1 < 628.40 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col1 < 628.40)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_577 UNION ALL SELECT pk, col0 FROM view_2_tab4_577
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col1 < 628.40 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col1 < 628.40)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_577 UNION SELECT pk, col0 FROM view_2_tab4_577
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-5200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col1 < 628.40 ) AS tab4_577
----
60 values hashing to cee27017317d2fec82b368371056f78c

query I rowsort label-5200-3
SELECT * FROM view_3_tab4_577
----
60 values hashing to cee27017317d2fec82b368371056f78c

query I rowsort label-5200-3
SELECT pk FROM tab4 WHERE col1 < 628.40
----
60 values hashing to cee27017317d2fec82b368371056f78c

statement ok
DROP VIEW view_1_tab4_577

statement ok
DROP VIEW view_2_tab4_577

statement ok
DROP VIEW view_3_tab4_577

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_578') DROP VIEW view_1_tab0_578

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_578

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_578') DROP VIEW view_2_tab0_578

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_578

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_578') DROP VIEW view_3_tab0_578

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_578

statement ok
CREATE VIEW view_1_tab0_578 AS SELECT pk, col0 FROM tab0 WHERE (col4 < 974.61)

statement ok
CREATE VIEW view_2_tab0_578 AS SELECT pk, col0 FROM tab0 WHERE NOT ((col4 < 974.61))

statement ok
CREATE VIEW view_3_tab0_578 AS SELECT pk FROM view_1_tab0_578

query II rowsort label-5300-1
SELECT pk, col0 FROM tab0 WHERE (col4 < 974.61)
----
190 values hashing to f7bbdbdb3af830b211daaae46768a910

query II rowsort label-5300-2
SELECT pk, col0 FROM tab0 WHERE NOT ((col4 < 974.61))
----
10 values hashing to 317f6c475978abe4dff73cb85764737e

query II rowsort label-5300-1
SELECT pk, col0 FROM view_1_tab0_578
----
190 values hashing to f7bbdbdb3af830b211daaae46768a910

query II rowsort label-5300-2
SELECT pk, col0 FROM view_2_tab0_578
----
10 values hashing to 317f6c475978abe4dff73cb85764737e

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col4 < 974.61) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT ((col4 < 974.61))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_578 UNION ALL SELECT pk, col0 FROM view_2_tab0_578
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col4 < 974.61) UNION SELECT pk, col0 FROM tab0 WHERE NOT ((col4 < 974.61))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_578 UNION SELECT pk, col0 FROM view_2_tab0_578
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-5300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE (col4 < 974.61) ) AS tab0_578
----
95 values hashing to d2072bfcc16506dd5bf1a5723c8cd7ea

query I rowsort label-5300-3
SELECT * FROM view_3_tab0_578
----
95 values hashing to d2072bfcc16506dd5bf1a5723c8cd7ea

query I rowsort label-5300-3
SELECT pk FROM tab0 WHERE (col4 < 974.61)
----
95 values hashing to d2072bfcc16506dd5bf1a5723c8cd7ea

statement ok
DROP VIEW view_1_tab0_578

statement ok
DROP VIEW view_2_tab0_578

statement ok
DROP VIEW view_3_tab0_578

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_578') DROP VIEW view_1_tab1_578

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_578

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_578') DROP VIEW view_2_tab1_578

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_578

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_578') DROP VIEW view_3_tab1_578

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_578

statement ok
CREATE VIEW view_1_tab1_578 AS SELECT pk, col0 FROM tab1 WHERE (col4 < 974.61)

statement ok
CREATE VIEW view_2_tab1_578 AS SELECT pk, col0 FROM tab1 WHERE NOT ((col4 < 974.61))

statement ok
CREATE VIEW view_3_tab1_578 AS SELECT pk FROM view_1_tab1_578

query II rowsort label-5300-1
SELECT pk, col0 FROM tab1 WHERE (col4 < 974.61)
----
190 values hashing to f7bbdbdb3af830b211daaae46768a910

query II rowsort label-5300-2
SELECT pk, col0 FROM tab1 WHERE NOT ((col4 < 974.61))
----
10 values hashing to 317f6c475978abe4dff73cb85764737e

query II rowsort label-5300-1
SELECT pk, col0 FROM view_1_tab1_578
----
190 values hashing to f7bbdbdb3af830b211daaae46768a910

query II rowsort label-5300-2
SELECT pk, col0 FROM view_2_tab1_578
----
10 values hashing to 317f6c475978abe4dff73cb85764737e

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col4 < 974.61) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT ((col4 < 974.61))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_578 UNION ALL SELECT pk, col0 FROM view_2_tab1_578
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col4 < 974.61) UNION SELECT pk, col0 FROM tab1 WHERE NOT ((col4 < 974.61))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_578 UNION SELECT pk, col0 FROM view_2_tab1_578
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-5300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE (col4 < 974.61) ) AS tab1_578
----
95 values hashing to d2072bfcc16506dd5bf1a5723c8cd7ea

query I rowsort label-5300-3
SELECT * FROM view_3_tab1_578
----
95 values hashing to d2072bfcc16506dd5bf1a5723c8cd7ea

query I rowsort label-5300-3
SELECT pk FROM tab1 WHERE (col4 < 974.61)
----
95 values hashing to d2072bfcc16506dd5bf1a5723c8cd7ea

statement ok
DROP VIEW view_1_tab1_578

statement ok
DROP VIEW view_2_tab1_578

statement ok
DROP VIEW view_3_tab1_578

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_578') DROP VIEW view_1_tab2_578

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_578

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_578') DROP VIEW view_2_tab2_578

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_578

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_578') DROP VIEW view_3_tab2_578

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_578

statement ok
CREATE VIEW view_1_tab2_578 AS SELECT pk, col0 FROM tab2 WHERE (col4 < 974.61)

statement ok
CREATE VIEW view_2_tab2_578 AS SELECT pk, col0 FROM tab2 WHERE NOT ((col4 < 974.61))

statement ok
CREATE VIEW view_3_tab2_578 AS SELECT pk FROM view_1_tab2_578

query II rowsort label-5300-1
SELECT pk, col0 FROM tab2 WHERE (col4 < 974.61)
----
190 values hashing to f7bbdbdb3af830b211daaae46768a910

query II rowsort label-5300-2
SELECT pk, col0 FROM tab2 WHERE NOT ((col4 < 974.61))
----
10 values hashing to 317f6c475978abe4dff73cb85764737e

query II rowsort label-5300-1
SELECT pk, col0 FROM view_1_tab2_578
----
190 values hashing to f7bbdbdb3af830b211daaae46768a910

query II rowsort label-5300-2
SELECT pk, col0 FROM view_2_tab2_578
----
10 values hashing to 317f6c475978abe4dff73cb85764737e

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col4 < 974.61) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT ((col4 < 974.61))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_578 UNION ALL SELECT pk, col0 FROM view_2_tab2_578
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col4 < 974.61) UNION SELECT pk, col0 FROM tab2 WHERE NOT ((col4 < 974.61))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_578 UNION SELECT pk, col0 FROM view_2_tab2_578
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-5300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE (col4 < 974.61) ) AS tab2_578
----
95 values hashing to d2072bfcc16506dd5bf1a5723c8cd7ea

query I rowsort label-5300-3
SELECT * FROM view_3_tab2_578
----
95 values hashing to d2072bfcc16506dd5bf1a5723c8cd7ea

query I rowsort label-5300-3
SELECT pk FROM tab2 WHERE (col4 < 974.61)
----
95 values hashing to d2072bfcc16506dd5bf1a5723c8cd7ea

statement ok
DROP VIEW view_1_tab2_578

statement ok
DROP VIEW view_2_tab2_578

statement ok
DROP VIEW view_3_tab2_578

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_578') DROP VIEW view_1_tab3_578

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_578

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_578') DROP VIEW view_2_tab3_578

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_578

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_578') DROP VIEW view_3_tab3_578

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_578

statement ok
CREATE VIEW view_1_tab3_578 AS SELECT pk, col0 FROM tab3 WHERE (col4 < 974.61)

statement ok
CREATE VIEW view_2_tab3_578 AS SELECT pk, col0 FROM tab3 WHERE NOT ((col4 < 974.61))

statement ok
CREATE VIEW view_3_tab3_578 AS SELECT pk FROM view_1_tab3_578

query II rowsort label-5300-1
SELECT pk, col0 FROM tab3 WHERE (col4 < 974.61)
----
190 values hashing to f7bbdbdb3af830b211daaae46768a910

query II rowsort label-5300-2
SELECT pk, col0 FROM tab3 WHERE NOT ((col4 < 974.61))
----
10 values hashing to 317f6c475978abe4dff73cb85764737e

query II rowsort label-5300-1
SELECT pk, col0 FROM view_1_tab3_578
----
190 values hashing to f7bbdbdb3af830b211daaae46768a910

query II rowsort label-5300-2
SELECT pk, col0 FROM view_2_tab3_578
----
10 values hashing to 317f6c475978abe4dff73cb85764737e

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col4 < 974.61) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT ((col4 < 974.61))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_578 UNION ALL SELECT pk, col0 FROM view_2_tab3_578
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col4 < 974.61) UNION SELECT pk, col0 FROM tab3 WHERE NOT ((col4 < 974.61))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_578 UNION SELECT pk, col0 FROM view_2_tab3_578
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-5300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE (col4 < 974.61) ) AS tab3_578
----
95 values hashing to d2072bfcc16506dd5bf1a5723c8cd7ea

query I rowsort label-5300-3
SELECT * FROM view_3_tab3_578
----
95 values hashing to d2072bfcc16506dd5bf1a5723c8cd7ea

query I rowsort label-5300-3
SELECT pk FROM tab3 WHERE (col4 < 974.61)
----
95 values hashing to d2072bfcc16506dd5bf1a5723c8cd7ea

statement ok
DROP VIEW view_1_tab3_578

statement ok
DROP VIEW view_2_tab3_578

statement ok
DROP VIEW view_3_tab3_578

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_578') DROP VIEW view_1_tab4_578

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_578

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_578') DROP VIEW view_2_tab4_578

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_578

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_578') DROP VIEW view_3_tab4_578

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_578

statement ok
CREATE VIEW view_1_tab4_578 AS SELECT pk, col0 FROM tab4 WHERE (col4 < 974.61)

statement ok
CREATE VIEW view_2_tab4_578 AS SELECT pk, col0 FROM tab4 WHERE NOT ((col4 < 974.61))

statement ok
CREATE VIEW view_3_tab4_578 AS SELECT pk FROM view_1_tab4_578

query II rowsort label-5300-1
SELECT pk, col0 FROM tab4 WHERE (col4 < 974.61)
----
190 values hashing to f7bbdbdb3af830b211daaae46768a910

query II rowsort label-5300-2
SELECT pk, col0 FROM tab4 WHERE NOT ((col4 < 974.61))
----
10 values hashing to 317f6c475978abe4dff73cb85764737e

query II rowsort label-5300-1
SELECT pk, col0 FROM view_1_tab4_578
----
190 values hashing to f7bbdbdb3af830b211daaae46768a910

query II rowsort label-5300-2
SELECT pk, col0 FROM view_2_tab4_578
----
10 values hashing to 317f6c475978abe4dff73cb85764737e

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col4 < 974.61) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT ((col4 < 974.61))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_578 UNION ALL SELECT pk, col0 FROM view_2_tab4_578
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col4 < 974.61) UNION SELECT pk, col0 FROM tab4 WHERE NOT ((col4 < 974.61))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_578 UNION SELECT pk, col0 FROM view_2_tab4_578
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-5300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE (col4 < 974.61) ) AS tab4_578
----
95 values hashing to d2072bfcc16506dd5bf1a5723c8cd7ea

query I rowsort label-5300-3
SELECT * FROM view_3_tab4_578
----
95 values hashing to d2072bfcc16506dd5bf1a5723c8cd7ea

query I rowsort label-5300-3
SELECT pk FROM tab4 WHERE (col4 < 974.61)
----
95 values hashing to d2072bfcc16506dd5bf1a5723c8cd7ea

statement ok
DROP VIEW view_1_tab4_578

statement ok
DROP VIEW view_2_tab4_578

statement ok
DROP VIEW view_3_tab4_578

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_579') DROP VIEW view_1_tab0_579

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_579

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_579') DROP VIEW view_2_tab0_579

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_579

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_579') DROP VIEW view_3_tab0_579

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_579

statement ok
CREATE VIEW view_1_tab0_579 AS SELECT pk, col0 FROM tab0 WHERE col1 > 64.38

statement ok
CREATE VIEW view_2_tab0_579 AS SELECT pk, col0 FROM tab0 WHERE NOT (col1 > 64.38)

statement ok
CREATE VIEW view_3_tab0_579 AS SELECT pk FROM view_1_tab0_579

query II rowsort label-5400-1
SELECT pk, col0 FROM tab0 WHERE col1 > 64.38
----
192 values hashing to bb700c48b48b2522505843c0f9c29296

query II rowsort label-5400-2
SELECT pk, col0 FROM tab0 WHERE NOT (col1 > 64.38)
----
6
628
67
586
69
348
88
809

query II rowsort label-5400-1
SELECT pk, col0 FROM view_1_tab0_579
----
192 values hashing to bb700c48b48b2522505843c0f9c29296

query II rowsort label-5400-2
SELECT pk, col0 FROM view_2_tab0_579
----
6
628
67
586
69
348
88
809

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col1 > 64.38 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col1 > 64.38)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_579 UNION ALL SELECT pk, col0 FROM view_2_tab0_579
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col1 > 64.38 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col1 > 64.38)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_579 UNION SELECT pk, col0 FROM view_2_tab0_579
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-5400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col1 > 64.38 ) AS tab0_579
----
96 values hashing to 35b4b8de351ec570cb8eb2f47499ec70

query I rowsort label-5400-3
SELECT * FROM view_3_tab0_579
----
96 values hashing to 35b4b8de351ec570cb8eb2f47499ec70

query I rowsort label-5400-3
SELECT pk FROM tab0 WHERE col1 > 64.38
----
96 values hashing to 35b4b8de351ec570cb8eb2f47499ec70

statement ok
DROP VIEW view_1_tab0_579

statement ok
DROP VIEW view_2_tab0_579

statement ok
DROP VIEW view_3_tab0_579

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_579') DROP VIEW view_1_tab1_579

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_579

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_579') DROP VIEW view_2_tab1_579

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_579

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_579') DROP VIEW view_3_tab1_579

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_579

statement ok
CREATE VIEW view_1_tab1_579 AS SELECT pk, col0 FROM tab1 WHERE col1 > 64.38

statement ok
CREATE VIEW view_2_tab1_579 AS SELECT pk, col0 FROM tab1 WHERE NOT (col1 > 64.38)

statement ok
CREATE VIEW view_3_tab1_579 AS SELECT pk FROM view_1_tab1_579

query II rowsort label-5400-1
SELECT pk, col0 FROM tab1 WHERE col1 > 64.38
----
192 values hashing to bb700c48b48b2522505843c0f9c29296

query II rowsort label-5400-2
SELECT pk, col0 FROM tab1 WHERE NOT (col1 > 64.38)
----
6
628
67
586
69
348
88
809

query II rowsort label-5400-1
SELECT pk, col0 FROM view_1_tab1_579
----
192 values hashing to bb700c48b48b2522505843c0f9c29296

query II rowsort label-5400-2
SELECT pk, col0 FROM view_2_tab1_579
----
6
628
67
586
69
348
88
809

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col1 > 64.38 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col1 > 64.38)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_579 UNION ALL SELECT pk, col0 FROM view_2_tab1_579
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col1 > 64.38 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col1 > 64.38)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_579 UNION SELECT pk, col0 FROM view_2_tab1_579
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-5400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col1 > 64.38 ) AS tab1_579
----
96 values hashing to 35b4b8de351ec570cb8eb2f47499ec70

query I rowsort label-5400-3
SELECT * FROM view_3_tab1_579
----
96 values hashing to 35b4b8de351ec570cb8eb2f47499ec70

query I rowsort label-5400-3
SELECT pk FROM tab1 WHERE col1 > 64.38
----
96 values hashing to 35b4b8de351ec570cb8eb2f47499ec70

statement ok
DROP VIEW view_1_tab1_579

statement ok
DROP VIEW view_2_tab1_579

statement ok
DROP VIEW view_3_tab1_579

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_579') DROP VIEW view_1_tab2_579

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_579

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_579') DROP VIEW view_2_tab2_579

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_579

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_579') DROP VIEW view_3_tab2_579

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_579

statement ok
CREATE VIEW view_1_tab2_579 AS SELECT pk, col0 FROM tab2 WHERE col1 > 64.38

statement ok
CREATE VIEW view_2_tab2_579 AS SELECT pk, col0 FROM tab2 WHERE NOT (col1 > 64.38)

statement ok
CREATE VIEW view_3_tab2_579 AS SELECT pk FROM view_1_tab2_579

query II rowsort label-5400-1
SELECT pk, col0 FROM tab2 WHERE col1 > 64.38
----
192 values hashing to bb700c48b48b2522505843c0f9c29296

query II rowsort label-5400-2
SELECT pk, col0 FROM tab2 WHERE NOT (col1 > 64.38)
----
6
628
67
586
69
348
88
809

query II rowsort label-5400-1
SELECT pk, col0 FROM view_1_tab2_579
----
192 values hashing to bb700c48b48b2522505843c0f9c29296

query II rowsort label-5400-2
SELECT pk, col0 FROM view_2_tab2_579
----
6
628
67
586
69
348
88
809

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col1 > 64.38 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col1 > 64.38)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_579 UNION ALL SELECT pk, col0 FROM view_2_tab2_579
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col1 > 64.38 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col1 > 64.38)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_579 UNION SELECT pk, col0 FROM view_2_tab2_579
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-5400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col1 > 64.38 ) AS tab2_579
----
96 values hashing to 35b4b8de351ec570cb8eb2f47499ec70

query I rowsort label-5400-3
SELECT * FROM view_3_tab2_579
----
96 values hashing to 35b4b8de351ec570cb8eb2f47499ec70

query I rowsort label-5400-3
SELECT pk FROM tab2 WHERE col1 > 64.38
----
96 values hashing to 35b4b8de351ec570cb8eb2f47499ec70

statement ok
DROP VIEW view_1_tab2_579

statement ok
DROP VIEW view_2_tab2_579

statement ok
DROP VIEW view_3_tab2_579

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_579') DROP VIEW view_1_tab3_579

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_579

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_579') DROP VIEW view_2_tab3_579

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_579

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_579') DROP VIEW view_3_tab3_579

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_579

statement ok
CREATE VIEW view_1_tab3_579 AS SELECT pk, col0 FROM tab3 WHERE col1 > 64.38

statement ok
CREATE VIEW view_2_tab3_579 AS SELECT pk, col0 FROM tab3 WHERE NOT (col1 > 64.38)

statement ok
CREATE VIEW view_3_tab3_579 AS SELECT pk FROM view_1_tab3_579

query II rowsort label-5400-1
SELECT pk, col0 FROM tab3 WHERE col1 > 64.38
----
192 values hashing to bb700c48b48b2522505843c0f9c29296

query II rowsort label-5400-2
SELECT pk, col0 FROM tab3 WHERE NOT (col1 > 64.38)
----
6
628
67
586
69
348
88
809

query II rowsort label-5400-1
SELECT pk, col0 FROM view_1_tab3_579
----
192 values hashing to bb700c48b48b2522505843c0f9c29296

query II rowsort label-5400-2
SELECT pk, col0 FROM view_2_tab3_579
----
6
628
67
586
69
348
88
809

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col1 > 64.38 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col1 > 64.38)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_579 UNION ALL SELECT pk, col0 FROM view_2_tab3_579
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col1 > 64.38 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col1 > 64.38)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_579 UNION SELECT pk, col0 FROM view_2_tab3_579
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-5400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col1 > 64.38 ) AS tab3_579
----
96 values hashing to 35b4b8de351ec570cb8eb2f47499ec70

query I rowsort label-5400-3
SELECT * FROM view_3_tab3_579
----
96 values hashing to 35b4b8de351ec570cb8eb2f47499ec70

query I rowsort label-5400-3
SELECT pk FROM tab3 WHERE col1 > 64.38
----
96 values hashing to 35b4b8de351ec570cb8eb2f47499ec70

statement ok
DROP VIEW view_1_tab3_579

statement ok
DROP VIEW view_2_tab3_579

statement ok
DROP VIEW view_3_tab3_579

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_579') DROP VIEW view_1_tab4_579

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_579

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_579') DROP VIEW view_2_tab4_579

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_579

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_579') DROP VIEW view_3_tab4_579

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_579

statement ok
CREATE VIEW view_1_tab4_579 AS SELECT pk, col0 FROM tab4 WHERE col1 > 64.38

statement ok
CREATE VIEW view_2_tab4_579 AS SELECT pk, col0 FROM tab4 WHERE NOT (col1 > 64.38)

statement ok
CREATE VIEW view_3_tab4_579 AS SELECT pk FROM view_1_tab4_579

query II rowsort label-5400-1
SELECT pk, col0 FROM tab4 WHERE col1 > 64.38
----
192 values hashing to bb700c48b48b2522505843c0f9c29296

query II rowsort label-5400-2
SELECT pk, col0 FROM tab4 WHERE NOT (col1 > 64.38)
----
6
628
67
586
69
348
88
809

query II rowsort label-5400-1
SELECT pk, col0 FROM view_1_tab4_579
----
192 values hashing to bb700c48b48b2522505843c0f9c29296

query II rowsort label-5400-2
SELECT pk, col0 FROM view_2_tab4_579
----
6
628
67
586
69
348
88
809

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col1 > 64.38 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col1 > 64.38)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_579 UNION ALL SELECT pk, col0 FROM view_2_tab4_579
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col1 > 64.38 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col1 > 64.38)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_579 UNION SELECT pk, col0 FROM view_2_tab4_579
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-5400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col1 > 64.38 ) AS tab4_579
----
96 values hashing to 35b4b8de351ec570cb8eb2f47499ec70

query I rowsort label-5400-3
SELECT * FROM view_3_tab4_579
----
96 values hashing to 35b4b8de351ec570cb8eb2f47499ec70

query I rowsort label-5400-3
SELECT pk FROM tab4 WHERE col1 > 64.38
----
96 values hashing to 35b4b8de351ec570cb8eb2f47499ec70

statement ok
DROP VIEW view_1_tab4_579

statement ok
DROP VIEW view_2_tab4_579

statement ok
DROP VIEW view_3_tab4_579

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_580') DROP VIEW view_1_tab0_580

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_580

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_580') DROP VIEW view_2_tab0_580

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_580

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_580') DROP VIEW view_3_tab0_580

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_580

statement ok
CREATE VIEW view_1_tab0_580 AS SELECT pk, col0 FROM tab0 WHERE col4 = 297.0 OR col3 IS NULL OR col1 <= 773.73

statement ok
CREATE VIEW view_2_tab0_580 AS SELECT pk, col0 FROM tab0 WHERE NOT (col4 = 297.0 OR col3 IS NULL OR col1 <= 773.73)

statement ok
CREATE VIEW view_3_tab0_580 AS SELECT pk FROM view_1_tab0_580

query II rowsort label-5500-1
SELECT pk, col0 FROM tab0 WHERE col4 = 297.0 OR col3 IS NULL OR col1 <= 773.73
----
152 values hashing to 15902d1a637866aa83b44530768b2520

query II rowsort label-5500-2
SELECT pk, col0 FROM tab0 WHERE NOT (col4 = 297.0 OR col3 IS NULL OR col1 <= 773.73)
----
48 values hashing to 1f48e6816db94721278783aa754cfc41

query II rowsort label-5500-1
SELECT pk, col0 FROM view_1_tab0_580
----
152 values hashing to 15902d1a637866aa83b44530768b2520

query II rowsort label-5500-2
SELECT pk, col0 FROM view_2_tab0_580
----
48 values hashing to 1f48e6816db94721278783aa754cfc41

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col4 = 297.0 OR col3 IS NULL OR col1 <= 773.73 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col4 = 297.0 OR col3 IS NULL OR col1 <= 773.73)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_580 UNION ALL SELECT pk, col0 FROM view_2_tab0_580
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col4 = 297.0 OR col3 IS NULL OR col1 <= 773.73 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col4 = 297.0 OR col3 IS NULL OR col1 <= 773.73)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_580 UNION SELECT pk, col0 FROM view_2_tab0_580
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-5500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col4 = 297.0 OR col3 IS NULL OR col1 <= 773.73 ) AS tab0_580
----
76 values hashing to 593057ce1166d7487f4b469fbf882585

query I rowsort label-5500-3
SELECT * FROM view_3_tab0_580
----
76 values hashing to 593057ce1166d7487f4b469fbf882585

query I rowsort label-5500-3
SELECT pk FROM tab0 WHERE col4 = 297.0 OR col3 IS NULL OR col1 <= 773.73
----
76 values hashing to 593057ce1166d7487f4b469fbf882585

statement ok
DROP VIEW view_1_tab0_580

statement ok
DROP VIEW view_2_tab0_580

statement ok
DROP VIEW view_3_tab0_580

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_580') DROP VIEW view_1_tab1_580

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_580

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_580') DROP VIEW view_2_tab1_580

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_580

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_580') DROP VIEW view_3_tab1_580

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_580

statement ok
CREATE VIEW view_1_tab1_580 AS SELECT pk, col0 FROM tab1 WHERE col4 = 297.0 OR col3 IS NULL OR col1 <= 773.73

statement ok
CREATE VIEW view_2_tab1_580 AS SELECT pk, col0 FROM tab1 WHERE NOT (col4 = 297.0 OR col3 IS NULL OR col1 <= 773.73)

statement ok
CREATE VIEW view_3_tab1_580 AS SELECT pk FROM view_1_tab1_580

query II rowsort label-5500-1
SELECT pk, col0 FROM tab1 WHERE col4 = 297.0 OR col3 IS NULL OR col1 <= 773.73
----
152 values hashing to 15902d1a637866aa83b44530768b2520

query II rowsort label-5500-2
SELECT pk, col0 FROM tab1 WHERE NOT (col4 = 297.0 OR col3 IS NULL OR col1 <= 773.73)
----
48 values hashing to 1f48e6816db94721278783aa754cfc41

query II rowsort label-5500-1
SELECT pk, col0 FROM view_1_tab1_580
----
152 values hashing to 15902d1a637866aa83b44530768b2520

query II rowsort label-5500-2
SELECT pk, col0 FROM view_2_tab1_580
----
48 values hashing to 1f48e6816db94721278783aa754cfc41

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col4 = 297.0 OR col3 IS NULL OR col1 <= 773.73 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col4 = 297.0 OR col3 IS NULL OR col1 <= 773.73)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_580 UNION ALL SELECT pk, col0 FROM view_2_tab1_580
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col4 = 297.0 OR col3 IS NULL OR col1 <= 773.73 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col4 = 297.0 OR col3 IS NULL OR col1 <= 773.73)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_580 UNION SELECT pk, col0 FROM view_2_tab1_580
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-5500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col4 = 297.0 OR col3 IS NULL OR col1 <= 773.73 ) AS tab1_580
----
76 values hashing to 593057ce1166d7487f4b469fbf882585

query I rowsort label-5500-3
SELECT * FROM view_3_tab1_580
----
76 values hashing to 593057ce1166d7487f4b469fbf882585

query I rowsort label-5500-3
SELECT pk FROM tab1 WHERE col4 = 297.0 OR col3 IS NULL OR col1 <= 773.73
----
76 values hashing to 593057ce1166d7487f4b469fbf882585

statement ok
DROP VIEW view_1_tab1_580

statement ok
DROP VIEW view_2_tab1_580

statement ok
DROP VIEW view_3_tab1_580

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_580') DROP VIEW view_1_tab2_580

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_580

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_580') DROP VIEW view_2_tab2_580

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_580

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_580') DROP VIEW view_3_tab2_580

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_580

statement ok
CREATE VIEW view_1_tab2_580 AS SELECT pk, col0 FROM tab2 WHERE col4 = 297.0 OR col3 IS NULL OR col1 <= 773.73

statement ok
CREATE VIEW view_2_tab2_580 AS SELECT pk, col0 FROM tab2 WHERE NOT (col4 = 297.0 OR col3 IS NULL OR col1 <= 773.73)

statement ok
CREATE VIEW view_3_tab2_580 AS SELECT pk FROM view_1_tab2_580

query II rowsort label-5500-1
SELECT pk, col0 FROM tab2 WHERE col4 = 297.0 OR col3 IS NULL OR col1 <= 773.73
----
152 values hashing to 15902d1a637866aa83b44530768b2520

query II rowsort label-5500-2
SELECT pk, col0 FROM tab2 WHERE NOT (col4 = 297.0 OR col3 IS NULL OR col1 <= 773.73)
----
48 values hashing to 1f48e6816db94721278783aa754cfc41

query II rowsort label-5500-1
SELECT pk, col0 FROM view_1_tab2_580
----
152 values hashing to 15902d1a637866aa83b44530768b2520

query II rowsort label-5500-2
SELECT pk, col0 FROM view_2_tab2_580
----
48 values hashing to 1f48e6816db94721278783aa754cfc41

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col4 = 297.0 OR col3 IS NULL OR col1 <= 773.73 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col4 = 297.0 OR col3 IS NULL OR col1 <= 773.73)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_580 UNION ALL SELECT pk, col0 FROM view_2_tab2_580
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col4 = 297.0 OR col3 IS NULL OR col1 <= 773.73 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col4 = 297.0 OR col3 IS NULL OR col1 <= 773.73)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_580 UNION SELECT pk, col0 FROM view_2_tab2_580
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-5500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col4 = 297.0 OR col3 IS NULL OR col1 <= 773.73 ) AS tab2_580
----
76 values hashing to 593057ce1166d7487f4b469fbf882585

query I rowsort label-5500-3
SELECT * FROM view_3_tab2_580
----
76 values hashing to 593057ce1166d7487f4b469fbf882585

query I rowsort label-5500-3
SELECT pk FROM tab2 WHERE col4 = 297.0 OR col3 IS NULL OR col1 <= 773.73
----
76 values hashing to 593057ce1166d7487f4b469fbf882585

statement ok
DROP VIEW view_1_tab2_580

statement ok
DROP VIEW view_2_tab2_580

statement ok
DROP VIEW view_3_tab2_580

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_580') DROP VIEW view_1_tab3_580

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_580

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_580') DROP VIEW view_2_tab3_580

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_580

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_580') DROP VIEW view_3_tab3_580

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_580

statement ok
CREATE VIEW view_1_tab3_580 AS SELECT pk, col0 FROM tab3 WHERE col4 = 297.0 OR col3 IS NULL OR col1 <= 773.73

statement ok
CREATE VIEW view_2_tab3_580 AS SELECT pk, col0 FROM tab3 WHERE NOT (col4 = 297.0 OR col3 IS NULL OR col1 <= 773.73)

statement ok
CREATE VIEW view_3_tab3_580 AS SELECT pk FROM view_1_tab3_580

query II rowsort label-5500-1
SELECT pk, col0 FROM tab3 WHERE col4 = 297.0 OR col3 IS NULL OR col1 <= 773.73
----
152 values hashing to 15902d1a637866aa83b44530768b2520

query II rowsort label-5500-2
SELECT pk, col0 FROM tab3 WHERE NOT (col4 = 297.0 OR col3 IS NULL OR col1 <= 773.73)
----
48 values hashing to 1f48e6816db94721278783aa754cfc41

query II rowsort label-5500-1
SELECT pk, col0 FROM view_1_tab3_580
----
152 values hashing to 15902d1a637866aa83b44530768b2520

query II rowsort label-5500-2
SELECT pk, col0 FROM view_2_tab3_580
----
48 values hashing to 1f48e6816db94721278783aa754cfc41

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col4 = 297.0 OR col3 IS NULL OR col1 <= 773.73 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col4 = 297.0 OR col3 IS NULL OR col1 <= 773.73)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_580 UNION ALL SELECT pk, col0 FROM view_2_tab3_580
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col4 = 297.0 OR col3 IS NULL OR col1 <= 773.73 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col4 = 297.0 OR col3 IS NULL OR col1 <= 773.73)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_580 UNION SELECT pk, col0 FROM view_2_tab3_580
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-5500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col4 = 297.0 OR col3 IS NULL OR col1 <= 773.73 ) AS tab3_580
----
76 values hashing to 593057ce1166d7487f4b469fbf882585

query I rowsort label-5500-3
SELECT * FROM view_3_tab3_580
----
76 values hashing to 593057ce1166d7487f4b469fbf882585

query I rowsort label-5500-3
SELECT pk FROM tab3 WHERE col4 = 297.0 OR col3 IS NULL OR col1 <= 773.73
----
76 values hashing to 593057ce1166d7487f4b469fbf882585

statement ok
DROP VIEW view_1_tab3_580

statement ok
DROP VIEW view_2_tab3_580

statement ok
DROP VIEW view_3_tab3_580

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_580') DROP VIEW view_1_tab4_580

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_580

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_580') DROP VIEW view_2_tab4_580

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_580

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_580') DROP VIEW view_3_tab4_580

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_580

statement ok
CREATE VIEW view_1_tab4_580 AS SELECT pk, col0 FROM tab4 WHERE col4 = 297.0 OR col3 IS NULL OR col1 <= 773.73

statement ok
CREATE VIEW view_2_tab4_580 AS SELECT pk, col0 FROM tab4 WHERE NOT (col4 = 297.0 OR col3 IS NULL OR col1 <= 773.73)

statement ok
CREATE VIEW view_3_tab4_580 AS SELECT pk FROM view_1_tab4_580

query II rowsort label-5500-1
SELECT pk, col0 FROM tab4 WHERE col4 = 297.0 OR col3 IS NULL OR col1 <= 773.73
----
152 values hashing to 15902d1a637866aa83b44530768b2520

query II rowsort label-5500-2
SELECT pk, col0 FROM tab4 WHERE NOT (col4 = 297.0 OR col3 IS NULL OR col1 <= 773.73)
----
48 values hashing to 1f48e6816db94721278783aa754cfc41

query II rowsort label-5500-1
SELECT pk, col0 FROM view_1_tab4_580
----
152 values hashing to 15902d1a637866aa83b44530768b2520

query II rowsort label-5500-2
SELECT pk, col0 FROM view_2_tab4_580
----
48 values hashing to 1f48e6816db94721278783aa754cfc41

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col4 = 297.0 OR col3 IS NULL OR col1 <= 773.73 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col4 = 297.0 OR col3 IS NULL OR col1 <= 773.73)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_580 UNION ALL SELECT pk, col0 FROM view_2_tab4_580
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col4 = 297.0 OR col3 IS NULL OR col1 <= 773.73 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col4 = 297.0 OR col3 IS NULL OR col1 <= 773.73)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_580 UNION SELECT pk, col0 FROM view_2_tab4_580
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-5500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col4 = 297.0 OR col3 IS NULL OR col1 <= 773.73 ) AS tab4_580
----
76 values hashing to 593057ce1166d7487f4b469fbf882585

query I rowsort label-5500-3
SELECT * FROM view_3_tab4_580
----
76 values hashing to 593057ce1166d7487f4b469fbf882585

query I rowsort label-5500-3
SELECT pk FROM tab4 WHERE col4 = 297.0 OR col3 IS NULL OR col1 <= 773.73
----
76 values hashing to 593057ce1166d7487f4b469fbf882585

statement ok
DROP VIEW view_1_tab4_580

statement ok
DROP VIEW view_2_tab4_580

statement ok
DROP VIEW view_3_tab4_580

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_581') DROP VIEW view_1_tab0_581

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_581

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_581') DROP VIEW view_2_tab0_581

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_581

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_581') DROP VIEW view_3_tab0_581

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_581

statement ok
CREATE VIEW view_1_tab0_581 AS SELECT pk, col0 FROM tab0 WHERE (col1 > 315.20 OR col0 < 855) AND col3 > 496

statement ok
CREATE VIEW view_2_tab0_581 AS SELECT pk, col0 FROM tab0 WHERE NOT ((col1 > 315.20 OR col0 < 855) AND col3 > 496)

statement ok
CREATE VIEW view_3_tab0_581 AS SELECT pk FROM view_1_tab0_581

query II rowsort label-5600-1
SELECT pk, col0 FROM tab0 WHERE (col1 > 315.20 OR col0 < 855) AND col3 > 496
----
84 values hashing to b28fb516a99cfbd615661bf813bfdb34

query II rowsort label-5600-2
SELECT pk, col0 FROM tab0 WHERE NOT ((col1 > 315.20 OR col0 < 855) AND col3 > 496)
----
116 values hashing to 36dbd0abb08ea672141788bd266800fd

query II rowsort label-5600-1
SELECT pk, col0 FROM view_1_tab0_581
----
84 values hashing to b28fb516a99cfbd615661bf813bfdb34

query II rowsort label-5600-2
SELECT pk, col0 FROM view_2_tab0_581
----
116 values hashing to 36dbd0abb08ea672141788bd266800fd

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col1 > 315.20 OR col0 < 855) AND col3 > 496 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT ((col1 > 315.20 OR col0 < 855) AND col3 > 496)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_581 UNION ALL SELECT pk, col0 FROM view_2_tab0_581
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col1 > 315.20 OR col0 < 855) AND col3 > 496 UNION SELECT pk, col0 FROM tab0 WHERE NOT ((col1 > 315.20 OR col0 < 855) AND col3 > 496)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_581 UNION SELECT pk, col0 FROM view_2_tab0_581
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-5600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE (col1 > 315.20 OR col0 < 855) AND col3 > 496 ) AS tab0_581
----
42 values hashing to 53517dd22c38964022d9da0783ee9e07

query I rowsort label-5600-3
SELECT * FROM view_3_tab0_581
----
42 values hashing to 53517dd22c38964022d9da0783ee9e07

query I rowsort label-5600-3
SELECT pk FROM tab0 WHERE (col1 > 315.20 OR col0 < 855) AND col3 > 496
----
42 values hashing to 53517dd22c38964022d9da0783ee9e07

statement ok
DROP VIEW view_1_tab0_581

statement ok
DROP VIEW view_2_tab0_581

statement ok
DROP VIEW view_3_tab0_581

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_581') DROP VIEW view_1_tab1_581

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_581

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_581') DROP VIEW view_2_tab1_581

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_581

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_581') DROP VIEW view_3_tab1_581

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_581

statement ok
CREATE VIEW view_1_tab1_581 AS SELECT pk, col0 FROM tab1 WHERE (col1 > 315.20 OR col0 < 855) AND col3 > 496

statement ok
CREATE VIEW view_2_tab1_581 AS SELECT pk, col0 FROM tab1 WHERE NOT ((col1 > 315.20 OR col0 < 855) AND col3 > 496)

statement ok
CREATE VIEW view_3_tab1_581 AS SELECT pk FROM view_1_tab1_581

query II rowsort label-5600-1
SELECT pk, col0 FROM tab1 WHERE (col1 > 315.20 OR col0 < 855) AND col3 > 496
----
84 values hashing to b28fb516a99cfbd615661bf813bfdb34

query II rowsort label-5600-2
SELECT pk, col0 FROM tab1 WHERE NOT ((col1 > 315.20 OR col0 < 855) AND col3 > 496)
----
116 values hashing to 36dbd0abb08ea672141788bd266800fd

query II rowsort label-5600-1
SELECT pk, col0 FROM view_1_tab1_581
----
84 values hashing to b28fb516a99cfbd615661bf813bfdb34

query II rowsort label-5600-2
SELECT pk, col0 FROM view_2_tab1_581
----
116 values hashing to 36dbd0abb08ea672141788bd266800fd

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col1 > 315.20 OR col0 < 855) AND col3 > 496 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT ((col1 > 315.20 OR col0 < 855) AND col3 > 496)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_581 UNION ALL SELECT pk, col0 FROM view_2_tab1_581
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col1 > 315.20 OR col0 < 855) AND col3 > 496 UNION SELECT pk, col0 FROM tab1 WHERE NOT ((col1 > 315.20 OR col0 < 855) AND col3 > 496)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_581 UNION SELECT pk, col0 FROM view_2_tab1_581
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-5600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE (col1 > 315.20 OR col0 < 855) AND col3 > 496 ) AS tab1_581
----
42 values hashing to 53517dd22c38964022d9da0783ee9e07

query I rowsort label-5600-3
SELECT * FROM view_3_tab1_581
----
42 values hashing to 53517dd22c38964022d9da0783ee9e07

query I rowsort label-5600-3
SELECT pk FROM tab1 WHERE (col1 > 315.20 OR col0 < 855) AND col3 > 496
----
42 values hashing to 53517dd22c38964022d9da0783ee9e07

statement ok
DROP VIEW view_1_tab1_581

statement ok
DROP VIEW view_2_tab1_581

statement ok
DROP VIEW view_3_tab1_581

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_581') DROP VIEW view_1_tab2_581

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_581

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_581') DROP VIEW view_2_tab2_581

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_581

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_581') DROP VIEW view_3_tab2_581

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_581

statement ok
CREATE VIEW view_1_tab2_581 AS SELECT pk, col0 FROM tab2 WHERE (col1 > 315.20 OR col0 < 855) AND col3 > 496

statement ok
CREATE VIEW view_2_tab2_581 AS SELECT pk, col0 FROM tab2 WHERE NOT ((col1 > 315.20 OR col0 < 855) AND col3 > 496)

statement ok
CREATE VIEW view_3_tab2_581 AS SELECT pk FROM view_1_tab2_581

query II rowsort label-5600-1
SELECT pk, col0 FROM tab2 WHERE (col1 > 315.20 OR col0 < 855) AND col3 > 496
----
84 values hashing to b28fb516a99cfbd615661bf813bfdb34

query II rowsort label-5600-2
SELECT pk, col0 FROM tab2 WHERE NOT ((col1 > 315.20 OR col0 < 855) AND col3 > 496)
----
116 values hashing to 36dbd0abb08ea672141788bd266800fd

query II rowsort label-5600-1
SELECT pk, col0 FROM view_1_tab2_581
----
84 values hashing to b28fb516a99cfbd615661bf813bfdb34

query II rowsort label-5600-2
SELECT pk, col0 FROM view_2_tab2_581
----
116 values hashing to 36dbd0abb08ea672141788bd266800fd

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col1 > 315.20 OR col0 < 855) AND col3 > 496 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT ((col1 > 315.20 OR col0 < 855) AND col3 > 496)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_581 UNION ALL SELECT pk, col0 FROM view_2_tab2_581
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col1 > 315.20 OR col0 < 855) AND col3 > 496 UNION SELECT pk, col0 FROM tab2 WHERE NOT ((col1 > 315.20 OR col0 < 855) AND col3 > 496)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_581 UNION SELECT pk, col0 FROM view_2_tab2_581
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-5600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE (col1 > 315.20 OR col0 < 855) AND col3 > 496 ) AS tab2_581
----
42 values hashing to 53517dd22c38964022d9da0783ee9e07

query I rowsort label-5600-3
SELECT * FROM view_3_tab2_581
----
42 values hashing to 53517dd22c38964022d9da0783ee9e07

query I rowsort label-5600-3
SELECT pk FROM tab2 WHERE (col1 > 315.20 OR col0 < 855) AND col3 > 496
----
42 values hashing to 53517dd22c38964022d9da0783ee9e07

statement ok
DROP VIEW view_1_tab2_581

statement ok
DROP VIEW view_2_tab2_581

statement ok
DROP VIEW view_3_tab2_581

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_581') DROP VIEW view_1_tab3_581

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_581

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_581') DROP VIEW view_2_tab3_581

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_581

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_581') DROP VIEW view_3_tab3_581

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_581

statement ok
CREATE VIEW view_1_tab3_581 AS SELECT pk, col0 FROM tab3 WHERE (col1 > 315.20 OR col0 < 855) AND col3 > 496

statement ok
CREATE VIEW view_2_tab3_581 AS SELECT pk, col0 FROM tab3 WHERE NOT ((col1 > 315.20 OR col0 < 855) AND col3 > 496)

statement ok
CREATE VIEW view_3_tab3_581 AS SELECT pk FROM view_1_tab3_581

query II rowsort label-5600-1
SELECT pk, col0 FROM tab3 WHERE (col1 > 315.20 OR col0 < 855) AND col3 > 496
----
84 values hashing to b28fb516a99cfbd615661bf813bfdb34

query II rowsort label-5600-2
SELECT pk, col0 FROM tab3 WHERE NOT ((col1 > 315.20 OR col0 < 855) AND col3 > 496)
----
116 values hashing to 36dbd0abb08ea672141788bd266800fd

query II rowsort label-5600-1
SELECT pk, col0 FROM view_1_tab3_581
----
84 values hashing to b28fb516a99cfbd615661bf813bfdb34

query II rowsort label-5600-2
SELECT pk, col0 FROM view_2_tab3_581
----
116 values hashing to 36dbd0abb08ea672141788bd266800fd

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col1 > 315.20 OR col0 < 855) AND col3 > 496 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT ((col1 > 315.20 OR col0 < 855) AND col3 > 496)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_581 UNION ALL SELECT pk, col0 FROM view_2_tab3_581
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col1 > 315.20 OR col0 < 855) AND col3 > 496 UNION SELECT pk, col0 FROM tab3 WHERE NOT ((col1 > 315.20 OR col0 < 855) AND col3 > 496)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_581 UNION SELECT pk, col0 FROM view_2_tab3_581
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-5600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE (col1 > 315.20 OR col0 < 855) AND col3 > 496 ) AS tab3_581
----
42 values hashing to 53517dd22c38964022d9da0783ee9e07

query I rowsort label-5600-3
SELECT * FROM view_3_tab3_581
----
42 values hashing to 53517dd22c38964022d9da0783ee9e07

query I rowsort label-5600-3
SELECT pk FROM tab3 WHERE (col1 > 315.20 OR col0 < 855) AND col3 > 496
----
42 values hashing to 53517dd22c38964022d9da0783ee9e07

statement ok
DROP VIEW view_1_tab3_581

statement ok
DROP VIEW view_2_tab3_581

statement ok
DROP VIEW view_3_tab3_581

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_581') DROP VIEW view_1_tab4_581

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_581

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_581') DROP VIEW view_2_tab4_581

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_581

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_581') DROP VIEW view_3_tab4_581

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_581

statement ok
CREATE VIEW view_1_tab4_581 AS SELECT pk, col0 FROM tab4 WHERE (col1 > 315.20 OR col0 < 855) AND col3 > 496

statement ok
CREATE VIEW view_2_tab4_581 AS SELECT pk, col0 FROM tab4 WHERE NOT ((col1 > 315.20 OR col0 < 855) AND col3 > 496)

statement ok
CREATE VIEW view_3_tab4_581 AS SELECT pk FROM view_1_tab4_581

query II rowsort label-5600-1
SELECT pk, col0 FROM tab4 WHERE (col1 > 315.20 OR col0 < 855) AND col3 > 496
----
84 values hashing to b28fb516a99cfbd615661bf813bfdb34

query II rowsort label-5600-2
SELECT pk, col0 FROM tab4 WHERE NOT ((col1 > 315.20 OR col0 < 855) AND col3 > 496)
----
116 values hashing to 36dbd0abb08ea672141788bd266800fd

query II rowsort label-5600-1
SELECT pk, col0 FROM view_1_tab4_581
----
84 values hashing to b28fb516a99cfbd615661bf813bfdb34

query II rowsort label-5600-2
SELECT pk, col0 FROM view_2_tab4_581
----
116 values hashing to 36dbd0abb08ea672141788bd266800fd

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col1 > 315.20 OR col0 < 855) AND col3 > 496 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT ((col1 > 315.20 OR col0 < 855) AND col3 > 496)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_581 UNION ALL SELECT pk, col0 FROM view_2_tab4_581
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col1 > 315.20 OR col0 < 855) AND col3 > 496 UNION SELECT pk, col0 FROM tab4 WHERE NOT ((col1 > 315.20 OR col0 < 855) AND col3 > 496)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_581 UNION SELECT pk, col0 FROM view_2_tab4_581
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-5600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE (col1 > 315.20 OR col0 < 855) AND col3 > 496 ) AS tab4_581
----
42 values hashing to 53517dd22c38964022d9da0783ee9e07

query I rowsort label-5600-3
SELECT * FROM view_3_tab4_581
----
42 values hashing to 53517dd22c38964022d9da0783ee9e07

query I rowsort label-5600-3
SELECT pk FROM tab4 WHERE (col1 > 315.20 OR col0 < 855) AND col3 > 496
----
42 values hashing to 53517dd22c38964022d9da0783ee9e07

statement ok
DROP VIEW view_1_tab4_581

statement ok
DROP VIEW view_2_tab4_581

statement ok
DROP VIEW view_3_tab4_581

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_582') DROP VIEW view_1_tab0_582

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_582

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_582') DROP VIEW view_2_tab0_582

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_582

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_582') DROP VIEW view_3_tab0_582

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_582

statement ok
CREATE VIEW view_1_tab0_582 AS SELECT pk, col0 FROM tab0 WHERE (((col3 >= 407) AND col3 > 449))

statement ok
CREATE VIEW view_2_tab0_582 AS SELECT pk, col0 FROM tab0 WHERE NOT ((((col3 >= 407) AND col3 > 449)))

statement ok
CREATE VIEW view_3_tab0_582 AS SELECT pk FROM view_1_tab0_582

query II rowsort label-5700-1
SELECT pk, col0 FROM tab0 WHERE (((col3 >= 407) AND col3 > 449))
----
92 values hashing to ceee448b567c4388b497a3e780fbda14

query II rowsort label-5700-2
SELECT pk, col0 FROM tab0 WHERE NOT ((((col3 >= 407) AND col3 > 449)))
----
108 values hashing to fe214d916920ac01a7d194cc723a9c4b

query II rowsort label-5700-1
SELECT pk, col0 FROM view_1_tab0_582
----
92 values hashing to ceee448b567c4388b497a3e780fbda14

query II rowsort label-5700-2
SELECT pk, col0 FROM view_2_tab0_582
----
108 values hashing to fe214d916920ac01a7d194cc723a9c4b

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (((col3 >= 407) AND col3 > 449)) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT ((((col3 >= 407) AND col3 > 449)))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_582 UNION ALL SELECT pk, col0 FROM view_2_tab0_582
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (((col3 >= 407) AND col3 > 449)) UNION SELECT pk, col0 FROM tab0 WHERE NOT ((((col3 >= 407) AND col3 > 449)))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_582 UNION SELECT pk, col0 FROM view_2_tab0_582
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-5700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE (((col3 >= 407) AND col3 > 449)) ) AS tab0_582
----
46 values hashing to bf16880fa15c590cef3647c73b665ced

query I rowsort label-5700-3
SELECT * FROM view_3_tab0_582
----
46 values hashing to bf16880fa15c590cef3647c73b665ced

query I rowsort label-5700-3
SELECT pk FROM tab0 WHERE (((col3 >= 407) AND col3 > 449))
----
46 values hashing to bf16880fa15c590cef3647c73b665ced

statement ok
DROP VIEW view_1_tab0_582

statement ok
DROP VIEW view_2_tab0_582

statement ok
DROP VIEW view_3_tab0_582

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_582') DROP VIEW view_1_tab1_582

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_582

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_582') DROP VIEW view_2_tab1_582

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_582

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_582') DROP VIEW view_3_tab1_582

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_582

statement ok
CREATE VIEW view_1_tab1_582 AS SELECT pk, col0 FROM tab1 WHERE (((col3 >= 407) AND col3 > 449))

statement ok
CREATE VIEW view_2_tab1_582 AS SELECT pk, col0 FROM tab1 WHERE NOT ((((col3 >= 407) AND col3 > 449)))

statement ok
CREATE VIEW view_3_tab1_582 AS SELECT pk FROM view_1_tab1_582

query II rowsort label-5700-1
SELECT pk, col0 FROM tab1 WHERE (((col3 >= 407) AND col3 > 449))
----
92 values hashing to ceee448b567c4388b497a3e780fbda14

query II rowsort label-5700-2
SELECT pk, col0 FROM tab1 WHERE NOT ((((col3 >= 407) AND col3 > 449)))
----
108 values hashing to fe214d916920ac01a7d194cc723a9c4b

query II rowsort label-5700-1
SELECT pk, col0 FROM view_1_tab1_582
----
92 values hashing to ceee448b567c4388b497a3e780fbda14

query II rowsort label-5700-2
SELECT pk, col0 FROM view_2_tab1_582
----
108 values hashing to fe214d916920ac01a7d194cc723a9c4b

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (((col3 >= 407) AND col3 > 449)) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT ((((col3 >= 407) AND col3 > 449)))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_582 UNION ALL SELECT pk, col0 FROM view_2_tab1_582
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (((col3 >= 407) AND col3 > 449)) UNION SELECT pk, col0 FROM tab1 WHERE NOT ((((col3 >= 407) AND col3 > 449)))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_582 UNION SELECT pk, col0 FROM view_2_tab1_582
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-5700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE (((col3 >= 407) AND col3 > 449)) ) AS tab1_582
----
46 values hashing to bf16880fa15c590cef3647c73b665ced

query I rowsort label-5700-3
SELECT * FROM view_3_tab1_582
----
46 values hashing to bf16880fa15c590cef3647c73b665ced

query I rowsort label-5700-3
SELECT pk FROM tab1 WHERE (((col3 >= 407) AND col3 > 449))
----
46 values hashing to bf16880fa15c590cef3647c73b665ced

statement ok
DROP VIEW view_1_tab1_582

statement ok
DROP VIEW view_2_tab1_582

statement ok
DROP VIEW view_3_tab1_582

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_582') DROP VIEW view_1_tab2_582

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_582

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_582') DROP VIEW view_2_tab2_582

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_582

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_582') DROP VIEW view_3_tab2_582

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_582

statement ok
CREATE VIEW view_1_tab2_582 AS SELECT pk, col0 FROM tab2 WHERE (((col3 >= 407) AND col3 > 449))

statement ok
CREATE VIEW view_2_tab2_582 AS SELECT pk, col0 FROM tab2 WHERE NOT ((((col3 >= 407) AND col3 > 449)))

statement ok
CREATE VIEW view_3_tab2_582 AS SELECT pk FROM view_1_tab2_582

query II rowsort label-5700-1
SELECT pk, col0 FROM tab2 WHERE (((col3 >= 407) AND col3 > 449))
----
92 values hashing to ceee448b567c4388b497a3e780fbda14

query II rowsort label-5700-2
SELECT pk, col0 FROM tab2 WHERE NOT ((((col3 >= 407) AND col3 > 449)))
----
108 values hashing to fe214d916920ac01a7d194cc723a9c4b

query II rowsort label-5700-1
SELECT pk, col0 FROM view_1_tab2_582
----
92 values hashing to ceee448b567c4388b497a3e780fbda14

query II rowsort label-5700-2
SELECT pk, col0 FROM view_2_tab2_582
----
108 values hashing to fe214d916920ac01a7d194cc723a9c4b

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (((col3 >= 407) AND col3 > 449)) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT ((((col3 >= 407) AND col3 > 449)))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_582 UNION ALL SELECT pk, col0 FROM view_2_tab2_582
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (((col3 >= 407) AND col3 > 449)) UNION SELECT pk, col0 FROM tab2 WHERE NOT ((((col3 >= 407) AND col3 > 449)))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_582 UNION SELECT pk, col0 FROM view_2_tab2_582
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-5700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE (((col3 >= 407) AND col3 > 449)) ) AS tab2_582
----
46 values hashing to bf16880fa15c590cef3647c73b665ced

query I rowsort label-5700-3
SELECT * FROM view_3_tab2_582
----
46 values hashing to bf16880fa15c590cef3647c73b665ced

query I rowsort label-5700-3
SELECT pk FROM tab2 WHERE (((col3 >= 407) AND col3 > 449))
----
46 values hashing to bf16880fa15c590cef3647c73b665ced

statement ok
DROP VIEW view_1_tab2_582

statement ok
DROP VIEW view_2_tab2_582

statement ok
DROP VIEW view_3_tab2_582

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_582') DROP VIEW view_1_tab3_582

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_582

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_582') DROP VIEW view_2_tab3_582

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_582

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_582') DROP VIEW view_3_tab3_582

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_582

statement ok
CREATE VIEW view_1_tab3_582 AS SELECT pk, col0 FROM tab3 WHERE (((col3 >= 407) AND col3 > 449))

statement ok
CREATE VIEW view_2_tab3_582 AS SELECT pk, col0 FROM tab3 WHERE NOT ((((col3 >= 407) AND col3 > 449)))

statement ok
CREATE VIEW view_3_tab3_582 AS SELECT pk FROM view_1_tab3_582

query II rowsort label-5700-1
SELECT pk, col0 FROM tab3 WHERE (((col3 >= 407) AND col3 > 449))
----
92 values hashing to ceee448b567c4388b497a3e780fbda14

query II rowsort label-5700-2
SELECT pk, col0 FROM tab3 WHERE NOT ((((col3 >= 407) AND col3 > 449)))
----
108 values hashing to fe214d916920ac01a7d194cc723a9c4b

query II rowsort label-5700-1
SELECT pk, col0 FROM view_1_tab3_582
----
92 values hashing to ceee448b567c4388b497a3e780fbda14

query II rowsort label-5700-2
SELECT pk, col0 FROM view_2_tab3_582
----
108 values hashing to fe214d916920ac01a7d194cc723a9c4b

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (((col3 >= 407) AND col3 > 449)) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT ((((col3 >= 407) AND col3 > 449)))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_582 UNION ALL SELECT pk, col0 FROM view_2_tab3_582
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (((col3 >= 407) AND col3 > 449)) UNION SELECT pk, col0 FROM tab3 WHERE NOT ((((col3 >= 407) AND col3 > 449)))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_582 UNION SELECT pk, col0 FROM view_2_tab3_582
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-5700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE (((col3 >= 407) AND col3 > 449)) ) AS tab3_582
----
46 values hashing to bf16880fa15c590cef3647c73b665ced

query I rowsort label-5700-3
SELECT * FROM view_3_tab3_582
----
46 values hashing to bf16880fa15c590cef3647c73b665ced

query I rowsort label-5700-3
SELECT pk FROM tab3 WHERE (((col3 >= 407) AND col3 > 449))
----
46 values hashing to bf16880fa15c590cef3647c73b665ced

statement ok
DROP VIEW view_1_tab3_582

statement ok
DROP VIEW view_2_tab3_582

statement ok
DROP VIEW view_3_tab3_582

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_582') DROP VIEW view_1_tab4_582

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_582

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_582') DROP VIEW view_2_tab4_582

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_582

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_582') DROP VIEW view_3_tab4_582

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_582

statement ok
CREATE VIEW view_1_tab4_582 AS SELECT pk, col0 FROM tab4 WHERE (((col3 >= 407) AND col3 > 449))

statement ok
CREATE VIEW view_2_tab4_582 AS SELECT pk, col0 FROM tab4 WHERE NOT ((((col3 >= 407) AND col3 > 449)))

statement ok
CREATE VIEW view_3_tab4_582 AS SELECT pk FROM view_1_tab4_582

query II rowsort label-5700-1
SELECT pk, col0 FROM tab4 WHERE (((col3 >= 407) AND col3 > 449))
----
92 values hashing to ceee448b567c4388b497a3e780fbda14

query II rowsort label-5700-2
SELECT pk, col0 FROM tab4 WHERE NOT ((((col3 >= 407) AND col3 > 449)))
----
108 values hashing to fe214d916920ac01a7d194cc723a9c4b

query II rowsort label-5700-1
SELECT pk, col0 FROM view_1_tab4_582
----
92 values hashing to ceee448b567c4388b497a3e780fbda14

query II rowsort label-5700-2
SELECT pk, col0 FROM view_2_tab4_582
----
108 values hashing to fe214d916920ac01a7d194cc723a9c4b

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (((col3 >= 407) AND col3 > 449)) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT ((((col3 >= 407) AND col3 > 449)))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_582 UNION ALL SELECT pk, col0 FROM view_2_tab4_582
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (((col3 >= 407) AND col3 > 449)) UNION SELECT pk, col0 FROM tab4 WHERE NOT ((((col3 >= 407) AND col3 > 449)))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_582 UNION SELECT pk, col0 FROM view_2_tab4_582
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-5700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE (((col3 >= 407) AND col3 > 449)) ) AS tab4_582
----
46 values hashing to bf16880fa15c590cef3647c73b665ced

query I rowsort label-5700-3
SELECT * FROM view_3_tab4_582
----
46 values hashing to bf16880fa15c590cef3647c73b665ced

query I rowsort label-5700-3
SELECT pk FROM tab4 WHERE (((col3 >= 407) AND col3 > 449))
----
46 values hashing to bf16880fa15c590cef3647c73b665ced

statement ok
DROP VIEW view_1_tab4_582

statement ok
DROP VIEW view_2_tab4_582

statement ok
DROP VIEW view_3_tab4_582

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_583') DROP VIEW view_1_tab0_583

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_583

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_583') DROP VIEW view_2_tab0_583

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_583

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_583') DROP VIEW view_3_tab0_583

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_583

statement ok
CREATE VIEW view_1_tab0_583 AS SELECT pk, col0 FROM tab0 WHERE ((col0 <= 976))

statement ok
CREATE VIEW view_2_tab0_583 AS SELECT pk, col0 FROM tab0 WHERE NOT (((col0 <= 976)))

statement ok
CREATE VIEW view_3_tab0_583 AS SELECT pk FROM view_1_tab0_583

query II rowsort label-5800-1
SELECT pk, col0 FROM tab0 WHERE ((col0 <= 976))
----
198 values hashing to 8e13cc7171d87c8a25ee49bcfbfa1973

query II rowsort label-5800-2
SELECT pk, col0 FROM tab0 WHERE NOT (((col0 <= 976)))
----
43
991

query II rowsort label-5800-1
SELECT pk, col0 FROM view_1_tab0_583
----
198 values hashing to 8e13cc7171d87c8a25ee49bcfbfa1973

query II rowsort label-5800-2
SELECT pk, col0 FROM view_2_tab0_583
----
43
991

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE ((col0 <= 976)) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (((col0 <= 976)))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_583 UNION ALL SELECT pk, col0 FROM view_2_tab0_583
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE ((col0 <= 976)) UNION SELECT pk, col0 FROM tab0 WHERE NOT (((col0 <= 976)))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_583 UNION SELECT pk, col0 FROM view_2_tab0_583
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-5800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE ((col0 <= 976)) ) AS tab0_583
----
99 values hashing to 59f788949c9a65f55e830edfbf26f6c9

query I rowsort label-5800-3
SELECT * FROM view_3_tab0_583
----
99 values hashing to 59f788949c9a65f55e830edfbf26f6c9

query I rowsort label-5800-3
SELECT pk FROM tab0 WHERE ((col0 <= 976))
----
99 values hashing to 59f788949c9a65f55e830edfbf26f6c9

statement ok
DROP VIEW view_1_tab0_583

statement ok
DROP VIEW view_2_tab0_583

statement ok
DROP VIEW view_3_tab0_583

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_583') DROP VIEW view_1_tab1_583

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_583

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_583') DROP VIEW view_2_tab1_583

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_583

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_583') DROP VIEW view_3_tab1_583

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_583

statement ok
CREATE VIEW view_1_tab1_583 AS SELECT pk, col0 FROM tab1 WHERE ((col0 <= 976))

statement ok
CREATE VIEW view_2_tab1_583 AS SELECT pk, col0 FROM tab1 WHERE NOT (((col0 <= 976)))

statement ok
CREATE VIEW view_3_tab1_583 AS SELECT pk FROM view_1_tab1_583

query II rowsort label-5800-1
SELECT pk, col0 FROM tab1 WHERE ((col0 <= 976))
----
198 values hashing to 8e13cc7171d87c8a25ee49bcfbfa1973

query II rowsort label-5800-2
SELECT pk, col0 FROM tab1 WHERE NOT (((col0 <= 976)))
----
43
991

query II rowsort label-5800-1
SELECT pk, col0 FROM view_1_tab1_583
----
198 values hashing to 8e13cc7171d87c8a25ee49bcfbfa1973

query II rowsort label-5800-2
SELECT pk, col0 FROM view_2_tab1_583
----
43
991

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE ((col0 <= 976)) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (((col0 <= 976)))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_583 UNION ALL SELECT pk, col0 FROM view_2_tab1_583
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE ((col0 <= 976)) UNION SELECT pk, col0 FROM tab1 WHERE NOT (((col0 <= 976)))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_583 UNION SELECT pk, col0 FROM view_2_tab1_583
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-5800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE ((col0 <= 976)) ) AS tab1_583
----
99 values hashing to 59f788949c9a65f55e830edfbf26f6c9

query I rowsort label-5800-3
SELECT * FROM view_3_tab1_583
----
99 values hashing to 59f788949c9a65f55e830edfbf26f6c9

query I rowsort label-5800-3
SELECT pk FROM tab1 WHERE ((col0 <= 976))
----
99 values hashing to 59f788949c9a65f55e830edfbf26f6c9

statement ok
DROP VIEW view_1_tab1_583

statement ok
DROP VIEW view_2_tab1_583

statement ok
DROP VIEW view_3_tab1_583

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_583') DROP VIEW view_1_tab2_583

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_583

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_583') DROP VIEW view_2_tab2_583

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_583

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_583') DROP VIEW view_3_tab2_583

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_583

statement ok
CREATE VIEW view_1_tab2_583 AS SELECT pk, col0 FROM tab2 WHERE ((col0 <= 976))

statement ok
CREATE VIEW view_2_tab2_583 AS SELECT pk, col0 FROM tab2 WHERE NOT (((col0 <= 976)))

statement ok
CREATE VIEW view_3_tab2_583 AS SELECT pk FROM view_1_tab2_583

query II rowsort label-5800-1
SELECT pk, col0 FROM tab2 WHERE ((col0 <= 976))
----
198 values hashing to 8e13cc7171d87c8a25ee49bcfbfa1973

query II rowsort label-5800-2
SELECT pk, col0 FROM tab2 WHERE NOT (((col0 <= 976)))
----
43
991

query II rowsort label-5800-1
SELECT pk, col0 FROM view_1_tab2_583
----
198 values hashing to 8e13cc7171d87c8a25ee49bcfbfa1973

query II rowsort label-5800-2
SELECT pk, col0 FROM view_2_tab2_583
----
43
991

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE ((col0 <= 976)) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (((col0 <= 976)))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_583 UNION ALL SELECT pk, col0 FROM view_2_tab2_583
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE ((col0 <= 976)) UNION SELECT pk, col0 FROM tab2 WHERE NOT (((col0 <= 976)))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_583 UNION SELECT pk, col0 FROM view_2_tab2_583
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-5800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE ((col0 <= 976)) ) AS tab2_583
----
99 values hashing to 59f788949c9a65f55e830edfbf26f6c9

query I rowsort label-5800-3
SELECT * FROM view_3_tab2_583
----
99 values hashing to 59f788949c9a65f55e830edfbf26f6c9

query I rowsort label-5800-3
SELECT pk FROM tab2 WHERE ((col0 <= 976))
----
99 values hashing to 59f788949c9a65f55e830edfbf26f6c9

statement ok
DROP VIEW view_1_tab2_583

statement ok
DROP VIEW view_2_tab2_583

statement ok
DROP VIEW view_3_tab2_583

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_583') DROP VIEW view_1_tab3_583

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_583

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_583') DROP VIEW view_2_tab3_583

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_583

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_583') DROP VIEW view_3_tab3_583

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_583

statement ok
CREATE VIEW view_1_tab3_583 AS SELECT pk, col0 FROM tab3 WHERE ((col0 <= 976))

statement ok
CREATE VIEW view_2_tab3_583 AS SELECT pk, col0 FROM tab3 WHERE NOT (((col0 <= 976)))

statement ok
CREATE VIEW view_3_tab3_583 AS SELECT pk FROM view_1_tab3_583

query II rowsort label-5800-1
SELECT pk, col0 FROM tab3 WHERE ((col0 <= 976))
----
198 values hashing to 8e13cc7171d87c8a25ee49bcfbfa1973

query II rowsort label-5800-2
SELECT pk, col0 FROM tab3 WHERE NOT (((col0 <= 976)))
----
43
991

query II rowsort label-5800-1
SELECT pk, col0 FROM view_1_tab3_583
----
198 values hashing to 8e13cc7171d87c8a25ee49bcfbfa1973

query II rowsort label-5800-2
SELECT pk, col0 FROM view_2_tab3_583
----
43
991

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE ((col0 <= 976)) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (((col0 <= 976)))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_583 UNION ALL SELECT pk, col0 FROM view_2_tab3_583
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE ((col0 <= 976)) UNION SELECT pk, col0 FROM tab3 WHERE NOT (((col0 <= 976)))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_583 UNION SELECT pk, col0 FROM view_2_tab3_583
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-5800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE ((col0 <= 976)) ) AS tab3_583
----
99 values hashing to 59f788949c9a65f55e830edfbf26f6c9

query I rowsort label-5800-3
SELECT * FROM view_3_tab3_583
----
99 values hashing to 59f788949c9a65f55e830edfbf26f6c9

query I rowsort label-5800-3
SELECT pk FROM tab3 WHERE ((col0 <= 976))
----
99 values hashing to 59f788949c9a65f55e830edfbf26f6c9

statement ok
DROP VIEW view_1_tab3_583

statement ok
DROP VIEW view_2_tab3_583

statement ok
DROP VIEW view_3_tab3_583

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_583') DROP VIEW view_1_tab4_583

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_583

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_583') DROP VIEW view_2_tab4_583

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_583

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_583') DROP VIEW view_3_tab4_583

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_583

statement ok
CREATE VIEW view_1_tab4_583 AS SELECT pk, col0 FROM tab4 WHERE ((col0 <= 976))

statement ok
CREATE VIEW view_2_tab4_583 AS SELECT pk, col0 FROM tab4 WHERE NOT (((col0 <= 976)))

statement ok
CREATE VIEW view_3_tab4_583 AS SELECT pk FROM view_1_tab4_583

query II rowsort label-5800-1
SELECT pk, col0 FROM tab4 WHERE ((col0 <= 976))
----
198 values hashing to 8e13cc7171d87c8a25ee49bcfbfa1973

query II rowsort label-5800-2
SELECT pk, col0 FROM tab4 WHERE NOT (((col0 <= 976)))
----
43
991

query II rowsort label-5800-1
SELECT pk, col0 FROM view_1_tab4_583
----
198 values hashing to 8e13cc7171d87c8a25ee49bcfbfa1973

query II rowsort label-5800-2
SELECT pk, col0 FROM view_2_tab4_583
----
43
991

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE ((col0 <= 976)) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (((col0 <= 976)))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_583 UNION ALL SELECT pk, col0 FROM view_2_tab4_583
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE ((col0 <= 976)) UNION SELECT pk, col0 FROM tab4 WHERE NOT (((col0 <= 976)))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_583 UNION SELECT pk, col0 FROM view_2_tab4_583
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-5800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE ((col0 <= 976)) ) AS tab4_583
----
99 values hashing to 59f788949c9a65f55e830edfbf26f6c9

query I rowsort label-5800-3
SELECT * FROM view_3_tab4_583
----
99 values hashing to 59f788949c9a65f55e830edfbf26f6c9

query I rowsort label-5800-3
SELECT pk FROM tab4 WHERE ((col0 <= 976))
----
99 values hashing to 59f788949c9a65f55e830edfbf26f6c9

statement ok
DROP VIEW view_1_tab4_583

statement ok
DROP VIEW view_2_tab4_583

statement ok
DROP VIEW view_3_tab4_583

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_584') DROP VIEW view_1_tab0_584

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_584

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_584') DROP VIEW view_2_tab0_584

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_584

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_584') DROP VIEW view_3_tab0_584

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_584

statement ok
CREATE VIEW view_1_tab0_584 AS SELECT pk, col0 FROM tab0 WHERE col4 = 526.64

statement ok
CREATE VIEW view_2_tab0_584 AS SELECT pk, col0 FROM tab0 WHERE NOT (col4 = 526.64)

statement ok
CREATE VIEW view_3_tab0_584 AS SELECT pk FROM view_1_tab0_584

query II rowsort label-5900-1
SELECT pk, col0 FROM tab0 WHERE col4 = 526.64
----

query II rowsort label-5900-2
SELECT pk, col0 FROM tab0 WHERE NOT (col4 = 526.64)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-5900-1
SELECT pk, col0 FROM view_1_tab0_584
----

query II rowsort label-5900-2
SELECT pk, col0 FROM view_2_tab0_584
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col4 = 526.64 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col4 = 526.64)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_584 UNION ALL SELECT pk, col0 FROM view_2_tab0_584
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col4 = 526.64 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col4 = 526.64)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_584 UNION SELECT pk, col0 FROM view_2_tab0_584
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-5900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col4 = 526.64 ) AS tab0_584
----

query I rowsort label-5900-3
SELECT * FROM view_3_tab0_584
----

query I rowsort label-5900-3
SELECT pk FROM tab0 WHERE col4 = 526.64
----

statement ok
DROP VIEW view_1_tab0_584

statement ok
DROP VIEW view_2_tab0_584

statement ok
DROP VIEW view_3_tab0_584

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_584') DROP VIEW view_1_tab1_584

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_584

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_584') DROP VIEW view_2_tab1_584

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_584

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_584') DROP VIEW view_3_tab1_584

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_584

statement ok
CREATE VIEW view_1_tab1_584 AS SELECT pk, col0 FROM tab1 WHERE col4 = 526.64

statement ok
CREATE VIEW view_2_tab1_584 AS SELECT pk, col0 FROM tab1 WHERE NOT (col4 = 526.64)

statement ok
CREATE VIEW view_3_tab1_584 AS SELECT pk FROM view_1_tab1_584

query II rowsort label-5900-1
SELECT pk, col0 FROM tab1 WHERE col4 = 526.64
----

query II rowsort label-5900-2
SELECT pk, col0 FROM tab1 WHERE NOT (col4 = 526.64)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-5900-1
SELECT pk, col0 FROM view_1_tab1_584
----

query II rowsort label-5900-2
SELECT pk, col0 FROM view_2_tab1_584
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col4 = 526.64 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col4 = 526.64)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_584 UNION ALL SELECT pk, col0 FROM view_2_tab1_584
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col4 = 526.64 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col4 = 526.64)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_584 UNION SELECT pk, col0 FROM view_2_tab1_584
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-5900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col4 = 526.64 ) AS tab1_584
----

query I rowsort label-5900-3
SELECT * FROM view_3_tab1_584
----

query I rowsort label-5900-3
SELECT pk FROM tab1 WHERE col4 = 526.64
----

statement ok
DROP VIEW view_1_tab1_584

statement ok
DROP VIEW view_2_tab1_584

statement ok
DROP VIEW view_3_tab1_584

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_584') DROP VIEW view_1_tab2_584

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_584

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_584') DROP VIEW view_2_tab2_584

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_584

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_584') DROP VIEW view_3_tab2_584

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_584

statement ok
CREATE VIEW view_1_tab2_584 AS SELECT pk, col0 FROM tab2 WHERE col4 = 526.64

statement ok
CREATE VIEW view_2_tab2_584 AS SELECT pk, col0 FROM tab2 WHERE NOT (col4 = 526.64)

statement ok
CREATE VIEW view_3_tab2_584 AS SELECT pk FROM view_1_tab2_584

query II rowsort label-5900-1
SELECT pk, col0 FROM tab2 WHERE col4 = 526.64
----

query II rowsort label-5900-2
SELECT pk, col0 FROM tab2 WHERE NOT (col4 = 526.64)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-5900-1
SELECT pk, col0 FROM view_1_tab2_584
----

query II rowsort label-5900-2
SELECT pk, col0 FROM view_2_tab2_584
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col4 = 526.64 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col4 = 526.64)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_584 UNION ALL SELECT pk, col0 FROM view_2_tab2_584
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col4 = 526.64 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col4 = 526.64)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_584 UNION SELECT pk, col0 FROM view_2_tab2_584
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-5900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col4 = 526.64 ) AS tab2_584
----

query I rowsort label-5900-3
SELECT * FROM view_3_tab2_584
----

query I rowsort label-5900-3
SELECT pk FROM tab2 WHERE col4 = 526.64
----

statement ok
DROP VIEW view_1_tab2_584

statement ok
DROP VIEW view_2_tab2_584

statement ok
DROP VIEW view_3_tab2_584

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_584') DROP VIEW view_1_tab3_584

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_584

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_584') DROP VIEW view_2_tab3_584

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_584

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_584') DROP VIEW view_3_tab3_584

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_584

statement ok
CREATE VIEW view_1_tab3_584 AS SELECT pk, col0 FROM tab3 WHERE col4 = 526.64

statement ok
CREATE VIEW view_2_tab3_584 AS SELECT pk, col0 FROM tab3 WHERE NOT (col4 = 526.64)

statement ok
CREATE VIEW view_3_tab3_584 AS SELECT pk FROM view_1_tab3_584

query II rowsort label-5900-1
SELECT pk, col0 FROM tab3 WHERE col4 = 526.64
----

query II rowsort label-5900-2
SELECT pk, col0 FROM tab3 WHERE NOT (col4 = 526.64)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-5900-1
SELECT pk, col0 FROM view_1_tab3_584
----

query II rowsort label-5900-2
SELECT pk, col0 FROM view_2_tab3_584
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col4 = 526.64 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col4 = 526.64)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_584 UNION ALL SELECT pk, col0 FROM view_2_tab3_584
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col4 = 526.64 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col4 = 526.64)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_584 UNION SELECT pk, col0 FROM view_2_tab3_584
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-5900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col4 = 526.64 ) AS tab3_584
----

query I rowsort label-5900-3
SELECT * FROM view_3_tab3_584
----

query I rowsort label-5900-3
SELECT pk FROM tab3 WHERE col4 = 526.64
----

statement ok
DROP VIEW view_1_tab3_584

statement ok
DROP VIEW view_2_tab3_584

statement ok
DROP VIEW view_3_tab3_584

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_584') DROP VIEW view_1_tab4_584

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_584

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_584') DROP VIEW view_2_tab4_584

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_584

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_584') DROP VIEW view_3_tab4_584

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_584

statement ok
CREATE VIEW view_1_tab4_584 AS SELECT pk, col0 FROM tab4 WHERE col4 = 526.64

statement ok
CREATE VIEW view_2_tab4_584 AS SELECT pk, col0 FROM tab4 WHERE NOT (col4 = 526.64)

statement ok
CREATE VIEW view_3_tab4_584 AS SELECT pk FROM view_1_tab4_584

query II rowsort label-5900-1
SELECT pk, col0 FROM tab4 WHERE col4 = 526.64
----

query II rowsort label-5900-2
SELECT pk, col0 FROM tab4 WHERE NOT (col4 = 526.64)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-5900-1
SELECT pk, col0 FROM view_1_tab4_584
----

query II rowsort label-5900-2
SELECT pk, col0 FROM view_2_tab4_584
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col4 = 526.64 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col4 = 526.64)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_584 UNION ALL SELECT pk, col0 FROM view_2_tab4_584
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col4 = 526.64 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col4 = 526.64)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_584 UNION SELECT pk, col0 FROM view_2_tab4_584
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-5900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col4 = 526.64 ) AS tab4_584
----

query I rowsort label-5900-3
SELECT * FROM view_3_tab4_584
----

query I rowsort label-5900-3
SELECT pk FROM tab4 WHERE col4 = 526.64
----

statement ok
DROP VIEW view_1_tab4_584

statement ok
DROP VIEW view_2_tab4_584

statement ok
DROP VIEW view_3_tab4_584

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_585') DROP VIEW view_1_tab0_585

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_585

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_585') DROP VIEW view_2_tab0_585

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_585

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_585') DROP VIEW view_3_tab0_585

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_585

statement ok
CREATE VIEW view_1_tab0_585 AS SELECT pk, col0 FROM tab0 WHERE col1 < 353.14

statement ok
CREATE VIEW view_2_tab0_585 AS SELECT pk, col0 FROM tab0 WHERE NOT (col1 < 353.14)

statement ok
CREATE VIEW view_3_tab0_585 AS SELECT pk FROM view_1_tab0_585

query II rowsort label-6000-1
SELECT pk, col0 FROM tab0 WHERE col1 < 353.14
----
60 values hashing to ee45e928399eaafab6e0a59139a3b5f9

query II rowsort label-6000-2
SELECT pk, col0 FROM tab0 WHERE NOT (col1 < 353.14)
----
140 values hashing to 6fa41a4c609a8f5aaa08207d07a7ef45

query II rowsort label-6000-1
SELECT pk, col0 FROM view_1_tab0_585
----
60 values hashing to ee45e928399eaafab6e0a59139a3b5f9

query II rowsort label-6000-2
SELECT pk, col0 FROM view_2_tab0_585
----
140 values hashing to 6fa41a4c609a8f5aaa08207d07a7ef45

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col1 < 353.14 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col1 < 353.14)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_585 UNION ALL SELECT pk, col0 FROM view_2_tab0_585
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col1 < 353.14 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col1 < 353.14)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_585 UNION SELECT pk, col0 FROM view_2_tab0_585
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-6000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col1 < 353.14 ) AS tab0_585
----
30 values hashing to 6f1ce59bec006ee2d6778913eee37530

query I rowsort label-6000-3
SELECT * FROM view_3_tab0_585
----
30 values hashing to 6f1ce59bec006ee2d6778913eee37530

query I rowsort label-6000-3
SELECT pk FROM tab0 WHERE col1 < 353.14
----
30 values hashing to 6f1ce59bec006ee2d6778913eee37530

statement ok
DROP VIEW view_1_tab0_585

statement ok
DROP VIEW view_2_tab0_585

statement ok
DROP VIEW view_3_tab0_585

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_585') DROP VIEW view_1_tab1_585

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_585

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_585') DROP VIEW view_2_tab1_585

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_585

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_585') DROP VIEW view_3_tab1_585

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_585

statement ok
CREATE VIEW view_1_tab1_585 AS SELECT pk, col0 FROM tab1 WHERE col1 < 353.14

statement ok
CREATE VIEW view_2_tab1_585 AS SELECT pk, col0 FROM tab1 WHERE NOT (col1 < 353.14)

statement ok
CREATE VIEW view_3_tab1_585 AS SELECT pk FROM view_1_tab1_585

query II rowsort label-6000-1
SELECT pk, col0 FROM tab1 WHERE col1 < 353.14
----
60 values hashing to ee45e928399eaafab6e0a59139a3b5f9

query II rowsort label-6000-2
SELECT pk, col0 FROM tab1 WHERE NOT (col1 < 353.14)
----
140 values hashing to 6fa41a4c609a8f5aaa08207d07a7ef45

query II rowsort label-6000-1
SELECT pk, col0 FROM view_1_tab1_585
----
60 values hashing to ee45e928399eaafab6e0a59139a3b5f9

query II rowsort label-6000-2
SELECT pk, col0 FROM view_2_tab1_585
----
140 values hashing to 6fa41a4c609a8f5aaa08207d07a7ef45

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col1 < 353.14 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col1 < 353.14)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_585 UNION ALL SELECT pk, col0 FROM view_2_tab1_585
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col1 < 353.14 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col1 < 353.14)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_585 UNION SELECT pk, col0 FROM view_2_tab1_585
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-6000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col1 < 353.14 ) AS tab1_585
----
30 values hashing to 6f1ce59bec006ee2d6778913eee37530

query I rowsort label-6000-3
SELECT * FROM view_3_tab1_585
----
30 values hashing to 6f1ce59bec006ee2d6778913eee37530

query I rowsort label-6000-3
SELECT pk FROM tab1 WHERE col1 < 353.14
----
30 values hashing to 6f1ce59bec006ee2d6778913eee37530

statement ok
DROP VIEW view_1_tab1_585

statement ok
DROP VIEW view_2_tab1_585

statement ok
DROP VIEW view_3_tab1_585

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_585') DROP VIEW view_1_tab2_585

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_585

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_585') DROP VIEW view_2_tab2_585

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_585

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_585') DROP VIEW view_3_tab2_585

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_585

statement ok
CREATE VIEW view_1_tab2_585 AS SELECT pk, col0 FROM tab2 WHERE col1 < 353.14

statement ok
CREATE VIEW view_2_tab2_585 AS SELECT pk, col0 FROM tab2 WHERE NOT (col1 < 353.14)

statement ok
CREATE VIEW view_3_tab2_585 AS SELECT pk FROM view_1_tab2_585

query II rowsort label-6000-1
SELECT pk, col0 FROM tab2 WHERE col1 < 353.14
----
60 values hashing to ee45e928399eaafab6e0a59139a3b5f9

query II rowsort label-6000-2
SELECT pk, col0 FROM tab2 WHERE NOT (col1 < 353.14)
----
140 values hashing to 6fa41a4c609a8f5aaa08207d07a7ef45

query II rowsort label-6000-1
SELECT pk, col0 FROM view_1_tab2_585
----
60 values hashing to ee45e928399eaafab6e0a59139a3b5f9

query II rowsort label-6000-2
SELECT pk, col0 FROM view_2_tab2_585
----
140 values hashing to 6fa41a4c609a8f5aaa08207d07a7ef45

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col1 < 353.14 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col1 < 353.14)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_585 UNION ALL SELECT pk, col0 FROM view_2_tab2_585
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col1 < 353.14 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col1 < 353.14)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_585 UNION SELECT pk, col0 FROM view_2_tab2_585
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-6000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col1 < 353.14 ) AS tab2_585
----
30 values hashing to 6f1ce59bec006ee2d6778913eee37530

query I rowsort label-6000-3
SELECT * FROM view_3_tab2_585
----
30 values hashing to 6f1ce59bec006ee2d6778913eee37530

query I rowsort label-6000-3
SELECT pk FROM tab2 WHERE col1 < 353.14
----
30 values hashing to 6f1ce59bec006ee2d6778913eee37530

statement ok
DROP VIEW view_1_tab2_585

statement ok
DROP VIEW view_2_tab2_585

statement ok
DROP VIEW view_3_tab2_585

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_585') DROP VIEW view_1_tab3_585

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_585

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_585') DROP VIEW view_2_tab3_585

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_585

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_585') DROP VIEW view_3_tab3_585

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_585

statement ok
CREATE VIEW view_1_tab3_585 AS SELECT pk, col0 FROM tab3 WHERE col1 < 353.14

statement ok
CREATE VIEW view_2_tab3_585 AS SELECT pk, col0 FROM tab3 WHERE NOT (col1 < 353.14)

statement ok
CREATE VIEW view_3_tab3_585 AS SELECT pk FROM view_1_tab3_585

query II rowsort label-6000-1
SELECT pk, col0 FROM tab3 WHERE col1 < 353.14
----
60 values hashing to ee45e928399eaafab6e0a59139a3b5f9

query II rowsort label-6000-2
SELECT pk, col0 FROM tab3 WHERE NOT (col1 < 353.14)
----
140 values hashing to 6fa41a4c609a8f5aaa08207d07a7ef45

query II rowsort label-6000-1
SELECT pk, col0 FROM view_1_tab3_585
----
60 values hashing to ee45e928399eaafab6e0a59139a3b5f9

query II rowsort label-6000-2
SELECT pk, col0 FROM view_2_tab3_585
----
140 values hashing to 6fa41a4c609a8f5aaa08207d07a7ef45

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col1 < 353.14 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col1 < 353.14)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_585 UNION ALL SELECT pk, col0 FROM view_2_tab3_585
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col1 < 353.14 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col1 < 353.14)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_585 UNION SELECT pk, col0 FROM view_2_tab3_585
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-6000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col1 < 353.14 ) AS tab3_585
----
30 values hashing to 6f1ce59bec006ee2d6778913eee37530

query I rowsort label-6000-3
SELECT * FROM view_3_tab3_585
----
30 values hashing to 6f1ce59bec006ee2d6778913eee37530

query I rowsort label-6000-3
SELECT pk FROM tab3 WHERE col1 < 353.14
----
30 values hashing to 6f1ce59bec006ee2d6778913eee37530

statement ok
DROP VIEW view_1_tab3_585

statement ok
DROP VIEW view_2_tab3_585

statement ok
DROP VIEW view_3_tab3_585

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_585') DROP VIEW view_1_tab4_585

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_585

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_585') DROP VIEW view_2_tab4_585

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_585

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_585') DROP VIEW view_3_tab4_585

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_585

statement ok
CREATE VIEW view_1_tab4_585 AS SELECT pk, col0 FROM tab4 WHERE col1 < 353.14

statement ok
CREATE VIEW view_2_tab4_585 AS SELECT pk, col0 FROM tab4 WHERE NOT (col1 < 353.14)

statement ok
CREATE VIEW view_3_tab4_585 AS SELECT pk FROM view_1_tab4_585

query II rowsort label-6000-1
SELECT pk, col0 FROM tab4 WHERE col1 < 353.14
----
60 values hashing to ee45e928399eaafab6e0a59139a3b5f9

query II rowsort label-6000-2
SELECT pk, col0 FROM tab4 WHERE NOT (col1 < 353.14)
----
140 values hashing to 6fa41a4c609a8f5aaa08207d07a7ef45

query II rowsort label-6000-1
SELECT pk, col0 FROM view_1_tab4_585
----
60 values hashing to ee45e928399eaafab6e0a59139a3b5f9

query II rowsort label-6000-2
SELECT pk, col0 FROM view_2_tab4_585
----
140 values hashing to 6fa41a4c609a8f5aaa08207d07a7ef45

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col1 < 353.14 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col1 < 353.14)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_585 UNION ALL SELECT pk, col0 FROM view_2_tab4_585
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col1 < 353.14 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col1 < 353.14)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_585 UNION SELECT pk, col0 FROM view_2_tab4_585
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-6000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col1 < 353.14 ) AS tab4_585
----
30 values hashing to 6f1ce59bec006ee2d6778913eee37530

query I rowsort label-6000-3
SELECT * FROM view_3_tab4_585
----
30 values hashing to 6f1ce59bec006ee2d6778913eee37530

query I rowsort label-6000-3
SELECT pk FROM tab4 WHERE col1 < 353.14
----
30 values hashing to 6f1ce59bec006ee2d6778913eee37530

statement ok
DROP VIEW view_1_tab4_585

statement ok
DROP VIEW view_2_tab4_585

statement ok
DROP VIEW view_3_tab4_585

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_586') DROP VIEW view_1_tab0_586

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_586

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_586') DROP VIEW view_2_tab0_586

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_586

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_586') DROP VIEW view_3_tab0_586

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_586

statement ok
CREATE VIEW view_1_tab0_586 AS SELECT pk, col0 FROM tab0 WHERE (col0 >= 683)

statement ok
CREATE VIEW view_2_tab0_586 AS SELECT pk, col0 FROM tab0 WHERE NOT ((col0 >= 683))

statement ok
CREATE VIEW view_3_tab0_586 AS SELECT pk FROM view_1_tab0_586

query II rowsort label-6100-1
SELECT pk, col0 FROM tab0 WHERE (col0 >= 683)
----
68 values hashing to 93b00f042af109fc6d38ad38b4c50daa

query II rowsort label-6100-2
SELECT pk, col0 FROM tab0 WHERE NOT ((col0 >= 683))
----
132 values hashing to 9f64d59b3ac0d9e6af10adbc1bfe37c6

query II rowsort label-6100-1
SELECT pk, col0 FROM view_1_tab0_586
----
68 values hashing to 93b00f042af109fc6d38ad38b4c50daa

query II rowsort label-6100-2
SELECT pk, col0 FROM view_2_tab0_586
----
132 values hashing to 9f64d59b3ac0d9e6af10adbc1bfe37c6

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col0 >= 683) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT ((col0 >= 683))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_586 UNION ALL SELECT pk, col0 FROM view_2_tab0_586
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col0 >= 683) UNION SELECT pk, col0 FROM tab0 WHERE NOT ((col0 >= 683))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_586 UNION SELECT pk, col0 FROM view_2_tab0_586
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-6100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE (col0 >= 683) ) AS tab0_586
----
34 values hashing to 2c05e49579e4d5d7715ad100394083e6

query I rowsort label-6100-3
SELECT * FROM view_3_tab0_586
----
34 values hashing to 2c05e49579e4d5d7715ad100394083e6

query I rowsort label-6100-3
SELECT pk FROM tab0 WHERE (col0 >= 683)
----
34 values hashing to 2c05e49579e4d5d7715ad100394083e6

statement ok
DROP VIEW view_1_tab0_586

statement ok
DROP VIEW view_2_tab0_586

statement ok
DROP VIEW view_3_tab0_586

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_586') DROP VIEW view_1_tab1_586

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_586

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_586') DROP VIEW view_2_tab1_586

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_586

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_586') DROP VIEW view_3_tab1_586

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_586

statement ok
CREATE VIEW view_1_tab1_586 AS SELECT pk, col0 FROM tab1 WHERE (col0 >= 683)

statement ok
CREATE VIEW view_2_tab1_586 AS SELECT pk, col0 FROM tab1 WHERE NOT ((col0 >= 683))

statement ok
CREATE VIEW view_3_tab1_586 AS SELECT pk FROM view_1_tab1_586

query II rowsort label-6100-1
SELECT pk, col0 FROM tab1 WHERE (col0 >= 683)
----
68 values hashing to 93b00f042af109fc6d38ad38b4c50daa

query II rowsort label-6100-2
SELECT pk, col0 FROM tab1 WHERE NOT ((col0 >= 683))
----
132 values hashing to 9f64d59b3ac0d9e6af10adbc1bfe37c6

query II rowsort label-6100-1
SELECT pk, col0 FROM view_1_tab1_586
----
68 values hashing to 93b00f042af109fc6d38ad38b4c50daa

query II rowsort label-6100-2
SELECT pk, col0 FROM view_2_tab1_586
----
132 values hashing to 9f64d59b3ac0d9e6af10adbc1bfe37c6

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col0 >= 683) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT ((col0 >= 683))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_586 UNION ALL SELECT pk, col0 FROM view_2_tab1_586
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col0 >= 683) UNION SELECT pk, col0 FROM tab1 WHERE NOT ((col0 >= 683))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_586 UNION SELECT pk, col0 FROM view_2_tab1_586
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-6100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE (col0 >= 683) ) AS tab1_586
----
34 values hashing to 2c05e49579e4d5d7715ad100394083e6

query I rowsort label-6100-3
SELECT * FROM view_3_tab1_586
----
34 values hashing to 2c05e49579e4d5d7715ad100394083e6

query I rowsort label-6100-3
SELECT pk FROM tab1 WHERE (col0 >= 683)
----
34 values hashing to 2c05e49579e4d5d7715ad100394083e6

statement ok
DROP VIEW view_1_tab1_586

statement ok
DROP VIEW view_2_tab1_586

statement ok
DROP VIEW view_3_tab1_586

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_586') DROP VIEW view_1_tab2_586

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_586

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_586') DROP VIEW view_2_tab2_586

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_586

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_586') DROP VIEW view_3_tab2_586

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_586

statement ok
CREATE VIEW view_1_tab2_586 AS SELECT pk, col0 FROM tab2 WHERE (col0 >= 683)

statement ok
CREATE VIEW view_2_tab2_586 AS SELECT pk, col0 FROM tab2 WHERE NOT ((col0 >= 683))

statement ok
CREATE VIEW view_3_tab2_586 AS SELECT pk FROM view_1_tab2_586

query II rowsort label-6100-1
SELECT pk, col0 FROM tab2 WHERE (col0 >= 683)
----
68 values hashing to 93b00f042af109fc6d38ad38b4c50daa

query II rowsort label-6100-2
SELECT pk, col0 FROM tab2 WHERE NOT ((col0 >= 683))
----
132 values hashing to 9f64d59b3ac0d9e6af10adbc1bfe37c6

query II rowsort label-6100-1
SELECT pk, col0 FROM view_1_tab2_586
----
68 values hashing to 93b00f042af109fc6d38ad38b4c50daa

query II rowsort label-6100-2
SELECT pk, col0 FROM view_2_tab2_586
----
132 values hashing to 9f64d59b3ac0d9e6af10adbc1bfe37c6

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col0 >= 683) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT ((col0 >= 683))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_586 UNION ALL SELECT pk, col0 FROM view_2_tab2_586
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col0 >= 683) UNION SELECT pk, col0 FROM tab2 WHERE NOT ((col0 >= 683))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_586 UNION SELECT pk, col0 FROM view_2_tab2_586
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-6100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE (col0 >= 683) ) AS tab2_586
----
34 values hashing to 2c05e49579e4d5d7715ad100394083e6

query I rowsort label-6100-3
SELECT * FROM view_3_tab2_586
----
34 values hashing to 2c05e49579e4d5d7715ad100394083e6

query I rowsort label-6100-3
SELECT pk FROM tab2 WHERE (col0 >= 683)
----
34 values hashing to 2c05e49579e4d5d7715ad100394083e6

statement ok
DROP VIEW view_1_tab2_586

statement ok
DROP VIEW view_2_tab2_586

statement ok
DROP VIEW view_3_tab2_586

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_586') DROP VIEW view_1_tab3_586

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_586

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_586') DROP VIEW view_2_tab3_586

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_586

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_586') DROP VIEW view_3_tab3_586

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_586

statement ok
CREATE VIEW view_1_tab3_586 AS SELECT pk, col0 FROM tab3 WHERE (col0 >= 683)

statement ok
CREATE VIEW view_2_tab3_586 AS SELECT pk, col0 FROM tab3 WHERE NOT ((col0 >= 683))

statement ok
CREATE VIEW view_3_tab3_586 AS SELECT pk FROM view_1_tab3_586

query II rowsort label-6100-1
SELECT pk, col0 FROM tab3 WHERE (col0 >= 683)
----
68 values hashing to 93b00f042af109fc6d38ad38b4c50daa

query II rowsort label-6100-2
SELECT pk, col0 FROM tab3 WHERE NOT ((col0 >= 683))
----
132 values hashing to 9f64d59b3ac0d9e6af10adbc1bfe37c6

query II rowsort label-6100-1
SELECT pk, col0 FROM view_1_tab3_586
----
68 values hashing to 93b00f042af109fc6d38ad38b4c50daa

query II rowsort label-6100-2
SELECT pk, col0 FROM view_2_tab3_586
----
132 values hashing to 9f64d59b3ac0d9e6af10adbc1bfe37c6

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col0 >= 683) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT ((col0 >= 683))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_586 UNION ALL SELECT pk, col0 FROM view_2_tab3_586
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col0 >= 683) UNION SELECT pk, col0 FROM tab3 WHERE NOT ((col0 >= 683))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_586 UNION SELECT pk, col0 FROM view_2_tab3_586
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-6100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE (col0 >= 683) ) AS tab3_586
----
34 values hashing to 2c05e49579e4d5d7715ad100394083e6

query I rowsort label-6100-3
SELECT * FROM view_3_tab3_586
----
34 values hashing to 2c05e49579e4d5d7715ad100394083e6

query I rowsort label-6100-3
SELECT pk FROM tab3 WHERE (col0 >= 683)
----
34 values hashing to 2c05e49579e4d5d7715ad100394083e6

statement ok
DROP VIEW view_1_tab3_586

statement ok
DROP VIEW view_2_tab3_586

statement ok
DROP VIEW view_3_tab3_586

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_586') DROP VIEW view_1_tab4_586

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_586

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_586') DROP VIEW view_2_tab4_586

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_586

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_586') DROP VIEW view_3_tab4_586

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_586

statement ok
CREATE VIEW view_1_tab4_586 AS SELECT pk, col0 FROM tab4 WHERE (col0 >= 683)

statement ok
CREATE VIEW view_2_tab4_586 AS SELECT pk, col0 FROM tab4 WHERE NOT ((col0 >= 683))

statement ok
CREATE VIEW view_3_tab4_586 AS SELECT pk FROM view_1_tab4_586

query II rowsort label-6100-1
SELECT pk, col0 FROM tab4 WHERE (col0 >= 683)
----
68 values hashing to 93b00f042af109fc6d38ad38b4c50daa

query II rowsort label-6100-2
SELECT pk, col0 FROM tab4 WHERE NOT ((col0 >= 683))
----
132 values hashing to 9f64d59b3ac0d9e6af10adbc1bfe37c6

query II rowsort label-6100-1
SELECT pk, col0 FROM view_1_tab4_586
----
68 values hashing to 93b00f042af109fc6d38ad38b4c50daa

query II rowsort label-6100-2
SELECT pk, col0 FROM view_2_tab4_586
----
132 values hashing to 9f64d59b3ac0d9e6af10adbc1bfe37c6

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col0 >= 683) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT ((col0 >= 683))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_586 UNION ALL SELECT pk, col0 FROM view_2_tab4_586
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col0 >= 683) UNION SELECT pk, col0 FROM tab4 WHERE NOT ((col0 >= 683))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_586 UNION SELECT pk, col0 FROM view_2_tab4_586
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-6100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE (col0 >= 683) ) AS tab4_586
----
34 values hashing to 2c05e49579e4d5d7715ad100394083e6

query I rowsort label-6100-3
SELECT * FROM view_3_tab4_586
----
34 values hashing to 2c05e49579e4d5d7715ad100394083e6

query I rowsort label-6100-3
SELECT pk FROM tab4 WHERE (col0 >= 683)
----
34 values hashing to 2c05e49579e4d5d7715ad100394083e6

statement ok
DROP VIEW view_1_tab4_586

statement ok
DROP VIEW view_2_tab4_586

statement ok
DROP VIEW view_3_tab4_586

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_587') DROP VIEW view_1_tab0_587

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_587

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_587') DROP VIEW view_2_tab0_587

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_587

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_587') DROP VIEW view_3_tab0_587

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_587

statement ok
CREATE VIEW view_1_tab0_587 AS SELECT pk, col0 FROM tab0 WHERE (col4 <= 383.7 AND col0 < 347 AND col1 > 373.8 OR (col3 < 50) AND ((col1 = 849.25 AND col4 < 580.20)) AND (col1 = 455.91) AND col3 < 716 OR (col1 > 280.13) AND (col4 > 265.91) AND ((col0 >= 605) AND (col0 <= 98))) OR col0 < 94

statement ok
CREATE VIEW view_2_tab0_587 AS SELECT pk, col0 FROM tab0 WHERE NOT ((col4 <= 383.7 AND col0 < 347 AND col1 > 373.8 OR (col3 < 50) AND ((col1 = 849.25 AND col4 < 580.20)) AND (col1 = 455.91) AND col3 < 716 OR (col1 > 280.13) AND (col4 > 265.91) AND ((col0 >= 605) AND (col0 <= 98))) OR col0 < 94)

statement ok
CREATE VIEW view_3_tab0_587 AS SELECT pk FROM view_1_tab0_587

query II rowsort label-6200-1
SELECT pk, col0 FROM tab0 WHERE (col4 <= 383.7 AND col0 < 347 AND col1 > 373.8 OR (col3 < 50) AND ((col1 = 849.25 AND col4 < 580.20)) AND (col1 = 455.91) AND col3 < 716 OR (col1 > 280.13) AND (col4 > 265.91) AND ((col0 >= 605) AND (col0 <= 98))) OR col0 < 94
----
32 values hashing to 99f8c3b6c94051db236f5d0ce0292125

query II rowsort label-6200-2
SELECT pk, col0 FROM tab0 WHERE NOT ((col4 <= 383.7 AND col0 < 347 AND col1 > 373.8 OR (col3 < 50) AND ((col1 = 849.25 AND col4 < 580.20)) AND (col1 = 455.91) AND col3 < 716 OR (col1 > 280.13) AND (col4 > 265.91) AND ((col0 >= 605) AND (col0 <= 98))) OR col0 < 94)
----
168 values hashing to e490b09b95bbaa9728292342f8b5f2ef

query II rowsort label-6200-1
SELECT pk, col0 FROM view_1_tab0_587
----
32 values hashing to 99f8c3b6c94051db236f5d0ce0292125

query II rowsort label-6200-2
SELECT pk, col0 FROM view_2_tab0_587
----
168 values hashing to e490b09b95bbaa9728292342f8b5f2ef

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col4 <= 383.7 AND col0 < 347 AND col1 > 373.8 OR (col3 < 50) AND ((col1 = 849.25 AND col4 < 580.20)) AND (col1 = 455.91) AND col3 < 716 OR (col1 > 280.13) AND (col4 > 265.91) AND ((col0 >= 605) AND (col0 <= 98))) OR col0 < 94 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT ((col4 <= 383.7 AND col0 < 347 AND col1 > 373.8 OR (col3 < 50) AND ((col1 = 849.25 AND col4 < 580.20)) AND (col1 = 455.91) AND col3 < 716 OR (col1 > 280.13) AND (col4 > 265.91) AND ((col0 >= 605) AND (col0 <= 98))) OR col0 < 94)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_587 UNION ALL SELECT pk, col0 FROM view_2_tab0_587
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col4 <= 383.7 AND col0 < 347 AND col1 > 373.8 OR (col3 < 50) AND ((col1 = 849.25 AND col4 < 580.20)) AND (col1 = 455.91) AND col3 < 716 OR (col1 > 280.13) AND (col4 > 265.91) AND ((col0 >= 605) AND (col0 <= 98))) OR col0 < 94 UNION SELECT pk, col0 FROM tab0 WHERE NOT ((col4 <= 383.7 AND col0 < 347 AND col1 > 373.8 OR (col3 < 50) AND ((col1 = 849.25 AND col4 < 580.20)) AND (col1 = 455.91) AND col3 < 716 OR (col1 > 280.13) AND (col4 > 265.91) AND ((col0 >= 605) AND (col0 <= 98))) OR col0 < 94)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_587 UNION SELECT pk, col0 FROM view_2_tab0_587
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-6200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE (col4 <= 383.7 AND col0 < 347 AND col1 > 373.8 OR (col3 < 50) AND ((col1 = 849.25 AND col4 < 580.20)) AND (col1 = 455.91) AND col3 < 716 OR (col1 > 280.13) AND (col4 > 265.91) AND ((col0 >= 605) AND (col0 <= 98))) OR col0 < 94 ) AS tab0_587
----
16 values hashing to a3591a75e5ca9ee50be120fdf2351ae9

query I rowsort label-6200-3
SELECT * FROM view_3_tab0_587
----
16 values hashing to a3591a75e5ca9ee50be120fdf2351ae9

query I rowsort label-6200-3
SELECT pk FROM tab0 WHERE (col4 <= 383.7 AND col0 < 347 AND col1 > 373.8 OR (col3 < 50) AND ((col1 = 849.25 AND col4 < 580.20)) AND (col1 = 455.91) AND col3 < 716 OR (col1 > 280.13) AND (col4 > 265.91) AND ((col0 >= 605) AND (col0 <= 98))) OR col0 < 94
----
16 values hashing to a3591a75e5ca9ee50be120fdf2351ae9

statement ok
DROP VIEW view_1_tab0_587

statement ok
DROP VIEW view_2_tab0_587

statement ok
DROP VIEW view_3_tab0_587

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_587') DROP VIEW view_1_tab1_587

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_587

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_587') DROP VIEW view_2_tab1_587

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_587

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_587') DROP VIEW view_3_tab1_587

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_587

statement ok
CREATE VIEW view_1_tab1_587 AS SELECT pk, col0 FROM tab1 WHERE (col4 <= 383.7 AND col0 < 347 AND col1 > 373.8 OR (col3 < 50) AND ((col1 = 849.25 AND col4 < 580.20)) AND (col1 = 455.91) AND col3 < 716 OR (col1 > 280.13) AND (col4 > 265.91) AND ((col0 >= 605) AND (col0 <= 98))) OR col0 < 94

statement ok
CREATE VIEW view_2_tab1_587 AS SELECT pk, col0 FROM tab1 WHERE NOT ((col4 <= 383.7 AND col0 < 347 AND col1 > 373.8 OR (col3 < 50) AND ((col1 = 849.25 AND col4 < 580.20)) AND (col1 = 455.91) AND col3 < 716 OR (col1 > 280.13) AND (col4 > 265.91) AND ((col0 >= 605) AND (col0 <= 98))) OR col0 < 94)

statement ok
CREATE VIEW view_3_tab1_587 AS SELECT pk FROM view_1_tab1_587

query II rowsort label-6200-1
SELECT pk, col0 FROM tab1 WHERE (col4 <= 383.7 AND col0 < 347 AND col1 > 373.8 OR (col3 < 50) AND ((col1 = 849.25 AND col4 < 580.20)) AND (col1 = 455.91) AND col3 < 716 OR (col1 > 280.13) AND (col4 > 265.91) AND ((col0 >= 605) AND (col0 <= 98))) OR col0 < 94
----
32 values hashing to 99f8c3b6c94051db236f5d0ce0292125

query II rowsort label-6200-2
SELECT pk, col0 FROM tab1 WHERE NOT ((col4 <= 383.7 AND col0 < 347 AND col1 > 373.8 OR (col3 < 50) AND ((col1 = 849.25 AND col4 < 580.20)) AND (col1 = 455.91) AND col3 < 716 OR (col1 > 280.13) AND (col4 > 265.91) AND ((col0 >= 605) AND (col0 <= 98))) OR col0 < 94)
----
168 values hashing to e490b09b95bbaa9728292342f8b5f2ef

query II rowsort label-6200-1
SELECT pk, col0 FROM view_1_tab1_587
----
32 values hashing to 99f8c3b6c94051db236f5d0ce0292125

query II rowsort label-6200-2
SELECT pk, col0 FROM view_2_tab1_587
----
168 values hashing to e490b09b95bbaa9728292342f8b5f2ef

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col4 <= 383.7 AND col0 < 347 AND col1 > 373.8 OR (col3 < 50) AND ((col1 = 849.25 AND col4 < 580.20)) AND (col1 = 455.91) AND col3 < 716 OR (col1 > 280.13) AND (col4 > 265.91) AND ((col0 >= 605) AND (col0 <= 98))) OR col0 < 94 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT ((col4 <= 383.7 AND col0 < 347 AND col1 > 373.8 OR (col3 < 50) AND ((col1 = 849.25 AND col4 < 580.20)) AND (col1 = 455.91) AND col3 < 716 OR (col1 > 280.13) AND (col4 > 265.91) AND ((col0 >= 605) AND (col0 <= 98))) OR col0 < 94)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_587 UNION ALL SELECT pk, col0 FROM view_2_tab1_587
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col4 <= 383.7 AND col0 < 347 AND col1 > 373.8 OR (col3 < 50) AND ((col1 = 849.25 AND col4 < 580.20)) AND (col1 = 455.91) AND col3 < 716 OR (col1 > 280.13) AND (col4 > 265.91) AND ((col0 >= 605) AND (col0 <= 98))) OR col0 < 94 UNION SELECT pk, col0 FROM tab1 WHERE NOT ((col4 <= 383.7 AND col0 < 347 AND col1 > 373.8 OR (col3 < 50) AND ((col1 = 849.25 AND col4 < 580.20)) AND (col1 = 455.91) AND col3 < 716 OR (col1 > 280.13) AND (col4 > 265.91) AND ((col0 >= 605) AND (col0 <= 98))) OR col0 < 94)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_587 UNION SELECT pk, col0 FROM view_2_tab1_587
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-6200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE (col4 <= 383.7 AND col0 < 347 AND col1 > 373.8 OR (col3 < 50) AND ((col1 = 849.25 AND col4 < 580.20)) AND (col1 = 455.91) AND col3 < 716 OR (col1 > 280.13) AND (col4 > 265.91) AND ((col0 >= 605) AND (col0 <= 98))) OR col0 < 94 ) AS tab1_587
----
16 values hashing to a3591a75e5ca9ee50be120fdf2351ae9

query I rowsort label-6200-3
SELECT * FROM view_3_tab1_587
----
16 values hashing to a3591a75e5ca9ee50be120fdf2351ae9

query I rowsort label-6200-3
SELECT pk FROM tab1 WHERE (col4 <= 383.7 AND col0 < 347 AND col1 > 373.8 OR (col3 < 50) AND ((col1 = 849.25 AND col4 < 580.20)) AND (col1 = 455.91) AND col3 < 716 OR (col1 > 280.13) AND (col4 > 265.91) AND ((col0 >= 605) AND (col0 <= 98))) OR col0 < 94
----
16 values hashing to a3591a75e5ca9ee50be120fdf2351ae9

statement ok
DROP VIEW view_1_tab1_587

statement ok
DROP VIEW view_2_tab1_587

statement ok
DROP VIEW view_3_tab1_587

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_587') DROP VIEW view_1_tab2_587

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_587

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_587') DROP VIEW view_2_tab2_587

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_587

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_587') DROP VIEW view_3_tab2_587

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_587

statement ok
CREATE VIEW view_1_tab2_587 AS SELECT pk, col0 FROM tab2 WHERE (col4 <= 383.7 AND col0 < 347 AND col1 > 373.8 OR (col3 < 50) AND ((col1 = 849.25 AND col4 < 580.20)) AND (col1 = 455.91) AND col3 < 716 OR (col1 > 280.13) AND (col4 > 265.91) AND ((col0 >= 605) AND (col0 <= 98))) OR col0 < 94

statement ok
CREATE VIEW view_2_tab2_587 AS SELECT pk, col0 FROM tab2 WHERE NOT ((col4 <= 383.7 AND col0 < 347 AND col1 > 373.8 OR (col3 < 50) AND ((col1 = 849.25 AND col4 < 580.20)) AND (col1 = 455.91) AND col3 < 716 OR (col1 > 280.13) AND (col4 > 265.91) AND ((col0 >= 605) AND (col0 <= 98))) OR col0 < 94)

statement ok
CREATE VIEW view_3_tab2_587 AS SELECT pk FROM view_1_tab2_587

query II rowsort label-6200-1
SELECT pk, col0 FROM tab2 WHERE (col4 <= 383.7 AND col0 < 347 AND col1 > 373.8 OR (col3 < 50) AND ((col1 = 849.25 AND col4 < 580.20)) AND (col1 = 455.91) AND col3 < 716 OR (col1 > 280.13) AND (col4 > 265.91) AND ((col0 >= 605) AND (col0 <= 98))) OR col0 < 94
----
32 values hashing to 99f8c3b6c94051db236f5d0ce0292125

query II rowsort label-6200-2
SELECT pk, col0 FROM tab2 WHERE NOT ((col4 <= 383.7 AND col0 < 347 AND col1 > 373.8 OR (col3 < 50) AND ((col1 = 849.25 AND col4 < 580.20)) AND (col1 = 455.91) AND col3 < 716 OR (col1 > 280.13) AND (col4 > 265.91) AND ((col0 >= 605) AND (col0 <= 98))) OR col0 < 94)
----
168 values hashing to e490b09b95bbaa9728292342f8b5f2ef

query II rowsort label-6200-1
SELECT pk, col0 FROM view_1_tab2_587
----
32 values hashing to 99f8c3b6c94051db236f5d0ce0292125

query II rowsort label-6200-2
SELECT pk, col0 FROM view_2_tab2_587
----
168 values hashing to e490b09b95bbaa9728292342f8b5f2ef

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col4 <= 383.7 AND col0 < 347 AND col1 > 373.8 OR (col3 < 50) AND ((col1 = 849.25 AND col4 < 580.20)) AND (col1 = 455.91) AND col3 < 716 OR (col1 > 280.13) AND (col4 > 265.91) AND ((col0 >= 605) AND (col0 <= 98))) OR col0 < 94 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT ((col4 <= 383.7 AND col0 < 347 AND col1 > 373.8 OR (col3 < 50) AND ((col1 = 849.25 AND col4 < 580.20)) AND (col1 = 455.91) AND col3 < 716 OR (col1 > 280.13) AND (col4 > 265.91) AND ((col0 >= 605) AND (col0 <= 98))) OR col0 < 94)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_587 UNION ALL SELECT pk, col0 FROM view_2_tab2_587
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col4 <= 383.7 AND col0 < 347 AND col1 > 373.8 OR (col3 < 50) AND ((col1 = 849.25 AND col4 < 580.20)) AND (col1 = 455.91) AND col3 < 716 OR (col1 > 280.13) AND (col4 > 265.91) AND ((col0 >= 605) AND (col0 <= 98))) OR col0 < 94 UNION SELECT pk, col0 FROM tab2 WHERE NOT ((col4 <= 383.7 AND col0 < 347 AND col1 > 373.8 OR (col3 < 50) AND ((col1 = 849.25 AND col4 < 580.20)) AND (col1 = 455.91) AND col3 < 716 OR (col1 > 280.13) AND (col4 > 265.91) AND ((col0 >= 605) AND (col0 <= 98))) OR col0 < 94)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_587 UNION SELECT pk, col0 FROM view_2_tab2_587
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-6200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE (col4 <= 383.7 AND col0 < 347 AND col1 > 373.8 OR (col3 < 50) AND ((col1 = 849.25 AND col4 < 580.20)) AND (col1 = 455.91) AND col3 < 716 OR (col1 > 280.13) AND (col4 > 265.91) AND ((col0 >= 605) AND (col0 <= 98))) OR col0 < 94 ) AS tab2_587
----
16 values hashing to a3591a75e5ca9ee50be120fdf2351ae9

query I rowsort label-6200-3
SELECT * FROM view_3_tab2_587
----
16 values hashing to a3591a75e5ca9ee50be120fdf2351ae9

query I rowsort label-6200-3
SELECT pk FROM tab2 WHERE (col4 <= 383.7 AND col0 < 347 AND col1 > 373.8 OR (col3 < 50) AND ((col1 = 849.25 AND col4 < 580.20)) AND (col1 = 455.91) AND col3 < 716 OR (col1 > 280.13) AND (col4 > 265.91) AND ((col0 >= 605) AND (col0 <= 98))) OR col0 < 94
----
16 values hashing to a3591a75e5ca9ee50be120fdf2351ae9

statement ok
DROP VIEW view_1_tab2_587

statement ok
DROP VIEW view_2_tab2_587

statement ok
DROP VIEW view_3_tab2_587

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_587') DROP VIEW view_1_tab3_587

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_587

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_587') DROP VIEW view_2_tab3_587

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_587

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_587') DROP VIEW view_3_tab3_587

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_587

statement ok
CREATE VIEW view_1_tab3_587 AS SELECT pk, col0 FROM tab3 WHERE (col4 <= 383.7 AND col0 < 347 AND col1 > 373.8 OR (col3 < 50) AND ((col1 = 849.25 AND col4 < 580.20)) AND (col1 = 455.91) AND col3 < 716 OR (col1 > 280.13) AND (col4 > 265.91) AND ((col0 >= 605) AND (col0 <= 98))) OR col0 < 94

statement ok
CREATE VIEW view_2_tab3_587 AS SELECT pk, col0 FROM tab3 WHERE NOT ((col4 <= 383.7 AND col0 < 347 AND col1 > 373.8 OR (col3 < 50) AND ((col1 = 849.25 AND col4 < 580.20)) AND (col1 = 455.91) AND col3 < 716 OR (col1 > 280.13) AND (col4 > 265.91) AND ((col0 >= 605) AND (col0 <= 98))) OR col0 < 94)

statement ok
CREATE VIEW view_3_tab3_587 AS SELECT pk FROM view_1_tab3_587

query II rowsort label-6200-1
SELECT pk, col0 FROM tab3 WHERE (col4 <= 383.7 AND col0 < 347 AND col1 > 373.8 OR (col3 < 50) AND ((col1 = 849.25 AND col4 < 580.20)) AND (col1 = 455.91) AND col3 < 716 OR (col1 > 280.13) AND (col4 > 265.91) AND ((col0 >= 605) AND (col0 <= 98))) OR col0 < 94
----
32 values hashing to 99f8c3b6c94051db236f5d0ce0292125

query II rowsort label-6200-2
SELECT pk, col0 FROM tab3 WHERE NOT ((col4 <= 383.7 AND col0 < 347 AND col1 > 373.8 OR (col3 < 50) AND ((col1 = 849.25 AND col4 < 580.20)) AND (col1 = 455.91) AND col3 < 716 OR (col1 > 280.13) AND (col4 > 265.91) AND ((col0 >= 605) AND (col0 <= 98))) OR col0 < 94)
----
168 values hashing to e490b09b95bbaa9728292342f8b5f2ef

query II rowsort label-6200-1
SELECT pk, col0 FROM view_1_tab3_587
----
32 values hashing to 99f8c3b6c94051db236f5d0ce0292125

query II rowsort label-6200-2
SELECT pk, col0 FROM view_2_tab3_587
----
168 values hashing to e490b09b95bbaa9728292342f8b5f2ef

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col4 <= 383.7 AND col0 < 347 AND col1 > 373.8 OR (col3 < 50) AND ((col1 = 849.25 AND col4 < 580.20)) AND (col1 = 455.91) AND col3 < 716 OR (col1 > 280.13) AND (col4 > 265.91) AND ((col0 >= 605) AND (col0 <= 98))) OR col0 < 94 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT ((col4 <= 383.7 AND col0 < 347 AND col1 > 373.8 OR (col3 < 50) AND ((col1 = 849.25 AND col4 < 580.20)) AND (col1 = 455.91) AND col3 < 716 OR (col1 > 280.13) AND (col4 > 265.91) AND ((col0 >= 605) AND (col0 <= 98))) OR col0 < 94)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_587 UNION ALL SELECT pk, col0 FROM view_2_tab3_587
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col4 <= 383.7 AND col0 < 347 AND col1 > 373.8 OR (col3 < 50) AND ((col1 = 849.25 AND col4 < 580.20)) AND (col1 = 455.91) AND col3 < 716 OR (col1 > 280.13) AND (col4 > 265.91) AND ((col0 >= 605) AND (col0 <= 98))) OR col0 < 94 UNION SELECT pk, col0 FROM tab3 WHERE NOT ((col4 <= 383.7 AND col0 < 347 AND col1 > 373.8 OR (col3 < 50) AND ((col1 = 849.25 AND col4 < 580.20)) AND (col1 = 455.91) AND col3 < 716 OR (col1 > 280.13) AND (col4 > 265.91) AND ((col0 >= 605) AND (col0 <= 98))) OR col0 < 94)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_587 UNION SELECT pk, col0 FROM view_2_tab3_587
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-6200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE (col4 <= 383.7 AND col0 < 347 AND col1 > 373.8 OR (col3 < 50) AND ((col1 = 849.25 AND col4 < 580.20)) AND (col1 = 455.91) AND col3 < 716 OR (col1 > 280.13) AND (col4 > 265.91) AND ((col0 >= 605) AND (col0 <= 98))) OR col0 < 94 ) AS tab3_587
----
16 values hashing to a3591a75e5ca9ee50be120fdf2351ae9

query I rowsort label-6200-3
SELECT * FROM view_3_tab3_587
----
16 values hashing to a3591a75e5ca9ee50be120fdf2351ae9

query I rowsort label-6200-3
SELECT pk FROM tab3 WHERE (col4 <= 383.7 AND col0 < 347 AND col1 > 373.8 OR (col3 < 50) AND ((col1 = 849.25 AND col4 < 580.20)) AND (col1 = 455.91) AND col3 < 716 OR (col1 > 280.13) AND (col4 > 265.91) AND ((col0 >= 605) AND (col0 <= 98))) OR col0 < 94
----
16 values hashing to a3591a75e5ca9ee50be120fdf2351ae9

statement ok
DROP VIEW view_1_tab3_587

statement ok
DROP VIEW view_2_tab3_587

statement ok
DROP VIEW view_3_tab3_587

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_587') DROP VIEW view_1_tab4_587

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_587

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_587') DROP VIEW view_2_tab4_587

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_587

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_587') DROP VIEW view_3_tab4_587

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_587

statement ok
CREATE VIEW view_1_tab4_587 AS SELECT pk, col0 FROM tab4 WHERE (col4 <= 383.7 AND col0 < 347 AND col1 > 373.8 OR (col3 < 50) AND ((col1 = 849.25 AND col4 < 580.20)) AND (col1 = 455.91) AND col3 < 716 OR (col1 > 280.13) AND (col4 > 265.91) AND ((col0 >= 605) AND (col0 <= 98))) OR col0 < 94

statement ok
CREATE VIEW view_2_tab4_587 AS SELECT pk, col0 FROM tab4 WHERE NOT ((col4 <= 383.7 AND col0 < 347 AND col1 > 373.8 OR (col3 < 50) AND ((col1 = 849.25 AND col4 < 580.20)) AND (col1 = 455.91) AND col3 < 716 OR (col1 > 280.13) AND (col4 > 265.91) AND ((col0 >= 605) AND (col0 <= 98))) OR col0 < 94)

statement ok
CREATE VIEW view_3_tab4_587 AS SELECT pk FROM view_1_tab4_587

query II rowsort label-6200-1
SELECT pk, col0 FROM tab4 WHERE (col4 <= 383.7 AND col0 < 347 AND col1 > 373.8 OR (col3 < 50) AND ((col1 = 849.25 AND col4 < 580.20)) AND (col1 = 455.91) AND col3 < 716 OR (col1 > 280.13) AND (col4 > 265.91) AND ((col0 >= 605) AND (col0 <= 98))) OR col0 < 94
----
32 values hashing to 99f8c3b6c94051db236f5d0ce0292125

query II rowsort label-6200-2
SELECT pk, col0 FROM tab4 WHERE NOT ((col4 <= 383.7 AND col0 < 347 AND col1 > 373.8 OR (col3 < 50) AND ((col1 = 849.25 AND col4 < 580.20)) AND (col1 = 455.91) AND col3 < 716 OR (col1 > 280.13) AND (col4 > 265.91) AND ((col0 >= 605) AND (col0 <= 98))) OR col0 < 94)
----
168 values hashing to e490b09b95bbaa9728292342f8b5f2ef

query II rowsort label-6200-1
SELECT pk, col0 FROM view_1_tab4_587
----
32 values hashing to 99f8c3b6c94051db236f5d0ce0292125

query II rowsort label-6200-2
SELECT pk, col0 FROM view_2_tab4_587
----
168 values hashing to e490b09b95bbaa9728292342f8b5f2ef

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col4 <= 383.7 AND col0 < 347 AND col1 > 373.8 OR (col3 < 50) AND ((col1 = 849.25 AND col4 < 580.20)) AND (col1 = 455.91) AND col3 < 716 OR (col1 > 280.13) AND (col4 > 265.91) AND ((col0 >= 605) AND (col0 <= 98))) OR col0 < 94 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT ((col4 <= 383.7 AND col0 < 347 AND col1 > 373.8 OR (col3 < 50) AND ((col1 = 849.25 AND col4 < 580.20)) AND (col1 = 455.91) AND col3 < 716 OR (col1 > 280.13) AND (col4 > 265.91) AND ((col0 >= 605) AND (col0 <= 98))) OR col0 < 94)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_587 UNION ALL SELECT pk, col0 FROM view_2_tab4_587
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col4 <= 383.7 AND col0 < 347 AND col1 > 373.8 OR (col3 < 50) AND ((col1 = 849.25 AND col4 < 580.20)) AND (col1 = 455.91) AND col3 < 716 OR (col1 > 280.13) AND (col4 > 265.91) AND ((col0 >= 605) AND (col0 <= 98))) OR col0 < 94 UNION SELECT pk, col0 FROM tab4 WHERE NOT ((col4 <= 383.7 AND col0 < 347 AND col1 > 373.8 OR (col3 < 50) AND ((col1 = 849.25 AND col4 < 580.20)) AND (col1 = 455.91) AND col3 < 716 OR (col1 > 280.13) AND (col4 > 265.91) AND ((col0 >= 605) AND (col0 <= 98))) OR col0 < 94)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_587 UNION SELECT pk, col0 FROM view_2_tab4_587
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-6200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE (col4 <= 383.7 AND col0 < 347 AND col1 > 373.8 OR (col3 < 50) AND ((col1 = 849.25 AND col4 < 580.20)) AND (col1 = 455.91) AND col3 < 716 OR (col1 > 280.13) AND (col4 > 265.91) AND ((col0 >= 605) AND (col0 <= 98))) OR col0 < 94 ) AS tab4_587
----
16 values hashing to a3591a75e5ca9ee50be120fdf2351ae9

query I rowsort label-6200-3
SELECT * FROM view_3_tab4_587
----
16 values hashing to a3591a75e5ca9ee50be120fdf2351ae9

query I rowsort label-6200-3
SELECT pk FROM tab4 WHERE (col4 <= 383.7 AND col0 < 347 AND col1 > 373.8 OR (col3 < 50) AND ((col1 = 849.25 AND col4 < 580.20)) AND (col1 = 455.91) AND col3 < 716 OR (col1 > 280.13) AND (col4 > 265.91) AND ((col0 >= 605) AND (col0 <= 98))) OR col0 < 94
----
16 values hashing to a3591a75e5ca9ee50be120fdf2351ae9

statement ok
DROP VIEW view_1_tab4_587

statement ok
DROP VIEW view_2_tab4_587

statement ok
DROP VIEW view_3_tab4_587

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_588') DROP VIEW view_1_tab0_588

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_588

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_588') DROP VIEW view_2_tab0_588

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_588

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_588') DROP VIEW view_3_tab0_588

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_588

statement ok
CREATE VIEW view_1_tab0_588 AS SELECT pk, col0 FROM tab0 WHERE col3 IN (820,152,714,95,34,628)

statement ok
CREATE VIEW view_2_tab0_588 AS SELECT pk, col0 FROM tab0 WHERE NOT (col3 IN (820,152,714,95,34,628))

statement ok
CREATE VIEW view_3_tab0_588 AS SELECT pk FROM view_1_tab0_588

query II rowsort label-6300-1
SELECT pk, col0 FROM tab0 WHERE col3 IN (820,152,714,95,34,628)
----

query II rowsort label-6300-2
SELECT pk, col0 FROM tab0 WHERE NOT (col3 IN (820,152,714,95,34,628))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-6300-1
SELECT pk, col0 FROM view_1_tab0_588
----

query II rowsort label-6300-2
SELECT pk, col0 FROM view_2_tab0_588
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 IN (820,152,714,95,34,628) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col3 IN (820,152,714,95,34,628))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_588 UNION ALL SELECT pk, col0 FROM view_2_tab0_588
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 IN (820,152,714,95,34,628) UNION SELECT pk, col0 FROM tab0 WHERE NOT (col3 IN (820,152,714,95,34,628))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_588 UNION SELECT pk, col0 FROM view_2_tab0_588
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-6300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col3 IN (820,152,714,95,34,628) ) AS tab0_588
----

query I rowsort label-6300-3
SELECT * FROM view_3_tab0_588
----

query I rowsort label-6300-3
SELECT pk FROM tab0 WHERE col3 IN (820,152,714,95,34,628)
----

statement ok
DROP VIEW view_1_tab0_588

statement ok
DROP VIEW view_2_tab0_588

statement ok
DROP VIEW view_3_tab0_588

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_588') DROP VIEW view_1_tab1_588

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_588

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_588') DROP VIEW view_2_tab1_588

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_588

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_588') DROP VIEW view_3_tab1_588

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_588

statement ok
CREATE VIEW view_1_tab1_588 AS SELECT pk, col0 FROM tab1 WHERE col3 IN (820,152,714,95,34,628)

statement ok
CREATE VIEW view_2_tab1_588 AS SELECT pk, col0 FROM tab1 WHERE NOT (col3 IN (820,152,714,95,34,628))

statement ok
CREATE VIEW view_3_tab1_588 AS SELECT pk FROM view_1_tab1_588

query II rowsort label-6300-1
SELECT pk, col0 FROM tab1 WHERE col3 IN (820,152,714,95,34,628)
----

query II rowsort label-6300-2
SELECT pk, col0 FROM tab1 WHERE NOT (col3 IN (820,152,714,95,34,628))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-6300-1
SELECT pk, col0 FROM view_1_tab1_588
----

query II rowsort label-6300-2
SELECT pk, col0 FROM view_2_tab1_588
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 IN (820,152,714,95,34,628) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col3 IN (820,152,714,95,34,628))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_588 UNION ALL SELECT pk, col0 FROM view_2_tab1_588
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 IN (820,152,714,95,34,628) UNION SELECT pk, col0 FROM tab1 WHERE NOT (col3 IN (820,152,714,95,34,628))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_588 UNION SELECT pk, col0 FROM view_2_tab1_588
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-6300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col3 IN (820,152,714,95,34,628) ) AS tab1_588
----

query I rowsort label-6300-3
SELECT * FROM view_3_tab1_588
----

query I rowsort label-6300-3
SELECT pk FROM tab1 WHERE col3 IN (820,152,714,95,34,628)
----

statement ok
DROP VIEW view_1_tab1_588

statement ok
DROP VIEW view_2_tab1_588

statement ok
DROP VIEW view_3_tab1_588

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_588') DROP VIEW view_1_tab2_588

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_588

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_588') DROP VIEW view_2_tab2_588

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_588

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_588') DROP VIEW view_3_tab2_588

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_588

statement ok
CREATE VIEW view_1_tab2_588 AS SELECT pk, col0 FROM tab2 WHERE col3 IN (820,152,714,95,34,628)

statement ok
CREATE VIEW view_2_tab2_588 AS SELECT pk, col0 FROM tab2 WHERE NOT (col3 IN (820,152,714,95,34,628))

statement ok
CREATE VIEW view_3_tab2_588 AS SELECT pk FROM view_1_tab2_588

query II rowsort label-6300-1
SELECT pk, col0 FROM tab2 WHERE col3 IN (820,152,714,95,34,628)
----

query II rowsort label-6300-2
SELECT pk, col0 FROM tab2 WHERE NOT (col3 IN (820,152,714,95,34,628))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-6300-1
SELECT pk, col0 FROM view_1_tab2_588
----

query II rowsort label-6300-2
SELECT pk, col0 FROM view_2_tab2_588
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 IN (820,152,714,95,34,628) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col3 IN (820,152,714,95,34,628))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_588 UNION ALL SELECT pk, col0 FROM view_2_tab2_588
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 IN (820,152,714,95,34,628) UNION SELECT pk, col0 FROM tab2 WHERE NOT (col3 IN (820,152,714,95,34,628))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_588 UNION SELECT pk, col0 FROM view_2_tab2_588
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-6300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col3 IN (820,152,714,95,34,628) ) AS tab2_588
----

query I rowsort label-6300-3
SELECT * FROM view_3_tab2_588
----

query I rowsort label-6300-3
SELECT pk FROM tab2 WHERE col3 IN (820,152,714,95,34,628)
----

statement ok
DROP VIEW view_1_tab2_588

statement ok
DROP VIEW view_2_tab2_588

statement ok
DROP VIEW view_3_tab2_588

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_588') DROP VIEW view_1_tab3_588

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_588

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_588') DROP VIEW view_2_tab3_588

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_588

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_588') DROP VIEW view_3_tab3_588

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_588

statement ok
CREATE VIEW view_1_tab3_588 AS SELECT pk, col0 FROM tab3 WHERE col3 IN (820,152,714,95,34,628)

statement ok
CREATE VIEW view_2_tab3_588 AS SELECT pk, col0 FROM tab3 WHERE NOT (col3 IN (820,152,714,95,34,628))

statement ok
CREATE VIEW view_3_tab3_588 AS SELECT pk FROM view_1_tab3_588

query II rowsort label-6300-1
SELECT pk, col0 FROM tab3 WHERE col3 IN (820,152,714,95,34,628)
----

query II rowsort label-6300-2
SELECT pk, col0 FROM tab3 WHERE NOT (col3 IN (820,152,714,95,34,628))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-6300-1
SELECT pk, col0 FROM view_1_tab3_588
----

query II rowsort label-6300-2
SELECT pk, col0 FROM view_2_tab3_588
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 IN (820,152,714,95,34,628) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col3 IN (820,152,714,95,34,628))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_588 UNION ALL SELECT pk, col0 FROM view_2_tab3_588
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 IN (820,152,714,95,34,628) UNION SELECT pk, col0 FROM tab3 WHERE NOT (col3 IN (820,152,714,95,34,628))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_588 UNION SELECT pk, col0 FROM view_2_tab3_588
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-6300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col3 IN (820,152,714,95,34,628) ) AS tab3_588
----

query I rowsort label-6300-3
SELECT * FROM view_3_tab3_588
----

query I rowsort label-6300-3
SELECT pk FROM tab3 WHERE col3 IN (820,152,714,95,34,628)
----

statement ok
DROP VIEW view_1_tab3_588

statement ok
DROP VIEW view_2_tab3_588

statement ok
DROP VIEW view_3_tab3_588

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_588') DROP VIEW view_1_tab4_588

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_588

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_588') DROP VIEW view_2_tab4_588

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_588

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_588') DROP VIEW view_3_tab4_588

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_588

statement ok
CREATE VIEW view_1_tab4_588 AS SELECT pk, col0 FROM tab4 WHERE col3 IN (820,152,714,95,34,628)

statement ok
CREATE VIEW view_2_tab4_588 AS SELECT pk, col0 FROM tab4 WHERE NOT (col3 IN (820,152,714,95,34,628))

statement ok
CREATE VIEW view_3_tab4_588 AS SELECT pk FROM view_1_tab4_588

query II rowsort label-6300-1
SELECT pk, col0 FROM tab4 WHERE col3 IN (820,152,714,95,34,628)
----

query II rowsort label-6300-2
SELECT pk, col0 FROM tab4 WHERE NOT (col3 IN (820,152,714,95,34,628))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-6300-1
SELECT pk, col0 FROM view_1_tab4_588
----

query II rowsort label-6300-2
SELECT pk, col0 FROM view_2_tab4_588
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 IN (820,152,714,95,34,628) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col3 IN (820,152,714,95,34,628))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_588 UNION ALL SELECT pk, col0 FROM view_2_tab4_588
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 IN (820,152,714,95,34,628) UNION SELECT pk, col0 FROM tab4 WHERE NOT (col3 IN (820,152,714,95,34,628))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_588 UNION SELECT pk, col0 FROM view_2_tab4_588
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-6300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col3 IN (820,152,714,95,34,628) ) AS tab4_588
----

query I rowsort label-6300-3
SELECT * FROM view_3_tab4_588
----

query I rowsort label-6300-3
SELECT pk FROM tab4 WHERE col3 IN (820,152,714,95,34,628)
----

statement ok
DROP VIEW view_1_tab4_588

statement ok
DROP VIEW view_2_tab4_588

statement ok
DROP VIEW view_3_tab4_588

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_589') DROP VIEW view_1_tab0_589

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_589

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_589') DROP VIEW view_2_tab0_589

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_589

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_589') DROP VIEW view_3_tab0_589

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_589

statement ok
CREATE VIEW view_1_tab0_589 AS SELECT pk, col0 FROM tab0 WHERE col3 >= 311 AND col0 >= 2 AND col3 IS NULL AND col3 < 632 AND (col3 > 974)

statement ok
CREATE VIEW view_2_tab0_589 AS SELECT pk, col0 FROM tab0 WHERE NOT (col3 >= 311 AND col0 >= 2 AND col3 IS NULL AND col3 < 632 AND (col3 > 974))

statement ok
CREATE VIEW view_3_tab0_589 AS SELECT pk FROM view_1_tab0_589

query II rowsort label-6400-1
SELECT pk, col0 FROM tab0 WHERE col3 >= 311 AND col0 >= 2 AND col3 IS NULL AND col3 < 632 AND (col3 > 974)
----

query II rowsort label-6400-2
SELECT pk, col0 FROM tab0 WHERE NOT (col3 >= 311 AND col0 >= 2 AND col3 IS NULL AND col3 < 632 AND (col3 > 974))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-6400-1
SELECT pk, col0 FROM view_1_tab0_589
----

query II rowsort label-6400-2
SELECT pk, col0 FROM view_2_tab0_589
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 >= 311 AND col0 >= 2 AND col3 IS NULL AND col3 < 632 AND (col3 > 974) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col3 >= 311 AND col0 >= 2 AND col3 IS NULL AND col3 < 632 AND (col3 > 974))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_589 UNION ALL SELECT pk, col0 FROM view_2_tab0_589
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 >= 311 AND col0 >= 2 AND col3 IS NULL AND col3 < 632 AND (col3 > 974) UNION SELECT pk, col0 FROM tab0 WHERE NOT (col3 >= 311 AND col0 >= 2 AND col3 IS NULL AND col3 < 632 AND (col3 > 974))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_589 UNION SELECT pk, col0 FROM view_2_tab0_589
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-6400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col3 >= 311 AND col0 >= 2 AND col3 IS NULL AND col3 < 632 AND (col3 > 974) ) AS tab0_589
----

query I rowsort label-6400-3
SELECT * FROM view_3_tab0_589
----

query I rowsort label-6400-3
SELECT pk FROM tab0 WHERE col3 >= 311 AND col0 >= 2 AND col3 IS NULL AND col3 < 632 AND (col3 > 974)
----

statement ok
DROP VIEW view_1_tab0_589

statement ok
DROP VIEW view_2_tab0_589

statement ok
DROP VIEW view_3_tab0_589

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_589') DROP VIEW view_1_tab1_589

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_589

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_589') DROP VIEW view_2_tab1_589

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_589

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_589') DROP VIEW view_3_tab1_589

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_589

statement ok
CREATE VIEW view_1_tab1_589 AS SELECT pk, col0 FROM tab1 WHERE col3 >= 311 AND col0 >= 2 AND col3 IS NULL AND col3 < 632 AND (col3 > 974)

statement ok
CREATE VIEW view_2_tab1_589 AS SELECT pk, col0 FROM tab1 WHERE NOT (col3 >= 311 AND col0 >= 2 AND col3 IS NULL AND col3 < 632 AND (col3 > 974))

statement ok
CREATE VIEW view_3_tab1_589 AS SELECT pk FROM view_1_tab1_589

query II rowsort label-6400-1
SELECT pk, col0 FROM tab1 WHERE col3 >= 311 AND col0 >= 2 AND col3 IS NULL AND col3 < 632 AND (col3 > 974)
----

query II rowsort label-6400-2
SELECT pk, col0 FROM tab1 WHERE NOT (col3 >= 311 AND col0 >= 2 AND col3 IS NULL AND col3 < 632 AND (col3 > 974))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-6400-1
SELECT pk, col0 FROM view_1_tab1_589
----

query II rowsort label-6400-2
SELECT pk, col0 FROM view_2_tab1_589
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 >= 311 AND col0 >= 2 AND col3 IS NULL AND col3 < 632 AND (col3 > 974) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col3 >= 311 AND col0 >= 2 AND col3 IS NULL AND col3 < 632 AND (col3 > 974))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_589 UNION ALL SELECT pk, col0 FROM view_2_tab1_589
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 >= 311 AND col0 >= 2 AND col3 IS NULL AND col3 < 632 AND (col3 > 974) UNION SELECT pk, col0 FROM tab1 WHERE NOT (col3 >= 311 AND col0 >= 2 AND col3 IS NULL AND col3 < 632 AND (col3 > 974))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_589 UNION SELECT pk, col0 FROM view_2_tab1_589
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-6400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col3 >= 311 AND col0 >= 2 AND col3 IS NULL AND col3 < 632 AND (col3 > 974) ) AS tab1_589
----

query I rowsort label-6400-3
SELECT * FROM view_3_tab1_589
----

query I rowsort label-6400-3
SELECT pk FROM tab1 WHERE col3 >= 311 AND col0 >= 2 AND col3 IS NULL AND col3 < 632 AND (col3 > 974)
----

statement ok
DROP VIEW view_1_tab1_589

statement ok
DROP VIEW view_2_tab1_589

statement ok
DROP VIEW view_3_tab1_589

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_589') DROP VIEW view_1_tab2_589

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_589

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_589') DROP VIEW view_2_tab2_589

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_589

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_589') DROP VIEW view_3_tab2_589

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_589

statement ok
CREATE VIEW view_1_tab2_589 AS SELECT pk, col0 FROM tab2 WHERE col3 >= 311 AND col0 >= 2 AND col3 IS NULL AND col3 < 632 AND (col3 > 974)

statement ok
CREATE VIEW view_2_tab2_589 AS SELECT pk, col0 FROM tab2 WHERE NOT (col3 >= 311 AND col0 >= 2 AND col3 IS NULL AND col3 < 632 AND (col3 > 974))

statement ok
CREATE VIEW view_3_tab2_589 AS SELECT pk FROM view_1_tab2_589

query II rowsort label-6400-1
SELECT pk, col0 FROM tab2 WHERE col3 >= 311 AND col0 >= 2 AND col3 IS NULL AND col3 < 632 AND (col3 > 974)
----

query II rowsort label-6400-2
SELECT pk, col0 FROM tab2 WHERE NOT (col3 >= 311 AND col0 >= 2 AND col3 IS NULL AND col3 < 632 AND (col3 > 974))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-6400-1
SELECT pk, col0 FROM view_1_tab2_589
----

query II rowsort label-6400-2
SELECT pk, col0 FROM view_2_tab2_589
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 >= 311 AND col0 >= 2 AND col3 IS NULL AND col3 < 632 AND (col3 > 974) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col3 >= 311 AND col0 >= 2 AND col3 IS NULL AND col3 < 632 AND (col3 > 974))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_589 UNION ALL SELECT pk, col0 FROM view_2_tab2_589
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 >= 311 AND col0 >= 2 AND col3 IS NULL AND col3 < 632 AND (col3 > 974) UNION SELECT pk, col0 FROM tab2 WHERE NOT (col3 >= 311 AND col0 >= 2 AND col3 IS NULL AND col3 < 632 AND (col3 > 974))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_589 UNION SELECT pk, col0 FROM view_2_tab2_589
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-6400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col3 >= 311 AND col0 >= 2 AND col3 IS NULL AND col3 < 632 AND (col3 > 974) ) AS tab2_589
----

query I rowsort label-6400-3
SELECT * FROM view_3_tab2_589
----

query I rowsort label-6400-3
SELECT pk FROM tab2 WHERE col3 >= 311 AND col0 >= 2 AND col3 IS NULL AND col3 < 632 AND (col3 > 974)
----

statement ok
DROP VIEW view_1_tab2_589

statement ok
DROP VIEW view_2_tab2_589

statement ok
DROP VIEW view_3_tab2_589

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_589') DROP VIEW view_1_tab3_589

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_589

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_589') DROP VIEW view_2_tab3_589

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_589

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_589') DROP VIEW view_3_tab3_589

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_589

statement ok
CREATE VIEW view_1_tab3_589 AS SELECT pk, col0 FROM tab3 WHERE col3 >= 311 AND col0 >= 2 AND col3 IS NULL AND col3 < 632 AND (col3 > 974)

statement ok
CREATE VIEW view_2_tab3_589 AS SELECT pk, col0 FROM tab3 WHERE NOT (col3 >= 311 AND col0 >= 2 AND col3 IS NULL AND col3 < 632 AND (col3 > 974))

statement ok
CREATE VIEW view_3_tab3_589 AS SELECT pk FROM view_1_tab3_589

query II rowsort label-6400-1
SELECT pk, col0 FROM tab3 WHERE col3 >= 311 AND col0 >= 2 AND col3 IS NULL AND col3 < 632 AND (col3 > 974)
----

query II rowsort label-6400-2
SELECT pk, col0 FROM tab3 WHERE NOT (col3 >= 311 AND col0 >= 2 AND col3 IS NULL AND col3 < 632 AND (col3 > 974))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-6400-1
SELECT pk, col0 FROM view_1_tab3_589
----

query II rowsort label-6400-2
SELECT pk, col0 FROM view_2_tab3_589
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 >= 311 AND col0 >= 2 AND col3 IS NULL AND col3 < 632 AND (col3 > 974) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col3 >= 311 AND col0 >= 2 AND col3 IS NULL AND col3 < 632 AND (col3 > 974))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_589 UNION ALL SELECT pk, col0 FROM view_2_tab3_589
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 >= 311 AND col0 >= 2 AND col3 IS NULL AND col3 < 632 AND (col3 > 974) UNION SELECT pk, col0 FROM tab3 WHERE NOT (col3 >= 311 AND col0 >= 2 AND col3 IS NULL AND col3 < 632 AND (col3 > 974))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_589 UNION SELECT pk, col0 FROM view_2_tab3_589
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-6400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col3 >= 311 AND col0 >= 2 AND col3 IS NULL AND col3 < 632 AND (col3 > 974) ) AS tab3_589
----

query I rowsort label-6400-3
SELECT * FROM view_3_tab3_589
----

query I rowsort label-6400-3
SELECT pk FROM tab3 WHERE col3 >= 311 AND col0 >= 2 AND col3 IS NULL AND col3 < 632 AND (col3 > 974)
----

statement ok
DROP VIEW view_1_tab3_589

statement ok
DROP VIEW view_2_tab3_589

statement ok
DROP VIEW view_3_tab3_589

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_589') DROP VIEW view_1_tab4_589

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_589

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_589') DROP VIEW view_2_tab4_589

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_589

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_589') DROP VIEW view_3_tab4_589

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_589

statement ok
CREATE VIEW view_1_tab4_589 AS SELECT pk, col0 FROM tab4 WHERE col3 >= 311 AND col0 >= 2 AND col3 IS NULL AND col3 < 632 AND (col3 > 974)

statement ok
CREATE VIEW view_2_tab4_589 AS SELECT pk, col0 FROM tab4 WHERE NOT (col3 >= 311 AND col0 >= 2 AND col3 IS NULL AND col3 < 632 AND (col3 > 974))

statement ok
CREATE VIEW view_3_tab4_589 AS SELECT pk FROM view_1_tab4_589

query II rowsort label-6400-1
SELECT pk, col0 FROM tab4 WHERE col3 >= 311 AND col0 >= 2 AND col3 IS NULL AND col3 < 632 AND (col3 > 974)
----

query II rowsort label-6400-2
SELECT pk, col0 FROM tab4 WHERE NOT (col3 >= 311 AND col0 >= 2 AND col3 IS NULL AND col3 < 632 AND (col3 > 974))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-6400-1
SELECT pk, col0 FROM view_1_tab4_589
----

query II rowsort label-6400-2
SELECT pk, col0 FROM view_2_tab4_589
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 >= 311 AND col0 >= 2 AND col3 IS NULL AND col3 < 632 AND (col3 > 974) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col3 >= 311 AND col0 >= 2 AND col3 IS NULL AND col3 < 632 AND (col3 > 974))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_589 UNION ALL SELECT pk, col0 FROM view_2_tab4_589
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 >= 311 AND col0 >= 2 AND col3 IS NULL AND col3 < 632 AND (col3 > 974) UNION SELECT pk, col0 FROM tab4 WHERE NOT (col3 >= 311 AND col0 >= 2 AND col3 IS NULL AND col3 < 632 AND (col3 > 974))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_589 UNION SELECT pk, col0 FROM view_2_tab4_589
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-6400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col3 >= 311 AND col0 >= 2 AND col3 IS NULL AND col3 < 632 AND (col3 > 974) ) AS tab4_589
----

query I rowsort label-6400-3
SELECT * FROM view_3_tab4_589
----

query I rowsort label-6400-3
SELECT pk FROM tab4 WHERE col3 >= 311 AND col0 >= 2 AND col3 IS NULL AND col3 < 632 AND (col3 > 974)
----

statement ok
DROP VIEW view_1_tab4_589

statement ok
DROP VIEW view_2_tab4_589

statement ok
DROP VIEW view_3_tab4_589

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_590') DROP VIEW view_1_tab0_590

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_590

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_590') DROP VIEW view_2_tab0_590

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_590

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_590') DROP VIEW view_3_tab0_590

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_590

statement ok
CREATE VIEW view_1_tab0_590 AS SELECT pk, col0 FROM tab0 WHERE col4 BETWEEN 76.99 AND 316.5 AND col3 > 298

statement ok
CREATE VIEW view_2_tab0_590 AS SELECT pk, col0 FROM tab0 WHERE NOT (col4 BETWEEN 76.99 AND 316.5 AND col3 > 298)

statement ok
CREATE VIEW view_3_tab0_590 AS SELECT pk FROM view_1_tab0_590

query II rowsort label-6500-1
SELECT pk, col0 FROM tab0 WHERE col4 BETWEEN 76.99 AND 316.5 AND col3 > 298
----
30 values hashing to a4cf4e63849ce95c1bc2a6dbb242d8e8

query II rowsort label-6500-2
SELECT pk, col0 FROM tab0 WHERE NOT (col4 BETWEEN 76.99 AND 316.5 AND col3 > 298)
----
170 values hashing to bb0f5e8eab941518119a1b768bd8314d

query II rowsort label-6500-1
SELECT pk, col0 FROM view_1_tab0_590
----
30 values hashing to a4cf4e63849ce95c1bc2a6dbb242d8e8

query II rowsort label-6500-2
SELECT pk, col0 FROM view_2_tab0_590
----
170 values hashing to bb0f5e8eab941518119a1b768bd8314d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col4 BETWEEN 76.99 AND 316.5 AND col3 > 298 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col4 BETWEEN 76.99 AND 316.5 AND col3 > 298)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_590 UNION ALL SELECT pk, col0 FROM view_2_tab0_590
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col4 BETWEEN 76.99 AND 316.5 AND col3 > 298 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col4 BETWEEN 76.99 AND 316.5 AND col3 > 298)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_590 UNION SELECT pk, col0 FROM view_2_tab0_590
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-6500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col4 BETWEEN 76.99 AND 316.5 AND col3 > 298 ) AS tab0_590
----
15 values hashing to 50a1ab488b5e332040e5a36c29b6080d

query I rowsort label-6500-3
SELECT * FROM view_3_tab0_590
----
15 values hashing to 50a1ab488b5e332040e5a36c29b6080d

query I rowsort label-6500-3
SELECT pk FROM tab0 WHERE col4 BETWEEN 76.99 AND 316.5 AND col3 > 298
----
15 values hashing to 50a1ab488b5e332040e5a36c29b6080d

statement ok
DROP VIEW view_1_tab0_590

statement ok
DROP VIEW view_2_tab0_590

statement ok
DROP VIEW view_3_tab0_590

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_590') DROP VIEW view_1_tab1_590

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_590

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_590') DROP VIEW view_2_tab1_590

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_590

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_590') DROP VIEW view_3_tab1_590

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_590

statement ok
CREATE VIEW view_1_tab1_590 AS SELECT pk, col0 FROM tab1 WHERE col4 BETWEEN 76.99 AND 316.5 AND col3 > 298

statement ok
CREATE VIEW view_2_tab1_590 AS SELECT pk, col0 FROM tab1 WHERE NOT (col4 BETWEEN 76.99 AND 316.5 AND col3 > 298)

statement ok
CREATE VIEW view_3_tab1_590 AS SELECT pk FROM view_1_tab1_590

query II rowsort label-6500-1
SELECT pk, col0 FROM tab1 WHERE col4 BETWEEN 76.99 AND 316.5 AND col3 > 298
----
30 values hashing to a4cf4e63849ce95c1bc2a6dbb242d8e8

query II rowsort label-6500-2
SELECT pk, col0 FROM tab1 WHERE NOT (col4 BETWEEN 76.99 AND 316.5 AND col3 > 298)
----
170 values hashing to bb0f5e8eab941518119a1b768bd8314d

query II rowsort label-6500-1
SELECT pk, col0 FROM view_1_tab1_590
----
30 values hashing to a4cf4e63849ce95c1bc2a6dbb242d8e8

query II rowsort label-6500-2
SELECT pk, col0 FROM view_2_tab1_590
----
170 values hashing to bb0f5e8eab941518119a1b768bd8314d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col4 BETWEEN 76.99 AND 316.5 AND col3 > 298 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col4 BETWEEN 76.99 AND 316.5 AND col3 > 298)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_590 UNION ALL SELECT pk, col0 FROM view_2_tab1_590
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col4 BETWEEN 76.99 AND 316.5 AND col3 > 298 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col4 BETWEEN 76.99 AND 316.5 AND col3 > 298)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_590 UNION SELECT pk, col0 FROM view_2_tab1_590
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-6500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col4 BETWEEN 76.99 AND 316.5 AND col3 > 298 ) AS tab1_590
----
15 values hashing to 50a1ab488b5e332040e5a36c29b6080d

query I rowsort label-6500-3
SELECT * FROM view_3_tab1_590
----
15 values hashing to 50a1ab488b5e332040e5a36c29b6080d

query I rowsort label-6500-3
SELECT pk FROM tab1 WHERE col4 BETWEEN 76.99 AND 316.5 AND col3 > 298
----
15 values hashing to 50a1ab488b5e332040e5a36c29b6080d

statement ok
DROP VIEW view_1_tab1_590

statement ok
DROP VIEW view_2_tab1_590

statement ok
DROP VIEW view_3_tab1_590

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_590') DROP VIEW view_1_tab2_590

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_590

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_590') DROP VIEW view_2_tab2_590

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_590

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_590') DROP VIEW view_3_tab2_590

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_590

statement ok
CREATE VIEW view_1_tab2_590 AS SELECT pk, col0 FROM tab2 WHERE col4 BETWEEN 76.99 AND 316.5 AND col3 > 298

statement ok
CREATE VIEW view_2_tab2_590 AS SELECT pk, col0 FROM tab2 WHERE NOT (col4 BETWEEN 76.99 AND 316.5 AND col3 > 298)

statement ok
CREATE VIEW view_3_tab2_590 AS SELECT pk FROM view_1_tab2_590

query II rowsort label-6500-1
SELECT pk, col0 FROM tab2 WHERE col4 BETWEEN 76.99 AND 316.5 AND col3 > 298
----
30 values hashing to a4cf4e63849ce95c1bc2a6dbb242d8e8

query II rowsort label-6500-2
SELECT pk, col0 FROM tab2 WHERE NOT (col4 BETWEEN 76.99 AND 316.5 AND col3 > 298)
----
170 values hashing to bb0f5e8eab941518119a1b768bd8314d

query II rowsort label-6500-1
SELECT pk, col0 FROM view_1_tab2_590
----
30 values hashing to a4cf4e63849ce95c1bc2a6dbb242d8e8

query II rowsort label-6500-2
SELECT pk, col0 FROM view_2_tab2_590
----
170 values hashing to bb0f5e8eab941518119a1b768bd8314d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col4 BETWEEN 76.99 AND 316.5 AND col3 > 298 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col4 BETWEEN 76.99 AND 316.5 AND col3 > 298)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_590 UNION ALL SELECT pk, col0 FROM view_2_tab2_590
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col4 BETWEEN 76.99 AND 316.5 AND col3 > 298 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col4 BETWEEN 76.99 AND 316.5 AND col3 > 298)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_590 UNION SELECT pk, col0 FROM view_2_tab2_590
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-6500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col4 BETWEEN 76.99 AND 316.5 AND col3 > 298 ) AS tab2_590
----
15 values hashing to 50a1ab488b5e332040e5a36c29b6080d

query I rowsort label-6500-3
SELECT * FROM view_3_tab2_590
----
15 values hashing to 50a1ab488b5e332040e5a36c29b6080d

query I rowsort label-6500-3
SELECT pk FROM tab2 WHERE col4 BETWEEN 76.99 AND 316.5 AND col3 > 298
----
15 values hashing to 50a1ab488b5e332040e5a36c29b6080d

statement ok
DROP VIEW view_1_tab2_590

statement ok
DROP VIEW view_2_tab2_590

statement ok
DROP VIEW view_3_tab2_590

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_590') DROP VIEW view_1_tab3_590

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_590

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_590') DROP VIEW view_2_tab3_590

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_590

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_590') DROP VIEW view_3_tab3_590

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_590

statement ok
CREATE VIEW view_1_tab3_590 AS SELECT pk, col0 FROM tab3 WHERE col4 BETWEEN 76.99 AND 316.5 AND col3 > 298

statement ok
CREATE VIEW view_2_tab3_590 AS SELECT pk, col0 FROM tab3 WHERE NOT (col4 BETWEEN 76.99 AND 316.5 AND col3 > 298)

statement ok
CREATE VIEW view_3_tab3_590 AS SELECT pk FROM view_1_tab3_590

query II rowsort label-6500-1
SELECT pk, col0 FROM tab3 WHERE col4 BETWEEN 76.99 AND 316.5 AND col3 > 298
----
30 values hashing to a4cf4e63849ce95c1bc2a6dbb242d8e8

query II rowsort label-6500-2
SELECT pk, col0 FROM tab3 WHERE NOT (col4 BETWEEN 76.99 AND 316.5 AND col3 > 298)
----
170 values hashing to bb0f5e8eab941518119a1b768bd8314d

query II rowsort label-6500-1
SELECT pk, col0 FROM view_1_tab3_590
----
30 values hashing to a4cf4e63849ce95c1bc2a6dbb242d8e8

query II rowsort label-6500-2
SELECT pk, col0 FROM view_2_tab3_590
----
170 values hashing to bb0f5e8eab941518119a1b768bd8314d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col4 BETWEEN 76.99 AND 316.5 AND col3 > 298 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col4 BETWEEN 76.99 AND 316.5 AND col3 > 298)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_590 UNION ALL SELECT pk, col0 FROM view_2_tab3_590
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col4 BETWEEN 76.99 AND 316.5 AND col3 > 298 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col4 BETWEEN 76.99 AND 316.5 AND col3 > 298)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_590 UNION SELECT pk, col0 FROM view_2_tab3_590
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-6500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col4 BETWEEN 76.99 AND 316.5 AND col3 > 298 ) AS tab3_590
----
15 values hashing to 50a1ab488b5e332040e5a36c29b6080d

query I rowsort label-6500-3
SELECT * FROM view_3_tab3_590
----
15 values hashing to 50a1ab488b5e332040e5a36c29b6080d

query I rowsort label-6500-3
SELECT pk FROM tab3 WHERE col4 BETWEEN 76.99 AND 316.5 AND col3 > 298
----
15 values hashing to 50a1ab488b5e332040e5a36c29b6080d

statement ok
DROP VIEW view_1_tab3_590

statement ok
DROP VIEW view_2_tab3_590

statement ok
DROP VIEW view_3_tab3_590

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_590') DROP VIEW view_1_tab4_590

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_590

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_590') DROP VIEW view_2_tab4_590

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_590

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_590') DROP VIEW view_3_tab4_590

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_590

statement ok
CREATE VIEW view_1_tab4_590 AS SELECT pk, col0 FROM tab4 WHERE col4 BETWEEN 76.99 AND 316.5 AND col3 > 298

statement ok
CREATE VIEW view_2_tab4_590 AS SELECT pk, col0 FROM tab4 WHERE NOT (col4 BETWEEN 76.99 AND 316.5 AND col3 > 298)

statement ok
CREATE VIEW view_3_tab4_590 AS SELECT pk FROM view_1_tab4_590

query II rowsort label-6500-1
SELECT pk, col0 FROM tab4 WHERE col4 BETWEEN 76.99 AND 316.5 AND col3 > 298
----
30 values hashing to a4cf4e63849ce95c1bc2a6dbb242d8e8

query II rowsort label-6500-2
SELECT pk, col0 FROM tab4 WHERE NOT (col4 BETWEEN 76.99 AND 316.5 AND col3 > 298)
----
170 values hashing to bb0f5e8eab941518119a1b768bd8314d

query II rowsort label-6500-1
SELECT pk, col0 FROM view_1_tab4_590
----
30 values hashing to a4cf4e63849ce95c1bc2a6dbb242d8e8

query II rowsort label-6500-2
SELECT pk, col0 FROM view_2_tab4_590
----
170 values hashing to bb0f5e8eab941518119a1b768bd8314d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col4 BETWEEN 76.99 AND 316.5 AND col3 > 298 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col4 BETWEEN 76.99 AND 316.5 AND col3 > 298)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_590 UNION ALL SELECT pk, col0 FROM view_2_tab4_590
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col4 BETWEEN 76.99 AND 316.5 AND col3 > 298 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col4 BETWEEN 76.99 AND 316.5 AND col3 > 298)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_590 UNION SELECT pk, col0 FROM view_2_tab4_590
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-6500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col4 BETWEEN 76.99 AND 316.5 AND col3 > 298 ) AS tab4_590
----
15 values hashing to 50a1ab488b5e332040e5a36c29b6080d

query I rowsort label-6500-3
SELECT * FROM view_3_tab4_590
----
15 values hashing to 50a1ab488b5e332040e5a36c29b6080d

query I rowsort label-6500-3
SELECT pk FROM tab4 WHERE col4 BETWEEN 76.99 AND 316.5 AND col3 > 298
----
15 values hashing to 50a1ab488b5e332040e5a36c29b6080d

statement ok
DROP VIEW view_1_tab4_590

statement ok
DROP VIEW view_2_tab4_590

statement ok
DROP VIEW view_3_tab4_590

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_591') DROP VIEW view_1_tab0_591

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_591

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_591') DROP VIEW view_2_tab0_591

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_591

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_591') DROP VIEW view_3_tab0_591

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_591

statement ok
CREATE VIEW view_1_tab0_591 AS SELECT pk, col0 FROM tab0 WHERE col0 > 61

statement ok
CREATE VIEW view_2_tab0_591 AS SELECT pk, col0 FROM tab0 WHERE NOT (col0 > 61)

statement ok
CREATE VIEW view_3_tab0_591 AS SELECT pk FROM view_1_tab0_591

query II rowsort label-6600-1
SELECT pk, col0 FROM tab0 WHERE col0 > 61
----
184 values hashing to d89f55e635c5ab2f05f7ce97da3175df

query II rowsort label-6600-2
SELECT pk, col0 FROM tab0 WHERE NOT (col0 > 61)
----
16 values hashing to 320dabfc777c2ab94ad83d62f0ad51a6

query II rowsort label-6600-1
SELECT pk, col0 FROM view_1_tab0_591
----
184 values hashing to d89f55e635c5ab2f05f7ce97da3175df

query II rowsort label-6600-2
SELECT pk, col0 FROM view_2_tab0_591
----
16 values hashing to 320dabfc777c2ab94ad83d62f0ad51a6

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col0 > 61 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col0 > 61)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_591 UNION ALL SELECT pk, col0 FROM view_2_tab0_591
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col0 > 61 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col0 > 61)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_591 UNION SELECT pk, col0 FROM view_2_tab0_591
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-6600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col0 > 61 ) AS tab0_591
----
92 values hashing to c8f167d0a1ece653a7a6e870d2b19ebd

query I rowsort label-6600-3
SELECT * FROM view_3_tab0_591
----
92 values hashing to c8f167d0a1ece653a7a6e870d2b19ebd

query I rowsort label-6600-3
SELECT pk FROM tab0 WHERE col0 > 61
----
92 values hashing to c8f167d0a1ece653a7a6e870d2b19ebd

statement ok
DROP VIEW view_1_tab0_591

statement ok
DROP VIEW view_2_tab0_591

statement ok
DROP VIEW view_3_tab0_591

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_591') DROP VIEW view_1_tab1_591

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_591

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_591') DROP VIEW view_2_tab1_591

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_591

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_591') DROP VIEW view_3_tab1_591

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_591

statement ok
CREATE VIEW view_1_tab1_591 AS SELECT pk, col0 FROM tab1 WHERE col0 > 61

statement ok
CREATE VIEW view_2_tab1_591 AS SELECT pk, col0 FROM tab1 WHERE NOT (col0 > 61)

statement ok
CREATE VIEW view_3_tab1_591 AS SELECT pk FROM view_1_tab1_591

query II rowsort label-6600-1
SELECT pk, col0 FROM tab1 WHERE col0 > 61
----
184 values hashing to d89f55e635c5ab2f05f7ce97da3175df

query II rowsort label-6600-2
SELECT pk, col0 FROM tab1 WHERE NOT (col0 > 61)
----
16 values hashing to 320dabfc777c2ab94ad83d62f0ad51a6

query II rowsort label-6600-1
SELECT pk, col0 FROM view_1_tab1_591
----
184 values hashing to d89f55e635c5ab2f05f7ce97da3175df

query II rowsort label-6600-2
SELECT pk, col0 FROM view_2_tab1_591
----
16 values hashing to 320dabfc777c2ab94ad83d62f0ad51a6

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col0 > 61 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col0 > 61)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_591 UNION ALL SELECT pk, col0 FROM view_2_tab1_591
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col0 > 61 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col0 > 61)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_591 UNION SELECT pk, col0 FROM view_2_tab1_591
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-6600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col0 > 61 ) AS tab1_591
----
92 values hashing to c8f167d0a1ece653a7a6e870d2b19ebd

query I rowsort label-6600-3
SELECT * FROM view_3_tab1_591
----
92 values hashing to c8f167d0a1ece653a7a6e870d2b19ebd

query I rowsort label-6600-3
SELECT pk FROM tab1 WHERE col0 > 61
----
92 values hashing to c8f167d0a1ece653a7a6e870d2b19ebd

statement ok
DROP VIEW view_1_tab1_591

statement ok
DROP VIEW view_2_tab1_591

statement ok
DROP VIEW view_3_tab1_591

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_591') DROP VIEW view_1_tab2_591

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_591

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_591') DROP VIEW view_2_tab2_591

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_591

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_591') DROP VIEW view_3_tab2_591

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_591

statement ok
CREATE VIEW view_1_tab2_591 AS SELECT pk, col0 FROM tab2 WHERE col0 > 61

statement ok
CREATE VIEW view_2_tab2_591 AS SELECT pk, col0 FROM tab2 WHERE NOT (col0 > 61)

statement ok
CREATE VIEW view_3_tab2_591 AS SELECT pk FROM view_1_tab2_591

query II rowsort label-6600-1
SELECT pk, col0 FROM tab2 WHERE col0 > 61
----
184 values hashing to d89f55e635c5ab2f05f7ce97da3175df

query II rowsort label-6600-2
SELECT pk, col0 FROM tab2 WHERE NOT (col0 > 61)
----
16 values hashing to 320dabfc777c2ab94ad83d62f0ad51a6

query II rowsort label-6600-1
SELECT pk, col0 FROM view_1_tab2_591
----
184 values hashing to d89f55e635c5ab2f05f7ce97da3175df

query II rowsort label-6600-2
SELECT pk, col0 FROM view_2_tab2_591
----
16 values hashing to 320dabfc777c2ab94ad83d62f0ad51a6

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col0 > 61 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col0 > 61)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_591 UNION ALL SELECT pk, col0 FROM view_2_tab2_591
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col0 > 61 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col0 > 61)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_591 UNION SELECT pk, col0 FROM view_2_tab2_591
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-6600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col0 > 61 ) AS tab2_591
----
92 values hashing to c8f167d0a1ece653a7a6e870d2b19ebd

query I rowsort label-6600-3
SELECT * FROM view_3_tab2_591
----
92 values hashing to c8f167d0a1ece653a7a6e870d2b19ebd

query I rowsort label-6600-3
SELECT pk FROM tab2 WHERE col0 > 61
----
92 values hashing to c8f167d0a1ece653a7a6e870d2b19ebd

statement ok
DROP VIEW view_1_tab2_591

statement ok
DROP VIEW view_2_tab2_591

statement ok
DROP VIEW view_3_tab2_591

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_591') DROP VIEW view_1_tab3_591

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_591

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_591') DROP VIEW view_2_tab3_591

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_591

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_591') DROP VIEW view_3_tab3_591

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_591

statement ok
CREATE VIEW view_1_tab3_591 AS SELECT pk, col0 FROM tab3 WHERE col0 > 61

statement ok
CREATE VIEW view_2_tab3_591 AS SELECT pk, col0 FROM tab3 WHERE NOT (col0 > 61)

statement ok
CREATE VIEW view_3_tab3_591 AS SELECT pk FROM view_1_tab3_591

query II rowsort label-6600-1
SELECT pk, col0 FROM tab3 WHERE col0 > 61
----
184 values hashing to d89f55e635c5ab2f05f7ce97da3175df

query II rowsort label-6600-2
SELECT pk, col0 FROM tab3 WHERE NOT (col0 > 61)
----
16 values hashing to 320dabfc777c2ab94ad83d62f0ad51a6

query II rowsort label-6600-1
SELECT pk, col0 FROM view_1_tab3_591
----
184 values hashing to d89f55e635c5ab2f05f7ce97da3175df

query II rowsort label-6600-2
SELECT pk, col0 FROM view_2_tab3_591
----
16 values hashing to 320dabfc777c2ab94ad83d62f0ad51a6

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col0 > 61 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col0 > 61)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_591 UNION ALL SELECT pk, col0 FROM view_2_tab3_591
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col0 > 61 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col0 > 61)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_591 UNION SELECT pk, col0 FROM view_2_tab3_591
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-6600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col0 > 61 ) AS tab3_591
----
92 values hashing to c8f167d0a1ece653a7a6e870d2b19ebd

query I rowsort label-6600-3
SELECT * FROM view_3_tab3_591
----
92 values hashing to c8f167d0a1ece653a7a6e870d2b19ebd

query I rowsort label-6600-3
SELECT pk FROM tab3 WHERE col0 > 61
----
92 values hashing to c8f167d0a1ece653a7a6e870d2b19ebd

statement ok
DROP VIEW view_1_tab3_591

statement ok
DROP VIEW view_2_tab3_591

statement ok
DROP VIEW view_3_tab3_591

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_591') DROP VIEW view_1_tab4_591

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_591

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_591') DROP VIEW view_2_tab4_591

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_591

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_591') DROP VIEW view_3_tab4_591

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_591

statement ok
CREATE VIEW view_1_tab4_591 AS SELECT pk, col0 FROM tab4 WHERE col0 > 61

statement ok
CREATE VIEW view_2_tab4_591 AS SELECT pk, col0 FROM tab4 WHERE NOT (col0 > 61)

statement ok
CREATE VIEW view_3_tab4_591 AS SELECT pk FROM view_1_tab4_591

query II rowsort label-6600-1
SELECT pk, col0 FROM tab4 WHERE col0 > 61
----
184 values hashing to d89f55e635c5ab2f05f7ce97da3175df

query II rowsort label-6600-2
SELECT pk, col0 FROM tab4 WHERE NOT (col0 > 61)
----
16 values hashing to 320dabfc777c2ab94ad83d62f0ad51a6

query II rowsort label-6600-1
SELECT pk, col0 FROM view_1_tab4_591
----
184 values hashing to d89f55e635c5ab2f05f7ce97da3175df

query II rowsort label-6600-2
SELECT pk, col0 FROM view_2_tab4_591
----
16 values hashing to 320dabfc777c2ab94ad83d62f0ad51a6

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col0 > 61 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col0 > 61)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_591 UNION ALL SELECT pk, col0 FROM view_2_tab4_591
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col0 > 61 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col0 > 61)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_591 UNION SELECT pk, col0 FROM view_2_tab4_591
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-6600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col0 > 61 ) AS tab4_591
----
92 values hashing to c8f167d0a1ece653a7a6e870d2b19ebd

query I rowsort label-6600-3
SELECT * FROM view_3_tab4_591
----
92 values hashing to c8f167d0a1ece653a7a6e870d2b19ebd

query I rowsort label-6600-3
SELECT pk FROM tab4 WHERE col0 > 61
----
92 values hashing to c8f167d0a1ece653a7a6e870d2b19ebd

statement ok
DROP VIEW view_1_tab4_591

statement ok
DROP VIEW view_2_tab4_591

statement ok
DROP VIEW view_3_tab4_591

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_592') DROP VIEW view_1_tab0_592

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_592

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_592') DROP VIEW view_2_tab0_592

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_592

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_592') DROP VIEW view_3_tab0_592

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_592

statement ok
CREATE VIEW view_1_tab0_592 AS SELECT pk, col0 FROM tab0 WHERE (col1 >= 234.10)

statement ok
CREATE VIEW view_2_tab0_592 AS SELECT pk, col0 FROM tab0 WHERE NOT ((col1 >= 234.10))

statement ok
CREATE VIEW view_3_tab0_592 AS SELECT pk FROM view_1_tab0_592

query II rowsort label-6700-1
SELECT pk, col0 FROM tab0 WHERE (col1 >= 234.10)
----
156 values hashing to dd9c55f81439c36cc08b7a0debe401e3

query II rowsort label-6700-2
SELECT pk, col0 FROM tab0 WHERE NOT ((col1 >= 234.10))
----
44 values hashing to 07069a47e8240c7dd5b1e8fa7ce0856f

query II rowsort label-6700-1
SELECT pk, col0 FROM view_1_tab0_592
----
156 values hashing to dd9c55f81439c36cc08b7a0debe401e3

query II rowsort label-6700-2
SELECT pk, col0 FROM view_2_tab0_592
----
44 values hashing to 07069a47e8240c7dd5b1e8fa7ce0856f

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col1 >= 234.10) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT ((col1 >= 234.10))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_592 UNION ALL SELECT pk, col0 FROM view_2_tab0_592
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col1 >= 234.10) UNION SELECT pk, col0 FROM tab0 WHERE NOT ((col1 >= 234.10))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_592 UNION SELECT pk, col0 FROM view_2_tab0_592
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-6700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE (col1 >= 234.10) ) AS tab0_592
----
78 values hashing to c55e87d11cdd7322667612c7a06bfaa4

query I rowsort label-6700-3
SELECT * FROM view_3_tab0_592
----
78 values hashing to c55e87d11cdd7322667612c7a06bfaa4

query I rowsort label-6700-3
SELECT pk FROM tab0 WHERE (col1 >= 234.10)
----
78 values hashing to c55e87d11cdd7322667612c7a06bfaa4

statement ok
DROP VIEW view_1_tab0_592

statement ok
DROP VIEW view_2_tab0_592

statement ok
DROP VIEW view_3_tab0_592

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_592') DROP VIEW view_1_tab1_592

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_592

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_592') DROP VIEW view_2_tab1_592

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_592

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_592') DROP VIEW view_3_tab1_592

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_592

statement ok
CREATE VIEW view_1_tab1_592 AS SELECT pk, col0 FROM tab1 WHERE (col1 >= 234.10)

statement ok
CREATE VIEW view_2_tab1_592 AS SELECT pk, col0 FROM tab1 WHERE NOT ((col1 >= 234.10))

statement ok
CREATE VIEW view_3_tab1_592 AS SELECT pk FROM view_1_tab1_592

query II rowsort label-6700-1
SELECT pk, col0 FROM tab1 WHERE (col1 >= 234.10)
----
156 values hashing to dd9c55f81439c36cc08b7a0debe401e3

query II rowsort label-6700-2
SELECT pk, col0 FROM tab1 WHERE NOT ((col1 >= 234.10))
----
44 values hashing to 07069a47e8240c7dd5b1e8fa7ce0856f

query II rowsort label-6700-1
SELECT pk, col0 FROM view_1_tab1_592
----
156 values hashing to dd9c55f81439c36cc08b7a0debe401e3

query II rowsort label-6700-2
SELECT pk, col0 FROM view_2_tab1_592
----
44 values hashing to 07069a47e8240c7dd5b1e8fa7ce0856f

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col1 >= 234.10) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT ((col1 >= 234.10))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_592 UNION ALL SELECT pk, col0 FROM view_2_tab1_592
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col1 >= 234.10) UNION SELECT pk, col0 FROM tab1 WHERE NOT ((col1 >= 234.10))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_592 UNION SELECT pk, col0 FROM view_2_tab1_592
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-6700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE (col1 >= 234.10) ) AS tab1_592
----
78 values hashing to c55e87d11cdd7322667612c7a06bfaa4

query I rowsort label-6700-3
SELECT * FROM view_3_tab1_592
----
78 values hashing to c55e87d11cdd7322667612c7a06bfaa4

query I rowsort label-6700-3
SELECT pk FROM tab1 WHERE (col1 >= 234.10)
----
78 values hashing to c55e87d11cdd7322667612c7a06bfaa4

statement ok
DROP VIEW view_1_tab1_592

statement ok
DROP VIEW view_2_tab1_592

statement ok
DROP VIEW view_3_tab1_592

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_592') DROP VIEW view_1_tab2_592

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_592

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_592') DROP VIEW view_2_tab2_592

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_592

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_592') DROP VIEW view_3_tab2_592

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_592

statement ok
CREATE VIEW view_1_tab2_592 AS SELECT pk, col0 FROM tab2 WHERE (col1 >= 234.10)

statement ok
CREATE VIEW view_2_tab2_592 AS SELECT pk, col0 FROM tab2 WHERE NOT ((col1 >= 234.10))

statement ok
CREATE VIEW view_3_tab2_592 AS SELECT pk FROM view_1_tab2_592

query II rowsort label-6700-1
SELECT pk, col0 FROM tab2 WHERE (col1 >= 234.10)
----
156 values hashing to dd9c55f81439c36cc08b7a0debe401e3

query II rowsort label-6700-2
SELECT pk, col0 FROM tab2 WHERE NOT ((col1 >= 234.10))
----
44 values hashing to 07069a47e8240c7dd5b1e8fa7ce0856f

query II rowsort label-6700-1
SELECT pk, col0 FROM view_1_tab2_592
----
156 values hashing to dd9c55f81439c36cc08b7a0debe401e3

query II rowsort label-6700-2
SELECT pk, col0 FROM view_2_tab2_592
----
44 values hashing to 07069a47e8240c7dd5b1e8fa7ce0856f

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col1 >= 234.10) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT ((col1 >= 234.10))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_592 UNION ALL SELECT pk, col0 FROM view_2_tab2_592
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col1 >= 234.10) UNION SELECT pk, col0 FROM tab2 WHERE NOT ((col1 >= 234.10))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_592 UNION SELECT pk, col0 FROM view_2_tab2_592
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-6700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE (col1 >= 234.10) ) AS tab2_592
----
78 values hashing to c55e87d11cdd7322667612c7a06bfaa4

query I rowsort label-6700-3
SELECT * FROM view_3_tab2_592
----
78 values hashing to c55e87d11cdd7322667612c7a06bfaa4

query I rowsort label-6700-3
SELECT pk FROM tab2 WHERE (col1 >= 234.10)
----
78 values hashing to c55e87d11cdd7322667612c7a06bfaa4

statement ok
DROP VIEW view_1_tab2_592

statement ok
DROP VIEW view_2_tab2_592

statement ok
DROP VIEW view_3_tab2_592

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_592') DROP VIEW view_1_tab3_592

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_592

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_592') DROP VIEW view_2_tab3_592

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_592

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_592') DROP VIEW view_3_tab3_592

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_592

statement ok
CREATE VIEW view_1_tab3_592 AS SELECT pk, col0 FROM tab3 WHERE (col1 >= 234.10)

statement ok
CREATE VIEW view_2_tab3_592 AS SELECT pk, col0 FROM tab3 WHERE NOT ((col1 >= 234.10))

statement ok
CREATE VIEW view_3_tab3_592 AS SELECT pk FROM view_1_tab3_592

query II rowsort label-6700-1
SELECT pk, col0 FROM tab3 WHERE (col1 >= 234.10)
----
156 values hashing to dd9c55f81439c36cc08b7a0debe401e3

query II rowsort label-6700-2
SELECT pk, col0 FROM tab3 WHERE NOT ((col1 >= 234.10))
----
44 values hashing to 07069a47e8240c7dd5b1e8fa7ce0856f

query II rowsort label-6700-1
SELECT pk, col0 FROM view_1_tab3_592
----
156 values hashing to dd9c55f81439c36cc08b7a0debe401e3

query II rowsort label-6700-2
SELECT pk, col0 FROM view_2_tab3_592
----
44 values hashing to 07069a47e8240c7dd5b1e8fa7ce0856f

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col1 >= 234.10) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT ((col1 >= 234.10))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_592 UNION ALL SELECT pk, col0 FROM view_2_tab3_592
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col1 >= 234.10) UNION SELECT pk, col0 FROM tab3 WHERE NOT ((col1 >= 234.10))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_592 UNION SELECT pk, col0 FROM view_2_tab3_592
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-6700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE (col1 >= 234.10) ) AS tab3_592
----
78 values hashing to c55e87d11cdd7322667612c7a06bfaa4

query I rowsort label-6700-3
SELECT * FROM view_3_tab3_592
----
78 values hashing to c55e87d11cdd7322667612c7a06bfaa4

query I rowsort label-6700-3
SELECT pk FROM tab3 WHERE (col1 >= 234.10)
----
78 values hashing to c55e87d11cdd7322667612c7a06bfaa4

statement ok
DROP VIEW view_1_tab3_592

statement ok
DROP VIEW view_2_tab3_592

statement ok
DROP VIEW view_3_tab3_592

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_592') DROP VIEW view_1_tab4_592

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_592

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_592') DROP VIEW view_2_tab4_592

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_592

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_592') DROP VIEW view_3_tab4_592

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_592

statement ok
CREATE VIEW view_1_tab4_592 AS SELECT pk, col0 FROM tab4 WHERE (col1 >= 234.10)

statement ok
CREATE VIEW view_2_tab4_592 AS SELECT pk, col0 FROM tab4 WHERE NOT ((col1 >= 234.10))

statement ok
CREATE VIEW view_3_tab4_592 AS SELECT pk FROM view_1_tab4_592

query II rowsort label-6700-1
SELECT pk, col0 FROM tab4 WHERE (col1 >= 234.10)
----
156 values hashing to dd9c55f81439c36cc08b7a0debe401e3

query II rowsort label-6700-2
SELECT pk, col0 FROM tab4 WHERE NOT ((col1 >= 234.10))
----
44 values hashing to 07069a47e8240c7dd5b1e8fa7ce0856f

query II rowsort label-6700-1
SELECT pk, col0 FROM view_1_tab4_592
----
156 values hashing to dd9c55f81439c36cc08b7a0debe401e3

query II rowsort label-6700-2
SELECT pk, col0 FROM view_2_tab4_592
----
44 values hashing to 07069a47e8240c7dd5b1e8fa7ce0856f

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col1 >= 234.10) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT ((col1 >= 234.10))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_592 UNION ALL SELECT pk, col0 FROM view_2_tab4_592
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col1 >= 234.10) UNION SELECT pk, col0 FROM tab4 WHERE NOT ((col1 >= 234.10))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_592 UNION SELECT pk, col0 FROM view_2_tab4_592
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-6700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE (col1 >= 234.10) ) AS tab4_592
----
78 values hashing to c55e87d11cdd7322667612c7a06bfaa4

query I rowsort label-6700-3
SELECT * FROM view_3_tab4_592
----
78 values hashing to c55e87d11cdd7322667612c7a06bfaa4

query I rowsort label-6700-3
SELECT pk FROM tab4 WHERE (col1 >= 234.10)
----
78 values hashing to c55e87d11cdd7322667612c7a06bfaa4

statement ok
DROP VIEW view_1_tab4_592

statement ok
DROP VIEW view_2_tab4_592

statement ok
DROP VIEW view_3_tab4_592

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_593') DROP VIEW view_1_tab0_593

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_593

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_593') DROP VIEW view_2_tab0_593

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_593

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_593') DROP VIEW view_3_tab0_593

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_593

statement ok
CREATE VIEW view_1_tab0_593 AS SELECT pk, col0 FROM tab0 WHERE ((col0 >= 903 AND col1 > 47.50))

statement ok
CREATE VIEW view_2_tab0_593 AS SELECT pk, col0 FROM tab0 WHERE NOT (((col0 >= 903 AND col1 > 47.50)))

statement ok
CREATE VIEW view_3_tab0_593 AS SELECT pk FROM view_1_tab0_593

query II rowsort label-6800-1
SELECT pk, col0 FROM tab0 WHERE ((col0 >= 903 AND col1 > 47.50))
----
18 values hashing to 9cf3c5dc0225faa8fae281c34fe8355a

query II rowsort label-6800-2
SELECT pk, col0 FROM tab0 WHERE NOT (((col0 >= 903 AND col1 > 47.50)))
----
182 values hashing to d858c5ef8b46ba660a19d848b463cadc

query II rowsort label-6800-1
SELECT pk, col0 FROM view_1_tab0_593
----
18 values hashing to 9cf3c5dc0225faa8fae281c34fe8355a

query II rowsort label-6800-2
SELECT pk, col0 FROM view_2_tab0_593
----
182 values hashing to d858c5ef8b46ba660a19d848b463cadc

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE ((col0 >= 903 AND col1 > 47.50)) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (((col0 >= 903 AND col1 > 47.50)))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_593 UNION ALL SELECT pk, col0 FROM view_2_tab0_593
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE ((col0 >= 903 AND col1 > 47.50)) UNION SELECT pk, col0 FROM tab0 WHERE NOT (((col0 >= 903 AND col1 > 47.50)))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_593 UNION SELECT pk, col0 FROM view_2_tab0_593
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-6800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE ((col0 >= 903 AND col1 > 47.50)) ) AS tab0_593
----
9 values hashing to 6413a96764d71baedae0f7dc6c05eb9b

query I rowsort label-6800-3
SELECT * FROM view_3_tab0_593
----
9 values hashing to 6413a96764d71baedae0f7dc6c05eb9b

query I rowsort label-6800-3
SELECT pk FROM tab0 WHERE ((col0 >= 903 AND col1 > 47.50))
----
9 values hashing to 6413a96764d71baedae0f7dc6c05eb9b

statement ok
DROP VIEW view_1_tab0_593

statement ok
DROP VIEW view_2_tab0_593

statement ok
DROP VIEW view_3_tab0_593

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_593') DROP VIEW view_1_tab1_593

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_593

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_593') DROP VIEW view_2_tab1_593

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_593

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_593') DROP VIEW view_3_tab1_593

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_593

statement ok
CREATE VIEW view_1_tab1_593 AS SELECT pk, col0 FROM tab1 WHERE ((col0 >= 903 AND col1 > 47.50))

statement ok
CREATE VIEW view_2_tab1_593 AS SELECT pk, col0 FROM tab1 WHERE NOT (((col0 >= 903 AND col1 > 47.50)))

statement ok
CREATE VIEW view_3_tab1_593 AS SELECT pk FROM view_1_tab1_593

query II rowsort label-6800-1
SELECT pk, col0 FROM tab1 WHERE ((col0 >= 903 AND col1 > 47.50))
----
18 values hashing to 9cf3c5dc0225faa8fae281c34fe8355a

query II rowsort label-6800-2
SELECT pk, col0 FROM tab1 WHERE NOT (((col0 >= 903 AND col1 > 47.50)))
----
182 values hashing to d858c5ef8b46ba660a19d848b463cadc

query II rowsort label-6800-1
SELECT pk, col0 FROM view_1_tab1_593
----
18 values hashing to 9cf3c5dc0225faa8fae281c34fe8355a

query II rowsort label-6800-2
SELECT pk, col0 FROM view_2_tab1_593
----
182 values hashing to d858c5ef8b46ba660a19d848b463cadc

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE ((col0 >= 903 AND col1 > 47.50)) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (((col0 >= 903 AND col1 > 47.50)))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_593 UNION ALL SELECT pk, col0 FROM view_2_tab1_593
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE ((col0 >= 903 AND col1 > 47.50)) UNION SELECT pk, col0 FROM tab1 WHERE NOT (((col0 >= 903 AND col1 > 47.50)))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_593 UNION SELECT pk, col0 FROM view_2_tab1_593
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-6800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE ((col0 >= 903 AND col1 > 47.50)) ) AS tab1_593
----
9 values hashing to 6413a96764d71baedae0f7dc6c05eb9b

query I rowsort label-6800-3
SELECT * FROM view_3_tab1_593
----
9 values hashing to 6413a96764d71baedae0f7dc6c05eb9b

query I rowsort label-6800-3
SELECT pk FROM tab1 WHERE ((col0 >= 903 AND col1 > 47.50))
----
9 values hashing to 6413a96764d71baedae0f7dc6c05eb9b

statement ok
DROP VIEW view_1_tab1_593

statement ok
DROP VIEW view_2_tab1_593

statement ok
DROP VIEW view_3_tab1_593

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_593') DROP VIEW view_1_tab2_593

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_593

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_593') DROP VIEW view_2_tab2_593

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_593

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_593') DROP VIEW view_3_tab2_593

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_593

statement ok
CREATE VIEW view_1_tab2_593 AS SELECT pk, col0 FROM tab2 WHERE ((col0 >= 903 AND col1 > 47.50))

statement ok
CREATE VIEW view_2_tab2_593 AS SELECT pk, col0 FROM tab2 WHERE NOT (((col0 >= 903 AND col1 > 47.50)))

statement ok
CREATE VIEW view_3_tab2_593 AS SELECT pk FROM view_1_tab2_593

query II rowsort label-6800-1
SELECT pk, col0 FROM tab2 WHERE ((col0 >= 903 AND col1 > 47.50))
----
18 values hashing to 9cf3c5dc0225faa8fae281c34fe8355a

query II rowsort label-6800-2
SELECT pk, col0 FROM tab2 WHERE NOT (((col0 >= 903 AND col1 > 47.50)))
----
182 values hashing to d858c5ef8b46ba660a19d848b463cadc

query II rowsort label-6800-1
SELECT pk, col0 FROM view_1_tab2_593
----
18 values hashing to 9cf3c5dc0225faa8fae281c34fe8355a

query II rowsort label-6800-2
SELECT pk, col0 FROM view_2_tab2_593
----
182 values hashing to d858c5ef8b46ba660a19d848b463cadc

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE ((col0 >= 903 AND col1 > 47.50)) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (((col0 >= 903 AND col1 > 47.50)))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_593 UNION ALL SELECT pk, col0 FROM view_2_tab2_593
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE ((col0 >= 903 AND col1 > 47.50)) UNION SELECT pk, col0 FROM tab2 WHERE NOT (((col0 >= 903 AND col1 > 47.50)))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_593 UNION SELECT pk, col0 FROM view_2_tab2_593
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-6800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE ((col0 >= 903 AND col1 > 47.50)) ) AS tab2_593
----
9 values hashing to 6413a96764d71baedae0f7dc6c05eb9b

query I rowsort label-6800-3
SELECT * FROM view_3_tab2_593
----
9 values hashing to 6413a96764d71baedae0f7dc6c05eb9b

query I rowsort label-6800-3
SELECT pk FROM tab2 WHERE ((col0 >= 903 AND col1 > 47.50))
----
9 values hashing to 6413a96764d71baedae0f7dc6c05eb9b

statement ok
DROP VIEW view_1_tab2_593

statement ok
DROP VIEW view_2_tab2_593

statement ok
DROP VIEW view_3_tab2_593

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_593') DROP VIEW view_1_tab3_593

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_593

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_593') DROP VIEW view_2_tab3_593

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_593

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_593') DROP VIEW view_3_tab3_593

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_593

statement ok
CREATE VIEW view_1_tab3_593 AS SELECT pk, col0 FROM tab3 WHERE ((col0 >= 903 AND col1 > 47.50))

statement ok
CREATE VIEW view_2_tab3_593 AS SELECT pk, col0 FROM tab3 WHERE NOT (((col0 >= 903 AND col1 > 47.50)))

statement ok
CREATE VIEW view_3_tab3_593 AS SELECT pk FROM view_1_tab3_593

query II rowsort label-6800-1
SELECT pk, col0 FROM tab3 WHERE ((col0 >= 903 AND col1 > 47.50))
----
18 values hashing to 9cf3c5dc0225faa8fae281c34fe8355a

query II rowsort label-6800-2
SELECT pk, col0 FROM tab3 WHERE NOT (((col0 >= 903 AND col1 > 47.50)))
----
182 values hashing to d858c5ef8b46ba660a19d848b463cadc

query II rowsort label-6800-1
SELECT pk, col0 FROM view_1_tab3_593
----
18 values hashing to 9cf3c5dc0225faa8fae281c34fe8355a

query II rowsort label-6800-2
SELECT pk, col0 FROM view_2_tab3_593
----
182 values hashing to d858c5ef8b46ba660a19d848b463cadc

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE ((col0 >= 903 AND col1 > 47.50)) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (((col0 >= 903 AND col1 > 47.50)))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_593 UNION ALL SELECT pk, col0 FROM view_2_tab3_593
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE ((col0 >= 903 AND col1 > 47.50)) UNION SELECT pk, col0 FROM tab3 WHERE NOT (((col0 >= 903 AND col1 > 47.50)))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_593 UNION SELECT pk, col0 FROM view_2_tab3_593
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-6800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE ((col0 >= 903 AND col1 > 47.50)) ) AS tab3_593
----
9 values hashing to 6413a96764d71baedae0f7dc6c05eb9b

query I rowsort label-6800-3
SELECT * FROM view_3_tab3_593
----
9 values hashing to 6413a96764d71baedae0f7dc6c05eb9b

query I rowsort label-6800-3
SELECT pk FROM tab3 WHERE ((col0 >= 903 AND col1 > 47.50))
----
9 values hashing to 6413a96764d71baedae0f7dc6c05eb9b

statement ok
DROP VIEW view_1_tab3_593

statement ok
DROP VIEW view_2_tab3_593

statement ok
DROP VIEW view_3_tab3_593

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_593') DROP VIEW view_1_tab4_593

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_593

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_593') DROP VIEW view_2_tab4_593

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_593

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_593') DROP VIEW view_3_tab4_593

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_593

statement ok
CREATE VIEW view_1_tab4_593 AS SELECT pk, col0 FROM tab4 WHERE ((col0 >= 903 AND col1 > 47.50))

statement ok
CREATE VIEW view_2_tab4_593 AS SELECT pk, col0 FROM tab4 WHERE NOT (((col0 >= 903 AND col1 > 47.50)))

statement ok
CREATE VIEW view_3_tab4_593 AS SELECT pk FROM view_1_tab4_593

query II rowsort label-6800-1
SELECT pk, col0 FROM tab4 WHERE ((col0 >= 903 AND col1 > 47.50))
----
18 values hashing to 9cf3c5dc0225faa8fae281c34fe8355a

query II rowsort label-6800-2
SELECT pk, col0 FROM tab4 WHERE NOT (((col0 >= 903 AND col1 > 47.50)))
----
182 values hashing to d858c5ef8b46ba660a19d848b463cadc

query II rowsort label-6800-1
SELECT pk, col0 FROM view_1_tab4_593
----
18 values hashing to 9cf3c5dc0225faa8fae281c34fe8355a

query II rowsort label-6800-2
SELECT pk, col0 FROM view_2_tab4_593
----
182 values hashing to d858c5ef8b46ba660a19d848b463cadc

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE ((col0 >= 903 AND col1 > 47.50)) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (((col0 >= 903 AND col1 > 47.50)))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_593 UNION ALL SELECT pk, col0 FROM view_2_tab4_593
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE ((col0 >= 903 AND col1 > 47.50)) UNION SELECT pk, col0 FROM tab4 WHERE NOT (((col0 >= 903 AND col1 > 47.50)))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_593 UNION SELECT pk, col0 FROM view_2_tab4_593
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-6800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE ((col0 >= 903 AND col1 > 47.50)) ) AS tab4_593
----
9 values hashing to 6413a96764d71baedae0f7dc6c05eb9b

query I rowsort label-6800-3
SELECT * FROM view_3_tab4_593
----
9 values hashing to 6413a96764d71baedae0f7dc6c05eb9b

query I rowsort label-6800-3
SELECT pk FROM tab4 WHERE ((col0 >= 903 AND col1 > 47.50))
----
9 values hashing to 6413a96764d71baedae0f7dc6c05eb9b

statement ok
DROP VIEW view_1_tab4_593

statement ok
DROP VIEW view_2_tab4_593

statement ok
DROP VIEW view_3_tab4_593

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_594') DROP VIEW view_1_tab0_594

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_594

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_594') DROP VIEW view_2_tab0_594

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_594

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_594') DROP VIEW view_3_tab0_594

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_594

statement ok
CREATE VIEW view_1_tab0_594 AS SELECT pk, col0 FROM tab0 WHERE (col3 > 549)

statement ok
CREATE VIEW view_2_tab0_594 AS SELECT pk, col0 FROM tab0 WHERE NOT ((col3 > 549))

statement ok
CREATE VIEW view_3_tab0_594 AS SELECT pk FROM view_1_tab0_594

query II rowsort label-6900-1
SELECT pk, col0 FROM tab0 WHERE (col3 > 549)
----
74 values hashing to fe95f3f3fb474312551b5e928ec219a9

query II rowsort label-6900-2
SELECT pk, col0 FROM tab0 WHERE NOT ((col3 > 549))
----
126 values hashing to dbbb082868023e3ea61767c5c2f22989

query II rowsort label-6900-1
SELECT pk, col0 FROM view_1_tab0_594
----
74 values hashing to fe95f3f3fb474312551b5e928ec219a9

query II rowsort label-6900-2
SELECT pk, col0 FROM view_2_tab0_594
----
126 values hashing to dbbb082868023e3ea61767c5c2f22989

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col3 > 549) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT ((col3 > 549))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_594 UNION ALL SELECT pk, col0 FROM view_2_tab0_594
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col3 > 549) UNION SELECT pk, col0 FROM tab0 WHERE NOT ((col3 > 549))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_594 UNION SELECT pk, col0 FROM view_2_tab0_594
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-6900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE (col3 > 549) ) AS tab0_594
----
37 values hashing to 181fa25cf5671c6325680dc6dc17b530

query I rowsort label-6900-3
SELECT * FROM view_3_tab0_594
----
37 values hashing to 181fa25cf5671c6325680dc6dc17b530

query I rowsort label-6900-3
SELECT pk FROM tab0 WHERE (col3 > 549)
----
37 values hashing to 181fa25cf5671c6325680dc6dc17b530

statement ok
DROP VIEW view_1_tab0_594

statement ok
DROP VIEW view_2_tab0_594

statement ok
DROP VIEW view_3_tab0_594

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_594') DROP VIEW view_1_tab1_594

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_594

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_594') DROP VIEW view_2_tab1_594

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_594

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_594') DROP VIEW view_3_tab1_594

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_594

statement ok
CREATE VIEW view_1_tab1_594 AS SELECT pk, col0 FROM tab1 WHERE (col3 > 549)

statement ok
CREATE VIEW view_2_tab1_594 AS SELECT pk, col0 FROM tab1 WHERE NOT ((col3 > 549))

statement ok
CREATE VIEW view_3_tab1_594 AS SELECT pk FROM view_1_tab1_594

query II rowsort label-6900-1
SELECT pk, col0 FROM tab1 WHERE (col3 > 549)
----
74 values hashing to fe95f3f3fb474312551b5e928ec219a9

query II rowsort label-6900-2
SELECT pk, col0 FROM tab1 WHERE NOT ((col3 > 549))
----
126 values hashing to dbbb082868023e3ea61767c5c2f22989

query II rowsort label-6900-1
SELECT pk, col0 FROM view_1_tab1_594
----
74 values hashing to fe95f3f3fb474312551b5e928ec219a9

query II rowsort label-6900-2
SELECT pk, col0 FROM view_2_tab1_594
----
126 values hashing to dbbb082868023e3ea61767c5c2f22989

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col3 > 549) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT ((col3 > 549))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_594 UNION ALL SELECT pk, col0 FROM view_2_tab1_594
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col3 > 549) UNION SELECT pk, col0 FROM tab1 WHERE NOT ((col3 > 549))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_594 UNION SELECT pk, col0 FROM view_2_tab1_594
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-6900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE (col3 > 549) ) AS tab1_594
----
37 values hashing to 181fa25cf5671c6325680dc6dc17b530

query I rowsort label-6900-3
SELECT * FROM view_3_tab1_594
----
37 values hashing to 181fa25cf5671c6325680dc6dc17b530

query I rowsort label-6900-3
SELECT pk FROM tab1 WHERE (col3 > 549)
----
37 values hashing to 181fa25cf5671c6325680dc6dc17b530

statement ok
DROP VIEW view_1_tab1_594

statement ok
DROP VIEW view_2_tab1_594

statement ok
DROP VIEW view_3_tab1_594

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_594') DROP VIEW view_1_tab2_594

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_594

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_594') DROP VIEW view_2_tab2_594

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_594

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_594') DROP VIEW view_3_tab2_594

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_594

statement ok
CREATE VIEW view_1_tab2_594 AS SELECT pk, col0 FROM tab2 WHERE (col3 > 549)

statement ok
CREATE VIEW view_2_tab2_594 AS SELECT pk, col0 FROM tab2 WHERE NOT ((col3 > 549))

statement ok
CREATE VIEW view_3_tab2_594 AS SELECT pk FROM view_1_tab2_594

query II rowsort label-6900-1
SELECT pk, col0 FROM tab2 WHERE (col3 > 549)
----
74 values hashing to fe95f3f3fb474312551b5e928ec219a9

query II rowsort label-6900-2
SELECT pk, col0 FROM tab2 WHERE NOT ((col3 > 549))
----
126 values hashing to dbbb082868023e3ea61767c5c2f22989

query II rowsort label-6900-1
SELECT pk, col0 FROM view_1_tab2_594
----
74 values hashing to fe95f3f3fb474312551b5e928ec219a9

query II rowsort label-6900-2
SELECT pk, col0 FROM view_2_tab2_594
----
126 values hashing to dbbb082868023e3ea61767c5c2f22989

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col3 > 549) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT ((col3 > 549))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_594 UNION ALL SELECT pk, col0 FROM view_2_tab2_594
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col3 > 549) UNION SELECT pk, col0 FROM tab2 WHERE NOT ((col3 > 549))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_594 UNION SELECT pk, col0 FROM view_2_tab2_594
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-6900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE (col3 > 549) ) AS tab2_594
----
37 values hashing to 181fa25cf5671c6325680dc6dc17b530

query I rowsort label-6900-3
SELECT * FROM view_3_tab2_594
----
37 values hashing to 181fa25cf5671c6325680dc6dc17b530

query I rowsort label-6900-3
SELECT pk FROM tab2 WHERE (col3 > 549)
----
37 values hashing to 181fa25cf5671c6325680dc6dc17b530

statement ok
DROP VIEW view_1_tab2_594

statement ok
DROP VIEW view_2_tab2_594

statement ok
DROP VIEW view_3_tab2_594

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_594') DROP VIEW view_1_tab3_594

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_594

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_594') DROP VIEW view_2_tab3_594

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_594

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_594') DROP VIEW view_3_tab3_594

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_594

statement ok
CREATE VIEW view_1_tab3_594 AS SELECT pk, col0 FROM tab3 WHERE (col3 > 549)

statement ok
CREATE VIEW view_2_tab3_594 AS SELECT pk, col0 FROM tab3 WHERE NOT ((col3 > 549))

statement ok
CREATE VIEW view_3_tab3_594 AS SELECT pk FROM view_1_tab3_594

query II rowsort label-6900-1
SELECT pk, col0 FROM tab3 WHERE (col3 > 549)
----
74 values hashing to fe95f3f3fb474312551b5e928ec219a9

query II rowsort label-6900-2
SELECT pk, col0 FROM tab3 WHERE NOT ((col3 > 549))
----
126 values hashing to dbbb082868023e3ea61767c5c2f22989

query II rowsort label-6900-1
SELECT pk, col0 FROM view_1_tab3_594
----
74 values hashing to fe95f3f3fb474312551b5e928ec219a9

query II rowsort label-6900-2
SELECT pk, col0 FROM view_2_tab3_594
----
126 values hashing to dbbb082868023e3ea61767c5c2f22989

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col3 > 549) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT ((col3 > 549))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_594 UNION ALL SELECT pk, col0 FROM view_2_tab3_594
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col3 > 549) UNION SELECT pk, col0 FROM tab3 WHERE NOT ((col3 > 549))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_594 UNION SELECT pk, col0 FROM view_2_tab3_594
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-6900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE (col3 > 549) ) AS tab3_594
----
37 values hashing to 181fa25cf5671c6325680dc6dc17b530

query I rowsort label-6900-3
SELECT * FROM view_3_tab3_594
----
37 values hashing to 181fa25cf5671c6325680dc6dc17b530

query I rowsort label-6900-3
SELECT pk FROM tab3 WHERE (col3 > 549)
----
37 values hashing to 181fa25cf5671c6325680dc6dc17b530

statement ok
DROP VIEW view_1_tab3_594

statement ok
DROP VIEW view_2_tab3_594

statement ok
DROP VIEW view_3_tab3_594

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_594') DROP VIEW view_1_tab4_594

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_594

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_594') DROP VIEW view_2_tab4_594

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_594

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_594') DROP VIEW view_3_tab4_594

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_594

statement ok
CREATE VIEW view_1_tab4_594 AS SELECT pk, col0 FROM tab4 WHERE (col3 > 549)

statement ok
CREATE VIEW view_2_tab4_594 AS SELECT pk, col0 FROM tab4 WHERE NOT ((col3 > 549))

statement ok
CREATE VIEW view_3_tab4_594 AS SELECT pk FROM view_1_tab4_594

query II rowsort label-6900-1
SELECT pk, col0 FROM tab4 WHERE (col3 > 549)
----
74 values hashing to fe95f3f3fb474312551b5e928ec219a9

query II rowsort label-6900-2
SELECT pk, col0 FROM tab4 WHERE NOT ((col3 > 549))
----
126 values hashing to dbbb082868023e3ea61767c5c2f22989

query II rowsort label-6900-1
SELECT pk, col0 FROM view_1_tab4_594
----
74 values hashing to fe95f3f3fb474312551b5e928ec219a9

query II rowsort label-6900-2
SELECT pk, col0 FROM view_2_tab4_594
----
126 values hashing to dbbb082868023e3ea61767c5c2f22989

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col3 > 549) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT ((col3 > 549))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_594 UNION ALL SELECT pk, col0 FROM view_2_tab4_594
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col3 > 549) UNION SELECT pk, col0 FROM tab4 WHERE NOT ((col3 > 549))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_594 UNION SELECT pk, col0 FROM view_2_tab4_594
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-6900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE (col3 > 549) ) AS tab4_594
----
37 values hashing to 181fa25cf5671c6325680dc6dc17b530

query I rowsort label-6900-3
SELECT * FROM view_3_tab4_594
----
37 values hashing to 181fa25cf5671c6325680dc6dc17b530

query I rowsort label-6900-3
SELECT pk FROM tab4 WHERE (col3 > 549)
----
37 values hashing to 181fa25cf5671c6325680dc6dc17b530

statement ok
DROP VIEW view_1_tab4_594

statement ok
DROP VIEW view_2_tab4_594

statement ok
DROP VIEW view_3_tab4_594

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_595') DROP VIEW view_1_tab0_595

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_595

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_595') DROP VIEW view_2_tab0_595

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_595

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_595') DROP VIEW view_3_tab0_595

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_595

statement ok
CREATE VIEW view_1_tab0_595 AS SELECT pk, col0 FROM tab0 WHERE (col4 IN (952.5,438.34,33.7,993.81) OR (col0 >= 112)) AND col0 > 519 AND col4 = 861.3

statement ok
CREATE VIEW view_2_tab0_595 AS SELECT pk, col0 FROM tab0 WHERE NOT ((col4 IN (952.5,438.34,33.7,993.81) OR (col0 >= 112)) AND col0 > 519 AND col4 = 861.3)

statement ok
CREATE VIEW view_3_tab0_595 AS SELECT pk FROM view_1_tab0_595

query II rowsort label-7000-1
SELECT pk, col0 FROM tab0 WHERE (col4 IN (952.5,438.34,33.7,993.81) OR (col0 >= 112)) AND col0 > 519 AND col4 = 861.3
----

query II rowsort label-7000-2
SELECT pk, col0 FROM tab0 WHERE NOT ((col4 IN (952.5,438.34,33.7,993.81) OR (col0 >= 112)) AND col0 > 519 AND col4 = 861.3)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-7000-1
SELECT pk, col0 FROM view_1_tab0_595
----

query II rowsort label-7000-2
SELECT pk, col0 FROM view_2_tab0_595
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col4 IN (952.5,438.34,33.7,993.81) OR (col0 >= 112)) AND col0 > 519 AND col4 = 861.3 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT ((col4 IN (952.5,438.34,33.7,993.81) OR (col0 >= 112)) AND col0 > 519 AND col4 = 861.3)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_595 UNION ALL SELECT pk, col0 FROM view_2_tab0_595
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col4 IN (952.5,438.34,33.7,993.81) OR (col0 >= 112)) AND col0 > 519 AND col4 = 861.3 UNION SELECT pk, col0 FROM tab0 WHERE NOT ((col4 IN (952.5,438.34,33.7,993.81) OR (col0 >= 112)) AND col0 > 519 AND col4 = 861.3)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_595 UNION SELECT pk, col0 FROM view_2_tab0_595
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-7000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE (col4 IN (952.5,438.34,33.7,993.81) OR (col0 >= 112)) AND col0 > 519 AND col4 = 861.3 ) AS tab0_595
----

query I rowsort label-7000-3
SELECT * FROM view_3_tab0_595
----

query I rowsort label-7000-3
SELECT pk FROM tab0 WHERE (col4 IN (952.5,438.34,33.7,993.81) OR (col0 >= 112)) AND col0 > 519 AND col4 = 861.3
----

statement ok
DROP VIEW view_1_tab0_595

statement ok
DROP VIEW view_2_tab0_595

statement ok
DROP VIEW view_3_tab0_595

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_595') DROP VIEW view_1_tab1_595

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_595

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_595') DROP VIEW view_2_tab1_595

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_595

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_595') DROP VIEW view_3_tab1_595

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_595

statement ok
CREATE VIEW view_1_tab1_595 AS SELECT pk, col0 FROM tab1 WHERE (col4 IN (952.5,438.34,33.7,993.81) OR (col0 >= 112)) AND col0 > 519 AND col4 = 861.3

statement ok
CREATE VIEW view_2_tab1_595 AS SELECT pk, col0 FROM tab1 WHERE NOT ((col4 IN (952.5,438.34,33.7,993.81) OR (col0 >= 112)) AND col0 > 519 AND col4 = 861.3)

statement ok
CREATE VIEW view_3_tab1_595 AS SELECT pk FROM view_1_tab1_595

query II rowsort label-7000-1
SELECT pk, col0 FROM tab1 WHERE (col4 IN (952.5,438.34,33.7,993.81) OR (col0 >= 112)) AND col0 > 519 AND col4 = 861.3
----

query II rowsort label-7000-2
SELECT pk, col0 FROM tab1 WHERE NOT ((col4 IN (952.5,438.34,33.7,993.81) OR (col0 >= 112)) AND col0 > 519 AND col4 = 861.3)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-7000-1
SELECT pk, col0 FROM view_1_tab1_595
----

query II rowsort label-7000-2
SELECT pk, col0 FROM view_2_tab1_595
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col4 IN (952.5,438.34,33.7,993.81) OR (col0 >= 112)) AND col0 > 519 AND col4 = 861.3 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT ((col4 IN (952.5,438.34,33.7,993.81) OR (col0 >= 112)) AND col0 > 519 AND col4 = 861.3)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_595 UNION ALL SELECT pk, col0 FROM view_2_tab1_595
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col4 IN (952.5,438.34,33.7,993.81) OR (col0 >= 112)) AND col0 > 519 AND col4 = 861.3 UNION SELECT pk, col0 FROM tab1 WHERE NOT ((col4 IN (952.5,438.34,33.7,993.81) OR (col0 >= 112)) AND col0 > 519 AND col4 = 861.3)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_595 UNION SELECT pk, col0 FROM view_2_tab1_595
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-7000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE (col4 IN (952.5,438.34,33.7,993.81) OR (col0 >= 112)) AND col0 > 519 AND col4 = 861.3 ) AS tab1_595
----

query I rowsort label-7000-3
SELECT * FROM view_3_tab1_595
----

query I rowsort label-7000-3
SELECT pk FROM tab1 WHERE (col4 IN (952.5,438.34,33.7,993.81) OR (col0 >= 112)) AND col0 > 519 AND col4 = 861.3
----

statement ok
DROP VIEW view_1_tab1_595

statement ok
DROP VIEW view_2_tab1_595

statement ok
DROP VIEW view_3_tab1_595

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_595') DROP VIEW view_1_tab2_595

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_595

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_595') DROP VIEW view_2_tab2_595

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_595

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_595') DROP VIEW view_3_tab2_595

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_595

statement ok
CREATE VIEW view_1_tab2_595 AS SELECT pk, col0 FROM tab2 WHERE (col4 IN (952.5,438.34,33.7,993.81) OR (col0 >= 112)) AND col0 > 519 AND col4 = 861.3

statement ok
CREATE VIEW view_2_tab2_595 AS SELECT pk, col0 FROM tab2 WHERE NOT ((col4 IN (952.5,438.34,33.7,993.81) OR (col0 >= 112)) AND col0 > 519 AND col4 = 861.3)

statement ok
CREATE VIEW view_3_tab2_595 AS SELECT pk FROM view_1_tab2_595

query II rowsort label-7000-1
SELECT pk, col0 FROM tab2 WHERE (col4 IN (952.5,438.34,33.7,993.81) OR (col0 >= 112)) AND col0 > 519 AND col4 = 861.3
----

query II rowsort label-7000-2
SELECT pk, col0 FROM tab2 WHERE NOT ((col4 IN (952.5,438.34,33.7,993.81) OR (col0 >= 112)) AND col0 > 519 AND col4 = 861.3)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-7000-1
SELECT pk, col0 FROM view_1_tab2_595
----

query II rowsort label-7000-2
SELECT pk, col0 FROM view_2_tab2_595
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col4 IN (952.5,438.34,33.7,993.81) OR (col0 >= 112)) AND col0 > 519 AND col4 = 861.3 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT ((col4 IN (952.5,438.34,33.7,993.81) OR (col0 >= 112)) AND col0 > 519 AND col4 = 861.3)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_595 UNION ALL SELECT pk, col0 FROM view_2_tab2_595
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col4 IN (952.5,438.34,33.7,993.81) OR (col0 >= 112)) AND col0 > 519 AND col4 = 861.3 UNION SELECT pk, col0 FROM tab2 WHERE NOT ((col4 IN (952.5,438.34,33.7,993.81) OR (col0 >= 112)) AND col0 > 519 AND col4 = 861.3)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_595 UNION SELECT pk, col0 FROM view_2_tab2_595
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-7000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE (col4 IN (952.5,438.34,33.7,993.81) OR (col0 >= 112)) AND col0 > 519 AND col4 = 861.3 ) AS tab2_595
----

query I rowsort label-7000-3
SELECT * FROM view_3_tab2_595
----

query I rowsort label-7000-3
SELECT pk FROM tab2 WHERE (col4 IN (952.5,438.34,33.7,993.81) OR (col0 >= 112)) AND col0 > 519 AND col4 = 861.3
----

statement ok
DROP VIEW view_1_tab2_595

statement ok
DROP VIEW view_2_tab2_595

statement ok
DROP VIEW view_3_tab2_595

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_595') DROP VIEW view_1_tab3_595

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_595

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_595') DROP VIEW view_2_tab3_595

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_595

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_595') DROP VIEW view_3_tab3_595

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_595

statement ok
CREATE VIEW view_1_tab3_595 AS SELECT pk, col0 FROM tab3 WHERE (col4 IN (952.5,438.34,33.7,993.81) OR (col0 >= 112)) AND col0 > 519 AND col4 = 861.3

statement ok
CREATE VIEW view_2_tab3_595 AS SELECT pk, col0 FROM tab3 WHERE NOT ((col4 IN (952.5,438.34,33.7,993.81) OR (col0 >= 112)) AND col0 > 519 AND col4 = 861.3)

statement ok
CREATE VIEW view_3_tab3_595 AS SELECT pk FROM view_1_tab3_595

query II rowsort label-7000-1
SELECT pk, col0 FROM tab3 WHERE (col4 IN (952.5,438.34,33.7,993.81) OR (col0 >= 112)) AND col0 > 519 AND col4 = 861.3
----

query II rowsort label-7000-2
SELECT pk, col0 FROM tab3 WHERE NOT ((col4 IN (952.5,438.34,33.7,993.81) OR (col0 >= 112)) AND col0 > 519 AND col4 = 861.3)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-7000-1
SELECT pk, col0 FROM view_1_tab3_595
----

query II rowsort label-7000-2
SELECT pk, col0 FROM view_2_tab3_595
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col4 IN (952.5,438.34,33.7,993.81) OR (col0 >= 112)) AND col0 > 519 AND col4 = 861.3 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT ((col4 IN (952.5,438.34,33.7,993.81) OR (col0 >= 112)) AND col0 > 519 AND col4 = 861.3)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_595 UNION ALL SELECT pk, col0 FROM view_2_tab3_595
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col4 IN (952.5,438.34,33.7,993.81) OR (col0 >= 112)) AND col0 > 519 AND col4 = 861.3 UNION SELECT pk, col0 FROM tab3 WHERE NOT ((col4 IN (952.5,438.34,33.7,993.81) OR (col0 >= 112)) AND col0 > 519 AND col4 = 861.3)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_595 UNION SELECT pk, col0 FROM view_2_tab3_595
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-7000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE (col4 IN (952.5,438.34,33.7,993.81) OR (col0 >= 112)) AND col0 > 519 AND col4 = 861.3 ) AS tab3_595
----

query I rowsort label-7000-3
SELECT * FROM view_3_tab3_595
----

query I rowsort label-7000-3
SELECT pk FROM tab3 WHERE (col4 IN (952.5,438.34,33.7,993.81) OR (col0 >= 112)) AND col0 > 519 AND col4 = 861.3
----

statement ok
DROP VIEW view_1_tab3_595

statement ok
DROP VIEW view_2_tab3_595

statement ok
DROP VIEW view_3_tab3_595

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_595') DROP VIEW view_1_tab4_595

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_595

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_595') DROP VIEW view_2_tab4_595

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_595

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_595') DROP VIEW view_3_tab4_595

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_595

statement ok
CREATE VIEW view_1_tab4_595 AS SELECT pk, col0 FROM tab4 WHERE (col4 IN (952.5,438.34,33.7,993.81) OR (col0 >= 112)) AND col0 > 519 AND col4 = 861.3

statement ok
CREATE VIEW view_2_tab4_595 AS SELECT pk, col0 FROM tab4 WHERE NOT ((col4 IN (952.5,438.34,33.7,993.81) OR (col0 >= 112)) AND col0 > 519 AND col4 = 861.3)

statement ok
CREATE VIEW view_3_tab4_595 AS SELECT pk FROM view_1_tab4_595

query II rowsort label-7000-1
SELECT pk, col0 FROM tab4 WHERE (col4 IN (952.5,438.34,33.7,993.81) OR (col0 >= 112)) AND col0 > 519 AND col4 = 861.3
----

query II rowsort label-7000-2
SELECT pk, col0 FROM tab4 WHERE NOT ((col4 IN (952.5,438.34,33.7,993.81) OR (col0 >= 112)) AND col0 > 519 AND col4 = 861.3)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-7000-1
SELECT pk, col0 FROM view_1_tab4_595
----

query II rowsort label-7000-2
SELECT pk, col0 FROM view_2_tab4_595
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col4 IN (952.5,438.34,33.7,993.81) OR (col0 >= 112)) AND col0 > 519 AND col4 = 861.3 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT ((col4 IN (952.5,438.34,33.7,993.81) OR (col0 >= 112)) AND col0 > 519 AND col4 = 861.3)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_595 UNION ALL SELECT pk, col0 FROM view_2_tab4_595
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col4 IN (952.5,438.34,33.7,993.81) OR (col0 >= 112)) AND col0 > 519 AND col4 = 861.3 UNION SELECT pk, col0 FROM tab4 WHERE NOT ((col4 IN (952.5,438.34,33.7,993.81) OR (col0 >= 112)) AND col0 > 519 AND col4 = 861.3)
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_595 UNION SELECT pk, col0 FROM view_2_tab4_595
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-7000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE (col4 IN (952.5,438.34,33.7,993.81) OR (col0 >= 112)) AND col0 > 519 AND col4 = 861.3 ) AS tab4_595
----

query I rowsort label-7000-3
SELECT * FROM view_3_tab4_595
----

query I rowsort label-7000-3
SELECT pk FROM tab4 WHERE (col4 IN (952.5,438.34,33.7,993.81) OR (col0 >= 112)) AND col0 > 519 AND col4 = 861.3
----

statement ok
DROP VIEW view_1_tab4_595

statement ok
DROP VIEW view_2_tab4_595

statement ok
DROP VIEW view_3_tab4_595

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_596') DROP VIEW view_1_tab0_596

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_596

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_596') DROP VIEW view_2_tab0_596

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_596

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_596') DROP VIEW view_3_tab0_596

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_596

statement ok
CREATE VIEW view_1_tab0_596 AS SELECT pk, col0 FROM tab0 WHERE col4 IN (277.66,109.65,857.88,798.34,463.17)

statement ok
CREATE VIEW view_2_tab0_596 AS SELECT pk, col0 FROM tab0 WHERE NOT (col4 IN (277.66,109.65,857.88,798.34,463.17))

statement ok
CREATE VIEW view_3_tab0_596 AS SELECT pk FROM view_1_tab0_596

query II rowsort label-7100-1
SELECT pk, col0 FROM tab0 WHERE col4 IN (277.66,109.65,857.88,798.34,463.17)
----

query II rowsort label-7100-2
SELECT pk, col0 FROM tab0 WHERE NOT (col4 IN (277.66,109.65,857.88,798.34,463.17))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-7100-1
SELECT pk, col0 FROM view_1_tab0_596
----

query II rowsort label-7100-2
SELECT pk, col0 FROM view_2_tab0_596
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col4 IN (277.66,109.65,857.88,798.34,463.17) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col4 IN (277.66,109.65,857.88,798.34,463.17))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_596 UNION ALL SELECT pk, col0 FROM view_2_tab0_596
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col4 IN (277.66,109.65,857.88,798.34,463.17) UNION SELECT pk, col0 FROM tab0 WHERE NOT (col4 IN (277.66,109.65,857.88,798.34,463.17))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_596 UNION SELECT pk, col0 FROM view_2_tab0_596
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-7100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col4 IN (277.66,109.65,857.88,798.34,463.17) ) AS tab0_596
----

query I rowsort label-7100-3
SELECT * FROM view_3_tab0_596
----

query I rowsort label-7100-3
SELECT pk FROM tab0 WHERE col4 IN (277.66,109.65,857.88,798.34,463.17)
----

statement ok
DROP VIEW view_1_tab0_596

statement ok
DROP VIEW view_2_tab0_596

statement ok
DROP VIEW view_3_tab0_596

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_596') DROP VIEW view_1_tab1_596

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_596

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_596') DROP VIEW view_2_tab1_596

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_596

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_596') DROP VIEW view_3_tab1_596

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_596

statement ok
CREATE VIEW view_1_tab1_596 AS SELECT pk, col0 FROM tab1 WHERE col4 IN (277.66,109.65,857.88,798.34,463.17)

statement ok
CREATE VIEW view_2_tab1_596 AS SELECT pk, col0 FROM tab1 WHERE NOT (col4 IN (277.66,109.65,857.88,798.34,463.17))

statement ok
CREATE VIEW view_3_tab1_596 AS SELECT pk FROM view_1_tab1_596

query II rowsort label-7100-1
SELECT pk, col0 FROM tab1 WHERE col4 IN (277.66,109.65,857.88,798.34,463.17)
----

query II rowsort label-7100-2
SELECT pk, col0 FROM tab1 WHERE NOT (col4 IN (277.66,109.65,857.88,798.34,463.17))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-7100-1
SELECT pk, col0 FROM view_1_tab1_596
----

query II rowsort label-7100-2
SELECT pk, col0 FROM view_2_tab1_596
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col4 IN (277.66,109.65,857.88,798.34,463.17) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col4 IN (277.66,109.65,857.88,798.34,463.17))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_596 UNION ALL SELECT pk, col0 FROM view_2_tab1_596
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col4 IN (277.66,109.65,857.88,798.34,463.17) UNION SELECT pk, col0 FROM tab1 WHERE NOT (col4 IN (277.66,109.65,857.88,798.34,463.17))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_596 UNION SELECT pk, col0 FROM view_2_tab1_596
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-7100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col4 IN (277.66,109.65,857.88,798.34,463.17) ) AS tab1_596
----

query I rowsort label-7100-3
SELECT * FROM view_3_tab1_596
----

query I rowsort label-7100-3
SELECT pk FROM tab1 WHERE col4 IN (277.66,109.65,857.88,798.34,463.17)
----

statement ok
DROP VIEW view_1_tab1_596

statement ok
DROP VIEW view_2_tab1_596

statement ok
DROP VIEW view_3_tab1_596

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_596') DROP VIEW view_1_tab2_596

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_596

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_596') DROP VIEW view_2_tab2_596

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_596

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_596') DROP VIEW view_3_tab2_596

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_596

statement ok
CREATE VIEW view_1_tab2_596 AS SELECT pk, col0 FROM tab2 WHERE col4 IN (277.66,109.65,857.88,798.34,463.17)

statement ok
CREATE VIEW view_2_tab2_596 AS SELECT pk, col0 FROM tab2 WHERE NOT (col4 IN (277.66,109.65,857.88,798.34,463.17))

statement ok
CREATE VIEW view_3_tab2_596 AS SELECT pk FROM view_1_tab2_596

query II rowsort label-7100-1
SELECT pk, col0 FROM tab2 WHERE col4 IN (277.66,109.65,857.88,798.34,463.17)
----

query II rowsort label-7100-2
SELECT pk, col0 FROM tab2 WHERE NOT (col4 IN (277.66,109.65,857.88,798.34,463.17))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-7100-1
SELECT pk, col0 FROM view_1_tab2_596
----

query II rowsort label-7100-2
SELECT pk, col0 FROM view_2_tab2_596
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col4 IN (277.66,109.65,857.88,798.34,463.17) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col4 IN (277.66,109.65,857.88,798.34,463.17))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_596 UNION ALL SELECT pk, col0 FROM view_2_tab2_596
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col4 IN (277.66,109.65,857.88,798.34,463.17) UNION SELECT pk, col0 FROM tab2 WHERE NOT (col4 IN (277.66,109.65,857.88,798.34,463.17))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_596 UNION SELECT pk, col0 FROM view_2_tab2_596
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-7100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col4 IN (277.66,109.65,857.88,798.34,463.17) ) AS tab2_596
----

query I rowsort label-7100-3
SELECT * FROM view_3_tab2_596
----

query I rowsort label-7100-3
SELECT pk FROM tab2 WHERE col4 IN (277.66,109.65,857.88,798.34,463.17)
----

statement ok
DROP VIEW view_1_tab2_596

statement ok
DROP VIEW view_2_tab2_596

statement ok
DROP VIEW view_3_tab2_596

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_596') DROP VIEW view_1_tab3_596

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_596

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_596') DROP VIEW view_2_tab3_596

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_596

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_596') DROP VIEW view_3_tab3_596

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_596

statement ok
CREATE VIEW view_1_tab3_596 AS SELECT pk, col0 FROM tab3 WHERE col4 IN (277.66,109.65,857.88,798.34,463.17)

statement ok
CREATE VIEW view_2_tab3_596 AS SELECT pk, col0 FROM tab3 WHERE NOT (col4 IN (277.66,109.65,857.88,798.34,463.17))

statement ok
CREATE VIEW view_3_tab3_596 AS SELECT pk FROM view_1_tab3_596

query II rowsort label-7100-1
SELECT pk, col0 FROM tab3 WHERE col4 IN (277.66,109.65,857.88,798.34,463.17)
----

query II rowsort label-7100-2
SELECT pk, col0 FROM tab3 WHERE NOT (col4 IN (277.66,109.65,857.88,798.34,463.17))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-7100-1
SELECT pk, col0 FROM view_1_tab3_596
----

query II rowsort label-7100-2
SELECT pk, col0 FROM view_2_tab3_596
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col4 IN (277.66,109.65,857.88,798.34,463.17) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col4 IN (277.66,109.65,857.88,798.34,463.17))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_596 UNION ALL SELECT pk, col0 FROM view_2_tab3_596
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col4 IN (277.66,109.65,857.88,798.34,463.17) UNION SELECT pk, col0 FROM tab3 WHERE NOT (col4 IN (277.66,109.65,857.88,798.34,463.17))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_596 UNION SELECT pk, col0 FROM view_2_tab3_596
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-7100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col4 IN (277.66,109.65,857.88,798.34,463.17) ) AS tab3_596
----

query I rowsort label-7100-3
SELECT * FROM view_3_tab3_596
----

query I rowsort label-7100-3
SELECT pk FROM tab3 WHERE col4 IN (277.66,109.65,857.88,798.34,463.17)
----

statement ok
DROP VIEW view_1_tab3_596

statement ok
DROP VIEW view_2_tab3_596

statement ok
DROP VIEW view_3_tab3_596

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_596') DROP VIEW view_1_tab4_596

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_596

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_596') DROP VIEW view_2_tab4_596

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_596

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_596') DROP VIEW view_3_tab4_596

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_596

statement ok
CREATE VIEW view_1_tab4_596 AS SELECT pk, col0 FROM tab4 WHERE col4 IN (277.66,109.65,857.88,798.34,463.17)

statement ok
CREATE VIEW view_2_tab4_596 AS SELECT pk, col0 FROM tab4 WHERE NOT (col4 IN (277.66,109.65,857.88,798.34,463.17))

statement ok
CREATE VIEW view_3_tab4_596 AS SELECT pk FROM view_1_tab4_596

query II rowsort label-7100-1
SELECT pk, col0 FROM tab4 WHERE col4 IN (277.66,109.65,857.88,798.34,463.17)
----

query II rowsort label-7100-2
SELECT pk, col0 FROM tab4 WHERE NOT (col4 IN (277.66,109.65,857.88,798.34,463.17))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-7100-1
SELECT pk, col0 FROM view_1_tab4_596
----

query II rowsort label-7100-2
SELECT pk, col0 FROM view_2_tab4_596
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col4 IN (277.66,109.65,857.88,798.34,463.17) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col4 IN (277.66,109.65,857.88,798.34,463.17))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_596 UNION ALL SELECT pk, col0 FROM view_2_tab4_596
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col4 IN (277.66,109.65,857.88,798.34,463.17) UNION SELECT pk, col0 FROM tab4 WHERE NOT (col4 IN (277.66,109.65,857.88,798.34,463.17))
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_596 UNION SELECT pk, col0 FROM view_2_tab4_596
----
200 values hashing to 06b39c45fae5a895bfa7653ed4bed045

query I rowsort label-7100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col4 IN (277.66,109.65,857.88,798.34,463.17) ) AS tab4_596
----

query I rowsort label-7100-3
SELECT * FROM view_3_tab4_596
----

query I rowsort label-7100-3
SELECT pk FROM tab4 WHERE col4 IN (277.66,109.65,857.88,798.34,463.17)
----

statement ok
DROP VIEW view_1_tab4_596

statement ok
DROP VIEW view_2_tab4_596

statement ok
DROP VIEW view_3_tab4_596

