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,17,693.29,'yfwus',262,756.37,'xpzar')

statement ok
INSERT INTO tab0 VALUES(1,674,949.79,'vxdks',903,579.85,'ahmtl')

statement ok
INSERT INTO tab0 VALUES(2,832,877.24,'kikgb',675,703.86,'uywpv')

statement ok
INSERT INTO tab0 VALUES(3,701,380.36,'jbtwo',580,648.24,'kojwf')

statement ok
INSERT INTO tab0 VALUES(4,359,750.66,'wfdia',54,637.73,'lainz')

statement ok
INSERT INTO tab0 VALUES(5,880,299.62,'jhxof',90,225.8,'nisjb')

statement ok
INSERT INTO tab0 VALUES(6,456,982.78,'xolfh',361,923.15,'trzzs')

statement ok
INSERT INTO tab0 VALUES(7,524,20.88,'cyvzm',348,819.8,'mpnfb')

statement ok
INSERT INTO tab0 VALUES(8,890,526.0,'njkrs',463,209.40,'ycjws')

statement ok
INSERT INTO tab0 VALUES(9,854,134.63,'lsohf',174,218.14,'vvsel')

statement ok
INSERT INTO tab0 VALUES(10,333,616.86,'jbafc',133,425.97,'ybrrs')

statement ok
INSERT INTO tab0 VALUES(11,993,516.47,'tuxge',296,491.30,'txvnl')

statement ok
INSERT INTO tab0 VALUES(12,364,767.7,'oozyi',51,781.46,'doyol')

statement ok
INSERT INTO tab0 VALUES(13,973,322.21,'xrmkh',345,989.76,'wdkig')

statement ok
INSERT INTO tab0 VALUES(14,466,775.50,'tasrf',805,767.65,'kcajr')

statement ok
INSERT INTO tab0 VALUES(15,732,988.77,'jjrtk',863,345.86,'jeoeg')

statement ok
INSERT INTO tab0 VALUES(16,30,716.16,'dfovt',885,158.48,'gploe')

statement ok
INSERT INTO tab0 VALUES(17,114,232.25,'ceqen',293,471.12,'zdhls')

statement ok
INSERT INTO tab0 VALUES(18,355,951.22,'mconw',690,6.3,'qhphv')

statement ok
INSERT INTO tab0 VALUES(19,869,55.91,'oygao',988,562.21,'zmjby')

statement ok
INSERT INTO tab0 VALUES(20,642,118.2,'afmno',527,647.55,'cyrim')

statement ok
INSERT INTO tab0 VALUES(21,654,735.16,'uvilo',206,94.95,'cciqk')

statement ok
INSERT INTO tab0 VALUES(22,3,140.4,'okafu',605,697.44,'rpofa')

statement ok
INSERT INTO tab0 VALUES(23,32,835.55,'jjidn',111,825.31,'rjmll')

statement ok
INSERT INTO tab0 VALUES(24,452,217.92,'kzmrq',42,54.24,'xvzyj')

statement ok
INSERT INTO tab0 VALUES(25,470,199.81,'jpomm',774,791.43,'oyzmo')

statement ok
INSERT INTO tab0 VALUES(26,912,836.47,'jqdqf',864,898.69,'zmkin')

statement ok
INSERT INTO tab0 VALUES(27,346,950.82,'kwbpo',172,314.61,'dzrhd')

statement ok
INSERT INTO tab0 VALUES(28,211,757.63,'xlwmo',996,687.65,'myevk')

statement ok
INSERT INTO tab0 VALUES(29,940,492.61,'parcx',187,993.28,'hzfdu')

statement ok
INSERT INTO tab0 VALUES(30,84,30.53,'xymfv',278,164.13,'oxhlc')

statement ok
INSERT INTO tab0 VALUES(31,439,515.37,'rgalp',609,712.7,'mxbxz')

statement ok
INSERT INTO tab0 VALUES(32,171,983.42,'vakpf',452,352.34,'anqyq')

statement ok
INSERT INTO tab0 VALUES(33,939,985.44,'veoqx',134,632.71,'qblfh')

statement ok
INSERT INTO tab0 VALUES(34,21,220.74,'pzaxx',165,554.59,'zjutb')

statement ok
INSERT INTO tab0 VALUES(35,440,152.33,'vvlhz',363,200.14,'ifkei')

statement ok
INSERT INTO tab0 VALUES(36,85,636.6,'uojfd',974,356.39,'hievo')

statement ok
INSERT INTO tab0 VALUES(37,845,546.70,'xoruc',804,140.41,'nnsut')

statement ok
INSERT INTO tab0 VALUES(38,724,399.11,'jxicd',339,623.39,'fuzzf')

statement ok
INSERT INTO tab0 VALUES(39,971,979.36,'whydo',872,459.77,'vnyme')

statement ok
INSERT INTO tab0 VALUES(40,204,963.80,'znnzh',628,505.39,'pndmg')

statement ok
INSERT INTO tab0 VALUES(41,535,545.28,'cgwyq',888,447.60,'hfkmh')

statement ok
INSERT INTO tab0 VALUES(42,696,61.17,'sjktv',114,429.37,'usljv')

statement ok
INSERT INTO tab0 VALUES(43,163,617.59,'karor',77,672.43,'pyiqw')

statement ok
INSERT INTO tab0 VALUES(44,280,708.43,'eudcd',978,105.42,'rwjig')

statement ok
INSERT INTO tab0 VALUES(45,386,850.57,'gsowa',574,986.97,'wnokp')

statement ok
INSERT INTO tab0 VALUES(46,941,200.94,'ontgp',305,527.85,'rbgrs')

statement ok
INSERT INTO tab0 VALUES(47,643,182.66,'nthoe',417,520.7,'ubvzi')

statement ok
INSERT INTO tab0 VALUES(48,565,114.21,'nuafr',88,965.6,'toekp')

statement ok
INSERT INTO tab0 VALUES(49,274,831.47,'raqwl',552,688.74,'pfpev')

statement ok
INSERT INTO tab0 VALUES(50,955,310.92,'iblou',225,974.66,'khbde')

statement ok
INSERT INTO tab0 VALUES(51,534,296.73,'tuytk',830,185.14,'bycla')

statement ok
INSERT INTO tab0 VALUES(52,811,927.90,'skknj',522,389.38,'rjldv')

statement ok
INSERT INTO tab0 VALUES(53,578,357.36,'fsntn',11,987.60,'krlyr')

statement ok
INSERT INTO tab0 VALUES(54,745,385.14,'zdzba',691,327.14,'akwly')

statement ok
INSERT INTO tab0 VALUES(55,467,77.43,'ewhdg',758,348.60,'mflju')

statement ok
INSERT INTO tab0 VALUES(56,271,389.77,'zbcsg',346,186.98,'pkmpz')

statement ok
INSERT INTO tab0 VALUES(57,173,797.15,'fubug',641,810.77,'quqgh')

statement ok
INSERT INTO tab0 VALUES(58,812,920.11,'ajksp',13,643.11,'zviwj')

statement ok
INSERT INTO tab0 VALUES(59,568,143.90,'kilhb',138,191.90,'tzmpd')

statement ok
INSERT INTO tab0 VALUES(60,695,245.60,'zrjys',123,661.92,'indfp')

statement ok
INSERT INTO tab0 VALUES(61,436,21.22,'lvtui',631,592.94,'fvcgi')

statement ok
INSERT INTO tab0 VALUES(62,156,909.85,'hyfxf',10,479.91,'iqmef')

statement ok
INSERT INTO tab0 VALUES(63,464,615.79,'mycfr',411,395.0,'zumnx')

statement ok
INSERT INTO tab0 VALUES(64,336,739.64,'xqzvu',918,621.78,'evtzs')

statement ok
INSERT INTO tab0 VALUES(65,245,396.46,'gvkbv',671,264.33,'mshnz')

statement ok
INSERT INTO tab0 VALUES(66,282,845.89,'inlpc',994,890.37,'oezot')

statement ok
INSERT INTO tab0 VALUES(67,281,112.24,'zzjnm',515,143.35,'uuczo')

statement ok
INSERT INTO tab0 VALUES(68,946,618.67,'nwfqy',295,372.66,'vcdkx')

statement ok
INSERT INTO tab0 VALUES(69,977,793.28,'limkj',951,258.64,'jsffw')

statement ok
INSERT INTO tab0 VALUES(70,190,723.23,'agqea',781,434.80,'smwtv')

statement ok
INSERT INTO tab0 VALUES(71,646,752.89,'yfygg',891,115.91,'ioqia')

statement ok
INSERT INTO tab0 VALUES(72,778,119.95,'ytwad',319,722.12,'ooqle')

statement ok
INSERT INTO tab0 VALUES(73,508,581.55,'jjvda',158,506.7,'ftgyf')

statement ok
INSERT INTO tab0 VALUES(74,382,37.39,'wuvpe',684,167.6,'fasar')

statement ok
INSERT INTO tab0 VALUES(75,687,155.89,'ayyxl',478,494.14,'fetkq')

statement ok
INSERT INTO tab0 VALUES(76,581,993.26,'xfecx',555,978.25,'dydpc')

statement ok
INSERT INTO tab0 VALUES(77,216,629.68,'vmxak',484,436.33,'ycltp')

statement ok
INSERT INTO tab0 VALUES(78,860,782.40,'thmhg',518,646.46,'etqbd')

statement ok
INSERT INTO tab0 VALUES(79,31,439.87,'fybov',716,962.98,'pgqqk')

statement ok
INSERT INTO tab0 VALUES(80,610,481.85,'qrype',67,944.62,'vkxwq')

statement ok
INSERT INTO tab0 VALUES(81,978,305.55,'dsoiq',618,984.62,'xrgih')

statement ok
INSERT INTO tab0 VALUES(82,127,450.77,'flrdo',598,927.83,'begdm')

statement ok
INSERT INTO tab0 VALUES(83,803,225.98,'cnjuu',543,699.90,'dwavr')

statement ok
INSERT INTO tab0 VALUES(84,615,329.50,'tblrk',418,929.33,'jtvsl')

statement ok
INSERT INTO tab0 VALUES(85,168,480.57,'dofyh',748,581.65,'atotx')

statement ok
INSERT INTO tab0 VALUES(86,184,38.52,'cjxpt',738,568.51,'wfpzm')

statement ok
INSERT INTO tab0 VALUES(87,632,631.87,'ulope',399,387.84,'xqekk')

statement ok
INSERT INTO tab0 VALUES(88,849,779.47,'nslzq',676,740.94,'bdfdm')

statement ok
INSERT INTO tab0 VALUES(89,666,521.61,'ectcn',565,157.62,'rgxqp')

statement ok
INSERT INTO tab0 VALUES(90,533,39.16,'xtgod',252,624.33,'djgwl')

statement ok
INSERT INTO tab0 VALUES(91,645,276.67,'wzvnj',224,210.27,'prsdz')

statement ok
INSERT INTO tab0 VALUES(92,64,577.53,'qpgsi',400,681.54,'qhypi')

statement ok
INSERT INTO tab0 VALUES(93,850,300.8,'avppw',258,144.24,'slgcb')

statement ok
INSERT INTO tab0 VALUES(94,177,444.71,'psenj',955,653.61,'vpild')

statement ok
INSERT INTO tab0 VALUES(95,468,279.3,'ixtrf',457,845.14,'inylj')

statement ok
INSERT INTO tab0 VALUES(96,511,966.95,'gbopl',659,561.71,'jlhdz')

statement ok
INSERT INTO tab0 VALUES(97,593,183.86,'avrum',516,474.72,'ngatl')

statement ok
INSERT INTO tab0 VALUES(98,616,751.69,'pyshs',162,711.19,'nklax')

statement ok
INSERT INTO tab0 VALUES(99,227,260.9,'uonpa',37,477.90,'timfy')

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

statement ok
CREATE INDEX idx_tab1_0 on tab1 (col0)

statement ok
CREATE INDEX idx_tab1_1 on tab1 (col1)

statement ok
CREATE INDEX idx_tab1_3 on tab1 (col3)

statement ok
CREATE INDEX idx_tab1_4 on tab1 (col4)

statement ok
INSERT INTO tab1 SELECT * FROM tab0

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

statement ok
CREATE INDEX idx_tab2_0 ON tab2 (col4 DESC)

statement ok
CREATE INDEX idx_tab2_2 ON tab2 (col3,col0)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

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

statement ok
CREATE INDEX idx_tab3_0 ON tab3 (col4 DESC,col3 DESC)

statement ok
CREATE INDEX idx_tab3_2 ON tab3 (col3 DESC)

statement ok
CREATE INDEX idx_tab3_4 ON tab3 (col4 DESC,col1)

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 INDEX idx_tab4_0 ON tab4 (col0,col3 DESC)

statement ok
CREATE INDEX idx_tab4_2 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 562a2912b956066d1869d03513f6ce1d

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab0_226 AS SELECT pk, col0 FROM tab0 WHERE col3 >= 543

statement ok
CREATE VIEW view_2_tab0_226 AS SELECT pk, col0 FROM tab0 WHERE NOT (col3 >= 543)

statement ok
CREATE VIEW view_3_tab0_226 AS SELECT pk FROM view_1_tab0_226

query II rowsort label-0-1
SELECT pk, col0 FROM tab0 WHERE col3 >= 543
----
88 values hashing to 5abef3b0eeacb06fc38f8424137365d6

query II rowsort label-0-2
SELECT pk, col0 FROM tab0 WHERE NOT (col3 >= 543)
----
112 values hashing to 38d8469f00dba5cd11f81287055134dd

query II rowsort label-0-1
SELECT pk, col0 FROM view_1_tab0_226
----
88 values hashing to 5abef3b0eeacb06fc38f8424137365d6

query II rowsort label-0-2
SELECT pk, col0 FROM view_2_tab0_226
----
112 values hashing to 38d8469f00dba5cd11f81287055134dd

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 >= 543 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col3 >= 543)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_226 UNION ALL SELECT pk, col0 FROM view_2_tab0_226
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 >= 543 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col3 >= 543)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_226 UNION SELECT pk, col0 FROM view_2_tab0_226
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-0-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col3 >= 543 ) AS tab0_226
----
44 values hashing to ecb6cd388cbae3cc1bc36453db868c49

query I rowsort label-0-3
SELECT * FROM view_3_tab0_226
----
44 values hashing to ecb6cd388cbae3cc1bc36453db868c49

query I rowsort label-0-3
SELECT pk FROM tab0 WHERE col3 >= 543
----
44 values hashing to ecb6cd388cbae3cc1bc36453db868c49

statement ok
DROP VIEW view_1_tab0_226

statement ok
DROP VIEW view_2_tab0_226

statement ok
DROP VIEW view_3_tab0_226

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab1_226 AS SELECT pk, col0 FROM tab1 WHERE col3 >= 543

statement ok
CREATE VIEW view_2_tab1_226 AS SELECT pk, col0 FROM tab1 WHERE NOT (col3 >= 543)

statement ok
CREATE VIEW view_3_tab1_226 AS SELECT pk FROM view_1_tab1_226

query II rowsort label-0-1
SELECT pk, col0 FROM tab1 WHERE col3 >= 543
----
88 values hashing to 5abef3b0eeacb06fc38f8424137365d6

query II rowsort label-0-2
SELECT pk, col0 FROM tab1 WHERE NOT (col3 >= 543)
----
112 values hashing to 38d8469f00dba5cd11f81287055134dd

query II rowsort label-0-1
SELECT pk, col0 FROM view_1_tab1_226
----
88 values hashing to 5abef3b0eeacb06fc38f8424137365d6

query II rowsort label-0-2
SELECT pk, col0 FROM view_2_tab1_226
----
112 values hashing to 38d8469f00dba5cd11f81287055134dd

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 >= 543 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col3 >= 543)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_226 UNION ALL SELECT pk, col0 FROM view_2_tab1_226
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 >= 543 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col3 >= 543)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_226 UNION SELECT pk, col0 FROM view_2_tab1_226
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-0-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col3 >= 543 ) AS tab1_226
----
44 values hashing to ecb6cd388cbae3cc1bc36453db868c49

query I rowsort label-0-3
SELECT * FROM view_3_tab1_226
----
44 values hashing to ecb6cd388cbae3cc1bc36453db868c49

query I rowsort label-0-3
SELECT pk FROM tab1 WHERE col3 >= 543
----
44 values hashing to ecb6cd388cbae3cc1bc36453db868c49

statement ok
DROP VIEW view_1_tab1_226

statement ok
DROP VIEW view_2_tab1_226

statement ok
DROP VIEW view_3_tab1_226

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab2_226 AS SELECT pk, col0 FROM tab2 WHERE col3 >= 543

statement ok
CREATE VIEW view_2_tab2_226 AS SELECT pk, col0 FROM tab2 WHERE NOT (col3 >= 543)

statement ok
CREATE VIEW view_3_tab2_226 AS SELECT pk FROM view_1_tab2_226

query II rowsort label-0-1
SELECT pk, col0 FROM tab2 WHERE col3 >= 543
----
88 values hashing to 5abef3b0eeacb06fc38f8424137365d6

query II rowsort label-0-2
SELECT pk, col0 FROM tab2 WHERE NOT (col3 >= 543)
----
112 values hashing to 38d8469f00dba5cd11f81287055134dd

query II rowsort label-0-1
SELECT pk, col0 FROM view_1_tab2_226
----
88 values hashing to 5abef3b0eeacb06fc38f8424137365d6

query II rowsort label-0-2
SELECT pk, col0 FROM view_2_tab2_226
----
112 values hashing to 38d8469f00dba5cd11f81287055134dd

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 >= 543 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col3 >= 543)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_226 UNION ALL SELECT pk, col0 FROM view_2_tab2_226
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 >= 543 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col3 >= 543)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_226 UNION SELECT pk, col0 FROM view_2_tab2_226
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-0-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col3 >= 543 ) AS tab2_226
----
44 values hashing to ecb6cd388cbae3cc1bc36453db868c49

query I rowsort label-0-3
SELECT * FROM view_3_tab2_226
----
44 values hashing to ecb6cd388cbae3cc1bc36453db868c49

query I rowsort label-0-3
SELECT pk FROM tab2 WHERE col3 >= 543
----
44 values hashing to ecb6cd388cbae3cc1bc36453db868c49

statement ok
DROP VIEW view_1_tab2_226

statement ok
DROP VIEW view_2_tab2_226

statement ok
DROP VIEW view_3_tab2_226

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab3_226 AS SELECT pk, col0 FROM tab3 WHERE col3 >= 543

statement ok
CREATE VIEW view_2_tab3_226 AS SELECT pk, col0 FROM tab3 WHERE NOT (col3 >= 543)

statement ok
CREATE VIEW view_3_tab3_226 AS SELECT pk FROM view_1_tab3_226

query II rowsort label-0-1
SELECT pk, col0 FROM tab3 WHERE col3 >= 543
----
88 values hashing to 5abef3b0eeacb06fc38f8424137365d6

query II rowsort label-0-2
SELECT pk, col0 FROM tab3 WHERE NOT (col3 >= 543)
----
112 values hashing to 38d8469f00dba5cd11f81287055134dd

query II rowsort label-0-1
SELECT pk, col0 FROM view_1_tab3_226
----
88 values hashing to 5abef3b0eeacb06fc38f8424137365d6

query II rowsort label-0-2
SELECT pk, col0 FROM view_2_tab3_226
----
112 values hashing to 38d8469f00dba5cd11f81287055134dd

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 >= 543 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col3 >= 543)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_226 UNION ALL SELECT pk, col0 FROM view_2_tab3_226
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 >= 543 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col3 >= 543)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_226 UNION SELECT pk, col0 FROM view_2_tab3_226
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-0-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col3 >= 543 ) AS tab3_226
----
44 values hashing to ecb6cd388cbae3cc1bc36453db868c49

query I rowsort label-0-3
SELECT * FROM view_3_tab3_226
----
44 values hashing to ecb6cd388cbae3cc1bc36453db868c49

query I rowsort label-0-3
SELECT pk FROM tab3 WHERE col3 >= 543
----
44 values hashing to ecb6cd388cbae3cc1bc36453db868c49

statement ok
DROP VIEW view_1_tab3_226

statement ok
DROP VIEW view_2_tab3_226

statement ok
DROP VIEW view_3_tab3_226

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab4_226 AS SELECT pk, col0 FROM tab4 WHERE col3 >= 543

statement ok
CREATE VIEW view_2_tab4_226 AS SELECT pk, col0 FROM tab4 WHERE NOT (col3 >= 543)

statement ok
CREATE VIEW view_3_tab4_226 AS SELECT pk FROM view_1_tab4_226

query II rowsort label-0-1
SELECT pk, col0 FROM tab4 WHERE col3 >= 543
----
88 values hashing to 5abef3b0eeacb06fc38f8424137365d6

query II rowsort label-0-2
SELECT pk, col0 FROM tab4 WHERE NOT (col3 >= 543)
----
112 values hashing to 38d8469f00dba5cd11f81287055134dd

query II rowsort label-0-1
SELECT pk, col0 FROM view_1_tab4_226
----
88 values hashing to 5abef3b0eeacb06fc38f8424137365d6

query II rowsort label-0-2
SELECT pk, col0 FROM view_2_tab4_226
----
112 values hashing to 38d8469f00dba5cd11f81287055134dd

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 >= 543 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col3 >= 543)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_226 UNION ALL SELECT pk, col0 FROM view_2_tab4_226
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 >= 543 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col3 >= 543)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_226 UNION SELECT pk, col0 FROM view_2_tab4_226
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-0-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col3 >= 543 ) AS tab4_226
----
44 values hashing to ecb6cd388cbae3cc1bc36453db868c49

query I rowsort label-0-3
SELECT * FROM view_3_tab4_226
----
44 values hashing to ecb6cd388cbae3cc1bc36453db868c49

query I rowsort label-0-3
SELECT pk FROM tab4 WHERE col3 >= 543
----
44 values hashing to ecb6cd388cbae3cc1bc36453db868c49

statement ok
DROP VIEW view_1_tab4_226

statement ok
DROP VIEW view_2_tab4_226

statement ok
DROP VIEW view_3_tab4_226

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab0_227 AS SELECT pk, col0 FROM tab0 WHERE (col0 > 340)

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

statement ok
CREATE VIEW view_3_tab0_227 AS SELECT pk FROM view_1_tab0_227

query II rowsort label-100-1
SELECT pk, col0 FROM tab0 WHERE (col0 > 340)
----
138 values hashing to 0ff24b957a1eacdad09f5418890793b0

query II rowsort label-100-2
SELECT pk, col0 FROM tab0 WHERE NOT ((col0 > 340))
----
62 values hashing to 04b78fbc5068237754a9af810df5b472

query II rowsort label-100-1
SELECT pk, col0 FROM view_1_tab0_227
----
138 values hashing to 0ff24b957a1eacdad09f5418890793b0

query II rowsort label-100-2
SELECT pk, col0 FROM view_2_tab0_227
----
62 values hashing to 04b78fbc5068237754a9af810df5b472

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col0 > 340) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT ((col0 > 340))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_227 UNION ALL SELECT pk, col0 FROM view_2_tab0_227
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col0 > 340) UNION SELECT pk, col0 FROM tab0 WHERE NOT ((col0 > 340))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_227 UNION SELECT pk, col0 FROM view_2_tab0_227
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE (col0 > 340) ) AS tab0_227
----
69 values hashing to af786110acd754dac0ba7c543f7fd08f

query I rowsort label-100-3
SELECT * FROM view_3_tab0_227
----
69 values hashing to af786110acd754dac0ba7c543f7fd08f

query I rowsort label-100-3
SELECT pk FROM tab0 WHERE (col0 > 340)
----
69 values hashing to af786110acd754dac0ba7c543f7fd08f

statement ok
DROP VIEW view_1_tab0_227

statement ok
DROP VIEW view_2_tab0_227

statement ok
DROP VIEW view_3_tab0_227

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab1_227 AS SELECT pk, col0 FROM tab1 WHERE (col0 > 340)

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

statement ok
CREATE VIEW view_3_tab1_227 AS SELECT pk FROM view_1_tab1_227

query II rowsort label-100-1
SELECT pk, col0 FROM tab1 WHERE (col0 > 340)
----
138 values hashing to 0ff24b957a1eacdad09f5418890793b0

query II rowsort label-100-2
SELECT pk, col0 FROM tab1 WHERE NOT ((col0 > 340))
----
62 values hashing to 04b78fbc5068237754a9af810df5b472

query II rowsort label-100-1
SELECT pk, col0 FROM view_1_tab1_227
----
138 values hashing to 0ff24b957a1eacdad09f5418890793b0

query II rowsort label-100-2
SELECT pk, col0 FROM view_2_tab1_227
----
62 values hashing to 04b78fbc5068237754a9af810df5b472

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col0 > 340) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT ((col0 > 340))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_227 UNION ALL SELECT pk, col0 FROM view_2_tab1_227
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col0 > 340) UNION SELECT pk, col0 FROM tab1 WHERE NOT ((col0 > 340))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_227 UNION SELECT pk, col0 FROM view_2_tab1_227
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE (col0 > 340) ) AS tab1_227
----
69 values hashing to af786110acd754dac0ba7c543f7fd08f

query I rowsort label-100-3
SELECT * FROM view_3_tab1_227
----
69 values hashing to af786110acd754dac0ba7c543f7fd08f

query I rowsort label-100-3
SELECT pk FROM tab1 WHERE (col0 > 340)
----
69 values hashing to af786110acd754dac0ba7c543f7fd08f

statement ok
DROP VIEW view_1_tab1_227

statement ok
DROP VIEW view_2_tab1_227

statement ok
DROP VIEW view_3_tab1_227

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab2_227 AS SELECT pk, col0 FROM tab2 WHERE (col0 > 340)

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

statement ok
CREATE VIEW view_3_tab2_227 AS SELECT pk FROM view_1_tab2_227

query II rowsort label-100-1
SELECT pk, col0 FROM tab2 WHERE (col0 > 340)
----
138 values hashing to 0ff24b957a1eacdad09f5418890793b0

query II rowsort label-100-2
SELECT pk, col0 FROM tab2 WHERE NOT ((col0 > 340))
----
62 values hashing to 04b78fbc5068237754a9af810df5b472

query II rowsort label-100-1
SELECT pk, col0 FROM view_1_tab2_227
----
138 values hashing to 0ff24b957a1eacdad09f5418890793b0

query II rowsort label-100-2
SELECT pk, col0 FROM view_2_tab2_227
----
62 values hashing to 04b78fbc5068237754a9af810df5b472

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col0 > 340) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT ((col0 > 340))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_227 UNION ALL SELECT pk, col0 FROM view_2_tab2_227
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col0 > 340) UNION SELECT pk, col0 FROM tab2 WHERE NOT ((col0 > 340))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_227 UNION SELECT pk, col0 FROM view_2_tab2_227
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE (col0 > 340) ) AS tab2_227
----
69 values hashing to af786110acd754dac0ba7c543f7fd08f

query I rowsort label-100-3
SELECT * FROM view_3_tab2_227
----
69 values hashing to af786110acd754dac0ba7c543f7fd08f

query I rowsort label-100-3
SELECT pk FROM tab2 WHERE (col0 > 340)
----
69 values hashing to af786110acd754dac0ba7c543f7fd08f

statement ok
DROP VIEW view_1_tab2_227

statement ok
DROP VIEW view_2_tab2_227

statement ok
DROP VIEW view_3_tab2_227

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab3_227 AS SELECT pk, col0 FROM tab3 WHERE (col0 > 340)

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

statement ok
CREATE VIEW view_3_tab3_227 AS SELECT pk FROM view_1_tab3_227

query II rowsort label-100-1
SELECT pk, col0 FROM tab3 WHERE (col0 > 340)
----
138 values hashing to 0ff24b957a1eacdad09f5418890793b0

query II rowsort label-100-2
SELECT pk, col0 FROM tab3 WHERE NOT ((col0 > 340))
----
62 values hashing to 04b78fbc5068237754a9af810df5b472

query II rowsort label-100-1
SELECT pk, col0 FROM view_1_tab3_227
----
138 values hashing to 0ff24b957a1eacdad09f5418890793b0

query II rowsort label-100-2
SELECT pk, col0 FROM view_2_tab3_227
----
62 values hashing to 04b78fbc5068237754a9af810df5b472

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col0 > 340) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT ((col0 > 340))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_227 UNION ALL SELECT pk, col0 FROM view_2_tab3_227
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col0 > 340) UNION SELECT pk, col0 FROM tab3 WHERE NOT ((col0 > 340))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_227 UNION SELECT pk, col0 FROM view_2_tab3_227
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE (col0 > 340) ) AS tab3_227
----
69 values hashing to af786110acd754dac0ba7c543f7fd08f

query I rowsort label-100-3
SELECT * FROM view_3_tab3_227
----
69 values hashing to af786110acd754dac0ba7c543f7fd08f

query I rowsort label-100-3
SELECT pk FROM tab3 WHERE (col0 > 340)
----
69 values hashing to af786110acd754dac0ba7c543f7fd08f

statement ok
DROP VIEW view_1_tab3_227

statement ok
DROP VIEW view_2_tab3_227

statement ok
DROP VIEW view_3_tab3_227

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab4_227 AS SELECT pk, col0 FROM tab4 WHERE (col0 > 340)

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

statement ok
CREATE VIEW view_3_tab4_227 AS SELECT pk FROM view_1_tab4_227

query II rowsort label-100-1
SELECT pk, col0 FROM tab4 WHERE (col0 > 340)
----
138 values hashing to 0ff24b957a1eacdad09f5418890793b0

query II rowsort label-100-2
SELECT pk, col0 FROM tab4 WHERE NOT ((col0 > 340))
----
62 values hashing to 04b78fbc5068237754a9af810df5b472

query II rowsort label-100-1
SELECT pk, col0 FROM view_1_tab4_227
----
138 values hashing to 0ff24b957a1eacdad09f5418890793b0

query II rowsort label-100-2
SELECT pk, col0 FROM view_2_tab4_227
----
62 values hashing to 04b78fbc5068237754a9af810df5b472

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col0 > 340) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT ((col0 > 340))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_227 UNION ALL SELECT pk, col0 FROM view_2_tab4_227
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col0 > 340) UNION SELECT pk, col0 FROM tab4 WHERE NOT ((col0 > 340))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_227 UNION SELECT pk, col0 FROM view_2_tab4_227
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE (col0 > 340) ) AS tab4_227
----
69 values hashing to af786110acd754dac0ba7c543f7fd08f

query I rowsort label-100-3
SELECT * FROM view_3_tab4_227
----
69 values hashing to af786110acd754dac0ba7c543f7fd08f

query I rowsort label-100-3
SELECT pk FROM tab4 WHERE (col0 > 340)
----
69 values hashing to af786110acd754dac0ba7c543f7fd08f

statement ok
DROP VIEW view_1_tab4_227

statement ok
DROP VIEW view_2_tab4_227

statement ok
DROP VIEW view_3_tab4_227

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab0_228 AS SELECT pk, col0 FROM tab0 WHERE ((((col4 IN (962.87,413.75,599.80))) AND col0 IN (165,818,88) AND col3 < 934 AND (col3 <= 220) OR col3 < 269))

statement ok
CREATE VIEW view_2_tab0_228 AS SELECT pk, col0 FROM tab0 WHERE NOT (((((col4 IN (962.87,413.75,599.80))) AND col0 IN (165,818,88) AND col3 < 934 AND (col3 <= 220) OR col3 < 269)))

statement ok
CREATE VIEW view_3_tab0_228 AS SELECT pk FROM view_1_tab0_228

query II rowsort label-200-1
SELECT pk, col0 FROM tab0 WHERE ((((col4 IN (962.87,413.75,599.80))) AND col0 IN (165,818,88) AND col3 < 934 AND (col3 <= 220) OR col3 < 269))
----
58 values hashing to 626683bcb2b2ecff3573dd78cfdfd455

query II rowsort label-200-2
SELECT pk, col0 FROM tab0 WHERE NOT (((((col4 IN (962.87,413.75,599.80))) AND col0 IN (165,818,88) AND col3 < 934 AND (col3 <= 220) OR col3 < 269)))
----
142 values hashing to a927983c69b0f184440fb3f91aca7740

query II rowsort label-200-1
SELECT pk, col0 FROM view_1_tab0_228
----
58 values hashing to 626683bcb2b2ecff3573dd78cfdfd455

query II rowsort label-200-2
SELECT pk, col0 FROM view_2_tab0_228
----
142 values hashing to a927983c69b0f184440fb3f91aca7740

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE ((((col4 IN (962.87,413.75,599.80))) AND col0 IN (165,818,88) AND col3 < 934 AND (col3 <= 220) OR col3 < 269)) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (((((col4 IN (962.87,413.75,599.80))) AND col0 IN (165,818,88) AND col3 < 934 AND (col3 <= 220) OR col3 < 269)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_228 UNION ALL SELECT pk, col0 FROM view_2_tab0_228
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE ((((col4 IN (962.87,413.75,599.80))) AND col0 IN (165,818,88) AND col3 < 934 AND (col3 <= 220) OR col3 < 269)) UNION SELECT pk, col0 FROM tab0 WHERE NOT (((((col4 IN (962.87,413.75,599.80))) AND col0 IN (165,818,88) AND col3 < 934 AND (col3 <= 220) OR col3 < 269)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_228 UNION SELECT pk, col0 FROM view_2_tab0_228
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE ((((col4 IN (962.87,413.75,599.80))) AND col0 IN (165,818,88) AND col3 < 934 AND (col3 <= 220) OR col3 < 269)) ) AS tab0_228
----
29 values hashing to 2dc70d6a908574e3e9c0a53f0b1934b4

query I rowsort label-200-3
SELECT * FROM view_3_tab0_228
----
29 values hashing to 2dc70d6a908574e3e9c0a53f0b1934b4

query I rowsort label-200-3
SELECT pk FROM tab0 WHERE ((((col4 IN (962.87,413.75,599.80))) AND col0 IN (165,818,88) AND col3 < 934 AND (col3 <= 220) OR col3 < 269))
----
29 values hashing to 2dc70d6a908574e3e9c0a53f0b1934b4

statement ok
DROP VIEW view_1_tab0_228

statement ok
DROP VIEW view_2_tab0_228

statement ok
DROP VIEW view_3_tab0_228

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab1_228 AS SELECT pk, col0 FROM tab1 WHERE ((((col4 IN (962.87,413.75,599.80))) AND col0 IN (165,818,88) AND col3 < 934 AND (col3 <= 220) OR col3 < 269))

statement ok
CREATE VIEW view_2_tab1_228 AS SELECT pk, col0 FROM tab1 WHERE NOT (((((col4 IN (962.87,413.75,599.80))) AND col0 IN (165,818,88) AND col3 < 934 AND (col3 <= 220) OR col3 < 269)))

statement ok
CREATE VIEW view_3_tab1_228 AS SELECT pk FROM view_1_tab1_228

query II rowsort label-200-1
SELECT pk, col0 FROM tab1 WHERE ((((col4 IN (962.87,413.75,599.80))) AND col0 IN (165,818,88) AND col3 < 934 AND (col3 <= 220) OR col3 < 269))
----
58 values hashing to 626683bcb2b2ecff3573dd78cfdfd455

query II rowsort label-200-2
SELECT pk, col0 FROM tab1 WHERE NOT (((((col4 IN (962.87,413.75,599.80))) AND col0 IN (165,818,88) AND col3 < 934 AND (col3 <= 220) OR col3 < 269)))
----
142 values hashing to a927983c69b0f184440fb3f91aca7740

query II rowsort label-200-1
SELECT pk, col0 FROM view_1_tab1_228
----
58 values hashing to 626683bcb2b2ecff3573dd78cfdfd455

query II rowsort label-200-2
SELECT pk, col0 FROM view_2_tab1_228
----
142 values hashing to a927983c69b0f184440fb3f91aca7740

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE ((((col4 IN (962.87,413.75,599.80))) AND col0 IN (165,818,88) AND col3 < 934 AND (col3 <= 220) OR col3 < 269)) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (((((col4 IN (962.87,413.75,599.80))) AND col0 IN (165,818,88) AND col3 < 934 AND (col3 <= 220) OR col3 < 269)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_228 UNION ALL SELECT pk, col0 FROM view_2_tab1_228
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE ((((col4 IN (962.87,413.75,599.80))) AND col0 IN (165,818,88) AND col3 < 934 AND (col3 <= 220) OR col3 < 269)) UNION SELECT pk, col0 FROM tab1 WHERE NOT (((((col4 IN (962.87,413.75,599.80))) AND col0 IN (165,818,88) AND col3 < 934 AND (col3 <= 220) OR col3 < 269)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_228 UNION SELECT pk, col0 FROM view_2_tab1_228
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE ((((col4 IN (962.87,413.75,599.80))) AND col0 IN (165,818,88) AND col3 < 934 AND (col3 <= 220) OR col3 < 269)) ) AS tab1_228
----
29 values hashing to 2dc70d6a908574e3e9c0a53f0b1934b4

query I rowsort label-200-3
SELECT * FROM view_3_tab1_228
----
29 values hashing to 2dc70d6a908574e3e9c0a53f0b1934b4

query I rowsort label-200-3
SELECT pk FROM tab1 WHERE ((((col4 IN (962.87,413.75,599.80))) AND col0 IN (165,818,88) AND col3 < 934 AND (col3 <= 220) OR col3 < 269))
----
29 values hashing to 2dc70d6a908574e3e9c0a53f0b1934b4

statement ok
DROP VIEW view_1_tab1_228

statement ok
DROP VIEW view_2_tab1_228

statement ok
DROP VIEW view_3_tab1_228

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab2_228 AS SELECT pk, col0 FROM tab2 WHERE ((((col4 IN (962.87,413.75,599.80))) AND col0 IN (165,818,88) AND col3 < 934 AND (col3 <= 220) OR col3 < 269))

statement ok
CREATE VIEW view_2_tab2_228 AS SELECT pk, col0 FROM tab2 WHERE NOT (((((col4 IN (962.87,413.75,599.80))) AND col0 IN (165,818,88) AND col3 < 934 AND (col3 <= 220) OR col3 < 269)))

statement ok
CREATE VIEW view_3_tab2_228 AS SELECT pk FROM view_1_tab2_228

query II rowsort label-200-1
SELECT pk, col0 FROM tab2 WHERE ((((col4 IN (962.87,413.75,599.80))) AND col0 IN (165,818,88) AND col3 < 934 AND (col3 <= 220) OR col3 < 269))
----
58 values hashing to 626683bcb2b2ecff3573dd78cfdfd455

query II rowsort label-200-2
SELECT pk, col0 FROM tab2 WHERE NOT (((((col4 IN (962.87,413.75,599.80))) AND col0 IN (165,818,88) AND col3 < 934 AND (col3 <= 220) OR col3 < 269)))
----
142 values hashing to a927983c69b0f184440fb3f91aca7740

query II rowsort label-200-1
SELECT pk, col0 FROM view_1_tab2_228
----
58 values hashing to 626683bcb2b2ecff3573dd78cfdfd455

query II rowsort label-200-2
SELECT pk, col0 FROM view_2_tab2_228
----
142 values hashing to a927983c69b0f184440fb3f91aca7740

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE ((((col4 IN (962.87,413.75,599.80))) AND col0 IN (165,818,88) AND col3 < 934 AND (col3 <= 220) OR col3 < 269)) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (((((col4 IN (962.87,413.75,599.80))) AND col0 IN (165,818,88) AND col3 < 934 AND (col3 <= 220) OR col3 < 269)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_228 UNION ALL SELECT pk, col0 FROM view_2_tab2_228
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE ((((col4 IN (962.87,413.75,599.80))) AND col0 IN (165,818,88) AND col3 < 934 AND (col3 <= 220) OR col3 < 269)) UNION SELECT pk, col0 FROM tab2 WHERE NOT (((((col4 IN (962.87,413.75,599.80))) AND col0 IN (165,818,88) AND col3 < 934 AND (col3 <= 220) OR col3 < 269)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_228 UNION SELECT pk, col0 FROM view_2_tab2_228
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE ((((col4 IN (962.87,413.75,599.80))) AND col0 IN (165,818,88) AND col3 < 934 AND (col3 <= 220) OR col3 < 269)) ) AS tab2_228
----
29 values hashing to 2dc70d6a908574e3e9c0a53f0b1934b4

query I rowsort label-200-3
SELECT * FROM view_3_tab2_228
----
29 values hashing to 2dc70d6a908574e3e9c0a53f0b1934b4

query I rowsort label-200-3
SELECT pk FROM tab2 WHERE ((((col4 IN (962.87,413.75,599.80))) AND col0 IN (165,818,88) AND col3 < 934 AND (col3 <= 220) OR col3 < 269))
----
29 values hashing to 2dc70d6a908574e3e9c0a53f0b1934b4

statement ok
DROP VIEW view_1_tab2_228

statement ok
DROP VIEW view_2_tab2_228

statement ok
DROP VIEW view_3_tab2_228

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab3_228 AS SELECT pk, col0 FROM tab3 WHERE ((((col4 IN (962.87,413.75,599.80))) AND col0 IN (165,818,88) AND col3 < 934 AND (col3 <= 220) OR col3 < 269))

statement ok
CREATE VIEW view_2_tab3_228 AS SELECT pk, col0 FROM tab3 WHERE NOT (((((col4 IN (962.87,413.75,599.80))) AND col0 IN (165,818,88) AND col3 < 934 AND (col3 <= 220) OR col3 < 269)))

statement ok
CREATE VIEW view_3_tab3_228 AS SELECT pk FROM view_1_tab3_228

query II rowsort label-200-1
SELECT pk, col0 FROM tab3 WHERE ((((col4 IN (962.87,413.75,599.80))) AND col0 IN (165,818,88) AND col3 < 934 AND (col3 <= 220) OR col3 < 269))
----
58 values hashing to 626683bcb2b2ecff3573dd78cfdfd455

query II rowsort label-200-2
SELECT pk, col0 FROM tab3 WHERE NOT (((((col4 IN (962.87,413.75,599.80))) AND col0 IN (165,818,88) AND col3 < 934 AND (col3 <= 220) OR col3 < 269)))
----
142 values hashing to a927983c69b0f184440fb3f91aca7740

query II rowsort label-200-1
SELECT pk, col0 FROM view_1_tab3_228
----
58 values hashing to 626683bcb2b2ecff3573dd78cfdfd455

query II rowsort label-200-2
SELECT pk, col0 FROM view_2_tab3_228
----
142 values hashing to a927983c69b0f184440fb3f91aca7740

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE ((((col4 IN (962.87,413.75,599.80))) AND col0 IN (165,818,88) AND col3 < 934 AND (col3 <= 220) OR col3 < 269)) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (((((col4 IN (962.87,413.75,599.80))) AND col0 IN (165,818,88) AND col3 < 934 AND (col3 <= 220) OR col3 < 269)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_228 UNION ALL SELECT pk, col0 FROM view_2_tab3_228
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE ((((col4 IN (962.87,413.75,599.80))) AND col0 IN (165,818,88) AND col3 < 934 AND (col3 <= 220) OR col3 < 269)) UNION SELECT pk, col0 FROM tab3 WHERE NOT (((((col4 IN (962.87,413.75,599.80))) AND col0 IN (165,818,88) AND col3 < 934 AND (col3 <= 220) OR col3 < 269)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_228 UNION SELECT pk, col0 FROM view_2_tab3_228
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE ((((col4 IN (962.87,413.75,599.80))) AND col0 IN (165,818,88) AND col3 < 934 AND (col3 <= 220) OR col3 < 269)) ) AS tab3_228
----
29 values hashing to 2dc70d6a908574e3e9c0a53f0b1934b4

query I rowsort label-200-3
SELECT * FROM view_3_tab3_228
----
29 values hashing to 2dc70d6a908574e3e9c0a53f0b1934b4

query I rowsort label-200-3
SELECT pk FROM tab3 WHERE ((((col4 IN (962.87,413.75,599.80))) AND col0 IN (165,818,88) AND col3 < 934 AND (col3 <= 220) OR col3 < 269))
----
29 values hashing to 2dc70d6a908574e3e9c0a53f0b1934b4

statement ok
DROP VIEW view_1_tab3_228

statement ok
DROP VIEW view_2_tab3_228

statement ok
DROP VIEW view_3_tab3_228

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab4_228 AS SELECT pk, col0 FROM tab4 WHERE ((((col4 IN (962.87,413.75,599.80))) AND col0 IN (165,818,88) AND col3 < 934 AND (col3 <= 220) OR col3 < 269))

statement ok
CREATE VIEW view_2_tab4_228 AS SELECT pk, col0 FROM tab4 WHERE NOT (((((col4 IN (962.87,413.75,599.80))) AND col0 IN (165,818,88) AND col3 < 934 AND (col3 <= 220) OR col3 < 269)))

statement ok
CREATE VIEW view_3_tab4_228 AS SELECT pk FROM view_1_tab4_228

query II rowsort label-200-1
SELECT pk, col0 FROM tab4 WHERE ((((col4 IN (962.87,413.75,599.80))) AND col0 IN (165,818,88) AND col3 < 934 AND (col3 <= 220) OR col3 < 269))
----
58 values hashing to 626683bcb2b2ecff3573dd78cfdfd455

query II rowsort label-200-2
SELECT pk, col0 FROM tab4 WHERE NOT (((((col4 IN (962.87,413.75,599.80))) AND col0 IN (165,818,88) AND col3 < 934 AND (col3 <= 220) OR col3 < 269)))
----
142 values hashing to a927983c69b0f184440fb3f91aca7740

query II rowsort label-200-1
SELECT pk, col0 FROM view_1_tab4_228
----
58 values hashing to 626683bcb2b2ecff3573dd78cfdfd455

query II rowsort label-200-2
SELECT pk, col0 FROM view_2_tab4_228
----
142 values hashing to a927983c69b0f184440fb3f91aca7740

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE ((((col4 IN (962.87,413.75,599.80))) AND col0 IN (165,818,88) AND col3 < 934 AND (col3 <= 220) OR col3 < 269)) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (((((col4 IN (962.87,413.75,599.80))) AND col0 IN (165,818,88) AND col3 < 934 AND (col3 <= 220) OR col3 < 269)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_228 UNION ALL SELECT pk, col0 FROM view_2_tab4_228
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE ((((col4 IN (962.87,413.75,599.80))) AND col0 IN (165,818,88) AND col3 < 934 AND (col3 <= 220) OR col3 < 269)) UNION SELECT pk, col0 FROM tab4 WHERE NOT (((((col4 IN (962.87,413.75,599.80))) AND col0 IN (165,818,88) AND col3 < 934 AND (col3 <= 220) OR col3 < 269)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_228 UNION SELECT pk, col0 FROM view_2_tab4_228
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE ((((col4 IN (962.87,413.75,599.80))) AND col0 IN (165,818,88) AND col3 < 934 AND (col3 <= 220) OR col3 < 269)) ) AS tab4_228
----
29 values hashing to 2dc70d6a908574e3e9c0a53f0b1934b4

query I rowsort label-200-3
SELECT * FROM view_3_tab4_228
----
29 values hashing to 2dc70d6a908574e3e9c0a53f0b1934b4

query I rowsort label-200-3
SELECT pk FROM tab4 WHERE ((((col4 IN (962.87,413.75,599.80))) AND col0 IN (165,818,88) AND col3 < 934 AND (col3 <= 220) OR col3 < 269))
----
29 values hashing to 2dc70d6a908574e3e9c0a53f0b1934b4

statement ok
DROP VIEW view_1_tab4_228

statement ok
DROP VIEW view_2_tab4_228

statement ok
DROP VIEW view_3_tab4_228

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab0_229 AS SELECT pk, col0 FROM tab0 WHERE col1 >= 58.87 OR col0 > 203 OR (col3 IS NULL)

statement ok
CREATE VIEW view_2_tab0_229 AS SELECT pk, col0 FROM tab0 WHERE NOT (col1 >= 58.87 OR col0 > 203 OR (col3 IS NULL))

statement ok
CREATE VIEW view_3_tab0_229 AS SELECT pk FROM view_1_tab0_229

query II rowsort label-300-1
SELECT pk, col0 FROM tab0 WHERE col1 >= 58.87 OR col0 > 203 OR (col3 IS NULL)
----
196 values hashing to f2bdc763a5e6fddaac248ccc0cae0613

query II rowsort label-300-2
SELECT pk, col0 FROM tab0 WHERE NOT (col1 >= 58.87 OR col0 > 203 OR (col3 IS NULL))
----
30
84
86
184

query II rowsort label-300-1
SELECT pk, col0 FROM view_1_tab0_229
----
196 values hashing to f2bdc763a5e6fddaac248ccc0cae0613

query II rowsort label-300-2
SELECT pk, col0 FROM view_2_tab0_229
----
30
84
86
184

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col1 >= 58.87 OR col0 > 203 OR (col3 IS NULL) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col1 >= 58.87 OR col0 > 203 OR (col3 IS NULL))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_229 UNION ALL SELECT pk, col0 FROM view_2_tab0_229
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col1 >= 58.87 OR col0 > 203 OR (col3 IS NULL) UNION SELECT pk, col0 FROM tab0 WHERE NOT (col1 >= 58.87 OR col0 > 203 OR (col3 IS NULL))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_229 UNION SELECT pk, col0 FROM view_2_tab0_229
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col1 >= 58.87 OR col0 > 203 OR (col3 IS NULL) ) AS tab0_229
----
98 values hashing to d89e31820a5a0d4130ee76a78dea1398

query I rowsort label-300-3
SELECT * FROM view_3_tab0_229
----
98 values hashing to d89e31820a5a0d4130ee76a78dea1398

query I rowsort label-300-3
SELECT pk FROM tab0 WHERE col1 >= 58.87 OR col0 > 203 OR (col3 IS NULL)
----
98 values hashing to d89e31820a5a0d4130ee76a78dea1398

statement ok
DROP VIEW view_1_tab0_229

statement ok
DROP VIEW view_2_tab0_229

statement ok
DROP VIEW view_3_tab0_229

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab1_229 AS SELECT pk, col0 FROM tab1 WHERE col1 >= 58.87 OR col0 > 203 OR (col3 IS NULL)

statement ok
CREATE VIEW view_2_tab1_229 AS SELECT pk, col0 FROM tab1 WHERE NOT (col1 >= 58.87 OR col0 > 203 OR (col3 IS NULL))

statement ok
CREATE VIEW view_3_tab1_229 AS SELECT pk FROM view_1_tab1_229

query II rowsort label-300-1
SELECT pk, col0 FROM tab1 WHERE col1 >= 58.87 OR col0 > 203 OR (col3 IS NULL)
----
196 values hashing to f2bdc763a5e6fddaac248ccc0cae0613

query II rowsort label-300-2
SELECT pk, col0 FROM tab1 WHERE NOT (col1 >= 58.87 OR col0 > 203 OR (col3 IS NULL))
----
30
84
86
184

query II rowsort label-300-1
SELECT pk, col0 FROM view_1_tab1_229
----
196 values hashing to f2bdc763a5e6fddaac248ccc0cae0613

query II rowsort label-300-2
SELECT pk, col0 FROM view_2_tab1_229
----
30
84
86
184

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col1 >= 58.87 OR col0 > 203 OR (col3 IS NULL) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col1 >= 58.87 OR col0 > 203 OR (col3 IS NULL))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_229 UNION ALL SELECT pk, col0 FROM view_2_tab1_229
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col1 >= 58.87 OR col0 > 203 OR (col3 IS NULL) UNION SELECT pk, col0 FROM tab1 WHERE NOT (col1 >= 58.87 OR col0 > 203 OR (col3 IS NULL))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_229 UNION SELECT pk, col0 FROM view_2_tab1_229
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col1 >= 58.87 OR col0 > 203 OR (col3 IS NULL) ) AS tab1_229
----
98 values hashing to d89e31820a5a0d4130ee76a78dea1398

query I rowsort label-300-3
SELECT * FROM view_3_tab1_229
----
98 values hashing to d89e31820a5a0d4130ee76a78dea1398

query I rowsort label-300-3
SELECT pk FROM tab1 WHERE col1 >= 58.87 OR col0 > 203 OR (col3 IS NULL)
----
98 values hashing to d89e31820a5a0d4130ee76a78dea1398

statement ok
DROP VIEW view_1_tab1_229

statement ok
DROP VIEW view_2_tab1_229

statement ok
DROP VIEW view_3_tab1_229

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab2_229 AS SELECT pk, col0 FROM tab2 WHERE col1 >= 58.87 OR col0 > 203 OR (col3 IS NULL)

statement ok
CREATE VIEW view_2_tab2_229 AS SELECT pk, col0 FROM tab2 WHERE NOT (col1 >= 58.87 OR col0 > 203 OR (col3 IS NULL))

statement ok
CREATE VIEW view_3_tab2_229 AS SELECT pk FROM view_1_tab2_229

query II rowsort label-300-1
SELECT pk, col0 FROM tab2 WHERE col1 >= 58.87 OR col0 > 203 OR (col3 IS NULL)
----
196 values hashing to f2bdc763a5e6fddaac248ccc0cae0613

query II rowsort label-300-2
SELECT pk, col0 FROM tab2 WHERE NOT (col1 >= 58.87 OR col0 > 203 OR (col3 IS NULL))
----
30
84
86
184

query II rowsort label-300-1
SELECT pk, col0 FROM view_1_tab2_229
----
196 values hashing to f2bdc763a5e6fddaac248ccc0cae0613

query II rowsort label-300-2
SELECT pk, col0 FROM view_2_tab2_229
----
30
84
86
184

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col1 >= 58.87 OR col0 > 203 OR (col3 IS NULL) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col1 >= 58.87 OR col0 > 203 OR (col3 IS NULL))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_229 UNION ALL SELECT pk, col0 FROM view_2_tab2_229
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col1 >= 58.87 OR col0 > 203 OR (col3 IS NULL) UNION SELECT pk, col0 FROM tab2 WHERE NOT (col1 >= 58.87 OR col0 > 203 OR (col3 IS NULL))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_229 UNION SELECT pk, col0 FROM view_2_tab2_229
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col1 >= 58.87 OR col0 > 203 OR (col3 IS NULL) ) AS tab2_229
----
98 values hashing to d89e31820a5a0d4130ee76a78dea1398

query I rowsort label-300-3
SELECT * FROM view_3_tab2_229
----
98 values hashing to d89e31820a5a0d4130ee76a78dea1398

query I rowsort label-300-3
SELECT pk FROM tab2 WHERE col1 >= 58.87 OR col0 > 203 OR (col3 IS NULL)
----
98 values hashing to d89e31820a5a0d4130ee76a78dea1398

statement ok
DROP VIEW view_1_tab2_229

statement ok
DROP VIEW view_2_tab2_229

statement ok
DROP VIEW view_3_tab2_229

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab3_229 AS SELECT pk, col0 FROM tab3 WHERE col1 >= 58.87 OR col0 > 203 OR (col3 IS NULL)

statement ok
CREATE VIEW view_2_tab3_229 AS SELECT pk, col0 FROM tab3 WHERE NOT (col1 >= 58.87 OR col0 > 203 OR (col3 IS NULL))

statement ok
CREATE VIEW view_3_tab3_229 AS SELECT pk FROM view_1_tab3_229

query II rowsort label-300-1
SELECT pk, col0 FROM tab3 WHERE col1 >= 58.87 OR col0 > 203 OR (col3 IS NULL)
----
196 values hashing to f2bdc763a5e6fddaac248ccc0cae0613

query II rowsort label-300-2
SELECT pk, col0 FROM tab3 WHERE NOT (col1 >= 58.87 OR col0 > 203 OR (col3 IS NULL))
----
30
84
86
184

query II rowsort label-300-1
SELECT pk, col0 FROM view_1_tab3_229
----
196 values hashing to f2bdc763a5e6fddaac248ccc0cae0613

query II rowsort label-300-2
SELECT pk, col0 FROM view_2_tab3_229
----
30
84
86
184

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col1 >= 58.87 OR col0 > 203 OR (col3 IS NULL) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col1 >= 58.87 OR col0 > 203 OR (col3 IS NULL))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_229 UNION ALL SELECT pk, col0 FROM view_2_tab3_229
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col1 >= 58.87 OR col0 > 203 OR (col3 IS NULL) UNION SELECT pk, col0 FROM tab3 WHERE NOT (col1 >= 58.87 OR col0 > 203 OR (col3 IS NULL))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_229 UNION SELECT pk, col0 FROM view_2_tab3_229
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col1 >= 58.87 OR col0 > 203 OR (col3 IS NULL) ) AS tab3_229
----
98 values hashing to d89e31820a5a0d4130ee76a78dea1398

query I rowsort label-300-3
SELECT * FROM view_3_tab3_229
----
98 values hashing to d89e31820a5a0d4130ee76a78dea1398

query I rowsort label-300-3
SELECT pk FROM tab3 WHERE col1 >= 58.87 OR col0 > 203 OR (col3 IS NULL)
----
98 values hashing to d89e31820a5a0d4130ee76a78dea1398

statement ok
DROP VIEW view_1_tab3_229

statement ok
DROP VIEW view_2_tab3_229

statement ok
DROP VIEW view_3_tab3_229

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab4_229 AS SELECT pk, col0 FROM tab4 WHERE col1 >= 58.87 OR col0 > 203 OR (col3 IS NULL)

statement ok
CREATE VIEW view_2_tab4_229 AS SELECT pk, col0 FROM tab4 WHERE NOT (col1 >= 58.87 OR col0 > 203 OR (col3 IS NULL))

statement ok
CREATE VIEW view_3_tab4_229 AS SELECT pk FROM view_1_tab4_229

query II rowsort label-300-1
SELECT pk, col0 FROM tab4 WHERE col1 >= 58.87 OR col0 > 203 OR (col3 IS NULL)
----
196 values hashing to f2bdc763a5e6fddaac248ccc0cae0613

query II rowsort label-300-2
SELECT pk, col0 FROM tab4 WHERE NOT (col1 >= 58.87 OR col0 > 203 OR (col3 IS NULL))
----
30
84
86
184

query II rowsort label-300-1
SELECT pk, col0 FROM view_1_tab4_229
----
196 values hashing to f2bdc763a5e6fddaac248ccc0cae0613

query II rowsort label-300-2
SELECT pk, col0 FROM view_2_tab4_229
----
30
84
86
184

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col1 >= 58.87 OR col0 > 203 OR (col3 IS NULL) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col1 >= 58.87 OR col0 > 203 OR (col3 IS NULL))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_229 UNION ALL SELECT pk, col0 FROM view_2_tab4_229
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col1 >= 58.87 OR col0 > 203 OR (col3 IS NULL) UNION SELECT pk, col0 FROM tab4 WHERE NOT (col1 >= 58.87 OR col0 > 203 OR (col3 IS NULL))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_229 UNION SELECT pk, col0 FROM view_2_tab4_229
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col1 >= 58.87 OR col0 > 203 OR (col3 IS NULL) ) AS tab4_229
----
98 values hashing to d89e31820a5a0d4130ee76a78dea1398

query I rowsort label-300-3
SELECT * FROM view_3_tab4_229
----
98 values hashing to d89e31820a5a0d4130ee76a78dea1398

query I rowsort label-300-3
SELECT pk FROM tab4 WHERE col1 >= 58.87 OR col0 > 203 OR (col3 IS NULL)
----
98 values hashing to d89e31820a5a0d4130ee76a78dea1398

statement ok
DROP VIEW view_1_tab4_229

statement ok
DROP VIEW view_2_tab4_229

statement ok
DROP VIEW view_3_tab4_229

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab0_230 AS SELECT pk, col0 FROM tab0 WHERE col1 <= 731.67

statement ok
CREATE VIEW view_2_tab0_230 AS SELECT pk, col0 FROM tab0 WHERE NOT (col1 <= 731.67)

statement ok
CREATE VIEW view_3_tab0_230 AS SELECT pk FROM view_1_tab0_230

query II rowsort label-400-1
SELECT pk, col0 FROM tab0 WHERE col1 <= 731.67
----
136 values hashing to 4f3652ebefe31ae2e49c820131d461a3

query II rowsort label-400-2
SELECT pk, col0 FROM tab0 WHERE NOT (col1 <= 731.67)
----
64 values hashing to a3ff183802d8524f8f6aea162b7dc1fd

query II rowsort label-400-1
SELECT pk, col0 FROM view_1_tab0_230
----
136 values hashing to 4f3652ebefe31ae2e49c820131d461a3

query II rowsort label-400-2
SELECT pk, col0 FROM view_2_tab0_230
----
64 values hashing to a3ff183802d8524f8f6aea162b7dc1fd

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col1 <= 731.67 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col1 <= 731.67)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_230 UNION ALL SELECT pk, col0 FROM view_2_tab0_230
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col1 <= 731.67 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col1 <= 731.67)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_230 UNION SELECT pk, col0 FROM view_2_tab0_230
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col1 <= 731.67 ) AS tab0_230
----
68 values hashing to 70303cedfaac8eb3a35a0988de63236e

query I rowsort label-400-3
SELECT * FROM view_3_tab0_230
----
68 values hashing to 70303cedfaac8eb3a35a0988de63236e

query I rowsort label-400-3
SELECT pk FROM tab0 WHERE col1 <= 731.67
----
68 values hashing to 70303cedfaac8eb3a35a0988de63236e

statement ok
DROP VIEW view_1_tab0_230

statement ok
DROP VIEW view_2_tab0_230

statement ok
DROP VIEW view_3_tab0_230

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab1_230 AS SELECT pk, col0 FROM tab1 WHERE col1 <= 731.67

statement ok
CREATE VIEW view_2_tab1_230 AS SELECT pk, col0 FROM tab1 WHERE NOT (col1 <= 731.67)

statement ok
CREATE VIEW view_3_tab1_230 AS SELECT pk FROM view_1_tab1_230

query II rowsort label-400-1
SELECT pk, col0 FROM tab1 WHERE col1 <= 731.67
----
136 values hashing to 4f3652ebefe31ae2e49c820131d461a3

query II rowsort label-400-2
SELECT pk, col0 FROM tab1 WHERE NOT (col1 <= 731.67)
----
64 values hashing to a3ff183802d8524f8f6aea162b7dc1fd

query II rowsort label-400-1
SELECT pk, col0 FROM view_1_tab1_230
----
136 values hashing to 4f3652ebefe31ae2e49c820131d461a3

query II rowsort label-400-2
SELECT pk, col0 FROM view_2_tab1_230
----
64 values hashing to a3ff183802d8524f8f6aea162b7dc1fd

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col1 <= 731.67 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col1 <= 731.67)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_230 UNION ALL SELECT pk, col0 FROM view_2_tab1_230
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col1 <= 731.67 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col1 <= 731.67)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_230 UNION SELECT pk, col0 FROM view_2_tab1_230
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col1 <= 731.67 ) AS tab1_230
----
68 values hashing to 70303cedfaac8eb3a35a0988de63236e

query I rowsort label-400-3
SELECT * FROM view_3_tab1_230
----
68 values hashing to 70303cedfaac8eb3a35a0988de63236e

query I rowsort label-400-3
SELECT pk FROM tab1 WHERE col1 <= 731.67
----
68 values hashing to 70303cedfaac8eb3a35a0988de63236e

statement ok
DROP VIEW view_1_tab1_230

statement ok
DROP VIEW view_2_tab1_230

statement ok
DROP VIEW view_3_tab1_230

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab2_230 AS SELECT pk, col0 FROM tab2 WHERE col1 <= 731.67

statement ok
CREATE VIEW view_2_tab2_230 AS SELECT pk, col0 FROM tab2 WHERE NOT (col1 <= 731.67)

statement ok
CREATE VIEW view_3_tab2_230 AS SELECT pk FROM view_1_tab2_230

query II rowsort label-400-1
SELECT pk, col0 FROM tab2 WHERE col1 <= 731.67
----
136 values hashing to 4f3652ebefe31ae2e49c820131d461a3

query II rowsort label-400-2
SELECT pk, col0 FROM tab2 WHERE NOT (col1 <= 731.67)
----
64 values hashing to a3ff183802d8524f8f6aea162b7dc1fd

query II rowsort label-400-1
SELECT pk, col0 FROM view_1_tab2_230
----
136 values hashing to 4f3652ebefe31ae2e49c820131d461a3

query II rowsort label-400-2
SELECT pk, col0 FROM view_2_tab2_230
----
64 values hashing to a3ff183802d8524f8f6aea162b7dc1fd

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col1 <= 731.67 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col1 <= 731.67)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_230 UNION ALL SELECT pk, col0 FROM view_2_tab2_230
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col1 <= 731.67 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col1 <= 731.67)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_230 UNION SELECT pk, col0 FROM view_2_tab2_230
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col1 <= 731.67 ) AS tab2_230
----
68 values hashing to 70303cedfaac8eb3a35a0988de63236e

query I rowsort label-400-3
SELECT * FROM view_3_tab2_230
----
68 values hashing to 70303cedfaac8eb3a35a0988de63236e

query I rowsort label-400-3
SELECT pk FROM tab2 WHERE col1 <= 731.67
----
68 values hashing to 70303cedfaac8eb3a35a0988de63236e

statement ok
DROP VIEW view_1_tab2_230

statement ok
DROP VIEW view_2_tab2_230

statement ok
DROP VIEW view_3_tab2_230

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab3_230 AS SELECT pk, col0 FROM tab3 WHERE col1 <= 731.67

statement ok
CREATE VIEW view_2_tab3_230 AS SELECT pk, col0 FROM tab3 WHERE NOT (col1 <= 731.67)

statement ok
CREATE VIEW view_3_tab3_230 AS SELECT pk FROM view_1_tab3_230

query II rowsort label-400-1
SELECT pk, col0 FROM tab3 WHERE col1 <= 731.67
----
136 values hashing to 4f3652ebefe31ae2e49c820131d461a3

query II rowsort label-400-2
SELECT pk, col0 FROM tab3 WHERE NOT (col1 <= 731.67)
----
64 values hashing to a3ff183802d8524f8f6aea162b7dc1fd

query II rowsort label-400-1
SELECT pk, col0 FROM view_1_tab3_230
----
136 values hashing to 4f3652ebefe31ae2e49c820131d461a3

query II rowsort label-400-2
SELECT pk, col0 FROM view_2_tab3_230
----
64 values hashing to a3ff183802d8524f8f6aea162b7dc1fd

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col1 <= 731.67 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col1 <= 731.67)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_230 UNION ALL SELECT pk, col0 FROM view_2_tab3_230
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col1 <= 731.67 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col1 <= 731.67)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_230 UNION SELECT pk, col0 FROM view_2_tab3_230
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col1 <= 731.67 ) AS tab3_230
----
68 values hashing to 70303cedfaac8eb3a35a0988de63236e

query I rowsort label-400-3
SELECT * FROM view_3_tab3_230
----
68 values hashing to 70303cedfaac8eb3a35a0988de63236e

query I rowsort label-400-3
SELECT pk FROM tab3 WHERE col1 <= 731.67
----
68 values hashing to 70303cedfaac8eb3a35a0988de63236e

statement ok
DROP VIEW view_1_tab3_230

statement ok
DROP VIEW view_2_tab3_230

statement ok
DROP VIEW view_3_tab3_230

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab4_230 AS SELECT pk, col0 FROM tab4 WHERE col1 <= 731.67

statement ok
CREATE VIEW view_2_tab4_230 AS SELECT pk, col0 FROM tab4 WHERE NOT (col1 <= 731.67)

statement ok
CREATE VIEW view_3_tab4_230 AS SELECT pk FROM view_1_tab4_230

query II rowsort label-400-1
SELECT pk, col0 FROM tab4 WHERE col1 <= 731.67
----
136 values hashing to 4f3652ebefe31ae2e49c820131d461a3

query II rowsort label-400-2
SELECT pk, col0 FROM tab4 WHERE NOT (col1 <= 731.67)
----
64 values hashing to a3ff183802d8524f8f6aea162b7dc1fd

query II rowsort label-400-1
SELECT pk, col0 FROM view_1_tab4_230
----
136 values hashing to 4f3652ebefe31ae2e49c820131d461a3

query II rowsort label-400-2
SELECT pk, col0 FROM view_2_tab4_230
----
64 values hashing to a3ff183802d8524f8f6aea162b7dc1fd

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col1 <= 731.67 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col1 <= 731.67)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_230 UNION ALL SELECT pk, col0 FROM view_2_tab4_230
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col1 <= 731.67 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col1 <= 731.67)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_230 UNION SELECT pk, col0 FROM view_2_tab4_230
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col1 <= 731.67 ) AS tab4_230
----
68 values hashing to 70303cedfaac8eb3a35a0988de63236e

query I rowsort label-400-3
SELECT * FROM view_3_tab4_230
----
68 values hashing to 70303cedfaac8eb3a35a0988de63236e

query I rowsort label-400-3
SELECT pk FROM tab4 WHERE col1 <= 731.67
----
68 values hashing to 70303cedfaac8eb3a35a0988de63236e

statement ok
DROP VIEW view_1_tab4_230

statement ok
DROP VIEW view_2_tab4_230

statement ok
DROP VIEW view_3_tab4_230

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab0_231 AS SELECT pk, col0 FROM tab0 WHERE col4 <= 503.11

statement ok
CREATE VIEW view_2_tab0_231 AS SELECT pk, col0 FROM tab0 WHERE NOT (col4 <= 503.11)

statement ok
CREATE VIEW view_3_tab0_231 AS SELECT pk FROM view_1_tab0_231

query II rowsort label-500-1
SELECT pk, col0 FROM tab0 WHERE col4 <= 503.11
----
88 values hashing to 6f313f3bfdc90c73ff4e7b78aabf24a3

query II rowsort label-500-2
SELECT pk, col0 FROM tab0 WHERE NOT (col4 <= 503.11)
----
112 values hashing to 3bcc30bf72040232cf9b2329abebb65f

query II rowsort label-500-1
SELECT pk, col0 FROM view_1_tab0_231
----
88 values hashing to 6f313f3bfdc90c73ff4e7b78aabf24a3

query II rowsort label-500-2
SELECT pk, col0 FROM view_2_tab0_231
----
112 values hashing to 3bcc30bf72040232cf9b2329abebb65f

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col4 <= 503.11 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col4 <= 503.11)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_231 UNION ALL SELECT pk, col0 FROM view_2_tab0_231
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col4 <= 503.11 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col4 <= 503.11)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_231 UNION SELECT pk, col0 FROM view_2_tab0_231
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col4 <= 503.11 ) AS tab0_231
----
44 values hashing to 53aead8468651de48ae7ee99ac9d4914

query I rowsort label-500-3
SELECT * FROM view_3_tab0_231
----
44 values hashing to 53aead8468651de48ae7ee99ac9d4914

query I rowsort label-500-3
SELECT pk FROM tab0 WHERE col4 <= 503.11
----
44 values hashing to 53aead8468651de48ae7ee99ac9d4914

statement ok
DROP VIEW view_1_tab0_231

statement ok
DROP VIEW view_2_tab0_231

statement ok
DROP VIEW view_3_tab0_231

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab1_231 AS SELECT pk, col0 FROM tab1 WHERE col4 <= 503.11

statement ok
CREATE VIEW view_2_tab1_231 AS SELECT pk, col0 FROM tab1 WHERE NOT (col4 <= 503.11)

statement ok
CREATE VIEW view_3_tab1_231 AS SELECT pk FROM view_1_tab1_231

query II rowsort label-500-1
SELECT pk, col0 FROM tab1 WHERE col4 <= 503.11
----
88 values hashing to 6f313f3bfdc90c73ff4e7b78aabf24a3

query II rowsort label-500-2
SELECT pk, col0 FROM tab1 WHERE NOT (col4 <= 503.11)
----
112 values hashing to 3bcc30bf72040232cf9b2329abebb65f

query II rowsort label-500-1
SELECT pk, col0 FROM view_1_tab1_231
----
88 values hashing to 6f313f3bfdc90c73ff4e7b78aabf24a3

query II rowsort label-500-2
SELECT pk, col0 FROM view_2_tab1_231
----
112 values hashing to 3bcc30bf72040232cf9b2329abebb65f

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col4 <= 503.11 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col4 <= 503.11)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_231 UNION ALL SELECT pk, col0 FROM view_2_tab1_231
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col4 <= 503.11 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col4 <= 503.11)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_231 UNION SELECT pk, col0 FROM view_2_tab1_231
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col4 <= 503.11 ) AS tab1_231
----
44 values hashing to 53aead8468651de48ae7ee99ac9d4914

query I rowsort label-500-3
SELECT * FROM view_3_tab1_231
----
44 values hashing to 53aead8468651de48ae7ee99ac9d4914

query I rowsort label-500-3
SELECT pk FROM tab1 WHERE col4 <= 503.11
----
44 values hashing to 53aead8468651de48ae7ee99ac9d4914

statement ok
DROP VIEW view_1_tab1_231

statement ok
DROP VIEW view_2_tab1_231

statement ok
DROP VIEW view_3_tab1_231

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab2_231 AS SELECT pk, col0 FROM tab2 WHERE col4 <= 503.11

statement ok
CREATE VIEW view_2_tab2_231 AS SELECT pk, col0 FROM tab2 WHERE NOT (col4 <= 503.11)

statement ok
CREATE VIEW view_3_tab2_231 AS SELECT pk FROM view_1_tab2_231

query II rowsort label-500-1
SELECT pk, col0 FROM tab2 WHERE col4 <= 503.11
----
88 values hashing to 6f313f3bfdc90c73ff4e7b78aabf24a3

query II rowsort label-500-2
SELECT pk, col0 FROM tab2 WHERE NOT (col4 <= 503.11)
----
112 values hashing to 3bcc30bf72040232cf9b2329abebb65f

query II rowsort label-500-1
SELECT pk, col0 FROM view_1_tab2_231
----
88 values hashing to 6f313f3bfdc90c73ff4e7b78aabf24a3

query II rowsort label-500-2
SELECT pk, col0 FROM view_2_tab2_231
----
112 values hashing to 3bcc30bf72040232cf9b2329abebb65f

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col4 <= 503.11 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col4 <= 503.11)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_231 UNION ALL SELECT pk, col0 FROM view_2_tab2_231
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col4 <= 503.11 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col4 <= 503.11)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_231 UNION SELECT pk, col0 FROM view_2_tab2_231
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col4 <= 503.11 ) AS tab2_231
----
44 values hashing to 53aead8468651de48ae7ee99ac9d4914

query I rowsort label-500-3
SELECT * FROM view_3_tab2_231
----
44 values hashing to 53aead8468651de48ae7ee99ac9d4914

query I rowsort label-500-3
SELECT pk FROM tab2 WHERE col4 <= 503.11
----
44 values hashing to 53aead8468651de48ae7ee99ac9d4914

statement ok
DROP VIEW view_1_tab2_231

statement ok
DROP VIEW view_2_tab2_231

statement ok
DROP VIEW view_3_tab2_231

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab3_231 AS SELECT pk, col0 FROM tab3 WHERE col4 <= 503.11

statement ok
CREATE VIEW view_2_tab3_231 AS SELECT pk, col0 FROM tab3 WHERE NOT (col4 <= 503.11)

statement ok
CREATE VIEW view_3_tab3_231 AS SELECT pk FROM view_1_tab3_231

query II rowsort label-500-1
SELECT pk, col0 FROM tab3 WHERE col4 <= 503.11
----
88 values hashing to 6f313f3bfdc90c73ff4e7b78aabf24a3

query II rowsort label-500-2
SELECT pk, col0 FROM tab3 WHERE NOT (col4 <= 503.11)
----
112 values hashing to 3bcc30bf72040232cf9b2329abebb65f

query II rowsort label-500-1
SELECT pk, col0 FROM view_1_tab3_231
----
88 values hashing to 6f313f3bfdc90c73ff4e7b78aabf24a3

query II rowsort label-500-2
SELECT pk, col0 FROM view_2_tab3_231
----
112 values hashing to 3bcc30bf72040232cf9b2329abebb65f

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col4 <= 503.11 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col4 <= 503.11)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_231 UNION ALL SELECT pk, col0 FROM view_2_tab3_231
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col4 <= 503.11 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col4 <= 503.11)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_231 UNION SELECT pk, col0 FROM view_2_tab3_231
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col4 <= 503.11 ) AS tab3_231
----
44 values hashing to 53aead8468651de48ae7ee99ac9d4914

query I rowsort label-500-3
SELECT * FROM view_3_tab3_231
----
44 values hashing to 53aead8468651de48ae7ee99ac9d4914

query I rowsort label-500-3
SELECT pk FROM tab3 WHERE col4 <= 503.11
----
44 values hashing to 53aead8468651de48ae7ee99ac9d4914

statement ok
DROP VIEW view_1_tab3_231

statement ok
DROP VIEW view_2_tab3_231

statement ok
DROP VIEW view_3_tab3_231

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab4_231 AS SELECT pk, col0 FROM tab4 WHERE col4 <= 503.11

statement ok
CREATE VIEW view_2_tab4_231 AS SELECT pk, col0 FROM tab4 WHERE NOT (col4 <= 503.11)

statement ok
CREATE VIEW view_3_tab4_231 AS SELECT pk FROM view_1_tab4_231

query II rowsort label-500-1
SELECT pk, col0 FROM tab4 WHERE col4 <= 503.11
----
88 values hashing to 6f313f3bfdc90c73ff4e7b78aabf24a3

query II rowsort label-500-2
SELECT pk, col0 FROM tab4 WHERE NOT (col4 <= 503.11)
----
112 values hashing to 3bcc30bf72040232cf9b2329abebb65f

query II rowsort label-500-1
SELECT pk, col0 FROM view_1_tab4_231
----
88 values hashing to 6f313f3bfdc90c73ff4e7b78aabf24a3

query II rowsort label-500-2
SELECT pk, col0 FROM view_2_tab4_231
----
112 values hashing to 3bcc30bf72040232cf9b2329abebb65f

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col4 <= 503.11 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col4 <= 503.11)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_231 UNION ALL SELECT pk, col0 FROM view_2_tab4_231
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col4 <= 503.11 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col4 <= 503.11)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_231 UNION SELECT pk, col0 FROM view_2_tab4_231
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col4 <= 503.11 ) AS tab4_231
----
44 values hashing to 53aead8468651de48ae7ee99ac9d4914

query I rowsort label-500-3
SELECT * FROM view_3_tab4_231
----
44 values hashing to 53aead8468651de48ae7ee99ac9d4914

query I rowsort label-500-3
SELECT pk FROM tab4 WHERE col4 <= 503.11
----
44 values hashing to 53aead8468651de48ae7ee99ac9d4914

statement ok
DROP VIEW view_1_tab4_231

statement ok
DROP VIEW view_2_tab4_231

statement ok
DROP VIEW view_3_tab4_231

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab0_232 AS SELECT pk, col0 FROM tab0 WHERE (((col1 <= 384.28))) AND (col3 >= 446 AND (((col0 = 750 AND (col3 > 874) OR ((col3 >= 247) AND ((col0 >= 716)))) OR (col1 < 535.60 AND col3 IN (811,704,477) AND ((col3 > 50 OR (col1 = 468.42 OR col4 > 399.87))))))) AND col1 < 887.39 OR col3 = 379

statement ok
CREATE VIEW view_2_tab0_232 AS SELECT pk, col0 FROM tab0 WHERE NOT ((((col1 <= 384.28))) AND (col3 >= 446 AND (((col0 = 750 AND (col3 > 874) OR ((col3 >= 247) AND ((col0 >= 716)))) OR (col1 < 535.60 AND col3 IN (811,704,477) AND ((col3 > 50 OR (col1 = 468.42 OR col4 > 399.87))))))) AND col1 < 887.39 OR col3 = 379)

statement ok
CREATE VIEW view_3_tab0_232 AS SELECT pk FROM view_1_tab0_232

query II rowsort label-600-1
SELECT pk, col0 FROM tab0 WHERE (((col1 <= 384.28))) AND (col3 >= 446 AND (((col0 = 750 AND (col3 > 874) OR ((col3 >= 247) AND ((col0 >= 716)))) OR (col1 < 535.60 AND col3 IN (811,704,477) AND ((col3 > 50 OR (col1 = 468.42 OR col4 > 399.87))))))) AND col1 < 887.39 OR col3 = 379
----
19
869
81
978
83
803

query II rowsort label-600-2
SELECT pk, col0 FROM tab0 WHERE NOT ((((col1 <= 384.28))) AND (col3 >= 446 AND (((col0 = 750 AND (col3 > 874) OR ((col3 >= 247) AND ((col0 >= 716)))) OR (col1 < 535.60 AND col3 IN (811,704,477) AND ((col3 > 50 OR (col1 = 468.42 OR col4 > 399.87))))))) AND col1 < 887.39 OR col3 = 379)
----
194 values hashing to 48108111990fb0497fedeccbad595097

query II rowsort label-600-1
SELECT pk, col0 FROM view_1_tab0_232
----
19
869
81
978
83
803

query II rowsort label-600-2
SELECT pk, col0 FROM view_2_tab0_232
----
194 values hashing to 48108111990fb0497fedeccbad595097

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (((col1 <= 384.28))) AND (col3 >= 446 AND (((col0 = 750 AND (col3 > 874) OR ((col3 >= 247) AND ((col0 >= 716)))) OR (col1 < 535.60 AND col3 IN (811,704,477) AND ((col3 > 50 OR (col1 = 468.42 OR col4 > 399.87))))))) AND col1 < 887.39 OR col3 = 379 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT ((((col1 <= 384.28))) AND (col3 >= 446 AND (((col0 = 750 AND (col3 > 874) OR ((col3 >= 247) AND ((col0 >= 716)))) OR (col1 < 535.60 AND col3 IN (811,704,477) AND ((col3 > 50 OR (col1 = 468.42 OR col4 > 399.87))))))) AND col1 < 887.39 OR col3 = 379)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_232 UNION ALL SELECT pk, col0 FROM view_2_tab0_232
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (((col1 <= 384.28))) AND (col3 >= 446 AND (((col0 = 750 AND (col3 > 874) OR ((col3 >= 247) AND ((col0 >= 716)))) OR (col1 < 535.60 AND col3 IN (811,704,477) AND ((col3 > 50 OR (col1 = 468.42 OR col4 > 399.87))))))) AND col1 < 887.39 OR col3 = 379 UNION SELECT pk, col0 FROM tab0 WHERE NOT ((((col1 <= 384.28))) AND (col3 >= 446 AND (((col0 = 750 AND (col3 > 874) OR ((col3 >= 247) AND ((col0 >= 716)))) OR (col1 < 535.60 AND col3 IN (811,704,477) AND ((col3 > 50 OR (col1 = 468.42 OR col4 > 399.87))))))) AND col1 < 887.39 OR col3 = 379)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_232 UNION SELECT pk, col0 FROM view_2_tab0_232
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE (((col1 <= 384.28))) AND (col3 >= 446 AND (((col0 = 750 AND (col3 > 874) OR ((col3 >= 247) AND ((col0 >= 716)))) OR (col1 < 535.60 AND col3 IN (811,704,477) AND ((col3 > 50 OR (col1 = 468.42 OR col4 > 399.87))))))) AND col1 < 887.39 OR col3 = 379 ) AS tab0_232
----
19
81
83

query I rowsort label-600-3
SELECT * FROM view_3_tab0_232
----
19
81
83

query I rowsort label-600-3
SELECT pk FROM tab0 WHERE (((col1 <= 384.28))) AND (col3 >= 446 AND (((col0 = 750 AND (col3 > 874) OR ((col3 >= 247) AND ((col0 >= 716)))) OR (col1 < 535.60 AND col3 IN (811,704,477) AND ((col3 > 50 OR (col1 = 468.42 OR col4 > 399.87))))))) AND col1 < 887.39 OR col3 = 379
----
19
81
83

statement ok
DROP VIEW view_1_tab0_232

statement ok
DROP VIEW view_2_tab0_232

statement ok
DROP VIEW view_3_tab0_232

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab1_232 AS SELECT pk, col0 FROM tab1 WHERE (((col1 <= 384.28))) AND (col3 >= 446 AND (((col0 = 750 AND (col3 > 874) OR ((col3 >= 247) AND ((col0 >= 716)))) OR (col1 < 535.60 AND col3 IN (811,704,477) AND ((col3 > 50 OR (col1 = 468.42 OR col4 > 399.87))))))) AND col1 < 887.39 OR col3 = 379

statement ok
CREATE VIEW view_2_tab1_232 AS SELECT pk, col0 FROM tab1 WHERE NOT ((((col1 <= 384.28))) AND (col3 >= 446 AND (((col0 = 750 AND (col3 > 874) OR ((col3 >= 247) AND ((col0 >= 716)))) OR (col1 < 535.60 AND col3 IN (811,704,477) AND ((col3 > 50 OR (col1 = 468.42 OR col4 > 399.87))))))) AND col1 < 887.39 OR col3 = 379)

statement ok
CREATE VIEW view_3_tab1_232 AS SELECT pk FROM view_1_tab1_232

query II rowsort label-600-1
SELECT pk, col0 FROM tab1 WHERE (((col1 <= 384.28))) AND (col3 >= 446 AND (((col0 = 750 AND (col3 > 874) OR ((col3 >= 247) AND ((col0 >= 716)))) OR (col1 < 535.60 AND col3 IN (811,704,477) AND ((col3 > 50 OR (col1 = 468.42 OR col4 > 399.87))))))) AND col1 < 887.39 OR col3 = 379
----
19
869
81
978
83
803

query II rowsort label-600-2
SELECT pk, col0 FROM tab1 WHERE NOT ((((col1 <= 384.28))) AND (col3 >= 446 AND (((col0 = 750 AND (col3 > 874) OR ((col3 >= 247) AND ((col0 >= 716)))) OR (col1 < 535.60 AND col3 IN (811,704,477) AND ((col3 > 50 OR (col1 = 468.42 OR col4 > 399.87))))))) AND col1 < 887.39 OR col3 = 379)
----
194 values hashing to 48108111990fb0497fedeccbad595097

query II rowsort label-600-1
SELECT pk, col0 FROM view_1_tab1_232
----
19
869
81
978
83
803

query II rowsort label-600-2
SELECT pk, col0 FROM view_2_tab1_232
----
194 values hashing to 48108111990fb0497fedeccbad595097

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (((col1 <= 384.28))) AND (col3 >= 446 AND (((col0 = 750 AND (col3 > 874) OR ((col3 >= 247) AND ((col0 >= 716)))) OR (col1 < 535.60 AND col3 IN (811,704,477) AND ((col3 > 50 OR (col1 = 468.42 OR col4 > 399.87))))))) AND col1 < 887.39 OR col3 = 379 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT ((((col1 <= 384.28))) AND (col3 >= 446 AND (((col0 = 750 AND (col3 > 874) OR ((col3 >= 247) AND ((col0 >= 716)))) OR (col1 < 535.60 AND col3 IN (811,704,477) AND ((col3 > 50 OR (col1 = 468.42 OR col4 > 399.87))))))) AND col1 < 887.39 OR col3 = 379)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_232 UNION ALL SELECT pk, col0 FROM view_2_tab1_232
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (((col1 <= 384.28))) AND (col3 >= 446 AND (((col0 = 750 AND (col3 > 874) OR ((col3 >= 247) AND ((col0 >= 716)))) OR (col1 < 535.60 AND col3 IN (811,704,477) AND ((col3 > 50 OR (col1 = 468.42 OR col4 > 399.87))))))) AND col1 < 887.39 OR col3 = 379 UNION SELECT pk, col0 FROM tab1 WHERE NOT ((((col1 <= 384.28))) AND (col3 >= 446 AND (((col0 = 750 AND (col3 > 874) OR ((col3 >= 247) AND ((col0 >= 716)))) OR (col1 < 535.60 AND col3 IN (811,704,477) AND ((col3 > 50 OR (col1 = 468.42 OR col4 > 399.87))))))) AND col1 < 887.39 OR col3 = 379)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_232 UNION SELECT pk, col0 FROM view_2_tab1_232
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE (((col1 <= 384.28))) AND (col3 >= 446 AND (((col0 = 750 AND (col3 > 874) OR ((col3 >= 247) AND ((col0 >= 716)))) OR (col1 < 535.60 AND col3 IN (811,704,477) AND ((col3 > 50 OR (col1 = 468.42 OR col4 > 399.87))))))) AND col1 < 887.39 OR col3 = 379 ) AS tab1_232
----
19
81
83

query I rowsort label-600-3
SELECT * FROM view_3_tab1_232
----
19
81
83

query I rowsort label-600-3
SELECT pk FROM tab1 WHERE (((col1 <= 384.28))) AND (col3 >= 446 AND (((col0 = 750 AND (col3 > 874) OR ((col3 >= 247) AND ((col0 >= 716)))) OR (col1 < 535.60 AND col3 IN (811,704,477) AND ((col3 > 50 OR (col1 = 468.42 OR col4 > 399.87))))))) AND col1 < 887.39 OR col3 = 379
----
19
81
83

statement ok
DROP VIEW view_1_tab1_232

statement ok
DROP VIEW view_2_tab1_232

statement ok
DROP VIEW view_3_tab1_232

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab2_232 AS SELECT pk, col0 FROM tab2 WHERE (((col1 <= 384.28))) AND (col3 >= 446 AND (((col0 = 750 AND (col3 > 874) OR ((col3 >= 247) AND ((col0 >= 716)))) OR (col1 < 535.60 AND col3 IN (811,704,477) AND ((col3 > 50 OR (col1 = 468.42 OR col4 > 399.87))))))) AND col1 < 887.39 OR col3 = 379

statement ok
CREATE VIEW view_2_tab2_232 AS SELECT pk, col0 FROM tab2 WHERE NOT ((((col1 <= 384.28))) AND (col3 >= 446 AND (((col0 = 750 AND (col3 > 874) OR ((col3 >= 247) AND ((col0 >= 716)))) OR (col1 < 535.60 AND col3 IN (811,704,477) AND ((col3 > 50 OR (col1 = 468.42 OR col4 > 399.87))))))) AND col1 < 887.39 OR col3 = 379)

statement ok
CREATE VIEW view_3_tab2_232 AS SELECT pk FROM view_1_tab2_232

query II rowsort label-600-1
SELECT pk, col0 FROM tab2 WHERE (((col1 <= 384.28))) AND (col3 >= 446 AND (((col0 = 750 AND (col3 > 874) OR ((col3 >= 247) AND ((col0 >= 716)))) OR (col1 < 535.60 AND col3 IN (811,704,477) AND ((col3 > 50 OR (col1 = 468.42 OR col4 > 399.87))))))) AND col1 < 887.39 OR col3 = 379
----
19
869
81
978
83
803

query II rowsort label-600-2
SELECT pk, col0 FROM tab2 WHERE NOT ((((col1 <= 384.28))) AND (col3 >= 446 AND (((col0 = 750 AND (col3 > 874) OR ((col3 >= 247) AND ((col0 >= 716)))) OR (col1 < 535.60 AND col3 IN (811,704,477) AND ((col3 > 50 OR (col1 = 468.42 OR col4 > 399.87))))))) AND col1 < 887.39 OR col3 = 379)
----
194 values hashing to 48108111990fb0497fedeccbad595097

query II rowsort label-600-1
SELECT pk, col0 FROM view_1_tab2_232
----
19
869
81
978
83
803

query II rowsort label-600-2
SELECT pk, col0 FROM view_2_tab2_232
----
194 values hashing to 48108111990fb0497fedeccbad595097

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (((col1 <= 384.28))) AND (col3 >= 446 AND (((col0 = 750 AND (col3 > 874) OR ((col3 >= 247) AND ((col0 >= 716)))) OR (col1 < 535.60 AND col3 IN (811,704,477) AND ((col3 > 50 OR (col1 = 468.42 OR col4 > 399.87))))))) AND col1 < 887.39 OR col3 = 379 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT ((((col1 <= 384.28))) AND (col3 >= 446 AND (((col0 = 750 AND (col3 > 874) OR ((col3 >= 247) AND ((col0 >= 716)))) OR (col1 < 535.60 AND col3 IN (811,704,477) AND ((col3 > 50 OR (col1 = 468.42 OR col4 > 399.87))))))) AND col1 < 887.39 OR col3 = 379)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_232 UNION ALL SELECT pk, col0 FROM view_2_tab2_232
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (((col1 <= 384.28))) AND (col3 >= 446 AND (((col0 = 750 AND (col3 > 874) OR ((col3 >= 247) AND ((col0 >= 716)))) OR (col1 < 535.60 AND col3 IN (811,704,477) AND ((col3 > 50 OR (col1 = 468.42 OR col4 > 399.87))))))) AND col1 < 887.39 OR col3 = 379 UNION SELECT pk, col0 FROM tab2 WHERE NOT ((((col1 <= 384.28))) AND (col3 >= 446 AND (((col0 = 750 AND (col3 > 874) OR ((col3 >= 247) AND ((col0 >= 716)))) OR (col1 < 535.60 AND col3 IN (811,704,477) AND ((col3 > 50 OR (col1 = 468.42 OR col4 > 399.87))))))) AND col1 < 887.39 OR col3 = 379)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_232 UNION SELECT pk, col0 FROM view_2_tab2_232
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE (((col1 <= 384.28))) AND (col3 >= 446 AND (((col0 = 750 AND (col3 > 874) OR ((col3 >= 247) AND ((col0 >= 716)))) OR (col1 < 535.60 AND col3 IN (811,704,477) AND ((col3 > 50 OR (col1 = 468.42 OR col4 > 399.87))))))) AND col1 < 887.39 OR col3 = 379 ) AS tab2_232
----
19
81
83

query I rowsort label-600-3
SELECT * FROM view_3_tab2_232
----
19
81
83

query I rowsort label-600-3
SELECT pk FROM tab2 WHERE (((col1 <= 384.28))) AND (col3 >= 446 AND (((col0 = 750 AND (col3 > 874) OR ((col3 >= 247) AND ((col0 >= 716)))) OR (col1 < 535.60 AND col3 IN (811,704,477) AND ((col3 > 50 OR (col1 = 468.42 OR col4 > 399.87))))))) AND col1 < 887.39 OR col3 = 379
----
19
81
83

statement ok
DROP VIEW view_1_tab2_232

statement ok
DROP VIEW view_2_tab2_232

statement ok
DROP VIEW view_3_tab2_232

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab3_232 AS SELECT pk, col0 FROM tab3 WHERE (((col1 <= 384.28))) AND (col3 >= 446 AND (((col0 = 750 AND (col3 > 874) OR ((col3 >= 247) AND ((col0 >= 716)))) OR (col1 < 535.60 AND col3 IN (811,704,477) AND ((col3 > 50 OR (col1 = 468.42 OR col4 > 399.87))))))) AND col1 < 887.39 OR col3 = 379

statement ok
CREATE VIEW view_2_tab3_232 AS SELECT pk, col0 FROM tab3 WHERE NOT ((((col1 <= 384.28))) AND (col3 >= 446 AND (((col0 = 750 AND (col3 > 874) OR ((col3 >= 247) AND ((col0 >= 716)))) OR (col1 < 535.60 AND col3 IN (811,704,477) AND ((col3 > 50 OR (col1 = 468.42 OR col4 > 399.87))))))) AND col1 < 887.39 OR col3 = 379)

statement ok
CREATE VIEW view_3_tab3_232 AS SELECT pk FROM view_1_tab3_232

query II rowsort label-600-1
SELECT pk, col0 FROM tab3 WHERE (((col1 <= 384.28))) AND (col3 >= 446 AND (((col0 = 750 AND (col3 > 874) OR ((col3 >= 247) AND ((col0 >= 716)))) OR (col1 < 535.60 AND col3 IN (811,704,477) AND ((col3 > 50 OR (col1 = 468.42 OR col4 > 399.87))))))) AND col1 < 887.39 OR col3 = 379
----
19
869
81
978
83
803

query II rowsort label-600-2
SELECT pk, col0 FROM tab3 WHERE NOT ((((col1 <= 384.28))) AND (col3 >= 446 AND (((col0 = 750 AND (col3 > 874) OR ((col3 >= 247) AND ((col0 >= 716)))) OR (col1 < 535.60 AND col3 IN (811,704,477) AND ((col3 > 50 OR (col1 = 468.42 OR col4 > 399.87))))))) AND col1 < 887.39 OR col3 = 379)
----
194 values hashing to 48108111990fb0497fedeccbad595097

query II rowsort label-600-1
SELECT pk, col0 FROM view_1_tab3_232
----
19
869
81
978
83
803

query II rowsort label-600-2
SELECT pk, col0 FROM view_2_tab3_232
----
194 values hashing to 48108111990fb0497fedeccbad595097

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (((col1 <= 384.28))) AND (col3 >= 446 AND (((col0 = 750 AND (col3 > 874) OR ((col3 >= 247) AND ((col0 >= 716)))) OR (col1 < 535.60 AND col3 IN (811,704,477) AND ((col3 > 50 OR (col1 = 468.42 OR col4 > 399.87))))))) AND col1 < 887.39 OR col3 = 379 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT ((((col1 <= 384.28))) AND (col3 >= 446 AND (((col0 = 750 AND (col3 > 874) OR ((col3 >= 247) AND ((col0 >= 716)))) OR (col1 < 535.60 AND col3 IN (811,704,477) AND ((col3 > 50 OR (col1 = 468.42 OR col4 > 399.87))))))) AND col1 < 887.39 OR col3 = 379)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_232 UNION ALL SELECT pk, col0 FROM view_2_tab3_232
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (((col1 <= 384.28))) AND (col3 >= 446 AND (((col0 = 750 AND (col3 > 874) OR ((col3 >= 247) AND ((col0 >= 716)))) OR (col1 < 535.60 AND col3 IN (811,704,477) AND ((col3 > 50 OR (col1 = 468.42 OR col4 > 399.87))))))) AND col1 < 887.39 OR col3 = 379 UNION SELECT pk, col0 FROM tab3 WHERE NOT ((((col1 <= 384.28))) AND (col3 >= 446 AND (((col0 = 750 AND (col3 > 874) OR ((col3 >= 247) AND ((col0 >= 716)))) OR (col1 < 535.60 AND col3 IN (811,704,477) AND ((col3 > 50 OR (col1 = 468.42 OR col4 > 399.87))))))) AND col1 < 887.39 OR col3 = 379)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_232 UNION SELECT pk, col0 FROM view_2_tab3_232
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE (((col1 <= 384.28))) AND (col3 >= 446 AND (((col0 = 750 AND (col3 > 874) OR ((col3 >= 247) AND ((col0 >= 716)))) OR (col1 < 535.60 AND col3 IN (811,704,477) AND ((col3 > 50 OR (col1 = 468.42 OR col4 > 399.87))))))) AND col1 < 887.39 OR col3 = 379 ) AS tab3_232
----
19
81
83

query I rowsort label-600-3
SELECT * FROM view_3_tab3_232
----
19
81
83

query I rowsort label-600-3
SELECT pk FROM tab3 WHERE (((col1 <= 384.28))) AND (col3 >= 446 AND (((col0 = 750 AND (col3 > 874) OR ((col3 >= 247) AND ((col0 >= 716)))) OR (col1 < 535.60 AND col3 IN (811,704,477) AND ((col3 > 50 OR (col1 = 468.42 OR col4 > 399.87))))))) AND col1 < 887.39 OR col3 = 379
----
19
81
83

statement ok
DROP VIEW view_1_tab3_232

statement ok
DROP VIEW view_2_tab3_232

statement ok
DROP VIEW view_3_tab3_232

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab4_232 AS SELECT pk, col0 FROM tab4 WHERE (((col1 <= 384.28))) AND (col3 >= 446 AND (((col0 = 750 AND (col3 > 874) OR ((col3 >= 247) AND ((col0 >= 716)))) OR (col1 < 535.60 AND col3 IN (811,704,477) AND ((col3 > 50 OR (col1 = 468.42 OR col4 > 399.87))))))) AND col1 < 887.39 OR col3 = 379

statement ok
CREATE VIEW view_2_tab4_232 AS SELECT pk, col0 FROM tab4 WHERE NOT ((((col1 <= 384.28))) AND (col3 >= 446 AND (((col0 = 750 AND (col3 > 874) OR ((col3 >= 247) AND ((col0 >= 716)))) OR (col1 < 535.60 AND col3 IN (811,704,477) AND ((col3 > 50 OR (col1 = 468.42 OR col4 > 399.87))))))) AND col1 < 887.39 OR col3 = 379)

statement ok
CREATE VIEW view_3_tab4_232 AS SELECT pk FROM view_1_tab4_232

query II rowsort label-600-1
SELECT pk, col0 FROM tab4 WHERE (((col1 <= 384.28))) AND (col3 >= 446 AND (((col0 = 750 AND (col3 > 874) OR ((col3 >= 247) AND ((col0 >= 716)))) OR (col1 < 535.60 AND col3 IN (811,704,477) AND ((col3 > 50 OR (col1 = 468.42 OR col4 > 399.87))))))) AND col1 < 887.39 OR col3 = 379
----
19
869
81
978
83
803

query II rowsort label-600-2
SELECT pk, col0 FROM tab4 WHERE NOT ((((col1 <= 384.28))) AND (col3 >= 446 AND (((col0 = 750 AND (col3 > 874) OR ((col3 >= 247) AND ((col0 >= 716)))) OR (col1 < 535.60 AND col3 IN (811,704,477) AND ((col3 > 50 OR (col1 = 468.42 OR col4 > 399.87))))))) AND col1 < 887.39 OR col3 = 379)
----
194 values hashing to 48108111990fb0497fedeccbad595097

query II rowsort label-600-1
SELECT pk, col0 FROM view_1_tab4_232
----
19
869
81
978
83
803

query II rowsort label-600-2
SELECT pk, col0 FROM view_2_tab4_232
----
194 values hashing to 48108111990fb0497fedeccbad595097

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (((col1 <= 384.28))) AND (col3 >= 446 AND (((col0 = 750 AND (col3 > 874) OR ((col3 >= 247) AND ((col0 >= 716)))) OR (col1 < 535.60 AND col3 IN (811,704,477) AND ((col3 > 50 OR (col1 = 468.42 OR col4 > 399.87))))))) AND col1 < 887.39 OR col3 = 379 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT ((((col1 <= 384.28))) AND (col3 >= 446 AND (((col0 = 750 AND (col3 > 874) OR ((col3 >= 247) AND ((col0 >= 716)))) OR (col1 < 535.60 AND col3 IN (811,704,477) AND ((col3 > 50 OR (col1 = 468.42 OR col4 > 399.87))))))) AND col1 < 887.39 OR col3 = 379)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_232 UNION ALL SELECT pk, col0 FROM view_2_tab4_232
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (((col1 <= 384.28))) AND (col3 >= 446 AND (((col0 = 750 AND (col3 > 874) OR ((col3 >= 247) AND ((col0 >= 716)))) OR (col1 < 535.60 AND col3 IN (811,704,477) AND ((col3 > 50 OR (col1 = 468.42 OR col4 > 399.87))))))) AND col1 < 887.39 OR col3 = 379 UNION SELECT pk, col0 FROM tab4 WHERE NOT ((((col1 <= 384.28))) AND (col3 >= 446 AND (((col0 = 750 AND (col3 > 874) OR ((col3 >= 247) AND ((col0 >= 716)))) OR (col1 < 535.60 AND col3 IN (811,704,477) AND ((col3 > 50 OR (col1 = 468.42 OR col4 > 399.87))))))) AND col1 < 887.39 OR col3 = 379)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_232 UNION SELECT pk, col0 FROM view_2_tab4_232
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE (((col1 <= 384.28))) AND (col3 >= 446 AND (((col0 = 750 AND (col3 > 874) OR ((col3 >= 247) AND ((col0 >= 716)))) OR (col1 < 535.60 AND col3 IN (811,704,477) AND ((col3 > 50 OR (col1 = 468.42 OR col4 > 399.87))))))) AND col1 < 887.39 OR col3 = 379 ) AS tab4_232
----
19
81
83

query I rowsort label-600-3
SELECT * FROM view_3_tab4_232
----
19
81
83

query I rowsort label-600-3
SELECT pk FROM tab4 WHERE (((col1 <= 384.28))) AND (col3 >= 446 AND (((col0 = 750 AND (col3 > 874) OR ((col3 >= 247) AND ((col0 >= 716)))) OR (col1 < 535.60 AND col3 IN (811,704,477) AND ((col3 > 50 OR (col1 = 468.42 OR col4 > 399.87))))))) AND col1 < 887.39 OR col3 = 379
----
19
81
83

statement ok
DROP VIEW view_1_tab4_232

statement ok
DROP VIEW view_2_tab4_232

statement ok
DROP VIEW view_3_tab4_232

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab0_233 AS SELECT pk, col0 FROM tab0 WHERE ((col3 = 751) AND ((((col3 > 506)))) AND ((((((col3 < 168 AND (col1 = 773.63)) AND col4 <= 940.15) OR (((col3 > 908 AND col0 > 203))) AND col3 <= 75 OR col3 >= 303 OR col3 > 139))))) AND ((col1 IS NULL)) OR col1 <= 808.92

statement ok
CREATE VIEW view_2_tab0_233 AS SELECT pk, col0 FROM tab0 WHERE NOT (((col3 = 751) AND ((((col3 > 506)))) AND ((((((col3 < 168 AND (col1 = 773.63)) AND col4 <= 940.15) OR (((col3 > 908 AND col0 > 203))) AND col3 <= 75 OR col3 >= 303 OR col3 > 139))))) AND ((col1 IS NULL)) OR col1 <= 808.92)

statement ok
CREATE VIEW view_3_tab0_233 AS SELECT pk FROM view_1_tab0_233

query II rowsort label-700-1
SELECT pk, col0 FROM tab0 WHERE ((col3 = 751) AND ((((col3 > 506)))) AND ((((((col3 < 168 AND (col1 = 773.63)) AND col4 <= 940.15) OR (((col3 > 908 AND col0 > 203))) AND col3 <= 75 OR col3 >= 303 OR col3 > 139))))) AND ((col1 IS NULL)) OR col1 <= 808.92
----
160 values hashing to 4fabd21d0218e4e49c55d05b0a8d45d6

query II rowsort label-700-2
SELECT pk, col0 FROM tab0 WHERE NOT (((col3 = 751) AND ((((col3 > 506)))) AND ((((((col3 < 168 AND (col1 = 773.63)) AND col4 <= 940.15) OR (((col3 > 908 AND col0 > 203))) AND col3 <= 75 OR col3 >= 303 OR col3 > 139))))) AND ((col1 IS NULL)) OR col1 <= 808.92)
----
40 values hashing to 81908e5c3d1a881ebf091a73d92c9035

query II rowsort label-700-1
SELECT pk, col0 FROM view_1_tab0_233
----
160 values hashing to 4fabd21d0218e4e49c55d05b0a8d45d6

query II rowsort label-700-2
SELECT pk, col0 FROM view_2_tab0_233
----
40 values hashing to 81908e5c3d1a881ebf091a73d92c9035

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE ((col3 = 751) AND ((((col3 > 506)))) AND ((((((col3 < 168 AND (col1 = 773.63)) AND col4 <= 940.15) OR (((col3 > 908 AND col0 > 203))) AND col3 <= 75 OR col3 >= 303 OR col3 > 139))))) AND ((col1 IS NULL)) OR col1 <= 808.92 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (((col3 = 751) AND ((((col3 > 506)))) AND ((((((col3 < 168 AND (col1 = 773.63)) AND col4 <= 940.15) OR (((col3 > 908 AND col0 > 203))) AND col3 <= 75 OR col3 >= 303 OR col3 > 139))))) AND ((col1 IS NULL)) OR col1 <= 808.92)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_233 UNION ALL SELECT pk, col0 FROM view_2_tab0_233
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE ((col3 = 751) AND ((((col3 > 506)))) AND ((((((col3 < 168 AND (col1 = 773.63)) AND col4 <= 940.15) OR (((col3 > 908 AND col0 > 203))) AND col3 <= 75 OR col3 >= 303 OR col3 > 139))))) AND ((col1 IS NULL)) OR col1 <= 808.92 UNION SELECT pk, col0 FROM tab0 WHERE NOT (((col3 = 751) AND ((((col3 > 506)))) AND ((((((col3 < 168 AND (col1 = 773.63)) AND col4 <= 940.15) OR (((col3 > 908 AND col0 > 203))) AND col3 <= 75 OR col3 >= 303 OR col3 > 139))))) AND ((col1 IS NULL)) OR col1 <= 808.92)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_233 UNION SELECT pk, col0 FROM view_2_tab0_233
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE ((col3 = 751) AND ((((col3 > 506)))) AND ((((((col3 < 168 AND (col1 = 773.63)) AND col4 <= 940.15) OR (((col3 > 908 AND col0 > 203))) AND col3 <= 75 OR col3 >= 303 OR col3 > 139))))) AND ((col1 IS NULL)) OR col1 <= 808.92 ) AS tab0_233
----
80 values hashing to 3e885bf601ff8cc09542b40f9aaea973

query I rowsort label-700-3
SELECT * FROM view_3_tab0_233
----
80 values hashing to 3e885bf601ff8cc09542b40f9aaea973

query I rowsort label-700-3
SELECT pk FROM tab0 WHERE ((col3 = 751) AND ((((col3 > 506)))) AND ((((((col3 < 168 AND (col1 = 773.63)) AND col4 <= 940.15) OR (((col3 > 908 AND col0 > 203))) AND col3 <= 75 OR col3 >= 303 OR col3 > 139))))) AND ((col1 IS NULL)) OR col1 <= 808.92
----
80 values hashing to 3e885bf601ff8cc09542b40f9aaea973

statement ok
DROP VIEW view_1_tab0_233

statement ok
DROP VIEW view_2_tab0_233

statement ok
DROP VIEW view_3_tab0_233

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab1_233 AS SELECT pk, col0 FROM tab1 WHERE ((col3 = 751) AND ((((col3 > 506)))) AND ((((((col3 < 168 AND (col1 = 773.63)) AND col4 <= 940.15) OR (((col3 > 908 AND col0 > 203))) AND col3 <= 75 OR col3 >= 303 OR col3 > 139))))) AND ((col1 IS NULL)) OR col1 <= 808.92

statement ok
CREATE VIEW view_2_tab1_233 AS SELECT pk, col0 FROM tab1 WHERE NOT (((col3 = 751) AND ((((col3 > 506)))) AND ((((((col3 < 168 AND (col1 = 773.63)) AND col4 <= 940.15) OR (((col3 > 908 AND col0 > 203))) AND col3 <= 75 OR col3 >= 303 OR col3 > 139))))) AND ((col1 IS NULL)) OR col1 <= 808.92)

statement ok
CREATE VIEW view_3_tab1_233 AS SELECT pk FROM view_1_tab1_233

query II rowsort label-700-1
SELECT pk, col0 FROM tab1 WHERE ((col3 = 751) AND ((((col3 > 506)))) AND ((((((col3 < 168 AND (col1 = 773.63)) AND col4 <= 940.15) OR (((col3 > 908 AND col0 > 203))) AND col3 <= 75 OR col3 >= 303 OR col3 > 139))))) AND ((col1 IS NULL)) OR col1 <= 808.92
----
160 values hashing to 4fabd21d0218e4e49c55d05b0a8d45d6

query II rowsort label-700-2
SELECT pk, col0 FROM tab1 WHERE NOT (((col3 = 751) AND ((((col3 > 506)))) AND ((((((col3 < 168 AND (col1 = 773.63)) AND col4 <= 940.15) OR (((col3 > 908 AND col0 > 203))) AND col3 <= 75 OR col3 >= 303 OR col3 > 139))))) AND ((col1 IS NULL)) OR col1 <= 808.92)
----
40 values hashing to 81908e5c3d1a881ebf091a73d92c9035

query II rowsort label-700-1
SELECT pk, col0 FROM view_1_tab1_233
----
160 values hashing to 4fabd21d0218e4e49c55d05b0a8d45d6

query II rowsort label-700-2
SELECT pk, col0 FROM view_2_tab1_233
----
40 values hashing to 81908e5c3d1a881ebf091a73d92c9035

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE ((col3 = 751) AND ((((col3 > 506)))) AND ((((((col3 < 168 AND (col1 = 773.63)) AND col4 <= 940.15) OR (((col3 > 908 AND col0 > 203))) AND col3 <= 75 OR col3 >= 303 OR col3 > 139))))) AND ((col1 IS NULL)) OR col1 <= 808.92 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (((col3 = 751) AND ((((col3 > 506)))) AND ((((((col3 < 168 AND (col1 = 773.63)) AND col4 <= 940.15) OR (((col3 > 908 AND col0 > 203))) AND col3 <= 75 OR col3 >= 303 OR col3 > 139))))) AND ((col1 IS NULL)) OR col1 <= 808.92)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_233 UNION ALL SELECT pk, col0 FROM view_2_tab1_233
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE ((col3 = 751) AND ((((col3 > 506)))) AND ((((((col3 < 168 AND (col1 = 773.63)) AND col4 <= 940.15) OR (((col3 > 908 AND col0 > 203))) AND col3 <= 75 OR col3 >= 303 OR col3 > 139))))) AND ((col1 IS NULL)) OR col1 <= 808.92 UNION SELECT pk, col0 FROM tab1 WHERE NOT (((col3 = 751) AND ((((col3 > 506)))) AND ((((((col3 < 168 AND (col1 = 773.63)) AND col4 <= 940.15) OR (((col3 > 908 AND col0 > 203))) AND col3 <= 75 OR col3 >= 303 OR col3 > 139))))) AND ((col1 IS NULL)) OR col1 <= 808.92)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_233 UNION SELECT pk, col0 FROM view_2_tab1_233
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE ((col3 = 751) AND ((((col3 > 506)))) AND ((((((col3 < 168 AND (col1 = 773.63)) AND col4 <= 940.15) OR (((col3 > 908 AND col0 > 203))) AND col3 <= 75 OR col3 >= 303 OR col3 > 139))))) AND ((col1 IS NULL)) OR col1 <= 808.92 ) AS tab1_233
----
80 values hashing to 3e885bf601ff8cc09542b40f9aaea973

query I rowsort label-700-3
SELECT * FROM view_3_tab1_233
----
80 values hashing to 3e885bf601ff8cc09542b40f9aaea973

query I rowsort label-700-3
SELECT pk FROM tab1 WHERE ((col3 = 751) AND ((((col3 > 506)))) AND ((((((col3 < 168 AND (col1 = 773.63)) AND col4 <= 940.15) OR (((col3 > 908 AND col0 > 203))) AND col3 <= 75 OR col3 >= 303 OR col3 > 139))))) AND ((col1 IS NULL)) OR col1 <= 808.92
----
80 values hashing to 3e885bf601ff8cc09542b40f9aaea973

statement ok
DROP VIEW view_1_tab1_233

statement ok
DROP VIEW view_2_tab1_233

statement ok
DROP VIEW view_3_tab1_233

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab2_233 AS SELECT pk, col0 FROM tab2 WHERE ((col3 = 751) AND ((((col3 > 506)))) AND ((((((col3 < 168 AND (col1 = 773.63)) AND col4 <= 940.15) OR (((col3 > 908 AND col0 > 203))) AND col3 <= 75 OR col3 >= 303 OR col3 > 139))))) AND ((col1 IS NULL)) OR col1 <= 808.92

statement ok
CREATE VIEW view_2_tab2_233 AS SELECT pk, col0 FROM tab2 WHERE NOT (((col3 = 751) AND ((((col3 > 506)))) AND ((((((col3 < 168 AND (col1 = 773.63)) AND col4 <= 940.15) OR (((col3 > 908 AND col0 > 203))) AND col3 <= 75 OR col3 >= 303 OR col3 > 139))))) AND ((col1 IS NULL)) OR col1 <= 808.92)

statement ok
CREATE VIEW view_3_tab2_233 AS SELECT pk FROM view_1_tab2_233

query II rowsort label-700-1
SELECT pk, col0 FROM tab2 WHERE ((col3 = 751) AND ((((col3 > 506)))) AND ((((((col3 < 168 AND (col1 = 773.63)) AND col4 <= 940.15) OR (((col3 > 908 AND col0 > 203))) AND col3 <= 75 OR col3 >= 303 OR col3 > 139))))) AND ((col1 IS NULL)) OR col1 <= 808.92
----
160 values hashing to 4fabd21d0218e4e49c55d05b0a8d45d6

query II rowsort label-700-2
SELECT pk, col0 FROM tab2 WHERE NOT (((col3 = 751) AND ((((col3 > 506)))) AND ((((((col3 < 168 AND (col1 = 773.63)) AND col4 <= 940.15) OR (((col3 > 908 AND col0 > 203))) AND col3 <= 75 OR col3 >= 303 OR col3 > 139))))) AND ((col1 IS NULL)) OR col1 <= 808.92)
----
40 values hashing to 81908e5c3d1a881ebf091a73d92c9035

query II rowsort label-700-1
SELECT pk, col0 FROM view_1_tab2_233
----
160 values hashing to 4fabd21d0218e4e49c55d05b0a8d45d6

query II rowsort label-700-2
SELECT pk, col0 FROM view_2_tab2_233
----
40 values hashing to 81908e5c3d1a881ebf091a73d92c9035

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE ((col3 = 751) AND ((((col3 > 506)))) AND ((((((col3 < 168 AND (col1 = 773.63)) AND col4 <= 940.15) OR (((col3 > 908 AND col0 > 203))) AND col3 <= 75 OR col3 >= 303 OR col3 > 139))))) AND ((col1 IS NULL)) OR col1 <= 808.92 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (((col3 = 751) AND ((((col3 > 506)))) AND ((((((col3 < 168 AND (col1 = 773.63)) AND col4 <= 940.15) OR (((col3 > 908 AND col0 > 203))) AND col3 <= 75 OR col3 >= 303 OR col3 > 139))))) AND ((col1 IS NULL)) OR col1 <= 808.92)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_233 UNION ALL SELECT pk, col0 FROM view_2_tab2_233
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE ((col3 = 751) AND ((((col3 > 506)))) AND ((((((col3 < 168 AND (col1 = 773.63)) AND col4 <= 940.15) OR (((col3 > 908 AND col0 > 203))) AND col3 <= 75 OR col3 >= 303 OR col3 > 139))))) AND ((col1 IS NULL)) OR col1 <= 808.92 UNION SELECT pk, col0 FROM tab2 WHERE NOT (((col3 = 751) AND ((((col3 > 506)))) AND ((((((col3 < 168 AND (col1 = 773.63)) AND col4 <= 940.15) OR (((col3 > 908 AND col0 > 203))) AND col3 <= 75 OR col3 >= 303 OR col3 > 139))))) AND ((col1 IS NULL)) OR col1 <= 808.92)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_233 UNION SELECT pk, col0 FROM view_2_tab2_233
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE ((col3 = 751) AND ((((col3 > 506)))) AND ((((((col3 < 168 AND (col1 = 773.63)) AND col4 <= 940.15) OR (((col3 > 908 AND col0 > 203))) AND col3 <= 75 OR col3 >= 303 OR col3 > 139))))) AND ((col1 IS NULL)) OR col1 <= 808.92 ) AS tab2_233
----
80 values hashing to 3e885bf601ff8cc09542b40f9aaea973

query I rowsort label-700-3
SELECT * FROM view_3_tab2_233
----
80 values hashing to 3e885bf601ff8cc09542b40f9aaea973

query I rowsort label-700-3
SELECT pk FROM tab2 WHERE ((col3 = 751) AND ((((col3 > 506)))) AND ((((((col3 < 168 AND (col1 = 773.63)) AND col4 <= 940.15) OR (((col3 > 908 AND col0 > 203))) AND col3 <= 75 OR col3 >= 303 OR col3 > 139))))) AND ((col1 IS NULL)) OR col1 <= 808.92
----
80 values hashing to 3e885bf601ff8cc09542b40f9aaea973

statement ok
DROP VIEW view_1_tab2_233

statement ok
DROP VIEW view_2_tab2_233

statement ok
DROP VIEW view_3_tab2_233

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab3_233 AS SELECT pk, col0 FROM tab3 WHERE ((col3 = 751) AND ((((col3 > 506)))) AND ((((((col3 < 168 AND (col1 = 773.63)) AND col4 <= 940.15) OR (((col3 > 908 AND col0 > 203))) AND col3 <= 75 OR col3 >= 303 OR col3 > 139))))) AND ((col1 IS NULL)) OR col1 <= 808.92

statement ok
CREATE VIEW view_2_tab3_233 AS SELECT pk, col0 FROM tab3 WHERE NOT (((col3 = 751) AND ((((col3 > 506)))) AND ((((((col3 < 168 AND (col1 = 773.63)) AND col4 <= 940.15) OR (((col3 > 908 AND col0 > 203))) AND col3 <= 75 OR col3 >= 303 OR col3 > 139))))) AND ((col1 IS NULL)) OR col1 <= 808.92)

statement ok
CREATE VIEW view_3_tab3_233 AS SELECT pk FROM view_1_tab3_233

query II rowsort label-700-1
SELECT pk, col0 FROM tab3 WHERE ((col3 = 751) AND ((((col3 > 506)))) AND ((((((col3 < 168 AND (col1 = 773.63)) AND col4 <= 940.15) OR (((col3 > 908 AND col0 > 203))) AND col3 <= 75 OR col3 >= 303 OR col3 > 139))))) AND ((col1 IS NULL)) OR col1 <= 808.92
----
160 values hashing to 4fabd21d0218e4e49c55d05b0a8d45d6

query II rowsort label-700-2
SELECT pk, col0 FROM tab3 WHERE NOT (((col3 = 751) AND ((((col3 > 506)))) AND ((((((col3 < 168 AND (col1 = 773.63)) AND col4 <= 940.15) OR (((col3 > 908 AND col0 > 203))) AND col3 <= 75 OR col3 >= 303 OR col3 > 139))))) AND ((col1 IS NULL)) OR col1 <= 808.92)
----
40 values hashing to 81908e5c3d1a881ebf091a73d92c9035

query II rowsort label-700-1
SELECT pk, col0 FROM view_1_tab3_233
----
160 values hashing to 4fabd21d0218e4e49c55d05b0a8d45d6

query II rowsort label-700-2
SELECT pk, col0 FROM view_2_tab3_233
----
40 values hashing to 81908e5c3d1a881ebf091a73d92c9035

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE ((col3 = 751) AND ((((col3 > 506)))) AND ((((((col3 < 168 AND (col1 = 773.63)) AND col4 <= 940.15) OR (((col3 > 908 AND col0 > 203))) AND col3 <= 75 OR col3 >= 303 OR col3 > 139))))) AND ((col1 IS NULL)) OR col1 <= 808.92 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (((col3 = 751) AND ((((col3 > 506)))) AND ((((((col3 < 168 AND (col1 = 773.63)) AND col4 <= 940.15) OR (((col3 > 908 AND col0 > 203))) AND col3 <= 75 OR col3 >= 303 OR col3 > 139))))) AND ((col1 IS NULL)) OR col1 <= 808.92)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_233 UNION ALL SELECT pk, col0 FROM view_2_tab3_233
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE ((col3 = 751) AND ((((col3 > 506)))) AND ((((((col3 < 168 AND (col1 = 773.63)) AND col4 <= 940.15) OR (((col3 > 908 AND col0 > 203))) AND col3 <= 75 OR col3 >= 303 OR col3 > 139))))) AND ((col1 IS NULL)) OR col1 <= 808.92 UNION SELECT pk, col0 FROM tab3 WHERE NOT (((col3 = 751) AND ((((col3 > 506)))) AND ((((((col3 < 168 AND (col1 = 773.63)) AND col4 <= 940.15) OR (((col3 > 908 AND col0 > 203))) AND col3 <= 75 OR col3 >= 303 OR col3 > 139))))) AND ((col1 IS NULL)) OR col1 <= 808.92)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_233 UNION SELECT pk, col0 FROM view_2_tab3_233
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE ((col3 = 751) AND ((((col3 > 506)))) AND ((((((col3 < 168 AND (col1 = 773.63)) AND col4 <= 940.15) OR (((col3 > 908 AND col0 > 203))) AND col3 <= 75 OR col3 >= 303 OR col3 > 139))))) AND ((col1 IS NULL)) OR col1 <= 808.92 ) AS tab3_233
----
80 values hashing to 3e885bf601ff8cc09542b40f9aaea973

query I rowsort label-700-3
SELECT * FROM view_3_tab3_233
----
80 values hashing to 3e885bf601ff8cc09542b40f9aaea973

query I rowsort label-700-3
SELECT pk FROM tab3 WHERE ((col3 = 751) AND ((((col3 > 506)))) AND ((((((col3 < 168 AND (col1 = 773.63)) AND col4 <= 940.15) OR (((col3 > 908 AND col0 > 203))) AND col3 <= 75 OR col3 >= 303 OR col3 > 139))))) AND ((col1 IS NULL)) OR col1 <= 808.92
----
80 values hashing to 3e885bf601ff8cc09542b40f9aaea973

statement ok
DROP VIEW view_1_tab3_233

statement ok
DROP VIEW view_2_tab3_233

statement ok
DROP VIEW view_3_tab3_233

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab4_233 AS SELECT pk, col0 FROM tab4 WHERE ((col3 = 751) AND ((((col3 > 506)))) AND ((((((col3 < 168 AND (col1 = 773.63)) AND col4 <= 940.15) OR (((col3 > 908 AND col0 > 203))) AND col3 <= 75 OR col3 >= 303 OR col3 > 139))))) AND ((col1 IS NULL)) OR col1 <= 808.92

statement ok
CREATE VIEW view_2_tab4_233 AS SELECT pk, col0 FROM tab4 WHERE NOT (((col3 = 751) AND ((((col3 > 506)))) AND ((((((col3 < 168 AND (col1 = 773.63)) AND col4 <= 940.15) OR (((col3 > 908 AND col0 > 203))) AND col3 <= 75 OR col3 >= 303 OR col3 > 139))))) AND ((col1 IS NULL)) OR col1 <= 808.92)

statement ok
CREATE VIEW view_3_tab4_233 AS SELECT pk FROM view_1_tab4_233

query II rowsort label-700-1
SELECT pk, col0 FROM tab4 WHERE ((col3 = 751) AND ((((col3 > 506)))) AND ((((((col3 < 168 AND (col1 = 773.63)) AND col4 <= 940.15) OR (((col3 > 908 AND col0 > 203))) AND col3 <= 75 OR col3 >= 303 OR col3 > 139))))) AND ((col1 IS NULL)) OR col1 <= 808.92
----
160 values hashing to 4fabd21d0218e4e49c55d05b0a8d45d6

query II rowsort label-700-2
SELECT pk, col0 FROM tab4 WHERE NOT (((col3 = 751) AND ((((col3 > 506)))) AND ((((((col3 < 168 AND (col1 = 773.63)) AND col4 <= 940.15) OR (((col3 > 908 AND col0 > 203))) AND col3 <= 75 OR col3 >= 303 OR col3 > 139))))) AND ((col1 IS NULL)) OR col1 <= 808.92)
----
40 values hashing to 81908e5c3d1a881ebf091a73d92c9035

query II rowsort label-700-1
SELECT pk, col0 FROM view_1_tab4_233
----
160 values hashing to 4fabd21d0218e4e49c55d05b0a8d45d6

query II rowsort label-700-2
SELECT pk, col0 FROM view_2_tab4_233
----
40 values hashing to 81908e5c3d1a881ebf091a73d92c9035

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE ((col3 = 751) AND ((((col3 > 506)))) AND ((((((col3 < 168 AND (col1 = 773.63)) AND col4 <= 940.15) OR (((col3 > 908 AND col0 > 203))) AND col3 <= 75 OR col3 >= 303 OR col3 > 139))))) AND ((col1 IS NULL)) OR col1 <= 808.92 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (((col3 = 751) AND ((((col3 > 506)))) AND ((((((col3 < 168 AND (col1 = 773.63)) AND col4 <= 940.15) OR (((col3 > 908 AND col0 > 203))) AND col3 <= 75 OR col3 >= 303 OR col3 > 139))))) AND ((col1 IS NULL)) OR col1 <= 808.92)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_233 UNION ALL SELECT pk, col0 FROM view_2_tab4_233
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE ((col3 = 751) AND ((((col3 > 506)))) AND ((((((col3 < 168 AND (col1 = 773.63)) AND col4 <= 940.15) OR (((col3 > 908 AND col0 > 203))) AND col3 <= 75 OR col3 >= 303 OR col3 > 139))))) AND ((col1 IS NULL)) OR col1 <= 808.92 UNION SELECT pk, col0 FROM tab4 WHERE NOT (((col3 = 751) AND ((((col3 > 506)))) AND ((((((col3 < 168 AND (col1 = 773.63)) AND col4 <= 940.15) OR (((col3 > 908 AND col0 > 203))) AND col3 <= 75 OR col3 >= 303 OR col3 > 139))))) AND ((col1 IS NULL)) OR col1 <= 808.92)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_233 UNION SELECT pk, col0 FROM view_2_tab4_233
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE ((col3 = 751) AND ((((col3 > 506)))) AND ((((((col3 < 168 AND (col1 = 773.63)) AND col4 <= 940.15) OR (((col3 > 908 AND col0 > 203))) AND col3 <= 75 OR col3 >= 303 OR col3 > 139))))) AND ((col1 IS NULL)) OR col1 <= 808.92 ) AS tab4_233
----
80 values hashing to 3e885bf601ff8cc09542b40f9aaea973

query I rowsort label-700-3
SELECT * FROM view_3_tab4_233
----
80 values hashing to 3e885bf601ff8cc09542b40f9aaea973

query I rowsort label-700-3
SELECT pk FROM tab4 WHERE ((col3 = 751) AND ((((col3 > 506)))) AND ((((((col3 < 168 AND (col1 = 773.63)) AND col4 <= 940.15) OR (((col3 > 908 AND col0 > 203))) AND col3 <= 75 OR col3 >= 303 OR col3 > 139))))) AND ((col1 IS NULL)) OR col1 <= 808.92
----
80 values hashing to 3e885bf601ff8cc09542b40f9aaea973

statement ok
DROP VIEW view_1_tab4_233

statement ok
DROP VIEW view_2_tab4_233

statement ok
DROP VIEW view_3_tab4_233

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab0_234 AS SELECT pk, col0 FROM tab0 WHERE ((((((col0 <= 79 OR col1 < 413.47 AND col4 < 748.94))))))

statement ok
CREATE VIEW view_2_tab0_234 AS SELECT pk, col0 FROM tab0 WHERE NOT (((((((col0 <= 79 OR col1 < 413.47 AND col4 < 748.94)))))))

statement ok
CREATE VIEW view_3_tab0_234 AS SELECT pk FROM view_1_tab0_234

query II rowsort label-800-1
SELECT pk, col0 FROM tab0 WHERE ((((((col0 <= 79 OR col1 < 413.47 AND col4 < 748.94))))))
----
78 values hashing to e06f7470dc45f3793b0d691b0a0fc295

query II rowsort label-800-2
SELECT pk, col0 FROM tab0 WHERE NOT (((((((col0 <= 79 OR col1 < 413.47 AND col4 < 748.94)))))))
----
122 values hashing to 154656765fbb4282a8f96b3569a134ce

query II rowsort label-800-1
SELECT pk, col0 FROM view_1_tab0_234
----
78 values hashing to e06f7470dc45f3793b0d691b0a0fc295

query II rowsort label-800-2
SELECT pk, col0 FROM view_2_tab0_234
----
122 values hashing to 154656765fbb4282a8f96b3569a134ce

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE ((((((col0 <= 79 OR col1 < 413.47 AND col4 < 748.94)))))) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (((((((col0 <= 79 OR col1 < 413.47 AND col4 < 748.94)))))))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_234 UNION ALL SELECT pk, col0 FROM view_2_tab0_234
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE ((((((col0 <= 79 OR col1 < 413.47 AND col4 < 748.94)))))) UNION SELECT pk, col0 FROM tab0 WHERE NOT (((((((col0 <= 79 OR col1 < 413.47 AND col4 < 748.94)))))))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_234 UNION SELECT pk, col0 FROM view_2_tab0_234
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE ((((((col0 <= 79 OR col1 < 413.47 AND col4 < 748.94)))))) ) AS tab0_234
----
39 values hashing to db04c80b635ebb1b693eedee48ff7b39

query I rowsort label-800-3
SELECT * FROM view_3_tab0_234
----
39 values hashing to db04c80b635ebb1b693eedee48ff7b39

query I rowsort label-800-3
SELECT pk FROM tab0 WHERE ((((((col0 <= 79 OR col1 < 413.47 AND col4 < 748.94))))))
----
39 values hashing to db04c80b635ebb1b693eedee48ff7b39

statement ok
DROP VIEW view_1_tab0_234

statement ok
DROP VIEW view_2_tab0_234

statement ok
DROP VIEW view_3_tab0_234

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab1_234 AS SELECT pk, col0 FROM tab1 WHERE ((((((col0 <= 79 OR col1 < 413.47 AND col4 < 748.94))))))

statement ok
CREATE VIEW view_2_tab1_234 AS SELECT pk, col0 FROM tab1 WHERE NOT (((((((col0 <= 79 OR col1 < 413.47 AND col4 < 748.94)))))))

statement ok
CREATE VIEW view_3_tab1_234 AS SELECT pk FROM view_1_tab1_234

query II rowsort label-800-1
SELECT pk, col0 FROM tab1 WHERE ((((((col0 <= 79 OR col1 < 413.47 AND col4 < 748.94))))))
----
78 values hashing to e06f7470dc45f3793b0d691b0a0fc295

query II rowsort label-800-2
SELECT pk, col0 FROM tab1 WHERE NOT (((((((col0 <= 79 OR col1 < 413.47 AND col4 < 748.94)))))))
----
122 values hashing to 154656765fbb4282a8f96b3569a134ce

query II rowsort label-800-1
SELECT pk, col0 FROM view_1_tab1_234
----
78 values hashing to e06f7470dc45f3793b0d691b0a0fc295

query II rowsort label-800-2
SELECT pk, col0 FROM view_2_tab1_234
----
122 values hashing to 154656765fbb4282a8f96b3569a134ce

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE ((((((col0 <= 79 OR col1 < 413.47 AND col4 < 748.94)))))) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (((((((col0 <= 79 OR col1 < 413.47 AND col4 < 748.94)))))))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_234 UNION ALL SELECT pk, col0 FROM view_2_tab1_234
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE ((((((col0 <= 79 OR col1 < 413.47 AND col4 < 748.94)))))) UNION SELECT pk, col0 FROM tab1 WHERE NOT (((((((col0 <= 79 OR col1 < 413.47 AND col4 < 748.94)))))))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_234 UNION SELECT pk, col0 FROM view_2_tab1_234
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE ((((((col0 <= 79 OR col1 < 413.47 AND col4 < 748.94)))))) ) AS tab1_234
----
39 values hashing to db04c80b635ebb1b693eedee48ff7b39

query I rowsort label-800-3
SELECT * FROM view_3_tab1_234
----
39 values hashing to db04c80b635ebb1b693eedee48ff7b39

query I rowsort label-800-3
SELECT pk FROM tab1 WHERE ((((((col0 <= 79 OR col1 < 413.47 AND col4 < 748.94))))))
----
39 values hashing to db04c80b635ebb1b693eedee48ff7b39

statement ok
DROP VIEW view_1_tab1_234

statement ok
DROP VIEW view_2_tab1_234

statement ok
DROP VIEW view_3_tab1_234

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab2_234 AS SELECT pk, col0 FROM tab2 WHERE ((((((col0 <= 79 OR col1 < 413.47 AND col4 < 748.94))))))

statement ok
CREATE VIEW view_2_tab2_234 AS SELECT pk, col0 FROM tab2 WHERE NOT (((((((col0 <= 79 OR col1 < 413.47 AND col4 < 748.94)))))))

statement ok
CREATE VIEW view_3_tab2_234 AS SELECT pk FROM view_1_tab2_234

query II rowsort label-800-1
SELECT pk, col0 FROM tab2 WHERE ((((((col0 <= 79 OR col1 < 413.47 AND col4 < 748.94))))))
----
78 values hashing to e06f7470dc45f3793b0d691b0a0fc295

query II rowsort label-800-2
SELECT pk, col0 FROM tab2 WHERE NOT (((((((col0 <= 79 OR col1 < 413.47 AND col4 < 748.94)))))))
----
122 values hashing to 154656765fbb4282a8f96b3569a134ce

query II rowsort label-800-1
SELECT pk, col0 FROM view_1_tab2_234
----
78 values hashing to e06f7470dc45f3793b0d691b0a0fc295

query II rowsort label-800-2
SELECT pk, col0 FROM view_2_tab2_234
----
122 values hashing to 154656765fbb4282a8f96b3569a134ce

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE ((((((col0 <= 79 OR col1 < 413.47 AND col4 < 748.94)))))) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (((((((col0 <= 79 OR col1 < 413.47 AND col4 < 748.94)))))))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_234 UNION ALL SELECT pk, col0 FROM view_2_tab2_234
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE ((((((col0 <= 79 OR col1 < 413.47 AND col4 < 748.94)))))) UNION SELECT pk, col0 FROM tab2 WHERE NOT (((((((col0 <= 79 OR col1 < 413.47 AND col4 < 748.94)))))))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_234 UNION SELECT pk, col0 FROM view_2_tab2_234
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE ((((((col0 <= 79 OR col1 < 413.47 AND col4 < 748.94)))))) ) AS tab2_234
----
39 values hashing to db04c80b635ebb1b693eedee48ff7b39

query I rowsort label-800-3
SELECT * FROM view_3_tab2_234
----
39 values hashing to db04c80b635ebb1b693eedee48ff7b39

query I rowsort label-800-3
SELECT pk FROM tab2 WHERE ((((((col0 <= 79 OR col1 < 413.47 AND col4 < 748.94))))))
----
39 values hashing to db04c80b635ebb1b693eedee48ff7b39

statement ok
DROP VIEW view_1_tab2_234

statement ok
DROP VIEW view_2_tab2_234

statement ok
DROP VIEW view_3_tab2_234

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab3_234 AS SELECT pk, col0 FROM tab3 WHERE ((((((col0 <= 79 OR col1 < 413.47 AND col4 < 748.94))))))

statement ok
CREATE VIEW view_2_tab3_234 AS SELECT pk, col0 FROM tab3 WHERE NOT (((((((col0 <= 79 OR col1 < 413.47 AND col4 < 748.94)))))))

statement ok
CREATE VIEW view_3_tab3_234 AS SELECT pk FROM view_1_tab3_234

query II rowsort label-800-1
SELECT pk, col0 FROM tab3 WHERE ((((((col0 <= 79 OR col1 < 413.47 AND col4 < 748.94))))))
----
78 values hashing to e06f7470dc45f3793b0d691b0a0fc295

query II rowsort label-800-2
SELECT pk, col0 FROM tab3 WHERE NOT (((((((col0 <= 79 OR col1 < 413.47 AND col4 < 748.94)))))))
----
122 values hashing to 154656765fbb4282a8f96b3569a134ce

query II rowsort label-800-1
SELECT pk, col0 FROM view_1_tab3_234
----
78 values hashing to e06f7470dc45f3793b0d691b0a0fc295

query II rowsort label-800-2
SELECT pk, col0 FROM view_2_tab3_234
----
122 values hashing to 154656765fbb4282a8f96b3569a134ce

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE ((((((col0 <= 79 OR col1 < 413.47 AND col4 < 748.94)))))) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (((((((col0 <= 79 OR col1 < 413.47 AND col4 < 748.94)))))))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_234 UNION ALL SELECT pk, col0 FROM view_2_tab3_234
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE ((((((col0 <= 79 OR col1 < 413.47 AND col4 < 748.94)))))) UNION SELECT pk, col0 FROM tab3 WHERE NOT (((((((col0 <= 79 OR col1 < 413.47 AND col4 < 748.94)))))))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_234 UNION SELECT pk, col0 FROM view_2_tab3_234
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE ((((((col0 <= 79 OR col1 < 413.47 AND col4 < 748.94)))))) ) AS tab3_234
----
39 values hashing to db04c80b635ebb1b693eedee48ff7b39

query I rowsort label-800-3
SELECT * FROM view_3_tab3_234
----
39 values hashing to db04c80b635ebb1b693eedee48ff7b39

query I rowsort label-800-3
SELECT pk FROM tab3 WHERE ((((((col0 <= 79 OR col1 < 413.47 AND col4 < 748.94))))))
----
39 values hashing to db04c80b635ebb1b693eedee48ff7b39

statement ok
DROP VIEW view_1_tab3_234

statement ok
DROP VIEW view_2_tab3_234

statement ok
DROP VIEW view_3_tab3_234

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab4_234 AS SELECT pk, col0 FROM tab4 WHERE ((((((col0 <= 79 OR col1 < 413.47 AND col4 < 748.94))))))

statement ok
CREATE VIEW view_2_tab4_234 AS SELECT pk, col0 FROM tab4 WHERE NOT (((((((col0 <= 79 OR col1 < 413.47 AND col4 < 748.94)))))))

statement ok
CREATE VIEW view_3_tab4_234 AS SELECT pk FROM view_1_tab4_234

query II rowsort label-800-1
SELECT pk, col0 FROM tab4 WHERE ((((((col0 <= 79 OR col1 < 413.47 AND col4 < 748.94))))))
----
78 values hashing to e06f7470dc45f3793b0d691b0a0fc295

query II rowsort label-800-2
SELECT pk, col0 FROM tab4 WHERE NOT (((((((col0 <= 79 OR col1 < 413.47 AND col4 < 748.94)))))))
----
122 values hashing to 154656765fbb4282a8f96b3569a134ce

query II rowsort label-800-1
SELECT pk, col0 FROM view_1_tab4_234
----
78 values hashing to e06f7470dc45f3793b0d691b0a0fc295

query II rowsort label-800-2
SELECT pk, col0 FROM view_2_tab4_234
----
122 values hashing to 154656765fbb4282a8f96b3569a134ce

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE ((((((col0 <= 79 OR col1 < 413.47 AND col4 < 748.94)))))) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (((((((col0 <= 79 OR col1 < 413.47 AND col4 < 748.94)))))))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_234 UNION ALL SELECT pk, col0 FROM view_2_tab4_234
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE ((((((col0 <= 79 OR col1 < 413.47 AND col4 < 748.94)))))) UNION SELECT pk, col0 FROM tab4 WHERE NOT (((((((col0 <= 79 OR col1 < 413.47 AND col4 < 748.94)))))))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_234 UNION SELECT pk, col0 FROM view_2_tab4_234
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE ((((((col0 <= 79 OR col1 < 413.47 AND col4 < 748.94)))))) ) AS tab4_234
----
39 values hashing to db04c80b635ebb1b693eedee48ff7b39

query I rowsort label-800-3
SELECT * FROM view_3_tab4_234
----
39 values hashing to db04c80b635ebb1b693eedee48ff7b39

query I rowsort label-800-3
SELECT pk FROM tab4 WHERE ((((((col0 <= 79 OR col1 < 413.47 AND col4 < 748.94))))))
----
39 values hashing to db04c80b635ebb1b693eedee48ff7b39

statement ok
DROP VIEW view_1_tab4_234

statement ok
DROP VIEW view_2_tab4_234

statement ok
DROP VIEW view_3_tab4_234

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab0_235 AS SELECT pk, col0 FROM tab0 WHERE col1 < 454.34

statement ok
CREATE VIEW view_2_tab0_235 AS SELECT pk, col0 FROM tab0 WHERE NOT (col1 < 454.34)

statement ok
CREATE VIEW view_3_tab0_235 AS SELECT pk FROM view_1_tab0_235

query II rowsort label-900-1
SELECT pk, col0 FROM tab0 WHERE col1 < 454.34
----
92 values hashing to 0a65f5be47b0c4bdb4b4e0b60a933deb

query II rowsort label-900-2
SELECT pk, col0 FROM tab0 WHERE NOT (col1 < 454.34)
----
108 values hashing to 792fbc6868901079c3416d0e3175bd2b

query II rowsort label-900-1
SELECT pk, col0 FROM view_1_tab0_235
----
92 values hashing to 0a65f5be47b0c4bdb4b4e0b60a933deb

query II rowsort label-900-2
SELECT pk, col0 FROM view_2_tab0_235
----
108 values hashing to 792fbc6868901079c3416d0e3175bd2b

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col1 < 454.34 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col1 < 454.34)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_235 UNION ALL SELECT pk, col0 FROM view_2_tab0_235
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col1 < 454.34 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col1 < 454.34)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_235 UNION SELECT pk, col0 FROM view_2_tab0_235
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col1 < 454.34 ) AS tab0_235
----
46 values hashing to 6697fc4feac35532a5948307e7ca3e80

query I rowsort label-900-3
SELECT * FROM view_3_tab0_235
----
46 values hashing to 6697fc4feac35532a5948307e7ca3e80

query I rowsort label-900-3
SELECT pk FROM tab0 WHERE col1 < 454.34
----
46 values hashing to 6697fc4feac35532a5948307e7ca3e80

statement ok
DROP VIEW view_1_tab0_235

statement ok
DROP VIEW view_2_tab0_235

statement ok
DROP VIEW view_3_tab0_235

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab1_235 AS SELECT pk, col0 FROM tab1 WHERE col1 < 454.34

statement ok
CREATE VIEW view_2_tab1_235 AS SELECT pk, col0 FROM tab1 WHERE NOT (col1 < 454.34)

statement ok
CREATE VIEW view_3_tab1_235 AS SELECT pk FROM view_1_tab1_235

query II rowsort label-900-1
SELECT pk, col0 FROM tab1 WHERE col1 < 454.34
----
92 values hashing to 0a65f5be47b0c4bdb4b4e0b60a933deb

query II rowsort label-900-2
SELECT pk, col0 FROM tab1 WHERE NOT (col1 < 454.34)
----
108 values hashing to 792fbc6868901079c3416d0e3175bd2b

query II rowsort label-900-1
SELECT pk, col0 FROM view_1_tab1_235
----
92 values hashing to 0a65f5be47b0c4bdb4b4e0b60a933deb

query II rowsort label-900-2
SELECT pk, col0 FROM view_2_tab1_235
----
108 values hashing to 792fbc6868901079c3416d0e3175bd2b

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col1 < 454.34 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col1 < 454.34)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_235 UNION ALL SELECT pk, col0 FROM view_2_tab1_235
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col1 < 454.34 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col1 < 454.34)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_235 UNION SELECT pk, col0 FROM view_2_tab1_235
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col1 < 454.34 ) AS tab1_235
----
46 values hashing to 6697fc4feac35532a5948307e7ca3e80

query I rowsort label-900-3
SELECT * FROM view_3_tab1_235
----
46 values hashing to 6697fc4feac35532a5948307e7ca3e80

query I rowsort label-900-3
SELECT pk FROM tab1 WHERE col1 < 454.34
----
46 values hashing to 6697fc4feac35532a5948307e7ca3e80

statement ok
DROP VIEW view_1_tab1_235

statement ok
DROP VIEW view_2_tab1_235

statement ok
DROP VIEW view_3_tab1_235

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab2_235 AS SELECT pk, col0 FROM tab2 WHERE col1 < 454.34

statement ok
CREATE VIEW view_2_tab2_235 AS SELECT pk, col0 FROM tab2 WHERE NOT (col1 < 454.34)

statement ok
CREATE VIEW view_3_tab2_235 AS SELECT pk FROM view_1_tab2_235

query II rowsort label-900-1
SELECT pk, col0 FROM tab2 WHERE col1 < 454.34
----
92 values hashing to 0a65f5be47b0c4bdb4b4e0b60a933deb

query II rowsort label-900-2
SELECT pk, col0 FROM tab2 WHERE NOT (col1 < 454.34)
----
108 values hashing to 792fbc6868901079c3416d0e3175bd2b

query II rowsort label-900-1
SELECT pk, col0 FROM view_1_tab2_235
----
92 values hashing to 0a65f5be47b0c4bdb4b4e0b60a933deb

query II rowsort label-900-2
SELECT pk, col0 FROM view_2_tab2_235
----
108 values hashing to 792fbc6868901079c3416d0e3175bd2b

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col1 < 454.34 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col1 < 454.34)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_235 UNION ALL SELECT pk, col0 FROM view_2_tab2_235
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col1 < 454.34 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col1 < 454.34)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_235 UNION SELECT pk, col0 FROM view_2_tab2_235
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col1 < 454.34 ) AS tab2_235
----
46 values hashing to 6697fc4feac35532a5948307e7ca3e80

query I rowsort label-900-3
SELECT * FROM view_3_tab2_235
----
46 values hashing to 6697fc4feac35532a5948307e7ca3e80

query I rowsort label-900-3
SELECT pk FROM tab2 WHERE col1 < 454.34
----
46 values hashing to 6697fc4feac35532a5948307e7ca3e80

statement ok
DROP VIEW view_1_tab2_235

statement ok
DROP VIEW view_2_tab2_235

statement ok
DROP VIEW view_3_tab2_235

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab3_235 AS SELECT pk, col0 FROM tab3 WHERE col1 < 454.34

statement ok
CREATE VIEW view_2_tab3_235 AS SELECT pk, col0 FROM tab3 WHERE NOT (col1 < 454.34)

statement ok
CREATE VIEW view_3_tab3_235 AS SELECT pk FROM view_1_tab3_235

query II rowsort label-900-1
SELECT pk, col0 FROM tab3 WHERE col1 < 454.34
----
92 values hashing to 0a65f5be47b0c4bdb4b4e0b60a933deb

query II rowsort label-900-2
SELECT pk, col0 FROM tab3 WHERE NOT (col1 < 454.34)
----
108 values hashing to 792fbc6868901079c3416d0e3175bd2b

query II rowsort label-900-1
SELECT pk, col0 FROM view_1_tab3_235
----
92 values hashing to 0a65f5be47b0c4bdb4b4e0b60a933deb

query II rowsort label-900-2
SELECT pk, col0 FROM view_2_tab3_235
----
108 values hashing to 792fbc6868901079c3416d0e3175bd2b

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col1 < 454.34 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col1 < 454.34)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_235 UNION ALL SELECT pk, col0 FROM view_2_tab3_235
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col1 < 454.34 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col1 < 454.34)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_235 UNION SELECT pk, col0 FROM view_2_tab3_235
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col1 < 454.34 ) AS tab3_235
----
46 values hashing to 6697fc4feac35532a5948307e7ca3e80

query I rowsort label-900-3
SELECT * FROM view_3_tab3_235
----
46 values hashing to 6697fc4feac35532a5948307e7ca3e80

query I rowsort label-900-3
SELECT pk FROM tab3 WHERE col1 < 454.34
----
46 values hashing to 6697fc4feac35532a5948307e7ca3e80

statement ok
DROP VIEW view_1_tab3_235

statement ok
DROP VIEW view_2_tab3_235

statement ok
DROP VIEW view_3_tab3_235

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab4_235 AS SELECT pk, col0 FROM tab4 WHERE col1 < 454.34

statement ok
CREATE VIEW view_2_tab4_235 AS SELECT pk, col0 FROM tab4 WHERE NOT (col1 < 454.34)

statement ok
CREATE VIEW view_3_tab4_235 AS SELECT pk FROM view_1_tab4_235

query II rowsort label-900-1
SELECT pk, col0 FROM tab4 WHERE col1 < 454.34
----
92 values hashing to 0a65f5be47b0c4bdb4b4e0b60a933deb

query II rowsort label-900-2
SELECT pk, col0 FROM tab4 WHERE NOT (col1 < 454.34)
----
108 values hashing to 792fbc6868901079c3416d0e3175bd2b

query II rowsort label-900-1
SELECT pk, col0 FROM view_1_tab4_235
----
92 values hashing to 0a65f5be47b0c4bdb4b4e0b60a933deb

query II rowsort label-900-2
SELECT pk, col0 FROM view_2_tab4_235
----
108 values hashing to 792fbc6868901079c3416d0e3175bd2b

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col1 < 454.34 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col1 < 454.34)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_235 UNION ALL SELECT pk, col0 FROM view_2_tab4_235
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col1 < 454.34 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col1 < 454.34)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_235 UNION SELECT pk, col0 FROM view_2_tab4_235
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col1 < 454.34 ) AS tab4_235
----
46 values hashing to 6697fc4feac35532a5948307e7ca3e80

query I rowsort label-900-3
SELECT * FROM view_3_tab4_235
----
46 values hashing to 6697fc4feac35532a5948307e7ca3e80

query I rowsort label-900-3
SELECT pk FROM tab4 WHERE col1 < 454.34
----
46 values hashing to 6697fc4feac35532a5948307e7ca3e80

statement ok
DROP VIEW view_1_tab4_235

statement ok
DROP VIEW view_2_tab4_235

statement ok
DROP VIEW view_3_tab4_235

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab0_236 AS SELECT pk, col0 FROM tab0 WHERE col3 IS NULL OR col3 > 246

statement ok
CREATE VIEW view_2_tab0_236 AS SELECT pk, col0 FROM tab0 WHERE NOT (col3 IS NULL OR col3 > 246)

statement ok
CREATE VIEW view_3_tab0_236 AS SELECT pk FROM view_1_tab0_236

query II rowsort label-1000-1
SELECT pk, col0 FROM tab0 WHERE col3 IS NULL OR col3 > 246
----
148 values hashing to d1d97ea83ab2ddc611dc679f68d9cb49

query II rowsort label-1000-2
SELECT pk, col0 FROM tab0 WHERE NOT (col3 IS NULL OR col3 > 246)
----
52 values hashing to 9478428eb9ca53e4d024ba625d6bdb9d

query II rowsort label-1000-1
SELECT pk, col0 FROM view_1_tab0_236
----
148 values hashing to d1d97ea83ab2ddc611dc679f68d9cb49

query II rowsort label-1000-2
SELECT pk, col0 FROM view_2_tab0_236
----
52 values hashing to 9478428eb9ca53e4d024ba625d6bdb9d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 IS NULL OR col3 > 246 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col3 IS NULL OR col3 > 246)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_236 UNION ALL SELECT pk, col0 FROM view_2_tab0_236
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 IS NULL OR col3 > 246 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col3 IS NULL OR col3 > 246)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_236 UNION SELECT pk, col0 FROM view_2_tab0_236
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-1000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col3 IS NULL OR col3 > 246 ) AS tab0_236
----
74 values hashing to 5ad20fe152e830337d40d9d608a17eee

query I rowsort label-1000-3
SELECT * FROM view_3_tab0_236
----
74 values hashing to 5ad20fe152e830337d40d9d608a17eee

query I rowsort label-1000-3
SELECT pk FROM tab0 WHERE col3 IS NULL OR col3 > 246
----
74 values hashing to 5ad20fe152e830337d40d9d608a17eee

statement ok
DROP VIEW view_1_tab0_236

statement ok
DROP VIEW view_2_tab0_236

statement ok
DROP VIEW view_3_tab0_236

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab1_236 AS SELECT pk, col0 FROM tab1 WHERE col3 IS NULL OR col3 > 246

statement ok
CREATE VIEW view_2_tab1_236 AS SELECT pk, col0 FROM tab1 WHERE NOT (col3 IS NULL OR col3 > 246)

statement ok
CREATE VIEW view_3_tab1_236 AS SELECT pk FROM view_1_tab1_236

query II rowsort label-1000-1
SELECT pk, col0 FROM tab1 WHERE col3 IS NULL OR col3 > 246
----
148 values hashing to d1d97ea83ab2ddc611dc679f68d9cb49

query II rowsort label-1000-2
SELECT pk, col0 FROM tab1 WHERE NOT (col3 IS NULL OR col3 > 246)
----
52 values hashing to 9478428eb9ca53e4d024ba625d6bdb9d

query II rowsort label-1000-1
SELECT pk, col0 FROM view_1_tab1_236
----
148 values hashing to d1d97ea83ab2ddc611dc679f68d9cb49

query II rowsort label-1000-2
SELECT pk, col0 FROM view_2_tab1_236
----
52 values hashing to 9478428eb9ca53e4d024ba625d6bdb9d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 IS NULL OR col3 > 246 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col3 IS NULL OR col3 > 246)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_236 UNION ALL SELECT pk, col0 FROM view_2_tab1_236
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 IS NULL OR col3 > 246 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col3 IS NULL OR col3 > 246)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_236 UNION SELECT pk, col0 FROM view_2_tab1_236
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-1000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col3 IS NULL OR col3 > 246 ) AS tab1_236
----
74 values hashing to 5ad20fe152e830337d40d9d608a17eee

query I rowsort label-1000-3
SELECT * FROM view_3_tab1_236
----
74 values hashing to 5ad20fe152e830337d40d9d608a17eee

query I rowsort label-1000-3
SELECT pk FROM tab1 WHERE col3 IS NULL OR col3 > 246
----
74 values hashing to 5ad20fe152e830337d40d9d608a17eee

statement ok
DROP VIEW view_1_tab1_236

statement ok
DROP VIEW view_2_tab1_236

statement ok
DROP VIEW view_3_tab1_236

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab2_236 AS SELECT pk, col0 FROM tab2 WHERE col3 IS NULL OR col3 > 246

statement ok
CREATE VIEW view_2_tab2_236 AS SELECT pk, col0 FROM tab2 WHERE NOT (col3 IS NULL OR col3 > 246)

statement ok
CREATE VIEW view_3_tab2_236 AS SELECT pk FROM view_1_tab2_236

query II rowsort label-1000-1
SELECT pk, col0 FROM tab2 WHERE col3 IS NULL OR col3 > 246
----
148 values hashing to d1d97ea83ab2ddc611dc679f68d9cb49

query II rowsort label-1000-2
SELECT pk, col0 FROM tab2 WHERE NOT (col3 IS NULL OR col3 > 246)
----
52 values hashing to 9478428eb9ca53e4d024ba625d6bdb9d

query II rowsort label-1000-1
SELECT pk, col0 FROM view_1_tab2_236
----
148 values hashing to d1d97ea83ab2ddc611dc679f68d9cb49

query II rowsort label-1000-2
SELECT pk, col0 FROM view_2_tab2_236
----
52 values hashing to 9478428eb9ca53e4d024ba625d6bdb9d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 IS NULL OR col3 > 246 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col3 IS NULL OR col3 > 246)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_236 UNION ALL SELECT pk, col0 FROM view_2_tab2_236
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 IS NULL OR col3 > 246 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col3 IS NULL OR col3 > 246)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_236 UNION SELECT pk, col0 FROM view_2_tab2_236
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-1000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col3 IS NULL OR col3 > 246 ) AS tab2_236
----
74 values hashing to 5ad20fe152e830337d40d9d608a17eee

query I rowsort label-1000-3
SELECT * FROM view_3_tab2_236
----
74 values hashing to 5ad20fe152e830337d40d9d608a17eee

query I rowsort label-1000-3
SELECT pk FROM tab2 WHERE col3 IS NULL OR col3 > 246
----
74 values hashing to 5ad20fe152e830337d40d9d608a17eee

statement ok
DROP VIEW view_1_tab2_236

statement ok
DROP VIEW view_2_tab2_236

statement ok
DROP VIEW view_3_tab2_236

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab3_236 AS SELECT pk, col0 FROM tab3 WHERE col3 IS NULL OR col3 > 246

statement ok
CREATE VIEW view_2_tab3_236 AS SELECT pk, col0 FROM tab3 WHERE NOT (col3 IS NULL OR col3 > 246)

statement ok
CREATE VIEW view_3_tab3_236 AS SELECT pk FROM view_1_tab3_236

query II rowsort label-1000-1
SELECT pk, col0 FROM tab3 WHERE col3 IS NULL OR col3 > 246
----
148 values hashing to d1d97ea83ab2ddc611dc679f68d9cb49

query II rowsort label-1000-2
SELECT pk, col0 FROM tab3 WHERE NOT (col3 IS NULL OR col3 > 246)
----
52 values hashing to 9478428eb9ca53e4d024ba625d6bdb9d

query II rowsort label-1000-1
SELECT pk, col0 FROM view_1_tab3_236
----
148 values hashing to d1d97ea83ab2ddc611dc679f68d9cb49

query II rowsort label-1000-2
SELECT pk, col0 FROM view_2_tab3_236
----
52 values hashing to 9478428eb9ca53e4d024ba625d6bdb9d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 IS NULL OR col3 > 246 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col3 IS NULL OR col3 > 246)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_236 UNION ALL SELECT pk, col0 FROM view_2_tab3_236
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 IS NULL OR col3 > 246 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col3 IS NULL OR col3 > 246)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_236 UNION SELECT pk, col0 FROM view_2_tab3_236
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-1000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col3 IS NULL OR col3 > 246 ) AS tab3_236
----
74 values hashing to 5ad20fe152e830337d40d9d608a17eee

query I rowsort label-1000-3
SELECT * FROM view_3_tab3_236
----
74 values hashing to 5ad20fe152e830337d40d9d608a17eee

query I rowsort label-1000-3
SELECT pk FROM tab3 WHERE col3 IS NULL OR col3 > 246
----
74 values hashing to 5ad20fe152e830337d40d9d608a17eee

statement ok
DROP VIEW view_1_tab3_236

statement ok
DROP VIEW view_2_tab3_236

statement ok
DROP VIEW view_3_tab3_236

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab4_236 AS SELECT pk, col0 FROM tab4 WHERE col3 IS NULL OR col3 > 246

statement ok
CREATE VIEW view_2_tab4_236 AS SELECT pk, col0 FROM tab4 WHERE NOT (col3 IS NULL OR col3 > 246)

statement ok
CREATE VIEW view_3_tab4_236 AS SELECT pk FROM view_1_tab4_236

query II rowsort label-1000-1
SELECT pk, col0 FROM tab4 WHERE col3 IS NULL OR col3 > 246
----
148 values hashing to d1d97ea83ab2ddc611dc679f68d9cb49

query II rowsort label-1000-2
SELECT pk, col0 FROM tab4 WHERE NOT (col3 IS NULL OR col3 > 246)
----
52 values hashing to 9478428eb9ca53e4d024ba625d6bdb9d

query II rowsort label-1000-1
SELECT pk, col0 FROM view_1_tab4_236
----
148 values hashing to d1d97ea83ab2ddc611dc679f68d9cb49

query II rowsort label-1000-2
SELECT pk, col0 FROM view_2_tab4_236
----
52 values hashing to 9478428eb9ca53e4d024ba625d6bdb9d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 IS NULL OR col3 > 246 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col3 IS NULL OR col3 > 246)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_236 UNION ALL SELECT pk, col0 FROM view_2_tab4_236
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 IS NULL OR col3 > 246 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col3 IS NULL OR col3 > 246)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_236 UNION SELECT pk, col0 FROM view_2_tab4_236
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-1000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col3 IS NULL OR col3 > 246 ) AS tab4_236
----
74 values hashing to 5ad20fe152e830337d40d9d608a17eee

query I rowsort label-1000-3
SELECT * FROM view_3_tab4_236
----
74 values hashing to 5ad20fe152e830337d40d9d608a17eee

query I rowsort label-1000-3
SELECT pk FROM tab4 WHERE col3 IS NULL OR col3 > 246
----
74 values hashing to 5ad20fe152e830337d40d9d608a17eee

statement ok
DROP VIEW view_1_tab4_236

statement ok
DROP VIEW view_2_tab4_236

statement ok
DROP VIEW view_3_tab4_236

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab0_237 AS SELECT pk, col0 FROM tab0 WHERE col4 < 750.37 OR ((col0 > 876 AND col0 > 638 AND (col0 >= 42)))

statement ok
CREATE VIEW view_2_tab0_237 AS SELECT pk, col0 FROM tab0 WHERE NOT (col4 < 750.37 OR ((col0 > 876 AND col0 > 638 AND (col0 >= 42))))

statement ok
CREATE VIEW view_3_tab0_237 AS SELECT pk FROM view_1_tab0_237

query II rowsort label-1100-1
SELECT pk, col0 FROM tab0 WHERE col4 < 750.37 OR ((col0 > 876 AND col0 > 638 AND (col0 >= 42)))
----
164 values hashing to e0e11eb602fa4cdd7bcd74ce77840bc0

query II rowsort label-1100-2
SELECT pk, col0 FROM tab0 WHERE NOT (col4 < 750.37 OR ((col0 > 876 AND col0 > 638 AND (col0 >= 42))))
----
36 values hashing to 40348f7e75553f42b77710c8e011cfa2

query II rowsort label-1100-1
SELECT pk, col0 FROM view_1_tab0_237
----
164 values hashing to e0e11eb602fa4cdd7bcd74ce77840bc0

query II rowsort label-1100-2
SELECT pk, col0 FROM view_2_tab0_237
----
36 values hashing to 40348f7e75553f42b77710c8e011cfa2

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col4 < 750.37 OR ((col0 > 876 AND col0 > 638 AND (col0 >= 42))) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col4 < 750.37 OR ((col0 > 876 AND col0 > 638 AND (col0 >= 42))))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_237 UNION ALL SELECT pk, col0 FROM view_2_tab0_237
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col4 < 750.37 OR ((col0 > 876 AND col0 > 638 AND (col0 >= 42))) UNION SELECT pk, col0 FROM tab0 WHERE NOT (col4 < 750.37 OR ((col0 > 876 AND col0 > 638 AND (col0 >= 42))))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_237 UNION SELECT pk, col0 FROM view_2_tab0_237
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-1100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col4 < 750.37 OR ((col0 > 876 AND col0 > 638 AND (col0 >= 42))) ) AS tab0_237
----
82 values hashing to cb20d7602297ed852bf66f6d469216b2

query I rowsort label-1100-3
SELECT * FROM view_3_tab0_237
----
82 values hashing to cb20d7602297ed852bf66f6d469216b2

query I rowsort label-1100-3
SELECT pk FROM tab0 WHERE col4 < 750.37 OR ((col0 > 876 AND col0 > 638 AND (col0 >= 42)))
----
82 values hashing to cb20d7602297ed852bf66f6d469216b2

statement ok
DROP VIEW view_1_tab0_237

statement ok
DROP VIEW view_2_tab0_237

statement ok
DROP VIEW view_3_tab0_237

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab1_237 AS SELECT pk, col0 FROM tab1 WHERE col4 < 750.37 OR ((col0 > 876 AND col0 > 638 AND (col0 >= 42)))

statement ok
CREATE VIEW view_2_tab1_237 AS SELECT pk, col0 FROM tab1 WHERE NOT (col4 < 750.37 OR ((col0 > 876 AND col0 > 638 AND (col0 >= 42))))

statement ok
CREATE VIEW view_3_tab1_237 AS SELECT pk FROM view_1_tab1_237

query II rowsort label-1100-1
SELECT pk, col0 FROM tab1 WHERE col4 < 750.37 OR ((col0 > 876 AND col0 > 638 AND (col0 >= 42)))
----
164 values hashing to e0e11eb602fa4cdd7bcd74ce77840bc0

query II rowsort label-1100-2
SELECT pk, col0 FROM tab1 WHERE NOT (col4 < 750.37 OR ((col0 > 876 AND col0 > 638 AND (col0 >= 42))))
----
36 values hashing to 40348f7e75553f42b77710c8e011cfa2

query II rowsort label-1100-1
SELECT pk, col0 FROM view_1_tab1_237
----
164 values hashing to e0e11eb602fa4cdd7bcd74ce77840bc0

query II rowsort label-1100-2
SELECT pk, col0 FROM view_2_tab1_237
----
36 values hashing to 40348f7e75553f42b77710c8e011cfa2

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col4 < 750.37 OR ((col0 > 876 AND col0 > 638 AND (col0 >= 42))) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col4 < 750.37 OR ((col0 > 876 AND col0 > 638 AND (col0 >= 42))))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_237 UNION ALL SELECT pk, col0 FROM view_2_tab1_237
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col4 < 750.37 OR ((col0 > 876 AND col0 > 638 AND (col0 >= 42))) UNION SELECT pk, col0 FROM tab1 WHERE NOT (col4 < 750.37 OR ((col0 > 876 AND col0 > 638 AND (col0 >= 42))))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_237 UNION SELECT pk, col0 FROM view_2_tab1_237
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-1100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col4 < 750.37 OR ((col0 > 876 AND col0 > 638 AND (col0 >= 42))) ) AS tab1_237
----
82 values hashing to cb20d7602297ed852bf66f6d469216b2

query I rowsort label-1100-3
SELECT * FROM view_3_tab1_237
----
82 values hashing to cb20d7602297ed852bf66f6d469216b2

query I rowsort label-1100-3
SELECT pk FROM tab1 WHERE col4 < 750.37 OR ((col0 > 876 AND col0 > 638 AND (col0 >= 42)))
----
82 values hashing to cb20d7602297ed852bf66f6d469216b2

statement ok
DROP VIEW view_1_tab1_237

statement ok
DROP VIEW view_2_tab1_237

statement ok
DROP VIEW view_3_tab1_237

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab2_237 AS SELECT pk, col0 FROM tab2 WHERE col4 < 750.37 OR ((col0 > 876 AND col0 > 638 AND (col0 >= 42)))

statement ok
CREATE VIEW view_2_tab2_237 AS SELECT pk, col0 FROM tab2 WHERE NOT (col4 < 750.37 OR ((col0 > 876 AND col0 > 638 AND (col0 >= 42))))

statement ok
CREATE VIEW view_3_tab2_237 AS SELECT pk FROM view_1_tab2_237

query II rowsort label-1100-1
SELECT pk, col0 FROM tab2 WHERE col4 < 750.37 OR ((col0 > 876 AND col0 > 638 AND (col0 >= 42)))
----
164 values hashing to e0e11eb602fa4cdd7bcd74ce77840bc0

query II rowsort label-1100-2
SELECT pk, col0 FROM tab2 WHERE NOT (col4 < 750.37 OR ((col0 > 876 AND col0 > 638 AND (col0 >= 42))))
----
36 values hashing to 40348f7e75553f42b77710c8e011cfa2

query II rowsort label-1100-1
SELECT pk, col0 FROM view_1_tab2_237
----
164 values hashing to e0e11eb602fa4cdd7bcd74ce77840bc0

query II rowsort label-1100-2
SELECT pk, col0 FROM view_2_tab2_237
----
36 values hashing to 40348f7e75553f42b77710c8e011cfa2

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col4 < 750.37 OR ((col0 > 876 AND col0 > 638 AND (col0 >= 42))) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col4 < 750.37 OR ((col0 > 876 AND col0 > 638 AND (col0 >= 42))))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_237 UNION ALL SELECT pk, col0 FROM view_2_tab2_237
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col4 < 750.37 OR ((col0 > 876 AND col0 > 638 AND (col0 >= 42))) UNION SELECT pk, col0 FROM tab2 WHERE NOT (col4 < 750.37 OR ((col0 > 876 AND col0 > 638 AND (col0 >= 42))))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_237 UNION SELECT pk, col0 FROM view_2_tab2_237
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-1100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col4 < 750.37 OR ((col0 > 876 AND col0 > 638 AND (col0 >= 42))) ) AS tab2_237
----
82 values hashing to cb20d7602297ed852bf66f6d469216b2

query I rowsort label-1100-3
SELECT * FROM view_3_tab2_237
----
82 values hashing to cb20d7602297ed852bf66f6d469216b2

query I rowsort label-1100-3
SELECT pk FROM tab2 WHERE col4 < 750.37 OR ((col0 > 876 AND col0 > 638 AND (col0 >= 42)))
----
82 values hashing to cb20d7602297ed852bf66f6d469216b2

statement ok
DROP VIEW view_1_tab2_237

statement ok
DROP VIEW view_2_tab2_237

statement ok
DROP VIEW view_3_tab2_237

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab3_237 AS SELECT pk, col0 FROM tab3 WHERE col4 < 750.37 OR ((col0 > 876 AND col0 > 638 AND (col0 >= 42)))

statement ok
CREATE VIEW view_2_tab3_237 AS SELECT pk, col0 FROM tab3 WHERE NOT (col4 < 750.37 OR ((col0 > 876 AND col0 > 638 AND (col0 >= 42))))

statement ok
CREATE VIEW view_3_tab3_237 AS SELECT pk FROM view_1_tab3_237

query II rowsort label-1100-1
SELECT pk, col0 FROM tab3 WHERE col4 < 750.37 OR ((col0 > 876 AND col0 > 638 AND (col0 >= 42)))
----
164 values hashing to e0e11eb602fa4cdd7bcd74ce77840bc0

query II rowsort label-1100-2
SELECT pk, col0 FROM tab3 WHERE NOT (col4 < 750.37 OR ((col0 > 876 AND col0 > 638 AND (col0 >= 42))))
----
36 values hashing to 40348f7e75553f42b77710c8e011cfa2

query II rowsort label-1100-1
SELECT pk, col0 FROM view_1_tab3_237
----
164 values hashing to e0e11eb602fa4cdd7bcd74ce77840bc0

query II rowsort label-1100-2
SELECT pk, col0 FROM view_2_tab3_237
----
36 values hashing to 40348f7e75553f42b77710c8e011cfa2

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col4 < 750.37 OR ((col0 > 876 AND col0 > 638 AND (col0 >= 42))) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col4 < 750.37 OR ((col0 > 876 AND col0 > 638 AND (col0 >= 42))))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_237 UNION ALL SELECT pk, col0 FROM view_2_tab3_237
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col4 < 750.37 OR ((col0 > 876 AND col0 > 638 AND (col0 >= 42))) UNION SELECT pk, col0 FROM tab3 WHERE NOT (col4 < 750.37 OR ((col0 > 876 AND col0 > 638 AND (col0 >= 42))))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_237 UNION SELECT pk, col0 FROM view_2_tab3_237
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-1100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col4 < 750.37 OR ((col0 > 876 AND col0 > 638 AND (col0 >= 42))) ) AS tab3_237
----
82 values hashing to cb20d7602297ed852bf66f6d469216b2

query I rowsort label-1100-3
SELECT * FROM view_3_tab3_237
----
82 values hashing to cb20d7602297ed852bf66f6d469216b2

query I rowsort label-1100-3
SELECT pk FROM tab3 WHERE col4 < 750.37 OR ((col0 > 876 AND col0 > 638 AND (col0 >= 42)))
----
82 values hashing to cb20d7602297ed852bf66f6d469216b2

statement ok
DROP VIEW view_1_tab3_237

statement ok
DROP VIEW view_2_tab3_237

statement ok
DROP VIEW view_3_tab3_237

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab4_237 AS SELECT pk, col0 FROM tab4 WHERE col4 < 750.37 OR ((col0 > 876 AND col0 > 638 AND (col0 >= 42)))

statement ok
CREATE VIEW view_2_tab4_237 AS SELECT pk, col0 FROM tab4 WHERE NOT (col4 < 750.37 OR ((col0 > 876 AND col0 > 638 AND (col0 >= 42))))

statement ok
CREATE VIEW view_3_tab4_237 AS SELECT pk FROM view_1_tab4_237

query II rowsort label-1100-1
SELECT pk, col0 FROM tab4 WHERE col4 < 750.37 OR ((col0 > 876 AND col0 > 638 AND (col0 >= 42)))
----
164 values hashing to e0e11eb602fa4cdd7bcd74ce77840bc0

query II rowsort label-1100-2
SELECT pk, col0 FROM tab4 WHERE NOT (col4 < 750.37 OR ((col0 > 876 AND col0 > 638 AND (col0 >= 42))))
----
36 values hashing to 40348f7e75553f42b77710c8e011cfa2

query II rowsort label-1100-1
SELECT pk, col0 FROM view_1_tab4_237
----
164 values hashing to e0e11eb602fa4cdd7bcd74ce77840bc0

query II rowsort label-1100-2
SELECT pk, col0 FROM view_2_tab4_237
----
36 values hashing to 40348f7e75553f42b77710c8e011cfa2

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col4 < 750.37 OR ((col0 > 876 AND col0 > 638 AND (col0 >= 42))) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col4 < 750.37 OR ((col0 > 876 AND col0 > 638 AND (col0 >= 42))))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_237 UNION ALL SELECT pk, col0 FROM view_2_tab4_237
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col4 < 750.37 OR ((col0 > 876 AND col0 > 638 AND (col0 >= 42))) UNION SELECT pk, col0 FROM tab4 WHERE NOT (col4 < 750.37 OR ((col0 > 876 AND col0 > 638 AND (col0 >= 42))))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_237 UNION SELECT pk, col0 FROM view_2_tab4_237
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-1100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col4 < 750.37 OR ((col0 > 876 AND col0 > 638 AND (col0 >= 42))) ) AS tab4_237
----
82 values hashing to cb20d7602297ed852bf66f6d469216b2

query I rowsort label-1100-3
SELECT * FROM view_3_tab4_237
----
82 values hashing to cb20d7602297ed852bf66f6d469216b2

query I rowsort label-1100-3
SELECT pk FROM tab4 WHERE col4 < 750.37 OR ((col0 > 876 AND col0 > 638 AND (col0 >= 42)))
----
82 values hashing to cb20d7602297ed852bf66f6d469216b2

statement ok
DROP VIEW view_1_tab4_237

statement ok
DROP VIEW view_2_tab4_237

statement ok
DROP VIEW view_3_tab4_237

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab0_239 AS SELECT pk, col0 FROM tab0 WHERE (col0 >= 659 OR col1 < 607.82 OR col3 > 93 AND (col0 > 544) AND (col3 BETWEEN 890 AND 973) OR (col0 < 407 AND col3 <= 519) OR (col3 >= 256) AND col3 > 702) OR col1 < 735.0 AND col4 > 140.52

statement ok
CREATE VIEW view_2_tab0_239 AS SELECT pk, col0 FROM tab0 WHERE NOT ((col0 >= 659 OR col1 < 607.82 OR col3 > 93 AND (col0 > 544) AND (col3 BETWEEN 890 AND 973) OR (col0 < 407 AND col3 <= 519) OR (col3 >= 256) AND col3 > 702) OR col1 < 735.0 AND col4 > 140.52)

statement ok
CREATE VIEW view_3_tab0_239 AS SELECT pk FROM view_1_tab0_239

query II rowsort label-1200-1
SELECT pk, col0 FROM tab0 WHERE (col0 >= 659 OR col1 < 607.82 OR col3 > 93 AND (col0 > 544) AND (col3 BETWEEN 890 AND 973) OR (col0 < 407 AND col3 <= 519) OR (col3 >= 256) AND col3 > 702) OR col1 < 735.0 AND col4 > 140.52
----
180 values hashing to 5519de74f5dc7c0e161c0049ca01479f

query II rowsort label-1200-2
SELECT pk, col0 FROM tab0 WHERE NOT ((col0 >= 659 OR col1 < 607.82 OR col3 > 93 AND (col0 > 544) AND (col3 BETWEEN 890 AND 973) OR (col0 < 407 AND col3 <= 519) OR (col3 >= 256) AND col3 > 702) OR col1 < 735.0 AND col4 > 140.52)
----
20 values hashing to dae7af53fc6cf6f920144113b3978cf4

query II rowsort label-1200-1
SELECT pk, col0 FROM view_1_tab0_239
----
180 values hashing to 5519de74f5dc7c0e161c0049ca01479f

query II rowsort label-1200-2
SELECT pk, col0 FROM view_2_tab0_239
----
20 values hashing to dae7af53fc6cf6f920144113b3978cf4

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col0 >= 659 OR col1 < 607.82 OR col3 > 93 AND (col0 > 544) AND (col3 BETWEEN 890 AND 973) OR (col0 < 407 AND col3 <= 519) OR (col3 >= 256) AND col3 > 702) OR col1 < 735.0 AND col4 > 140.52 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT ((col0 >= 659 OR col1 < 607.82 OR col3 > 93 AND (col0 > 544) AND (col3 BETWEEN 890 AND 973) OR (col0 < 407 AND col3 <= 519) OR (col3 >= 256) AND col3 > 702) OR col1 < 735.0 AND col4 > 140.52)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_239 UNION ALL SELECT pk, col0 FROM view_2_tab0_239
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col0 >= 659 OR col1 < 607.82 OR col3 > 93 AND (col0 > 544) AND (col3 BETWEEN 890 AND 973) OR (col0 < 407 AND col3 <= 519) OR (col3 >= 256) AND col3 > 702) OR col1 < 735.0 AND col4 > 140.52 UNION SELECT pk, col0 FROM tab0 WHERE NOT ((col0 >= 659 OR col1 < 607.82 OR col3 > 93 AND (col0 > 544) AND (col3 BETWEEN 890 AND 973) OR (col0 < 407 AND col3 <= 519) OR (col3 >= 256) AND col3 > 702) OR col1 < 735.0 AND col4 > 140.52)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_239 UNION SELECT pk, col0 FROM view_2_tab0_239
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-1200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE (col0 >= 659 OR col1 < 607.82 OR col3 > 93 AND (col0 > 544) AND (col3 BETWEEN 890 AND 973) OR (col0 < 407 AND col3 <= 519) OR (col3 >= 256) AND col3 > 702) OR col1 < 735.0 AND col4 > 140.52 ) AS tab0_239
----
90 values hashing to f0d01d2a464f68494498153035674949

query I rowsort label-1200-3
SELECT * FROM view_3_tab0_239
----
90 values hashing to f0d01d2a464f68494498153035674949

query I rowsort label-1200-3
SELECT pk FROM tab0 WHERE (col0 >= 659 OR col1 < 607.82 OR col3 > 93 AND (col0 > 544) AND (col3 BETWEEN 890 AND 973) OR (col0 < 407 AND col3 <= 519) OR (col3 >= 256) AND col3 > 702) OR col1 < 735.0 AND col4 > 140.52
----
90 values hashing to f0d01d2a464f68494498153035674949

statement ok
DROP VIEW view_1_tab0_239

statement ok
DROP VIEW view_2_tab0_239

statement ok
DROP VIEW view_3_tab0_239

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab1_239 AS SELECT pk, col0 FROM tab1 WHERE (col0 >= 659 OR col1 < 607.82 OR col3 > 93 AND (col0 > 544) AND (col3 BETWEEN 890 AND 973) OR (col0 < 407 AND col3 <= 519) OR (col3 >= 256) AND col3 > 702) OR col1 < 735.0 AND col4 > 140.52

statement ok
CREATE VIEW view_2_tab1_239 AS SELECT pk, col0 FROM tab1 WHERE NOT ((col0 >= 659 OR col1 < 607.82 OR col3 > 93 AND (col0 > 544) AND (col3 BETWEEN 890 AND 973) OR (col0 < 407 AND col3 <= 519) OR (col3 >= 256) AND col3 > 702) OR col1 < 735.0 AND col4 > 140.52)

statement ok
CREATE VIEW view_3_tab1_239 AS SELECT pk FROM view_1_tab1_239

query II rowsort label-1200-1
SELECT pk, col0 FROM tab1 WHERE (col0 >= 659 OR col1 < 607.82 OR col3 > 93 AND (col0 > 544) AND (col3 BETWEEN 890 AND 973) OR (col0 < 407 AND col3 <= 519) OR (col3 >= 256) AND col3 > 702) OR col1 < 735.0 AND col4 > 140.52
----
180 values hashing to 5519de74f5dc7c0e161c0049ca01479f

query II rowsort label-1200-2
SELECT pk, col0 FROM tab1 WHERE NOT ((col0 >= 659 OR col1 < 607.82 OR col3 > 93 AND (col0 > 544) AND (col3 BETWEEN 890 AND 973) OR (col0 < 407 AND col3 <= 519) OR (col3 >= 256) AND col3 > 702) OR col1 < 735.0 AND col4 > 140.52)
----
20 values hashing to dae7af53fc6cf6f920144113b3978cf4

query II rowsort label-1200-1
SELECT pk, col0 FROM view_1_tab1_239
----
180 values hashing to 5519de74f5dc7c0e161c0049ca01479f

query II rowsort label-1200-2
SELECT pk, col0 FROM view_2_tab1_239
----
20 values hashing to dae7af53fc6cf6f920144113b3978cf4

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col0 >= 659 OR col1 < 607.82 OR col3 > 93 AND (col0 > 544) AND (col3 BETWEEN 890 AND 973) OR (col0 < 407 AND col3 <= 519) OR (col3 >= 256) AND col3 > 702) OR col1 < 735.0 AND col4 > 140.52 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT ((col0 >= 659 OR col1 < 607.82 OR col3 > 93 AND (col0 > 544) AND (col3 BETWEEN 890 AND 973) OR (col0 < 407 AND col3 <= 519) OR (col3 >= 256) AND col3 > 702) OR col1 < 735.0 AND col4 > 140.52)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_239 UNION ALL SELECT pk, col0 FROM view_2_tab1_239
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col0 >= 659 OR col1 < 607.82 OR col3 > 93 AND (col0 > 544) AND (col3 BETWEEN 890 AND 973) OR (col0 < 407 AND col3 <= 519) OR (col3 >= 256) AND col3 > 702) OR col1 < 735.0 AND col4 > 140.52 UNION SELECT pk, col0 FROM tab1 WHERE NOT ((col0 >= 659 OR col1 < 607.82 OR col3 > 93 AND (col0 > 544) AND (col3 BETWEEN 890 AND 973) OR (col0 < 407 AND col3 <= 519) OR (col3 >= 256) AND col3 > 702) OR col1 < 735.0 AND col4 > 140.52)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_239 UNION SELECT pk, col0 FROM view_2_tab1_239
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-1200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE (col0 >= 659 OR col1 < 607.82 OR col3 > 93 AND (col0 > 544) AND (col3 BETWEEN 890 AND 973) OR (col0 < 407 AND col3 <= 519) OR (col3 >= 256) AND col3 > 702) OR col1 < 735.0 AND col4 > 140.52 ) AS tab1_239
----
90 values hashing to f0d01d2a464f68494498153035674949

query I rowsort label-1200-3
SELECT * FROM view_3_tab1_239
----
90 values hashing to f0d01d2a464f68494498153035674949

query I rowsort label-1200-3
SELECT pk FROM tab1 WHERE (col0 >= 659 OR col1 < 607.82 OR col3 > 93 AND (col0 > 544) AND (col3 BETWEEN 890 AND 973) OR (col0 < 407 AND col3 <= 519) OR (col3 >= 256) AND col3 > 702) OR col1 < 735.0 AND col4 > 140.52
----
90 values hashing to f0d01d2a464f68494498153035674949

statement ok
DROP VIEW view_1_tab1_239

statement ok
DROP VIEW view_2_tab1_239

statement ok
DROP VIEW view_3_tab1_239

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab2_239 AS SELECT pk, col0 FROM tab2 WHERE (col0 >= 659 OR col1 < 607.82 OR col3 > 93 AND (col0 > 544) AND (col3 BETWEEN 890 AND 973) OR (col0 < 407 AND col3 <= 519) OR (col3 >= 256) AND col3 > 702) OR col1 < 735.0 AND col4 > 140.52

statement ok
CREATE VIEW view_2_tab2_239 AS SELECT pk, col0 FROM tab2 WHERE NOT ((col0 >= 659 OR col1 < 607.82 OR col3 > 93 AND (col0 > 544) AND (col3 BETWEEN 890 AND 973) OR (col0 < 407 AND col3 <= 519) OR (col3 >= 256) AND col3 > 702) OR col1 < 735.0 AND col4 > 140.52)

statement ok
CREATE VIEW view_3_tab2_239 AS SELECT pk FROM view_1_tab2_239

query II rowsort label-1200-1
SELECT pk, col0 FROM tab2 WHERE (col0 >= 659 OR col1 < 607.82 OR col3 > 93 AND (col0 > 544) AND (col3 BETWEEN 890 AND 973) OR (col0 < 407 AND col3 <= 519) OR (col3 >= 256) AND col3 > 702) OR col1 < 735.0 AND col4 > 140.52
----
180 values hashing to 5519de74f5dc7c0e161c0049ca01479f

query II rowsort label-1200-2
SELECT pk, col0 FROM tab2 WHERE NOT ((col0 >= 659 OR col1 < 607.82 OR col3 > 93 AND (col0 > 544) AND (col3 BETWEEN 890 AND 973) OR (col0 < 407 AND col3 <= 519) OR (col3 >= 256) AND col3 > 702) OR col1 < 735.0 AND col4 > 140.52)
----
20 values hashing to dae7af53fc6cf6f920144113b3978cf4

query II rowsort label-1200-1
SELECT pk, col0 FROM view_1_tab2_239
----
180 values hashing to 5519de74f5dc7c0e161c0049ca01479f

query II rowsort label-1200-2
SELECT pk, col0 FROM view_2_tab2_239
----
20 values hashing to dae7af53fc6cf6f920144113b3978cf4

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col0 >= 659 OR col1 < 607.82 OR col3 > 93 AND (col0 > 544) AND (col3 BETWEEN 890 AND 973) OR (col0 < 407 AND col3 <= 519) OR (col3 >= 256) AND col3 > 702) OR col1 < 735.0 AND col4 > 140.52 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT ((col0 >= 659 OR col1 < 607.82 OR col3 > 93 AND (col0 > 544) AND (col3 BETWEEN 890 AND 973) OR (col0 < 407 AND col3 <= 519) OR (col3 >= 256) AND col3 > 702) OR col1 < 735.0 AND col4 > 140.52)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_239 UNION ALL SELECT pk, col0 FROM view_2_tab2_239
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col0 >= 659 OR col1 < 607.82 OR col3 > 93 AND (col0 > 544) AND (col3 BETWEEN 890 AND 973) OR (col0 < 407 AND col3 <= 519) OR (col3 >= 256) AND col3 > 702) OR col1 < 735.0 AND col4 > 140.52 UNION SELECT pk, col0 FROM tab2 WHERE NOT ((col0 >= 659 OR col1 < 607.82 OR col3 > 93 AND (col0 > 544) AND (col3 BETWEEN 890 AND 973) OR (col0 < 407 AND col3 <= 519) OR (col3 >= 256) AND col3 > 702) OR col1 < 735.0 AND col4 > 140.52)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_239 UNION SELECT pk, col0 FROM view_2_tab2_239
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-1200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE (col0 >= 659 OR col1 < 607.82 OR col3 > 93 AND (col0 > 544) AND (col3 BETWEEN 890 AND 973) OR (col0 < 407 AND col3 <= 519) OR (col3 >= 256) AND col3 > 702) OR col1 < 735.0 AND col4 > 140.52 ) AS tab2_239
----
90 values hashing to f0d01d2a464f68494498153035674949

query I rowsort label-1200-3
SELECT * FROM view_3_tab2_239
----
90 values hashing to f0d01d2a464f68494498153035674949

query I rowsort label-1200-3
SELECT pk FROM tab2 WHERE (col0 >= 659 OR col1 < 607.82 OR col3 > 93 AND (col0 > 544) AND (col3 BETWEEN 890 AND 973) OR (col0 < 407 AND col3 <= 519) OR (col3 >= 256) AND col3 > 702) OR col1 < 735.0 AND col4 > 140.52
----
90 values hashing to f0d01d2a464f68494498153035674949

statement ok
DROP VIEW view_1_tab2_239

statement ok
DROP VIEW view_2_tab2_239

statement ok
DROP VIEW view_3_tab2_239

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab3_239 AS SELECT pk, col0 FROM tab3 WHERE (col0 >= 659 OR col1 < 607.82 OR col3 > 93 AND (col0 > 544) AND (col3 BETWEEN 890 AND 973) OR (col0 < 407 AND col3 <= 519) OR (col3 >= 256) AND col3 > 702) OR col1 < 735.0 AND col4 > 140.52

statement ok
CREATE VIEW view_2_tab3_239 AS SELECT pk, col0 FROM tab3 WHERE NOT ((col0 >= 659 OR col1 < 607.82 OR col3 > 93 AND (col0 > 544) AND (col3 BETWEEN 890 AND 973) OR (col0 < 407 AND col3 <= 519) OR (col3 >= 256) AND col3 > 702) OR col1 < 735.0 AND col4 > 140.52)

statement ok
CREATE VIEW view_3_tab3_239 AS SELECT pk FROM view_1_tab3_239

query II rowsort label-1200-1
SELECT pk, col0 FROM tab3 WHERE (col0 >= 659 OR col1 < 607.82 OR col3 > 93 AND (col0 > 544) AND (col3 BETWEEN 890 AND 973) OR (col0 < 407 AND col3 <= 519) OR (col3 >= 256) AND col3 > 702) OR col1 < 735.0 AND col4 > 140.52
----
180 values hashing to 5519de74f5dc7c0e161c0049ca01479f

query II rowsort label-1200-2
SELECT pk, col0 FROM tab3 WHERE NOT ((col0 >= 659 OR col1 < 607.82 OR col3 > 93 AND (col0 > 544) AND (col3 BETWEEN 890 AND 973) OR (col0 < 407 AND col3 <= 519) OR (col3 >= 256) AND col3 > 702) OR col1 < 735.0 AND col4 > 140.52)
----
20 values hashing to dae7af53fc6cf6f920144113b3978cf4

query II rowsort label-1200-1
SELECT pk, col0 FROM view_1_tab3_239
----
180 values hashing to 5519de74f5dc7c0e161c0049ca01479f

query II rowsort label-1200-2
SELECT pk, col0 FROM view_2_tab3_239
----
20 values hashing to dae7af53fc6cf6f920144113b3978cf4

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col0 >= 659 OR col1 < 607.82 OR col3 > 93 AND (col0 > 544) AND (col3 BETWEEN 890 AND 973) OR (col0 < 407 AND col3 <= 519) OR (col3 >= 256) AND col3 > 702) OR col1 < 735.0 AND col4 > 140.52 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT ((col0 >= 659 OR col1 < 607.82 OR col3 > 93 AND (col0 > 544) AND (col3 BETWEEN 890 AND 973) OR (col0 < 407 AND col3 <= 519) OR (col3 >= 256) AND col3 > 702) OR col1 < 735.0 AND col4 > 140.52)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_239 UNION ALL SELECT pk, col0 FROM view_2_tab3_239
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col0 >= 659 OR col1 < 607.82 OR col3 > 93 AND (col0 > 544) AND (col3 BETWEEN 890 AND 973) OR (col0 < 407 AND col3 <= 519) OR (col3 >= 256) AND col3 > 702) OR col1 < 735.0 AND col4 > 140.52 UNION SELECT pk, col0 FROM tab3 WHERE NOT ((col0 >= 659 OR col1 < 607.82 OR col3 > 93 AND (col0 > 544) AND (col3 BETWEEN 890 AND 973) OR (col0 < 407 AND col3 <= 519) OR (col3 >= 256) AND col3 > 702) OR col1 < 735.0 AND col4 > 140.52)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_239 UNION SELECT pk, col0 FROM view_2_tab3_239
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-1200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE (col0 >= 659 OR col1 < 607.82 OR col3 > 93 AND (col0 > 544) AND (col3 BETWEEN 890 AND 973) OR (col0 < 407 AND col3 <= 519) OR (col3 >= 256) AND col3 > 702) OR col1 < 735.0 AND col4 > 140.52 ) AS tab3_239
----
90 values hashing to f0d01d2a464f68494498153035674949

query I rowsort label-1200-3
SELECT * FROM view_3_tab3_239
----
90 values hashing to f0d01d2a464f68494498153035674949

query I rowsort label-1200-3
SELECT pk FROM tab3 WHERE (col0 >= 659 OR col1 < 607.82 OR col3 > 93 AND (col0 > 544) AND (col3 BETWEEN 890 AND 973) OR (col0 < 407 AND col3 <= 519) OR (col3 >= 256) AND col3 > 702) OR col1 < 735.0 AND col4 > 140.52
----
90 values hashing to f0d01d2a464f68494498153035674949

statement ok
DROP VIEW view_1_tab3_239

statement ok
DROP VIEW view_2_tab3_239

statement ok
DROP VIEW view_3_tab3_239

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab4_239 AS SELECT pk, col0 FROM tab4 WHERE (col0 >= 659 OR col1 < 607.82 OR col3 > 93 AND (col0 > 544) AND (col3 BETWEEN 890 AND 973) OR (col0 < 407 AND col3 <= 519) OR (col3 >= 256) AND col3 > 702) OR col1 < 735.0 AND col4 > 140.52

statement ok
CREATE VIEW view_2_tab4_239 AS SELECT pk, col0 FROM tab4 WHERE NOT ((col0 >= 659 OR col1 < 607.82 OR col3 > 93 AND (col0 > 544) AND (col3 BETWEEN 890 AND 973) OR (col0 < 407 AND col3 <= 519) OR (col3 >= 256) AND col3 > 702) OR col1 < 735.0 AND col4 > 140.52)

statement ok
CREATE VIEW view_3_tab4_239 AS SELECT pk FROM view_1_tab4_239

query II rowsort label-1200-1
SELECT pk, col0 FROM tab4 WHERE (col0 >= 659 OR col1 < 607.82 OR col3 > 93 AND (col0 > 544) AND (col3 BETWEEN 890 AND 973) OR (col0 < 407 AND col3 <= 519) OR (col3 >= 256) AND col3 > 702) OR col1 < 735.0 AND col4 > 140.52
----
180 values hashing to 5519de74f5dc7c0e161c0049ca01479f

query II rowsort label-1200-2
SELECT pk, col0 FROM tab4 WHERE NOT ((col0 >= 659 OR col1 < 607.82 OR col3 > 93 AND (col0 > 544) AND (col3 BETWEEN 890 AND 973) OR (col0 < 407 AND col3 <= 519) OR (col3 >= 256) AND col3 > 702) OR col1 < 735.0 AND col4 > 140.52)
----
20 values hashing to dae7af53fc6cf6f920144113b3978cf4

query II rowsort label-1200-1
SELECT pk, col0 FROM view_1_tab4_239
----
180 values hashing to 5519de74f5dc7c0e161c0049ca01479f

query II rowsort label-1200-2
SELECT pk, col0 FROM view_2_tab4_239
----
20 values hashing to dae7af53fc6cf6f920144113b3978cf4

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col0 >= 659 OR col1 < 607.82 OR col3 > 93 AND (col0 > 544) AND (col3 BETWEEN 890 AND 973) OR (col0 < 407 AND col3 <= 519) OR (col3 >= 256) AND col3 > 702) OR col1 < 735.0 AND col4 > 140.52 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT ((col0 >= 659 OR col1 < 607.82 OR col3 > 93 AND (col0 > 544) AND (col3 BETWEEN 890 AND 973) OR (col0 < 407 AND col3 <= 519) OR (col3 >= 256) AND col3 > 702) OR col1 < 735.0 AND col4 > 140.52)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_239 UNION ALL SELECT pk, col0 FROM view_2_tab4_239
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col0 >= 659 OR col1 < 607.82 OR col3 > 93 AND (col0 > 544) AND (col3 BETWEEN 890 AND 973) OR (col0 < 407 AND col3 <= 519) OR (col3 >= 256) AND col3 > 702) OR col1 < 735.0 AND col4 > 140.52 UNION SELECT pk, col0 FROM tab4 WHERE NOT ((col0 >= 659 OR col1 < 607.82 OR col3 > 93 AND (col0 > 544) AND (col3 BETWEEN 890 AND 973) OR (col0 < 407 AND col3 <= 519) OR (col3 >= 256) AND col3 > 702) OR col1 < 735.0 AND col4 > 140.52)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_239 UNION SELECT pk, col0 FROM view_2_tab4_239
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-1200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE (col0 >= 659 OR col1 < 607.82 OR col3 > 93 AND (col0 > 544) AND (col3 BETWEEN 890 AND 973) OR (col0 < 407 AND col3 <= 519) OR (col3 >= 256) AND col3 > 702) OR col1 < 735.0 AND col4 > 140.52 ) AS tab4_239
----
90 values hashing to f0d01d2a464f68494498153035674949

query I rowsort label-1200-3
SELECT * FROM view_3_tab4_239
----
90 values hashing to f0d01d2a464f68494498153035674949

query I rowsort label-1200-3
SELECT pk FROM tab4 WHERE (col0 >= 659 OR col1 < 607.82 OR col3 > 93 AND (col0 > 544) AND (col3 BETWEEN 890 AND 973) OR (col0 < 407 AND col3 <= 519) OR (col3 >= 256) AND col3 > 702) OR col1 < 735.0 AND col4 > 140.52
----
90 values hashing to f0d01d2a464f68494498153035674949

statement ok
DROP VIEW view_1_tab4_239

statement ok
DROP VIEW view_2_tab4_239

statement ok
DROP VIEW view_3_tab4_239

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab0_240 AS SELECT pk, col0 FROM tab0 WHERE col0 <= 191 AND ((col4 IS NULL)) AND col4 IS NULL

statement ok
CREATE VIEW view_2_tab0_240 AS SELECT pk, col0 FROM tab0 WHERE NOT (col0 <= 191 AND ((col4 IS NULL)) AND col4 IS NULL)

statement ok
CREATE VIEW view_3_tab0_240 AS SELECT pk FROM view_1_tab0_240

query II rowsort label-1300-1
SELECT pk, col0 FROM tab0 WHERE col0 <= 191 AND ((col4 IS NULL)) AND col4 IS NULL
----

query II rowsort label-1300-2
SELECT pk, col0 FROM tab0 WHERE NOT (col0 <= 191 AND ((col4 IS NULL)) AND col4 IS NULL)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-1300-1
SELECT pk, col0 FROM view_1_tab0_240
----

query II rowsort label-1300-2
SELECT pk, col0 FROM view_2_tab0_240
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col0 <= 191 AND ((col4 IS NULL)) AND col4 IS NULL UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col0 <= 191 AND ((col4 IS NULL)) AND col4 IS NULL)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_240 UNION ALL SELECT pk, col0 FROM view_2_tab0_240
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col0 <= 191 AND ((col4 IS NULL)) AND col4 IS NULL UNION SELECT pk, col0 FROM tab0 WHERE NOT (col0 <= 191 AND ((col4 IS NULL)) AND col4 IS NULL)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_240 UNION SELECT pk, col0 FROM view_2_tab0_240
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-1300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col0 <= 191 AND ((col4 IS NULL)) AND col4 IS NULL ) AS tab0_240
----

query I rowsort label-1300-3
SELECT * FROM view_3_tab0_240
----

query I rowsort label-1300-3
SELECT pk FROM tab0 WHERE col0 <= 191 AND ((col4 IS NULL)) AND col4 IS NULL
----

statement ok
DROP VIEW view_1_tab0_240

statement ok
DROP VIEW view_2_tab0_240

statement ok
DROP VIEW view_3_tab0_240

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab1_240 AS SELECT pk, col0 FROM tab1 WHERE col0 <= 191 AND ((col4 IS NULL)) AND col4 IS NULL

statement ok
CREATE VIEW view_2_tab1_240 AS SELECT pk, col0 FROM tab1 WHERE NOT (col0 <= 191 AND ((col4 IS NULL)) AND col4 IS NULL)

statement ok
CREATE VIEW view_3_tab1_240 AS SELECT pk FROM view_1_tab1_240

query II rowsort label-1300-1
SELECT pk, col0 FROM tab1 WHERE col0 <= 191 AND ((col4 IS NULL)) AND col4 IS NULL
----

query II rowsort label-1300-2
SELECT pk, col0 FROM tab1 WHERE NOT (col0 <= 191 AND ((col4 IS NULL)) AND col4 IS NULL)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-1300-1
SELECT pk, col0 FROM view_1_tab1_240
----

query II rowsort label-1300-2
SELECT pk, col0 FROM view_2_tab1_240
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col0 <= 191 AND ((col4 IS NULL)) AND col4 IS NULL UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col0 <= 191 AND ((col4 IS NULL)) AND col4 IS NULL)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_240 UNION ALL SELECT pk, col0 FROM view_2_tab1_240
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col0 <= 191 AND ((col4 IS NULL)) AND col4 IS NULL UNION SELECT pk, col0 FROM tab1 WHERE NOT (col0 <= 191 AND ((col4 IS NULL)) AND col4 IS NULL)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_240 UNION SELECT pk, col0 FROM view_2_tab1_240
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-1300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col0 <= 191 AND ((col4 IS NULL)) AND col4 IS NULL ) AS tab1_240
----

query I rowsort label-1300-3
SELECT * FROM view_3_tab1_240
----

query I rowsort label-1300-3
SELECT pk FROM tab1 WHERE col0 <= 191 AND ((col4 IS NULL)) AND col4 IS NULL
----

statement ok
DROP VIEW view_1_tab1_240

statement ok
DROP VIEW view_2_tab1_240

statement ok
DROP VIEW view_3_tab1_240

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab2_240 AS SELECT pk, col0 FROM tab2 WHERE col0 <= 191 AND ((col4 IS NULL)) AND col4 IS NULL

statement ok
CREATE VIEW view_2_tab2_240 AS SELECT pk, col0 FROM tab2 WHERE NOT (col0 <= 191 AND ((col4 IS NULL)) AND col4 IS NULL)

statement ok
CREATE VIEW view_3_tab2_240 AS SELECT pk FROM view_1_tab2_240

query II rowsort label-1300-1
SELECT pk, col0 FROM tab2 WHERE col0 <= 191 AND ((col4 IS NULL)) AND col4 IS NULL
----

query II rowsort label-1300-2
SELECT pk, col0 FROM tab2 WHERE NOT (col0 <= 191 AND ((col4 IS NULL)) AND col4 IS NULL)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-1300-1
SELECT pk, col0 FROM view_1_tab2_240
----

query II rowsort label-1300-2
SELECT pk, col0 FROM view_2_tab2_240
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col0 <= 191 AND ((col4 IS NULL)) AND col4 IS NULL UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col0 <= 191 AND ((col4 IS NULL)) AND col4 IS NULL)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_240 UNION ALL SELECT pk, col0 FROM view_2_tab2_240
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col0 <= 191 AND ((col4 IS NULL)) AND col4 IS NULL UNION SELECT pk, col0 FROM tab2 WHERE NOT (col0 <= 191 AND ((col4 IS NULL)) AND col4 IS NULL)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_240 UNION SELECT pk, col0 FROM view_2_tab2_240
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-1300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col0 <= 191 AND ((col4 IS NULL)) AND col4 IS NULL ) AS tab2_240
----

query I rowsort label-1300-3
SELECT * FROM view_3_tab2_240
----

query I rowsort label-1300-3
SELECT pk FROM tab2 WHERE col0 <= 191 AND ((col4 IS NULL)) AND col4 IS NULL
----

statement ok
DROP VIEW view_1_tab2_240

statement ok
DROP VIEW view_2_tab2_240

statement ok
DROP VIEW view_3_tab2_240

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab3_240 AS SELECT pk, col0 FROM tab3 WHERE col0 <= 191 AND ((col4 IS NULL)) AND col4 IS NULL

statement ok
CREATE VIEW view_2_tab3_240 AS SELECT pk, col0 FROM tab3 WHERE NOT (col0 <= 191 AND ((col4 IS NULL)) AND col4 IS NULL)

statement ok
CREATE VIEW view_3_tab3_240 AS SELECT pk FROM view_1_tab3_240

query II rowsort label-1300-1
SELECT pk, col0 FROM tab3 WHERE col0 <= 191 AND ((col4 IS NULL)) AND col4 IS NULL
----

query II rowsort label-1300-2
SELECT pk, col0 FROM tab3 WHERE NOT (col0 <= 191 AND ((col4 IS NULL)) AND col4 IS NULL)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-1300-1
SELECT pk, col0 FROM view_1_tab3_240
----

query II rowsort label-1300-2
SELECT pk, col0 FROM view_2_tab3_240
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col0 <= 191 AND ((col4 IS NULL)) AND col4 IS NULL UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col0 <= 191 AND ((col4 IS NULL)) AND col4 IS NULL)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_240 UNION ALL SELECT pk, col0 FROM view_2_tab3_240
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col0 <= 191 AND ((col4 IS NULL)) AND col4 IS NULL UNION SELECT pk, col0 FROM tab3 WHERE NOT (col0 <= 191 AND ((col4 IS NULL)) AND col4 IS NULL)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_240 UNION SELECT pk, col0 FROM view_2_tab3_240
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-1300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col0 <= 191 AND ((col4 IS NULL)) AND col4 IS NULL ) AS tab3_240
----

query I rowsort label-1300-3
SELECT * FROM view_3_tab3_240
----

query I rowsort label-1300-3
SELECT pk FROM tab3 WHERE col0 <= 191 AND ((col4 IS NULL)) AND col4 IS NULL
----

statement ok
DROP VIEW view_1_tab3_240

statement ok
DROP VIEW view_2_tab3_240

statement ok
DROP VIEW view_3_tab3_240

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab4_240 AS SELECT pk, col0 FROM tab4 WHERE col0 <= 191 AND ((col4 IS NULL)) AND col4 IS NULL

statement ok
CREATE VIEW view_2_tab4_240 AS SELECT pk, col0 FROM tab4 WHERE NOT (col0 <= 191 AND ((col4 IS NULL)) AND col4 IS NULL)

statement ok
CREATE VIEW view_3_tab4_240 AS SELECT pk FROM view_1_tab4_240

query II rowsort label-1300-1
SELECT pk, col0 FROM tab4 WHERE col0 <= 191 AND ((col4 IS NULL)) AND col4 IS NULL
----

query II rowsort label-1300-2
SELECT pk, col0 FROM tab4 WHERE NOT (col0 <= 191 AND ((col4 IS NULL)) AND col4 IS NULL)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-1300-1
SELECT pk, col0 FROM view_1_tab4_240
----

query II rowsort label-1300-2
SELECT pk, col0 FROM view_2_tab4_240
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col0 <= 191 AND ((col4 IS NULL)) AND col4 IS NULL UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col0 <= 191 AND ((col4 IS NULL)) AND col4 IS NULL)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_240 UNION ALL SELECT pk, col0 FROM view_2_tab4_240
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col0 <= 191 AND ((col4 IS NULL)) AND col4 IS NULL UNION SELECT pk, col0 FROM tab4 WHERE NOT (col0 <= 191 AND ((col4 IS NULL)) AND col4 IS NULL)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_240 UNION SELECT pk, col0 FROM view_2_tab4_240
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-1300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col0 <= 191 AND ((col4 IS NULL)) AND col4 IS NULL ) AS tab4_240
----

query I rowsort label-1300-3
SELECT * FROM view_3_tab4_240
----

query I rowsort label-1300-3
SELECT pk FROM tab4 WHERE col0 <= 191 AND ((col4 IS NULL)) AND col4 IS NULL
----

statement ok
DROP VIEW view_1_tab4_240

statement ok
DROP VIEW view_2_tab4_240

statement ok
DROP VIEW view_3_tab4_240

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab0_242 AS SELECT pk, col0 FROM tab0 WHERE (col3 < 776)

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

statement ok
CREATE VIEW view_3_tab0_242 AS SELECT pk FROM view_1_tab0_242

query II rowsort label-1400-1
SELECT pk, col0 FROM tab0 WHERE (col3 < 776)
----
162 values hashing to 6de28e0c80f96f0d65276d4ef765b033

query II rowsort label-1400-2
SELECT pk, col0 FROM tab0 WHERE NOT ((col3 < 776))
----
38 values hashing to 402715d0d8437e7760ff1f64cdd2f853

query II rowsort label-1400-1
SELECT pk, col0 FROM view_1_tab0_242
----
162 values hashing to 6de28e0c80f96f0d65276d4ef765b033

query II rowsort label-1400-2
SELECT pk, col0 FROM view_2_tab0_242
----
38 values hashing to 402715d0d8437e7760ff1f64cdd2f853

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

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_242 UNION ALL SELECT pk, col0 FROM view_2_tab0_242
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col3 < 776) UNION SELECT pk, col0 FROM tab0 WHERE NOT ((col3 < 776))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_242 UNION SELECT pk, col0 FROM view_2_tab0_242
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-1400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE (col3 < 776) ) AS tab0_242
----
81 values hashing to 82afb06f03aa8d5e3e20ceae31803911

query I rowsort label-1400-3
SELECT * FROM view_3_tab0_242
----
81 values hashing to 82afb06f03aa8d5e3e20ceae31803911

query I rowsort label-1400-3
SELECT pk FROM tab0 WHERE (col3 < 776)
----
81 values hashing to 82afb06f03aa8d5e3e20ceae31803911

statement ok
DROP VIEW view_1_tab0_242

statement ok
DROP VIEW view_2_tab0_242

statement ok
DROP VIEW view_3_tab0_242

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab1_242 AS SELECT pk, col0 FROM tab1 WHERE (col3 < 776)

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

statement ok
CREATE VIEW view_3_tab1_242 AS SELECT pk FROM view_1_tab1_242

query II rowsort label-1400-1
SELECT pk, col0 FROM tab1 WHERE (col3 < 776)
----
162 values hashing to 6de28e0c80f96f0d65276d4ef765b033

query II rowsort label-1400-2
SELECT pk, col0 FROM tab1 WHERE NOT ((col3 < 776))
----
38 values hashing to 402715d0d8437e7760ff1f64cdd2f853

query II rowsort label-1400-1
SELECT pk, col0 FROM view_1_tab1_242
----
162 values hashing to 6de28e0c80f96f0d65276d4ef765b033

query II rowsort label-1400-2
SELECT pk, col0 FROM view_2_tab1_242
----
38 values hashing to 402715d0d8437e7760ff1f64cdd2f853

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

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_242 UNION ALL SELECT pk, col0 FROM view_2_tab1_242
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col3 < 776) UNION SELECT pk, col0 FROM tab1 WHERE NOT ((col3 < 776))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_242 UNION SELECT pk, col0 FROM view_2_tab1_242
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-1400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE (col3 < 776) ) AS tab1_242
----
81 values hashing to 82afb06f03aa8d5e3e20ceae31803911

query I rowsort label-1400-3
SELECT * FROM view_3_tab1_242
----
81 values hashing to 82afb06f03aa8d5e3e20ceae31803911

query I rowsort label-1400-3
SELECT pk FROM tab1 WHERE (col3 < 776)
----
81 values hashing to 82afb06f03aa8d5e3e20ceae31803911

statement ok
DROP VIEW view_1_tab1_242

statement ok
DROP VIEW view_2_tab1_242

statement ok
DROP VIEW view_3_tab1_242

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab2_242 AS SELECT pk, col0 FROM tab2 WHERE (col3 < 776)

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

statement ok
CREATE VIEW view_3_tab2_242 AS SELECT pk FROM view_1_tab2_242

query II rowsort label-1400-1
SELECT pk, col0 FROM tab2 WHERE (col3 < 776)
----
162 values hashing to 6de28e0c80f96f0d65276d4ef765b033

query II rowsort label-1400-2
SELECT pk, col0 FROM tab2 WHERE NOT ((col3 < 776))
----
38 values hashing to 402715d0d8437e7760ff1f64cdd2f853

query II rowsort label-1400-1
SELECT pk, col0 FROM view_1_tab2_242
----
162 values hashing to 6de28e0c80f96f0d65276d4ef765b033

query II rowsort label-1400-2
SELECT pk, col0 FROM view_2_tab2_242
----
38 values hashing to 402715d0d8437e7760ff1f64cdd2f853

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

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_242 UNION ALL SELECT pk, col0 FROM view_2_tab2_242
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col3 < 776) UNION SELECT pk, col0 FROM tab2 WHERE NOT ((col3 < 776))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_242 UNION SELECT pk, col0 FROM view_2_tab2_242
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-1400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE (col3 < 776) ) AS tab2_242
----
81 values hashing to 82afb06f03aa8d5e3e20ceae31803911

query I rowsort label-1400-3
SELECT * FROM view_3_tab2_242
----
81 values hashing to 82afb06f03aa8d5e3e20ceae31803911

query I rowsort label-1400-3
SELECT pk FROM tab2 WHERE (col3 < 776)
----
81 values hashing to 82afb06f03aa8d5e3e20ceae31803911

statement ok
DROP VIEW view_1_tab2_242

statement ok
DROP VIEW view_2_tab2_242

statement ok
DROP VIEW view_3_tab2_242

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab3_242 AS SELECT pk, col0 FROM tab3 WHERE (col3 < 776)

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

statement ok
CREATE VIEW view_3_tab3_242 AS SELECT pk FROM view_1_tab3_242

query II rowsort label-1400-1
SELECT pk, col0 FROM tab3 WHERE (col3 < 776)
----
162 values hashing to 6de28e0c80f96f0d65276d4ef765b033

query II rowsort label-1400-2
SELECT pk, col0 FROM tab3 WHERE NOT ((col3 < 776))
----
38 values hashing to 402715d0d8437e7760ff1f64cdd2f853

query II rowsort label-1400-1
SELECT pk, col0 FROM view_1_tab3_242
----
162 values hashing to 6de28e0c80f96f0d65276d4ef765b033

query II rowsort label-1400-2
SELECT pk, col0 FROM view_2_tab3_242
----
38 values hashing to 402715d0d8437e7760ff1f64cdd2f853

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

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_242 UNION ALL SELECT pk, col0 FROM view_2_tab3_242
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col3 < 776) UNION SELECT pk, col0 FROM tab3 WHERE NOT ((col3 < 776))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_242 UNION SELECT pk, col0 FROM view_2_tab3_242
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-1400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE (col3 < 776) ) AS tab3_242
----
81 values hashing to 82afb06f03aa8d5e3e20ceae31803911

query I rowsort label-1400-3
SELECT * FROM view_3_tab3_242
----
81 values hashing to 82afb06f03aa8d5e3e20ceae31803911

query I rowsort label-1400-3
SELECT pk FROM tab3 WHERE (col3 < 776)
----
81 values hashing to 82afb06f03aa8d5e3e20ceae31803911

statement ok
DROP VIEW view_1_tab3_242

statement ok
DROP VIEW view_2_tab3_242

statement ok
DROP VIEW view_3_tab3_242

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab4_242 AS SELECT pk, col0 FROM tab4 WHERE (col3 < 776)

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

statement ok
CREATE VIEW view_3_tab4_242 AS SELECT pk FROM view_1_tab4_242

query II rowsort label-1400-1
SELECT pk, col0 FROM tab4 WHERE (col3 < 776)
----
162 values hashing to 6de28e0c80f96f0d65276d4ef765b033

query II rowsort label-1400-2
SELECT pk, col0 FROM tab4 WHERE NOT ((col3 < 776))
----
38 values hashing to 402715d0d8437e7760ff1f64cdd2f853

query II rowsort label-1400-1
SELECT pk, col0 FROM view_1_tab4_242
----
162 values hashing to 6de28e0c80f96f0d65276d4ef765b033

query II rowsort label-1400-2
SELECT pk, col0 FROM view_2_tab4_242
----
38 values hashing to 402715d0d8437e7760ff1f64cdd2f853

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

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_242 UNION ALL SELECT pk, col0 FROM view_2_tab4_242
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col3 < 776) UNION SELECT pk, col0 FROM tab4 WHERE NOT ((col3 < 776))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_242 UNION SELECT pk, col0 FROM view_2_tab4_242
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-1400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE (col3 < 776) ) AS tab4_242
----
81 values hashing to 82afb06f03aa8d5e3e20ceae31803911

query I rowsort label-1400-3
SELECT * FROM view_3_tab4_242
----
81 values hashing to 82afb06f03aa8d5e3e20ceae31803911

query I rowsort label-1400-3
SELECT pk FROM tab4 WHERE (col3 < 776)
----
81 values hashing to 82afb06f03aa8d5e3e20ceae31803911

statement ok
DROP VIEW view_1_tab4_242

statement ok
DROP VIEW view_2_tab4_242

statement ok
DROP VIEW view_3_tab4_242

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab0_243 AS SELECT pk, col0 FROM tab0 WHERE col0 > 416 AND col0 >= 916

statement ok
CREATE VIEW view_2_tab0_243 AS SELECT pk, col0 FROM tab0 WHERE NOT (col0 > 416 AND col0 >= 916)

statement ok
CREATE VIEW view_3_tab0_243 AS SELECT pk FROM view_1_tab0_243

query II rowsort label-1500-1
SELECT pk, col0 FROM tab0 WHERE col0 > 416 AND col0 >= 916
----
20 values hashing to 5e466304e312e1e282ab86a962c48d88

query II rowsort label-1500-2
SELECT pk, col0 FROM tab0 WHERE NOT (col0 > 416 AND col0 >= 916)
----
180 values hashing to b45b2717b61b236b909b1fac668c5754

query II rowsort label-1500-1
SELECT pk, col0 FROM view_1_tab0_243
----
20 values hashing to 5e466304e312e1e282ab86a962c48d88

query II rowsort label-1500-2
SELECT pk, col0 FROM view_2_tab0_243
----
180 values hashing to b45b2717b61b236b909b1fac668c5754

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col0 > 416 AND col0 >= 916 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col0 > 416 AND col0 >= 916)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_243 UNION ALL SELECT pk, col0 FROM view_2_tab0_243
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col0 > 416 AND col0 >= 916 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col0 > 416 AND col0 >= 916)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_243 UNION SELECT pk, col0 FROM view_2_tab0_243
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-1500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col0 > 416 AND col0 >= 916 ) AS tab0_243
----
10 values hashing to eb5a73b6cf4e036f1c61966a84dd2671

query I rowsort label-1500-3
SELECT * FROM view_3_tab0_243
----
10 values hashing to eb5a73b6cf4e036f1c61966a84dd2671

query I rowsort label-1500-3
SELECT pk FROM tab0 WHERE col0 > 416 AND col0 >= 916
----
10 values hashing to eb5a73b6cf4e036f1c61966a84dd2671

statement ok
DROP VIEW view_1_tab0_243

statement ok
DROP VIEW view_2_tab0_243

statement ok
DROP VIEW view_3_tab0_243

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab1_243 AS SELECT pk, col0 FROM tab1 WHERE col0 > 416 AND col0 >= 916

statement ok
CREATE VIEW view_2_tab1_243 AS SELECT pk, col0 FROM tab1 WHERE NOT (col0 > 416 AND col0 >= 916)

statement ok
CREATE VIEW view_3_tab1_243 AS SELECT pk FROM view_1_tab1_243

query II rowsort label-1500-1
SELECT pk, col0 FROM tab1 WHERE col0 > 416 AND col0 >= 916
----
20 values hashing to 5e466304e312e1e282ab86a962c48d88

query II rowsort label-1500-2
SELECT pk, col0 FROM tab1 WHERE NOT (col0 > 416 AND col0 >= 916)
----
180 values hashing to b45b2717b61b236b909b1fac668c5754

query II rowsort label-1500-1
SELECT pk, col0 FROM view_1_tab1_243
----
20 values hashing to 5e466304e312e1e282ab86a962c48d88

query II rowsort label-1500-2
SELECT pk, col0 FROM view_2_tab1_243
----
180 values hashing to b45b2717b61b236b909b1fac668c5754

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col0 > 416 AND col0 >= 916 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col0 > 416 AND col0 >= 916)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_243 UNION ALL SELECT pk, col0 FROM view_2_tab1_243
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col0 > 416 AND col0 >= 916 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col0 > 416 AND col0 >= 916)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_243 UNION SELECT pk, col0 FROM view_2_tab1_243
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-1500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col0 > 416 AND col0 >= 916 ) AS tab1_243
----
10 values hashing to eb5a73b6cf4e036f1c61966a84dd2671

query I rowsort label-1500-3
SELECT * FROM view_3_tab1_243
----
10 values hashing to eb5a73b6cf4e036f1c61966a84dd2671

query I rowsort label-1500-3
SELECT pk FROM tab1 WHERE col0 > 416 AND col0 >= 916
----
10 values hashing to eb5a73b6cf4e036f1c61966a84dd2671

statement ok
DROP VIEW view_1_tab1_243

statement ok
DROP VIEW view_2_tab1_243

statement ok
DROP VIEW view_3_tab1_243

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab2_243 AS SELECT pk, col0 FROM tab2 WHERE col0 > 416 AND col0 >= 916

statement ok
CREATE VIEW view_2_tab2_243 AS SELECT pk, col0 FROM tab2 WHERE NOT (col0 > 416 AND col0 >= 916)

statement ok
CREATE VIEW view_3_tab2_243 AS SELECT pk FROM view_1_tab2_243

query II rowsort label-1500-1
SELECT pk, col0 FROM tab2 WHERE col0 > 416 AND col0 >= 916
----
20 values hashing to 5e466304e312e1e282ab86a962c48d88

query II rowsort label-1500-2
SELECT pk, col0 FROM tab2 WHERE NOT (col0 > 416 AND col0 >= 916)
----
180 values hashing to b45b2717b61b236b909b1fac668c5754

query II rowsort label-1500-1
SELECT pk, col0 FROM view_1_tab2_243
----
20 values hashing to 5e466304e312e1e282ab86a962c48d88

query II rowsort label-1500-2
SELECT pk, col0 FROM view_2_tab2_243
----
180 values hashing to b45b2717b61b236b909b1fac668c5754

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col0 > 416 AND col0 >= 916 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col0 > 416 AND col0 >= 916)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_243 UNION ALL SELECT pk, col0 FROM view_2_tab2_243
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col0 > 416 AND col0 >= 916 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col0 > 416 AND col0 >= 916)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_243 UNION SELECT pk, col0 FROM view_2_tab2_243
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-1500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col0 > 416 AND col0 >= 916 ) AS tab2_243
----
10 values hashing to eb5a73b6cf4e036f1c61966a84dd2671

query I rowsort label-1500-3
SELECT * FROM view_3_tab2_243
----
10 values hashing to eb5a73b6cf4e036f1c61966a84dd2671

query I rowsort label-1500-3
SELECT pk FROM tab2 WHERE col0 > 416 AND col0 >= 916
----
10 values hashing to eb5a73b6cf4e036f1c61966a84dd2671

statement ok
DROP VIEW view_1_tab2_243

statement ok
DROP VIEW view_2_tab2_243

statement ok
DROP VIEW view_3_tab2_243

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab3_243 AS SELECT pk, col0 FROM tab3 WHERE col0 > 416 AND col0 >= 916

statement ok
CREATE VIEW view_2_tab3_243 AS SELECT pk, col0 FROM tab3 WHERE NOT (col0 > 416 AND col0 >= 916)

statement ok
CREATE VIEW view_3_tab3_243 AS SELECT pk FROM view_1_tab3_243

query II rowsort label-1500-1
SELECT pk, col0 FROM tab3 WHERE col0 > 416 AND col0 >= 916
----
20 values hashing to 5e466304e312e1e282ab86a962c48d88

query II rowsort label-1500-2
SELECT pk, col0 FROM tab3 WHERE NOT (col0 > 416 AND col0 >= 916)
----
180 values hashing to b45b2717b61b236b909b1fac668c5754

query II rowsort label-1500-1
SELECT pk, col0 FROM view_1_tab3_243
----
20 values hashing to 5e466304e312e1e282ab86a962c48d88

query II rowsort label-1500-2
SELECT pk, col0 FROM view_2_tab3_243
----
180 values hashing to b45b2717b61b236b909b1fac668c5754

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col0 > 416 AND col0 >= 916 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col0 > 416 AND col0 >= 916)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_243 UNION ALL SELECT pk, col0 FROM view_2_tab3_243
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col0 > 416 AND col0 >= 916 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col0 > 416 AND col0 >= 916)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_243 UNION SELECT pk, col0 FROM view_2_tab3_243
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-1500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col0 > 416 AND col0 >= 916 ) AS tab3_243
----
10 values hashing to eb5a73b6cf4e036f1c61966a84dd2671

query I rowsort label-1500-3
SELECT * FROM view_3_tab3_243
----
10 values hashing to eb5a73b6cf4e036f1c61966a84dd2671

query I rowsort label-1500-3
SELECT pk FROM tab3 WHERE col0 > 416 AND col0 >= 916
----
10 values hashing to eb5a73b6cf4e036f1c61966a84dd2671

statement ok
DROP VIEW view_1_tab3_243

statement ok
DROP VIEW view_2_tab3_243

statement ok
DROP VIEW view_3_tab3_243

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab4_243 AS SELECT pk, col0 FROM tab4 WHERE col0 > 416 AND col0 >= 916

statement ok
CREATE VIEW view_2_tab4_243 AS SELECT pk, col0 FROM tab4 WHERE NOT (col0 > 416 AND col0 >= 916)

statement ok
CREATE VIEW view_3_tab4_243 AS SELECT pk FROM view_1_tab4_243

query II rowsort label-1500-1
SELECT pk, col0 FROM tab4 WHERE col0 > 416 AND col0 >= 916
----
20 values hashing to 5e466304e312e1e282ab86a962c48d88

query II rowsort label-1500-2
SELECT pk, col0 FROM tab4 WHERE NOT (col0 > 416 AND col0 >= 916)
----
180 values hashing to b45b2717b61b236b909b1fac668c5754

query II rowsort label-1500-1
SELECT pk, col0 FROM view_1_tab4_243
----
20 values hashing to 5e466304e312e1e282ab86a962c48d88

query II rowsort label-1500-2
SELECT pk, col0 FROM view_2_tab4_243
----
180 values hashing to b45b2717b61b236b909b1fac668c5754

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col0 > 416 AND col0 >= 916 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col0 > 416 AND col0 >= 916)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_243 UNION ALL SELECT pk, col0 FROM view_2_tab4_243
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col0 > 416 AND col0 >= 916 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col0 > 416 AND col0 >= 916)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_243 UNION SELECT pk, col0 FROM view_2_tab4_243
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-1500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col0 > 416 AND col0 >= 916 ) AS tab4_243
----
10 values hashing to eb5a73b6cf4e036f1c61966a84dd2671

query I rowsort label-1500-3
SELECT * FROM view_3_tab4_243
----
10 values hashing to eb5a73b6cf4e036f1c61966a84dd2671

query I rowsort label-1500-3
SELECT pk FROM tab4 WHERE col0 > 416 AND col0 >= 916
----
10 values hashing to eb5a73b6cf4e036f1c61966a84dd2671

statement ok
DROP VIEW view_1_tab4_243

statement ok
DROP VIEW view_2_tab4_243

statement ok
DROP VIEW view_3_tab4_243

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab0_245 AS SELECT pk, col0 FROM tab0 WHERE col3 < 371 OR col1 >= 956.47 OR ((col0 <= 276 OR ((col3 > 708))) AND (col1 > 411.11 AND ((col3 < 836)) OR col0 >= 324 OR col3 < 367 OR col3 > 624 AND col0 < 290) OR ((col4 > 245.16) AND ((col0 < 536) OR (col1 >= 109.76 OR col1 < 84.6 AND (col3 < 969)) AND col4 > 432.98)) AND col3 < 296 AND col3 = 283 OR ((col4 = 576.46))) AND col0 < 971

statement ok
CREATE VIEW view_2_tab0_245 AS SELECT pk, col0 FROM tab0 WHERE NOT (col3 < 371 OR col1 >= 956.47 OR ((col0 <= 276 OR ((col3 > 708))) AND (col1 > 411.11 AND ((col3 < 836)) OR col0 >= 324 OR col3 < 367 OR col3 > 624 AND col0 < 290) OR ((col4 > 245.16) AND ((col0 < 536) OR (col1 >= 109.76 OR col1 < 84.6 AND (col3 < 969)) AND col4 > 432.98)) AND col3 < 296 AND col3 = 283 OR ((col4 = 576.46))) AND col0 < 971)

statement ok
CREATE VIEW view_3_tab0_245 AS SELECT pk FROM view_1_tab0_245

query II rowsort label-1600-1
SELECT pk, col0 FROM tab0 WHERE col3 < 371 OR col1 >= 956.47 OR ((col0 <= 276 OR ((col3 > 708))) AND (col1 > 411.11 AND ((col3 < 836)) OR col0 >= 324 OR col3 < 367 OR col3 > 624 AND col0 < 290) OR ((col4 > 245.16) AND ((col0 < 536) OR (col1 >= 109.76 OR col1 < 84.6 AND (col3 < 969)) AND col4 > 432.98)) AND col3 < 296 AND col3 = 283 OR ((col4 = 576.46))) AND col0 < 971
----
148 values hashing to db13e176a132f070f0c95b5ffccf07c8

query II rowsort label-1600-2
SELECT pk, col0 FROM tab0 WHERE NOT (col3 < 371 OR col1 >= 956.47 OR ((col0 <= 276 OR ((col3 > 708))) AND (col1 > 411.11 AND ((col3 < 836)) OR col0 >= 324 OR col3 < 367 OR col3 > 624 AND col0 < 290) OR ((col4 > 245.16) AND ((col0 < 536) OR (col1 >= 109.76 OR col1 < 84.6 AND (col3 < 969)) AND col4 > 432.98)) AND col3 < 296 AND col3 = 283 OR ((col4 = 576.46))) AND col0 < 971)
----
52 values hashing to e0ff71b68381314bde3b185714643ecd

query II rowsort label-1600-1
SELECT pk, col0 FROM view_1_tab0_245
----
148 values hashing to db13e176a132f070f0c95b5ffccf07c8

query II rowsort label-1600-2
SELECT pk, col0 FROM view_2_tab0_245
----
52 values hashing to e0ff71b68381314bde3b185714643ecd

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 < 371 OR col1 >= 956.47 OR ((col0 <= 276 OR ((col3 > 708))) AND (col1 > 411.11 AND ((col3 < 836)) OR col0 >= 324 OR col3 < 367 OR col3 > 624 AND col0 < 290) OR ((col4 > 245.16) AND ((col0 < 536) OR (col1 >= 109.76 OR col1 < 84.6 AND (col3 < 969)) AND col4 > 432.98)) AND col3 < 296 AND col3 = 283 OR ((col4 = 576.46))) AND col0 < 971 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col3 < 371 OR col1 >= 956.47 OR ((col0 <= 276 OR ((col3 > 708))) AND (col1 > 411.11 AND ((col3 < 836)) OR col0 >= 324 OR col3 < 367 OR col3 > 624 AND col0 < 290) OR ((col4 > 245.16) AND ((col0 < 536) OR (col1 >= 109.76 OR col1 < 84.6 AND (col3 < 969)) AND col4 > 432.98)) AND col3 < 296 AND col3 = 283 OR ((col4 = 576.46))) AND col0 < 971)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_245 UNION ALL SELECT pk, col0 FROM view_2_tab0_245
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 < 371 OR col1 >= 956.47 OR ((col0 <= 276 OR ((col3 > 708))) AND (col1 > 411.11 AND ((col3 < 836)) OR col0 >= 324 OR col3 < 367 OR col3 > 624 AND col0 < 290) OR ((col4 > 245.16) AND ((col0 < 536) OR (col1 >= 109.76 OR col1 < 84.6 AND (col3 < 969)) AND col4 > 432.98)) AND col3 < 296 AND col3 = 283 OR ((col4 = 576.46))) AND col0 < 971 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col3 < 371 OR col1 >= 956.47 OR ((col0 <= 276 OR ((col3 > 708))) AND (col1 > 411.11 AND ((col3 < 836)) OR col0 >= 324 OR col3 < 367 OR col3 > 624 AND col0 < 290) OR ((col4 > 245.16) AND ((col0 < 536) OR (col1 >= 109.76 OR col1 < 84.6 AND (col3 < 969)) AND col4 > 432.98)) AND col3 < 296 AND col3 = 283 OR ((col4 = 576.46))) AND col0 < 971)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_245 UNION SELECT pk, col0 FROM view_2_tab0_245
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-1600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col3 < 371 OR col1 >= 956.47 OR ((col0 <= 276 OR ((col3 > 708))) AND (col1 > 411.11 AND ((col3 < 836)) OR col0 >= 324 OR col3 < 367 OR col3 > 624 AND col0 < 290) OR ((col4 > 245.16) AND ((col0 < 536) OR (col1 >= 109.76 OR col1 < 84.6 AND (col3 < 969)) AND col4 > 432.98)) AND col3 < 296 AND col3 = 283 OR ((col4 = 576.46))) AND col0 < 971 ) AS tab0_245
----
74 values hashing to 79b9791cfa6373f244e7e0d9f81f300d

query I rowsort label-1600-3
SELECT * FROM view_3_tab0_245
----
74 values hashing to 79b9791cfa6373f244e7e0d9f81f300d

query I rowsort label-1600-3
SELECT pk FROM tab0 WHERE col3 < 371 OR col1 >= 956.47 OR ((col0 <= 276 OR ((col3 > 708))) AND (col1 > 411.11 AND ((col3 < 836)) OR col0 >= 324 OR col3 < 367 OR col3 > 624 AND col0 < 290) OR ((col4 > 245.16) AND ((col0 < 536) OR (col1 >= 109.76 OR col1 < 84.6 AND (col3 < 969)) AND col4 > 432.98)) AND col3 < 296 AND col3 = 283 OR ((col4 = 576.46))) AND col0 < 971
----
74 values hashing to 79b9791cfa6373f244e7e0d9f81f300d

statement ok
DROP VIEW view_1_tab0_245

statement ok
DROP VIEW view_2_tab0_245

statement ok
DROP VIEW view_3_tab0_245

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab1_245 AS SELECT pk, col0 FROM tab1 WHERE col3 < 371 OR col1 >= 956.47 OR ((col0 <= 276 OR ((col3 > 708))) AND (col1 > 411.11 AND ((col3 < 836)) OR col0 >= 324 OR col3 < 367 OR col3 > 624 AND col0 < 290) OR ((col4 > 245.16) AND ((col0 < 536) OR (col1 >= 109.76 OR col1 < 84.6 AND (col3 < 969)) AND col4 > 432.98)) AND col3 < 296 AND col3 = 283 OR ((col4 = 576.46))) AND col0 < 971

statement ok
CREATE VIEW view_2_tab1_245 AS SELECT pk, col0 FROM tab1 WHERE NOT (col3 < 371 OR col1 >= 956.47 OR ((col0 <= 276 OR ((col3 > 708))) AND (col1 > 411.11 AND ((col3 < 836)) OR col0 >= 324 OR col3 < 367 OR col3 > 624 AND col0 < 290) OR ((col4 > 245.16) AND ((col0 < 536) OR (col1 >= 109.76 OR col1 < 84.6 AND (col3 < 969)) AND col4 > 432.98)) AND col3 < 296 AND col3 = 283 OR ((col4 = 576.46))) AND col0 < 971)

statement ok
CREATE VIEW view_3_tab1_245 AS SELECT pk FROM view_1_tab1_245

query II rowsort label-1600-1
SELECT pk, col0 FROM tab1 WHERE col3 < 371 OR col1 >= 956.47 OR ((col0 <= 276 OR ((col3 > 708))) AND (col1 > 411.11 AND ((col3 < 836)) OR col0 >= 324 OR col3 < 367 OR col3 > 624 AND col0 < 290) OR ((col4 > 245.16) AND ((col0 < 536) OR (col1 >= 109.76 OR col1 < 84.6 AND (col3 < 969)) AND col4 > 432.98)) AND col3 < 296 AND col3 = 283 OR ((col4 = 576.46))) AND col0 < 971
----
148 values hashing to db13e176a132f070f0c95b5ffccf07c8

query II rowsort label-1600-2
SELECT pk, col0 FROM tab1 WHERE NOT (col3 < 371 OR col1 >= 956.47 OR ((col0 <= 276 OR ((col3 > 708))) AND (col1 > 411.11 AND ((col3 < 836)) OR col0 >= 324 OR col3 < 367 OR col3 > 624 AND col0 < 290) OR ((col4 > 245.16) AND ((col0 < 536) OR (col1 >= 109.76 OR col1 < 84.6 AND (col3 < 969)) AND col4 > 432.98)) AND col3 < 296 AND col3 = 283 OR ((col4 = 576.46))) AND col0 < 971)
----
52 values hashing to e0ff71b68381314bde3b185714643ecd

query II rowsort label-1600-1
SELECT pk, col0 FROM view_1_tab1_245
----
148 values hashing to db13e176a132f070f0c95b5ffccf07c8

query II rowsort label-1600-2
SELECT pk, col0 FROM view_2_tab1_245
----
52 values hashing to e0ff71b68381314bde3b185714643ecd

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 < 371 OR col1 >= 956.47 OR ((col0 <= 276 OR ((col3 > 708))) AND (col1 > 411.11 AND ((col3 < 836)) OR col0 >= 324 OR col3 < 367 OR col3 > 624 AND col0 < 290) OR ((col4 > 245.16) AND ((col0 < 536) OR (col1 >= 109.76 OR col1 < 84.6 AND (col3 < 969)) AND col4 > 432.98)) AND col3 < 296 AND col3 = 283 OR ((col4 = 576.46))) AND col0 < 971 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col3 < 371 OR col1 >= 956.47 OR ((col0 <= 276 OR ((col3 > 708))) AND (col1 > 411.11 AND ((col3 < 836)) OR col0 >= 324 OR col3 < 367 OR col3 > 624 AND col0 < 290) OR ((col4 > 245.16) AND ((col0 < 536) OR (col1 >= 109.76 OR col1 < 84.6 AND (col3 < 969)) AND col4 > 432.98)) AND col3 < 296 AND col3 = 283 OR ((col4 = 576.46))) AND col0 < 971)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_245 UNION ALL SELECT pk, col0 FROM view_2_tab1_245
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 < 371 OR col1 >= 956.47 OR ((col0 <= 276 OR ((col3 > 708))) AND (col1 > 411.11 AND ((col3 < 836)) OR col0 >= 324 OR col3 < 367 OR col3 > 624 AND col0 < 290) OR ((col4 > 245.16) AND ((col0 < 536) OR (col1 >= 109.76 OR col1 < 84.6 AND (col3 < 969)) AND col4 > 432.98)) AND col3 < 296 AND col3 = 283 OR ((col4 = 576.46))) AND col0 < 971 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col3 < 371 OR col1 >= 956.47 OR ((col0 <= 276 OR ((col3 > 708))) AND (col1 > 411.11 AND ((col3 < 836)) OR col0 >= 324 OR col3 < 367 OR col3 > 624 AND col0 < 290) OR ((col4 > 245.16) AND ((col0 < 536) OR (col1 >= 109.76 OR col1 < 84.6 AND (col3 < 969)) AND col4 > 432.98)) AND col3 < 296 AND col3 = 283 OR ((col4 = 576.46))) AND col0 < 971)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_245 UNION SELECT pk, col0 FROM view_2_tab1_245
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-1600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col3 < 371 OR col1 >= 956.47 OR ((col0 <= 276 OR ((col3 > 708))) AND (col1 > 411.11 AND ((col3 < 836)) OR col0 >= 324 OR col3 < 367 OR col3 > 624 AND col0 < 290) OR ((col4 > 245.16) AND ((col0 < 536) OR (col1 >= 109.76 OR col1 < 84.6 AND (col3 < 969)) AND col4 > 432.98)) AND col3 < 296 AND col3 = 283 OR ((col4 = 576.46))) AND col0 < 971 ) AS tab1_245
----
74 values hashing to 79b9791cfa6373f244e7e0d9f81f300d

query I rowsort label-1600-3
SELECT * FROM view_3_tab1_245
----
74 values hashing to 79b9791cfa6373f244e7e0d9f81f300d

query I rowsort label-1600-3
SELECT pk FROM tab1 WHERE col3 < 371 OR col1 >= 956.47 OR ((col0 <= 276 OR ((col3 > 708))) AND (col1 > 411.11 AND ((col3 < 836)) OR col0 >= 324 OR col3 < 367 OR col3 > 624 AND col0 < 290) OR ((col4 > 245.16) AND ((col0 < 536) OR (col1 >= 109.76 OR col1 < 84.6 AND (col3 < 969)) AND col4 > 432.98)) AND col3 < 296 AND col3 = 283 OR ((col4 = 576.46))) AND col0 < 971
----
74 values hashing to 79b9791cfa6373f244e7e0d9f81f300d

statement ok
DROP VIEW view_1_tab1_245

statement ok
DROP VIEW view_2_tab1_245

statement ok
DROP VIEW view_3_tab1_245

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab2_245 AS SELECT pk, col0 FROM tab2 WHERE col3 < 371 OR col1 >= 956.47 OR ((col0 <= 276 OR ((col3 > 708))) AND (col1 > 411.11 AND ((col3 < 836)) OR col0 >= 324 OR col3 < 367 OR col3 > 624 AND col0 < 290) OR ((col4 > 245.16) AND ((col0 < 536) OR (col1 >= 109.76 OR col1 < 84.6 AND (col3 < 969)) AND col4 > 432.98)) AND col3 < 296 AND col3 = 283 OR ((col4 = 576.46))) AND col0 < 971

statement ok
CREATE VIEW view_2_tab2_245 AS SELECT pk, col0 FROM tab2 WHERE NOT (col3 < 371 OR col1 >= 956.47 OR ((col0 <= 276 OR ((col3 > 708))) AND (col1 > 411.11 AND ((col3 < 836)) OR col0 >= 324 OR col3 < 367 OR col3 > 624 AND col0 < 290) OR ((col4 > 245.16) AND ((col0 < 536) OR (col1 >= 109.76 OR col1 < 84.6 AND (col3 < 969)) AND col4 > 432.98)) AND col3 < 296 AND col3 = 283 OR ((col4 = 576.46))) AND col0 < 971)

statement ok
CREATE VIEW view_3_tab2_245 AS SELECT pk FROM view_1_tab2_245

query II rowsort label-1600-1
SELECT pk, col0 FROM tab2 WHERE col3 < 371 OR col1 >= 956.47 OR ((col0 <= 276 OR ((col3 > 708))) AND (col1 > 411.11 AND ((col3 < 836)) OR col0 >= 324 OR col3 < 367 OR col3 > 624 AND col0 < 290) OR ((col4 > 245.16) AND ((col0 < 536) OR (col1 >= 109.76 OR col1 < 84.6 AND (col3 < 969)) AND col4 > 432.98)) AND col3 < 296 AND col3 = 283 OR ((col4 = 576.46))) AND col0 < 971
----
148 values hashing to db13e176a132f070f0c95b5ffccf07c8

query II rowsort label-1600-2
SELECT pk, col0 FROM tab2 WHERE NOT (col3 < 371 OR col1 >= 956.47 OR ((col0 <= 276 OR ((col3 > 708))) AND (col1 > 411.11 AND ((col3 < 836)) OR col0 >= 324 OR col3 < 367 OR col3 > 624 AND col0 < 290) OR ((col4 > 245.16) AND ((col0 < 536) OR (col1 >= 109.76 OR col1 < 84.6 AND (col3 < 969)) AND col4 > 432.98)) AND col3 < 296 AND col3 = 283 OR ((col4 = 576.46))) AND col0 < 971)
----
52 values hashing to e0ff71b68381314bde3b185714643ecd

query II rowsort label-1600-1
SELECT pk, col0 FROM view_1_tab2_245
----
148 values hashing to db13e176a132f070f0c95b5ffccf07c8

query II rowsort label-1600-2
SELECT pk, col0 FROM view_2_tab2_245
----
52 values hashing to e0ff71b68381314bde3b185714643ecd

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 < 371 OR col1 >= 956.47 OR ((col0 <= 276 OR ((col3 > 708))) AND (col1 > 411.11 AND ((col3 < 836)) OR col0 >= 324 OR col3 < 367 OR col3 > 624 AND col0 < 290) OR ((col4 > 245.16) AND ((col0 < 536) OR (col1 >= 109.76 OR col1 < 84.6 AND (col3 < 969)) AND col4 > 432.98)) AND col3 < 296 AND col3 = 283 OR ((col4 = 576.46))) AND col0 < 971 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col3 < 371 OR col1 >= 956.47 OR ((col0 <= 276 OR ((col3 > 708))) AND (col1 > 411.11 AND ((col3 < 836)) OR col0 >= 324 OR col3 < 367 OR col3 > 624 AND col0 < 290) OR ((col4 > 245.16) AND ((col0 < 536) OR (col1 >= 109.76 OR col1 < 84.6 AND (col3 < 969)) AND col4 > 432.98)) AND col3 < 296 AND col3 = 283 OR ((col4 = 576.46))) AND col0 < 971)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_245 UNION ALL SELECT pk, col0 FROM view_2_tab2_245
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 < 371 OR col1 >= 956.47 OR ((col0 <= 276 OR ((col3 > 708))) AND (col1 > 411.11 AND ((col3 < 836)) OR col0 >= 324 OR col3 < 367 OR col3 > 624 AND col0 < 290) OR ((col4 > 245.16) AND ((col0 < 536) OR (col1 >= 109.76 OR col1 < 84.6 AND (col3 < 969)) AND col4 > 432.98)) AND col3 < 296 AND col3 = 283 OR ((col4 = 576.46))) AND col0 < 971 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col3 < 371 OR col1 >= 956.47 OR ((col0 <= 276 OR ((col3 > 708))) AND (col1 > 411.11 AND ((col3 < 836)) OR col0 >= 324 OR col3 < 367 OR col3 > 624 AND col0 < 290) OR ((col4 > 245.16) AND ((col0 < 536) OR (col1 >= 109.76 OR col1 < 84.6 AND (col3 < 969)) AND col4 > 432.98)) AND col3 < 296 AND col3 = 283 OR ((col4 = 576.46))) AND col0 < 971)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_245 UNION SELECT pk, col0 FROM view_2_tab2_245
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-1600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col3 < 371 OR col1 >= 956.47 OR ((col0 <= 276 OR ((col3 > 708))) AND (col1 > 411.11 AND ((col3 < 836)) OR col0 >= 324 OR col3 < 367 OR col3 > 624 AND col0 < 290) OR ((col4 > 245.16) AND ((col0 < 536) OR (col1 >= 109.76 OR col1 < 84.6 AND (col3 < 969)) AND col4 > 432.98)) AND col3 < 296 AND col3 = 283 OR ((col4 = 576.46))) AND col0 < 971 ) AS tab2_245
----
74 values hashing to 79b9791cfa6373f244e7e0d9f81f300d

query I rowsort label-1600-3
SELECT * FROM view_3_tab2_245
----
74 values hashing to 79b9791cfa6373f244e7e0d9f81f300d

query I rowsort label-1600-3
SELECT pk FROM tab2 WHERE col3 < 371 OR col1 >= 956.47 OR ((col0 <= 276 OR ((col3 > 708))) AND (col1 > 411.11 AND ((col3 < 836)) OR col0 >= 324 OR col3 < 367 OR col3 > 624 AND col0 < 290) OR ((col4 > 245.16) AND ((col0 < 536) OR (col1 >= 109.76 OR col1 < 84.6 AND (col3 < 969)) AND col4 > 432.98)) AND col3 < 296 AND col3 = 283 OR ((col4 = 576.46))) AND col0 < 971
----
74 values hashing to 79b9791cfa6373f244e7e0d9f81f300d

statement ok
DROP VIEW view_1_tab2_245

statement ok
DROP VIEW view_2_tab2_245

statement ok
DROP VIEW view_3_tab2_245

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab3_245 AS SELECT pk, col0 FROM tab3 WHERE col3 < 371 OR col1 >= 956.47 OR ((col0 <= 276 OR ((col3 > 708))) AND (col1 > 411.11 AND ((col3 < 836)) OR col0 >= 324 OR col3 < 367 OR col3 > 624 AND col0 < 290) OR ((col4 > 245.16) AND ((col0 < 536) OR (col1 >= 109.76 OR col1 < 84.6 AND (col3 < 969)) AND col4 > 432.98)) AND col3 < 296 AND col3 = 283 OR ((col4 = 576.46))) AND col0 < 971

statement ok
CREATE VIEW view_2_tab3_245 AS SELECT pk, col0 FROM tab3 WHERE NOT (col3 < 371 OR col1 >= 956.47 OR ((col0 <= 276 OR ((col3 > 708))) AND (col1 > 411.11 AND ((col3 < 836)) OR col0 >= 324 OR col3 < 367 OR col3 > 624 AND col0 < 290) OR ((col4 > 245.16) AND ((col0 < 536) OR (col1 >= 109.76 OR col1 < 84.6 AND (col3 < 969)) AND col4 > 432.98)) AND col3 < 296 AND col3 = 283 OR ((col4 = 576.46))) AND col0 < 971)

statement ok
CREATE VIEW view_3_tab3_245 AS SELECT pk FROM view_1_tab3_245

query II rowsort label-1600-1
SELECT pk, col0 FROM tab3 WHERE col3 < 371 OR col1 >= 956.47 OR ((col0 <= 276 OR ((col3 > 708))) AND (col1 > 411.11 AND ((col3 < 836)) OR col0 >= 324 OR col3 < 367 OR col3 > 624 AND col0 < 290) OR ((col4 > 245.16) AND ((col0 < 536) OR (col1 >= 109.76 OR col1 < 84.6 AND (col3 < 969)) AND col4 > 432.98)) AND col3 < 296 AND col3 = 283 OR ((col4 = 576.46))) AND col0 < 971
----
148 values hashing to db13e176a132f070f0c95b5ffccf07c8

query II rowsort label-1600-2
SELECT pk, col0 FROM tab3 WHERE NOT (col3 < 371 OR col1 >= 956.47 OR ((col0 <= 276 OR ((col3 > 708))) AND (col1 > 411.11 AND ((col3 < 836)) OR col0 >= 324 OR col3 < 367 OR col3 > 624 AND col0 < 290) OR ((col4 > 245.16) AND ((col0 < 536) OR (col1 >= 109.76 OR col1 < 84.6 AND (col3 < 969)) AND col4 > 432.98)) AND col3 < 296 AND col3 = 283 OR ((col4 = 576.46))) AND col0 < 971)
----
52 values hashing to e0ff71b68381314bde3b185714643ecd

query II rowsort label-1600-1
SELECT pk, col0 FROM view_1_tab3_245
----
148 values hashing to db13e176a132f070f0c95b5ffccf07c8

query II rowsort label-1600-2
SELECT pk, col0 FROM view_2_tab3_245
----
52 values hashing to e0ff71b68381314bde3b185714643ecd

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 < 371 OR col1 >= 956.47 OR ((col0 <= 276 OR ((col3 > 708))) AND (col1 > 411.11 AND ((col3 < 836)) OR col0 >= 324 OR col3 < 367 OR col3 > 624 AND col0 < 290) OR ((col4 > 245.16) AND ((col0 < 536) OR (col1 >= 109.76 OR col1 < 84.6 AND (col3 < 969)) AND col4 > 432.98)) AND col3 < 296 AND col3 = 283 OR ((col4 = 576.46))) AND col0 < 971 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col3 < 371 OR col1 >= 956.47 OR ((col0 <= 276 OR ((col3 > 708))) AND (col1 > 411.11 AND ((col3 < 836)) OR col0 >= 324 OR col3 < 367 OR col3 > 624 AND col0 < 290) OR ((col4 > 245.16) AND ((col0 < 536) OR (col1 >= 109.76 OR col1 < 84.6 AND (col3 < 969)) AND col4 > 432.98)) AND col3 < 296 AND col3 = 283 OR ((col4 = 576.46))) AND col0 < 971)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_245 UNION ALL SELECT pk, col0 FROM view_2_tab3_245
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 < 371 OR col1 >= 956.47 OR ((col0 <= 276 OR ((col3 > 708))) AND (col1 > 411.11 AND ((col3 < 836)) OR col0 >= 324 OR col3 < 367 OR col3 > 624 AND col0 < 290) OR ((col4 > 245.16) AND ((col0 < 536) OR (col1 >= 109.76 OR col1 < 84.6 AND (col3 < 969)) AND col4 > 432.98)) AND col3 < 296 AND col3 = 283 OR ((col4 = 576.46))) AND col0 < 971 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col3 < 371 OR col1 >= 956.47 OR ((col0 <= 276 OR ((col3 > 708))) AND (col1 > 411.11 AND ((col3 < 836)) OR col0 >= 324 OR col3 < 367 OR col3 > 624 AND col0 < 290) OR ((col4 > 245.16) AND ((col0 < 536) OR (col1 >= 109.76 OR col1 < 84.6 AND (col3 < 969)) AND col4 > 432.98)) AND col3 < 296 AND col3 = 283 OR ((col4 = 576.46))) AND col0 < 971)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_245 UNION SELECT pk, col0 FROM view_2_tab3_245
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-1600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col3 < 371 OR col1 >= 956.47 OR ((col0 <= 276 OR ((col3 > 708))) AND (col1 > 411.11 AND ((col3 < 836)) OR col0 >= 324 OR col3 < 367 OR col3 > 624 AND col0 < 290) OR ((col4 > 245.16) AND ((col0 < 536) OR (col1 >= 109.76 OR col1 < 84.6 AND (col3 < 969)) AND col4 > 432.98)) AND col3 < 296 AND col3 = 283 OR ((col4 = 576.46))) AND col0 < 971 ) AS tab3_245
----
74 values hashing to 79b9791cfa6373f244e7e0d9f81f300d

query I rowsort label-1600-3
SELECT * FROM view_3_tab3_245
----
74 values hashing to 79b9791cfa6373f244e7e0d9f81f300d

query I rowsort label-1600-3
SELECT pk FROM tab3 WHERE col3 < 371 OR col1 >= 956.47 OR ((col0 <= 276 OR ((col3 > 708))) AND (col1 > 411.11 AND ((col3 < 836)) OR col0 >= 324 OR col3 < 367 OR col3 > 624 AND col0 < 290) OR ((col4 > 245.16) AND ((col0 < 536) OR (col1 >= 109.76 OR col1 < 84.6 AND (col3 < 969)) AND col4 > 432.98)) AND col3 < 296 AND col3 = 283 OR ((col4 = 576.46))) AND col0 < 971
----
74 values hashing to 79b9791cfa6373f244e7e0d9f81f300d

statement ok
DROP VIEW view_1_tab3_245

statement ok
DROP VIEW view_2_tab3_245

statement ok
DROP VIEW view_3_tab3_245

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab4_245 AS SELECT pk, col0 FROM tab4 WHERE col3 < 371 OR col1 >= 956.47 OR ((col0 <= 276 OR ((col3 > 708))) AND (col1 > 411.11 AND ((col3 < 836)) OR col0 >= 324 OR col3 < 367 OR col3 > 624 AND col0 < 290) OR ((col4 > 245.16) AND ((col0 < 536) OR (col1 >= 109.76 OR col1 < 84.6 AND (col3 < 969)) AND col4 > 432.98)) AND col3 < 296 AND col3 = 283 OR ((col4 = 576.46))) AND col0 < 971

statement ok
CREATE VIEW view_2_tab4_245 AS SELECT pk, col0 FROM tab4 WHERE NOT (col3 < 371 OR col1 >= 956.47 OR ((col0 <= 276 OR ((col3 > 708))) AND (col1 > 411.11 AND ((col3 < 836)) OR col0 >= 324 OR col3 < 367 OR col3 > 624 AND col0 < 290) OR ((col4 > 245.16) AND ((col0 < 536) OR (col1 >= 109.76 OR col1 < 84.6 AND (col3 < 969)) AND col4 > 432.98)) AND col3 < 296 AND col3 = 283 OR ((col4 = 576.46))) AND col0 < 971)

statement ok
CREATE VIEW view_3_tab4_245 AS SELECT pk FROM view_1_tab4_245

query II rowsort label-1600-1
SELECT pk, col0 FROM tab4 WHERE col3 < 371 OR col1 >= 956.47 OR ((col0 <= 276 OR ((col3 > 708))) AND (col1 > 411.11 AND ((col3 < 836)) OR col0 >= 324 OR col3 < 367 OR col3 > 624 AND col0 < 290) OR ((col4 > 245.16) AND ((col0 < 536) OR (col1 >= 109.76 OR col1 < 84.6 AND (col3 < 969)) AND col4 > 432.98)) AND col3 < 296 AND col3 = 283 OR ((col4 = 576.46))) AND col0 < 971
----
148 values hashing to db13e176a132f070f0c95b5ffccf07c8

query II rowsort label-1600-2
SELECT pk, col0 FROM tab4 WHERE NOT (col3 < 371 OR col1 >= 956.47 OR ((col0 <= 276 OR ((col3 > 708))) AND (col1 > 411.11 AND ((col3 < 836)) OR col0 >= 324 OR col3 < 367 OR col3 > 624 AND col0 < 290) OR ((col4 > 245.16) AND ((col0 < 536) OR (col1 >= 109.76 OR col1 < 84.6 AND (col3 < 969)) AND col4 > 432.98)) AND col3 < 296 AND col3 = 283 OR ((col4 = 576.46))) AND col0 < 971)
----
52 values hashing to e0ff71b68381314bde3b185714643ecd

query II rowsort label-1600-1
SELECT pk, col0 FROM view_1_tab4_245
----
148 values hashing to db13e176a132f070f0c95b5ffccf07c8

query II rowsort label-1600-2
SELECT pk, col0 FROM view_2_tab4_245
----
52 values hashing to e0ff71b68381314bde3b185714643ecd

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 < 371 OR col1 >= 956.47 OR ((col0 <= 276 OR ((col3 > 708))) AND (col1 > 411.11 AND ((col3 < 836)) OR col0 >= 324 OR col3 < 367 OR col3 > 624 AND col0 < 290) OR ((col4 > 245.16) AND ((col0 < 536) OR (col1 >= 109.76 OR col1 < 84.6 AND (col3 < 969)) AND col4 > 432.98)) AND col3 < 296 AND col3 = 283 OR ((col4 = 576.46))) AND col0 < 971 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col3 < 371 OR col1 >= 956.47 OR ((col0 <= 276 OR ((col3 > 708))) AND (col1 > 411.11 AND ((col3 < 836)) OR col0 >= 324 OR col3 < 367 OR col3 > 624 AND col0 < 290) OR ((col4 > 245.16) AND ((col0 < 536) OR (col1 >= 109.76 OR col1 < 84.6 AND (col3 < 969)) AND col4 > 432.98)) AND col3 < 296 AND col3 = 283 OR ((col4 = 576.46))) AND col0 < 971)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_245 UNION ALL SELECT pk, col0 FROM view_2_tab4_245
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 < 371 OR col1 >= 956.47 OR ((col0 <= 276 OR ((col3 > 708))) AND (col1 > 411.11 AND ((col3 < 836)) OR col0 >= 324 OR col3 < 367 OR col3 > 624 AND col0 < 290) OR ((col4 > 245.16) AND ((col0 < 536) OR (col1 >= 109.76 OR col1 < 84.6 AND (col3 < 969)) AND col4 > 432.98)) AND col3 < 296 AND col3 = 283 OR ((col4 = 576.46))) AND col0 < 971 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col3 < 371 OR col1 >= 956.47 OR ((col0 <= 276 OR ((col3 > 708))) AND (col1 > 411.11 AND ((col3 < 836)) OR col0 >= 324 OR col3 < 367 OR col3 > 624 AND col0 < 290) OR ((col4 > 245.16) AND ((col0 < 536) OR (col1 >= 109.76 OR col1 < 84.6 AND (col3 < 969)) AND col4 > 432.98)) AND col3 < 296 AND col3 = 283 OR ((col4 = 576.46))) AND col0 < 971)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_245 UNION SELECT pk, col0 FROM view_2_tab4_245
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-1600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col3 < 371 OR col1 >= 956.47 OR ((col0 <= 276 OR ((col3 > 708))) AND (col1 > 411.11 AND ((col3 < 836)) OR col0 >= 324 OR col3 < 367 OR col3 > 624 AND col0 < 290) OR ((col4 > 245.16) AND ((col0 < 536) OR (col1 >= 109.76 OR col1 < 84.6 AND (col3 < 969)) AND col4 > 432.98)) AND col3 < 296 AND col3 = 283 OR ((col4 = 576.46))) AND col0 < 971 ) AS tab4_245
----
74 values hashing to 79b9791cfa6373f244e7e0d9f81f300d

query I rowsort label-1600-3
SELECT * FROM view_3_tab4_245
----
74 values hashing to 79b9791cfa6373f244e7e0d9f81f300d

query I rowsort label-1600-3
SELECT pk FROM tab4 WHERE col3 < 371 OR col1 >= 956.47 OR ((col0 <= 276 OR ((col3 > 708))) AND (col1 > 411.11 AND ((col3 < 836)) OR col0 >= 324 OR col3 < 367 OR col3 > 624 AND col0 < 290) OR ((col4 > 245.16) AND ((col0 < 536) OR (col1 >= 109.76 OR col1 < 84.6 AND (col3 < 969)) AND col4 > 432.98)) AND col3 < 296 AND col3 = 283 OR ((col4 = 576.46))) AND col0 < 971
----
74 values hashing to 79b9791cfa6373f244e7e0d9f81f300d

statement ok
DROP VIEW view_1_tab4_245

statement ok
DROP VIEW view_2_tab4_245

statement ok
DROP VIEW view_3_tab4_245

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab0_246 AS SELECT pk, col0 FROM tab0 WHERE (col4 = 413.88)

statement ok
CREATE VIEW view_2_tab0_246 AS SELECT pk, col0 FROM tab0 WHERE NOT ((col4 = 413.88))

statement ok
CREATE VIEW view_3_tab0_246 AS SELECT pk FROM view_1_tab0_246

query II rowsort label-1700-1
SELECT pk, col0 FROM tab0 WHERE (col4 = 413.88)
----

query II rowsort label-1700-2
SELECT pk, col0 FROM tab0 WHERE NOT ((col4 = 413.88))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-1700-1
SELECT pk, col0 FROM view_1_tab0_246
----

query II rowsort label-1700-2
SELECT pk, col0 FROM view_2_tab0_246
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col4 = 413.88) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT ((col4 = 413.88))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_246 UNION ALL SELECT pk, col0 FROM view_2_tab0_246
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col4 = 413.88) UNION SELECT pk, col0 FROM tab0 WHERE NOT ((col4 = 413.88))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_246 UNION SELECT pk, col0 FROM view_2_tab0_246
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-1700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE (col4 = 413.88) ) AS tab0_246
----

query I rowsort label-1700-3
SELECT * FROM view_3_tab0_246
----

query I rowsort label-1700-3
SELECT pk FROM tab0 WHERE (col4 = 413.88)
----

statement ok
DROP VIEW view_1_tab0_246

statement ok
DROP VIEW view_2_tab0_246

statement ok
DROP VIEW view_3_tab0_246

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab1_246 AS SELECT pk, col0 FROM tab1 WHERE (col4 = 413.88)

statement ok
CREATE VIEW view_2_tab1_246 AS SELECT pk, col0 FROM tab1 WHERE NOT ((col4 = 413.88))

statement ok
CREATE VIEW view_3_tab1_246 AS SELECT pk FROM view_1_tab1_246

query II rowsort label-1700-1
SELECT pk, col0 FROM tab1 WHERE (col4 = 413.88)
----

query II rowsort label-1700-2
SELECT pk, col0 FROM tab1 WHERE NOT ((col4 = 413.88))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-1700-1
SELECT pk, col0 FROM view_1_tab1_246
----

query II rowsort label-1700-2
SELECT pk, col0 FROM view_2_tab1_246
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col4 = 413.88) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT ((col4 = 413.88))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_246 UNION ALL SELECT pk, col0 FROM view_2_tab1_246
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col4 = 413.88) UNION SELECT pk, col0 FROM tab1 WHERE NOT ((col4 = 413.88))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_246 UNION SELECT pk, col0 FROM view_2_tab1_246
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-1700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE (col4 = 413.88) ) AS tab1_246
----

query I rowsort label-1700-3
SELECT * FROM view_3_tab1_246
----

query I rowsort label-1700-3
SELECT pk FROM tab1 WHERE (col4 = 413.88)
----

statement ok
DROP VIEW view_1_tab1_246

statement ok
DROP VIEW view_2_tab1_246

statement ok
DROP VIEW view_3_tab1_246

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab2_246 AS SELECT pk, col0 FROM tab2 WHERE (col4 = 413.88)

statement ok
CREATE VIEW view_2_tab2_246 AS SELECT pk, col0 FROM tab2 WHERE NOT ((col4 = 413.88))

statement ok
CREATE VIEW view_3_tab2_246 AS SELECT pk FROM view_1_tab2_246

query II rowsort label-1700-1
SELECT pk, col0 FROM tab2 WHERE (col4 = 413.88)
----

query II rowsort label-1700-2
SELECT pk, col0 FROM tab2 WHERE NOT ((col4 = 413.88))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-1700-1
SELECT pk, col0 FROM view_1_tab2_246
----

query II rowsort label-1700-2
SELECT pk, col0 FROM view_2_tab2_246
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col4 = 413.88) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT ((col4 = 413.88))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_246 UNION ALL SELECT pk, col0 FROM view_2_tab2_246
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col4 = 413.88) UNION SELECT pk, col0 FROM tab2 WHERE NOT ((col4 = 413.88))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_246 UNION SELECT pk, col0 FROM view_2_tab2_246
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-1700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE (col4 = 413.88) ) AS tab2_246
----

query I rowsort label-1700-3
SELECT * FROM view_3_tab2_246
----

query I rowsort label-1700-3
SELECT pk FROM tab2 WHERE (col4 = 413.88)
----

statement ok
DROP VIEW view_1_tab2_246

statement ok
DROP VIEW view_2_tab2_246

statement ok
DROP VIEW view_3_tab2_246

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab3_246 AS SELECT pk, col0 FROM tab3 WHERE (col4 = 413.88)

statement ok
CREATE VIEW view_2_tab3_246 AS SELECT pk, col0 FROM tab3 WHERE NOT ((col4 = 413.88))

statement ok
CREATE VIEW view_3_tab3_246 AS SELECT pk FROM view_1_tab3_246

query II rowsort label-1700-1
SELECT pk, col0 FROM tab3 WHERE (col4 = 413.88)
----

query II rowsort label-1700-2
SELECT pk, col0 FROM tab3 WHERE NOT ((col4 = 413.88))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-1700-1
SELECT pk, col0 FROM view_1_tab3_246
----

query II rowsort label-1700-2
SELECT pk, col0 FROM view_2_tab3_246
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col4 = 413.88) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT ((col4 = 413.88))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_246 UNION ALL SELECT pk, col0 FROM view_2_tab3_246
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col4 = 413.88) UNION SELECT pk, col0 FROM tab3 WHERE NOT ((col4 = 413.88))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_246 UNION SELECT pk, col0 FROM view_2_tab3_246
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-1700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE (col4 = 413.88) ) AS tab3_246
----

query I rowsort label-1700-3
SELECT * FROM view_3_tab3_246
----

query I rowsort label-1700-3
SELECT pk FROM tab3 WHERE (col4 = 413.88)
----

statement ok
DROP VIEW view_1_tab3_246

statement ok
DROP VIEW view_2_tab3_246

statement ok
DROP VIEW view_3_tab3_246

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab4_246 AS SELECT pk, col0 FROM tab4 WHERE (col4 = 413.88)

statement ok
CREATE VIEW view_2_tab4_246 AS SELECT pk, col0 FROM tab4 WHERE NOT ((col4 = 413.88))

statement ok
CREATE VIEW view_3_tab4_246 AS SELECT pk FROM view_1_tab4_246

query II rowsort label-1700-1
SELECT pk, col0 FROM tab4 WHERE (col4 = 413.88)
----

query II rowsort label-1700-2
SELECT pk, col0 FROM tab4 WHERE NOT ((col4 = 413.88))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-1700-1
SELECT pk, col0 FROM view_1_tab4_246
----

query II rowsort label-1700-2
SELECT pk, col0 FROM view_2_tab4_246
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col4 = 413.88) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT ((col4 = 413.88))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_246 UNION ALL SELECT pk, col0 FROM view_2_tab4_246
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col4 = 413.88) UNION SELECT pk, col0 FROM tab4 WHERE NOT ((col4 = 413.88))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_246 UNION SELECT pk, col0 FROM view_2_tab4_246
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-1700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE (col4 = 413.88) ) AS tab4_246
----

query I rowsort label-1700-3
SELECT * FROM view_3_tab4_246
----

query I rowsort label-1700-3
SELECT pk FROM tab4 WHERE (col4 = 413.88)
----

statement ok
DROP VIEW view_1_tab4_246

statement ok
DROP VIEW view_2_tab4_246

statement ok
DROP VIEW view_3_tab4_246

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab0_247 AS SELECT pk, col0 FROM tab0 WHERE col0 <= 422

statement ok
CREATE VIEW view_2_tab0_247 AS SELECT pk, col0 FROM tab0 WHERE NOT (col0 <= 422)

statement ok
CREATE VIEW view_3_tab0_247 AS SELECT pk FROM view_1_tab0_247

query II rowsort label-1800-1
SELECT pk, col0 FROM tab0 WHERE col0 <= 422
----
74 values hashing to bae422134bdcaa51d158d12bfb1079d6

query II rowsort label-1800-2
SELECT pk, col0 FROM tab0 WHERE NOT (col0 <= 422)
----
126 values hashing to 8ebd20d20a4278da3361f9fee54f8601

query II rowsort label-1800-1
SELECT pk, col0 FROM view_1_tab0_247
----
74 values hashing to bae422134bdcaa51d158d12bfb1079d6

query II rowsort label-1800-2
SELECT pk, col0 FROM view_2_tab0_247
----
126 values hashing to 8ebd20d20a4278da3361f9fee54f8601

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col0 <= 422 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col0 <= 422)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_247 UNION ALL SELECT pk, col0 FROM view_2_tab0_247
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col0 <= 422 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col0 <= 422)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_247 UNION SELECT pk, col0 FROM view_2_tab0_247
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-1800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col0 <= 422 ) AS tab0_247
----
37 values hashing to de1fb9ce3bb7fc1f06e044b5713c5cdd

query I rowsort label-1800-3
SELECT * FROM view_3_tab0_247
----
37 values hashing to de1fb9ce3bb7fc1f06e044b5713c5cdd

query I rowsort label-1800-3
SELECT pk FROM tab0 WHERE col0 <= 422
----
37 values hashing to de1fb9ce3bb7fc1f06e044b5713c5cdd

statement ok
DROP VIEW view_1_tab0_247

statement ok
DROP VIEW view_2_tab0_247

statement ok
DROP VIEW view_3_tab0_247

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab1_247 AS SELECT pk, col0 FROM tab1 WHERE col0 <= 422

statement ok
CREATE VIEW view_2_tab1_247 AS SELECT pk, col0 FROM tab1 WHERE NOT (col0 <= 422)

statement ok
CREATE VIEW view_3_tab1_247 AS SELECT pk FROM view_1_tab1_247

query II rowsort label-1800-1
SELECT pk, col0 FROM tab1 WHERE col0 <= 422
----
74 values hashing to bae422134bdcaa51d158d12bfb1079d6

query II rowsort label-1800-2
SELECT pk, col0 FROM tab1 WHERE NOT (col0 <= 422)
----
126 values hashing to 8ebd20d20a4278da3361f9fee54f8601

query II rowsort label-1800-1
SELECT pk, col0 FROM view_1_tab1_247
----
74 values hashing to bae422134bdcaa51d158d12bfb1079d6

query II rowsort label-1800-2
SELECT pk, col0 FROM view_2_tab1_247
----
126 values hashing to 8ebd20d20a4278da3361f9fee54f8601

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col0 <= 422 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col0 <= 422)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_247 UNION ALL SELECT pk, col0 FROM view_2_tab1_247
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col0 <= 422 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col0 <= 422)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_247 UNION SELECT pk, col0 FROM view_2_tab1_247
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-1800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col0 <= 422 ) AS tab1_247
----
37 values hashing to de1fb9ce3bb7fc1f06e044b5713c5cdd

query I rowsort label-1800-3
SELECT * FROM view_3_tab1_247
----
37 values hashing to de1fb9ce3bb7fc1f06e044b5713c5cdd

query I rowsort label-1800-3
SELECT pk FROM tab1 WHERE col0 <= 422
----
37 values hashing to de1fb9ce3bb7fc1f06e044b5713c5cdd

statement ok
DROP VIEW view_1_tab1_247

statement ok
DROP VIEW view_2_tab1_247

statement ok
DROP VIEW view_3_tab1_247

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab2_247 AS SELECT pk, col0 FROM tab2 WHERE col0 <= 422

statement ok
CREATE VIEW view_2_tab2_247 AS SELECT pk, col0 FROM tab2 WHERE NOT (col0 <= 422)

statement ok
CREATE VIEW view_3_tab2_247 AS SELECT pk FROM view_1_tab2_247

query II rowsort label-1800-1
SELECT pk, col0 FROM tab2 WHERE col0 <= 422
----
74 values hashing to bae422134bdcaa51d158d12bfb1079d6

query II rowsort label-1800-2
SELECT pk, col0 FROM tab2 WHERE NOT (col0 <= 422)
----
126 values hashing to 8ebd20d20a4278da3361f9fee54f8601

query II rowsort label-1800-1
SELECT pk, col0 FROM view_1_tab2_247
----
74 values hashing to bae422134bdcaa51d158d12bfb1079d6

query II rowsort label-1800-2
SELECT pk, col0 FROM view_2_tab2_247
----
126 values hashing to 8ebd20d20a4278da3361f9fee54f8601

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col0 <= 422 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col0 <= 422)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_247 UNION ALL SELECT pk, col0 FROM view_2_tab2_247
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col0 <= 422 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col0 <= 422)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_247 UNION SELECT pk, col0 FROM view_2_tab2_247
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-1800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col0 <= 422 ) AS tab2_247
----
37 values hashing to de1fb9ce3bb7fc1f06e044b5713c5cdd

query I rowsort label-1800-3
SELECT * FROM view_3_tab2_247
----
37 values hashing to de1fb9ce3bb7fc1f06e044b5713c5cdd

query I rowsort label-1800-3
SELECT pk FROM tab2 WHERE col0 <= 422
----
37 values hashing to de1fb9ce3bb7fc1f06e044b5713c5cdd

statement ok
DROP VIEW view_1_tab2_247

statement ok
DROP VIEW view_2_tab2_247

statement ok
DROP VIEW view_3_tab2_247

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab3_247 AS SELECT pk, col0 FROM tab3 WHERE col0 <= 422

statement ok
CREATE VIEW view_2_tab3_247 AS SELECT pk, col0 FROM tab3 WHERE NOT (col0 <= 422)

statement ok
CREATE VIEW view_3_tab3_247 AS SELECT pk FROM view_1_tab3_247

query II rowsort label-1800-1
SELECT pk, col0 FROM tab3 WHERE col0 <= 422
----
74 values hashing to bae422134bdcaa51d158d12bfb1079d6

query II rowsort label-1800-2
SELECT pk, col0 FROM tab3 WHERE NOT (col0 <= 422)
----
126 values hashing to 8ebd20d20a4278da3361f9fee54f8601

query II rowsort label-1800-1
SELECT pk, col0 FROM view_1_tab3_247
----
74 values hashing to bae422134bdcaa51d158d12bfb1079d6

query II rowsort label-1800-2
SELECT pk, col0 FROM view_2_tab3_247
----
126 values hashing to 8ebd20d20a4278da3361f9fee54f8601

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col0 <= 422 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col0 <= 422)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_247 UNION ALL SELECT pk, col0 FROM view_2_tab3_247
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col0 <= 422 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col0 <= 422)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_247 UNION SELECT pk, col0 FROM view_2_tab3_247
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-1800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col0 <= 422 ) AS tab3_247
----
37 values hashing to de1fb9ce3bb7fc1f06e044b5713c5cdd

query I rowsort label-1800-3
SELECT * FROM view_3_tab3_247
----
37 values hashing to de1fb9ce3bb7fc1f06e044b5713c5cdd

query I rowsort label-1800-3
SELECT pk FROM tab3 WHERE col0 <= 422
----
37 values hashing to de1fb9ce3bb7fc1f06e044b5713c5cdd

statement ok
DROP VIEW view_1_tab3_247

statement ok
DROP VIEW view_2_tab3_247

statement ok
DROP VIEW view_3_tab3_247

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab4_247 AS SELECT pk, col0 FROM tab4 WHERE col0 <= 422

statement ok
CREATE VIEW view_2_tab4_247 AS SELECT pk, col0 FROM tab4 WHERE NOT (col0 <= 422)

statement ok
CREATE VIEW view_3_tab4_247 AS SELECT pk FROM view_1_tab4_247

query II rowsort label-1800-1
SELECT pk, col0 FROM tab4 WHERE col0 <= 422
----
74 values hashing to bae422134bdcaa51d158d12bfb1079d6

query II rowsort label-1800-2
SELECT pk, col0 FROM tab4 WHERE NOT (col0 <= 422)
----
126 values hashing to 8ebd20d20a4278da3361f9fee54f8601

query II rowsort label-1800-1
SELECT pk, col0 FROM view_1_tab4_247
----
74 values hashing to bae422134bdcaa51d158d12bfb1079d6

query II rowsort label-1800-2
SELECT pk, col0 FROM view_2_tab4_247
----
126 values hashing to 8ebd20d20a4278da3361f9fee54f8601

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col0 <= 422 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col0 <= 422)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_247 UNION ALL SELECT pk, col0 FROM view_2_tab4_247
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col0 <= 422 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col0 <= 422)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_247 UNION SELECT pk, col0 FROM view_2_tab4_247
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-1800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col0 <= 422 ) AS tab4_247
----
37 values hashing to de1fb9ce3bb7fc1f06e044b5713c5cdd

query I rowsort label-1800-3
SELECT * FROM view_3_tab4_247
----
37 values hashing to de1fb9ce3bb7fc1f06e044b5713c5cdd

query I rowsort label-1800-3
SELECT pk FROM tab4 WHERE col0 <= 422
----
37 values hashing to de1fb9ce3bb7fc1f06e044b5713c5cdd

statement ok
DROP VIEW view_1_tab4_247

statement ok
DROP VIEW view_2_tab4_247

statement ok
DROP VIEW view_3_tab4_247

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab0_248 AS SELECT pk, col0 FROM tab0 WHERE (col1 >= 41.89)

statement ok
CREATE VIEW view_2_tab0_248 AS SELECT pk, col0 FROM tab0 WHERE NOT ((col1 >= 41.89))

statement ok
CREATE VIEW view_3_tab0_248 AS SELECT pk FROM view_1_tab0_248

query II rowsort label-1900-1
SELECT pk, col0 FROM tab0 WHERE (col1 >= 41.89)
----
188 values hashing to 4e42861f1499eae5514757984f498a44

query II rowsort label-1900-2
SELECT pk, col0 FROM tab0 WHERE NOT ((col1 >= 41.89))
----
12 values hashing to cd2ee4d81d2eb3962e69db9d8868f43b

query II rowsort label-1900-1
SELECT pk, col0 FROM view_1_tab0_248
----
188 values hashing to 4e42861f1499eae5514757984f498a44

query II rowsort label-1900-2
SELECT pk, col0 FROM view_2_tab0_248
----
12 values hashing to cd2ee4d81d2eb3962e69db9d8868f43b

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col1 >= 41.89) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT ((col1 >= 41.89))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_248 UNION ALL SELECT pk, col0 FROM view_2_tab0_248
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col1 >= 41.89) UNION SELECT pk, col0 FROM tab0 WHERE NOT ((col1 >= 41.89))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_248 UNION SELECT pk, col0 FROM view_2_tab0_248
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-1900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE (col1 >= 41.89) ) AS tab0_248
----
94 values hashing to 3f929a361abed420accfd7121b4f0f76

query I rowsort label-1900-3
SELECT * FROM view_3_tab0_248
----
94 values hashing to 3f929a361abed420accfd7121b4f0f76

query I rowsort label-1900-3
SELECT pk FROM tab0 WHERE (col1 >= 41.89)
----
94 values hashing to 3f929a361abed420accfd7121b4f0f76

statement ok
DROP VIEW view_1_tab0_248

statement ok
DROP VIEW view_2_tab0_248

statement ok
DROP VIEW view_3_tab0_248

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab1_248 AS SELECT pk, col0 FROM tab1 WHERE (col1 >= 41.89)

statement ok
CREATE VIEW view_2_tab1_248 AS SELECT pk, col0 FROM tab1 WHERE NOT ((col1 >= 41.89))

statement ok
CREATE VIEW view_3_tab1_248 AS SELECT pk FROM view_1_tab1_248

query II rowsort label-1900-1
SELECT pk, col0 FROM tab1 WHERE (col1 >= 41.89)
----
188 values hashing to 4e42861f1499eae5514757984f498a44

query II rowsort label-1900-2
SELECT pk, col0 FROM tab1 WHERE NOT ((col1 >= 41.89))
----
12 values hashing to cd2ee4d81d2eb3962e69db9d8868f43b

query II rowsort label-1900-1
SELECT pk, col0 FROM view_1_tab1_248
----
188 values hashing to 4e42861f1499eae5514757984f498a44

query II rowsort label-1900-2
SELECT pk, col0 FROM view_2_tab1_248
----
12 values hashing to cd2ee4d81d2eb3962e69db9d8868f43b

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col1 >= 41.89) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT ((col1 >= 41.89))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_248 UNION ALL SELECT pk, col0 FROM view_2_tab1_248
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col1 >= 41.89) UNION SELECT pk, col0 FROM tab1 WHERE NOT ((col1 >= 41.89))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_248 UNION SELECT pk, col0 FROM view_2_tab1_248
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-1900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE (col1 >= 41.89) ) AS tab1_248
----
94 values hashing to 3f929a361abed420accfd7121b4f0f76

query I rowsort label-1900-3
SELECT * FROM view_3_tab1_248
----
94 values hashing to 3f929a361abed420accfd7121b4f0f76

query I rowsort label-1900-3
SELECT pk FROM tab1 WHERE (col1 >= 41.89)
----
94 values hashing to 3f929a361abed420accfd7121b4f0f76

statement ok
DROP VIEW view_1_tab1_248

statement ok
DROP VIEW view_2_tab1_248

statement ok
DROP VIEW view_3_tab1_248

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab2_248 AS SELECT pk, col0 FROM tab2 WHERE (col1 >= 41.89)

statement ok
CREATE VIEW view_2_tab2_248 AS SELECT pk, col0 FROM tab2 WHERE NOT ((col1 >= 41.89))

statement ok
CREATE VIEW view_3_tab2_248 AS SELECT pk FROM view_1_tab2_248

query II rowsort label-1900-1
SELECT pk, col0 FROM tab2 WHERE (col1 >= 41.89)
----
188 values hashing to 4e42861f1499eae5514757984f498a44

query II rowsort label-1900-2
SELECT pk, col0 FROM tab2 WHERE NOT ((col1 >= 41.89))
----
12 values hashing to cd2ee4d81d2eb3962e69db9d8868f43b

query II rowsort label-1900-1
SELECT pk, col0 FROM view_1_tab2_248
----
188 values hashing to 4e42861f1499eae5514757984f498a44

query II rowsort label-1900-2
SELECT pk, col0 FROM view_2_tab2_248
----
12 values hashing to cd2ee4d81d2eb3962e69db9d8868f43b

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col1 >= 41.89) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT ((col1 >= 41.89))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_248 UNION ALL SELECT pk, col0 FROM view_2_tab2_248
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col1 >= 41.89) UNION SELECT pk, col0 FROM tab2 WHERE NOT ((col1 >= 41.89))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_248 UNION SELECT pk, col0 FROM view_2_tab2_248
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-1900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE (col1 >= 41.89) ) AS tab2_248
----
94 values hashing to 3f929a361abed420accfd7121b4f0f76

query I rowsort label-1900-3
SELECT * FROM view_3_tab2_248
----
94 values hashing to 3f929a361abed420accfd7121b4f0f76

query I rowsort label-1900-3
SELECT pk FROM tab2 WHERE (col1 >= 41.89)
----
94 values hashing to 3f929a361abed420accfd7121b4f0f76

statement ok
DROP VIEW view_1_tab2_248

statement ok
DROP VIEW view_2_tab2_248

statement ok
DROP VIEW view_3_tab2_248

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab3_248 AS SELECT pk, col0 FROM tab3 WHERE (col1 >= 41.89)

statement ok
CREATE VIEW view_2_tab3_248 AS SELECT pk, col0 FROM tab3 WHERE NOT ((col1 >= 41.89))

statement ok
CREATE VIEW view_3_tab3_248 AS SELECT pk FROM view_1_tab3_248

query II rowsort label-1900-1
SELECT pk, col0 FROM tab3 WHERE (col1 >= 41.89)
----
188 values hashing to 4e42861f1499eae5514757984f498a44

query II rowsort label-1900-2
SELECT pk, col0 FROM tab3 WHERE NOT ((col1 >= 41.89))
----
12 values hashing to cd2ee4d81d2eb3962e69db9d8868f43b

query II rowsort label-1900-1
SELECT pk, col0 FROM view_1_tab3_248
----
188 values hashing to 4e42861f1499eae5514757984f498a44

query II rowsort label-1900-2
SELECT pk, col0 FROM view_2_tab3_248
----
12 values hashing to cd2ee4d81d2eb3962e69db9d8868f43b

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col1 >= 41.89) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT ((col1 >= 41.89))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_248 UNION ALL SELECT pk, col0 FROM view_2_tab3_248
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col1 >= 41.89) UNION SELECT pk, col0 FROM tab3 WHERE NOT ((col1 >= 41.89))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_248 UNION SELECT pk, col0 FROM view_2_tab3_248
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-1900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE (col1 >= 41.89) ) AS tab3_248
----
94 values hashing to 3f929a361abed420accfd7121b4f0f76

query I rowsort label-1900-3
SELECT * FROM view_3_tab3_248
----
94 values hashing to 3f929a361abed420accfd7121b4f0f76

query I rowsort label-1900-3
SELECT pk FROM tab3 WHERE (col1 >= 41.89)
----
94 values hashing to 3f929a361abed420accfd7121b4f0f76

statement ok
DROP VIEW view_1_tab3_248

statement ok
DROP VIEW view_2_tab3_248

statement ok
DROP VIEW view_3_tab3_248

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab4_248 AS SELECT pk, col0 FROM tab4 WHERE (col1 >= 41.89)

statement ok
CREATE VIEW view_2_tab4_248 AS SELECT pk, col0 FROM tab4 WHERE NOT ((col1 >= 41.89))

statement ok
CREATE VIEW view_3_tab4_248 AS SELECT pk FROM view_1_tab4_248

query II rowsort label-1900-1
SELECT pk, col0 FROM tab4 WHERE (col1 >= 41.89)
----
188 values hashing to 4e42861f1499eae5514757984f498a44

query II rowsort label-1900-2
SELECT pk, col0 FROM tab4 WHERE NOT ((col1 >= 41.89))
----
12 values hashing to cd2ee4d81d2eb3962e69db9d8868f43b

query II rowsort label-1900-1
SELECT pk, col0 FROM view_1_tab4_248
----
188 values hashing to 4e42861f1499eae5514757984f498a44

query II rowsort label-1900-2
SELECT pk, col0 FROM view_2_tab4_248
----
12 values hashing to cd2ee4d81d2eb3962e69db9d8868f43b

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col1 >= 41.89) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT ((col1 >= 41.89))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_248 UNION ALL SELECT pk, col0 FROM view_2_tab4_248
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col1 >= 41.89) UNION SELECT pk, col0 FROM tab4 WHERE NOT ((col1 >= 41.89))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_248 UNION SELECT pk, col0 FROM view_2_tab4_248
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-1900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE (col1 >= 41.89) ) AS tab4_248
----
94 values hashing to 3f929a361abed420accfd7121b4f0f76

query I rowsort label-1900-3
SELECT * FROM view_3_tab4_248
----
94 values hashing to 3f929a361abed420accfd7121b4f0f76

query I rowsort label-1900-3
SELECT pk FROM tab4 WHERE (col1 >= 41.89)
----
94 values hashing to 3f929a361abed420accfd7121b4f0f76

statement ok
DROP VIEW view_1_tab4_248

statement ok
DROP VIEW view_2_tab4_248

statement ok
DROP VIEW view_3_tab4_248

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab0_249 AS SELECT pk, col0 FROM tab0 WHERE col3 >= 272

statement ok
CREATE VIEW view_2_tab0_249 AS SELECT pk, col0 FROM tab0 WHERE NOT (col3 >= 272)

statement ok
CREATE VIEW view_3_tab0_249 AS SELECT pk FROM view_1_tab0_249

query II rowsort label-2000-1
SELECT pk, col0 FROM tab0 WHERE col3 >= 272
----
142 values hashing to a927983c69b0f184440fb3f91aca7740

query II rowsort label-2000-2
SELECT pk, col0 FROM tab0 WHERE NOT (col3 >= 272)
----
58 values hashing to 626683bcb2b2ecff3573dd78cfdfd455

query II rowsort label-2000-1
SELECT pk, col0 FROM view_1_tab0_249
----
142 values hashing to a927983c69b0f184440fb3f91aca7740

query II rowsort label-2000-2
SELECT pk, col0 FROM view_2_tab0_249
----
58 values hashing to 626683bcb2b2ecff3573dd78cfdfd455

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 >= 272 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col3 >= 272)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_249 UNION ALL SELECT pk, col0 FROM view_2_tab0_249
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 >= 272 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col3 >= 272)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_249 UNION SELECT pk, col0 FROM view_2_tab0_249
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-2000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col3 >= 272 ) AS tab0_249
----
71 values hashing to 4c8e878831bdd848c2a9c02ba0a4c9fe

query I rowsort label-2000-3
SELECT * FROM view_3_tab0_249
----
71 values hashing to 4c8e878831bdd848c2a9c02ba0a4c9fe

query I rowsort label-2000-3
SELECT pk FROM tab0 WHERE col3 >= 272
----
71 values hashing to 4c8e878831bdd848c2a9c02ba0a4c9fe

statement ok
DROP VIEW view_1_tab0_249

statement ok
DROP VIEW view_2_tab0_249

statement ok
DROP VIEW view_3_tab0_249

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab1_249 AS SELECT pk, col0 FROM tab1 WHERE col3 >= 272

statement ok
CREATE VIEW view_2_tab1_249 AS SELECT pk, col0 FROM tab1 WHERE NOT (col3 >= 272)

statement ok
CREATE VIEW view_3_tab1_249 AS SELECT pk FROM view_1_tab1_249

query II rowsort label-2000-1
SELECT pk, col0 FROM tab1 WHERE col3 >= 272
----
142 values hashing to a927983c69b0f184440fb3f91aca7740

query II rowsort label-2000-2
SELECT pk, col0 FROM tab1 WHERE NOT (col3 >= 272)
----
58 values hashing to 626683bcb2b2ecff3573dd78cfdfd455

query II rowsort label-2000-1
SELECT pk, col0 FROM view_1_tab1_249
----
142 values hashing to a927983c69b0f184440fb3f91aca7740

query II rowsort label-2000-2
SELECT pk, col0 FROM view_2_tab1_249
----
58 values hashing to 626683bcb2b2ecff3573dd78cfdfd455

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 >= 272 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col3 >= 272)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_249 UNION ALL SELECT pk, col0 FROM view_2_tab1_249
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 >= 272 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col3 >= 272)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_249 UNION SELECT pk, col0 FROM view_2_tab1_249
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-2000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col3 >= 272 ) AS tab1_249
----
71 values hashing to 4c8e878831bdd848c2a9c02ba0a4c9fe

query I rowsort label-2000-3
SELECT * FROM view_3_tab1_249
----
71 values hashing to 4c8e878831bdd848c2a9c02ba0a4c9fe

query I rowsort label-2000-3
SELECT pk FROM tab1 WHERE col3 >= 272
----
71 values hashing to 4c8e878831bdd848c2a9c02ba0a4c9fe

statement ok
DROP VIEW view_1_tab1_249

statement ok
DROP VIEW view_2_tab1_249

statement ok
DROP VIEW view_3_tab1_249

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab2_249 AS SELECT pk, col0 FROM tab2 WHERE col3 >= 272

statement ok
CREATE VIEW view_2_tab2_249 AS SELECT pk, col0 FROM tab2 WHERE NOT (col3 >= 272)

statement ok
CREATE VIEW view_3_tab2_249 AS SELECT pk FROM view_1_tab2_249

query II rowsort label-2000-1
SELECT pk, col0 FROM tab2 WHERE col3 >= 272
----
142 values hashing to a927983c69b0f184440fb3f91aca7740

query II rowsort label-2000-2
SELECT pk, col0 FROM tab2 WHERE NOT (col3 >= 272)
----
58 values hashing to 626683bcb2b2ecff3573dd78cfdfd455

query II rowsort label-2000-1
SELECT pk, col0 FROM view_1_tab2_249
----
142 values hashing to a927983c69b0f184440fb3f91aca7740

query II rowsort label-2000-2
SELECT pk, col0 FROM view_2_tab2_249
----
58 values hashing to 626683bcb2b2ecff3573dd78cfdfd455

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 >= 272 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col3 >= 272)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_249 UNION ALL SELECT pk, col0 FROM view_2_tab2_249
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 >= 272 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col3 >= 272)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_249 UNION SELECT pk, col0 FROM view_2_tab2_249
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-2000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col3 >= 272 ) AS tab2_249
----
71 values hashing to 4c8e878831bdd848c2a9c02ba0a4c9fe

query I rowsort label-2000-3
SELECT * FROM view_3_tab2_249
----
71 values hashing to 4c8e878831bdd848c2a9c02ba0a4c9fe

query I rowsort label-2000-3
SELECT pk FROM tab2 WHERE col3 >= 272
----
71 values hashing to 4c8e878831bdd848c2a9c02ba0a4c9fe

statement ok
DROP VIEW view_1_tab2_249

statement ok
DROP VIEW view_2_tab2_249

statement ok
DROP VIEW view_3_tab2_249

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab3_249 AS SELECT pk, col0 FROM tab3 WHERE col3 >= 272

statement ok
CREATE VIEW view_2_tab3_249 AS SELECT pk, col0 FROM tab3 WHERE NOT (col3 >= 272)

statement ok
CREATE VIEW view_3_tab3_249 AS SELECT pk FROM view_1_tab3_249

query II rowsort label-2000-1
SELECT pk, col0 FROM tab3 WHERE col3 >= 272
----
142 values hashing to a927983c69b0f184440fb3f91aca7740

query II rowsort label-2000-2
SELECT pk, col0 FROM tab3 WHERE NOT (col3 >= 272)
----
58 values hashing to 626683bcb2b2ecff3573dd78cfdfd455

query II rowsort label-2000-1
SELECT pk, col0 FROM view_1_tab3_249
----
142 values hashing to a927983c69b0f184440fb3f91aca7740

query II rowsort label-2000-2
SELECT pk, col0 FROM view_2_tab3_249
----
58 values hashing to 626683bcb2b2ecff3573dd78cfdfd455

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 >= 272 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col3 >= 272)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_249 UNION ALL SELECT pk, col0 FROM view_2_tab3_249
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 >= 272 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col3 >= 272)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_249 UNION SELECT pk, col0 FROM view_2_tab3_249
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-2000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col3 >= 272 ) AS tab3_249
----
71 values hashing to 4c8e878831bdd848c2a9c02ba0a4c9fe

query I rowsort label-2000-3
SELECT * FROM view_3_tab3_249
----
71 values hashing to 4c8e878831bdd848c2a9c02ba0a4c9fe

query I rowsort label-2000-3
SELECT pk FROM tab3 WHERE col3 >= 272
----
71 values hashing to 4c8e878831bdd848c2a9c02ba0a4c9fe

statement ok
DROP VIEW view_1_tab3_249

statement ok
DROP VIEW view_2_tab3_249

statement ok
DROP VIEW view_3_tab3_249

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab4_249 AS SELECT pk, col0 FROM tab4 WHERE col3 >= 272

statement ok
CREATE VIEW view_2_tab4_249 AS SELECT pk, col0 FROM tab4 WHERE NOT (col3 >= 272)

statement ok
CREATE VIEW view_3_tab4_249 AS SELECT pk FROM view_1_tab4_249

query II rowsort label-2000-1
SELECT pk, col0 FROM tab4 WHERE col3 >= 272
----
142 values hashing to a927983c69b0f184440fb3f91aca7740

query II rowsort label-2000-2
SELECT pk, col0 FROM tab4 WHERE NOT (col3 >= 272)
----
58 values hashing to 626683bcb2b2ecff3573dd78cfdfd455

query II rowsort label-2000-1
SELECT pk, col0 FROM view_1_tab4_249
----
142 values hashing to a927983c69b0f184440fb3f91aca7740

query II rowsort label-2000-2
SELECT pk, col0 FROM view_2_tab4_249
----
58 values hashing to 626683bcb2b2ecff3573dd78cfdfd455

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 >= 272 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col3 >= 272)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_249 UNION ALL SELECT pk, col0 FROM view_2_tab4_249
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 >= 272 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col3 >= 272)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_249 UNION SELECT pk, col0 FROM view_2_tab4_249
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-2000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col3 >= 272 ) AS tab4_249
----
71 values hashing to 4c8e878831bdd848c2a9c02ba0a4c9fe

query I rowsort label-2000-3
SELECT * FROM view_3_tab4_249
----
71 values hashing to 4c8e878831bdd848c2a9c02ba0a4c9fe

query I rowsort label-2000-3
SELECT pk FROM tab4 WHERE col3 >= 272
----
71 values hashing to 4c8e878831bdd848c2a9c02ba0a4c9fe

statement ok
DROP VIEW view_1_tab4_249

statement ok
DROP VIEW view_2_tab4_249

statement ok
DROP VIEW view_3_tab4_249

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab0_250 AS SELECT pk, col0 FROM tab0 WHERE col4 < 83.51

statement ok
CREATE VIEW view_2_tab0_250 AS SELECT pk, col0 FROM tab0 WHERE NOT (col4 < 83.51)

statement ok
CREATE VIEW view_3_tab0_250 AS SELECT pk FROM view_1_tab0_250

query II rowsort label-2100-1
SELECT pk, col0 FROM tab0 WHERE col4 < 83.51
----
18
355
24
452

query II rowsort label-2100-2
SELECT pk, col0 FROM tab0 WHERE NOT (col4 < 83.51)
----
196 values hashing to 0d32b502b5c52915db86aab09719fd4e

query II rowsort label-2100-1
SELECT pk, col0 FROM view_1_tab0_250
----
18
355
24
452

query II rowsort label-2100-2
SELECT pk, col0 FROM view_2_tab0_250
----
196 values hashing to 0d32b502b5c52915db86aab09719fd4e

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col4 < 83.51 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col4 < 83.51)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_250 UNION ALL SELECT pk, col0 FROM view_2_tab0_250
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col4 < 83.51 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col4 < 83.51)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_250 UNION SELECT pk, col0 FROM view_2_tab0_250
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-2100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col4 < 83.51 ) AS tab0_250
----
18
24

query I rowsort label-2100-3
SELECT * FROM view_3_tab0_250
----
18
24

query I rowsort label-2100-3
SELECT pk FROM tab0 WHERE col4 < 83.51
----
18
24

statement ok
DROP VIEW view_1_tab0_250

statement ok
DROP VIEW view_2_tab0_250

statement ok
DROP VIEW view_3_tab0_250

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab1_250 AS SELECT pk, col0 FROM tab1 WHERE col4 < 83.51

statement ok
CREATE VIEW view_2_tab1_250 AS SELECT pk, col0 FROM tab1 WHERE NOT (col4 < 83.51)

statement ok
CREATE VIEW view_3_tab1_250 AS SELECT pk FROM view_1_tab1_250

query II rowsort label-2100-1
SELECT pk, col0 FROM tab1 WHERE col4 < 83.51
----
18
355
24
452

query II rowsort label-2100-2
SELECT pk, col0 FROM tab1 WHERE NOT (col4 < 83.51)
----
196 values hashing to 0d32b502b5c52915db86aab09719fd4e

query II rowsort label-2100-1
SELECT pk, col0 FROM view_1_tab1_250
----
18
355
24
452

query II rowsort label-2100-2
SELECT pk, col0 FROM view_2_tab1_250
----
196 values hashing to 0d32b502b5c52915db86aab09719fd4e

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col4 < 83.51 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col4 < 83.51)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_250 UNION ALL SELECT pk, col0 FROM view_2_tab1_250
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col4 < 83.51 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col4 < 83.51)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_250 UNION SELECT pk, col0 FROM view_2_tab1_250
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-2100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col4 < 83.51 ) AS tab1_250
----
18
24

query I rowsort label-2100-3
SELECT * FROM view_3_tab1_250
----
18
24

query I rowsort label-2100-3
SELECT pk FROM tab1 WHERE col4 < 83.51
----
18
24

statement ok
DROP VIEW view_1_tab1_250

statement ok
DROP VIEW view_2_tab1_250

statement ok
DROP VIEW view_3_tab1_250

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab2_250 AS SELECT pk, col0 FROM tab2 WHERE col4 < 83.51

statement ok
CREATE VIEW view_2_tab2_250 AS SELECT pk, col0 FROM tab2 WHERE NOT (col4 < 83.51)

statement ok
CREATE VIEW view_3_tab2_250 AS SELECT pk FROM view_1_tab2_250

query II rowsort label-2100-1
SELECT pk, col0 FROM tab2 WHERE col4 < 83.51
----
18
355
24
452

query II rowsort label-2100-2
SELECT pk, col0 FROM tab2 WHERE NOT (col4 < 83.51)
----
196 values hashing to 0d32b502b5c52915db86aab09719fd4e

query II rowsort label-2100-1
SELECT pk, col0 FROM view_1_tab2_250
----
18
355
24
452

query II rowsort label-2100-2
SELECT pk, col0 FROM view_2_tab2_250
----
196 values hashing to 0d32b502b5c52915db86aab09719fd4e

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col4 < 83.51 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col4 < 83.51)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_250 UNION ALL SELECT pk, col0 FROM view_2_tab2_250
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col4 < 83.51 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col4 < 83.51)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_250 UNION SELECT pk, col0 FROM view_2_tab2_250
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-2100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col4 < 83.51 ) AS tab2_250
----
18
24

query I rowsort label-2100-3
SELECT * FROM view_3_tab2_250
----
18
24

query I rowsort label-2100-3
SELECT pk FROM tab2 WHERE col4 < 83.51
----
18
24

statement ok
DROP VIEW view_1_tab2_250

statement ok
DROP VIEW view_2_tab2_250

statement ok
DROP VIEW view_3_tab2_250

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab3_250 AS SELECT pk, col0 FROM tab3 WHERE col4 < 83.51

statement ok
CREATE VIEW view_2_tab3_250 AS SELECT pk, col0 FROM tab3 WHERE NOT (col4 < 83.51)

statement ok
CREATE VIEW view_3_tab3_250 AS SELECT pk FROM view_1_tab3_250

query II rowsort label-2100-1
SELECT pk, col0 FROM tab3 WHERE col4 < 83.51
----
18
355
24
452

query II rowsort label-2100-2
SELECT pk, col0 FROM tab3 WHERE NOT (col4 < 83.51)
----
196 values hashing to 0d32b502b5c52915db86aab09719fd4e

query II rowsort label-2100-1
SELECT pk, col0 FROM view_1_tab3_250
----
18
355
24
452

query II rowsort label-2100-2
SELECT pk, col0 FROM view_2_tab3_250
----
196 values hashing to 0d32b502b5c52915db86aab09719fd4e

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col4 < 83.51 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col4 < 83.51)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_250 UNION ALL SELECT pk, col0 FROM view_2_tab3_250
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col4 < 83.51 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col4 < 83.51)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_250 UNION SELECT pk, col0 FROM view_2_tab3_250
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-2100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col4 < 83.51 ) AS tab3_250
----
18
24

query I rowsort label-2100-3
SELECT * FROM view_3_tab3_250
----
18
24

query I rowsort label-2100-3
SELECT pk FROM tab3 WHERE col4 < 83.51
----
18
24

statement ok
DROP VIEW view_1_tab3_250

statement ok
DROP VIEW view_2_tab3_250

statement ok
DROP VIEW view_3_tab3_250

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab4_250 AS SELECT pk, col0 FROM tab4 WHERE col4 < 83.51

statement ok
CREATE VIEW view_2_tab4_250 AS SELECT pk, col0 FROM tab4 WHERE NOT (col4 < 83.51)

statement ok
CREATE VIEW view_3_tab4_250 AS SELECT pk FROM view_1_tab4_250

query II rowsort label-2100-1
SELECT pk, col0 FROM tab4 WHERE col4 < 83.51
----
18
355
24
452

query II rowsort label-2100-2
SELECT pk, col0 FROM tab4 WHERE NOT (col4 < 83.51)
----
196 values hashing to 0d32b502b5c52915db86aab09719fd4e

query II rowsort label-2100-1
SELECT pk, col0 FROM view_1_tab4_250
----
18
355
24
452

query II rowsort label-2100-2
SELECT pk, col0 FROM view_2_tab4_250
----
196 values hashing to 0d32b502b5c52915db86aab09719fd4e

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col4 < 83.51 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col4 < 83.51)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_250 UNION ALL SELECT pk, col0 FROM view_2_tab4_250
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col4 < 83.51 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col4 < 83.51)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_250 UNION SELECT pk, col0 FROM view_2_tab4_250
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-2100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col4 < 83.51 ) AS tab4_250
----
18
24

query I rowsort label-2100-3
SELECT * FROM view_3_tab4_250
----
18
24

query I rowsort label-2100-3
SELECT pk FROM tab4 WHERE col4 < 83.51
----
18
24

statement ok
DROP VIEW view_1_tab4_250

statement ok
DROP VIEW view_2_tab4_250

statement ok
DROP VIEW view_3_tab4_250

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab0_251 AS SELECT pk, col0 FROM tab0 WHERE col3 IN (199)

statement ok
CREATE VIEW view_2_tab0_251 AS SELECT pk, col0 FROM tab0 WHERE NOT (col3 IN (199))

statement ok
CREATE VIEW view_3_tab0_251 AS SELECT pk FROM view_1_tab0_251

query II rowsort label-2200-1
SELECT pk, col0 FROM tab0 WHERE col3 IN (199)
----

query II rowsort label-2200-2
SELECT pk, col0 FROM tab0 WHERE NOT (col3 IN (199))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-2200-1
SELECT pk, col0 FROM view_1_tab0_251
----

query II rowsort label-2200-2
SELECT pk, col0 FROM view_2_tab0_251
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 IN (199) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col3 IN (199))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_251 UNION ALL SELECT pk, col0 FROM view_2_tab0_251
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 IN (199) UNION SELECT pk, col0 FROM tab0 WHERE NOT (col3 IN (199))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_251 UNION SELECT pk, col0 FROM view_2_tab0_251
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-2200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col3 IN (199) ) AS tab0_251
----

query I rowsort label-2200-3
SELECT * FROM view_3_tab0_251
----

query I rowsort label-2200-3
SELECT pk FROM tab0 WHERE col3 IN (199)
----

statement ok
DROP VIEW view_1_tab0_251

statement ok
DROP VIEW view_2_tab0_251

statement ok
DROP VIEW view_3_tab0_251

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab1_251 AS SELECT pk, col0 FROM tab1 WHERE col3 IN (199)

statement ok
CREATE VIEW view_2_tab1_251 AS SELECT pk, col0 FROM tab1 WHERE NOT (col3 IN (199))

statement ok
CREATE VIEW view_3_tab1_251 AS SELECT pk FROM view_1_tab1_251

query II rowsort label-2200-1
SELECT pk, col0 FROM tab1 WHERE col3 IN (199)
----

query II rowsort label-2200-2
SELECT pk, col0 FROM tab1 WHERE NOT (col3 IN (199))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-2200-1
SELECT pk, col0 FROM view_1_tab1_251
----

query II rowsort label-2200-2
SELECT pk, col0 FROM view_2_tab1_251
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 IN (199) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col3 IN (199))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_251 UNION ALL SELECT pk, col0 FROM view_2_tab1_251
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 IN (199) UNION SELECT pk, col0 FROM tab1 WHERE NOT (col3 IN (199))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_251 UNION SELECT pk, col0 FROM view_2_tab1_251
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-2200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col3 IN (199) ) AS tab1_251
----

query I rowsort label-2200-3
SELECT * FROM view_3_tab1_251
----

query I rowsort label-2200-3
SELECT pk FROM tab1 WHERE col3 IN (199)
----

statement ok
DROP VIEW view_1_tab1_251

statement ok
DROP VIEW view_2_tab1_251

statement ok
DROP VIEW view_3_tab1_251

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab2_251 AS SELECT pk, col0 FROM tab2 WHERE col3 IN (199)

statement ok
CREATE VIEW view_2_tab2_251 AS SELECT pk, col0 FROM tab2 WHERE NOT (col3 IN (199))

statement ok
CREATE VIEW view_3_tab2_251 AS SELECT pk FROM view_1_tab2_251

query II rowsort label-2200-1
SELECT pk, col0 FROM tab2 WHERE col3 IN (199)
----

query II rowsort label-2200-2
SELECT pk, col0 FROM tab2 WHERE NOT (col3 IN (199))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-2200-1
SELECT pk, col0 FROM view_1_tab2_251
----

query II rowsort label-2200-2
SELECT pk, col0 FROM view_2_tab2_251
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 IN (199) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col3 IN (199))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_251 UNION ALL SELECT pk, col0 FROM view_2_tab2_251
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 IN (199) UNION SELECT pk, col0 FROM tab2 WHERE NOT (col3 IN (199))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_251 UNION SELECT pk, col0 FROM view_2_tab2_251
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-2200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col3 IN (199) ) AS tab2_251
----

query I rowsort label-2200-3
SELECT * FROM view_3_tab2_251
----

query I rowsort label-2200-3
SELECT pk FROM tab2 WHERE col3 IN (199)
----

statement ok
DROP VIEW view_1_tab2_251

statement ok
DROP VIEW view_2_tab2_251

statement ok
DROP VIEW view_3_tab2_251

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab3_251 AS SELECT pk, col0 FROM tab3 WHERE col3 IN (199)

statement ok
CREATE VIEW view_2_tab3_251 AS SELECT pk, col0 FROM tab3 WHERE NOT (col3 IN (199))

statement ok
CREATE VIEW view_3_tab3_251 AS SELECT pk FROM view_1_tab3_251

query II rowsort label-2200-1
SELECT pk, col0 FROM tab3 WHERE col3 IN (199)
----

query II rowsort label-2200-2
SELECT pk, col0 FROM tab3 WHERE NOT (col3 IN (199))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-2200-1
SELECT pk, col0 FROM view_1_tab3_251
----

query II rowsort label-2200-2
SELECT pk, col0 FROM view_2_tab3_251
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 IN (199) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col3 IN (199))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_251 UNION ALL SELECT pk, col0 FROM view_2_tab3_251
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 IN (199) UNION SELECT pk, col0 FROM tab3 WHERE NOT (col3 IN (199))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_251 UNION SELECT pk, col0 FROM view_2_tab3_251
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-2200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col3 IN (199) ) AS tab3_251
----

query I rowsort label-2200-3
SELECT * FROM view_3_tab3_251
----

query I rowsort label-2200-3
SELECT pk FROM tab3 WHERE col3 IN (199)
----

statement ok
DROP VIEW view_1_tab3_251

statement ok
DROP VIEW view_2_tab3_251

statement ok
DROP VIEW view_3_tab3_251

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab4_251 AS SELECT pk, col0 FROM tab4 WHERE col3 IN (199)

statement ok
CREATE VIEW view_2_tab4_251 AS SELECT pk, col0 FROM tab4 WHERE NOT (col3 IN (199))

statement ok
CREATE VIEW view_3_tab4_251 AS SELECT pk FROM view_1_tab4_251

query II rowsort label-2200-1
SELECT pk, col0 FROM tab4 WHERE col3 IN (199)
----

query II rowsort label-2200-2
SELECT pk, col0 FROM tab4 WHERE NOT (col3 IN (199))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-2200-1
SELECT pk, col0 FROM view_1_tab4_251
----

query II rowsort label-2200-2
SELECT pk, col0 FROM view_2_tab4_251
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 IN (199) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col3 IN (199))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_251 UNION ALL SELECT pk, col0 FROM view_2_tab4_251
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 IN (199) UNION SELECT pk, col0 FROM tab4 WHERE NOT (col3 IN (199))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_251 UNION SELECT pk, col0 FROM view_2_tab4_251
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-2200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col3 IN (199) ) AS tab4_251
----

query I rowsort label-2200-3
SELECT * FROM view_3_tab4_251
----

query I rowsort label-2200-3
SELECT pk FROM tab4 WHERE col3 IN (199)
----

statement ok
DROP VIEW view_1_tab4_251

statement ok
DROP VIEW view_2_tab4_251

statement ok
DROP VIEW view_3_tab4_251

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab0_252 AS SELECT pk, col0 FROM tab0 WHERE ((((((col3 < 599)) OR col1 < 415.26))))

statement ok
CREATE VIEW view_2_tab0_252 AS SELECT pk, col0 FROM tab0 WHERE NOT (((((((col3 < 599)) OR col1 < 415.26)))))

statement ok
CREATE VIEW view_3_tab0_252 AS SELECT pk FROM view_1_tab0_252

query II rowsort label-2300-1
SELECT pk, col0 FROM tab0 WHERE ((((((col3 < 599)) OR col1 < 415.26))))
----
148 values hashing to e1b99ed4a7415a8aab479dee6c42a1e6

query II rowsort label-2300-2
SELECT pk, col0 FROM tab0 WHERE NOT (((((((col3 < 599)) OR col1 < 415.26)))))
----
52 values hashing to 1019ce786a644a766d827e15c9e2e11c

query II rowsort label-2300-1
SELECT pk, col0 FROM view_1_tab0_252
----
148 values hashing to e1b99ed4a7415a8aab479dee6c42a1e6

query II rowsort label-2300-2
SELECT pk, col0 FROM view_2_tab0_252
----
52 values hashing to 1019ce786a644a766d827e15c9e2e11c

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE ((((((col3 < 599)) OR col1 < 415.26)))) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (((((((col3 < 599)) OR col1 < 415.26)))))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_252 UNION ALL SELECT pk, col0 FROM view_2_tab0_252
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE ((((((col3 < 599)) OR col1 < 415.26)))) UNION SELECT pk, col0 FROM tab0 WHERE NOT (((((((col3 < 599)) OR col1 < 415.26)))))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_252 UNION SELECT pk, col0 FROM view_2_tab0_252
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-2300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE ((((((col3 < 599)) OR col1 < 415.26)))) ) AS tab0_252
----
74 values hashing to c297f9980e0a5781c277e2908ee10de2

query I rowsort label-2300-3
SELECT * FROM view_3_tab0_252
----
74 values hashing to c297f9980e0a5781c277e2908ee10de2

query I rowsort label-2300-3
SELECT pk FROM tab0 WHERE ((((((col3 < 599)) OR col1 < 415.26))))
----
74 values hashing to c297f9980e0a5781c277e2908ee10de2

statement ok
DROP VIEW view_1_tab0_252

statement ok
DROP VIEW view_2_tab0_252

statement ok
DROP VIEW view_3_tab0_252

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab1_252 AS SELECT pk, col0 FROM tab1 WHERE ((((((col3 < 599)) OR col1 < 415.26))))

statement ok
CREATE VIEW view_2_tab1_252 AS SELECT pk, col0 FROM tab1 WHERE NOT (((((((col3 < 599)) OR col1 < 415.26)))))

statement ok
CREATE VIEW view_3_tab1_252 AS SELECT pk FROM view_1_tab1_252

query II rowsort label-2300-1
SELECT pk, col0 FROM tab1 WHERE ((((((col3 < 599)) OR col1 < 415.26))))
----
148 values hashing to e1b99ed4a7415a8aab479dee6c42a1e6

query II rowsort label-2300-2
SELECT pk, col0 FROM tab1 WHERE NOT (((((((col3 < 599)) OR col1 < 415.26)))))
----
52 values hashing to 1019ce786a644a766d827e15c9e2e11c

query II rowsort label-2300-1
SELECT pk, col0 FROM view_1_tab1_252
----
148 values hashing to e1b99ed4a7415a8aab479dee6c42a1e6

query II rowsort label-2300-2
SELECT pk, col0 FROM view_2_tab1_252
----
52 values hashing to 1019ce786a644a766d827e15c9e2e11c

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE ((((((col3 < 599)) OR col1 < 415.26)))) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (((((((col3 < 599)) OR col1 < 415.26)))))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_252 UNION ALL SELECT pk, col0 FROM view_2_tab1_252
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE ((((((col3 < 599)) OR col1 < 415.26)))) UNION SELECT pk, col0 FROM tab1 WHERE NOT (((((((col3 < 599)) OR col1 < 415.26)))))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_252 UNION SELECT pk, col0 FROM view_2_tab1_252
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-2300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE ((((((col3 < 599)) OR col1 < 415.26)))) ) AS tab1_252
----
74 values hashing to c297f9980e0a5781c277e2908ee10de2

query I rowsort label-2300-3
SELECT * FROM view_3_tab1_252
----
74 values hashing to c297f9980e0a5781c277e2908ee10de2

query I rowsort label-2300-3
SELECT pk FROM tab1 WHERE ((((((col3 < 599)) OR col1 < 415.26))))
----
74 values hashing to c297f9980e0a5781c277e2908ee10de2

statement ok
DROP VIEW view_1_tab1_252

statement ok
DROP VIEW view_2_tab1_252

statement ok
DROP VIEW view_3_tab1_252

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab2_252 AS SELECT pk, col0 FROM tab2 WHERE ((((((col3 < 599)) OR col1 < 415.26))))

statement ok
CREATE VIEW view_2_tab2_252 AS SELECT pk, col0 FROM tab2 WHERE NOT (((((((col3 < 599)) OR col1 < 415.26)))))

statement ok
CREATE VIEW view_3_tab2_252 AS SELECT pk FROM view_1_tab2_252

query II rowsort label-2300-1
SELECT pk, col0 FROM tab2 WHERE ((((((col3 < 599)) OR col1 < 415.26))))
----
148 values hashing to e1b99ed4a7415a8aab479dee6c42a1e6

query II rowsort label-2300-2
SELECT pk, col0 FROM tab2 WHERE NOT (((((((col3 < 599)) OR col1 < 415.26)))))
----
52 values hashing to 1019ce786a644a766d827e15c9e2e11c

query II rowsort label-2300-1
SELECT pk, col0 FROM view_1_tab2_252
----
148 values hashing to e1b99ed4a7415a8aab479dee6c42a1e6

query II rowsort label-2300-2
SELECT pk, col0 FROM view_2_tab2_252
----
52 values hashing to 1019ce786a644a766d827e15c9e2e11c

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE ((((((col3 < 599)) OR col1 < 415.26)))) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (((((((col3 < 599)) OR col1 < 415.26)))))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_252 UNION ALL SELECT pk, col0 FROM view_2_tab2_252
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE ((((((col3 < 599)) OR col1 < 415.26)))) UNION SELECT pk, col0 FROM tab2 WHERE NOT (((((((col3 < 599)) OR col1 < 415.26)))))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_252 UNION SELECT pk, col0 FROM view_2_tab2_252
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-2300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE ((((((col3 < 599)) OR col1 < 415.26)))) ) AS tab2_252
----
74 values hashing to c297f9980e0a5781c277e2908ee10de2

query I rowsort label-2300-3
SELECT * FROM view_3_tab2_252
----
74 values hashing to c297f9980e0a5781c277e2908ee10de2

query I rowsort label-2300-3
SELECT pk FROM tab2 WHERE ((((((col3 < 599)) OR col1 < 415.26))))
----
74 values hashing to c297f9980e0a5781c277e2908ee10de2

statement ok
DROP VIEW view_1_tab2_252

statement ok
DROP VIEW view_2_tab2_252

statement ok
DROP VIEW view_3_tab2_252

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab3_252 AS SELECT pk, col0 FROM tab3 WHERE ((((((col3 < 599)) OR col1 < 415.26))))

statement ok
CREATE VIEW view_2_tab3_252 AS SELECT pk, col0 FROM tab3 WHERE NOT (((((((col3 < 599)) OR col1 < 415.26)))))

statement ok
CREATE VIEW view_3_tab3_252 AS SELECT pk FROM view_1_tab3_252

query II rowsort label-2300-1
SELECT pk, col0 FROM tab3 WHERE ((((((col3 < 599)) OR col1 < 415.26))))
----
148 values hashing to e1b99ed4a7415a8aab479dee6c42a1e6

query II rowsort label-2300-2
SELECT pk, col0 FROM tab3 WHERE NOT (((((((col3 < 599)) OR col1 < 415.26)))))
----
52 values hashing to 1019ce786a644a766d827e15c9e2e11c

query II rowsort label-2300-1
SELECT pk, col0 FROM view_1_tab3_252
----
148 values hashing to e1b99ed4a7415a8aab479dee6c42a1e6

query II rowsort label-2300-2
SELECT pk, col0 FROM view_2_tab3_252
----
52 values hashing to 1019ce786a644a766d827e15c9e2e11c

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE ((((((col3 < 599)) OR col1 < 415.26)))) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (((((((col3 < 599)) OR col1 < 415.26)))))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_252 UNION ALL SELECT pk, col0 FROM view_2_tab3_252
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE ((((((col3 < 599)) OR col1 < 415.26)))) UNION SELECT pk, col0 FROM tab3 WHERE NOT (((((((col3 < 599)) OR col1 < 415.26)))))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_252 UNION SELECT pk, col0 FROM view_2_tab3_252
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-2300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE ((((((col3 < 599)) OR col1 < 415.26)))) ) AS tab3_252
----
74 values hashing to c297f9980e0a5781c277e2908ee10de2

query I rowsort label-2300-3
SELECT * FROM view_3_tab3_252
----
74 values hashing to c297f9980e0a5781c277e2908ee10de2

query I rowsort label-2300-3
SELECT pk FROM tab3 WHERE ((((((col3 < 599)) OR col1 < 415.26))))
----
74 values hashing to c297f9980e0a5781c277e2908ee10de2

statement ok
DROP VIEW view_1_tab3_252

statement ok
DROP VIEW view_2_tab3_252

statement ok
DROP VIEW view_3_tab3_252

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab4_252 AS SELECT pk, col0 FROM tab4 WHERE ((((((col3 < 599)) OR col1 < 415.26))))

statement ok
CREATE VIEW view_2_tab4_252 AS SELECT pk, col0 FROM tab4 WHERE NOT (((((((col3 < 599)) OR col1 < 415.26)))))

statement ok
CREATE VIEW view_3_tab4_252 AS SELECT pk FROM view_1_tab4_252

query II rowsort label-2300-1
SELECT pk, col0 FROM tab4 WHERE ((((((col3 < 599)) OR col1 < 415.26))))
----
148 values hashing to e1b99ed4a7415a8aab479dee6c42a1e6

query II rowsort label-2300-2
SELECT pk, col0 FROM tab4 WHERE NOT (((((((col3 < 599)) OR col1 < 415.26)))))
----
52 values hashing to 1019ce786a644a766d827e15c9e2e11c

query II rowsort label-2300-1
SELECT pk, col0 FROM view_1_tab4_252
----
148 values hashing to e1b99ed4a7415a8aab479dee6c42a1e6

query II rowsort label-2300-2
SELECT pk, col0 FROM view_2_tab4_252
----
52 values hashing to 1019ce786a644a766d827e15c9e2e11c

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE ((((((col3 < 599)) OR col1 < 415.26)))) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (((((((col3 < 599)) OR col1 < 415.26)))))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_252 UNION ALL SELECT pk, col0 FROM view_2_tab4_252
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE ((((((col3 < 599)) OR col1 < 415.26)))) UNION SELECT pk, col0 FROM tab4 WHERE NOT (((((((col3 < 599)) OR col1 < 415.26)))))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_252 UNION SELECT pk, col0 FROM view_2_tab4_252
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-2300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE ((((((col3 < 599)) OR col1 < 415.26)))) ) AS tab4_252
----
74 values hashing to c297f9980e0a5781c277e2908ee10de2

query I rowsort label-2300-3
SELECT * FROM view_3_tab4_252
----
74 values hashing to c297f9980e0a5781c277e2908ee10de2

query I rowsort label-2300-3
SELECT pk FROM tab4 WHERE ((((((col3 < 599)) OR col1 < 415.26))))
----
74 values hashing to c297f9980e0a5781c277e2908ee10de2

statement ok
DROP VIEW view_1_tab4_252

statement ok
DROP VIEW view_2_tab4_252

statement ok
DROP VIEW view_3_tab4_252

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab0_253 AS SELECT pk, col0 FROM tab0 WHERE col3 > 371

statement ok
CREATE VIEW view_2_tab0_253 AS SELECT pk, col0 FROM tab0 WHERE NOT (col3 > 371)

statement ok
CREATE VIEW view_3_tab0_253 AS SELECT pk FROM view_1_tab0_253

query II rowsort label-2400-1
SELECT pk, col0 FROM tab0 WHERE col3 > 371
----
118 values hashing to 5ea1c905b9938622481ede19c4ab2816

query II rowsort label-2400-2
SELECT pk, col0 FROM tab0 WHERE NOT (col3 > 371)
----
82 values hashing to 16134394858b8a0bc1569c9ee274eb72

query II rowsort label-2400-1
SELECT pk, col0 FROM view_1_tab0_253
----
118 values hashing to 5ea1c905b9938622481ede19c4ab2816

query II rowsort label-2400-2
SELECT pk, col0 FROM view_2_tab0_253
----
82 values hashing to 16134394858b8a0bc1569c9ee274eb72

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 > 371 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col3 > 371)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_253 UNION ALL SELECT pk, col0 FROM view_2_tab0_253
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 > 371 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col3 > 371)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_253 UNION SELECT pk, col0 FROM view_2_tab0_253
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-2400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col3 > 371 ) AS tab0_253
----
59 values hashing to d65972592b1595702d7980f9e135cb3e

query I rowsort label-2400-3
SELECT * FROM view_3_tab0_253
----
59 values hashing to d65972592b1595702d7980f9e135cb3e

query I rowsort label-2400-3
SELECT pk FROM tab0 WHERE col3 > 371
----
59 values hashing to d65972592b1595702d7980f9e135cb3e

statement ok
DROP VIEW view_1_tab0_253

statement ok
DROP VIEW view_2_tab0_253

statement ok
DROP VIEW view_3_tab0_253

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab1_253 AS SELECT pk, col0 FROM tab1 WHERE col3 > 371

statement ok
CREATE VIEW view_2_tab1_253 AS SELECT pk, col0 FROM tab1 WHERE NOT (col3 > 371)

statement ok
CREATE VIEW view_3_tab1_253 AS SELECT pk FROM view_1_tab1_253

query II rowsort label-2400-1
SELECT pk, col0 FROM tab1 WHERE col3 > 371
----
118 values hashing to 5ea1c905b9938622481ede19c4ab2816

query II rowsort label-2400-2
SELECT pk, col0 FROM tab1 WHERE NOT (col3 > 371)
----
82 values hashing to 16134394858b8a0bc1569c9ee274eb72

query II rowsort label-2400-1
SELECT pk, col0 FROM view_1_tab1_253
----
118 values hashing to 5ea1c905b9938622481ede19c4ab2816

query II rowsort label-2400-2
SELECT pk, col0 FROM view_2_tab1_253
----
82 values hashing to 16134394858b8a0bc1569c9ee274eb72

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 > 371 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col3 > 371)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_253 UNION ALL SELECT pk, col0 FROM view_2_tab1_253
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 > 371 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col3 > 371)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_253 UNION SELECT pk, col0 FROM view_2_tab1_253
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-2400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col3 > 371 ) AS tab1_253
----
59 values hashing to d65972592b1595702d7980f9e135cb3e

query I rowsort label-2400-3
SELECT * FROM view_3_tab1_253
----
59 values hashing to d65972592b1595702d7980f9e135cb3e

query I rowsort label-2400-3
SELECT pk FROM tab1 WHERE col3 > 371
----
59 values hashing to d65972592b1595702d7980f9e135cb3e

statement ok
DROP VIEW view_1_tab1_253

statement ok
DROP VIEW view_2_tab1_253

statement ok
DROP VIEW view_3_tab1_253

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab2_253 AS SELECT pk, col0 FROM tab2 WHERE col3 > 371

statement ok
CREATE VIEW view_2_tab2_253 AS SELECT pk, col0 FROM tab2 WHERE NOT (col3 > 371)

statement ok
CREATE VIEW view_3_tab2_253 AS SELECT pk FROM view_1_tab2_253

query II rowsort label-2400-1
SELECT pk, col0 FROM tab2 WHERE col3 > 371
----
118 values hashing to 5ea1c905b9938622481ede19c4ab2816

query II rowsort label-2400-2
SELECT pk, col0 FROM tab2 WHERE NOT (col3 > 371)
----
82 values hashing to 16134394858b8a0bc1569c9ee274eb72

query II rowsort label-2400-1
SELECT pk, col0 FROM view_1_tab2_253
----
118 values hashing to 5ea1c905b9938622481ede19c4ab2816

query II rowsort label-2400-2
SELECT pk, col0 FROM view_2_tab2_253
----
82 values hashing to 16134394858b8a0bc1569c9ee274eb72

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 > 371 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col3 > 371)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_253 UNION ALL SELECT pk, col0 FROM view_2_tab2_253
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 > 371 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col3 > 371)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_253 UNION SELECT pk, col0 FROM view_2_tab2_253
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-2400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col3 > 371 ) AS tab2_253
----
59 values hashing to d65972592b1595702d7980f9e135cb3e

query I rowsort label-2400-3
SELECT * FROM view_3_tab2_253
----
59 values hashing to d65972592b1595702d7980f9e135cb3e

query I rowsort label-2400-3
SELECT pk FROM tab2 WHERE col3 > 371
----
59 values hashing to d65972592b1595702d7980f9e135cb3e

statement ok
DROP VIEW view_1_tab2_253

statement ok
DROP VIEW view_2_tab2_253

statement ok
DROP VIEW view_3_tab2_253

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab3_253 AS SELECT pk, col0 FROM tab3 WHERE col3 > 371

statement ok
CREATE VIEW view_2_tab3_253 AS SELECT pk, col0 FROM tab3 WHERE NOT (col3 > 371)

statement ok
CREATE VIEW view_3_tab3_253 AS SELECT pk FROM view_1_tab3_253

query II rowsort label-2400-1
SELECT pk, col0 FROM tab3 WHERE col3 > 371
----
118 values hashing to 5ea1c905b9938622481ede19c4ab2816

query II rowsort label-2400-2
SELECT pk, col0 FROM tab3 WHERE NOT (col3 > 371)
----
82 values hashing to 16134394858b8a0bc1569c9ee274eb72

query II rowsort label-2400-1
SELECT pk, col0 FROM view_1_tab3_253
----
118 values hashing to 5ea1c905b9938622481ede19c4ab2816

query II rowsort label-2400-2
SELECT pk, col0 FROM view_2_tab3_253
----
82 values hashing to 16134394858b8a0bc1569c9ee274eb72

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 > 371 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col3 > 371)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_253 UNION ALL SELECT pk, col0 FROM view_2_tab3_253
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 > 371 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col3 > 371)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_253 UNION SELECT pk, col0 FROM view_2_tab3_253
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-2400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col3 > 371 ) AS tab3_253
----
59 values hashing to d65972592b1595702d7980f9e135cb3e

query I rowsort label-2400-3
SELECT * FROM view_3_tab3_253
----
59 values hashing to d65972592b1595702d7980f9e135cb3e

query I rowsort label-2400-3
SELECT pk FROM tab3 WHERE col3 > 371
----
59 values hashing to d65972592b1595702d7980f9e135cb3e

statement ok
DROP VIEW view_1_tab3_253

statement ok
DROP VIEW view_2_tab3_253

statement ok
DROP VIEW view_3_tab3_253

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab4_253 AS SELECT pk, col0 FROM tab4 WHERE col3 > 371

statement ok
CREATE VIEW view_2_tab4_253 AS SELECT pk, col0 FROM tab4 WHERE NOT (col3 > 371)

statement ok
CREATE VIEW view_3_tab4_253 AS SELECT pk FROM view_1_tab4_253

query II rowsort label-2400-1
SELECT pk, col0 FROM tab4 WHERE col3 > 371
----
118 values hashing to 5ea1c905b9938622481ede19c4ab2816

query II rowsort label-2400-2
SELECT pk, col0 FROM tab4 WHERE NOT (col3 > 371)
----
82 values hashing to 16134394858b8a0bc1569c9ee274eb72

query II rowsort label-2400-1
SELECT pk, col0 FROM view_1_tab4_253
----
118 values hashing to 5ea1c905b9938622481ede19c4ab2816

query II rowsort label-2400-2
SELECT pk, col0 FROM view_2_tab4_253
----
82 values hashing to 16134394858b8a0bc1569c9ee274eb72

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 > 371 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col3 > 371)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_253 UNION ALL SELECT pk, col0 FROM view_2_tab4_253
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 > 371 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col3 > 371)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_253 UNION SELECT pk, col0 FROM view_2_tab4_253
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-2400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col3 > 371 ) AS tab4_253
----
59 values hashing to d65972592b1595702d7980f9e135cb3e

query I rowsort label-2400-3
SELECT * FROM view_3_tab4_253
----
59 values hashing to d65972592b1595702d7980f9e135cb3e

query I rowsort label-2400-3
SELECT pk FROM tab4 WHERE col3 > 371
----
59 values hashing to d65972592b1595702d7980f9e135cb3e

statement ok
DROP VIEW view_1_tab4_253

statement ok
DROP VIEW view_2_tab4_253

statement ok
DROP VIEW view_3_tab4_253

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab0_254 AS SELECT pk, col0 FROM tab0 WHERE ((col3 <= 633 OR col4 = 257.91))

statement ok
CREATE VIEW view_2_tab0_254 AS SELECT pk, col0 FROM tab0 WHERE NOT (((col3 <= 633 OR col4 = 257.91)))

statement ok
CREATE VIEW view_3_tab0_254 AS SELECT pk FROM view_1_tab0_254

query II rowsort label-2500-1
SELECT pk, col0 FROM tab0 WHERE ((col3 <= 633 OR col4 = 257.91))
----
136 values hashing to a52fed1cd0143a497bbf8dff746487d8

query II rowsort label-2500-2
SELECT pk, col0 FROM tab0 WHERE NOT (((col3 <= 633 OR col4 = 257.91)))
----
64 values hashing to 521f0a9706cfc18ec85dbb12c324b1fb

query II rowsort label-2500-1
SELECT pk, col0 FROM view_1_tab0_254
----
136 values hashing to a52fed1cd0143a497bbf8dff746487d8

query II rowsort label-2500-2
SELECT pk, col0 FROM view_2_tab0_254
----
64 values hashing to 521f0a9706cfc18ec85dbb12c324b1fb

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE ((col3 <= 633 OR col4 = 257.91)) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (((col3 <= 633 OR col4 = 257.91)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_254 UNION ALL SELECT pk, col0 FROM view_2_tab0_254
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE ((col3 <= 633 OR col4 = 257.91)) UNION SELECT pk, col0 FROM tab0 WHERE NOT (((col3 <= 633 OR col4 = 257.91)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_254 UNION SELECT pk, col0 FROM view_2_tab0_254
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-2500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE ((col3 <= 633 OR col4 = 257.91)) ) AS tab0_254
----
68 values hashing to 812c0af0b0d8a6c1ada3366b5b985a9f

query I rowsort label-2500-3
SELECT * FROM view_3_tab0_254
----
68 values hashing to 812c0af0b0d8a6c1ada3366b5b985a9f

query I rowsort label-2500-3
SELECT pk FROM tab0 WHERE ((col3 <= 633 OR col4 = 257.91))
----
68 values hashing to 812c0af0b0d8a6c1ada3366b5b985a9f

statement ok
DROP VIEW view_1_tab0_254

statement ok
DROP VIEW view_2_tab0_254

statement ok
DROP VIEW view_3_tab0_254

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab1_254 AS SELECT pk, col0 FROM tab1 WHERE ((col3 <= 633 OR col4 = 257.91))

statement ok
CREATE VIEW view_2_tab1_254 AS SELECT pk, col0 FROM tab1 WHERE NOT (((col3 <= 633 OR col4 = 257.91)))

statement ok
CREATE VIEW view_3_tab1_254 AS SELECT pk FROM view_1_tab1_254

query II rowsort label-2500-1
SELECT pk, col0 FROM tab1 WHERE ((col3 <= 633 OR col4 = 257.91))
----
136 values hashing to a52fed1cd0143a497bbf8dff746487d8

query II rowsort label-2500-2
SELECT pk, col0 FROM tab1 WHERE NOT (((col3 <= 633 OR col4 = 257.91)))
----
64 values hashing to 521f0a9706cfc18ec85dbb12c324b1fb

query II rowsort label-2500-1
SELECT pk, col0 FROM view_1_tab1_254
----
136 values hashing to a52fed1cd0143a497bbf8dff746487d8

query II rowsort label-2500-2
SELECT pk, col0 FROM view_2_tab1_254
----
64 values hashing to 521f0a9706cfc18ec85dbb12c324b1fb

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE ((col3 <= 633 OR col4 = 257.91)) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (((col3 <= 633 OR col4 = 257.91)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_254 UNION ALL SELECT pk, col0 FROM view_2_tab1_254
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE ((col3 <= 633 OR col4 = 257.91)) UNION SELECT pk, col0 FROM tab1 WHERE NOT (((col3 <= 633 OR col4 = 257.91)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_254 UNION SELECT pk, col0 FROM view_2_tab1_254
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-2500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE ((col3 <= 633 OR col4 = 257.91)) ) AS tab1_254
----
68 values hashing to 812c0af0b0d8a6c1ada3366b5b985a9f

query I rowsort label-2500-3
SELECT * FROM view_3_tab1_254
----
68 values hashing to 812c0af0b0d8a6c1ada3366b5b985a9f

query I rowsort label-2500-3
SELECT pk FROM tab1 WHERE ((col3 <= 633 OR col4 = 257.91))
----
68 values hashing to 812c0af0b0d8a6c1ada3366b5b985a9f

statement ok
DROP VIEW view_1_tab1_254

statement ok
DROP VIEW view_2_tab1_254

statement ok
DROP VIEW view_3_tab1_254

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab2_254 AS SELECT pk, col0 FROM tab2 WHERE ((col3 <= 633 OR col4 = 257.91))

statement ok
CREATE VIEW view_2_tab2_254 AS SELECT pk, col0 FROM tab2 WHERE NOT (((col3 <= 633 OR col4 = 257.91)))

statement ok
CREATE VIEW view_3_tab2_254 AS SELECT pk FROM view_1_tab2_254

query II rowsort label-2500-1
SELECT pk, col0 FROM tab2 WHERE ((col3 <= 633 OR col4 = 257.91))
----
136 values hashing to a52fed1cd0143a497bbf8dff746487d8

query II rowsort label-2500-2
SELECT pk, col0 FROM tab2 WHERE NOT (((col3 <= 633 OR col4 = 257.91)))
----
64 values hashing to 521f0a9706cfc18ec85dbb12c324b1fb

query II rowsort label-2500-1
SELECT pk, col0 FROM view_1_tab2_254
----
136 values hashing to a52fed1cd0143a497bbf8dff746487d8

query II rowsort label-2500-2
SELECT pk, col0 FROM view_2_tab2_254
----
64 values hashing to 521f0a9706cfc18ec85dbb12c324b1fb

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE ((col3 <= 633 OR col4 = 257.91)) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (((col3 <= 633 OR col4 = 257.91)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_254 UNION ALL SELECT pk, col0 FROM view_2_tab2_254
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE ((col3 <= 633 OR col4 = 257.91)) UNION SELECT pk, col0 FROM tab2 WHERE NOT (((col3 <= 633 OR col4 = 257.91)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_254 UNION SELECT pk, col0 FROM view_2_tab2_254
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-2500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE ((col3 <= 633 OR col4 = 257.91)) ) AS tab2_254
----
68 values hashing to 812c0af0b0d8a6c1ada3366b5b985a9f

query I rowsort label-2500-3
SELECT * FROM view_3_tab2_254
----
68 values hashing to 812c0af0b0d8a6c1ada3366b5b985a9f

query I rowsort label-2500-3
SELECT pk FROM tab2 WHERE ((col3 <= 633 OR col4 = 257.91))
----
68 values hashing to 812c0af0b0d8a6c1ada3366b5b985a9f

statement ok
DROP VIEW view_1_tab2_254

statement ok
DROP VIEW view_2_tab2_254

statement ok
DROP VIEW view_3_tab2_254

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab3_254 AS SELECT pk, col0 FROM tab3 WHERE ((col3 <= 633 OR col4 = 257.91))

statement ok
CREATE VIEW view_2_tab3_254 AS SELECT pk, col0 FROM tab3 WHERE NOT (((col3 <= 633 OR col4 = 257.91)))

statement ok
CREATE VIEW view_3_tab3_254 AS SELECT pk FROM view_1_tab3_254

query II rowsort label-2500-1
SELECT pk, col0 FROM tab3 WHERE ((col3 <= 633 OR col4 = 257.91))
----
136 values hashing to a52fed1cd0143a497bbf8dff746487d8

query II rowsort label-2500-2
SELECT pk, col0 FROM tab3 WHERE NOT (((col3 <= 633 OR col4 = 257.91)))
----
64 values hashing to 521f0a9706cfc18ec85dbb12c324b1fb

query II rowsort label-2500-1
SELECT pk, col0 FROM view_1_tab3_254
----
136 values hashing to a52fed1cd0143a497bbf8dff746487d8

query II rowsort label-2500-2
SELECT pk, col0 FROM view_2_tab3_254
----
64 values hashing to 521f0a9706cfc18ec85dbb12c324b1fb

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE ((col3 <= 633 OR col4 = 257.91)) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (((col3 <= 633 OR col4 = 257.91)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_254 UNION ALL SELECT pk, col0 FROM view_2_tab3_254
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE ((col3 <= 633 OR col4 = 257.91)) UNION SELECT pk, col0 FROM tab3 WHERE NOT (((col3 <= 633 OR col4 = 257.91)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_254 UNION SELECT pk, col0 FROM view_2_tab3_254
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-2500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE ((col3 <= 633 OR col4 = 257.91)) ) AS tab3_254
----
68 values hashing to 812c0af0b0d8a6c1ada3366b5b985a9f

query I rowsort label-2500-3
SELECT * FROM view_3_tab3_254
----
68 values hashing to 812c0af0b0d8a6c1ada3366b5b985a9f

query I rowsort label-2500-3
SELECT pk FROM tab3 WHERE ((col3 <= 633 OR col4 = 257.91))
----
68 values hashing to 812c0af0b0d8a6c1ada3366b5b985a9f

statement ok
DROP VIEW view_1_tab3_254

statement ok
DROP VIEW view_2_tab3_254

statement ok
DROP VIEW view_3_tab3_254

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab4_254 AS SELECT pk, col0 FROM tab4 WHERE ((col3 <= 633 OR col4 = 257.91))

statement ok
CREATE VIEW view_2_tab4_254 AS SELECT pk, col0 FROM tab4 WHERE NOT (((col3 <= 633 OR col4 = 257.91)))

statement ok
CREATE VIEW view_3_tab4_254 AS SELECT pk FROM view_1_tab4_254

query II rowsort label-2500-1
SELECT pk, col0 FROM tab4 WHERE ((col3 <= 633 OR col4 = 257.91))
----
136 values hashing to a52fed1cd0143a497bbf8dff746487d8

query II rowsort label-2500-2
SELECT pk, col0 FROM tab4 WHERE NOT (((col3 <= 633 OR col4 = 257.91)))
----
64 values hashing to 521f0a9706cfc18ec85dbb12c324b1fb

query II rowsort label-2500-1
SELECT pk, col0 FROM view_1_tab4_254
----
136 values hashing to a52fed1cd0143a497bbf8dff746487d8

query II rowsort label-2500-2
SELECT pk, col0 FROM view_2_tab4_254
----
64 values hashing to 521f0a9706cfc18ec85dbb12c324b1fb

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE ((col3 <= 633 OR col4 = 257.91)) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (((col3 <= 633 OR col4 = 257.91)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_254 UNION ALL SELECT pk, col0 FROM view_2_tab4_254
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE ((col3 <= 633 OR col4 = 257.91)) UNION SELECT pk, col0 FROM tab4 WHERE NOT (((col3 <= 633 OR col4 = 257.91)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_254 UNION SELECT pk, col0 FROM view_2_tab4_254
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-2500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE ((col3 <= 633 OR col4 = 257.91)) ) AS tab4_254
----
68 values hashing to 812c0af0b0d8a6c1ada3366b5b985a9f

query I rowsort label-2500-3
SELECT * FROM view_3_tab4_254
----
68 values hashing to 812c0af0b0d8a6c1ada3366b5b985a9f

query I rowsort label-2500-3
SELECT pk FROM tab4 WHERE ((col3 <= 633 OR col4 = 257.91))
----
68 values hashing to 812c0af0b0d8a6c1ada3366b5b985a9f

statement ok
DROP VIEW view_1_tab4_254

statement ok
DROP VIEW view_2_tab4_254

statement ok
DROP VIEW view_3_tab4_254

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

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

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_255') DROP VIEW view_2_tab0_255

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_255

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_255') DROP VIEW view_3_tab0_255

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_255

statement ok
CREATE VIEW view_1_tab0_255 AS SELECT pk, col0 FROM tab0 WHERE col3 = 72 AND (col0 IN (34,203) AND col1 < 655.0)

statement ok
CREATE VIEW view_2_tab0_255 AS SELECT pk, col0 FROM tab0 WHERE NOT (col3 = 72 AND (col0 IN (34,203) AND col1 < 655.0))

statement ok
CREATE VIEW view_3_tab0_255 AS SELECT pk FROM view_1_tab0_255

query II rowsort label-2600-1
SELECT pk, col0 FROM tab0 WHERE col3 = 72 AND (col0 IN (34,203) AND col1 < 655.0)
----

query II rowsort label-2600-2
SELECT pk, col0 FROM tab0 WHERE NOT (col3 = 72 AND (col0 IN (34,203) AND col1 < 655.0))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-2600-1
SELECT pk, col0 FROM view_1_tab0_255
----

query II rowsort label-2600-2
SELECT pk, col0 FROM view_2_tab0_255
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 = 72 AND (col0 IN (34,203) AND col1 < 655.0) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col3 = 72 AND (col0 IN (34,203) AND col1 < 655.0))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_255 UNION ALL SELECT pk, col0 FROM view_2_tab0_255
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 = 72 AND (col0 IN (34,203) AND col1 < 655.0) UNION SELECT pk, col0 FROM tab0 WHERE NOT (col3 = 72 AND (col0 IN (34,203) AND col1 < 655.0))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_255 UNION SELECT pk, col0 FROM view_2_tab0_255
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-2600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col3 = 72 AND (col0 IN (34,203) AND col1 < 655.0) ) AS tab0_255
----

query I rowsort label-2600-3
SELECT * FROM view_3_tab0_255
----

query I rowsort label-2600-3
SELECT pk FROM tab0 WHERE col3 = 72 AND (col0 IN (34,203) AND col1 < 655.0)
----

statement ok
DROP VIEW view_1_tab0_255

statement ok
DROP VIEW view_2_tab0_255

statement ok
DROP VIEW view_3_tab0_255

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_255') DROP VIEW view_1_tab1_255

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_255

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_255') DROP VIEW view_2_tab1_255

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_255

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_255') DROP VIEW view_3_tab1_255

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_255

statement ok
CREATE VIEW view_1_tab1_255 AS SELECT pk, col0 FROM tab1 WHERE col3 = 72 AND (col0 IN (34,203) AND col1 < 655.0)

statement ok
CREATE VIEW view_2_tab1_255 AS SELECT pk, col0 FROM tab1 WHERE NOT (col3 = 72 AND (col0 IN (34,203) AND col1 < 655.0))

statement ok
CREATE VIEW view_3_tab1_255 AS SELECT pk FROM view_1_tab1_255

query II rowsort label-2600-1
SELECT pk, col0 FROM tab1 WHERE col3 = 72 AND (col0 IN (34,203) AND col1 < 655.0)
----

query II rowsort label-2600-2
SELECT pk, col0 FROM tab1 WHERE NOT (col3 = 72 AND (col0 IN (34,203) AND col1 < 655.0))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-2600-1
SELECT pk, col0 FROM view_1_tab1_255
----

query II rowsort label-2600-2
SELECT pk, col0 FROM view_2_tab1_255
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 = 72 AND (col0 IN (34,203) AND col1 < 655.0) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col3 = 72 AND (col0 IN (34,203) AND col1 < 655.0))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_255 UNION ALL SELECT pk, col0 FROM view_2_tab1_255
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 = 72 AND (col0 IN (34,203) AND col1 < 655.0) UNION SELECT pk, col0 FROM tab1 WHERE NOT (col3 = 72 AND (col0 IN (34,203) AND col1 < 655.0))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_255 UNION SELECT pk, col0 FROM view_2_tab1_255
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-2600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col3 = 72 AND (col0 IN (34,203) AND col1 < 655.0) ) AS tab1_255
----

query I rowsort label-2600-3
SELECT * FROM view_3_tab1_255
----

query I rowsort label-2600-3
SELECT pk FROM tab1 WHERE col3 = 72 AND (col0 IN (34,203) AND col1 < 655.0)
----

statement ok
DROP VIEW view_1_tab1_255

statement ok
DROP VIEW view_2_tab1_255

statement ok
DROP VIEW view_3_tab1_255

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_255') DROP VIEW view_1_tab2_255

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_255

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_255') DROP VIEW view_2_tab2_255

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_255

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_255') DROP VIEW view_3_tab2_255

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_255

statement ok
CREATE VIEW view_1_tab2_255 AS SELECT pk, col0 FROM tab2 WHERE col3 = 72 AND (col0 IN (34,203) AND col1 < 655.0)

statement ok
CREATE VIEW view_2_tab2_255 AS SELECT pk, col0 FROM tab2 WHERE NOT (col3 = 72 AND (col0 IN (34,203) AND col1 < 655.0))

statement ok
CREATE VIEW view_3_tab2_255 AS SELECT pk FROM view_1_tab2_255

query II rowsort label-2600-1
SELECT pk, col0 FROM tab2 WHERE col3 = 72 AND (col0 IN (34,203) AND col1 < 655.0)
----

query II rowsort label-2600-2
SELECT pk, col0 FROM tab2 WHERE NOT (col3 = 72 AND (col0 IN (34,203) AND col1 < 655.0))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-2600-1
SELECT pk, col0 FROM view_1_tab2_255
----

query II rowsort label-2600-2
SELECT pk, col0 FROM view_2_tab2_255
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 = 72 AND (col0 IN (34,203) AND col1 < 655.0) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col3 = 72 AND (col0 IN (34,203) AND col1 < 655.0))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_255 UNION ALL SELECT pk, col0 FROM view_2_tab2_255
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 = 72 AND (col0 IN (34,203) AND col1 < 655.0) UNION SELECT pk, col0 FROM tab2 WHERE NOT (col3 = 72 AND (col0 IN (34,203) AND col1 < 655.0))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_255 UNION SELECT pk, col0 FROM view_2_tab2_255
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-2600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col3 = 72 AND (col0 IN (34,203) AND col1 < 655.0) ) AS tab2_255
----

query I rowsort label-2600-3
SELECT * FROM view_3_tab2_255
----

query I rowsort label-2600-3
SELECT pk FROM tab2 WHERE col3 = 72 AND (col0 IN (34,203) AND col1 < 655.0)
----

statement ok
DROP VIEW view_1_tab2_255

statement ok
DROP VIEW view_2_tab2_255

statement ok
DROP VIEW view_3_tab2_255

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_255') DROP VIEW view_1_tab3_255

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_255

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_255') DROP VIEW view_2_tab3_255

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_255

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_255') DROP VIEW view_3_tab3_255

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_255

statement ok
CREATE VIEW view_1_tab3_255 AS SELECT pk, col0 FROM tab3 WHERE col3 = 72 AND (col0 IN (34,203) AND col1 < 655.0)

statement ok
CREATE VIEW view_2_tab3_255 AS SELECT pk, col0 FROM tab3 WHERE NOT (col3 = 72 AND (col0 IN (34,203) AND col1 < 655.0))

statement ok
CREATE VIEW view_3_tab3_255 AS SELECT pk FROM view_1_tab3_255

query II rowsort label-2600-1
SELECT pk, col0 FROM tab3 WHERE col3 = 72 AND (col0 IN (34,203) AND col1 < 655.0)
----

query II rowsort label-2600-2
SELECT pk, col0 FROM tab3 WHERE NOT (col3 = 72 AND (col0 IN (34,203) AND col1 < 655.0))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-2600-1
SELECT pk, col0 FROM view_1_tab3_255
----

query II rowsort label-2600-2
SELECT pk, col0 FROM view_2_tab3_255
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 = 72 AND (col0 IN (34,203) AND col1 < 655.0) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col3 = 72 AND (col0 IN (34,203) AND col1 < 655.0))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_255 UNION ALL SELECT pk, col0 FROM view_2_tab3_255
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 = 72 AND (col0 IN (34,203) AND col1 < 655.0) UNION SELECT pk, col0 FROM tab3 WHERE NOT (col3 = 72 AND (col0 IN (34,203) AND col1 < 655.0))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_255 UNION SELECT pk, col0 FROM view_2_tab3_255
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-2600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col3 = 72 AND (col0 IN (34,203) AND col1 < 655.0) ) AS tab3_255
----

query I rowsort label-2600-3
SELECT * FROM view_3_tab3_255
----

query I rowsort label-2600-3
SELECT pk FROM tab3 WHERE col3 = 72 AND (col0 IN (34,203) AND col1 < 655.0)
----

statement ok
DROP VIEW view_1_tab3_255

statement ok
DROP VIEW view_2_tab3_255

statement ok
DROP VIEW view_3_tab3_255

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_255') DROP VIEW view_1_tab4_255

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_255

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_255') DROP VIEW view_2_tab4_255

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_255

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_255') DROP VIEW view_3_tab4_255

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_255

statement ok
CREATE VIEW view_1_tab4_255 AS SELECT pk, col0 FROM tab4 WHERE col3 = 72 AND (col0 IN (34,203) AND col1 < 655.0)

statement ok
CREATE VIEW view_2_tab4_255 AS SELECT pk, col0 FROM tab4 WHERE NOT (col3 = 72 AND (col0 IN (34,203) AND col1 < 655.0))

statement ok
CREATE VIEW view_3_tab4_255 AS SELECT pk FROM view_1_tab4_255

query II rowsort label-2600-1
SELECT pk, col0 FROM tab4 WHERE col3 = 72 AND (col0 IN (34,203) AND col1 < 655.0)
----

query II rowsort label-2600-2
SELECT pk, col0 FROM tab4 WHERE NOT (col3 = 72 AND (col0 IN (34,203) AND col1 < 655.0))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-2600-1
SELECT pk, col0 FROM view_1_tab4_255
----

query II rowsort label-2600-2
SELECT pk, col0 FROM view_2_tab4_255
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 = 72 AND (col0 IN (34,203) AND col1 < 655.0) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col3 = 72 AND (col0 IN (34,203) AND col1 < 655.0))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_255 UNION ALL SELECT pk, col0 FROM view_2_tab4_255
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 = 72 AND (col0 IN (34,203) AND col1 < 655.0) UNION SELECT pk, col0 FROM tab4 WHERE NOT (col3 = 72 AND (col0 IN (34,203) AND col1 < 655.0))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_255 UNION SELECT pk, col0 FROM view_2_tab4_255
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-2600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col3 = 72 AND (col0 IN (34,203) AND col1 < 655.0) ) AS tab4_255
----

query I rowsort label-2600-3
SELECT * FROM view_3_tab4_255
----

query I rowsort label-2600-3
SELECT pk FROM tab4 WHERE col3 = 72 AND (col0 IN (34,203) AND col1 < 655.0)
----

statement ok
DROP VIEW view_1_tab4_255

statement ok
DROP VIEW view_2_tab4_255

statement ok
DROP VIEW view_3_tab4_255

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_256') DROP VIEW view_1_tab0_256

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_256

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_256') DROP VIEW view_2_tab0_256

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_256

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_256') DROP VIEW view_3_tab0_256

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_256

statement ok
CREATE VIEW view_1_tab0_256 AS SELECT pk, col0 FROM tab0 WHERE (col3 <= 457) OR col0 < 688

statement ok
CREATE VIEW view_2_tab0_256 AS SELECT pk, col0 FROM tab0 WHERE NOT ((col3 <= 457) OR col0 < 688)

statement ok
CREATE VIEW view_3_tab0_256 AS SELECT pk FROM view_1_tab0_256

query II rowsort label-2700-1
SELECT pk, col0 FROM tab0 WHERE (col3 <= 457) OR col0 < 688
----
170 values hashing to 00f1a15508ce31165ff4f2292763f65d

query II rowsort label-2700-2
SELECT pk, col0 FROM tab0 WHERE NOT ((col3 <= 457) OR col0 < 688)
----
30 values hashing to 54edc9d234cab95025c1901bfbcf82dc

query II rowsort label-2700-1
SELECT pk, col0 FROM view_1_tab0_256
----
170 values hashing to 00f1a15508ce31165ff4f2292763f65d

query II rowsort label-2700-2
SELECT pk, col0 FROM view_2_tab0_256
----
30 values hashing to 54edc9d234cab95025c1901bfbcf82dc

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col3 <= 457) OR col0 < 688 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT ((col3 <= 457) OR col0 < 688)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_256 UNION ALL SELECT pk, col0 FROM view_2_tab0_256
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col3 <= 457) OR col0 < 688 UNION SELECT pk, col0 FROM tab0 WHERE NOT ((col3 <= 457) OR col0 < 688)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_256 UNION SELECT pk, col0 FROM view_2_tab0_256
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-2700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE (col3 <= 457) OR col0 < 688 ) AS tab0_256
----
85 values hashing to f7bad25ed9f136f83bfada23c3f028fc

query I rowsort label-2700-3
SELECT * FROM view_3_tab0_256
----
85 values hashing to f7bad25ed9f136f83bfada23c3f028fc

query I rowsort label-2700-3
SELECT pk FROM tab0 WHERE (col3 <= 457) OR col0 < 688
----
85 values hashing to f7bad25ed9f136f83bfada23c3f028fc

statement ok
DROP VIEW view_1_tab0_256

statement ok
DROP VIEW view_2_tab0_256

statement ok
DROP VIEW view_3_tab0_256

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_256') DROP VIEW view_1_tab1_256

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_256

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_256') DROP VIEW view_2_tab1_256

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_256

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_256') DROP VIEW view_3_tab1_256

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_256

statement ok
CREATE VIEW view_1_tab1_256 AS SELECT pk, col0 FROM tab1 WHERE (col3 <= 457) OR col0 < 688

statement ok
CREATE VIEW view_2_tab1_256 AS SELECT pk, col0 FROM tab1 WHERE NOT ((col3 <= 457) OR col0 < 688)

statement ok
CREATE VIEW view_3_tab1_256 AS SELECT pk FROM view_1_tab1_256

query II rowsort label-2700-1
SELECT pk, col0 FROM tab1 WHERE (col3 <= 457) OR col0 < 688
----
170 values hashing to 00f1a15508ce31165ff4f2292763f65d

query II rowsort label-2700-2
SELECT pk, col0 FROM tab1 WHERE NOT ((col3 <= 457) OR col0 < 688)
----
30 values hashing to 54edc9d234cab95025c1901bfbcf82dc

query II rowsort label-2700-1
SELECT pk, col0 FROM view_1_tab1_256
----
170 values hashing to 00f1a15508ce31165ff4f2292763f65d

query II rowsort label-2700-2
SELECT pk, col0 FROM view_2_tab1_256
----
30 values hashing to 54edc9d234cab95025c1901bfbcf82dc

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col3 <= 457) OR col0 < 688 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT ((col3 <= 457) OR col0 < 688)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_256 UNION ALL SELECT pk, col0 FROM view_2_tab1_256
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col3 <= 457) OR col0 < 688 UNION SELECT pk, col0 FROM tab1 WHERE NOT ((col3 <= 457) OR col0 < 688)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_256 UNION SELECT pk, col0 FROM view_2_tab1_256
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-2700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE (col3 <= 457) OR col0 < 688 ) AS tab1_256
----
85 values hashing to f7bad25ed9f136f83bfada23c3f028fc

query I rowsort label-2700-3
SELECT * FROM view_3_tab1_256
----
85 values hashing to f7bad25ed9f136f83bfada23c3f028fc

query I rowsort label-2700-3
SELECT pk FROM tab1 WHERE (col3 <= 457) OR col0 < 688
----
85 values hashing to f7bad25ed9f136f83bfada23c3f028fc

statement ok
DROP VIEW view_1_tab1_256

statement ok
DROP VIEW view_2_tab1_256

statement ok
DROP VIEW view_3_tab1_256

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_256') DROP VIEW view_1_tab2_256

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_256

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_256') DROP VIEW view_2_tab2_256

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_256

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_256') DROP VIEW view_3_tab2_256

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_256

statement ok
CREATE VIEW view_1_tab2_256 AS SELECT pk, col0 FROM tab2 WHERE (col3 <= 457) OR col0 < 688

statement ok
CREATE VIEW view_2_tab2_256 AS SELECT pk, col0 FROM tab2 WHERE NOT ((col3 <= 457) OR col0 < 688)

statement ok
CREATE VIEW view_3_tab2_256 AS SELECT pk FROM view_1_tab2_256

query II rowsort label-2700-1
SELECT pk, col0 FROM tab2 WHERE (col3 <= 457) OR col0 < 688
----
170 values hashing to 00f1a15508ce31165ff4f2292763f65d

query II rowsort label-2700-2
SELECT pk, col0 FROM tab2 WHERE NOT ((col3 <= 457) OR col0 < 688)
----
30 values hashing to 54edc9d234cab95025c1901bfbcf82dc

query II rowsort label-2700-1
SELECT pk, col0 FROM view_1_tab2_256
----
170 values hashing to 00f1a15508ce31165ff4f2292763f65d

query II rowsort label-2700-2
SELECT pk, col0 FROM view_2_tab2_256
----
30 values hashing to 54edc9d234cab95025c1901bfbcf82dc

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col3 <= 457) OR col0 < 688 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT ((col3 <= 457) OR col0 < 688)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_256 UNION ALL SELECT pk, col0 FROM view_2_tab2_256
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col3 <= 457) OR col0 < 688 UNION SELECT pk, col0 FROM tab2 WHERE NOT ((col3 <= 457) OR col0 < 688)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_256 UNION SELECT pk, col0 FROM view_2_tab2_256
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-2700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE (col3 <= 457) OR col0 < 688 ) AS tab2_256
----
85 values hashing to f7bad25ed9f136f83bfada23c3f028fc

query I rowsort label-2700-3
SELECT * FROM view_3_tab2_256
----
85 values hashing to f7bad25ed9f136f83bfada23c3f028fc

query I rowsort label-2700-3
SELECT pk FROM tab2 WHERE (col3 <= 457) OR col0 < 688
----
85 values hashing to f7bad25ed9f136f83bfada23c3f028fc

statement ok
DROP VIEW view_1_tab2_256

statement ok
DROP VIEW view_2_tab2_256

statement ok
DROP VIEW view_3_tab2_256

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_256') DROP VIEW view_1_tab3_256

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_256

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_256') DROP VIEW view_2_tab3_256

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_256

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_256') DROP VIEW view_3_tab3_256

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_256

statement ok
CREATE VIEW view_1_tab3_256 AS SELECT pk, col0 FROM tab3 WHERE (col3 <= 457) OR col0 < 688

statement ok
CREATE VIEW view_2_tab3_256 AS SELECT pk, col0 FROM tab3 WHERE NOT ((col3 <= 457) OR col0 < 688)

statement ok
CREATE VIEW view_3_tab3_256 AS SELECT pk FROM view_1_tab3_256

query II rowsort label-2700-1
SELECT pk, col0 FROM tab3 WHERE (col3 <= 457) OR col0 < 688
----
170 values hashing to 00f1a15508ce31165ff4f2292763f65d

query II rowsort label-2700-2
SELECT pk, col0 FROM tab3 WHERE NOT ((col3 <= 457) OR col0 < 688)
----
30 values hashing to 54edc9d234cab95025c1901bfbcf82dc

query II rowsort label-2700-1
SELECT pk, col0 FROM view_1_tab3_256
----
170 values hashing to 00f1a15508ce31165ff4f2292763f65d

query II rowsort label-2700-2
SELECT pk, col0 FROM view_2_tab3_256
----
30 values hashing to 54edc9d234cab95025c1901bfbcf82dc

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col3 <= 457) OR col0 < 688 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT ((col3 <= 457) OR col0 < 688)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_256 UNION ALL SELECT pk, col0 FROM view_2_tab3_256
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col3 <= 457) OR col0 < 688 UNION SELECT pk, col0 FROM tab3 WHERE NOT ((col3 <= 457) OR col0 < 688)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_256 UNION SELECT pk, col0 FROM view_2_tab3_256
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-2700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE (col3 <= 457) OR col0 < 688 ) AS tab3_256
----
85 values hashing to f7bad25ed9f136f83bfada23c3f028fc

query I rowsort label-2700-3
SELECT * FROM view_3_tab3_256
----
85 values hashing to f7bad25ed9f136f83bfada23c3f028fc

query I rowsort label-2700-3
SELECT pk FROM tab3 WHERE (col3 <= 457) OR col0 < 688
----
85 values hashing to f7bad25ed9f136f83bfada23c3f028fc

statement ok
DROP VIEW view_1_tab3_256

statement ok
DROP VIEW view_2_tab3_256

statement ok
DROP VIEW view_3_tab3_256

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_256') DROP VIEW view_1_tab4_256

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_256

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_256') DROP VIEW view_2_tab4_256

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_256

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_256') DROP VIEW view_3_tab4_256

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_256

statement ok
CREATE VIEW view_1_tab4_256 AS SELECT pk, col0 FROM tab4 WHERE (col3 <= 457) OR col0 < 688

statement ok
CREATE VIEW view_2_tab4_256 AS SELECT pk, col0 FROM tab4 WHERE NOT ((col3 <= 457) OR col0 < 688)

statement ok
CREATE VIEW view_3_tab4_256 AS SELECT pk FROM view_1_tab4_256

query II rowsort label-2700-1
SELECT pk, col0 FROM tab4 WHERE (col3 <= 457) OR col0 < 688
----
170 values hashing to 00f1a15508ce31165ff4f2292763f65d

query II rowsort label-2700-2
SELECT pk, col0 FROM tab4 WHERE NOT ((col3 <= 457) OR col0 < 688)
----
30 values hashing to 54edc9d234cab95025c1901bfbcf82dc

query II rowsort label-2700-1
SELECT pk, col0 FROM view_1_tab4_256
----
170 values hashing to 00f1a15508ce31165ff4f2292763f65d

query II rowsort label-2700-2
SELECT pk, col0 FROM view_2_tab4_256
----
30 values hashing to 54edc9d234cab95025c1901bfbcf82dc

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col3 <= 457) OR col0 < 688 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT ((col3 <= 457) OR col0 < 688)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_256 UNION ALL SELECT pk, col0 FROM view_2_tab4_256
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col3 <= 457) OR col0 < 688 UNION SELECT pk, col0 FROM tab4 WHERE NOT ((col3 <= 457) OR col0 < 688)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_256 UNION SELECT pk, col0 FROM view_2_tab4_256
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-2700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE (col3 <= 457) OR col0 < 688 ) AS tab4_256
----
85 values hashing to f7bad25ed9f136f83bfada23c3f028fc

query I rowsort label-2700-3
SELECT * FROM view_3_tab4_256
----
85 values hashing to f7bad25ed9f136f83bfada23c3f028fc

query I rowsort label-2700-3
SELECT pk FROM tab4 WHERE (col3 <= 457) OR col0 < 688
----
85 values hashing to f7bad25ed9f136f83bfada23c3f028fc

statement ok
DROP VIEW view_1_tab4_256

statement ok
DROP VIEW view_2_tab4_256

statement ok
DROP VIEW view_3_tab4_256

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_257') DROP VIEW view_1_tab0_257

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_257

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_257') DROP VIEW view_2_tab0_257

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_257

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_257') DROP VIEW view_3_tab0_257

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_257

statement ok
CREATE VIEW view_1_tab0_257 AS SELECT pk, col0 FROM tab0 WHERE ((col4 < 313.64) OR col0 < 499)

statement ok
CREATE VIEW view_2_tab0_257 AS SELECT pk, col0 FROM tab0 WHERE NOT (((col4 < 313.64) OR col0 < 499))

statement ok
CREATE VIEW view_3_tab0_257 AS SELECT pk FROM view_1_tab0_257

query II rowsort label-2800-1
SELECT pk, col0 FROM tab0 WHERE ((col4 < 313.64) OR col0 < 499)
----
118 values hashing to a4827d4f24c2b0dac337f4841580b408

query II rowsort label-2800-2
SELECT pk, col0 FROM tab0 WHERE NOT (((col4 < 313.64) OR col0 < 499))
----
82 values hashing to 7fb99244a1559d38aa6b2af3ad105772

query II rowsort label-2800-1
SELECT pk, col0 FROM view_1_tab0_257
----
118 values hashing to a4827d4f24c2b0dac337f4841580b408

query II rowsort label-2800-2
SELECT pk, col0 FROM view_2_tab0_257
----
82 values hashing to 7fb99244a1559d38aa6b2af3ad105772

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE ((col4 < 313.64) OR col0 < 499) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (((col4 < 313.64) OR col0 < 499))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_257 UNION ALL SELECT pk, col0 FROM view_2_tab0_257
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE ((col4 < 313.64) OR col0 < 499) UNION SELECT pk, col0 FROM tab0 WHERE NOT (((col4 < 313.64) OR col0 < 499))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_257 UNION SELECT pk, col0 FROM view_2_tab0_257
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-2800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE ((col4 < 313.64) OR col0 < 499) ) AS tab0_257
----
59 values hashing to 4a66c2bcdfb5fd7f975921e90479652c

query I rowsort label-2800-3
SELECT * FROM view_3_tab0_257
----
59 values hashing to 4a66c2bcdfb5fd7f975921e90479652c

query I rowsort label-2800-3
SELECT pk FROM tab0 WHERE ((col4 < 313.64) OR col0 < 499)
----
59 values hashing to 4a66c2bcdfb5fd7f975921e90479652c

statement ok
DROP VIEW view_1_tab0_257

statement ok
DROP VIEW view_2_tab0_257

statement ok
DROP VIEW view_3_tab0_257

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_257') DROP VIEW view_1_tab1_257

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_257

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_257') DROP VIEW view_2_tab1_257

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_257

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_257') DROP VIEW view_3_tab1_257

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_257

statement ok
CREATE VIEW view_1_tab1_257 AS SELECT pk, col0 FROM tab1 WHERE ((col4 < 313.64) OR col0 < 499)

statement ok
CREATE VIEW view_2_tab1_257 AS SELECT pk, col0 FROM tab1 WHERE NOT (((col4 < 313.64) OR col0 < 499))

statement ok
CREATE VIEW view_3_tab1_257 AS SELECT pk FROM view_1_tab1_257

query II rowsort label-2800-1
SELECT pk, col0 FROM tab1 WHERE ((col4 < 313.64) OR col0 < 499)
----
118 values hashing to a4827d4f24c2b0dac337f4841580b408

query II rowsort label-2800-2
SELECT pk, col0 FROM tab1 WHERE NOT (((col4 < 313.64) OR col0 < 499))
----
82 values hashing to 7fb99244a1559d38aa6b2af3ad105772

query II rowsort label-2800-1
SELECT pk, col0 FROM view_1_tab1_257
----
118 values hashing to a4827d4f24c2b0dac337f4841580b408

query II rowsort label-2800-2
SELECT pk, col0 FROM view_2_tab1_257
----
82 values hashing to 7fb99244a1559d38aa6b2af3ad105772

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE ((col4 < 313.64) OR col0 < 499) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (((col4 < 313.64) OR col0 < 499))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_257 UNION ALL SELECT pk, col0 FROM view_2_tab1_257
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE ((col4 < 313.64) OR col0 < 499) UNION SELECT pk, col0 FROM tab1 WHERE NOT (((col4 < 313.64) OR col0 < 499))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_257 UNION SELECT pk, col0 FROM view_2_tab1_257
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-2800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE ((col4 < 313.64) OR col0 < 499) ) AS tab1_257
----
59 values hashing to 4a66c2bcdfb5fd7f975921e90479652c

query I rowsort label-2800-3
SELECT * FROM view_3_tab1_257
----
59 values hashing to 4a66c2bcdfb5fd7f975921e90479652c

query I rowsort label-2800-3
SELECT pk FROM tab1 WHERE ((col4 < 313.64) OR col0 < 499)
----
59 values hashing to 4a66c2bcdfb5fd7f975921e90479652c

statement ok
DROP VIEW view_1_tab1_257

statement ok
DROP VIEW view_2_tab1_257

statement ok
DROP VIEW view_3_tab1_257

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_257') DROP VIEW view_1_tab2_257

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_257

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_257') DROP VIEW view_2_tab2_257

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_257

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_257') DROP VIEW view_3_tab2_257

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_257

statement ok
CREATE VIEW view_1_tab2_257 AS SELECT pk, col0 FROM tab2 WHERE ((col4 < 313.64) OR col0 < 499)

statement ok
CREATE VIEW view_2_tab2_257 AS SELECT pk, col0 FROM tab2 WHERE NOT (((col4 < 313.64) OR col0 < 499))

statement ok
CREATE VIEW view_3_tab2_257 AS SELECT pk FROM view_1_tab2_257

query II rowsort label-2800-1
SELECT pk, col0 FROM tab2 WHERE ((col4 < 313.64) OR col0 < 499)
----
118 values hashing to a4827d4f24c2b0dac337f4841580b408

query II rowsort label-2800-2
SELECT pk, col0 FROM tab2 WHERE NOT (((col4 < 313.64) OR col0 < 499))
----
82 values hashing to 7fb99244a1559d38aa6b2af3ad105772

query II rowsort label-2800-1
SELECT pk, col0 FROM view_1_tab2_257
----
118 values hashing to a4827d4f24c2b0dac337f4841580b408

query II rowsort label-2800-2
SELECT pk, col0 FROM view_2_tab2_257
----
82 values hashing to 7fb99244a1559d38aa6b2af3ad105772

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE ((col4 < 313.64) OR col0 < 499) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (((col4 < 313.64) OR col0 < 499))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_257 UNION ALL SELECT pk, col0 FROM view_2_tab2_257
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE ((col4 < 313.64) OR col0 < 499) UNION SELECT pk, col0 FROM tab2 WHERE NOT (((col4 < 313.64) OR col0 < 499))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_257 UNION SELECT pk, col0 FROM view_2_tab2_257
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-2800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE ((col4 < 313.64) OR col0 < 499) ) AS tab2_257
----
59 values hashing to 4a66c2bcdfb5fd7f975921e90479652c

query I rowsort label-2800-3
SELECT * FROM view_3_tab2_257
----
59 values hashing to 4a66c2bcdfb5fd7f975921e90479652c

query I rowsort label-2800-3
SELECT pk FROM tab2 WHERE ((col4 < 313.64) OR col0 < 499)
----
59 values hashing to 4a66c2bcdfb5fd7f975921e90479652c

statement ok
DROP VIEW view_1_tab2_257

statement ok
DROP VIEW view_2_tab2_257

statement ok
DROP VIEW view_3_tab2_257

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_257') DROP VIEW view_1_tab3_257

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_257

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_257') DROP VIEW view_2_tab3_257

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_257

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_257') DROP VIEW view_3_tab3_257

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_257

statement ok
CREATE VIEW view_1_tab3_257 AS SELECT pk, col0 FROM tab3 WHERE ((col4 < 313.64) OR col0 < 499)

statement ok
CREATE VIEW view_2_tab3_257 AS SELECT pk, col0 FROM tab3 WHERE NOT (((col4 < 313.64) OR col0 < 499))

statement ok
CREATE VIEW view_3_tab3_257 AS SELECT pk FROM view_1_tab3_257

query II rowsort label-2800-1
SELECT pk, col0 FROM tab3 WHERE ((col4 < 313.64) OR col0 < 499)
----
118 values hashing to a4827d4f24c2b0dac337f4841580b408

query II rowsort label-2800-2
SELECT pk, col0 FROM tab3 WHERE NOT (((col4 < 313.64) OR col0 < 499))
----
82 values hashing to 7fb99244a1559d38aa6b2af3ad105772

query II rowsort label-2800-1
SELECT pk, col0 FROM view_1_tab3_257
----
118 values hashing to a4827d4f24c2b0dac337f4841580b408

query II rowsort label-2800-2
SELECT pk, col0 FROM view_2_tab3_257
----
82 values hashing to 7fb99244a1559d38aa6b2af3ad105772

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE ((col4 < 313.64) OR col0 < 499) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (((col4 < 313.64) OR col0 < 499))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_257 UNION ALL SELECT pk, col0 FROM view_2_tab3_257
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE ((col4 < 313.64) OR col0 < 499) UNION SELECT pk, col0 FROM tab3 WHERE NOT (((col4 < 313.64) OR col0 < 499))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_257 UNION SELECT pk, col0 FROM view_2_tab3_257
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-2800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE ((col4 < 313.64) OR col0 < 499) ) AS tab3_257
----
59 values hashing to 4a66c2bcdfb5fd7f975921e90479652c

query I rowsort label-2800-3
SELECT * FROM view_3_tab3_257
----
59 values hashing to 4a66c2bcdfb5fd7f975921e90479652c

query I rowsort label-2800-3
SELECT pk FROM tab3 WHERE ((col4 < 313.64) OR col0 < 499)
----
59 values hashing to 4a66c2bcdfb5fd7f975921e90479652c

statement ok
DROP VIEW view_1_tab3_257

statement ok
DROP VIEW view_2_tab3_257

statement ok
DROP VIEW view_3_tab3_257

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_257') DROP VIEW view_1_tab4_257

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_257

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_257') DROP VIEW view_2_tab4_257

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_257

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_257') DROP VIEW view_3_tab4_257

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_257

statement ok
CREATE VIEW view_1_tab4_257 AS SELECT pk, col0 FROM tab4 WHERE ((col4 < 313.64) OR col0 < 499)

statement ok
CREATE VIEW view_2_tab4_257 AS SELECT pk, col0 FROM tab4 WHERE NOT (((col4 < 313.64) OR col0 < 499))

statement ok
CREATE VIEW view_3_tab4_257 AS SELECT pk FROM view_1_tab4_257

query II rowsort label-2800-1
SELECT pk, col0 FROM tab4 WHERE ((col4 < 313.64) OR col0 < 499)
----
118 values hashing to a4827d4f24c2b0dac337f4841580b408

query II rowsort label-2800-2
SELECT pk, col0 FROM tab4 WHERE NOT (((col4 < 313.64) OR col0 < 499))
----
82 values hashing to 7fb99244a1559d38aa6b2af3ad105772

query II rowsort label-2800-1
SELECT pk, col0 FROM view_1_tab4_257
----
118 values hashing to a4827d4f24c2b0dac337f4841580b408

query II rowsort label-2800-2
SELECT pk, col0 FROM view_2_tab4_257
----
82 values hashing to 7fb99244a1559d38aa6b2af3ad105772

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE ((col4 < 313.64) OR col0 < 499) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (((col4 < 313.64) OR col0 < 499))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_257 UNION ALL SELECT pk, col0 FROM view_2_tab4_257
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE ((col4 < 313.64) OR col0 < 499) UNION SELECT pk, col0 FROM tab4 WHERE NOT (((col4 < 313.64) OR col0 < 499))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_257 UNION SELECT pk, col0 FROM view_2_tab4_257
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-2800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE ((col4 < 313.64) OR col0 < 499) ) AS tab4_257
----
59 values hashing to 4a66c2bcdfb5fd7f975921e90479652c

query I rowsort label-2800-3
SELECT * FROM view_3_tab4_257
----
59 values hashing to 4a66c2bcdfb5fd7f975921e90479652c

query I rowsort label-2800-3
SELECT pk FROM tab4 WHERE ((col4 < 313.64) OR col0 < 499)
----
59 values hashing to 4a66c2bcdfb5fd7f975921e90479652c

statement ok
DROP VIEW view_1_tab4_257

statement ok
DROP VIEW view_2_tab4_257

statement ok
DROP VIEW view_3_tab4_257

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_258') DROP VIEW view_1_tab0_258

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_258

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_258') DROP VIEW view_2_tab0_258

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_258

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_258') DROP VIEW view_3_tab0_258

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_258

statement ok
CREATE VIEW view_1_tab0_258 AS SELECT pk, col0 FROM tab0 WHERE ((col0 >= 11))

statement ok
CREATE VIEW view_2_tab0_258 AS SELECT pk, col0 FROM tab0 WHERE NOT (((col0 >= 11)))

statement ok
CREATE VIEW view_3_tab0_258 AS SELECT pk FROM view_1_tab0_258

query II rowsort label-2900-1
SELECT pk, col0 FROM tab0 WHERE ((col0 >= 11))
----
198 values hashing to 5b55341cc871f99e094b2d5d7a8d12fb

query II rowsort label-2900-2
SELECT pk, col0 FROM tab0 WHERE NOT (((col0 >= 11)))
----
22
3

query II rowsort label-2900-1
SELECT pk, col0 FROM view_1_tab0_258
----
198 values hashing to 5b55341cc871f99e094b2d5d7a8d12fb

query II rowsort label-2900-2
SELECT pk, col0 FROM view_2_tab0_258
----
22
3

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE ((col0 >= 11)) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (((col0 >= 11)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_258 UNION ALL SELECT pk, col0 FROM view_2_tab0_258
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE ((col0 >= 11)) UNION SELECT pk, col0 FROM tab0 WHERE NOT (((col0 >= 11)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_258 UNION SELECT pk, col0 FROM view_2_tab0_258
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-2900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE ((col0 >= 11)) ) AS tab0_258
----
99 values hashing to 5af1bf83923df5a62a2fa6dc6298cdf4

query I rowsort label-2900-3
SELECT * FROM view_3_tab0_258
----
99 values hashing to 5af1bf83923df5a62a2fa6dc6298cdf4

query I rowsort label-2900-3
SELECT pk FROM tab0 WHERE ((col0 >= 11))
----
99 values hashing to 5af1bf83923df5a62a2fa6dc6298cdf4

statement ok
DROP VIEW view_1_tab0_258

statement ok
DROP VIEW view_2_tab0_258

statement ok
DROP VIEW view_3_tab0_258

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_258') DROP VIEW view_1_tab1_258

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_258

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_258') DROP VIEW view_2_tab1_258

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_258

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_258') DROP VIEW view_3_tab1_258

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_258

statement ok
CREATE VIEW view_1_tab1_258 AS SELECT pk, col0 FROM tab1 WHERE ((col0 >= 11))

statement ok
CREATE VIEW view_2_tab1_258 AS SELECT pk, col0 FROM tab1 WHERE NOT (((col0 >= 11)))

statement ok
CREATE VIEW view_3_tab1_258 AS SELECT pk FROM view_1_tab1_258

query II rowsort label-2900-1
SELECT pk, col0 FROM tab1 WHERE ((col0 >= 11))
----
198 values hashing to 5b55341cc871f99e094b2d5d7a8d12fb

query II rowsort label-2900-2
SELECT pk, col0 FROM tab1 WHERE NOT (((col0 >= 11)))
----
22
3

query II rowsort label-2900-1
SELECT pk, col0 FROM view_1_tab1_258
----
198 values hashing to 5b55341cc871f99e094b2d5d7a8d12fb

query II rowsort label-2900-2
SELECT pk, col0 FROM view_2_tab1_258
----
22
3

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE ((col0 >= 11)) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (((col0 >= 11)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_258 UNION ALL SELECT pk, col0 FROM view_2_tab1_258
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE ((col0 >= 11)) UNION SELECT pk, col0 FROM tab1 WHERE NOT (((col0 >= 11)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_258 UNION SELECT pk, col0 FROM view_2_tab1_258
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-2900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE ((col0 >= 11)) ) AS tab1_258
----
99 values hashing to 5af1bf83923df5a62a2fa6dc6298cdf4

query I rowsort label-2900-3
SELECT * FROM view_3_tab1_258
----
99 values hashing to 5af1bf83923df5a62a2fa6dc6298cdf4

query I rowsort label-2900-3
SELECT pk FROM tab1 WHERE ((col0 >= 11))
----
99 values hashing to 5af1bf83923df5a62a2fa6dc6298cdf4

statement ok
DROP VIEW view_1_tab1_258

statement ok
DROP VIEW view_2_tab1_258

statement ok
DROP VIEW view_3_tab1_258

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_258') DROP VIEW view_1_tab2_258

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_258

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_258') DROP VIEW view_2_tab2_258

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_258

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_258') DROP VIEW view_3_tab2_258

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_258

statement ok
CREATE VIEW view_1_tab2_258 AS SELECT pk, col0 FROM tab2 WHERE ((col0 >= 11))

statement ok
CREATE VIEW view_2_tab2_258 AS SELECT pk, col0 FROM tab2 WHERE NOT (((col0 >= 11)))

statement ok
CREATE VIEW view_3_tab2_258 AS SELECT pk FROM view_1_tab2_258

query II rowsort label-2900-1
SELECT pk, col0 FROM tab2 WHERE ((col0 >= 11))
----
198 values hashing to 5b55341cc871f99e094b2d5d7a8d12fb

query II rowsort label-2900-2
SELECT pk, col0 FROM tab2 WHERE NOT (((col0 >= 11)))
----
22
3

query II rowsort label-2900-1
SELECT pk, col0 FROM view_1_tab2_258
----
198 values hashing to 5b55341cc871f99e094b2d5d7a8d12fb

query II rowsort label-2900-2
SELECT pk, col0 FROM view_2_tab2_258
----
22
3

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE ((col0 >= 11)) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (((col0 >= 11)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_258 UNION ALL SELECT pk, col0 FROM view_2_tab2_258
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE ((col0 >= 11)) UNION SELECT pk, col0 FROM tab2 WHERE NOT (((col0 >= 11)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_258 UNION SELECT pk, col0 FROM view_2_tab2_258
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-2900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE ((col0 >= 11)) ) AS tab2_258
----
99 values hashing to 5af1bf83923df5a62a2fa6dc6298cdf4

query I rowsort label-2900-3
SELECT * FROM view_3_tab2_258
----
99 values hashing to 5af1bf83923df5a62a2fa6dc6298cdf4

query I rowsort label-2900-3
SELECT pk FROM tab2 WHERE ((col0 >= 11))
----
99 values hashing to 5af1bf83923df5a62a2fa6dc6298cdf4

statement ok
DROP VIEW view_1_tab2_258

statement ok
DROP VIEW view_2_tab2_258

statement ok
DROP VIEW view_3_tab2_258

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_258') DROP VIEW view_1_tab3_258

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_258

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_258') DROP VIEW view_2_tab3_258

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_258

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_258') DROP VIEW view_3_tab3_258

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_258

statement ok
CREATE VIEW view_1_tab3_258 AS SELECT pk, col0 FROM tab3 WHERE ((col0 >= 11))

statement ok
CREATE VIEW view_2_tab3_258 AS SELECT pk, col0 FROM tab3 WHERE NOT (((col0 >= 11)))

statement ok
CREATE VIEW view_3_tab3_258 AS SELECT pk FROM view_1_tab3_258

query II rowsort label-2900-1
SELECT pk, col0 FROM tab3 WHERE ((col0 >= 11))
----
198 values hashing to 5b55341cc871f99e094b2d5d7a8d12fb

query II rowsort label-2900-2
SELECT pk, col0 FROM tab3 WHERE NOT (((col0 >= 11)))
----
22
3

query II rowsort label-2900-1
SELECT pk, col0 FROM view_1_tab3_258
----
198 values hashing to 5b55341cc871f99e094b2d5d7a8d12fb

query II rowsort label-2900-2
SELECT pk, col0 FROM view_2_tab3_258
----
22
3

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE ((col0 >= 11)) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (((col0 >= 11)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_258 UNION ALL SELECT pk, col0 FROM view_2_tab3_258
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE ((col0 >= 11)) UNION SELECT pk, col0 FROM tab3 WHERE NOT (((col0 >= 11)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_258 UNION SELECT pk, col0 FROM view_2_tab3_258
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-2900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE ((col0 >= 11)) ) AS tab3_258
----
99 values hashing to 5af1bf83923df5a62a2fa6dc6298cdf4

query I rowsort label-2900-3
SELECT * FROM view_3_tab3_258
----
99 values hashing to 5af1bf83923df5a62a2fa6dc6298cdf4

query I rowsort label-2900-3
SELECT pk FROM tab3 WHERE ((col0 >= 11))
----
99 values hashing to 5af1bf83923df5a62a2fa6dc6298cdf4

statement ok
DROP VIEW view_1_tab3_258

statement ok
DROP VIEW view_2_tab3_258

statement ok
DROP VIEW view_3_tab3_258

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_258') DROP VIEW view_1_tab4_258

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_258

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_258') DROP VIEW view_2_tab4_258

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_258

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_258') DROP VIEW view_3_tab4_258

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_258

statement ok
CREATE VIEW view_1_tab4_258 AS SELECT pk, col0 FROM tab4 WHERE ((col0 >= 11))

statement ok
CREATE VIEW view_2_tab4_258 AS SELECT pk, col0 FROM tab4 WHERE NOT (((col0 >= 11)))

statement ok
CREATE VIEW view_3_tab4_258 AS SELECT pk FROM view_1_tab4_258

query II rowsort label-2900-1
SELECT pk, col0 FROM tab4 WHERE ((col0 >= 11))
----
198 values hashing to 5b55341cc871f99e094b2d5d7a8d12fb

query II rowsort label-2900-2
SELECT pk, col0 FROM tab4 WHERE NOT (((col0 >= 11)))
----
22
3

query II rowsort label-2900-1
SELECT pk, col0 FROM view_1_tab4_258
----
198 values hashing to 5b55341cc871f99e094b2d5d7a8d12fb

query II rowsort label-2900-2
SELECT pk, col0 FROM view_2_tab4_258
----
22
3

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE ((col0 >= 11)) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (((col0 >= 11)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_258 UNION ALL SELECT pk, col0 FROM view_2_tab4_258
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE ((col0 >= 11)) UNION SELECT pk, col0 FROM tab4 WHERE NOT (((col0 >= 11)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_258 UNION SELECT pk, col0 FROM view_2_tab4_258
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-2900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE ((col0 >= 11)) ) AS tab4_258
----
99 values hashing to 5af1bf83923df5a62a2fa6dc6298cdf4

query I rowsort label-2900-3
SELECT * FROM view_3_tab4_258
----
99 values hashing to 5af1bf83923df5a62a2fa6dc6298cdf4

query I rowsort label-2900-3
SELECT pk FROM tab4 WHERE ((col0 >= 11))
----
99 values hashing to 5af1bf83923df5a62a2fa6dc6298cdf4

statement ok
DROP VIEW view_1_tab4_258

statement ok
DROP VIEW view_2_tab4_258

statement ok
DROP VIEW view_3_tab4_258

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_260') DROP VIEW view_1_tab0_260

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_260

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_260') DROP VIEW view_2_tab0_260

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_260

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_260') DROP VIEW view_3_tab0_260

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_260

statement ok
CREATE VIEW view_1_tab0_260 AS SELECT pk, col0 FROM tab0 WHERE col3 < 770 OR col4 > 981.53 OR (col4 >= 634.21) OR (((col3 > 766 AND col3 = 162 OR col3 < 72 AND col4 > 80.88 OR col4 < 575.57 AND col3 > 235)) AND col3 < 75 AND col1 = 993.80) OR col1 IS NULL

statement ok
CREATE VIEW view_2_tab0_260 AS SELECT pk, col0 FROM tab0 WHERE NOT (col3 < 770 OR col4 > 981.53 OR (col4 >= 634.21) OR (((col3 > 766 AND col3 = 162 OR col3 < 72 AND col4 > 80.88 OR col4 < 575.57 AND col3 > 235)) AND col3 < 75 AND col1 = 993.80) OR col1 IS NULL)

statement ok
CREATE VIEW view_3_tab0_260 AS SELECT pk FROM view_1_tab0_260

query II rowsort label-3000-1
SELECT pk, col0 FROM tab0 WHERE col3 < 770 OR col4 > 981.53 OR (col4 >= 634.21) OR (((col3 > 766 AND col3 = 162 OR col3 < 72 AND col4 > 80.88 OR col4 < 575.57 AND col3 > 235)) AND col3 < 75 AND col1 = 993.80) OR col1 IS NULL
----
172 values hashing to 73e37e0ebba07ee2317191dc8c0fcb21

query II rowsort label-3000-2
SELECT pk, col0 FROM tab0 WHERE NOT (col3 < 770 OR col4 > 981.53 OR (col4 >= 634.21) OR (((col3 > 766 AND col3 = 162 OR col3 < 72 AND col4 > 80.88 OR col4 < 575.57 AND col3 > 235)) AND col3 < 75 AND col1 = 993.80) OR col1 IS NULL)
----
28 values hashing to 33e615ad81bfc404a00ae32840f24920

query II rowsort label-3000-1
SELECT pk, col0 FROM view_1_tab0_260
----
172 values hashing to 73e37e0ebba07ee2317191dc8c0fcb21

query II rowsort label-3000-2
SELECT pk, col0 FROM view_2_tab0_260
----
28 values hashing to 33e615ad81bfc404a00ae32840f24920

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 < 770 OR col4 > 981.53 OR (col4 >= 634.21) OR (((col3 > 766 AND col3 = 162 OR col3 < 72 AND col4 > 80.88 OR col4 < 575.57 AND col3 > 235)) AND col3 < 75 AND col1 = 993.80) OR col1 IS NULL UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col3 < 770 OR col4 > 981.53 OR (col4 >= 634.21) OR (((col3 > 766 AND col3 = 162 OR col3 < 72 AND col4 > 80.88 OR col4 < 575.57 AND col3 > 235)) AND col3 < 75 AND col1 = 993.80) OR col1 IS NULL)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_260 UNION ALL SELECT pk, col0 FROM view_2_tab0_260
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 < 770 OR col4 > 981.53 OR (col4 >= 634.21) OR (((col3 > 766 AND col3 = 162 OR col3 < 72 AND col4 > 80.88 OR col4 < 575.57 AND col3 > 235)) AND col3 < 75 AND col1 = 993.80) OR col1 IS NULL UNION SELECT pk, col0 FROM tab0 WHERE NOT (col3 < 770 OR col4 > 981.53 OR (col4 >= 634.21) OR (((col3 > 766 AND col3 = 162 OR col3 < 72 AND col4 > 80.88 OR col4 < 575.57 AND col3 > 235)) AND col3 < 75 AND col1 = 993.80) OR col1 IS NULL)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_260 UNION SELECT pk, col0 FROM view_2_tab0_260
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-3000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col3 < 770 OR col4 > 981.53 OR (col4 >= 634.21) OR (((col3 > 766 AND col3 = 162 OR col3 < 72 AND col4 > 80.88 OR col4 < 575.57 AND col3 > 235)) AND col3 < 75 AND col1 = 993.80) OR col1 IS NULL ) AS tab0_260
----
86 values hashing to de561888761e809ec6f307ba37ae4aa3

query I rowsort label-3000-3
SELECT * FROM view_3_tab0_260
----
86 values hashing to de561888761e809ec6f307ba37ae4aa3

query I rowsort label-3000-3
SELECT pk FROM tab0 WHERE col3 < 770 OR col4 > 981.53 OR (col4 >= 634.21) OR (((col3 > 766 AND col3 = 162 OR col3 < 72 AND col4 > 80.88 OR col4 < 575.57 AND col3 > 235)) AND col3 < 75 AND col1 = 993.80) OR col1 IS NULL
----
86 values hashing to de561888761e809ec6f307ba37ae4aa3

statement ok
DROP VIEW view_1_tab0_260

statement ok
DROP VIEW view_2_tab0_260

statement ok
DROP VIEW view_3_tab0_260

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_260') DROP VIEW view_1_tab1_260

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_260

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_260') DROP VIEW view_2_tab1_260

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_260

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_260') DROP VIEW view_3_tab1_260

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_260

statement ok
CREATE VIEW view_1_tab1_260 AS SELECT pk, col0 FROM tab1 WHERE col3 < 770 OR col4 > 981.53 OR (col4 >= 634.21) OR (((col3 > 766 AND col3 = 162 OR col3 < 72 AND col4 > 80.88 OR col4 < 575.57 AND col3 > 235)) AND col3 < 75 AND col1 = 993.80) OR col1 IS NULL

statement ok
CREATE VIEW view_2_tab1_260 AS SELECT pk, col0 FROM tab1 WHERE NOT (col3 < 770 OR col4 > 981.53 OR (col4 >= 634.21) OR (((col3 > 766 AND col3 = 162 OR col3 < 72 AND col4 > 80.88 OR col4 < 575.57 AND col3 > 235)) AND col3 < 75 AND col1 = 993.80) OR col1 IS NULL)

statement ok
CREATE VIEW view_3_tab1_260 AS SELECT pk FROM view_1_tab1_260

query II rowsort label-3000-1
SELECT pk, col0 FROM tab1 WHERE col3 < 770 OR col4 > 981.53 OR (col4 >= 634.21) OR (((col3 > 766 AND col3 = 162 OR col3 < 72 AND col4 > 80.88 OR col4 < 575.57 AND col3 > 235)) AND col3 < 75 AND col1 = 993.80) OR col1 IS NULL
----
172 values hashing to 73e37e0ebba07ee2317191dc8c0fcb21

query II rowsort label-3000-2
SELECT pk, col0 FROM tab1 WHERE NOT (col3 < 770 OR col4 > 981.53 OR (col4 >= 634.21) OR (((col3 > 766 AND col3 = 162 OR col3 < 72 AND col4 > 80.88 OR col4 < 575.57 AND col3 > 235)) AND col3 < 75 AND col1 = 993.80) OR col1 IS NULL)
----
28 values hashing to 33e615ad81bfc404a00ae32840f24920

query II rowsort label-3000-1
SELECT pk, col0 FROM view_1_tab1_260
----
172 values hashing to 73e37e0ebba07ee2317191dc8c0fcb21

query II rowsort label-3000-2
SELECT pk, col0 FROM view_2_tab1_260
----
28 values hashing to 33e615ad81bfc404a00ae32840f24920

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 < 770 OR col4 > 981.53 OR (col4 >= 634.21) OR (((col3 > 766 AND col3 = 162 OR col3 < 72 AND col4 > 80.88 OR col4 < 575.57 AND col3 > 235)) AND col3 < 75 AND col1 = 993.80) OR col1 IS NULL UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col3 < 770 OR col4 > 981.53 OR (col4 >= 634.21) OR (((col3 > 766 AND col3 = 162 OR col3 < 72 AND col4 > 80.88 OR col4 < 575.57 AND col3 > 235)) AND col3 < 75 AND col1 = 993.80) OR col1 IS NULL)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_260 UNION ALL SELECT pk, col0 FROM view_2_tab1_260
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 < 770 OR col4 > 981.53 OR (col4 >= 634.21) OR (((col3 > 766 AND col3 = 162 OR col3 < 72 AND col4 > 80.88 OR col4 < 575.57 AND col3 > 235)) AND col3 < 75 AND col1 = 993.80) OR col1 IS NULL UNION SELECT pk, col0 FROM tab1 WHERE NOT (col3 < 770 OR col4 > 981.53 OR (col4 >= 634.21) OR (((col3 > 766 AND col3 = 162 OR col3 < 72 AND col4 > 80.88 OR col4 < 575.57 AND col3 > 235)) AND col3 < 75 AND col1 = 993.80) OR col1 IS NULL)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_260 UNION SELECT pk, col0 FROM view_2_tab1_260
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-3000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col3 < 770 OR col4 > 981.53 OR (col4 >= 634.21) OR (((col3 > 766 AND col3 = 162 OR col3 < 72 AND col4 > 80.88 OR col4 < 575.57 AND col3 > 235)) AND col3 < 75 AND col1 = 993.80) OR col1 IS NULL ) AS tab1_260
----
86 values hashing to de561888761e809ec6f307ba37ae4aa3

query I rowsort label-3000-3
SELECT * FROM view_3_tab1_260
----
86 values hashing to de561888761e809ec6f307ba37ae4aa3

query I rowsort label-3000-3
SELECT pk FROM tab1 WHERE col3 < 770 OR col4 > 981.53 OR (col4 >= 634.21) OR (((col3 > 766 AND col3 = 162 OR col3 < 72 AND col4 > 80.88 OR col4 < 575.57 AND col3 > 235)) AND col3 < 75 AND col1 = 993.80) OR col1 IS NULL
----
86 values hashing to de561888761e809ec6f307ba37ae4aa3

statement ok
DROP VIEW view_1_tab1_260

statement ok
DROP VIEW view_2_tab1_260

statement ok
DROP VIEW view_3_tab1_260

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_260') DROP VIEW view_1_tab2_260

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_260

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_260') DROP VIEW view_2_tab2_260

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_260

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_260') DROP VIEW view_3_tab2_260

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_260

statement ok
CREATE VIEW view_1_tab2_260 AS SELECT pk, col0 FROM tab2 WHERE col3 < 770 OR col4 > 981.53 OR (col4 >= 634.21) OR (((col3 > 766 AND col3 = 162 OR col3 < 72 AND col4 > 80.88 OR col4 < 575.57 AND col3 > 235)) AND col3 < 75 AND col1 = 993.80) OR col1 IS NULL

statement ok
CREATE VIEW view_2_tab2_260 AS SELECT pk, col0 FROM tab2 WHERE NOT (col3 < 770 OR col4 > 981.53 OR (col4 >= 634.21) OR (((col3 > 766 AND col3 = 162 OR col3 < 72 AND col4 > 80.88 OR col4 < 575.57 AND col3 > 235)) AND col3 < 75 AND col1 = 993.80) OR col1 IS NULL)

statement ok
CREATE VIEW view_3_tab2_260 AS SELECT pk FROM view_1_tab2_260

query II rowsort label-3000-1
SELECT pk, col0 FROM tab2 WHERE col3 < 770 OR col4 > 981.53 OR (col4 >= 634.21) OR (((col3 > 766 AND col3 = 162 OR col3 < 72 AND col4 > 80.88 OR col4 < 575.57 AND col3 > 235)) AND col3 < 75 AND col1 = 993.80) OR col1 IS NULL
----
172 values hashing to 73e37e0ebba07ee2317191dc8c0fcb21

query II rowsort label-3000-2
SELECT pk, col0 FROM tab2 WHERE NOT (col3 < 770 OR col4 > 981.53 OR (col4 >= 634.21) OR (((col3 > 766 AND col3 = 162 OR col3 < 72 AND col4 > 80.88 OR col4 < 575.57 AND col3 > 235)) AND col3 < 75 AND col1 = 993.80) OR col1 IS NULL)
----
28 values hashing to 33e615ad81bfc404a00ae32840f24920

query II rowsort label-3000-1
SELECT pk, col0 FROM view_1_tab2_260
----
172 values hashing to 73e37e0ebba07ee2317191dc8c0fcb21

query II rowsort label-3000-2
SELECT pk, col0 FROM view_2_tab2_260
----
28 values hashing to 33e615ad81bfc404a00ae32840f24920

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 < 770 OR col4 > 981.53 OR (col4 >= 634.21) OR (((col3 > 766 AND col3 = 162 OR col3 < 72 AND col4 > 80.88 OR col4 < 575.57 AND col3 > 235)) AND col3 < 75 AND col1 = 993.80) OR col1 IS NULL UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col3 < 770 OR col4 > 981.53 OR (col4 >= 634.21) OR (((col3 > 766 AND col3 = 162 OR col3 < 72 AND col4 > 80.88 OR col4 < 575.57 AND col3 > 235)) AND col3 < 75 AND col1 = 993.80) OR col1 IS NULL)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_260 UNION ALL SELECT pk, col0 FROM view_2_tab2_260
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 < 770 OR col4 > 981.53 OR (col4 >= 634.21) OR (((col3 > 766 AND col3 = 162 OR col3 < 72 AND col4 > 80.88 OR col4 < 575.57 AND col3 > 235)) AND col3 < 75 AND col1 = 993.80) OR col1 IS NULL UNION SELECT pk, col0 FROM tab2 WHERE NOT (col3 < 770 OR col4 > 981.53 OR (col4 >= 634.21) OR (((col3 > 766 AND col3 = 162 OR col3 < 72 AND col4 > 80.88 OR col4 < 575.57 AND col3 > 235)) AND col3 < 75 AND col1 = 993.80) OR col1 IS NULL)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_260 UNION SELECT pk, col0 FROM view_2_tab2_260
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-3000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col3 < 770 OR col4 > 981.53 OR (col4 >= 634.21) OR (((col3 > 766 AND col3 = 162 OR col3 < 72 AND col4 > 80.88 OR col4 < 575.57 AND col3 > 235)) AND col3 < 75 AND col1 = 993.80) OR col1 IS NULL ) AS tab2_260
----
86 values hashing to de561888761e809ec6f307ba37ae4aa3

query I rowsort label-3000-3
SELECT * FROM view_3_tab2_260
----
86 values hashing to de561888761e809ec6f307ba37ae4aa3

query I rowsort label-3000-3
SELECT pk FROM tab2 WHERE col3 < 770 OR col4 > 981.53 OR (col4 >= 634.21) OR (((col3 > 766 AND col3 = 162 OR col3 < 72 AND col4 > 80.88 OR col4 < 575.57 AND col3 > 235)) AND col3 < 75 AND col1 = 993.80) OR col1 IS NULL
----
86 values hashing to de561888761e809ec6f307ba37ae4aa3

statement ok
DROP VIEW view_1_tab2_260

statement ok
DROP VIEW view_2_tab2_260

statement ok
DROP VIEW view_3_tab2_260

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_260') DROP VIEW view_1_tab3_260

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_260

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_260') DROP VIEW view_2_tab3_260

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_260

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_260') DROP VIEW view_3_tab3_260

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_260

statement ok
CREATE VIEW view_1_tab3_260 AS SELECT pk, col0 FROM tab3 WHERE col3 < 770 OR col4 > 981.53 OR (col4 >= 634.21) OR (((col3 > 766 AND col3 = 162 OR col3 < 72 AND col4 > 80.88 OR col4 < 575.57 AND col3 > 235)) AND col3 < 75 AND col1 = 993.80) OR col1 IS NULL

statement ok
CREATE VIEW view_2_tab3_260 AS SELECT pk, col0 FROM tab3 WHERE NOT (col3 < 770 OR col4 > 981.53 OR (col4 >= 634.21) OR (((col3 > 766 AND col3 = 162 OR col3 < 72 AND col4 > 80.88 OR col4 < 575.57 AND col3 > 235)) AND col3 < 75 AND col1 = 993.80) OR col1 IS NULL)

statement ok
CREATE VIEW view_3_tab3_260 AS SELECT pk FROM view_1_tab3_260

query II rowsort label-3000-1
SELECT pk, col0 FROM tab3 WHERE col3 < 770 OR col4 > 981.53 OR (col4 >= 634.21) OR (((col3 > 766 AND col3 = 162 OR col3 < 72 AND col4 > 80.88 OR col4 < 575.57 AND col3 > 235)) AND col3 < 75 AND col1 = 993.80) OR col1 IS NULL
----
172 values hashing to 73e37e0ebba07ee2317191dc8c0fcb21

query II rowsort label-3000-2
SELECT pk, col0 FROM tab3 WHERE NOT (col3 < 770 OR col4 > 981.53 OR (col4 >= 634.21) OR (((col3 > 766 AND col3 = 162 OR col3 < 72 AND col4 > 80.88 OR col4 < 575.57 AND col3 > 235)) AND col3 < 75 AND col1 = 993.80) OR col1 IS NULL)
----
28 values hashing to 33e615ad81bfc404a00ae32840f24920

query II rowsort label-3000-1
SELECT pk, col0 FROM view_1_tab3_260
----
172 values hashing to 73e37e0ebba07ee2317191dc8c0fcb21

query II rowsort label-3000-2
SELECT pk, col0 FROM view_2_tab3_260
----
28 values hashing to 33e615ad81bfc404a00ae32840f24920

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 < 770 OR col4 > 981.53 OR (col4 >= 634.21) OR (((col3 > 766 AND col3 = 162 OR col3 < 72 AND col4 > 80.88 OR col4 < 575.57 AND col3 > 235)) AND col3 < 75 AND col1 = 993.80) OR col1 IS NULL UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col3 < 770 OR col4 > 981.53 OR (col4 >= 634.21) OR (((col3 > 766 AND col3 = 162 OR col3 < 72 AND col4 > 80.88 OR col4 < 575.57 AND col3 > 235)) AND col3 < 75 AND col1 = 993.80) OR col1 IS NULL)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_260 UNION ALL SELECT pk, col0 FROM view_2_tab3_260
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 < 770 OR col4 > 981.53 OR (col4 >= 634.21) OR (((col3 > 766 AND col3 = 162 OR col3 < 72 AND col4 > 80.88 OR col4 < 575.57 AND col3 > 235)) AND col3 < 75 AND col1 = 993.80) OR col1 IS NULL UNION SELECT pk, col0 FROM tab3 WHERE NOT (col3 < 770 OR col4 > 981.53 OR (col4 >= 634.21) OR (((col3 > 766 AND col3 = 162 OR col3 < 72 AND col4 > 80.88 OR col4 < 575.57 AND col3 > 235)) AND col3 < 75 AND col1 = 993.80) OR col1 IS NULL)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_260 UNION SELECT pk, col0 FROM view_2_tab3_260
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-3000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col3 < 770 OR col4 > 981.53 OR (col4 >= 634.21) OR (((col3 > 766 AND col3 = 162 OR col3 < 72 AND col4 > 80.88 OR col4 < 575.57 AND col3 > 235)) AND col3 < 75 AND col1 = 993.80) OR col1 IS NULL ) AS tab3_260
----
86 values hashing to de561888761e809ec6f307ba37ae4aa3

query I rowsort label-3000-3
SELECT * FROM view_3_tab3_260
----
86 values hashing to de561888761e809ec6f307ba37ae4aa3

query I rowsort label-3000-3
SELECT pk FROM tab3 WHERE col3 < 770 OR col4 > 981.53 OR (col4 >= 634.21) OR (((col3 > 766 AND col3 = 162 OR col3 < 72 AND col4 > 80.88 OR col4 < 575.57 AND col3 > 235)) AND col3 < 75 AND col1 = 993.80) OR col1 IS NULL
----
86 values hashing to de561888761e809ec6f307ba37ae4aa3

statement ok
DROP VIEW view_1_tab3_260

statement ok
DROP VIEW view_2_tab3_260

statement ok
DROP VIEW view_3_tab3_260

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_260') DROP VIEW view_1_tab4_260

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_260

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_260') DROP VIEW view_2_tab4_260

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_260

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_260') DROP VIEW view_3_tab4_260

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_260

statement ok
CREATE VIEW view_1_tab4_260 AS SELECT pk, col0 FROM tab4 WHERE col3 < 770 OR col4 > 981.53 OR (col4 >= 634.21) OR (((col3 > 766 AND col3 = 162 OR col3 < 72 AND col4 > 80.88 OR col4 < 575.57 AND col3 > 235)) AND col3 < 75 AND col1 = 993.80) OR col1 IS NULL

statement ok
CREATE VIEW view_2_tab4_260 AS SELECT pk, col0 FROM tab4 WHERE NOT (col3 < 770 OR col4 > 981.53 OR (col4 >= 634.21) OR (((col3 > 766 AND col3 = 162 OR col3 < 72 AND col4 > 80.88 OR col4 < 575.57 AND col3 > 235)) AND col3 < 75 AND col1 = 993.80) OR col1 IS NULL)

statement ok
CREATE VIEW view_3_tab4_260 AS SELECT pk FROM view_1_tab4_260

query II rowsort label-3000-1
SELECT pk, col0 FROM tab4 WHERE col3 < 770 OR col4 > 981.53 OR (col4 >= 634.21) OR (((col3 > 766 AND col3 = 162 OR col3 < 72 AND col4 > 80.88 OR col4 < 575.57 AND col3 > 235)) AND col3 < 75 AND col1 = 993.80) OR col1 IS NULL
----
172 values hashing to 73e37e0ebba07ee2317191dc8c0fcb21

query II rowsort label-3000-2
SELECT pk, col0 FROM tab4 WHERE NOT (col3 < 770 OR col4 > 981.53 OR (col4 >= 634.21) OR (((col3 > 766 AND col3 = 162 OR col3 < 72 AND col4 > 80.88 OR col4 < 575.57 AND col3 > 235)) AND col3 < 75 AND col1 = 993.80) OR col1 IS NULL)
----
28 values hashing to 33e615ad81bfc404a00ae32840f24920

query II rowsort label-3000-1
SELECT pk, col0 FROM view_1_tab4_260
----
172 values hashing to 73e37e0ebba07ee2317191dc8c0fcb21

query II rowsort label-3000-2
SELECT pk, col0 FROM view_2_tab4_260
----
28 values hashing to 33e615ad81bfc404a00ae32840f24920

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 < 770 OR col4 > 981.53 OR (col4 >= 634.21) OR (((col3 > 766 AND col3 = 162 OR col3 < 72 AND col4 > 80.88 OR col4 < 575.57 AND col3 > 235)) AND col3 < 75 AND col1 = 993.80) OR col1 IS NULL UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col3 < 770 OR col4 > 981.53 OR (col4 >= 634.21) OR (((col3 > 766 AND col3 = 162 OR col3 < 72 AND col4 > 80.88 OR col4 < 575.57 AND col3 > 235)) AND col3 < 75 AND col1 = 993.80) OR col1 IS NULL)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_260 UNION ALL SELECT pk, col0 FROM view_2_tab4_260
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 < 770 OR col4 > 981.53 OR (col4 >= 634.21) OR (((col3 > 766 AND col3 = 162 OR col3 < 72 AND col4 > 80.88 OR col4 < 575.57 AND col3 > 235)) AND col3 < 75 AND col1 = 993.80) OR col1 IS NULL UNION SELECT pk, col0 FROM tab4 WHERE NOT (col3 < 770 OR col4 > 981.53 OR (col4 >= 634.21) OR (((col3 > 766 AND col3 = 162 OR col3 < 72 AND col4 > 80.88 OR col4 < 575.57 AND col3 > 235)) AND col3 < 75 AND col1 = 993.80) OR col1 IS NULL)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_260 UNION SELECT pk, col0 FROM view_2_tab4_260
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-3000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col3 < 770 OR col4 > 981.53 OR (col4 >= 634.21) OR (((col3 > 766 AND col3 = 162 OR col3 < 72 AND col4 > 80.88 OR col4 < 575.57 AND col3 > 235)) AND col3 < 75 AND col1 = 993.80) OR col1 IS NULL ) AS tab4_260
----
86 values hashing to de561888761e809ec6f307ba37ae4aa3

query I rowsort label-3000-3
SELECT * FROM view_3_tab4_260
----
86 values hashing to de561888761e809ec6f307ba37ae4aa3

query I rowsort label-3000-3
SELECT pk FROM tab4 WHERE col3 < 770 OR col4 > 981.53 OR (col4 >= 634.21) OR (((col3 > 766 AND col3 = 162 OR col3 < 72 AND col4 > 80.88 OR col4 < 575.57 AND col3 > 235)) AND col3 < 75 AND col1 = 993.80) OR col1 IS NULL
----
86 values hashing to de561888761e809ec6f307ba37ae4aa3

statement ok
DROP VIEW view_1_tab4_260

statement ok
DROP VIEW view_2_tab4_260

statement ok
DROP VIEW view_3_tab4_260

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_261') DROP VIEW view_1_tab0_261

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_261

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_261') DROP VIEW view_2_tab0_261

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_261

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_261') DROP VIEW view_3_tab0_261

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_261

statement ok
CREATE VIEW view_1_tab0_261 AS SELECT pk, col0 FROM tab0 WHERE (col1 IN (344.84,326.40,509.8,263.0))

statement ok
CREATE VIEW view_2_tab0_261 AS SELECT pk, col0 FROM tab0 WHERE NOT ((col1 IN (344.84,326.40,509.8,263.0)))

statement ok
CREATE VIEW view_3_tab0_261 AS SELECT pk FROM view_1_tab0_261

query II rowsort label-3100-1
SELECT pk, col0 FROM tab0 WHERE (col1 IN (344.84,326.40,509.8,263.0))
----

query II rowsort label-3100-2
SELECT pk, col0 FROM tab0 WHERE NOT ((col1 IN (344.84,326.40,509.8,263.0)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-3100-1
SELECT pk, col0 FROM view_1_tab0_261
----

query II rowsort label-3100-2
SELECT pk, col0 FROM view_2_tab0_261
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col1 IN (344.84,326.40,509.8,263.0)) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT ((col1 IN (344.84,326.40,509.8,263.0)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_261 UNION ALL SELECT pk, col0 FROM view_2_tab0_261
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col1 IN (344.84,326.40,509.8,263.0)) UNION SELECT pk, col0 FROM tab0 WHERE NOT ((col1 IN (344.84,326.40,509.8,263.0)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_261 UNION SELECT pk, col0 FROM view_2_tab0_261
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-3100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE (col1 IN (344.84,326.40,509.8,263.0)) ) AS tab0_261
----

query I rowsort label-3100-3
SELECT * FROM view_3_tab0_261
----

query I rowsort label-3100-3
SELECT pk FROM tab0 WHERE (col1 IN (344.84,326.40,509.8,263.0))
----

statement ok
DROP VIEW view_1_tab0_261

statement ok
DROP VIEW view_2_tab0_261

statement ok
DROP VIEW view_3_tab0_261

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_261') DROP VIEW view_1_tab1_261

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_261

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_261') DROP VIEW view_2_tab1_261

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_261

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_261') DROP VIEW view_3_tab1_261

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_261

statement ok
CREATE VIEW view_1_tab1_261 AS SELECT pk, col0 FROM tab1 WHERE (col1 IN (344.84,326.40,509.8,263.0))

statement ok
CREATE VIEW view_2_tab1_261 AS SELECT pk, col0 FROM tab1 WHERE NOT ((col1 IN (344.84,326.40,509.8,263.0)))

statement ok
CREATE VIEW view_3_tab1_261 AS SELECT pk FROM view_1_tab1_261

query II rowsort label-3100-1
SELECT pk, col0 FROM tab1 WHERE (col1 IN (344.84,326.40,509.8,263.0))
----

query II rowsort label-3100-2
SELECT pk, col0 FROM tab1 WHERE NOT ((col1 IN (344.84,326.40,509.8,263.0)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-3100-1
SELECT pk, col0 FROM view_1_tab1_261
----

query II rowsort label-3100-2
SELECT pk, col0 FROM view_2_tab1_261
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col1 IN (344.84,326.40,509.8,263.0)) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT ((col1 IN (344.84,326.40,509.8,263.0)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_261 UNION ALL SELECT pk, col0 FROM view_2_tab1_261
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col1 IN (344.84,326.40,509.8,263.0)) UNION SELECT pk, col0 FROM tab1 WHERE NOT ((col1 IN (344.84,326.40,509.8,263.0)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_261 UNION SELECT pk, col0 FROM view_2_tab1_261
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-3100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE (col1 IN (344.84,326.40,509.8,263.0)) ) AS tab1_261
----

query I rowsort label-3100-3
SELECT * FROM view_3_tab1_261
----

query I rowsort label-3100-3
SELECT pk FROM tab1 WHERE (col1 IN (344.84,326.40,509.8,263.0))
----

statement ok
DROP VIEW view_1_tab1_261

statement ok
DROP VIEW view_2_tab1_261

statement ok
DROP VIEW view_3_tab1_261

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_261') DROP VIEW view_1_tab2_261

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_261

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_261') DROP VIEW view_2_tab2_261

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_261

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_261') DROP VIEW view_3_tab2_261

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_261

statement ok
CREATE VIEW view_1_tab2_261 AS SELECT pk, col0 FROM tab2 WHERE (col1 IN (344.84,326.40,509.8,263.0))

statement ok
CREATE VIEW view_2_tab2_261 AS SELECT pk, col0 FROM tab2 WHERE NOT ((col1 IN (344.84,326.40,509.8,263.0)))

statement ok
CREATE VIEW view_3_tab2_261 AS SELECT pk FROM view_1_tab2_261

query II rowsort label-3100-1
SELECT pk, col0 FROM tab2 WHERE (col1 IN (344.84,326.40,509.8,263.0))
----

query II rowsort label-3100-2
SELECT pk, col0 FROM tab2 WHERE NOT ((col1 IN (344.84,326.40,509.8,263.0)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-3100-1
SELECT pk, col0 FROM view_1_tab2_261
----

query II rowsort label-3100-2
SELECT pk, col0 FROM view_2_tab2_261
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col1 IN (344.84,326.40,509.8,263.0)) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT ((col1 IN (344.84,326.40,509.8,263.0)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_261 UNION ALL SELECT pk, col0 FROM view_2_tab2_261
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col1 IN (344.84,326.40,509.8,263.0)) UNION SELECT pk, col0 FROM tab2 WHERE NOT ((col1 IN (344.84,326.40,509.8,263.0)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_261 UNION SELECT pk, col0 FROM view_2_tab2_261
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-3100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE (col1 IN (344.84,326.40,509.8,263.0)) ) AS tab2_261
----

query I rowsort label-3100-3
SELECT * FROM view_3_tab2_261
----

query I rowsort label-3100-3
SELECT pk FROM tab2 WHERE (col1 IN (344.84,326.40,509.8,263.0))
----

statement ok
DROP VIEW view_1_tab2_261

statement ok
DROP VIEW view_2_tab2_261

statement ok
DROP VIEW view_3_tab2_261

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_261') DROP VIEW view_1_tab3_261

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_261

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_261') DROP VIEW view_2_tab3_261

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_261

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_261') DROP VIEW view_3_tab3_261

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_261

statement ok
CREATE VIEW view_1_tab3_261 AS SELECT pk, col0 FROM tab3 WHERE (col1 IN (344.84,326.40,509.8,263.0))

statement ok
CREATE VIEW view_2_tab3_261 AS SELECT pk, col0 FROM tab3 WHERE NOT ((col1 IN (344.84,326.40,509.8,263.0)))

statement ok
CREATE VIEW view_3_tab3_261 AS SELECT pk FROM view_1_tab3_261

query II rowsort label-3100-1
SELECT pk, col0 FROM tab3 WHERE (col1 IN (344.84,326.40,509.8,263.0))
----

query II rowsort label-3100-2
SELECT pk, col0 FROM tab3 WHERE NOT ((col1 IN (344.84,326.40,509.8,263.0)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-3100-1
SELECT pk, col0 FROM view_1_tab3_261
----

query II rowsort label-3100-2
SELECT pk, col0 FROM view_2_tab3_261
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col1 IN (344.84,326.40,509.8,263.0)) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT ((col1 IN (344.84,326.40,509.8,263.0)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_261 UNION ALL SELECT pk, col0 FROM view_2_tab3_261
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col1 IN (344.84,326.40,509.8,263.0)) UNION SELECT pk, col0 FROM tab3 WHERE NOT ((col1 IN (344.84,326.40,509.8,263.0)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_261 UNION SELECT pk, col0 FROM view_2_tab3_261
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-3100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE (col1 IN (344.84,326.40,509.8,263.0)) ) AS tab3_261
----

query I rowsort label-3100-3
SELECT * FROM view_3_tab3_261
----

query I rowsort label-3100-3
SELECT pk FROM tab3 WHERE (col1 IN (344.84,326.40,509.8,263.0))
----

statement ok
DROP VIEW view_1_tab3_261

statement ok
DROP VIEW view_2_tab3_261

statement ok
DROP VIEW view_3_tab3_261

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_261') DROP VIEW view_1_tab4_261

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_261

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_261') DROP VIEW view_2_tab4_261

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_261

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_261') DROP VIEW view_3_tab4_261

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_261

statement ok
CREATE VIEW view_1_tab4_261 AS SELECT pk, col0 FROM tab4 WHERE (col1 IN (344.84,326.40,509.8,263.0))

statement ok
CREATE VIEW view_2_tab4_261 AS SELECT pk, col0 FROM tab4 WHERE NOT ((col1 IN (344.84,326.40,509.8,263.0)))

statement ok
CREATE VIEW view_3_tab4_261 AS SELECT pk FROM view_1_tab4_261

query II rowsort label-3100-1
SELECT pk, col0 FROM tab4 WHERE (col1 IN (344.84,326.40,509.8,263.0))
----

query II rowsort label-3100-2
SELECT pk, col0 FROM tab4 WHERE NOT ((col1 IN (344.84,326.40,509.8,263.0)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-3100-1
SELECT pk, col0 FROM view_1_tab4_261
----

query II rowsort label-3100-2
SELECT pk, col0 FROM view_2_tab4_261
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col1 IN (344.84,326.40,509.8,263.0)) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT ((col1 IN (344.84,326.40,509.8,263.0)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_261 UNION ALL SELECT pk, col0 FROM view_2_tab4_261
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col1 IN (344.84,326.40,509.8,263.0)) UNION SELECT pk, col0 FROM tab4 WHERE NOT ((col1 IN (344.84,326.40,509.8,263.0)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_261 UNION SELECT pk, col0 FROM view_2_tab4_261
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-3100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE (col1 IN (344.84,326.40,509.8,263.0)) ) AS tab4_261
----

query I rowsort label-3100-3
SELECT * FROM view_3_tab4_261
----

query I rowsort label-3100-3
SELECT pk FROM tab4 WHERE (col1 IN (344.84,326.40,509.8,263.0))
----

statement ok
DROP VIEW view_1_tab4_261

statement ok
DROP VIEW view_2_tab4_261

statement ok
DROP VIEW view_3_tab4_261

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_262') DROP VIEW view_1_tab0_262

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_262

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_262') DROP VIEW view_2_tab0_262

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_262

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_262') DROP VIEW view_3_tab0_262

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_262

statement ok
CREATE VIEW view_1_tab0_262 AS SELECT pk, col0 FROM tab0 WHERE ((col4 > 839.10) AND col4 <= 637.72 AND col3 >= 790 OR col0 BETWEEN 174 AND 945) AND (col3 >= 121) AND (((((col1 <= 286.11 OR (((col1 IN (691.88,897.44))) AND col4 = 50.18) AND col3 IS NULL OR col3 >= 724 AND col4 >= 890.17 AND col0 > 301) OR (col0 = 199))) AND (col3 < 144) AND (col4 < 587.63) OR (col0 IN (522,977)) AND col0 <= 352)) OR col0 < 461 OR col1 = 411.7

statement ok
CREATE VIEW view_2_tab0_262 AS SELECT pk, col0 FROM tab0 WHERE NOT (((col4 > 839.10) AND col4 <= 637.72 AND col3 >= 790 OR col0 BETWEEN 174 AND 945) AND (col3 >= 121) AND (((((col1 <= 286.11 OR (((col1 IN (691.88,897.44))) AND col4 = 50.18) AND col3 IS NULL OR col3 >= 724 AND col4 >= 890.17 AND col0 > 301) OR (col0 = 199))) AND (col3 < 144) AND (col4 < 587.63) OR (col0 IN (522,977)) AND col0 <= 352)) OR col0 < 461 OR col1 = 411.7)

statement ok
CREATE VIEW view_3_tab0_262 AS SELECT pk FROM view_1_tab0_262

query II rowsort label-3200-1
SELECT pk, col0 FROM tab0 WHERE ((col4 > 839.10) AND col4 <= 637.72 AND col3 >= 790 OR col0 BETWEEN 174 AND 945) AND (col3 >= 121) AND (((((col1 <= 286.11 OR (((col1 IN (691.88,897.44))) AND col4 = 50.18) AND col3 IS NULL OR col3 >= 724 AND col4 >= 890.17 AND col0 > 301) OR (col0 = 199))) AND (col3 < 144) AND (col4 < 587.63) OR (col0 IN (522,977)) AND col0 <= 352)) OR col0 < 461 OR col1 = 411.7
----
86 values hashing to d18d25c77755502e45f1d4f4f2c77441

query II rowsort label-3200-2
SELECT pk, col0 FROM tab0 WHERE NOT (((col4 > 839.10) AND col4 <= 637.72 AND col3 >= 790 OR col0 BETWEEN 174 AND 945) AND (col3 >= 121) AND (((((col1 <= 286.11 OR (((col1 IN (691.88,897.44))) AND col4 = 50.18) AND col3 IS NULL OR col3 >= 724 AND col4 >= 890.17 AND col0 > 301) OR (col0 = 199))) AND (col3 < 144) AND (col4 < 587.63) OR (col0 IN (522,977)) AND col0 <= 352)) OR col0 < 461 OR col1 = 411.7)
----
114 values hashing to 174490a796ab73fcba86e6a9f9621d52

query II rowsort label-3200-1
SELECT pk, col0 FROM view_1_tab0_262
----
86 values hashing to d18d25c77755502e45f1d4f4f2c77441

query II rowsort label-3200-2
SELECT pk, col0 FROM view_2_tab0_262
----
114 values hashing to 174490a796ab73fcba86e6a9f9621d52

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE ((col4 > 839.10) AND col4 <= 637.72 AND col3 >= 790 OR col0 BETWEEN 174 AND 945) AND (col3 >= 121) AND (((((col1 <= 286.11 OR (((col1 IN (691.88,897.44))) AND col4 = 50.18) AND col3 IS NULL OR col3 >= 724 AND col4 >= 890.17 AND col0 > 301) OR (col0 = 199))) AND (col3 < 144) AND (col4 < 587.63) OR (col0 IN (522,977)) AND col0 <= 352)) OR col0 < 461 OR col1 = 411.7 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (((col4 > 839.10) AND col4 <= 637.72 AND col3 >= 790 OR col0 BETWEEN 174 AND 945) AND (col3 >= 121) AND (((((col1 <= 286.11 OR (((col1 IN (691.88,897.44))) AND col4 = 50.18) AND col3 IS NULL OR col3 >= 724 AND col4 >= 890.17 AND col0 > 301) OR (col0 = 199))) AND (col3 < 144) AND (col4 < 587.63) OR (col0 IN (522,977)) AND col0 <= 352)) OR col0 < 461 OR col1 = 411.7)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_262 UNION ALL SELECT pk, col0 FROM view_2_tab0_262
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE ((col4 > 839.10) AND col4 <= 637.72 AND col3 >= 790 OR col0 BETWEEN 174 AND 945) AND (col3 >= 121) AND (((((col1 <= 286.11 OR (((col1 IN (691.88,897.44))) AND col4 = 50.18) AND col3 IS NULL OR col3 >= 724 AND col4 >= 890.17 AND col0 > 301) OR (col0 = 199))) AND (col3 < 144) AND (col4 < 587.63) OR (col0 IN (522,977)) AND col0 <= 352)) OR col0 < 461 OR col1 = 411.7 UNION SELECT pk, col0 FROM tab0 WHERE NOT (((col4 > 839.10) AND col4 <= 637.72 AND col3 >= 790 OR col0 BETWEEN 174 AND 945) AND (col3 >= 121) AND (((((col1 <= 286.11 OR (((col1 IN (691.88,897.44))) AND col4 = 50.18) AND col3 IS NULL OR col3 >= 724 AND col4 >= 890.17 AND col0 > 301) OR (col0 = 199))) AND (col3 < 144) AND (col4 < 587.63) OR (col0 IN (522,977)) AND col0 <= 352)) OR col0 < 461 OR col1 = 411.7)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_262 UNION SELECT pk, col0 FROM view_2_tab0_262
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-3200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE ((col4 > 839.10) AND col4 <= 637.72 AND col3 >= 790 OR col0 BETWEEN 174 AND 945) AND (col3 >= 121) AND (((((col1 <= 286.11 OR (((col1 IN (691.88,897.44))) AND col4 = 50.18) AND col3 IS NULL OR col3 >= 724 AND col4 >= 890.17 AND col0 > 301) OR (col0 = 199))) AND (col3 < 144) AND (col4 < 587.63) OR (col0 IN (522,977)) AND col0 <= 352)) OR col0 < 461 OR col1 = 411.7 ) AS tab0_262
----
43 values hashing to 99471a9383c79b6f9698fe9496698fda

query I rowsort label-3200-3
SELECT * FROM view_3_tab0_262
----
43 values hashing to 99471a9383c79b6f9698fe9496698fda

query I rowsort label-3200-3
SELECT pk FROM tab0 WHERE ((col4 > 839.10) AND col4 <= 637.72 AND col3 >= 790 OR col0 BETWEEN 174 AND 945) AND (col3 >= 121) AND (((((col1 <= 286.11 OR (((col1 IN (691.88,897.44))) AND col4 = 50.18) AND col3 IS NULL OR col3 >= 724 AND col4 >= 890.17 AND col0 > 301) OR (col0 = 199))) AND (col3 < 144) AND (col4 < 587.63) OR (col0 IN (522,977)) AND col0 <= 352)) OR col0 < 461 OR col1 = 411.7
----
43 values hashing to 99471a9383c79b6f9698fe9496698fda

statement ok
DROP VIEW view_1_tab0_262

statement ok
DROP VIEW view_2_tab0_262

statement ok
DROP VIEW view_3_tab0_262

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_262') DROP VIEW view_1_tab1_262

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_262

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_262') DROP VIEW view_2_tab1_262

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_262

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_262') DROP VIEW view_3_tab1_262

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_262

statement ok
CREATE VIEW view_1_tab1_262 AS SELECT pk, col0 FROM tab1 WHERE ((col4 > 839.10) AND col4 <= 637.72 AND col3 >= 790 OR col0 BETWEEN 174 AND 945) AND (col3 >= 121) AND (((((col1 <= 286.11 OR (((col1 IN (691.88,897.44))) AND col4 = 50.18) AND col3 IS NULL OR col3 >= 724 AND col4 >= 890.17 AND col0 > 301) OR (col0 = 199))) AND (col3 < 144) AND (col4 < 587.63) OR (col0 IN (522,977)) AND col0 <= 352)) OR col0 < 461 OR col1 = 411.7

statement ok
CREATE VIEW view_2_tab1_262 AS SELECT pk, col0 FROM tab1 WHERE NOT (((col4 > 839.10) AND col4 <= 637.72 AND col3 >= 790 OR col0 BETWEEN 174 AND 945) AND (col3 >= 121) AND (((((col1 <= 286.11 OR (((col1 IN (691.88,897.44))) AND col4 = 50.18) AND col3 IS NULL OR col3 >= 724 AND col4 >= 890.17 AND col0 > 301) OR (col0 = 199))) AND (col3 < 144) AND (col4 < 587.63) OR (col0 IN (522,977)) AND col0 <= 352)) OR col0 < 461 OR col1 = 411.7)

statement ok
CREATE VIEW view_3_tab1_262 AS SELECT pk FROM view_1_tab1_262

query II rowsort label-3200-1
SELECT pk, col0 FROM tab1 WHERE ((col4 > 839.10) AND col4 <= 637.72 AND col3 >= 790 OR col0 BETWEEN 174 AND 945) AND (col3 >= 121) AND (((((col1 <= 286.11 OR (((col1 IN (691.88,897.44))) AND col4 = 50.18) AND col3 IS NULL OR col3 >= 724 AND col4 >= 890.17 AND col0 > 301) OR (col0 = 199))) AND (col3 < 144) AND (col4 < 587.63) OR (col0 IN (522,977)) AND col0 <= 352)) OR col0 < 461 OR col1 = 411.7
----
86 values hashing to d18d25c77755502e45f1d4f4f2c77441

query II rowsort label-3200-2
SELECT pk, col0 FROM tab1 WHERE NOT (((col4 > 839.10) AND col4 <= 637.72 AND col3 >= 790 OR col0 BETWEEN 174 AND 945) AND (col3 >= 121) AND (((((col1 <= 286.11 OR (((col1 IN (691.88,897.44))) AND col4 = 50.18) AND col3 IS NULL OR col3 >= 724 AND col4 >= 890.17 AND col0 > 301) OR (col0 = 199))) AND (col3 < 144) AND (col4 < 587.63) OR (col0 IN (522,977)) AND col0 <= 352)) OR col0 < 461 OR col1 = 411.7)
----
114 values hashing to 174490a796ab73fcba86e6a9f9621d52

query II rowsort label-3200-1
SELECT pk, col0 FROM view_1_tab1_262
----
86 values hashing to d18d25c77755502e45f1d4f4f2c77441

query II rowsort label-3200-2
SELECT pk, col0 FROM view_2_tab1_262
----
114 values hashing to 174490a796ab73fcba86e6a9f9621d52

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE ((col4 > 839.10) AND col4 <= 637.72 AND col3 >= 790 OR col0 BETWEEN 174 AND 945) AND (col3 >= 121) AND (((((col1 <= 286.11 OR (((col1 IN (691.88,897.44))) AND col4 = 50.18) AND col3 IS NULL OR col3 >= 724 AND col4 >= 890.17 AND col0 > 301) OR (col0 = 199))) AND (col3 < 144) AND (col4 < 587.63) OR (col0 IN (522,977)) AND col0 <= 352)) OR col0 < 461 OR col1 = 411.7 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (((col4 > 839.10) AND col4 <= 637.72 AND col3 >= 790 OR col0 BETWEEN 174 AND 945) AND (col3 >= 121) AND (((((col1 <= 286.11 OR (((col1 IN (691.88,897.44))) AND col4 = 50.18) AND col3 IS NULL OR col3 >= 724 AND col4 >= 890.17 AND col0 > 301) OR (col0 = 199))) AND (col3 < 144) AND (col4 < 587.63) OR (col0 IN (522,977)) AND col0 <= 352)) OR col0 < 461 OR col1 = 411.7)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_262 UNION ALL SELECT pk, col0 FROM view_2_tab1_262
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE ((col4 > 839.10) AND col4 <= 637.72 AND col3 >= 790 OR col0 BETWEEN 174 AND 945) AND (col3 >= 121) AND (((((col1 <= 286.11 OR (((col1 IN (691.88,897.44))) AND col4 = 50.18) AND col3 IS NULL OR col3 >= 724 AND col4 >= 890.17 AND col0 > 301) OR (col0 = 199))) AND (col3 < 144) AND (col4 < 587.63) OR (col0 IN (522,977)) AND col0 <= 352)) OR col0 < 461 OR col1 = 411.7 UNION SELECT pk, col0 FROM tab1 WHERE NOT (((col4 > 839.10) AND col4 <= 637.72 AND col3 >= 790 OR col0 BETWEEN 174 AND 945) AND (col3 >= 121) AND (((((col1 <= 286.11 OR (((col1 IN (691.88,897.44))) AND col4 = 50.18) AND col3 IS NULL OR col3 >= 724 AND col4 >= 890.17 AND col0 > 301) OR (col0 = 199))) AND (col3 < 144) AND (col4 < 587.63) OR (col0 IN (522,977)) AND col0 <= 352)) OR col0 < 461 OR col1 = 411.7)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_262 UNION SELECT pk, col0 FROM view_2_tab1_262
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-3200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE ((col4 > 839.10) AND col4 <= 637.72 AND col3 >= 790 OR col0 BETWEEN 174 AND 945) AND (col3 >= 121) AND (((((col1 <= 286.11 OR (((col1 IN (691.88,897.44))) AND col4 = 50.18) AND col3 IS NULL OR col3 >= 724 AND col4 >= 890.17 AND col0 > 301) OR (col0 = 199))) AND (col3 < 144) AND (col4 < 587.63) OR (col0 IN (522,977)) AND col0 <= 352)) OR col0 < 461 OR col1 = 411.7 ) AS tab1_262
----
43 values hashing to 99471a9383c79b6f9698fe9496698fda

query I rowsort label-3200-3
SELECT * FROM view_3_tab1_262
----
43 values hashing to 99471a9383c79b6f9698fe9496698fda

query I rowsort label-3200-3
SELECT pk FROM tab1 WHERE ((col4 > 839.10) AND col4 <= 637.72 AND col3 >= 790 OR col0 BETWEEN 174 AND 945) AND (col3 >= 121) AND (((((col1 <= 286.11 OR (((col1 IN (691.88,897.44))) AND col4 = 50.18) AND col3 IS NULL OR col3 >= 724 AND col4 >= 890.17 AND col0 > 301) OR (col0 = 199))) AND (col3 < 144) AND (col4 < 587.63) OR (col0 IN (522,977)) AND col0 <= 352)) OR col0 < 461 OR col1 = 411.7
----
43 values hashing to 99471a9383c79b6f9698fe9496698fda

statement ok
DROP VIEW view_1_tab1_262

statement ok
DROP VIEW view_2_tab1_262

statement ok
DROP VIEW view_3_tab1_262

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_262') DROP VIEW view_1_tab2_262

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_262

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_262') DROP VIEW view_2_tab2_262

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_262

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_262') DROP VIEW view_3_tab2_262

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_262

statement ok
CREATE VIEW view_1_tab2_262 AS SELECT pk, col0 FROM tab2 WHERE ((col4 > 839.10) AND col4 <= 637.72 AND col3 >= 790 OR col0 BETWEEN 174 AND 945) AND (col3 >= 121) AND (((((col1 <= 286.11 OR (((col1 IN (691.88,897.44))) AND col4 = 50.18) AND col3 IS NULL OR col3 >= 724 AND col4 >= 890.17 AND col0 > 301) OR (col0 = 199))) AND (col3 < 144) AND (col4 < 587.63) OR (col0 IN (522,977)) AND col0 <= 352)) OR col0 < 461 OR col1 = 411.7

statement ok
CREATE VIEW view_2_tab2_262 AS SELECT pk, col0 FROM tab2 WHERE NOT (((col4 > 839.10) AND col4 <= 637.72 AND col3 >= 790 OR col0 BETWEEN 174 AND 945) AND (col3 >= 121) AND (((((col1 <= 286.11 OR (((col1 IN (691.88,897.44))) AND col4 = 50.18) AND col3 IS NULL OR col3 >= 724 AND col4 >= 890.17 AND col0 > 301) OR (col0 = 199))) AND (col3 < 144) AND (col4 < 587.63) OR (col0 IN (522,977)) AND col0 <= 352)) OR col0 < 461 OR col1 = 411.7)

statement ok
CREATE VIEW view_3_tab2_262 AS SELECT pk FROM view_1_tab2_262

query II rowsort label-3200-1
SELECT pk, col0 FROM tab2 WHERE ((col4 > 839.10) AND col4 <= 637.72 AND col3 >= 790 OR col0 BETWEEN 174 AND 945) AND (col3 >= 121) AND (((((col1 <= 286.11 OR (((col1 IN (691.88,897.44))) AND col4 = 50.18) AND col3 IS NULL OR col3 >= 724 AND col4 >= 890.17 AND col0 > 301) OR (col0 = 199))) AND (col3 < 144) AND (col4 < 587.63) OR (col0 IN (522,977)) AND col0 <= 352)) OR col0 < 461 OR col1 = 411.7
----
86 values hashing to d18d25c77755502e45f1d4f4f2c77441

query II rowsort label-3200-2
SELECT pk, col0 FROM tab2 WHERE NOT (((col4 > 839.10) AND col4 <= 637.72 AND col3 >= 790 OR col0 BETWEEN 174 AND 945) AND (col3 >= 121) AND (((((col1 <= 286.11 OR (((col1 IN (691.88,897.44))) AND col4 = 50.18) AND col3 IS NULL OR col3 >= 724 AND col4 >= 890.17 AND col0 > 301) OR (col0 = 199))) AND (col3 < 144) AND (col4 < 587.63) OR (col0 IN (522,977)) AND col0 <= 352)) OR col0 < 461 OR col1 = 411.7)
----
114 values hashing to 174490a796ab73fcba86e6a9f9621d52

query II rowsort label-3200-1
SELECT pk, col0 FROM view_1_tab2_262
----
86 values hashing to d18d25c77755502e45f1d4f4f2c77441

query II rowsort label-3200-2
SELECT pk, col0 FROM view_2_tab2_262
----
114 values hashing to 174490a796ab73fcba86e6a9f9621d52

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE ((col4 > 839.10) AND col4 <= 637.72 AND col3 >= 790 OR col0 BETWEEN 174 AND 945) AND (col3 >= 121) AND (((((col1 <= 286.11 OR (((col1 IN (691.88,897.44))) AND col4 = 50.18) AND col3 IS NULL OR col3 >= 724 AND col4 >= 890.17 AND col0 > 301) OR (col0 = 199))) AND (col3 < 144) AND (col4 < 587.63) OR (col0 IN (522,977)) AND col0 <= 352)) OR col0 < 461 OR col1 = 411.7 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (((col4 > 839.10) AND col4 <= 637.72 AND col3 >= 790 OR col0 BETWEEN 174 AND 945) AND (col3 >= 121) AND (((((col1 <= 286.11 OR (((col1 IN (691.88,897.44))) AND col4 = 50.18) AND col3 IS NULL OR col3 >= 724 AND col4 >= 890.17 AND col0 > 301) OR (col0 = 199))) AND (col3 < 144) AND (col4 < 587.63) OR (col0 IN (522,977)) AND col0 <= 352)) OR col0 < 461 OR col1 = 411.7)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_262 UNION ALL SELECT pk, col0 FROM view_2_tab2_262
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE ((col4 > 839.10) AND col4 <= 637.72 AND col3 >= 790 OR col0 BETWEEN 174 AND 945) AND (col3 >= 121) AND (((((col1 <= 286.11 OR (((col1 IN (691.88,897.44))) AND col4 = 50.18) AND col3 IS NULL OR col3 >= 724 AND col4 >= 890.17 AND col0 > 301) OR (col0 = 199))) AND (col3 < 144) AND (col4 < 587.63) OR (col0 IN (522,977)) AND col0 <= 352)) OR col0 < 461 OR col1 = 411.7 UNION SELECT pk, col0 FROM tab2 WHERE NOT (((col4 > 839.10) AND col4 <= 637.72 AND col3 >= 790 OR col0 BETWEEN 174 AND 945) AND (col3 >= 121) AND (((((col1 <= 286.11 OR (((col1 IN (691.88,897.44))) AND col4 = 50.18) AND col3 IS NULL OR col3 >= 724 AND col4 >= 890.17 AND col0 > 301) OR (col0 = 199))) AND (col3 < 144) AND (col4 < 587.63) OR (col0 IN (522,977)) AND col0 <= 352)) OR col0 < 461 OR col1 = 411.7)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_262 UNION SELECT pk, col0 FROM view_2_tab2_262
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-3200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE ((col4 > 839.10) AND col4 <= 637.72 AND col3 >= 790 OR col0 BETWEEN 174 AND 945) AND (col3 >= 121) AND (((((col1 <= 286.11 OR (((col1 IN (691.88,897.44))) AND col4 = 50.18) AND col3 IS NULL OR col3 >= 724 AND col4 >= 890.17 AND col0 > 301) OR (col0 = 199))) AND (col3 < 144) AND (col4 < 587.63) OR (col0 IN (522,977)) AND col0 <= 352)) OR col0 < 461 OR col1 = 411.7 ) AS tab2_262
----
43 values hashing to 99471a9383c79b6f9698fe9496698fda

query I rowsort label-3200-3
SELECT * FROM view_3_tab2_262
----
43 values hashing to 99471a9383c79b6f9698fe9496698fda

query I rowsort label-3200-3
SELECT pk FROM tab2 WHERE ((col4 > 839.10) AND col4 <= 637.72 AND col3 >= 790 OR col0 BETWEEN 174 AND 945) AND (col3 >= 121) AND (((((col1 <= 286.11 OR (((col1 IN (691.88,897.44))) AND col4 = 50.18) AND col3 IS NULL OR col3 >= 724 AND col4 >= 890.17 AND col0 > 301) OR (col0 = 199))) AND (col3 < 144) AND (col4 < 587.63) OR (col0 IN (522,977)) AND col0 <= 352)) OR col0 < 461 OR col1 = 411.7
----
43 values hashing to 99471a9383c79b6f9698fe9496698fda

statement ok
DROP VIEW view_1_tab2_262

statement ok
DROP VIEW view_2_tab2_262

statement ok
DROP VIEW view_3_tab2_262

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_262') DROP VIEW view_1_tab3_262

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_262

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_262') DROP VIEW view_2_tab3_262

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_262

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_262') DROP VIEW view_3_tab3_262

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_262

statement ok
CREATE VIEW view_1_tab3_262 AS SELECT pk, col0 FROM tab3 WHERE ((col4 > 839.10) AND col4 <= 637.72 AND col3 >= 790 OR col0 BETWEEN 174 AND 945) AND (col3 >= 121) AND (((((col1 <= 286.11 OR (((col1 IN (691.88,897.44))) AND col4 = 50.18) AND col3 IS NULL OR col3 >= 724 AND col4 >= 890.17 AND col0 > 301) OR (col0 = 199))) AND (col3 < 144) AND (col4 < 587.63) OR (col0 IN (522,977)) AND col0 <= 352)) OR col0 < 461 OR col1 = 411.7

statement ok
CREATE VIEW view_2_tab3_262 AS SELECT pk, col0 FROM tab3 WHERE NOT (((col4 > 839.10) AND col4 <= 637.72 AND col3 >= 790 OR col0 BETWEEN 174 AND 945) AND (col3 >= 121) AND (((((col1 <= 286.11 OR (((col1 IN (691.88,897.44))) AND col4 = 50.18) AND col3 IS NULL OR col3 >= 724 AND col4 >= 890.17 AND col0 > 301) OR (col0 = 199))) AND (col3 < 144) AND (col4 < 587.63) OR (col0 IN (522,977)) AND col0 <= 352)) OR col0 < 461 OR col1 = 411.7)

statement ok
CREATE VIEW view_3_tab3_262 AS SELECT pk FROM view_1_tab3_262

query II rowsort label-3200-1
SELECT pk, col0 FROM tab3 WHERE ((col4 > 839.10) AND col4 <= 637.72 AND col3 >= 790 OR col0 BETWEEN 174 AND 945) AND (col3 >= 121) AND (((((col1 <= 286.11 OR (((col1 IN (691.88,897.44))) AND col4 = 50.18) AND col3 IS NULL OR col3 >= 724 AND col4 >= 890.17 AND col0 > 301) OR (col0 = 199))) AND (col3 < 144) AND (col4 < 587.63) OR (col0 IN (522,977)) AND col0 <= 352)) OR col0 < 461 OR col1 = 411.7
----
86 values hashing to d18d25c77755502e45f1d4f4f2c77441

query II rowsort label-3200-2
SELECT pk, col0 FROM tab3 WHERE NOT (((col4 > 839.10) AND col4 <= 637.72 AND col3 >= 790 OR col0 BETWEEN 174 AND 945) AND (col3 >= 121) AND (((((col1 <= 286.11 OR (((col1 IN (691.88,897.44))) AND col4 = 50.18) AND col3 IS NULL OR col3 >= 724 AND col4 >= 890.17 AND col0 > 301) OR (col0 = 199))) AND (col3 < 144) AND (col4 < 587.63) OR (col0 IN (522,977)) AND col0 <= 352)) OR col0 < 461 OR col1 = 411.7)
----
114 values hashing to 174490a796ab73fcba86e6a9f9621d52

query II rowsort label-3200-1
SELECT pk, col0 FROM view_1_tab3_262
----
86 values hashing to d18d25c77755502e45f1d4f4f2c77441

query II rowsort label-3200-2
SELECT pk, col0 FROM view_2_tab3_262
----
114 values hashing to 174490a796ab73fcba86e6a9f9621d52

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE ((col4 > 839.10) AND col4 <= 637.72 AND col3 >= 790 OR col0 BETWEEN 174 AND 945) AND (col3 >= 121) AND (((((col1 <= 286.11 OR (((col1 IN (691.88,897.44))) AND col4 = 50.18) AND col3 IS NULL OR col3 >= 724 AND col4 >= 890.17 AND col0 > 301) OR (col0 = 199))) AND (col3 < 144) AND (col4 < 587.63) OR (col0 IN (522,977)) AND col0 <= 352)) OR col0 < 461 OR col1 = 411.7 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (((col4 > 839.10) AND col4 <= 637.72 AND col3 >= 790 OR col0 BETWEEN 174 AND 945) AND (col3 >= 121) AND (((((col1 <= 286.11 OR (((col1 IN (691.88,897.44))) AND col4 = 50.18) AND col3 IS NULL OR col3 >= 724 AND col4 >= 890.17 AND col0 > 301) OR (col0 = 199))) AND (col3 < 144) AND (col4 < 587.63) OR (col0 IN (522,977)) AND col0 <= 352)) OR col0 < 461 OR col1 = 411.7)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_262 UNION ALL SELECT pk, col0 FROM view_2_tab3_262
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE ((col4 > 839.10) AND col4 <= 637.72 AND col3 >= 790 OR col0 BETWEEN 174 AND 945) AND (col3 >= 121) AND (((((col1 <= 286.11 OR (((col1 IN (691.88,897.44))) AND col4 = 50.18) AND col3 IS NULL OR col3 >= 724 AND col4 >= 890.17 AND col0 > 301) OR (col0 = 199))) AND (col3 < 144) AND (col4 < 587.63) OR (col0 IN (522,977)) AND col0 <= 352)) OR col0 < 461 OR col1 = 411.7 UNION SELECT pk, col0 FROM tab3 WHERE NOT (((col4 > 839.10) AND col4 <= 637.72 AND col3 >= 790 OR col0 BETWEEN 174 AND 945) AND (col3 >= 121) AND (((((col1 <= 286.11 OR (((col1 IN (691.88,897.44))) AND col4 = 50.18) AND col3 IS NULL OR col3 >= 724 AND col4 >= 890.17 AND col0 > 301) OR (col0 = 199))) AND (col3 < 144) AND (col4 < 587.63) OR (col0 IN (522,977)) AND col0 <= 352)) OR col0 < 461 OR col1 = 411.7)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_262 UNION SELECT pk, col0 FROM view_2_tab3_262
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-3200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE ((col4 > 839.10) AND col4 <= 637.72 AND col3 >= 790 OR col0 BETWEEN 174 AND 945) AND (col3 >= 121) AND (((((col1 <= 286.11 OR (((col1 IN (691.88,897.44))) AND col4 = 50.18) AND col3 IS NULL OR col3 >= 724 AND col4 >= 890.17 AND col0 > 301) OR (col0 = 199))) AND (col3 < 144) AND (col4 < 587.63) OR (col0 IN (522,977)) AND col0 <= 352)) OR col0 < 461 OR col1 = 411.7 ) AS tab3_262
----
43 values hashing to 99471a9383c79b6f9698fe9496698fda

query I rowsort label-3200-3
SELECT * FROM view_3_tab3_262
----
43 values hashing to 99471a9383c79b6f9698fe9496698fda

query I rowsort label-3200-3
SELECT pk FROM tab3 WHERE ((col4 > 839.10) AND col4 <= 637.72 AND col3 >= 790 OR col0 BETWEEN 174 AND 945) AND (col3 >= 121) AND (((((col1 <= 286.11 OR (((col1 IN (691.88,897.44))) AND col4 = 50.18) AND col3 IS NULL OR col3 >= 724 AND col4 >= 890.17 AND col0 > 301) OR (col0 = 199))) AND (col3 < 144) AND (col4 < 587.63) OR (col0 IN (522,977)) AND col0 <= 352)) OR col0 < 461 OR col1 = 411.7
----
43 values hashing to 99471a9383c79b6f9698fe9496698fda

statement ok
DROP VIEW view_1_tab3_262

statement ok
DROP VIEW view_2_tab3_262

statement ok
DROP VIEW view_3_tab3_262

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_262') DROP VIEW view_1_tab4_262

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_262

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_262') DROP VIEW view_2_tab4_262

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_262

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_262') DROP VIEW view_3_tab4_262

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_262

statement ok
CREATE VIEW view_1_tab4_262 AS SELECT pk, col0 FROM tab4 WHERE ((col4 > 839.10) AND col4 <= 637.72 AND col3 >= 790 OR col0 BETWEEN 174 AND 945) AND (col3 >= 121) AND (((((col1 <= 286.11 OR (((col1 IN (691.88,897.44))) AND col4 = 50.18) AND col3 IS NULL OR col3 >= 724 AND col4 >= 890.17 AND col0 > 301) OR (col0 = 199))) AND (col3 < 144) AND (col4 < 587.63) OR (col0 IN (522,977)) AND col0 <= 352)) OR col0 < 461 OR col1 = 411.7

statement ok
CREATE VIEW view_2_tab4_262 AS SELECT pk, col0 FROM tab4 WHERE NOT (((col4 > 839.10) AND col4 <= 637.72 AND col3 >= 790 OR col0 BETWEEN 174 AND 945) AND (col3 >= 121) AND (((((col1 <= 286.11 OR (((col1 IN (691.88,897.44))) AND col4 = 50.18) AND col3 IS NULL OR col3 >= 724 AND col4 >= 890.17 AND col0 > 301) OR (col0 = 199))) AND (col3 < 144) AND (col4 < 587.63) OR (col0 IN (522,977)) AND col0 <= 352)) OR col0 < 461 OR col1 = 411.7)

statement ok
CREATE VIEW view_3_tab4_262 AS SELECT pk FROM view_1_tab4_262

query II rowsort label-3200-1
SELECT pk, col0 FROM tab4 WHERE ((col4 > 839.10) AND col4 <= 637.72 AND col3 >= 790 OR col0 BETWEEN 174 AND 945) AND (col3 >= 121) AND (((((col1 <= 286.11 OR (((col1 IN (691.88,897.44))) AND col4 = 50.18) AND col3 IS NULL OR col3 >= 724 AND col4 >= 890.17 AND col0 > 301) OR (col0 = 199))) AND (col3 < 144) AND (col4 < 587.63) OR (col0 IN (522,977)) AND col0 <= 352)) OR col0 < 461 OR col1 = 411.7
----
86 values hashing to d18d25c77755502e45f1d4f4f2c77441

query II rowsort label-3200-2
SELECT pk, col0 FROM tab4 WHERE NOT (((col4 > 839.10) AND col4 <= 637.72 AND col3 >= 790 OR col0 BETWEEN 174 AND 945) AND (col3 >= 121) AND (((((col1 <= 286.11 OR (((col1 IN (691.88,897.44))) AND col4 = 50.18) AND col3 IS NULL OR col3 >= 724 AND col4 >= 890.17 AND col0 > 301) OR (col0 = 199))) AND (col3 < 144) AND (col4 < 587.63) OR (col0 IN (522,977)) AND col0 <= 352)) OR col0 < 461 OR col1 = 411.7)
----
114 values hashing to 174490a796ab73fcba86e6a9f9621d52

query II rowsort label-3200-1
SELECT pk, col0 FROM view_1_tab4_262
----
86 values hashing to d18d25c77755502e45f1d4f4f2c77441

query II rowsort label-3200-2
SELECT pk, col0 FROM view_2_tab4_262
----
114 values hashing to 174490a796ab73fcba86e6a9f9621d52

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE ((col4 > 839.10) AND col4 <= 637.72 AND col3 >= 790 OR col0 BETWEEN 174 AND 945) AND (col3 >= 121) AND (((((col1 <= 286.11 OR (((col1 IN (691.88,897.44))) AND col4 = 50.18) AND col3 IS NULL OR col3 >= 724 AND col4 >= 890.17 AND col0 > 301) OR (col0 = 199))) AND (col3 < 144) AND (col4 < 587.63) OR (col0 IN (522,977)) AND col0 <= 352)) OR col0 < 461 OR col1 = 411.7 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (((col4 > 839.10) AND col4 <= 637.72 AND col3 >= 790 OR col0 BETWEEN 174 AND 945) AND (col3 >= 121) AND (((((col1 <= 286.11 OR (((col1 IN (691.88,897.44))) AND col4 = 50.18) AND col3 IS NULL OR col3 >= 724 AND col4 >= 890.17 AND col0 > 301) OR (col0 = 199))) AND (col3 < 144) AND (col4 < 587.63) OR (col0 IN (522,977)) AND col0 <= 352)) OR col0 < 461 OR col1 = 411.7)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_262 UNION ALL SELECT pk, col0 FROM view_2_tab4_262
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE ((col4 > 839.10) AND col4 <= 637.72 AND col3 >= 790 OR col0 BETWEEN 174 AND 945) AND (col3 >= 121) AND (((((col1 <= 286.11 OR (((col1 IN (691.88,897.44))) AND col4 = 50.18) AND col3 IS NULL OR col3 >= 724 AND col4 >= 890.17 AND col0 > 301) OR (col0 = 199))) AND (col3 < 144) AND (col4 < 587.63) OR (col0 IN (522,977)) AND col0 <= 352)) OR col0 < 461 OR col1 = 411.7 UNION SELECT pk, col0 FROM tab4 WHERE NOT (((col4 > 839.10) AND col4 <= 637.72 AND col3 >= 790 OR col0 BETWEEN 174 AND 945) AND (col3 >= 121) AND (((((col1 <= 286.11 OR (((col1 IN (691.88,897.44))) AND col4 = 50.18) AND col3 IS NULL OR col3 >= 724 AND col4 >= 890.17 AND col0 > 301) OR (col0 = 199))) AND (col3 < 144) AND (col4 < 587.63) OR (col0 IN (522,977)) AND col0 <= 352)) OR col0 < 461 OR col1 = 411.7)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_262 UNION SELECT pk, col0 FROM view_2_tab4_262
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-3200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE ((col4 > 839.10) AND col4 <= 637.72 AND col3 >= 790 OR col0 BETWEEN 174 AND 945) AND (col3 >= 121) AND (((((col1 <= 286.11 OR (((col1 IN (691.88,897.44))) AND col4 = 50.18) AND col3 IS NULL OR col3 >= 724 AND col4 >= 890.17 AND col0 > 301) OR (col0 = 199))) AND (col3 < 144) AND (col4 < 587.63) OR (col0 IN (522,977)) AND col0 <= 352)) OR col0 < 461 OR col1 = 411.7 ) AS tab4_262
----
43 values hashing to 99471a9383c79b6f9698fe9496698fda

query I rowsort label-3200-3
SELECT * FROM view_3_tab4_262
----
43 values hashing to 99471a9383c79b6f9698fe9496698fda

query I rowsort label-3200-3
SELECT pk FROM tab4 WHERE ((col4 > 839.10) AND col4 <= 637.72 AND col3 >= 790 OR col0 BETWEEN 174 AND 945) AND (col3 >= 121) AND (((((col1 <= 286.11 OR (((col1 IN (691.88,897.44))) AND col4 = 50.18) AND col3 IS NULL OR col3 >= 724 AND col4 >= 890.17 AND col0 > 301) OR (col0 = 199))) AND (col3 < 144) AND (col4 < 587.63) OR (col0 IN (522,977)) AND col0 <= 352)) OR col0 < 461 OR col1 = 411.7
----
43 values hashing to 99471a9383c79b6f9698fe9496698fda

statement ok
DROP VIEW view_1_tab4_262

statement ok
DROP VIEW view_2_tab4_262

statement ok
DROP VIEW view_3_tab4_262

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_263') DROP VIEW view_1_tab0_263

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_263

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_263') DROP VIEW view_2_tab0_263

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_263

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_263') DROP VIEW view_3_tab0_263

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_263

statement ok
CREATE VIEW view_1_tab0_263 AS SELECT pk, col0 FROM tab0 WHERE (((col3 <= 275) AND (col3 > 343) OR col3 <= 418) OR col1 IS NULL OR col0 = 469 AND col3 IN (894,78,357))

statement ok
CREATE VIEW view_2_tab0_263 AS SELECT pk, col0 FROM tab0 WHERE NOT ((((col3 <= 275) AND (col3 > 343) OR col3 <= 418) OR col1 IS NULL OR col0 = 469 AND col3 IN (894,78,357)))

statement ok
CREATE VIEW view_3_tab0_263 AS SELECT pk FROM view_1_tab0_263

query II rowsort label-3300-1
SELECT pk, col0 FROM tab0 WHERE (((col3 <= 275) AND (col3 > 343) OR col3 <= 418) OR col1 IS NULL OR col0 = 469 AND col3 IN (894,78,357))
----
92 values hashing to c187cf7c45c26519627424ed1ca39376

query II rowsort label-3300-2
SELECT pk, col0 FROM tab0 WHERE NOT ((((col3 <= 275) AND (col3 > 343) OR col3 <= 418) OR col1 IS NULL OR col0 = 469 AND col3 IN (894,78,357)))
----
108 values hashing to 65f7dc029ff81d75abbab45e6e009869

query II rowsort label-3300-1
SELECT pk, col0 FROM view_1_tab0_263
----
92 values hashing to c187cf7c45c26519627424ed1ca39376

query II rowsort label-3300-2
SELECT pk, col0 FROM view_2_tab0_263
----
108 values hashing to 65f7dc029ff81d75abbab45e6e009869

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (((col3 <= 275) AND (col3 > 343) OR col3 <= 418) OR col1 IS NULL OR col0 = 469 AND col3 IN (894,78,357)) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT ((((col3 <= 275) AND (col3 > 343) OR col3 <= 418) OR col1 IS NULL OR col0 = 469 AND col3 IN (894,78,357)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_263 UNION ALL SELECT pk, col0 FROM view_2_tab0_263
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (((col3 <= 275) AND (col3 > 343) OR col3 <= 418) OR col1 IS NULL OR col0 = 469 AND col3 IN (894,78,357)) UNION SELECT pk, col0 FROM tab0 WHERE NOT ((((col3 <= 275) AND (col3 > 343) OR col3 <= 418) OR col1 IS NULL OR col0 = 469 AND col3 IN (894,78,357)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_263 UNION SELECT pk, col0 FROM view_2_tab0_263
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-3300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE (((col3 <= 275) AND (col3 > 343) OR col3 <= 418) OR col1 IS NULL OR col0 = 469 AND col3 IN (894,78,357)) ) AS tab0_263
----
46 values hashing to 9db1ecd96a41c7ec2ce72e3dc018a2cf

query I rowsort label-3300-3
SELECT * FROM view_3_tab0_263
----
46 values hashing to 9db1ecd96a41c7ec2ce72e3dc018a2cf

query I rowsort label-3300-3
SELECT pk FROM tab0 WHERE (((col3 <= 275) AND (col3 > 343) OR col3 <= 418) OR col1 IS NULL OR col0 = 469 AND col3 IN (894,78,357))
----
46 values hashing to 9db1ecd96a41c7ec2ce72e3dc018a2cf

statement ok
DROP VIEW view_1_tab0_263

statement ok
DROP VIEW view_2_tab0_263

statement ok
DROP VIEW view_3_tab0_263

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_263') DROP VIEW view_1_tab1_263

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_263

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_263') DROP VIEW view_2_tab1_263

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_263

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_263') DROP VIEW view_3_tab1_263

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_263

statement ok
CREATE VIEW view_1_tab1_263 AS SELECT pk, col0 FROM tab1 WHERE (((col3 <= 275) AND (col3 > 343) OR col3 <= 418) OR col1 IS NULL OR col0 = 469 AND col3 IN (894,78,357))

statement ok
CREATE VIEW view_2_tab1_263 AS SELECT pk, col0 FROM tab1 WHERE NOT ((((col3 <= 275) AND (col3 > 343) OR col3 <= 418) OR col1 IS NULL OR col0 = 469 AND col3 IN (894,78,357)))

statement ok
CREATE VIEW view_3_tab1_263 AS SELECT pk FROM view_1_tab1_263

query II rowsort label-3300-1
SELECT pk, col0 FROM tab1 WHERE (((col3 <= 275) AND (col3 > 343) OR col3 <= 418) OR col1 IS NULL OR col0 = 469 AND col3 IN (894,78,357))
----
92 values hashing to c187cf7c45c26519627424ed1ca39376

query II rowsort label-3300-2
SELECT pk, col0 FROM tab1 WHERE NOT ((((col3 <= 275) AND (col3 > 343) OR col3 <= 418) OR col1 IS NULL OR col0 = 469 AND col3 IN (894,78,357)))
----
108 values hashing to 65f7dc029ff81d75abbab45e6e009869

query II rowsort label-3300-1
SELECT pk, col0 FROM view_1_tab1_263
----
92 values hashing to c187cf7c45c26519627424ed1ca39376

query II rowsort label-3300-2
SELECT pk, col0 FROM view_2_tab1_263
----
108 values hashing to 65f7dc029ff81d75abbab45e6e009869

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (((col3 <= 275) AND (col3 > 343) OR col3 <= 418) OR col1 IS NULL OR col0 = 469 AND col3 IN (894,78,357)) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT ((((col3 <= 275) AND (col3 > 343) OR col3 <= 418) OR col1 IS NULL OR col0 = 469 AND col3 IN (894,78,357)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_263 UNION ALL SELECT pk, col0 FROM view_2_tab1_263
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (((col3 <= 275) AND (col3 > 343) OR col3 <= 418) OR col1 IS NULL OR col0 = 469 AND col3 IN (894,78,357)) UNION SELECT pk, col0 FROM tab1 WHERE NOT ((((col3 <= 275) AND (col3 > 343) OR col3 <= 418) OR col1 IS NULL OR col0 = 469 AND col3 IN (894,78,357)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_263 UNION SELECT pk, col0 FROM view_2_tab1_263
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-3300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE (((col3 <= 275) AND (col3 > 343) OR col3 <= 418) OR col1 IS NULL OR col0 = 469 AND col3 IN (894,78,357)) ) AS tab1_263
----
46 values hashing to 9db1ecd96a41c7ec2ce72e3dc018a2cf

query I rowsort label-3300-3
SELECT * FROM view_3_tab1_263
----
46 values hashing to 9db1ecd96a41c7ec2ce72e3dc018a2cf

query I rowsort label-3300-3
SELECT pk FROM tab1 WHERE (((col3 <= 275) AND (col3 > 343) OR col3 <= 418) OR col1 IS NULL OR col0 = 469 AND col3 IN (894,78,357))
----
46 values hashing to 9db1ecd96a41c7ec2ce72e3dc018a2cf

statement ok
DROP VIEW view_1_tab1_263

statement ok
DROP VIEW view_2_tab1_263

statement ok
DROP VIEW view_3_tab1_263

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_263') DROP VIEW view_1_tab2_263

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_263

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_263') DROP VIEW view_2_tab2_263

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_263

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_263') DROP VIEW view_3_tab2_263

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_263

statement ok
CREATE VIEW view_1_tab2_263 AS SELECT pk, col0 FROM tab2 WHERE (((col3 <= 275) AND (col3 > 343) OR col3 <= 418) OR col1 IS NULL OR col0 = 469 AND col3 IN (894,78,357))

statement ok
CREATE VIEW view_2_tab2_263 AS SELECT pk, col0 FROM tab2 WHERE NOT ((((col3 <= 275) AND (col3 > 343) OR col3 <= 418) OR col1 IS NULL OR col0 = 469 AND col3 IN (894,78,357)))

statement ok
CREATE VIEW view_3_tab2_263 AS SELECT pk FROM view_1_tab2_263

query II rowsort label-3300-1
SELECT pk, col0 FROM tab2 WHERE (((col3 <= 275) AND (col3 > 343) OR col3 <= 418) OR col1 IS NULL OR col0 = 469 AND col3 IN (894,78,357))
----
92 values hashing to c187cf7c45c26519627424ed1ca39376

query II rowsort label-3300-2
SELECT pk, col0 FROM tab2 WHERE NOT ((((col3 <= 275) AND (col3 > 343) OR col3 <= 418) OR col1 IS NULL OR col0 = 469 AND col3 IN (894,78,357)))
----
108 values hashing to 65f7dc029ff81d75abbab45e6e009869

query II rowsort label-3300-1
SELECT pk, col0 FROM view_1_tab2_263
----
92 values hashing to c187cf7c45c26519627424ed1ca39376

query II rowsort label-3300-2
SELECT pk, col0 FROM view_2_tab2_263
----
108 values hashing to 65f7dc029ff81d75abbab45e6e009869

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (((col3 <= 275) AND (col3 > 343) OR col3 <= 418) OR col1 IS NULL OR col0 = 469 AND col3 IN (894,78,357)) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT ((((col3 <= 275) AND (col3 > 343) OR col3 <= 418) OR col1 IS NULL OR col0 = 469 AND col3 IN (894,78,357)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_263 UNION ALL SELECT pk, col0 FROM view_2_tab2_263
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (((col3 <= 275) AND (col3 > 343) OR col3 <= 418) OR col1 IS NULL OR col0 = 469 AND col3 IN (894,78,357)) UNION SELECT pk, col0 FROM tab2 WHERE NOT ((((col3 <= 275) AND (col3 > 343) OR col3 <= 418) OR col1 IS NULL OR col0 = 469 AND col3 IN (894,78,357)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_263 UNION SELECT pk, col0 FROM view_2_tab2_263
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-3300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE (((col3 <= 275) AND (col3 > 343) OR col3 <= 418) OR col1 IS NULL OR col0 = 469 AND col3 IN (894,78,357)) ) AS tab2_263
----
46 values hashing to 9db1ecd96a41c7ec2ce72e3dc018a2cf

query I rowsort label-3300-3
SELECT * FROM view_3_tab2_263
----
46 values hashing to 9db1ecd96a41c7ec2ce72e3dc018a2cf

query I rowsort label-3300-3
SELECT pk FROM tab2 WHERE (((col3 <= 275) AND (col3 > 343) OR col3 <= 418) OR col1 IS NULL OR col0 = 469 AND col3 IN (894,78,357))
----
46 values hashing to 9db1ecd96a41c7ec2ce72e3dc018a2cf

statement ok
DROP VIEW view_1_tab2_263

statement ok
DROP VIEW view_2_tab2_263

statement ok
DROP VIEW view_3_tab2_263

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_263') DROP VIEW view_1_tab3_263

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_263

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_263') DROP VIEW view_2_tab3_263

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_263

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_263') DROP VIEW view_3_tab3_263

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_263

statement ok
CREATE VIEW view_1_tab3_263 AS SELECT pk, col0 FROM tab3 WHERE (((col3 <= 275) AND (col3 > 343) OR col3 <= 418) OR col1 IS NULL OR col0 = 469 AND col3 IN (894,78,357))

statement ok
CREATE VIEW view_2_tab3_263 AS SELECT pk, col0 FROM tab3 WHERE NOT ((((col3 <= 275) AND (col3 > 343) OR col3 <= 418) OR col1 IS NULL OR col0 = 469 AND col3 IN (894,78,357)))

statement ok
CREATE VIEW view_3_tab3_263 AS SELECT pk FROM view_1_tab3_263

query II rowsort label-3300-1
SELECT pk, col0 FROM tab3 WHERE (((col3 <= 275) AND (col3 > 343) OR col3 <= 418) OR col1 IS NULL OR col0 = 469 AND col3 IN (894,78,357))
----
92 values hashing to c187cf7c45c26519627424ed1ca39376

query II rowsort label-3300-2
SELECT pk, col0 FROM tab3 WHERE NOT ((((col3 <= 275) AND (col3 > 343) OR col3 <= 418) OR col1 IS NULL OR col0 = 469 AND col3 IN (894,78,357)))
----
108 values hashing to 65f7dc029ff81d75abbab45e6e009869

query II rowsort label-3300-1
SELECT pk, col0 FROM view_1_tab3_263
----
92 values hashing to c187cf7c45c26519627424ed1ca39376

query II rowsort label-3300-2
SELECT pk, col0 FROM view_2_tab3_263
----
108 values hashing to 65f7dc029ff81d75abbab45e6e009869

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (((col3 <= 275) AND (col3 > 343) OR col3 <= 418) OR col1 IS NULL OR col0 = 469 AND col3 IN (894,78,357)) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT ((((col3 <= 275) AND (col3 > 343) OR col3 <= 418) OR col1 IS NULL OR col0 = 469 AND col3 IN (894,78,357)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_263 UNION ALL SELECT pk, col0 FROM view_2_tab3_263
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (((col3 <= 275) AND (col3 > 343) OR col3 <= 418) OR col1 IS NULL OR col0 = 469 AND col3 IN (894,78,357)) UNION SELECT pk, col0 FROM tab3 WHERE NOT ((((col3 <= 275) AND (col3 > 343) OR col3 <= 418) OR col1 IS NULL OR col0 = 469 AND col3 IN (894,78,357)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_263 UNION SELECT pk, col0 FROM view_2_tab3_263
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-3300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE (((col3 <= 275) AND (col3 > 343) OR col3 <= 418) OR col1 IS NULL OR col0 = 469 AND col3 IN (894,78,357)) ) AS tab3_263
----
46 values hashing to 9db1ecd96a41c7ec2ce72e3dc018a2cf

query I rowsort label-3300-3
SELECT * FROM view_3_tab3_263
----
46 values hashing to 9db1ecd96a41c7ec2ce72e3dc018a2cf

query I rowsort label-3300-3
SELECT pk FROM tab3 WHERE (((col3 <= 275) AND (col3 > 343) OR col3 <= 418) OR col1 IS NULL OR col0 = 469 AND col3 IN (894,78,357))
----
46 values hashing to 9db1ecd96a41c7ec2ce72e3dc018a2cf

statement ok
DROP VIEW view_1_tab3_263

statement ok
DROP VIEW view_2_tab3_263

statement ok
DROP VIEW view_3_tab3_263

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_263') DROP VIEW view_1_tab4_263

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_263

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_263') DROP VIEW view_2_tab4_263

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_263

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_263') DROP VIEW view_3_tab4_263

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_263

statement ok
CREATE VIEW view_1_tab4_263 AS SELECT pk, col0 FROM tab4 WHERE (((col3 <= 275) AND (col3 > 343) OR col3 <= 418) OR col1 IS NULL OR col0 = 469 AND col3 IN (894,78,357))

statement ok
CREATE VIEW view_2_tab4_263 AS SELECT pk, col0 FROM tab4 WHERE NOT ((((col3 <= 275) AND (col3 > 343) OR col3 <= 418) OR col1 IS NULL OR col0 = 469 AND col3 IN (894,78,357)))

statement ok
CREATE VIEW view_3_tab4_263 AS SELECT pk FROM view_1_tab4_263

query II rowsort label-3300-1
SELECT pk, col0 FROM tab4 WHERE (((col3 <= 275) AND (col3 > 343) OR col3 <= 418) OR col1 IS NULL OR col0 = 469 AND col3 IN (894,78,357))
----
92 values hashing to c187cf7c45c26519627424ed1ca39376

query II rowsort label-3300-2
SELECT pk, col0 FROM tab4 WHERE NOT ((((col3 <= 275) AND (col3 > 343) OR col3 <= 418) OR col1 IS NULL OR col0 = 469 AND col3 IN (894,78,357)))
----
108 values hashing to 65f7dc029ff81d75abbab45e6e009869

query II rowsort label-3300-1
SELECT pk, col0 FROM view_1_tab4_263
----
92 values hashing to c187cf7c45c26519627424ed1ca39376

query II rowsort label-3300-2
SELECT pk, col0 FROM view_2_tab4_263
----
108 values hashing to 65f7dc029ff81d75abbab45e6e009869

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (((col3 <= 275) AND (col3 > 343) OR col3 <= 418) OR col1 IS NULL OR col0 = 469 AND col3 IN (894,78,357)) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT ((((col3 <= 275) AND (col3 > 343) OR col3 <= 418) OR col1 IS NULL OR col0 = 469 AND col3 IN (894,78,357)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_263 UNION ALL SELECT pk, col0 FROM view_2_tab4_263
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (((col3 <= 275) AND (col3 > 343) OR col3 <= 418) OR col1 IS NULL OR col0 = 469 AND col3 IN (894,78,357)) UNION SELECT pk, col0 FROM tab4 WHERE NOT ((((col3 <= 275) AND (col3 > 343) OR col3 <= 418) OR col1 IS NULL OR col0 = 469 AND col3 IN (894,78,357)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_263 UNION SELECT pk, col0 FROM view_2_tab4_263
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-3300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE (((col3 <= 275) AND (col3 > 343) OR col3 <= 418) OR col1 IS NULL OR col0 = 469 AND col3 IN (894,78,357)) ) AS tab4_263
----
46 values hashing to 9db1ecd96a41c7ec2ce72e3dc018a2cf

query I rowsort label-3300-3
SELECT * FROM view_3_tab4_263
----
46 values hashing to 9db1ecd96a41c7ec2ce72e3dc018a2cf

query I rowsort label-3300-3
SELECT pk FROM tab4 WHERE (((col3 <= 275) AND (col3 > 343) OR col3 <= 418) OR col1 IS NULL OR col0 = 469 AND col3 IN (894,78,357))
----
46 values hashing to 9db1ecd96a41c7ec2ce72e3dc018a2cf

statement ok
DROP VIEW view_1_tab4_263

statement ok
DROP VIEW view_2_tab4_263

statement ok
DROP VIEW view_3_tab4_263

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_264') DROP VIEW view_1_tab0_264

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_264

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_264') DROP VIEW view_2_tab0_264

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_264

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_264') DROP VIEW view_3_tab0_264

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_264

statement ok
CREATE VIEW view_1_tab0_264 AS SELECT pk, col0 FROM tab0 WHERE col0 = 161

statement ok
CREATE VIEW view_2_tab0_264 AS SELECT pk, col0 FROM tab0 WHERE NOT (col0 = 161)

statement ok
CREATE VIEW view_3_tab0_264 AS SELECT pk FROM view_1_tab0_264

query II rowsort label-3400-1
SELECT pk, col0 FROM tab0 WHERE col0 = 161
----

query II rowsort label-3400-2
SELECT pk, col0 FROM tab0 WHERE NOT (col0 = 161)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-3400-1
SELECT pk, col0 FROM view_1_tab0_264
----

query II rowsort label-3400-2
SELECT pk, col0 FROM view_2_tab0_264
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col0 = 161 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col0 = 161)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_264 UNION ALL SELECT pk, col0 FROM view_2_tab0_264
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col0 = 161 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col0 = 161)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_264 UNION SELECT pk, col0 FROM view_2_tab0_264
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-3400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col0 = 161 ) AS tab0_264
----

query I rowsort label-3400-3
SELECT * FROM view_3_tab0_264
----

query I rowsort label-3400-3
SELECT pk FROM tab0 WHERE col0 = 161
----

statement ok
DROP VIEW view_1_tab0_264

statement ok
DROP VIEW view_2_tab0_264

statement ok
DROP VIEW view_3_tab0_264

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_264') DROP VIEW view_1_tab1_264

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_264

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_264') DROP VIEW view_2_tab1_264

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_264

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_264') DROP VIEW view_3_tab1_264

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_264

statement ok
CREATE VIEW view_1_tab1_264 AS SELECT pk, col0 FROM tab1 WHERE col0 = 161

statement ok
CREATE VIEW view_2_tab1_264 AS SELECT pk, col0 FROM tab1 WHERE NOT (col0 = 161)

statement ok
CREATE VIEW view_3_tab1_264 AS SELECT pk FROM view_1_tab1_264

query II rowsort label-3400-1
SELECT pk, col0 FROM tab1 WHERE col0 = 161
----

query II rowsort label-3400-2
SELECT pk, col0 FROM tab1 WHERE NOT (col0 = 161)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-3400-1
SELECT pk, col0 FROM view_1_tab1_264
----

query II rowsort label-3400-2
SELECT pk, col0 FROM view_2_tab1_264
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col0 = 161 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col0 = 161)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_264 UNION ALL SELECT pk, col0 FROM view_2_tab1_264
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col0 = 161 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col0 = 161)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_264 UNION SELECT pk, col0 FROM view_2_tab1_264
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-3400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col0 = 161 ) AS tab1_264
----

query I rowsort label-3400-3
SELECT * FROM view_3_tab1_264
----

query I rowsort label-3400-3
SELECT pk FROM tab1 WHERE col0 = 161
----

statement ok
DROP VIEW view_1_tab1_264

statement ok
DROP VIEW view_2_tab1_264

statement ok
DROP VIEW view_3_tab1_264

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_264') DROP VIEW view_1_tab2_264

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_264

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_264') DROP VIEW view_2_tab2_264

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_264

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_264') DROP VIEW view_3_tab2_264

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_264

statement ok
CREATE VIEW view_1_tab2_264 AS SELECT pk, col0 FROM tab2 WHERE col0 = 161

statement ok
CREATE VIEW view_2_tab2_264 AS SELECT pk, col0 FROM tab2 WHERE NOT (col0 = 161)

statement ok
CREATE VIEW view_3_tab2_264 AS SELECT pk FROM view_1_tab2_264

query II rowsort label-3400-1
SELECT pk, col0 FROM tab2 WHERE col0 = 161
----

query II rowsort label-3400-2
SELECT pk, col0 FROM tab2 WHERE NOT (col0 = 161)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-3400-1
SELECT pk, col0 FROM view_1_tab2_264
----

query II rowsort label-3400-2
SELECT pk, col0 FROM view_2_tab2_264
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col0 = 161 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col0 = 161)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_264 UNION ALL SELECT pk, col0 FROM view_2_tab2_264
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col0 = 161 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col0 = 161)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_264 UNION SELECT pk, col0 FROM view_2_tab2_264
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-3400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col0 = 161 ) AS tab2_264
----

query I rowsort label-3400-3
SELECT * FROM view_3_tab2_264
----

query I rowsort label-3400-3
SELECT pk FROM tab2 WHERE col0 = 161
----

statement ok
DROP VIEW view_1_tab2_264

statement ok
DROP VIEW view_2_tab2_264

statement ok
DROP VIEW view_3_tab2_264

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_264') DROP VIEW view_1_tab3_264

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_264

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_264') DROP VIEW view_2_tab3_264

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_264

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_264') DROP VIEW view_3_tab3_264

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_264

statement ok
CREATE VIEW view_1_tab3_264 AS SELECT pk, col0 FROM tab3 WHERE col0 = 161

statement ok
CREATE VIEW view_2_tab3_264 AS SELECT pk, col0 FROM tab3 WHERE NOT (col0 = 161)

statement ok
CREATE VIEW view_3_tab3_264 AS SELECT pk FROM view_1_tab3_264

query II rowsort label-3400-1
SELECT pk, col0 FROM tab3 WHERE col0 = 161
----

query II rowsort label-3400-2
SELECT pk, col0 FROM tab3 WHERE NOT (col0 = 161)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-3400-1
SELECT pk, col0 FROM view_1_tab3_264
----

query II rowsort label-3400-2
SELECT pk, col0 FROM view_2_tab3_264
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col0 = 161 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col0 = 161)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_264 UNION ALL SELECT pk, col0 FROM view_2_tab3_264
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col0 = 161 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col0 = 161)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_264 UNION SELECT pk, col0 FROM view_2_tab3_264
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-3400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col0 = 161 ) AS tab3_264
----

query I rowsort label-3400-3
SELECT * FROM view_3_tab3_264
----

query I rowsort label-3400-3
SELECT pk FROM tab3 WHERE col0 = 161
----

statement ok
DROP VIEW view_1_tab3_264

statement ok
DROP VIEW view_2_tab3_264

statement ok
DROP VIEW view_3_tab3_264

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_264') DROP VIEW view_1_tab4_264

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_264

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_264') DROP VIEW view_2_tab4_264

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_264

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_264') DROP VIEW view_3_tab4_264

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_264

statement ok
CREATE VIEW view_1_tab4_264 AS SELECT pk, col0 FROM tab4 WHERE col0 = 161

statement ok
CREATE VIEW view_2_tab4_264 AS SELECT pk, col0 FROM tab4 WHERE NOT (col0 = 161)

statement ok
CREATE VIEW view_3_tab4_264 AS SELECT pk FROM view_1_tab4_264

query II rowsort label-3400-1
SELECT pk, col0 FROM tab4 WHERE col0 = 161
----

query II rowsort label-3400-2
SELECT pk, col0 FROM tab4 WHERE NOT (col0 = 161)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-3400-1
SELECT pk, col0 FROM view_1_tab4_264
----

query II rowsort label-3400-2
SELECT pk, col0 FROM view_2_tab4_264
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col0 = 161 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col0 = 161)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_264 UNION ALL SELECT pk, col0 FROM view_2_tab4_264
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col0 = 161 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col0 = 161)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_264 UNION SELECT pk, col0 FROM view_2_tab4_264
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-3400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col0 = 161 ) AS tab4_264
----

query I rowsort label-3400-3
SELECT * FROM view_3_tab4_264
----

query I rowsort label-3400-3
SELECT pk FROM tab4 WHERE col0 = 161
----

statement ok
DROP VIEW view_1_tab4_264

statement ok
DROP VIEW view_2_tab4_264

statement ok
DROP VIEW view_3_tab4_264

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_265') DROP VIEW view_1_tab0_265

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_265

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_265') DROP VIEW view_2_tab0_265

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_265

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_265') DROP VIEW view_3_tab0_265

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_265

statement ok
CREATE VIEW view_1_tab0_265 AS SELECT pk, col0 FROM tab0 WHERE (col0 > 694)

statement ok
CREATE VIEW view_2_tab0_265 AS SELECT pk, col0 FROM tab0 WHERE NOT ((col0 > 694))

statement ok
CREATE VIEW view_3_tab0_265 AS SELECT pk FROM view_1_tab0_265

query II rowsort label-3500-1
SELECT pk, col0 FROM tab0 WHERE (col0 > 694)
----
60 values hashing to f2454555bf5af28ebefc1738065b5112

query II rowsort label-3500-2
SELECT pk, col0 FROM tab0 WHERE NOT ((col0 > 694))
----
140 values hashing to 7334c1bbb670de788be76b63938ca96d

query II rowsort label-3500-1
SELECT pk, col0 FROM view_1_tab0_265
----
60 values hashing to f2454555bf5af28ebefc1738065b5112

query II rowsort label-3500-2
SELECT pk, col0 FROM view_2_tab0_265
----
140 values hashing to 7334c1bbb670de788be76b63938ca96d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col0 > 694) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT ((col0 > 694))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_265 UNION ALL SELECT pk, col0 FROM view_2_tab0_265
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col0 > 694) UNION SELECT pk, col0 FROM tab0 WHERE NOT ((col0 > 694))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_265 UNION SELECT pk, col0 FROM view_2_tab0_265
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-3500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE (col0 > 694) ) AS tab0_265
----
30 values hashing to b0970e5645b012ec9ea992f416c2ecba

query I rowsort label-3500-3
SELECT * FROM view_3_tab0_265
----
30 values hashing to b0970e5645b012ec9ea992f416c2ecba

query I rowsort label-3500-3
SELECT pk FROM tab0 WHERE (col0 > 694)
----
30 values hashing to b0970e5645b012ec9ea992f416c2ecba

statement ok
DROP VIEW view_1_tab0_265

statement ok
DROP VIEW view_2_tab0_265

statement ok
DROP VIEW view_3_tab0_265

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_265') DROP VIEW view_1_tab1_265

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_265

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_265') DROP VIEW view_2_tab1_265

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_265

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_265') DROP VIEW view_3_tab1_265

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_265

statement ok
CREATE VIEW view_1_tab1_265 AS SELECT pk, col0 FROM tab1 WHERE (col0 > 694)

statement ok
CREATE VIEW view_2_tab1_265 AS SELECT pk, col0 FROM tab1 WHERE NOT ((col0 > 694))

statement ok
CREATE VIEW view_3_tab1_265 AS SELECT pk FROM view_1_tab1_265

query II rowsort label-3500-1
SELECT pk, col0 FROM tab1 WHERE (col0 > 694)
----
60 values hashing to f2454555bf5af28ebefc1738065b5112

query II rowsort label-3500-2
SELECT pk, col0 FROM tab1 WHERE NOT ((col0 > 694))
----
140 values hashing to 7334c1bbb670de788be76b63938ca96d

query II rowsort label-3500-1
SELECT pk, col0 FROM view_1_tab1_265
----
60 values hashing to f2454555bf5af28ebefc1738065b5112

query II rowsort label-3500-2
SELECT pk, col0 FROM view_2_tab1_265
----
140 values hashing to 7334c1bbb670de788be76b63938ca96d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col0 > 694) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT ((col0 > 694))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_265 UNION ALL SELECT pk, col0 FROM view_2_tab1_265
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col0 > 694) UNION SELECT pk, col0 FROM tab1 WHERE NOT ((col0 > 694))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_265 UNION SELECT pk, col0 FROM view_2_tab1_265
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-3500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE (col0 > 694) ) AS tab1_265
----
30 values hashing to b0970e5645b012ec9ea992f416c2ecba

query I rowsort label-3500-3
SELECT * FROM view_3_tab1_265
----
30 values hashing to b0970e5645b012ec9ea992f416c2ecba

query I rowsort label-3500-3
SELECT pk FROM tab1 WHERE (col0 > 694)
----
30 values hashing to b0970e5645b012ec9ea992f416c2ecba

statement ok
DROP VIEW view_1_tab1_265

statement ok
DROP VIEW view_2_tab1_265

statement ok
DROP VIEW view_3_tab1_265

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_265') DROP VIEW view_1_tab2_265

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_265

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_265') DROP VIEW view_2_tab2_265

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_265

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_265') DROP VIEW view_3_tab2_265

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_265

statement ok
CREATE VIEW view_1_tab2_265 AS SELECT pk, col0 FROM tab2 WHERE (col0 > 694)

statement ok
CREATE VIEW view_2_tab2_265 AS SELECT pk, col0 FROM tab2 WHERE NOT ((col0 > 694))

statement ok
CREATE VIEW view_3_tab2_265 AS SELECT pk FROM view_1_tab2_265

query II rowsort label-3500-1
SELECT pk, col0 FROM tab2 WHERE (col0 > 694)
----
60 values hashing to f2454555bf5af28ebefc1738065b5112

query II rowsort label-3500-2
SELECT pk, col0 FROM tab2 WHERE NOT ((col0 > 694))
----
140 values hashing to 7334c1bbb670de788be76b63938ca96d

query II rowsort label-3500-1
SELECT pk, col0 FROM view_1_tab2_265
----
60 values hashing to f2454555bf5af28ebefc1738065b5112

query II rowsort label-3500-2
SELECT pk, col0 FROM view_2_tab2_265
----
140 values hashing to 7334c1bbb670de788be76b63938ca96d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col0 > 694) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT ((col0 > 694))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_265 UNION ALL SELECT pk, col0 FROM view_2_tab2_265
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col0 > 694) UNION SELECT pk, col0 FROM tab2 WHERE NOT ((col0 > 694))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_265 UNION SELECT pk, col0 FROM view_2_tab2_265
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-3500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE (col0 > 694) ) AS tab2_265
----
30 values hashing to b0970e5645b012ec9ea992f416c2ecba

query I rowsort label-3500-3
SELECT * FROM view_3_tab2_265
----
30 values hashing to b0970e5645b012ec9ea992f416c2ecba

query I rowsort label-3500-3
SELECT pk FROM tab2 WHERE (col0 > 694)
----
30 values hashing to b0970e5645b012ec9ea992f416c2ecba

statement ok
DROP VIEW view_1_tab2_265

statement ok
DROP VIEW view_2_tab2_265

statement ok
DROP VIEW view_3_tab2_265

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_265') DROP VIEW view_1_tab3_265

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_265

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_265') DROP VIEW view_2_tab3_265

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_265

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_265') DROP VIEW view_3_tab3_265

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_265

statement ok
CREATE VIEW view_1_tab3_265 AS SELECT pk, col0 FROM tab3 WHERE (col0 > 694)

statement ok
CREATE VIEW view_2_tab3_265 AS SELECT pk, col0 FROM tab3 WHERE NOT ((col0 > 694))

statement ok
CREATE VIEW view_3_tab3_265 AS SELECT pk FROM view_1_tab3_265

query II rowsort label-3500-1
SELECT pk, col0 FROM tab3 WHERE (col0 > 694)
----
60 values hashing to f2454555bf5af28ebefc1738065b5112

query II rowsort label-3500-2
SELECT pk, col0 FROM tab3 WHERE NOT ((col0 > 694))
----
140 values hashing to 7334c1bbb670de788be76b63938ca96d

query II rowsort label-3500-1
SELECT pk, col0 FROM view_1_tab3_265
----
60 values hashing to f2454555bf5af28ebefc1738065b5112

query II rowsort label-3500-2
SELECT pk, col0 FROM view_2_tab3_265
----
140 values hashing to 7334c1bbb670de788be76b63938ca96d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col0 > 694) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT ((col0 > 694))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_265 UNION ALL SELECT pk, col0 FROM view_2_tab3_265
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col0 > 694) UNION SELECT pk, col0 FROM tab3 WHERE NOT ((col0 > 694))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_265 UNION SELECT pk, col0 FROM view_2_tab3_265
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-3500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE (col0 > 694) ) AS tab3_265
----
30 values hashing to b0970e5645b012ec9ea992f416c2ecba

query I rowsort label-3500-3
SELECT * FROM view_3_tab3_265
----
30 values hashing to b0970e5645b012ec9ea992f416c2ecba

query I rowsort label-3500-3
SELECT pk FROM tab3 WHERE (col0 > 694)
----
30 values hashing to b0970e5645b012ec9ea992f416c2ecba

statement ok
DROP VIEW view_1_tab3_265

statement ok
DROP VIEW view_2_tab3_265

statement ok
DROP VIEW view_3_tab3_265

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_265') DROP VIEW view_1_tab4_265

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_265

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_265') DROP VIEW view_2_tab4_265

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_265

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_265') DROP VIEW view_3_tab4_265

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_265

statement ok
CREATE VIEW view_1_tab4_265 AS SELECT pk, col0 FROM tab4 WHERE (col0 > 694)

statement ok
CREATE VIEW view_2_tab4_265 AS SELECT pk, col0 FROM tab4 WHERE NOT ((col0 > 694))

statement ok
CREATE VIEW view_3_tab4_265 AS SELECT pk FROM view_1_tab4_265

query II rowsort label-3500-1
SELECT pk, col0 FROM tab4 WHERE (col0 > 694)
----
60 values hashing to f2454555bf5af28ebefc1738065b5112

query II rowsort label-3500-2
SELECT pk, col0 FROM tab4 WHERE NOT ((col0 > 694))
----
140 values hashing to 7334c1bbb670de788be76b63938ca96d

query II rowsort label-3500-1
SELECT pk, col0 FROM view_1_tab4_265
----
60 values hashing to f2454555bf5af28ebefc1738065b5112

query II rowsort label-3500-2
SELECT pk, col0 FROM view_2_tab4_265
----
140 values hashing to 7334c1bbb670de788be76b63938ca96d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col0 > 694) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT ((col0 > 694))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_265 UNION ALL SELECT pk, col0 FROM view_2_tab4_265
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col0 > 694) UNION SELECT pk, col0 FROM tab4 WHERE NOT ((col0 > 694))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_265 UNION SELECT pk, col0 FROM view_2_tab4_265
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-3500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE (col0 > 694) ) AS tab4_265
----
30 values hashing to b0970e5645b012ec9ea992f416c2ecba

query I rowsort label-3500-3
SELECT * FROM view_3_tab4_265
----
30 values hashing to b0970e5645b012ec9ea992f416c2ecba

query I rowsort label-3500-3
SELECT pk FROM tab4 WHERE (col0 > 694)
----
30 values hashing to b0970e5645b012ec9ea992f416c2ecba

statement ok
DROP VIEW view_1_tab4_265

statement ok
DROP VIEW view_2_tab4_265

statement ok
DROP VIEW view_3_tab4_265

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_266') DROP VIEW view_1_tab0_266

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_266

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_266') DROP VIEW view_2_tab0_266

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_266

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_266') DROP VIEW view_3_tab0_266

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_266

statement ok
CREATE VIEW view_1_tab0_266 AS SELECT pk, col0 FROM tab0 WHERE (col3 IS NULL OR col4 < 723.74 AND col3 <= 182 AND col4 = 112.16 OR col3 >= 211 AND (col3 = 30) OR (((col3 > 867 AND col3 > 433 AND ((col0 = 982 AND col3 < 817 OR col0 IS NULL AND col0 > 743))) AND (col0 > 91))))

statement ok
CREATE VIEW view_2_tab0_266 AS SELECT pk, col0 FROM tab0 WHERE NOT ((col3 IS NULL OR col4 < 723.74 AND col3 <= 182 AND col4 = 112.16 OR col3 >= 211 AND (col3 = 30) OR (((col3 > 867 AND col3 > 433 AND ((col0 = 982 AND col3 < 817 OR col0 IS NULL AND col0 > 743))) AND (col0 > 91)))))

statement ok
CREATE VIEW view_3_tab0_266 AS SELECT pk FROM view_1_tab0_266

query II rowsort label-3600-1
SELECT pk, col0 FROM tab0 WHERE (col3 IS NULL OR col4 < 723.74 AND col3 <= 182 AND col4 = 112.16 OR col3 >= 211 AND (col3 = 30) OR (((col3 > 867 AND col3 > 433 AND ((col0 = 982 AND col3 < 817 OR col0 IS NULL AND col0 > 743))) AND (col0 > 91))))
----

query II rowsort label-3600-2
SELECT pk, col0 FROM tab0 WHERE NOT ((col3 IS NULL OR col4 < 723.74 AND col3 <= 182 AND col4 = 112.16 OR col3 >= 211 AND (col3 = 30) OR (((col3 > 867 AND col3 > 433 AND ((col0 = 982 AND col3 < 817 OR col0 IS NULL AND col0 > 743))) AND (col0 > 91)))))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-3600-1
SELECT pk, col0 FROM view_1_tab0_266
----

query II rowsort label-3600-2
SELECT pk, col0 FROM view_2_tab0_266
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col3 IS NULL OR col4 < 723.74 AND col3 <= 182 AND col4 = 112.16 OR col3 >= 211 AND (col3 = 30) OR (((col3 > 867 AND col3 > 433 AND ((col0 = 982 AND col3 < 817 OR col0 IS NULL AND col0 > 743))) AND (col0 > 91)))) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT ((col3 IS NULL OR col4 < 723.74 AND col3 <= 182 AND col4 = 112.16 OR col3 >= 211 AND (col3 = 30) OR (((col3 > 867 AND col3 > 433 AND ((col0 = 982 AND col3 < 817 OR col0 IS NULL AND col0 > 743))) AND (col0 > 91)))))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_266 UNION ALL SELECT pk, col0 FROM view_2_tab0_266
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col3 IS NULL OR col4 < 723.74 AND col3 <= 182 AND col4 = 112.16 OR col3 >= 211 AND (col3 = 30) OR (((col3 > 867 AND col3 > 433 AND ((col0 = 982 AND col3 < 817 OR col0 IS NULL AND col0 > 743))) AND (col0 > 91)))) UNION SELECT pk, col0 FROM tab0 WHERE NOT ((col3 IS NULL OR col4 < 723.74 AND col3 <= 182 AND col4 = 112.16 OR col3 >= 211 AND (col3 = 30) OR (((col3 > 867 AND col3 > 433 AND ((col0 = 982 AND col3 < 817 OR col0 IS NULL AND col0 > 743))) AND (col0 > 91)))))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_266 UNION SELECT pk, col0 FROM view_2_tab0_266
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-3600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE (col3 IS NULL OR col4 < 723.74 AND col3 <= 182 AND col4 = 112.16 OR col3 >= 211 AND (col3 = 30) OR (((col3 > 867 AND col3 > 433 AND ((col0 = 982 AND col3 < 817 OR col0 IS NULL AND col0 > 743))) AND (col0 > 91)))) ) AS tab0_266
----

query I rowsort label-3600-3
SELECT * FROM view_3_tab0_266
----

query I rowsort label-3600-3
SELECT pk FROM tab0 WHERE (col3 IS NULL OR col4 < 723.74 AND col3 <= 182 AND col4 = 112.16 OR col3 >= 211 AND (col3 = 30) OR (((col3 > 867 AND col3 > 433 AND ((col0 = 982 AND col3 < 817 OR col0 IS NULL AND col0 > 743))) AND (col0 > 91))))
----

statement ok
DROP VIEW view_1_tab0_266

statement ok
DROP VIEW view_2_tab0_266

statement ok
DROP VIEW view_3_tab0_266

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_266') DROP VIEW view_1_tab1_266

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_266

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_266') DROP VIEW view_2_tab1_266

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_266

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_266') DROP VIEW view_3_tab1_266

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_266

statement ok
CREATE VIEW view_1_tab1_266 AS SELECT pk, col0 FROM tab1 WHERE (col3 IS NULL OR col4 < 723.74 AND col3 <= 182 AND col4 = 112.16 OR col3 >= 211 AND (col3 = 30) OR (((col3 > 867 AND col3 > 433 AND ((col0 = 982 AND col3 < 817 OR col0 IS NULL AND col0 > 743))) AND (col0 > 91))))

statement ok
CREATE VIEW view_2_tab1_266 AS SELECT pk, col0 FROM tab1 WHERE NOT ((col3 IS NULL OR col4 < 723.74 AND col3 <= 182 AND col4 = 112.16 OR col3 >= 211 AND (col3 = 30) OR (((col3 > 867 AND col3 > 433 AND ((col0 = 982 AND col3 < 817 OR col0 IS NULL AND col0 > 743))) AND (col0 > 91)))))

statement ok
CREATE VIEW view_3_tab1_266 AS SELECT pk FROM view_1_tab1_266

query II rowsort label-3600-1
SELECT pk, col0 FROM tab1 WHERE (col3 IS NULL OR col4 < 723.74 AND col3 <= 182 AND col4 = 112.16 OR col3 >= 211 AND (col3 = 30) OR (((col3 > 867 AND col3 > 433 AND ((col0 = 982 AND col3 < 817 OR col0 IS NULL AND col0 > 743))) AND (col0 > 91))))
----

query II rowsort label-3600-2
SELECT pk, col0 FROM tab1 WHERE NOT ((col3 IS NULL OR col4 < 723.74 AND col3 <= 182 AND col4 = 112.16 OR col3 >= 211 AND (col3 = 30) OR (((col3 > 867 AND col3 > 433 AND ((col0 = 982 AND col3 < 817 OR col0 IS NULL AND col0 > 743))) AND (col0 > 91)))))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-3600-1
SELECT pk, col0 FROM view_1_tab1_266
----

query II rowsort label-3600-2
SELECT pk, col0 FROM view_2_tab1_266
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col3 IS NULL OR col4 < 723.74 AND col3 <= 182 AND col4 = 112.16 OR col3 >= 211 AND (col3 = 30) OR (((col3 > 867 AND col3 > 433 AND ((col0 = 982 AND col3 < 817 OR col0 IS NULL AND col0 > 743))) AND (col0 > 91)))) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT ((col3 IS NULL OR col4 < 723.74 AND col3 <= 182 AND col4 = 112.16 OR col3 >= 211 AND (col3 = 30) OR (((col3 > 867 AND col3 > 433 AND ((col0 = 982 AND col3 < 817 OR col0 IS NULL AND col0 > 743))) AND (col0 > 91)))))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_266 UNION ALL SELECT pk, col0 FROM view_2_tab1_266
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col3 IS NULL OR col4 < 723.74 AND col3 <= 182 AND col4 = 112.16 OR col3 >= 211 AND (col3 = 30) OR (((col3 > 867 AND col3 > 433 AND ((col0 = 982 AND col3 < 817 OR col0 IS NULL AND col0 > 743))) AND (col0 > 91)))) UNION SELECT pk, col0 FROM tab1 WHERE NOT ((col3 IS NULL OR col4 < 723.74 AND col3 <= 182 AND col4 = 112.16 OR col3 >= 211 AND (col3 = 30) OR (((col3 > 867 AND col3 > 433 AND ((col0 = 982 AND col3 < 817 OR col0 IS NULL AND col0 > 743))) AND (col0 > 91)))))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_266 UNION SELECT pk, col0 FROM view_2_tab1_266
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-3600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE (col3 IS NULL OR col4 < 723.74 AND col3 <= 182 AND col4 = 112.16 OR col3 >= 211 AND (col3 = 30) OR (((col3 > 867 AND col3 > 433 AND ((col0 = 982 AND col3 < 817 OR col0 IS NULL AND col0 > 743))) AND (col0 > 91)))) ) AS tab1_266
----

query I rowsort label-3600-3
SELECT * FROM view_3_tab1_266
----

query I rowsort label-3600-3
SELECT pk FROM tab1 WHERE (col3 IS NULL OR col4 < 723.74 AND col3 <= 182 AND col4 = 112.16 OR col3 >= 211 AND (col3 = 30) OR (((col3 > 867 AND col3 > 433 AND ((col0 = 982 AND col3 < 817 OR col0 IS NULL AND col0 > 743))) AND (col0 > 91))))
----

statement ok
DROP VIEW view_1_tab1_266

statement ok
DROP VIEW view_2_tab1_266

statement ok
DROP VIEW view_3_tab1_266

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_266') DROP VIEW view_1_tab2_266

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_266

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_266') DROP VIEW view_2_tab2_266

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_266

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_266') DROP VIEW view_3_tab2_266

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_266

statement ok
CREATE VIEW view_1_tab2_266 AS SELECT pk, col0 FROM tab2 WHERE (col3 IS NULL OR col4 < 723.74 AND col3 <= 182 AND col4 = 112.16 OR col3 >= 211 AND (col3 = 30) OR (((col3 > 867 AND col3 > 433 AND ((col0 = 982 AND col3 < 817 OR col0 IS NULL AND col0 > 743))) AND (col0 > 91))))

statement ok
CREATE VIEW view_2_tab2_266 AS SELECT pk, col0 FROM tab2 WHERE NOT ((col3 IS NULL OR col4 < 723.74 AND col3 <= 182 AND col4 = 112.16 OR col3 >= 211 AND (col3 = 30) OR (((col3 > 867 AND col3 > 433 AND ((col0 = 982 AND col3 < 817 OR col0 IS NULL AND col0 > 743))) AND (col0 > 91)))))

statement ok
CREATE VIEW view_3_tab2_266 AS SELECT pk FROM view_1_tab2_266

query II rowsort label-3600-1
SELECT pk, col0 FROM tab2 WHERE (col3 IS NULL OR col4 < 723.74 AND col3 <= 182 AND col4 = 112.16 OR col3 >= 211 AND (col3 = 30) OR (((col3 > 867 AND col3 > 433 AND ((col0 = 982 AND col3 < 817 OR col0 IS NULL AND col0 > 743))) AND (col0 > 91))))
----

query II rowsort label-3600-2
SELECT pk, col0 FROM tab2 WHERE NOT ((col3 IS NULL OR col4 < 723.74 AND col3 <= 182 AND col4 = 112.16 OR col3 >= 211 AND (col3 = 30) OR (((col3 > 867 AND col3 > 433 AND ((col0 = 982 AND col3 < 817 OR col0 IS NULL AND col0 > 743))) AND (col0 > 91)))))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-3600-1
SELECT pk, col0 FROM view_1_tab2_266
----

query II rowsort label-3600-2
SELECT pk, col0 FROM view_2_tab2_266
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col3 IS NULL OR col4 < 723.74 AND col3 <= 182 AND col4 = 112.16 OR col3 >= 211 AND (col3 = 30) OR (((col3 > 867 AND col3 > 433 AND ((col0 = 982 AND col3 < 817 OR col0 IS NULL AND col0 > 743))) AND (col0 > 91)))) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT ((col3 IS NULL OR col4 < 723.74 AND col3 <= 182 AND col4 = 112.16 OR col3 >= 211 AND (col3 = 30) OR (((col3 > 867 AND col3 > 433 AND ((col0 = 982 AND col3 < 817 OR col0 IS NULL AND col0 > 743))) AND (col0 > 91)))))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_266 UNION ALL SELECT pk, col0 FROM view_2_tab2_266
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col3 IS NULL OR col4 < 723.74 AND col3 <= 182 AND col4 = 112.16 OR col3 >= 211 AND (col3 = 30) OR (((col3 > 867 AND col3 > 433 AND ((col0 = 982 AND col3 < 817 OR col0 IS NULL AND col0 > 743))) AND (col0 > 91)))) UNION SELECT pk, col0 FROM tab2 WHERE NOT ((col3 IS NULL OR col4 < 723.74 AND col3 <= 182 AND col4 = 112.16 OR col3 >= 211 AND (col3 = 30) OR (((col3 > 867 AND col3 > 433 AND ((col0 = 982 AND col3 < 817 OR col0 IS NULL AND col0 > 743))) AND (col0 > 91)))))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_266 UNION SELECT pk, col0 FROM view_2_tab2_266
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-3600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE (col3 IS NULL OR col4 < 723.74 AND col3 <= 182 AND col4 = 112.16 OR col3 >= 211 AND (col3 = 30) OR (((col3 > 867 AND col3 > 433 AND ((col0 = 982 AND col3 < 817 OR col0 IS NULL AND col0 > 743))) AND (col0 > 91)))) ) AS tab2_266
----

query I rowsort label-3600-3
SELECT * FROM view_3_tab2_266
----

query I rowsort label-3600-3
SELECT pk FROM tab2 WHERE (col3 IS NULL OR col4 < 723.74 AND col3 <= 182 AND col4 = 112.16 OR col3 >= 211 AND (col3 = 30) OR (((col3 > 867 AND col3 > 433 AND ((col0 = 982 AND col3 < 817 OR col0 IS NULL AND col0 > 743))) AND (col0 > 91))))
----

statement ok
DROP VIEW view_1_tab2_266

statement ok
DROP VIEW view_2_tab2_266

statement ok
DROP VIEW view_3_tab2_266

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_266') DROP VIEW view_1_tab3_266

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_266

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_266') DROP VIEW view_2_tab3_266

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_266

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_266') DROP VIEW view_3_tab3_266

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_266

statement ok
CREATE VIEW view_1_tab3_266 AS SELECT pk, col0 FROM tab3 WHERE (col3 IS NULL OR col4 < 723.74 AND col3 <= 182 AND col4 = 112.16 OR col3 >= 211 AND (col3 = 30) OR (((col3 > 867 AND col3 > 433 AND ((col0 = 982 AND col3 < 817 OR col0 IS NULL AND col0 > 743))) AND (col0 > 91))))

statement ok
CREATE VIEW view_2_tab3_266 AS SELECT pk, col0 FROM tab3 WHERE NOT ((col3 IS NULL OR col4 < 723.74 AND col3 <= 182 AND col4 = 112.16 OR col3 >= 211 AND (col3 = 30) OR (((col3 > 867 AND col3 > 433 AND ((col0 = 982 AND col3 < 817 OR col0 IS NULL AND col0 > 743))) AND (col0 > 91)))))

statement ok
CREATE VIEW view_3_tab3_266 AS SELECT pk FROM view_1_tab3_266

query II rowsort label-3600-1
SELECT pk, col0 FROM tab3 WHERE (col3 IS NULL OR col4 < 723.74 AND col3 <= 182 AND col4 = 112.16 OR col3 >= 211 AND (col3 = 30) OR (((col3 > 867 AND col3 > 433 AND ((col0 = 982 AND col3 < 817 OR col0 IS NULL AND col0 > 743))) AND (col0 > 91))))
----

query II rowsort label-3600-2
SELECT pk, col0 FROM tab3 WHERE NOT ((col3 IS NULL OR col4 < 723.74 AND col3 <= 182 AND col4 = 112.16 OR col3 >= 211 AND (col3 = 30) OR (((col3 > 867 AND col3 > 433 AND ((col0 = 982 AND col3 < 817 OR col0 IS NULL AND col0 > 743))) AND (col0 > 91)))))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-3600-1
SELECT pk, col0 FROM view_1_tab3_266
----

query II rowsort label-3600-2
SELECT pk, col0 FROM view_2_tab3_266
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col3 IS NULL OR col4 < 723.74 AND col3 <= 182 AND col4 = 112.16 OR col3 >= 211 AND (col3 = 30) OR (((col3 > 867 AND col3 > 433 AND ((col0 = 982 AND col3 < 817 OR col0 IS NULL AND col0 > 743))) AND (col0 > 91)))) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT ((col3 IS NULL OR col4 < 723.74 AND col3 <= 182 AND col4 = 112.16 OR col3 >= 211 AND (col3 = 30) OR (((col3 > 867 AND col3 > 433 AND ((col0 = 982 AND col3 < 817 OR col0 IS NULL AND col0 > 743))) AND (col0 > 91)))))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_266 UNION ALL SELECT pk, col0 FROM view_2_tab3_266
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col3 IS NULL OR col4 < 723.74 AND col3 <= 182 AND col4 = 112.16 OR col3 >= 211 AND (col3 = 30) OR (((col3 > 867 AND col3 > 433 AND ((col0 = 982 AND col3 < 817 OR col0 IS NULL AND col0 > 743))) AND (col0 > 91)))) UNION SELECT pk, col0 FROM tab3 WHERE NOT ((col3 IS NULL OR col4 < 723.74 AND col3 <= 182 AND col4 = 112.16 OR col3 >= 211 AND (col3 = 30) OR (((col3 > 867 AND col3 > 433 AND ((col0 = 982 AND col3 < 817 OR col0 IS NULL AND col0 > 743))) AND (col0 > 91)))))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_266 UNION SELECT pk, col0 FROM view_2_tab3_266
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-3600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE (col3 IS NULL OR col4 < 723.74 AND col3 <= 182 AND col4 = 112.16 OR col3 >= 211 AND (col3 = 30) OR (((col3 > 867 AND col3 > 433 AND ((col0 = 982 AND col3 < 817 OR col0 IS NULL AND col0 > 743))) AND (col0 > 91)))) ) AS tab3_266
----

query I rowsort label-3600-3
SELECT * FROM view_3_tab3_266
----

query I rowsort label-3600-3
SELECT pk FROM tab3 WHERE (col3 IS NULL OR col4 < 723.74 AND col3 <= 182 AND col4 = 112.16 OR col3 >= 211 AND (col3 = 30) OR (((col3 > 867 AND col3 > 433 AND ((col0 = 982 AND col3 < 817 OR col0 IS NULL AND col0 > 743))) AND (col0 > 91))))
----

statement ok
DROP VIEW view_1_tab3_266

statement ok
DROP VIEW view_2_tab3_266

statement ok
DROP VIEW view_3_tab3_266

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_266') DROP VIEW view_1_tab4_266

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_266

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_266') DROP VIEW view_2_tab4_266

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_266

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_266') DROP VIEW view_3_tab4_266

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_266

statement ok
CREATE VIEW view_1_tab4_266 AS SELECT pk, col0 FROM tab4 WHERE (col3 IS NULL OR col4 < 723.74 AND col3 <= 182 AND col4 = 112.16 OR col3 >= 211 AND (col3 = 30) OR (((col3 > 867 AND col3 > 433 AND ((col0 = 982 AND col3 < 817 OR col0 IS NULL AND col0 > 743))) AND (col0 > 91))))

statement ok
CREATE VIEW view_2_tab4_266 AS SELECT pk, col0 FROM tab4 WHERE NOT ((col3 IS NULL OR col4 < 723.74 AND col3 <= 182 AND col4 = 112.16 OR col3 >= 211 AND (col3 = 30) OR (((col3 > 867 AND col3 > 433 AND ((col0 = 982 AND col3 < 817 OR col0 IS NULL AND col0 > 743))) AND (col0 > 91)))))

statement ok
CREATE VIEW view_3_tab4_266 AS SELECT pk FROM view_1_tab4_266

query II rowsort label-3600-1
SELECT pk, col0 FROM tab4 WHERE (col3 IS NULL OR col4 < 723.74 AND col3 <= 182 AND col4 = 112.16 OR col3 >= 211 AND (col3 = 30) OR (((col3 > 867 AND col3 > 433 AND ((col0 = 982 AND col3 < 817 OR col0 IS NULL AND col0 > 743))) AND (col0 > 91))))
----

query II rowsort label-3600-2
SELECT pk, col0 FROM tab4 WHERE NOT ((col3 IS NULL OR col4 < 723.74 AND col3 <= 182 AND col4 = 112.16 OR col3 >= 211 AND (col3 = 30) OR (((col3 > 867 AND col3 > 433 AND ((col0 = 982 AND col3 < 817 OR col0 IS NULL AND col0 > 743))) AND (col0 > 91)))))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-3600-1
SELECT pk, col0 FROM view_1_tab4_266
----

query II rowsort label-3600-2
SELECT pk, col0 FROM view_2_tab4_266
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col3 IS NULL OR col4 < 723.74 AND col3 <= 182 AND col4 = 112.16 OR col3 >= 211 AND (col3 = 30) OR (((col3 > 867 AND col3 > 433 AND ((col0 = 982 AND col3 < 817 OR col0 IS NULL AND col0 > 743))) AND (col0 > 91)))) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT ((col3 IS NULL OR col4 < 723.74 AND col3 <= 182 AND col4 = 112.16 OR col3 >= 211 AND (col3 = 30) OR (((col3 > 867 AND col3 > 433 AND ((col0 = 982 AND col3 < 817 OR col0 IS NULL AND col0 > 743))) AND (col0 > 91)))))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_266 UNION ALL SELECT pk, col0 FROM view_2_tab4_266
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col3 IS NULL OR col4 < 723.74 AND col3 <= 182 AND col4 = 112.16 OR col3 >= 211 AND (col3 = 30) OR (((col3 > 867 AND col3 > 433 AND ((col0 = 982 AND col3 < 817 OR col0 IS NULL AND col0 > 743))) AND (col0 > 91)))) UNION SELECT pk, col0 FROM tab4 WHERE NOT ((col3 IS NULL OR col4 < 723.74 AND col3 <= 182 AND col4 = 112.16 OR col3 >= 211 AND (col3 = 30) OR (((col3 > 867 AND col3 > 433 AND ((col0 = 982 AND col3 < 817 OR col0 IS NULL AND col0 > 743))) AND (col0 > 91)))))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_266 UNION SELECT pk, col0 FROM view_2_tab4_266
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-3600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE (col3 IS NULL OR col4 < 723.74 AND col3 <= 182 AND col4 = 112.16 OR col3 >= 211 AND (col3 = 30) OR (((col3 > 867 AND col3 > 433 AND ((col0 = 982 AND col3 < 817 OR col0 IS NULL AND col0 > 743))) AND (col0 > 91)))) ) AS tab4_266
----

query I rowsort label-3600-3
SELECT * FROM view_3_tab4_266
----

query I rowsort label-3600-3
SELECT pk FROM tab4 WHERE (col3 IS NULL OR col4 < 723.74 AND col3 <= 182 AND col4 = 112.16 OR col3 >= 211 AND (col3 = 30) OR (((col3 > 867 AND col3 > 433 AND ((col0 = 982 AND col3 < 817 OR col0 IS NULL AND col0 > 743))) AND (col0 > 91))))
----

statement ok
DROP VIEW view_1_tab4_266

statement ok
DROP VIEW view_2_tab4_266

statement ok
DROP VIEW view_3_tab4_266

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_267') DROP VIEW view_1_tab0_267

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_267

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_267') DROP VIEW view_2_tab0_267

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_267

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_267') DROP VIEW view_3_tab0_267

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_267

statement ok
CREATE VIEW view_1_tab0_267 AS SELECT pk, col0 FROM tab0 WHERE (col3 IN (163,887,124,808,198) OR col4 > 490.27 OR col4 = 640.57 AND col0 < 258 AND col1 >= 674.98 OR col0 IS NULL AND (col0 >= 677) OR col0 < 331 AND col0 < 163 AND (col0 <= 470) OR col0 <= 431 OR col0 < 642 AND (col0 IS NULL))

statement ok
CREATE VIEW view_2_tab0_267 AS SELECT pk, col0 FROM tab0 WHERE NOT ((col3 IN (163,887,124,808,198) OR col4 > 490.27 OR col4 = 640.57 AND col0 < 258 AND col1 >= 674.98 OR col0 IS NULL AND (col0 >= 677) OR col0 < 331 AND col0 < 163 AND (col0 <= 470) OR col0 <= 431 OR col0 < 642 AND (col0 IS NULL)))

statement ok
CREATE VIEW view_3_tab0_267 AS SELECT pk FROM view_1_tab0_267

query II rowsort label-3700-1
SELECT pk, col0 FROM tab0 WHERE (col3 IN (163,887,124,808,198) OR col4 > 490.27 OR col4 = 640.57 AND col0 < 258 AND col1 >= 674.98 OR col0 IS NULL AND (col0 >= 677) OR col0 < 331 AND col0 < 163 AND (col0 <= 470) OR col0 <= 431 OR col0 < 642 AND (col0 IS NULL))
----
150 values hashing to c48632bb9a943b9b38c8e36e0d0c8e32

query II rowsort label-3700-2
SELECT pk, col0 FROM tab0 WHERE NOT ((col3 IN (163,887,124,808,198) OR col4 > 490.27 OR col4 = 640.57 AND col0 < 258 AND col1 >= 674.98 OR col0 IS NULL AND (col0 >= 677) OR col0 < 331 AND col0 < 163 AND (col0 <= 470) OR col0 <= 431 OR col0 < 642 AND (col0 IS NULL)))
----
50 values hashing to db375f22da88d9b7b123ae4312040dbc

query II rowsort label-3700-1
SELECT pk, col0 FROM view_1_tab0_267
----
150 values hashing to c48632bb9a943b9b38c8e36e0d0c8e32

query II rowsort label-3700-2
SELECT pk, col0 FROM view_2_tab0_267
----
50 values hashing to db375f22da88d9b7b123ae4312040dbc

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col3 IN (163,887,124,808,198) OR col4 > 490.27 OR col4 = 640.57 AND col0 < 258 AND col1 >= 674.98 OR col0 IS NULL AND (col0 >= 677) OR col0 < 331 AND col0 < 163 AND (col0 <= 470) OR col0 <= 431 OR col0 < 642 AND (col0 IS NULL)) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT ((col3 IN (163,887,124,808,198) OR col4 > 490.27 OR col4 = 640.57 AND col0 < 258 AND col1 >= 674.98 OR col0 IS NULL AND (col0 >= 677) OR col0 < 331 AND col0 < 163 AND (col0 <= 470) OR col0 <= 431 OR col0 < 642 AND (col0 IS NULL)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_267 UNION ALL SELECT pk, col0 FROM view_2_tab0_267
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col3 IN (163,887,124,808,198) OR col4 > 490.27 OR col4 = 640.57 AND col0 < 258 AND col1 >= 674.98 OR col0 IS NULL AND (col0 >= 677) OR col0 < 331 AND col0 < 163 AND (col0 <= 470) OR col0 <= 431 OR col0 < 642 AND (col0 IS NULL)) UNION SELECT pk, col0 FROM tab0 WHERE NOT ((col3 IN (163,887,124,808,198) OR col4 > 490.27 OR col4 = 640.57 AND col0 < 258 AND col1 >= 674.98 OR col0 IS NULL AND (col0 >= 677) OR col0 < 331 AND col0 < 163 AND (col0 <= 470) OR col0 <= 431 OR col0 < 642 AND (col0 IS NULL)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_267 UNION SELECT pk, col0 FROM view_2_tab0_267
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-3700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE (col3 IN (163,887,124,808,198) OR col4 > 490.27 OR col4 = 640.57 AND col0 < 258 AND col1 >= 674.98 OR col0 IS NULL AND (col0 >= 677) OR col0 < 331 AND col0 < 163 AND (col0 <= 470) OR col0 <= 431 OR col0 < 642 AND (col0 IS NULL)) ) AS tab0_267
----
75 values hashing to 1abe2ff8fa7178a9cb1ffe4b6b52f9a6

query I rowsort label-3700-3
SELECT * FROM view_3_tab0_267
----
75 values hashing to 1abe2ff8fa7178a9cb1ffe4b6b52f9a6

query I rowsort label-3700-3
SELECT pk FROM tab0 WHERE (col3 IN (163,887,124,808,198) OR col4 > 490.27 OR col4 = 640.57 AND col0 < 258 AND col1 >= 674.98 OR col0 IS NULL AND (col0 >= 677) OR col0 < 331 AND col0 < 163 AND (col0 <= 470) OR col0 <= 431 OR col0 < 642 AND (col0 IS NULL))
----
75 values hashing to 1abe2ff8fa7178a9cb1ffe4b6b52f9a6

statement ok
DROP VIEW view_1_tab0_267

statement ok
DROP VIEW view_2_tab0_267

statement ok
DROP VIEW view_3_tab0_267

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_267') DROP VIEW view_1_tab1_267

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_267

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_267') DROP VIEW view_2_tab1_267

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_267

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_267') DROP VIEW view_3_tab1_267

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_267

statement ok
CREATE VIEW view_1_tab1_267 AS SELECT pk, col0 FROM tab1 WHERE (col3 IN (163,887,124,808,198) OR col4 > 490.27 OR col4 = 640.57 AND col0 < 258 AND col1 >= 674.98 OR col0 IS NULL AND (col0 >= 677) OR col0 < 331 AND col0 < 163 AND (col0 <= 470) OR col0 <= 431 OR col0 < 642 AND (col0 IS NULL))

statement ok
CREATE VIEW view_2_tab1_267 AS SELECT pk, col0 FROM tab1 WHERE NOT ((col3 IN (163,887,124,808,198) OR col4 > 490.27 OR col4 = 640.57 AND col0 < 258 AND col1 >= 674.98 OR col0 IS NULL AND (col0 >= 677) OR col0 < 331 AND col0 < 163 AND (col0 <= 470) OR col0 <= 431 OR col0 < 642 AND (col0 IS NULL)))

statement ok
CREATE VIEW view_3_tab1_267 AS SELECT pk FROM view_1_tab1_267

query II rowsort label-3700-1
SELECT pk, col0 FROM tab1 WHERE (col3 IN (163,887,124,808,198) OR col4 > 490.27 OR col4 = 640.57 AND col0 < 258 AND col1 >= 674.98 OR col0 IS NULL AND (col0 >= 677) OR col0 < 331 AND col0 < 163 AND (col0 <= 470) OR col0 <= 431 OR col0 < 642 AND (col0 IS NULL))
----
150 values hashing to c48632bb9a943b9b38c8e36e0d0c8e32

query II rowsort label-3700-2
SELECT pk, col0 FROM tab1 WHERE NOT ((col3 IN (163,887,124,808,198) OR col4 > 490.27 OR col4 = 640.57 AND col0 < 258 AND col1 >= 674.98 OR col0 IS NULL AND (col0 >= 677) OR col0 < 331 AND col0 < 163 AND (col0 <= 470) OR col0 <= 431 OR col0 < 642 AND (col0 IS NULL)))
----
50 values hashing to db375f22da88d9b7b123ae4312040dbc

query II rowsort label-3700-1
SELECT pk, col0 FROM view_1_tab1_267
----
150 values hashing to c48632bb9a943b9b38c8e36e0d0c8e32

query II rowsort label-3700-2
SELECT pk, col0 FROM view_2_tab1_267
----
50 values hashing to db375f22da88d9b7b123ae4312040dbc

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col3 IN (163,887,124,808,198) OR col4 > 490.27 OR col4 = 640.57 AND col0 < 258 AND col1 >= 674.98 OR col0 IS NULL AND (col0 >= 677) OR col0 < 331 AND col0 < 163 AND (col0 <= 470) OR col0 <= 431 OR col0 < 642 AND (col0 IS NULL)) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT ((col3 IN (163,887,124,808,198) OR col4 > 490.27 OR col4 = 640.57 AND col0 < 258 AND col1 >= 674.98 OR col0 IS NULL AND (col0 >= 677) OR col0 < 331 AND col0 < 163 AND (col0 <= 470) OR col0 <= 431 OR col0 < 642 AND (col0 IS NULL)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_267 UNION ALL SELECT pk, col0 FROM view_2_tab1_267
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col3 IN (163,887,124,808,198) OR col4 > 490.27 OR col4 = 640.57 AND col0 < 258 AND col1 >= 674.98 OR col0 IS NULL AND (col0 >= 677) OR col0 < 331 AND col0 < 163 AND (col0 <= 470) OR col0 <= 431 OR col0 < 642 AND (col0 IS NULL)) UNION SELECT pk, col0 FROM tab1 WHERE NOT ((col3 IN (163,887,124,808,198) OR col4 > 490.27 OR col4 = 640.57 AND col0 < 258 AND col1 >= 674.98 OR col0 IS NULL AND (col0 >= 677) OR col0 < 331 AND col0 < 163 AND (col0 <= 470) OR col0 <= 431 OR col0 < 642 AND (col0 IS NULL)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_267 UNION SELECT pk, col0 FROM view_2_tab1_267
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-3700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE (col3 IN (163,887,124,808,198) OR col4 > 490.27 OR col4 = 640.57 AND col0 < 258 AND col1 >= 674.98 OR col0 IS NULL AND (col0 >= 677) OR col0 < 331 AND col0 < 163 AND (col0 <= 470) OR col0 <= 431 OR col0 < 642 AND (col0 IS NULL)) ) AS tab1_267
----
75 values hashing to 1abe2ff8fa7178a9cb1ffe4b6b52f9a6

query I rowsort label-3700-3
SELECT * FROM view_3_tab1_267
----
75 values hashing to 1abe2ff8fa7178a9cb1ffe4b6b52f9a6

query I rowsort label-3700-3
SELECT pk FROM tab1 WHERE (col3 IN (163,887,124,808,198) OR col4 > 490.27 OR col4 = 640.57 AND col0 < 258 AND col1 >= 674.98 OR col0 IS NULL AND (col0 >= 677) OR col0 < 331 AND col0 < 163 AND (col0 <= 470) OR col0 <= 431 OR col0 < 642 AND (col0 IS NULL))
----
75 values hashing to 1abe2ff8fa7178a9cb1ffe4b6b52f9a6

statement ok
DROP VIEW view_1_tab1_267

statement ok
DROP VIEW view_2_tab1_267

statement ok
DROP VIEW view_3_tab1_267

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_267') DROP VIEW view_1_tab2_267

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_267

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_267') DROP VIEW view_2_tab2_267

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_267

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_267') DROP VIEW view_3_tab2_267

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_267

statement ok
CREATE VIEW view_1_tab2_267 AS SELECT pk, col0 FROM tab2 WHERE (col3 IN (163,887,124,808,198) OR col4 > 490.27 OR col4 = 640.57 AND col0 < 258 AND col1 >= 674.98 OR col0 IS NULL AND (col0 >= 677) OR col0 < 331 AND col0 < 163 AND (col0 <= 470) OR col0 <= 431 OR col0 < 642 AND (col0 IS NULL))

statement ok
CREATE VIEW view_2_tab2_267 AS SELECT pk, col0 FROM tab2 WHERE NOT ((col3 IN (163,887,124,808,198) OR col4 > 490.27 OR col4 = 640.57 AND col0 < 258 AND col1 >= 674.98 OR col0 IS NULL AND (col0 >= 677) OR col0 < 331 AND col0 < 163 AND (col0 <= 470) OR col0 <= 431 OR col0 < 642 AND (col0 IS NULL)))

statement ok
CREATE VIEW view_3_tab2_267 AS SELECT pk FROM view_1_tab2_267

query II rowsort label-3700-1
SELECT pk, col0 FROM tab2 WHERE (col3 IN (163,887,124,808,198) OR col4 > 490.27 OR col4 = 640.57 AND col0 < 258 AND col1 >= 674.98 OR col0 IS NULL AND (col0 >= 677) OR col0 < 331 AND col0 < 163 AND (col0 <= 470) OR col0 <= 431 OR col0 < 642 AND (col0 IS NULL))
----
150 values hashing to c48632bb9a943b9b38c8e36e0d0c8e32

query II rowsort label-3700-2
SELECT pk, col0 FROM tab2 WHERE NOT ((col3 IN (163,887,124,808,198) OR col4 > 490.27 OR col4 = 640.57 AND col0 < 258 AND col1 >= 674.98 OR col0 IS NULL AND (col0 >= 677) OR col0 < 331 AND col0 < 163 AND (col0 <= 470) OR col0 <= 431 OR col0 < 642 AND (col0 IS NULL)))
----
50 values hashing to db375f22da88d9b7b123ae4312040dbc

query II rowsort label-3700-1
SELECT pk, col0 FROM view_1_tab2_267
----
150 values hashing to c48632bb9a943b9b38c8e36e0d0c8e32

query II rowsort label-3700-2
SELECT pk, col0 FROM view_2_tab2_267
----
50 values hashing to db375f22da88d9b7b123ae4312040dbc

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col3 IN (163,887,124,808,198) OR col4 > 490.27 OR col4 = 640.57 AND col0 < 258 AND col1 >= 674.98 OR col0 IS NULL AND (col0 >= 677) OR col0 < 331 AND col0 < 163 AND (col0 <= 470) OR col0 <= 431 OR col0 < 642 AND (col0 IS NULL)) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT ((col3 IN (163,887,124,808,198) OR col4 > 490.27 OR col4 = 640.57 AND col0 < 258 AND col1 >= 674.98 OR col0 IS NULL AND (col0 >= 677) OR col0 < 331 AND col0 < 163 AND (col0 <= 470) OR col0 <= 431 OR col0 < 642 AND (col0 IS NULL)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_267 UNION ALL SELECT pk, col0 FROM view_2_tab2_267
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col3 IN (163,887,124,808,198) OR col4 > 490.27 OR col4 = 640.57 AND col0 < 258 AND col1 >= 674.98 OR col0 IS NULL AND (col0 >= 677) OR col0 < 331 AND col0 < 163 AND (col0 <= 470) OR col0 <= 431 OR col0 < 642 AND (col0 IS NULL)) UNION SELECT pk, col0 FROM tab2 WHERE NOT ((col3 IN (163,887,124,808,198) OR col4 > 490.27 OR col4 = 640.57 AND col0 < 258 AND col1 >= 674.98 OR col0 IS NULL AND (col0 >= 677) OR col0 < 331 AND col0 < 163 AND (col0 <= 470) OR col0 <= 431 OR col0 < 642 AND (col0 IS NULL)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_267 UNION SELECT pk, col0 FROM view_2_tab2_267
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-3700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE (col3 IN (163,887,124,808,198) OR col4 > 490.27 OR col4 = 640.57 AND col0 < 258 AND col1 >= 674.98 OR col0 IS NULL AND (col0 >= 677) OR col0 < 331 AND col0 < 163 AND (col0 <= 470) OR col0 <= 431 OR col0 < 642 AND (col0 IS NULL)) ) AS tab2_267
----
75 values hashing to 1abe2ff8fa7178a9cb1ffe4b6b52f9a6

query I rowsort label-3700-3
SELECT * FROM view_3_tab2_267
----
75 values hashing to 1abe2ff8fa7178a9cb1ffe4b6b52f9a6

query I rowsort label-3700-3
SELECT pk FROM tab2 WHERE (col3 IN (163,887,124,808,198) OR col4 > 490.27 OR col4 = 640.57 AND col0 < 258 AND col1 >= 674.98 OR col0 IS NULL AND (col0 >= 677) OR col0 < 331 AND col0 < 163 AND (col0 <= 470) OR col0 <= 431 OR col0 < 642 AND (col0 IS NULL))
----
75 values hashing to 1abe2ff8fa7178a9cb1ffe4b6b52f9a6

statement ok
DROP VIEW view_1_tab2_267

statement ok
DROP VIEW view_2_tab2_267

statement ok
DROP VIEW view_3_tab2_267

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_267') DROP VIEW view_1_tab3_267

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_267

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_267') DROP VIEW view_2_tab3_267

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_267

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_267') DROP VIEW view_3_tab3_267

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_267

statement ok
CREATE VIEW view_1_tab3_267 AS SELECT pk, col0 FROM tab3 WHERE (col3 IN (163,887,124,808,198) OR col4 > 490.27 OR col4 = 640.57 AND col0 < 258 AND col1 >= 674.98 OR col0 IS NULL AND (col0 >= 677) OR col0 < 331 AND col0 < 163 AND (col0 <= 470) OR col0 <= 431 OR col0 < 642 AND (col0 IS NULL))

statement ok
CREATE VIEW view_2_tab3_267 AS SELECT pk, col0 FROM tab3 WHERE NOT ((col3 IN (163,887,124,808,198) OR col4 > 490.27 OR col4 = 640.57 AND col0 < 258 AND col1 >= 674.98 OR col0 IS NULL AND (col0 >= 677) OR col0 < 331 AND col0 < 163 AND (col0 <= 470) OR col0 <= 431 OR col0 < 642 AND (col0 IS NULL)))

statement ok
CREATE VIEW view_3_tab3_267 AS SELECT pk FROM view_1_tab3_267

query II rowsort label-3700-1
SELECT pk, col0 FROM tab3 WHERE (col3 IN (163,887,124,808,198) OR col4 > 490.27 OR col4 = 640.57 AND col0 < 258 AND col1 >= 674.98 OR col0 IS NULL AND (col0 >= 677) OR col0 < 331 AND col0 < 163 AND (col0 <= 470) OR col0 <= 431 OR col0 < 642 AND (col0 IS NULL))
----
150 values hashing to c48632bb9a943b9b38c8e36e0d0c8e32

query II rowsort label-3700-2
SELECT pk, col0 FROM tab3 WHERE NOT ((col3 IN (163,887,124,808,198) OR col4 > 490.27 OR col4 = 640.57 AND col0 < 258 AND col1 >= 674.98 OR col0 IS NULL AND (col0 >= 677) OR col0 < 331 AND col0 < 163 AND (col0 <= 470) OR col0 <= 431 OR col0 < 642 AND (col0 IS NULL)))
----
50 values hashing to db375f22da88d9b7b123ae4312040dbc

query II rowsort label-3700-1
SELECT pk, col0 FROM view_1_tab3_267
----
150 values hashing to c48632bb9a943b9b38c8e36e0d0c8e32

query II rowsort label-3700-2
SELECT pk, col0 FROM view_2_tab3_267
----
50 values hashing to db375f22da88d9b7b123ae4312040dbc

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col3 IN (163,887,124,808,198) OR col4 > 490.27 OR col4 = 640.57 AND col0 < 258 AND col1 >= 674.98 OR col0 IS NULL AND (col0 >= 677) OR col0 < 331 AND col0 < 163 AND (col0 <= 470) OR col0 <= 431 OR col0 < 642 AND (col0 IS NULL)) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT ((col3 IN (163,887,124,808,198) OR col4 > 490.27 OR col4 = 640.57 AND col0 < 258 AND col1 >= 674.98 OR col0 IS NULL AND (col0 >= 677) OR col0 < 331 AND col0 < 163 AND (col0 <= 470) OR col0 <= 431 OR col0 < 642 AND (col0 IS NULL)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_267 UNION ALL SELECT pk, col0 FROM view_2_tab3_267
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col3 IN (163,887,124,808,198) OR col4 > 490.27 OR col4 = 640.57 AND col0 < 258 AND col1 >= 674.98 OR col0 IS NULL AND (col0 >= 677) OR col0 < 331 AND col0 < 163 AND (col0 <= 470) OR col0 <= 431 OR col0 < 642 AND (col0 IS NULL)) UNION SELECT pk, col0 FROM tab3 WHERE NOT ((col3 IN (163,887,124,808,198) OR col4 > 490.27 OR col4 = 640.57 AND col0 < 258 AND col1 >= 674.98 OR col0 IS NULL AND (col0 >= 677) OR col0 < 331 AND col0 < 163 AND (col0 <= 470) OR col0 <= 431 OR col0 < 642 AND (col0 IS NULL)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_267 UNION SELECT pk, col0 FROM view_2_tab3_267
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-3700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE (col3 IN (163,887,124,808,198) OR col4 > 490.27 OR col4 = 640.57 AND col0 < 258 AND col1 >= 674.98 OR col0 IS NULL AND (col0 >= 677) OR col0 < 331 AND col0 < 163 AND (col0 <= 470) OR col0 <= 431 OR col0 < 642 AND (col0 IS NULL)) ) AS tab3_267
----
75 values hashing to 1abe2ff8fa7178a9cb1ffe4b6b52f9a6

query I rowsort label-3700-3
SELECT * FROM view_3_tab3_267
----
75 values hashing to 1abe2ff8fa7178a9cb1ffe4b6b52f9a6

query I rowsort label-3700-3
SELECT pk FROM tab3 WHERE (col3 IN (163,887,124,808,198) OR col4 > 490.27 OR col4 = 640.57 AND col0 < 258 AND col1 >= 674.98 OR col0 IS NULL AND (col0 >= 677) OR col0 < 331 AND col0 < 163 AND (col0 <= 470) OR col0 <= 431 OR col0 < 642 AND (col0 IS NULL))
----
75 values hashing to 1abe2ff8fa7178a9cb1ffe4b6b52f9a6

statement ok
DROP VIEW view_1_tab3_267

statement ok
DROP VIEW view_2_tab3_267

statement ok
DROP VIEW view_3_tab3_267

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_267') DROP VIEW view_1_tab4_267

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_267

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_267') DROP VIEW view_2_tab4_267

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_267

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_267') DROP VIEW view_3_tab4_267

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_267

statement ok
CREATE VIEW view_1_tab4_267 AS SELECT pk, col0 FROM tab4 WHERE (col3 IN (163,887,124,808,198) OR col4 > 490.27 OR col4 = 640.57 AND col0 < 258 AND col1 >= 674.98 OR col0 IS NULL AND (col0 >= 677) OR col0 < 331 AND col0 < 163 AND (col0 <= 470) OR col0 <= 431 OR col0 < 642 AND (col0 IS NULL))

statement ok
CREATE VIEW view_2_tab4_267 AS SELECT pk, col0 FROM tab4 WHERE NOT ((col3 IN (163,887,124,808,198) OR col4 > 490.27 OR col4 = 640.57 AND col0 < 258 AND col1 >= 674.98 OR col0 IS NULL AND (col0 >= 677) OR col0 < 331 AND col0 < 163 AND (col0 <= 470) OR col0 <= 431 OR col0 < 642 AND (col0 IS NULL)))

statement ok
CREATE VIEW view_3_tab4_267 AS SELECT pk FROM view_1_tab4_267

query II rowsort label-3700-1
SELECT pk, col0 FROM tab4 WHERE (col3 IN (163,887,124,808,198) OR col4 > 490.27 OR col4 = 640.57 AND col0 < 258 AND col1 >= 674.98 OR col0 IS NULL AND (col0 >= 677) OR col0 < 331 AND col0 < 163 AND (col0 <= 470) OR col0 <= 431 OR col0 < 642 AND (col0 IS NULL))
----
150 values hashing to c48632bb9a943b9b38c8e36e0d0c8e32

query II rowsort label-3700-2
SELECT pk, col0 FROM tab4 WHERE NOT ((col3 IN (163,887,124,808,198) OR col4 > 490.27 OR col4 = 640.57 AND col0 < 258 AND col1 >= 674.98 OR col0 IS NULL AND (col0 >= 677) OR col0 < 331 AND col0 < 163 AND (col0 <= 470) OR col0 <= 431 OR col0 < 642 AND (col0 IS NULL)))
----
50 values hashing to db375f22da88d9b7b123ae4312040dbc

query II rowsort label-3700-1
SELECT pk, col0 FROM view_1_tab4_267
----
150 values hashing to c48632bb9a943b9b38c8e36e0d0c8e32

query II rowsort label-3700-2
SELECT pk, col0 FROM view_2_tab4_267
----
50 values hashing to db375f22da88d9b7b123ae4312040dbc

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col3 IN (163,887,124,808,198) OR col4 > 490.27 OR col4 = 640.57 AND col0 < 258 AND col1 >= 674.98 OR col0 IS NULL AND (col0 >= 677) OR col0 < 331 AND col0 < 163 AND (col0 <= 470) OR col0 <= 431 OR col0 < 642 AND (col0 IS NULL)) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT ((col3 IN (163,887,124,808,198) OR col4 > 490.27 OR col4 = 640.57 AND col0 < 258 AND col1 >= 674.98 OR col0 IS NULL AND (col0 >= 677) OR col0 < 331 AND col0 < 163 AND (col0 <= 470) OR col0 <= 431 OR col0 < 642 AND (col0 IS NULL)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_267 UNION ALL SELECT pk, col0 FROM view_2_tab4_267
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col3 IN (163,887,124,808,198) OR col4 > 490.27 OR col4 = 640.57 AND col0 < 258 AND col1 >= 674.98 OR col0 IS NULL AND (col0 >= 677) OR col0 < 331 AND col0 < 163 AND (col0 <= 470) OR col0 <= 431 OR col0 < 642 AND (col0 IS NULL)) UNION SELECT pk, col0 FROM tab4 WHERE NOT ((col3 IN (163,887,124,808,198) OR col4 > 490.27 OR col4 = 640.57 AND col0 < 258 AND col1 >= 674.98 OR col0 IS NULL AND (col0 >= 677) OR col0 < 331 AND col0 < 163 AND (col0 <= 470) OR col0 <= 431 OR col0 < 642 AND (col0 IS NULL)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_267 UNION SELECT pk, col0 FROM view_2_tab4_267
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-3700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE (col3 IN (163,887,124,808,198) OR col4 > 490.27 OR col4 = 640.57 AND col0 < 258 AND col1 >= 674.98 OR col0 IS NULL AND (col0 >= 677) OR col0 < 331 AND col0 < 163 AND (col0 <= 470) OR col0 <= 431 OR col0 < 642 AND (col0 IS NULL)) ) AS tab4_267
----
75 values hashing to 1abe2ff8fa7178a9cb1ffe4b6b52f9a6

query I rowsort label-3700-3
SELECT * FROM view_3_tab4_267
----
75 values hashing to 1abe2ff8fa7178a9cb1ffe4b6b52f9a6

query I rowsort label-3700-3
SELECT pk FROM tab4 WHERE (col3 IN (163,887,124,808,198) OR col4 > 490.27 OR col4 = 640.57 AND col0 < 258 AND col1 >= 674.98 OR col0 IS NULL AND (col0 >= 677) OR col0 < 331 AND col0 < 163 AND (col0 <= 470) OR col0 <= 431 OR col0 < 642 AND (col0 IS NULL))
----
75 values hashing to 1abe2ff8fa7178a9cb1ffe4b6b52f9a6

statement ok
DROP VIEW view_1_tab4_267

statement ok
DROP VIEW view_2_tab4_267

statement ok
DROP VIEW view_3_tab4_267

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_268') DROP VIEW view_1_tab0_268

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_268

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_268') DROP VIEW view_2_tab0_268

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_268

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_268') DROP VIEW view_3_tab0_268

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_268

statement ok
CREATE VIEW view_1_tab0_268 AS SELECT pk, col0 FROM tab0 WHERE col4 >= 212.36

statement ok
CREATE VIEW view_2_tab0_268 AS SELECT pk, col0 FROM tab0 WHERE NOT (col4 >= 212.36)

statement ok
CREATE VIEW view_3_tab0_268 AS SELECT pk FROM view_1_tab0_268

query II rowsort label-3800-1
SELECT pk, col0 FROM tab0 WHERE col4 >= 212.36
----
164 values hashing to ab75f53816f0e30ce4beb70935ec69b4

query II rowsort label-3800-2
SELECT pk, col0 FROM tab0 WHERE NOT (col4 >= 212.36)
----
36 values hashing to 20d01d29f5c94c3cce0a010543feab11

query II rowsort label-3800-1
SELECT pk, col0 FROM view_1_tab0_268
----
164 values hashing to ab75f53816f0e30ce4beb70935ec69b4

query II rowsort label-3800-2
SELECT pk, col0 FROM view_2_tab0_268
----
36 values hashing to 20d01d29f5c94c3cce0a010543feab11

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col4 >= 212.36 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col4 >= 212.36)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_268 UNION ALL SELECT pk, col0 FROM view_2_tab0_268
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col4 >= 212.36 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col4 >= 212.36)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_268 UNION SELECT pk, col0 FROM view_2_tab0_268
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-3800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col4 >= 212.36 ) AS tab0_268
----
82 values hashing to 8ce39bb5ab608448d50f86ffe921119e

query I rowsort label-3800-3
SELECT * FROM view_3_tab0_268
----
82 values hashing to 8ce39bb5ab608448d50f86ffe921119e

query I rowsort label-3800-3
SELECT pk FROM tab0 WHERE col4 >= 212.36
----
82 values hashing to 8ce39bb5ab608448d50f86ffe921119e

statement ok
DROP VIEW view_1_tab0_268

statement ok
DROP VIEW view_2_tab0_268

statement ok
DROP VIEW view_3_tab0_268

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_268') DROP VIEW view_1_tab1_268

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_268

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_268') DROP VIEW view_2_tab1_268

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_268

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_268') DROP VIEW view_3_tab1_268

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_268

statement ok
CREATE VIEW view_1_tab1_268 AS SELECT pk, col0 FROM tab1 WHERE col4 >= 212.36

statement ok
CREATE VIEW view_2_tab1_268 AS SELECT pk, col0 FROM tab1 WHERE NOT (col4 >= 212.36)

statement ok
CREATE VIEW view_3_tab1_268 AS SELECT pk FROM view_1_tab1_268

query II rowsort label-3800-1
SELECT pk, col0 FROM tab1 WHERE col4 >= 212.36
----
164 values hashing to ab75f53816f0e30ce4beb70935ec69b4

query II rowsort label-3800-2
SELECT pk, col0 FROM tab1 WHERE NOT (col4 >= 212.36)
----
36 values hashing to 20d01d29f5c94c3cce0a010543feab11

query II rowsort label-3800-1
SELECT pk, col0 FROM view_1_tab1_268
----
164 values hashing to ab75f53816f0e30ce4beb70935ec69b4

query II rowsort label-3800-2
SELECT pk, col0 FROM view_2_tab1_268
----
36 values hashing to 20d01d29f5c94c3cce0a010543feab11

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col4 >= 212.36 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col4 >= 212.36)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_268 UNION ALL SELECT pk, col0 FROM view_2_tab1_268
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col4 >= 212.36 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col4 >= 212.36)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_268 UNION SELECT pk, col0 FROM view_2_tab1_268
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-3800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col4 >= 212.36 ) AS tab1_268
----
82 values hashing to 8ce39bb5ab608448d50f86ffe921119e

query I rowsort label-3800-3
SELECT * FROM view_3_tab1_268
----
82 values hashing to 8ce39bb5ab608448d50f86ffe921119e

query I rowsort label-3800-3
SELECT pk FROM tab1 WHERE col4 >= 212.36
----
82 values hashing to 8ce39bb5ab608448d50f86ffe921119e

statement ok
DROP VIEW view_1_tab1_268

statement ok
DROP VIEW view_2_tab1_268

statement ok
DROP VIEW view_3_tab1_268

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_268') DROP VIEW view_1_tab2_268

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_268

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_268') DROP VIEW view_2_tab2_268

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_268

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_268') DROP VIEW view_3_tab2_268

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_268

statement ok
CREATE VIEW view_1_tab2_268 AS SELECT pk, col0 FROM tab2 WHERE col4 >= 212.36

statement ok
CREATE VIEW view_2_tab2_268 AS SELECT pk, col0 FROM tab2 WHERE NOT (col4 >= 212.36)

statement ok
CREATE VIEW view_3_tab2_268 AS SELECT pk FROM view_1_tab2_268

query II rowsort label-3800-1
SELECT pk, col0 FROM tab2 WHERE col4 >= 212.36
----
164 values hashing to ab75f53816f0e30ce4beb70935ec69b4

query II rowsort label-3800-2
SELECT pk, col0 FROM tab2 WHERE NOT (col4 >= 212.36)
----
36 values hashing to 20d01d29f5c94c3cce0a010543feab11

query II rowsort label-3800-1
SELECT pk, col0 FROM view_1_tab2_268
----
164 values hashing to ab75f53816f0e30ce4beb70935ec69b4

query II rowsort label-3800-2
SELECT pk, col0 FROM view_2_tab2_268
----
36 values hashing to 20d01d29f5c94c3cce0a010543feab11

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col4 >= 212.36 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col4 >= 212.36)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_268 UNION ALL SELECT pk, col0 FROM view_2_tab2_268
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col4 >= 212.36 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col4 >= 212.36)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_268 UNION SELECT pk, col0 FROM view_2_tab2_268
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-3800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col4 >= 212.36 ) AS tab2_268
----
82 values hashing to 8ce39bb5ab608448d50f86ffe921119e

query I rowsort label-3800-3
SELECT * FROM view_3_tab2_268
----
82 values hashing to 8ce39bb5ab608448d50f86ffe921119e

query I rowsort label-3800-3
SELECT pk FROM tab2 WHERE col4 >= 212.36
----
82 values hashing to 8ce39bb5ab608448d50f86ffe921119e

statement ok
DROP VIEW view_1_tab2_268

statement ok
DROP VIEW view_2_tab2_268

statement ok
DROP VIEW view_3_tab2_268

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_268') DROP VIEW view_1_tab3_268

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_268

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_268') DROP VIEW view_2_tab3_268

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_268

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_268') DROP VIEW view_3_tab3_268

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_268

statement ok
CREATE VIEW view_1_tab3_268 AS SELECT pk, col0 FROM tab3 WHERE col4 >= 212.36

statement ok
CREATE VIEW view_2_tab3_268 AS SELECT pk, col0 FROM tab3 WHERE NOT (col4 >= 212.36)

statement ok
CREATE VIEW view_3_tab3_268 AS SELECT pk FROM view_1_tab3_268

query II rowsort label-3800-1
SELECT pk, col0 FROM tab3 WHERE col4 >= 212.36
----
164 values hashing to ab75f53816f0e30ce4beb70935ec69b4

query II rowsort label-3800-2
SELECT pk, col0 FROM tab3 WHERE NOT (col4 >= 212.36)
----
36 values hashing to 20d01d29f5c94c3cce0a010543feab11

query II rowsort label-3800-1
SELECT pk, col0 FROM view_1_tab3_268
----
164 values hashing to ab75f53816f0e30ce4beb70935ec69b4

query II rowsort label-3800-2
SELECT pk, col0 FROM view_2_tab3_268
----
36 values hashing to 20d01d29f5c94c3cce0a010543feab11

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col4 >= 212.36 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col4 >= 212.36)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_268 UNION ALL SELECT pk, col0 FROM view_2_tab3_268
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col4 >= 212.36 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col4 >= 212.36)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_268 UNION SELECT pk, col0 FROM view_2_tab3_268
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-3800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col4 >= 212.36 ) AS tab3_268
----
82 values hashing to 8ce39bb5ab608448d50f86ffe921119e

query I rowsort label-3800-3
SELECT * FROM view_3_tab3_268
----
82 values hashing to 8ce39bb5ab608448d50f86ffe921119e

query I rowsort label-3800-3
SELECT pk FROM tab3 WHERE col4 >= 212.36
----
82 values hashing to 8ce39bb5ab608448d50f86ffe921119e

statement ok
DROP VIEW view_1_tab3_268

statement ok
DROP VIEW view_2_tab3_268

statement ok
DROP VIEW view_3_tab3_268

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_268') DROP VIEW view_1_tab4_268

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_268

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_268') DROP VIEW view_2_tab4_268

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_268

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_268') DROP VIEW view_3_tab4_268

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_268

statement ok
CREATE VIEW view_1_tab4_268 AS SELECT pk, col0 FROM tab4 WHERE col4 >= 212.36

statement ok
CREATE VIEW view_2_tab4_268 AS SELECT pk, col0 FROM tab4 WHERE NOT (col4 >= 212.36)

statement ok
CREATE VIEW view_3_tab4_268 AS SELECT pk FROM view_1_tab4_268

query II rowsort label-3800-1
SELECT pk, col0 FROM tab4 WHERE col4 >= 212.36
----
164 values hashing to ab75f53816f0e30ce4beb70935ec69b4

query II rowsort label-3800-2
SELECT pk, col0 FROM tab4 WHERE NOT (col4 >= 212.36)
----
36 values hashing to 20d01d29f5c94c3cce0a010543feab11

query II rowsort label-3800-1
SELECT pk, col0 FROM view_1_tab4_268
----
164 values hashing to ab75f53816f0e30ce4beb70935ec69b4

query II rowsort label-3800-2
SELECT pk, col0 FROM view_2_tab4_268
----
36 values hashing to 20d01d29f5c94c3cce0a010543feab11

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col4 >= 212.36 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col4 >= 212.36)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_268 UNION ALL SELECT pk, col0 FROM view_2_tab4_268
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col4 >= 212.36 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col4 >= 212.36)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_268 UNION SELECT pk, col0 FROM view_2_tab4_268
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-3800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col4 >= 212.36 ) AS tab4_268
----
82 values hashing to 8ce39bb5ab608448d50f86ffe921119e

query I rowsort label-3800-3
SELECT * FROM view_3_tab4_268
----
82 values hashing to 8ce39bb5ab608448d50f86ffe921119e

query I rowsort label-3800-3
SELECT pk FROM tab4 WHERE col4 >= 212.36
----
82 values hashing to 8ce39bb5ab608448d50f86ffe921119e

statement ok
DROP VIEW view_1_tab4_268

statement ok
DROP VIEW view_2_tab4_268

statement ok
DROP VIEW view_3_tab4_268

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_269') DROP VIEW view_1_tab0_269

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_269

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_269') DROP VIEW view_2_tab0_269

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_269

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_269') DROP VIEW view_3_tab0_269

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_269

statement ok
CREATE VIEW view_1_tab0_269 AS SELECT pk, col0 FROM tab0 WHERE col1 < 641.78

statement ok
CREATE VIEW view_2_tab0_269 AS SELECT pk, col0 FROM tab0 WHERE NOT (col1 < 641.78)

statement ok
CREATE VIEW view_3_tab0_269 AS SELECT pk FROM view_1_tab0_269

query II rowsort label-3900-1
SELECT pk, col0 FROM tab0 WHERE col1 < 641.78
----
128 values hashing to 174d558108ffdd34349f00e1af723ef3

query II rowsort label-3900-2
SELECT pk, col0 FROM tab0 WHERE NOT (col1 < 641.78)
----
72 values hashing to 7c7184be05623c8ae8b56a0920dc32f4

query II rowsort label-3900-1
SELECT pk, col0 FROM view_1_tab0_269
----
128 values hashing to 174d558108ffdd34349f00e1af723ef3

query II rowsort label-3900-2
SELECT pk, col0 FROM view_2_tab0_269
----
72 values hashing to 7c7184be05623c8ae8b56a0920dc32f4

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col1 < 641.78 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col1 < 641.78)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_269 UNION ALL SELECT pk, col0 FROM view_2_tab0_269
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col1 < 641.78 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col1 < 641.78)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_269 UNION SELECT pk, col0 FROM view_2_tab0_269
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-3900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col1 < 641.78 ) AS tab0_269
----
64 values hashing to 3011f18386b3cce75db43426423ebf9f

query I rowsort label-3900-3
SELECT * FROM view_3_tab0_269
----
64 values hashing to 3011f18386b3cce75db43426423ebf9f

query I rowsort label-3900-3
SELECT pk FROM tab0 WHERE col1 < 641.78
----
64 values hashing to 3011f18386b3cce75db43426423ebf9f

statement ok
DROP VIEW view_1_tab0_269

statement ok
DROP VIEW view_2_tab0_269

statement ok
DROP VIEW view_3_tab0_269

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_269') DROP VIEW view_1_tab1_269

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_269

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_269') DROP VIEW view_2_tab1_269

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_269

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_269') DROP VIEW view_3_tab1_269

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_269

statement ok
CREATE VIEW view_1_tab1_269 AS SELECT pk, col0 FROM tab1 WHERE col1 < 641.78

statement ok
CREATE VIEW view_2_tab1_269 AS SELECT pk, col0 FROM tab1 WHERE NOT (col1 < 641.78)

statement ok
CREATE VIEW view_3_tab1_269 AS SELECT pk FROM view_1_tab1_269

query II rowsort label-3900-1
SELECT pk, col0 FROM tab1 WHERE col1 < 641.78
----
128 values hashing to 174d558108ffdd34349f00e1af723ef3

query II rowsort label-3900-2
SELECT pk, col0 FROM tab1 WHERE NOT (col1 < 641.78)
----
72 values hashing to 7c7184be05623c8ae8b56a0920dc32f4

query II rowsort label-3900-1
SELECT pk, col0 FROM view_1_tab1_269
----
128 values hashing to 174d558108ffdd34349f00e1af723ef3

query II rowsort label-3900-2
SELECT pk, col0 FROM view_2_tab1_269
----
72 values hashing to 7c7184be05623c8ae8b56a0920dc32f4

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col1 < 641.78 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col1 < 641.78)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_269 UNION ALL SELECT pk, col0 FROM view_2_tab1_269
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col1 < 641.78 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col1 < 641.78)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_269 UNION SELECT pk, col0 FROM view_2_tab1_269
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-3900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col1 < 641.78 ) AS tab1_269
----
64 values hashing to 3011f18386b3cce75db43426423ebf9f

query I rowsort label-3900-3
SELECT * FROM view_3_tab1_269
----
64 values hashing to 3011f18386b3cce75db43426423ebf9f

query I rowsort label-3900-3
SELECT pk FROM tab1 WHERE col1 < 641.78
----
64 values hashing to 3011f18386b3cce75db43426423ebf9f

statement ok
DROP VIEW view_1_tab1_269

statement ok
DROP VIEW view_2_tab1_269

statement ok
DROP VIEW view_3_tab1_269

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_269') DROP VIEW view_1_tab2_269

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_269

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_269') DROP VIEW view_2_tab2_269

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_269

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_269') DROP VIEW view_3_tab2_269

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_269

statement ok
CREATE VIEW view_1_tab2_269 AS SELECT pk, col0 FROM tab2 WHERE col1 < 641.78

statement ok
CREATE VIEW view_2_tab2_269 AS SELECT pk, col0 FROM tab2 WHERE NOT (col1 < 641.78)

statement ok
CREATE VIEW view_3_tab2_269 AS SELECT pk FROM view_1_tab2_269

query II rowsort label-3900-1
SELECT pk, col0 FROM tab2 WHERE col1 < 641.78
----
128 values hashing to 174d558108ffdd34349f00e1af723ef3

query II rowsort label-3900-2
SELECT pk, col0 FROM tab2 WHERE NOT (col1 < 641.78)
----
72 values hashing to 7c7184be05623c8ae8b56a0920dc32f4

query II rowsort label-3900-1
SELECT pk, col0 FROM view_1_tab2_269
----
128 values hashing to 174d558108ffdd34349f00e1af723ef3

query II rowsort label-3900-2
SELECT pk, col0 FROM view_2_tab2_269
----
72 values hashing to 7c7184be05623c8ae8b56a0920dc32f4

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col1 < 641.78 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col1 < 641.78)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_269 UNION ALL SELECT pk, col0 FROM view_2_tab2_269
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col1 < 641.78 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col1 < 641.78)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_269 UNION SELECT pk, col0 FROM view_2_tab2_269
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-3900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col1 < 641.78 ) AS tab2_269
----
64 values hashing to 3011f18386b3cce75db43426423ebf9f

query I rowsort label-3900-3
SELECT * FROM view_3_tab2_269
----
64 values hashing to 3011f18386b3cce75db43426423ebf9f

query I rowsort label-3900-3
SELECT pk FROM tab2 WHERE col1 < 641.78
----
64 values hashing to 3011f18386b3cce75db43426423ebf9f

statement ok
DROP VIEW view_1_tab2_269

statement ok
DROP VIEW view_2_tab2_269

statement ok
DROP VIEW view_3_tab2_269

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_269') DROP VIEW view_1_tab3_269

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_269

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_269') DROP VIEW view_2_tab3_269

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_269

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_269') DROP VIEW view_3_tab3_269

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_269

statement ok
CREATE VIEW view_1_tab3_269 AS SELECT pk, col0 FROM tab3 WHERE col1 < 641.78

statement ok
CREATE VIEW view_2_tab3_269 AS SELECT pk, col0 FROM tab3 WHERE NOT (col1 < 641.78)

statement ok
CREATE VIEW view_3_tab3_269 AS SELECT pk FROM view_1_tab3_269

query II rowsort label-3900-1
SELECT pk, col0 FROM tab3 WHERE col1 < 641.78
----
128 values hashing to 174d558108ffdd34349f00e1af723ef3

query II rowsort label-3900-2
SELECT pk, col0 FROM tab3 WHERE NOT (col1 < 641.78)
----
72 values hashing to 7c7184be05623c8ae8b56a0920dc32f4

query II rowsort label-3900-1
SELECT pk, col0 FROM view_1_tab3_269
----
128 values hashing to 174d558108ffdd34349f00e1af723ef3

query II rowsort label-3900-2
SELECT pk, col0 FROM view_2_tab3_269
----
72 values hashing to 7c7184be05623c8ae8b56a0920dc32f4

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col1 < 641.78 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col1 < 641.78)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_269 UNION ALL SELECT pk, col0 FROM view_2_tab3_269
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col1 < 641.78 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col1 < 641.78)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_269 UNION SELECT pk, col0 FROM view_2_tab3_269
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-3900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col1 < 641.78 ) AS tab3_269
----
64 values hashing to 3011f18386b3cce75db43426423ebf9f

query I rowsort label-3900-3
SELECT * FROM view_3_tab3_269
----
64 values hashing to 3011f18386b3cce75db43426423ebf9f

query I rowsort label-3900-3
SELECT pk FROM tab3 WHERE col1 < 641.78
----
64 values hashing to 3011f18386b3cce75db43426423ebf9f

statement ok
DROP VIEW view_1_tab3_269

statement ok
DROP VIEW view_2_tab3_269

statement ok
DROP VIEW view_3_tab3_269

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_269') DROP VIEW view_1_tab4_269

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_269

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_269') DROP VIEW view_2_tab4_269

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_269

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_269') DROP VIEW view_3_tab4_269

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_269

statement ok
CREATE VIEW view_1_tab4_269 AS SELECT pk, col0 FROM tab4 WHERE col1 < 641.78

statement ok
CREATE VIEW view_2_tab4_269 AS SELECT pk, col0 FROM tab4 WHERE NOT (col1 < 641.78)

statement ok
CREATE VIEW view_3_tab4_269 AS SELECT pk FROM view_1_tab4_269

query II rowsort label-3900-1
SELECT pk, col0 FROM tab4 WHERE col1 < 641.78
----
128 values hashing to 174d558108ffdd34349f00e1af723ef3

query II rowsort label-3900-2
SELECT pk, col0 FROM tab4 WHERE NOT (col1 < 641.78)
----
72 values hashing to 7c7184be05623c8ae8b56a0920dc32f4

query II rowsort label-3900-1
SELECT pk, col0 FROM view_1_tab4_269
----
128 values hashing to 174d558108ffdd34349f00e1af723ef3

query II rowsort label-3900-2
SELECT pk, col0 FROM view_2_tab4_269
----
72 values hashing to 7c7184be05623c8ae8b56a0920dc32f4

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col1 < 641.78 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col1 < 641.78)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_269 UNION ALL SELECT pk, col0 FROM view_2_tab4_269
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col1 < 641.78 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col1 < 641.78)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_269 UNION SELECT pk, col0 FROM view_2_tab4_269
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-3900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col1 < 641.78 ) AS tab4_269
----
64 values hashing to 3011f18386b3cce75db43426423ebf9f

query I rowsort label-3900-3
SELECT * FROM view_3_tab4_269
----
64 values hashing to 3011f18386b3cce75db43426423ebf9f

query I rowsort label-3900-3
SELECT pk FROM tab4 WHERE col1 < 641.78
----
64 values hashing to 3011f18386b3cce75db43426423ebf9f

statement ok
DROP VIEW view_1_tab4_269

statement ok
DROP VIEW view_2_tab4_269

statement ok
DROP VIEW view_3_tab4_269

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_270') DROP VIEW view_1_tab0_270

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_270

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_270') DROP VIEW view_2_tab0_270

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_270

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_270') DROP VIEW view_3_tab0_270

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_270

statement ok
CREATE VIEW view_1_tab0_270 AS SELECT pk, col0 FROM tab0 WHERE (col0 = 779)

statement ok
CREATE VIEW view_2_tab0_270 AS SELECT pk, col0 FROM tab0 WHERE NOT ((col0 = 779))

statement ok
CREATE VIEW view_3_tab0_270 AS SELECT pk FROM view_1_tab0_270

query II rowsort label-4000-1
SELECT pk, col0 FROM tab0 WHERE (col0 = 779)
----

query II rowsort label-4000-2
SELECT pk, col0 FROM tab0 WHERE NOT ((col0 = 779))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-4000-1
SELECT pk, col0 FROM view_1_tab0_270
----

query II rowsort label-4000-2
SELECT pk, col0 FROM view_2_tab0_270
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col0 = 779) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT ((col0 = 779))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_270 UNION ALL SELECT pk, col0 FROM view_2_tab0_270
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col0 = 779) UNION SELECT pk, col0 FROM tab0 WHERE NOT ((col0 = 779))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_270 UNION SELECT pk, col0 FROM view_2_tab0_270
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-4000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE (col0 = 779) ) AS tab0_270
----

query I rowsort label-4000-3
SELECT * FROM view_3_tab0_270
----

query I rowsort label-4000-3
SELECT pk FROM tab0 WHERE (col0 = 779)
----

statement ok
DROP VIEW view_1_tab0_270

statement ok
DROP VIEW view_2_tab0_270

statement ok
DROP VIEW view_3_tab0_270

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_270') DROP VIEW view_1_tab1_270

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_270

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_270') DROP VIEW view_2_tab1_270

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_270

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_270') DROP VIEW view_3_tab1_270

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_270

statement ok
CREATE VIEW view_1_tab1_270 AS SELECT pk, col0 FROM tab1 WHERE (col0 = 779)

statement ok
CREATE VIEW view_2_tab1_270 AS SELECT pk, col0 FROM tab1 WHERE NOT ((col0 = 779))

statement ok
CREATE VIEW view_3_tab1_270 AS SELECT pk FROM view_1_tab1_270

query II rowsort label-4000-1
SELECT pk, col0 FROM tab1 WHERE (col0 = 779)
----

query II rowsort label-4000-2
SELECT pk, col0 FROM tab1 WHERE NOT ((col0 = 779))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-4000-1
SELECT pk, col0 FROM view_1_tab1_270
----

query II rowsort label-4000-2
SELECT pk, col0 FROM view_2_tab1_270
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col0 = 779) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT ((col0 = 779))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_270 UNION ALL SELECT pk, col0 FROM view_2_tab1_270
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col0 = 779) UNION SELECT pk, col0 FROM tab1 WHERE NOT ((col0 = 779))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_270 UNION SELECT pk, col0 FROM view_2_tab1_270
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-4000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE (col0 = 779) ) AS tab1_270
----

query I rowsort label-4000-3
SELECT * FROM view_3_tab1_270
----

query I rowsort label-4000-3
SELECT pk FROM tab1 WHERE (col0 = 779)
----

statement ok
DROP VIEW view_1_tab1_270

statement ok
DROP VIEW view_2_tab1_270

statement ok
DROP VIEW view_3_tab1_270

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_270') DROP VIEW view_1_tab2_270

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_270

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_270') DROP VIEW view_2_tab2_270

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_270

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_270') DROP VIEW view_3_tab2_270

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_270

statement ok
CREATE VIEW view_1_tab2_270 AS SELECT pk, col0 FROM tab2 WHERE (col0 = 779)

statement ok
CREATE VIEW view_2_tab2_270 AS SELECT pk, col0 FROM tab2 WHERE NOT ((col0 = 779))

statement ok
CREATE VIEW view_3_tab2_270 AS SELECT pk FROM view_1_tab2_270

query II rowsort label-4000-1
SELECT pk, col0 FROM tab2 WHERE (col0 = 779)
----

query II rowsort label-4000-2
SELECT pk, col0 FROM tab2 WHERE NOT ((col0 = 779))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-4000-1
SELECT pk, col0 FROM view_1_tab2_270
----

query II rowsort label-4000-2
SELECT pk, col0 FROM view_2_tab2_270
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col0 = 779) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT ((col0 = 779))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_270 UNION ALL SELECT pk, col0 FROM view_2_tab2_270
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col0 = 779) UNION SELECT pk, col0 FROM tab2 WHERE NOT ((col0 = 779))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_270 UNION SELECT pk, col0 FROM view_2_tab2_270
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-4000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE (col0 = 779) ) AS tab2_270
----

query I rowsort label-4000-3
SELECT * FROM view_3_tab2_270
----

query I rowsort label-4000-3
SELECT pk FROM tab2 WHERE (col0 = 779)
----

statement ok
DROP VIEW view_1_tab2_270

statement ok
DROP VIEW view_2_tab2_270

statement ok
DROP VIEW view_3_tab2_270

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_270') DROP VIEW view_1_tab3_270

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_270

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_270') DROP VIEW view_2_tab3_270

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_270

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_270') DROP VIEW view_3_tab3_270

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_270

statement ok
CREATE VIEW view_1_tab3_270 AS SELECT pk, col0 FROM tab3 WHERE (col0 = 779)

statement ok
CREATE VIEW view_2_tab3_270 AS SELECT pk, col0 FROM tab3 WHERE NOT ((col0 = 779))

statement ok
CREATE VIEW view_3_tab3_270 AS SELECT pk FROM view_1_tab3_270

query II rowsort label-4000-1
SELECT pk, col0 FROM tab3 WHERE (col0 = 779)
----

query II rowsort label-4000-2
SELECT pk, col0 FROM tab3 WHERE NOT ((col0 = 779))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-4000-1
SELECT pk, col0 FROM view_1_tab3_270
----

query II rowsort label-4000-2
SELECT pk, col0 FROM view_2_tab3_270
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col0 = 779) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT ((col0 = 779))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_270 UNION ALL SELECT pk, col0 FROM view_2_tab3_270
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col0 = 779) UNION SELECT pk, col0 FROM tab3 WHERE NOT ((col0 = 779))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_270 UNION SELECT pk, col0 FROM view_2_tab3_270
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-4000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE (col0 = 779) ) AS tab3_270
----

query I rowsort label-4000-3
SELECT * FROM view_3_tab3_270
----

query I rowsort label-4000-3
SELECT pk FROM tab3 WHERE (col0 = 779)
----

statement ok
DROP VIEW view_1_tab3_270

statement ok
DROP VIEW view_2_tab3_270

statement ok
DROP VIEW view_3_tab3_270

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_270') DROP VIEW view_1_tab4_270

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_270

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_270') DROP VIEW view_2_tab4_270

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_270

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_270') DROP VIEW view_3_tab4_270

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_270

statement ok
CREATE VIEW view_1_tab4_270 AS SELECT pk, col0 FROM tab4 WHERE (col0 = 779)

statement ok
CREATE VIEW view_2_tab4_270 AS SELECT pk, col0 FROM tab4 WHERE NOT ((col0 = 779))

statement ok
CREATE VIEW view_3_tab4_270 AS SELECT pk FROM view_1_tab4_270

query II rowsort label-4000-1
SELECT pk, col0 FROM tab4 WHERE (col0 = 779)
----

query II rowsort label-4000-2
SELECT pk, col0 FROM tab4 WHERE NOT ((col0 = 779))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-4000-1
SELECT pk, col0 FROM view_1_tab4_270
----

query II rowsort label-4000-2
SELECT pk, col0 FROM view_2_tab4_270
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col0 = 779) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT ((col0 = 779))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_270 UNION ALL SELECT pk, col0 FROM view_2_tab4_270
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col0 = 779) UNION SELECT pk, col0 FROM tab4 WHERE NOT ((col0 = 779))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_270 UNION SELECT pk, col0 FROM view_2_tab4_270
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-4000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE (col0 = 779) ) AS tab4_270
----

query I rowsort label-4000-3
SELECT * FROM view_3_tab4_270
----

query I rowsort label-4000-3
SELECT pk FROM tab4 WHERE (col0 = 779)
----

statement ok
DROP VIEW view_1_tab4_270

statement ok
DROP VIEW view_2_tab4_270

statement ok
DROP VIEW view_3_tab4_270

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_271') DROP VIEW view_1_tab0_271

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_271

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_271') DROP VIEW view_2_tab0_271

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_271

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_271') DROP VIEW view_3_tab0_271

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_271

statement ok
CREATE VIEW view_1_tab0_271 AS SELECT pk, col0 FROM tab0 WHERE (col0 = 850 OR col3 = 474)

statement ok
CREATE VIEW view_2_tab0_271 AS SELECT pk, col0 FROM tab0 WHERE NOT ((col0 = 850 OR col3 = 474))

statement ok
CREATE VIEW view_3_tab0_271 AS SELECT pk FROM view_1_tab0_271

query II rowsort label-4100-1
SELECT pk, col0 FROM tab0 WHERE (col0 = 850 OR col3 = 474)
----
93
850

query II rowsort label-4100-2
SELECT pk, col0 FROM tab0 WHERE NOT ((col0 = 850 OR col3 = 474))
----
198 values hashing to 5db0d4f9586936d3653cacebb61f62b8

query II rowsort label-4100-1
SELECT pk, col0 FROM view_1_tab0_271
----
93
850

query II rowsort label-4100-2
SELECT pk, col0 FROM view_2_tab0_271
----
198 values hashing to 5db0d4f9586936d3653cacebb61f62b8

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col0 = 850 OR col3 = 474) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT ((col0 = 850 OR col3 = 474))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_271 UNION ALL SELECT pk, col0 FROM view_2_tab0_271
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col0 = 850 OR col3 = 474) UNION SELECT pk, col0 FROM tab0 WHERE NOT ((col0 = 850 OR col3 = 474))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_271 UNION SELECT pk, col0 FROM view_2_tab0_271
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-4100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE (col0 = 850 OR col3 = 474) ) AS tab0_271
----
93

query I rowsort label-4100-3
SELECT * FROM view_3_tab0_271
----
93

query I rowsort label-4100-3
SELECT pk FROM tab0 WHERE (col0 = 850 OR col3 = 474)
----
93

statement ok
DROP VIEW view_1_tab0_271

statement ok
DROP VIEW view_2_tab0_271

statement ok
DROP VIEW view_3_tab0_271

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_271') DROP VIEW view_1_tab1_271

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_271

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_271') DROP VIEW view_2_tab1_271

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_271

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_271') DROP VIEW view_3_tab1_271

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_271

statement ok
CREATE VIEW view_1_tab1_271 AS SELECT pk, col0 FROM tab1 WHERE (col0 = 850 OR col3 = 474)

statement ok
CREATE VIEW view_2_tab1_271 AS SELECT pk, col0 FROM tab1 WHERE NOT ((col0 = 850 OR col3 = 474))

statement ok
CREATE VIEW view_3_tab1_271 AS SELECT pk FROM view_1_tab1_271

query II rowsort label-4100-1
SELECT pk, col0 FROM tab1 WHERE (col0 = 850 OR col3 = 474)
----
93
850

query II rowsort label-4100-2
SELECT pk, col0 FROM tab1 WHERE NOT ((col0 = 850 OR col3 = 474))
----
198 values hashing to 5db0d4f9586936d3653cacebb61f62b8

query II rowsort label-4100-1
SELECT pk, col0 FROM view_1_tab1_271
----
93
850

query II rowsort label-4100-2
SELECT pk, col0 FROM view_2_tab1_271
----
198 values hashing to 5db0d4f9586936d3653cacebb61f62b8

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col0 = 850 OR col3 = 474) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT ((col0 = 850 OR col3 = 474))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_271 UNION ALL SELECT pk, col0 FROM view_2_tab1_271
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col0 = 850 OR col3 = 474) UNION SELECT pk, col0 FROM tab1 WHERE NOT ((col0 = 850 OR col3 = 474))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_271 UNION SELECT pk, col0 FROM view_2_tab1_271
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-4100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE (col0 = 850 OR col3 = 474) ) AS tab1_271
----
93

query I rowsort label-4100-3
SELECT * FROM view_3_tab1_271
----
93

query I rowsort label-4100-3
SELECT pk FROM tab1 WHERE (col0 = 850 OR col3 = 474)
----
93

statement ok
DROP VIEW view_1_tab1_271

statement ok
DROP VIEW view_2_tab1_271

statement ok
DROP VIEW view_3_tab1_271

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_271') DROP VIEW view_1_tab2_271

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_271

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_271') DROP VIEW view_2_tab2_271

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_271

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_271') DROP VIEW view_3_tab2_271

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_271

statement ok
CREATE VIEW view_1_tab2_271 AS SELECT pk, col0 FROM tab2 WHERE (col0 = 850 OR col3 = 474)

statement ok
CREATE VIEW view_2_tab2_271 AS SELECT pk, col0 FROM tab2 WHERE NOT ((col0 = 850 OR col3 = 474))

statement ok
CREATE VIEW view_3_tab2_271 AS SELECT pk FROM view_1_tab2_271

query II rowsort label-4100-1
SELECT pk, col0 FROM tab2 WHERE (col0 = 850 OR col3 = 474)
----
93
850

query II rowsort label-4100-2
SELECT pk, col0 FROM tab2 WHERE NOT ((col0 = 850 OR col3 = 474))
----
198 values hashing to 5db0d4f9586936d3653cacebb61f62b8

query II rowsort label-4100-1
SELECT pk, col0 FROM view_1_tab2_271
----
93
850

query II rowsort label-4100-2
SELECT pk, col0 FROM view_2_tab2_271
----
198 values hashing to 5db0d4f9586936d3653cacebb61f62b8

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col0 = 850 OR col3 = 474) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT ((col0 = 850 OR col3 = 474))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_271 UNION ALL SELECT pk, col0 FROM view_2_tab2_271
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col0 = 850 OR col3 = 474) UNION SELECT pk, col0 FROM tab2 WHERE NOT ((col0 = 850 OR col3 = 474))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_271 UNION SELECT pk, col0 FROM view_2_tab2_271
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-4100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE (col0 = 850 OR col3 = 474) ) AS tab2_271
----
93

query I rowsort label-4100-3
SELECT * FROM view_3_tab2_271
----
93

query I rowsort label-4100-3
SELECT pk FROM tab2 WHERE (col0 = 850 OR col3 = 474)
----
93

statement ok
DROP VIEW view_1_tab2_271

statement ok
DROP VIEW view_2_tab2_271

statement ok
DROP VIEW view_3_tab2_271

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_271') DROP VIEW view_1_tab3_271

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_271

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_271') DROP VIEW view_2_tab3_271

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_271

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_271') DROP VIEW view_3_tab3_271

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_271

statement ok
CREATE VIEW view_1_tab3_271 AS SELECT pk, col0 FROM tab3 WHERE (col0 = 850 OR col3 = 474)

statement ok
CREATE VIEW view_2_tab3_271 AS SELECT pk, col0 FROM tab3 WHERE NOT ((col0 = 850 OR col3 = 474))

statement ok
CREATE VIEW view_3_tab3_271 AS SELECT pk FROM view_1_tab3_271

query II rowsort label-4100-1
SELECT pk, col0 FROM tab3 WHERE (col0 = 850 OR col3 = 474)
----
93
850

query II rowsort label-4100-2
SELECT pk, col0 FROM tab3 WHERE NOT ((col0 = 850 OR col3 = 474))
----
198 values hashing to 5db0d4f9586936d3653cacebb61f62b8

query II rowsort label-4100-1
SELECT pk, col0 FROM view_1_tab3_271
----
93
850

query II rowsort label-4100-2
SELECT pk, col0 FROM view_2_tab3_271
----
198 values hashing to 5db0d4f9586936d3653cacebb61f62b8

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col0 = 850 OR col3 = 474) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT ((col0 = 850 OR col3 = 474))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_271 UNION ALL SELECT pk, col0 FROM view_2_tab3_271
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col0 = 850 OR col3 = 474) UNION SELECT pk, col0 FROM tab3 WHERE NOT ((col0 = 850 OR col3 = 474))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_271 UNION SELECT pk, col0 FROM view_2_tab3_271
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-4100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE (col0 = 850 OR col3 = 474) ) AS tab3_271
----
93

query I rowsort label-4100-3
SELECT * FROM view_3_tab3_271
----
93

query I rowsort label-4100-3
SELECT pk FROM tab3 WHERE (col0 = 850 OR col3 = 474)
----
93

statement ok
DROP VIEW view_1_tab3_271

statement ok
DROP VIEW view_2_tab3_271

statement ok
DROP VIEW view_3_tab3_271

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_271') DROP VIEW view_1_tab4_271

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_271

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_271') DROP VIEW view_2_tab4_271

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_271

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_271') DROP VIEW view_3_tab4_271

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_271

statement ok
CREATE VIEW view_1_tab4_271 AS SELECT pk, col0 FROM tab4 WHERE (col0 = 850 OR col3 = 474)

statement ok
CREATE VIEW view_2_tab4_271 AS SELECT pk, col0 FROM tab4 WHERE NOT ((col0 = 850 OR col3 = 474))

statement ok
CREATE VIEW view_3_tab4_271 AS SELECT pk FROM view_1_tab4_271

query II rowsort label-4100-1
SELECT pk, col0 FROM tab4 WHERE (col0 = 850 OR col3 = 474)
----
93
850

query II rowsort label-4100-2
SELECT pk, col0 FROM tab4 WHERE NOT ((col0 = 850 OR col3 = 474))
----
198 values hashing to 5db0d4f9586936d3653cacebb61f62b8

query II rowsort label-4100-1
SELECT pk, col0 FROM view_1_tab4_271
----
93
850

query II rowsort label-4100-2
SELECT pk, col0 FROM view_2_tab4_271
----
198 values hashing to 5db0d4f9586936d3653cacebb61f62b8

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col0 = 850 OR col3 = 474) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT ((col0 = 850 OR col3 = 474))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_271 UNION ALL SELECT pk, col0 FROM view_2_tab4_271
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col0 = 850 OR col3 = 474) UNION SELECT pk, col0 FROM tab4 WHERE NOT ((col0 = 850 OR col3 = 474))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_271 UNION SELECT pk, col0 FROM view_2_tab4_271
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-4100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE (col0 = 850 OR col3 = 474) ) AS tab4_271
----
93

query I rowsort label-4100-3
SELECT * FROM view_3_tab4_271
----
93

query I rowsort label-4100-3
SELECT pk FROM tab4 WHERE (col0 = 850 OR col3 = 474)
----
93

statement ok
DROP VIEW view_1_tab4_271

statement ok
DROP VIEW view_2_tab4_271

statement ok
DROP VIEW view_3_tab4_271

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_272') DROP VIEW view_1_tab0_272

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_272

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_272') DROP VIEW view_2_tab0_272

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_272

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_272') DROP VIEW view_3_tab0_272

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_272

statement ok
CREATE VIEW view_1_tab0_272 AS SELECT pk, col0 FROM tab0 WHERE col1 <= 795.0

statement ok
CREATE VIEW view_2_tab0_272 AS SELECT pk, col0 FROM tab0 WHERE NOT (col1 <= 795.0)

statement ok
CREATE VIEW view_3_tab0_272 AS SELECT pk FROM view_1_tab0_272

query II rowsort label-4200-1
SELECT pk, col0 FROM tab0 WHERE col1 <= 795.0
----
158 values hashing to 39495f886dd4575c99bdbe3594867ef3

query II rowsort label-4200-2
SELECT pk, col0 FROM tab0 WHERE NOT (col1 <= 795.0)
----
42 values hashing to ac3fe3d27c680e79543953280392ff01

query II rowsort label-4200-1
SELECT pk, col0 FROM view_1_tab0_272
----
158 values hashing to 39495f886dd4575c99bdbe3594867ef3

query II rowsort label-4200-2
SELECT pk, col0 FROM view_2_tab0_272
----
42 values hashing to ac3fe3d27c680e79543953280392ff01

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col1 <= 795.0 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col1 <= 795.0)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_272 UNION ALL SELECT pk, col0 FROM view_2_tab0_272
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col1 <= 795.0 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col1 <= 795.0)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_272 UNION SELECT pk, col0 FROM view_2_tab0_272
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-4200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col1 <= 795.0 ) AS tab0_272
----
79 values hashing to a22e278d5dbb3478b94f474fe095aa45

query I rowsort label-4200-3
SELECT * FROM view_3_tab0_272
----
79 values hashing to a22e278d5dbb3478b94f474fe095aa45

query I rowsort label-4200-3
SELECT pk FROM tab0 WHERE col1 <= 795.0
----
79 values hashing to a22e278d5dbb3478b94f474fe095aa45

statement ok
DROP VIEW view_1_tab0_272

statement ok
DROP VIEW view_2_tab0_272

statement ok
DROP VIEW view_3_tab0_272

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_272') DROP VIEW view_1_tab1_272

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_272

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_272') DROP VIEW view_2_tab1_272

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_272

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_272') DROP VIEW view_3_tab1_272

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_272

statement ok
CREATE VIEW view_1_tab1_272 AS SELECT pk, col0 FROM tab1 WHERE col1 <= 795.0

statement ok
CREATE VIEW view_2_tab1_272 AS SELECT pk, col0 FROM tab1 WHERE NOT (col1 <= 795.0)

statement ok
CREATE VIEW view_3_tab1_272 AS SELECT pk FROM view_1_tab1_272

query II rowsort label-4200-1
SELECT pk, col0 FROM tab1 WHERE col1 <= 795.0
----
158 values hashing to 39495f886dd4575c99bdbe3594867ef3

query II rowsort label-4200-2
SELECT pk, col0 FROM tab1 WHERE NOT (col1 <= 795.0)
----
42 values hashing to ac3fe3d27c680e79543953280392ff01

query II rowsort label-4200-1
SELECT pk, col0 FROM view_1_tab1_272
----
158 values hashing to 39495f886dd4575c99bdbe3594867ef3

query II rowsort label-4200-2
SELECT pk, col0 FROM view_2_tab1_272
----
42 values hashing to ac3fe3d27c680e79543953280392ff01

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col1 <= 795.0 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col1 <= 795.0)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_272 UNION ALL SELECT pk, col0 FROM view_2_tab1_272
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col1 <= 795.0 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col1 <= 795.0)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_272 UNION SELECT pk, col0 FROM view_2_tab1_272
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-4200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col1 <= 795.0 ) AS tab1_272
----
79 values hashing to a22e278d5dbb3478b94f474fe095aa45

query I rowsort label-4200-3
SELECT * FROM view_3_tab1_272
----
79 values hashing to a22e278d5dbb3478b94f474fe095aa45

query I rowsort label-4200-3
SELECT pk FROM tab1 WHERE col1 <= 795.0
----
79 values hashing to a22e278d5dbb3478b94f474fe095aa45

statement ok
DROP VIEW view_1_tab1_272

statement ok
DROP VIEW view_2_tab1_272

statement ok
DROP VIEW view_3_tab1_272

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_272') DROP VIEW view_1_tab2_272

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_272

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_272') DROP VIEW view_2_tab2_272

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_272

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_272') DROP VIEW view_3_tab2_272

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_272

statement ok
CREATE VIEW view_1_tab2_272 AS SELECT pk, col0 FROM tab2 WHERE col1 <= 795.0

statement ok
CREATE VIEW view_2_tab2_272 AS SELECT pk, col0 FROM tab2 WHERE NOT (col1 <= 795.0)

statement ok
CREATE VIEW view_3_tab2_272 AS SELECT pk FROM view_1_tab2_272

query II rowsort label-4200-1
SELECT pk, col0 FROM tab2 WHERE col1 <= 795.0
----
158 values hashing to 39495f886dd4575c99bdbe3594867ef3

query II rowsort label-4200-2
SELECT pk, col0 FROM tab2 WHERE NOT (col1 <= 795.0)
----
42 values hashing to ac3fe3d27c680e79543953280392ff01

query II rowsort label-4200-1
SELECT pk, col0 FROM view_1_tab2_272
----
158 values hashing to 39495f886dd4575c99bdbe3594867ef3

query II rowsort label-4200-2
SELECT pk, col0 FROM view_2_tab2_272
----
42 values hashing to ac3fe3d27c680e79543953280392ff01

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col1 <= 795.0 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col1 <= 795.0)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_272 UNION ALL SELECT pk, col0 FROM view_2_tab2_272
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col1 <= 795.0 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col1 <= 795.0)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_272 UNION SELECT pk, col0 FROM view_2_tab2_272
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-4200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col1 <= 795.0 ) AS tab2_272
----
79 values hashing to a22e278d5dbb3478b94f474fe095aa45

query I rowsort label-4200-3
SELECT * FROM view_3_tab2_272
----
79 values hashing to a22e278d5dbb3478b94f474fe095aa45

query I rowsort label-4200-3
SELECT pk FROM tab2 WHERE col1 <= 795.0
----
79 values hashing to a22e278d5dbb3478b94f474fe095aa45

statement ok
DROP VIEW view_1_tab2_272

statement ok
DROP VIEW view_2_tab2_272

statement ok
DROP VIEW view_3_tab2_272

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_272') DROP VIEW view_1_tab3_272

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_272

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_272') DROP VIEW view_2_tab3_272

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_272

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_272') DROP VIEW view_3_tab3_272

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_272

statement ok
CREATE VIEW view_1_tab3_272 AS SELECT pk, col0 FROM tab3 WHERE col1 <= 795.0

statement ok
CREATE VIEW view_2_tab3_272 AS SELECT pk, col0 FROM tab3 WHERE NOT (col1 <= 795.0)

statement ok
CREATE VIEW view_3_tab3_272 AS SELECT pk FROM view_1_tab3_272

query II rowsort label-4200-1
SELECT pk, col0 FROM tab3 WHERE col1 <= 795.0
----
158 values hashing to 39495f886dd4575c99bdbe3594867ef3

query II rowsort label-4200-2
SELECT pk, col0 FROM tab3 WHERE NOT (col1 <= 795.0)
----
42 values hashing to ac3fe3d27c680e79543953280392ff01

query II rowsort label-4200-1
SELECT pk, col0 FROM view_1_tab3_272
----
158 values hashing to 39495f886dd4575c99bdbe3594867ef3

query II rowsort label-4200-2
SELECT pk, col0 FROM view_2_tab3_272
----
42 values hashing to ac3fe3d27c680e79543953280392ff01

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col1 <= 795.0 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col1 <= 795.0)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_272 UNION ALL SELECT pk, col0 FROM view_2_tab3_272
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col1 <= 795.0 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col1 <= 795.0)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_272 UNION SELECT pk, col0 FROM view_2_tab3_272
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-4200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col1 <= 795.0 ) AS tab3_272
----
79 values hashing to a22e278d5dbb3478b94f474fe095aa45

query I rowsort label-4200-3
SELECT * FROM view_3_tab3_272
----
79 values hashing to a22e278d5dbb3478b94f474fe095aa45

query I rowsort label-4200-3
SELECT pk FROM tab3 WHERE col1 <= 795.0
----
79 values hashing to a22e278d5dbb3478b94f474fe095aa45

statement ok
DROP VIEW view_1_tab3_272

statement ok
DROP VIEW view_2_tab3_272

statement ok
DROP VIEW view_3_tab3_272

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_272') DROP VIEW view_1_tab4_272

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_272

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_272') DROP VIEW view_2_tab4_272

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_272

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_272') DROP VIEW view_3_tab4_272

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_272

statement ok
CREATE VIEW view_1_tab4_272 AS SELECT pk, col0 FROM tab4 WHERE col1 <= 795.0

statement ok
CREATE VIEW view_2_tab4_272 AS SELECT pk, col0 FROM tab4 WHERE NOT (col1 <= 795.0)

statement ok
CREATE VIEW view_3_tab4_272 AS SELECT pk FROM view_1_tab4_272

query II rowsort label-4200-1
SELECT pk, col0 FROM tab4 WHERE col1 <= 795.0
----
158 values hashing to 39495f886dd4575c99bdbe3594867ef3

query II rowsort label-4200-2
SELECT pk, col0 FROM tab4 WHERE NOT (col1 <= 795.0)
----
42 values hashing to ac3fe3d27c680e79543953280392ff01

query II rowsort label-4200-1
SELECT pk, col0 FROM view_1_tab4_272
----
158 values hashing to 39495f886dd4575c99bdbe3594867ef3

query II rowsort label-4200-2
SELECT pk, col0 FROM view_2_tab4_272
----
42 values hashing to ac3fe3d27c680e79543953280392ff01

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col1 <= 795.0 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col1 <= 795.0)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_272 UNION ALL SELECT pk, col0 FROM view_2_tab4_272
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col1 <= 795.0 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col1 <= 795.0)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_272 UNION SELECT pk, col0 FROM view_2_tab4_272
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-4200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col1 <= 795.0 ) AS tab4_272
----
79 values hashing to a22e278d5dbb3478b94f474fe095aa45

query I rowsort label-4200-3
SELECT * FROM view_3_tab4_272
----
79 values hashing to a22e278d5dbb3478b94f474fe095aa45

query I rowsort label-4200-3
SELECT pk FROM tab4 WHERE col1 <= 795.0
----
79 values hashing to a22e278d5dbb3478b94f474fe095aa45

statement ok
DROP VIEW view_1_tab4_272

statement ok
DROP VIEW view_2_tab4_272

statement ok
DROP VIEW view_3_tab4_272

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_273') DROP VIEW view_1_tab0_273

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_273

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_273') DROP VIEW view_2_tab0_273

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_273

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_273') DROP VIEW view_3_tab0_273

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_273

statement ok
CREATE VIEW view_1_tab0_273 AS SELECT pk, col0 FROM tab0 WHERE col4 > 513.77

statement ok
CREATE VIEW view_2_tab0_273 AS SELECT pk, col0 FROM tab0 WHERE NOT (col4 > 513.77)

statement ok
CREATE VIEW view_3_tab0_273 AS SELECT pk FROM view_1_tab0_273

query II rowsort label-4300-1
SELECT pk, col0 FROM tab0 WHERE col4 > 513.77
----
108 values hashing to 9c3654cc4973483664533d43bfa73168

query II rowsort label-4300-2
SELECT pk, col0 FROM tab0 WHERE NOT (col4 > 513.77)
----
92 values hashing to a1704b1786313e7e05f3917a2d3d3e05

query II rowsort label-4300-1
SELECT pk, col0 FROM view_1_tab0_273
----
108 values hashing to 9c3654cc4973483664533d43bfa73168

query II rowsort label-4300-2
SELECT pk, col0 FROM view_2_tab0_273
----
92 values hashing to a1704b1786313e7e05f3917a2d3d3e05

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col4 > 513.77 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col4 > 513.77)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_273 UNION ALL SELECT pk, col0 FROM view_2_tab0_273
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col4 > 513.77 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col4 > 513.77)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_273 UNION SELECT pk, col0 FROM view_2_tab0_273
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-4300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col4 > 513.77 ) AS tab0_273
----
54 values hashing to a70b7120009c9b248a4eb9a0a87c370c

query I rowsort label-4300-3
SELECT * FROM view_3_tab0_273
----
54 values hashing to a70b7120009c9b248a4eb9a0a87c370c

query I rowsort label-4300-3
SELECT pk FROM tab0 WHERE col4 > 513.77
----
54 values hashing to a70b7120009c9b248a4eb9a0a87c370c

statement ok
DROP VIEW view_1_tab0_273

statement ok
DROP VIEW view_2_tab0_273

statement ok
DROP VIEW view_3_tab0_273

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_273') DROP VIEW view_1_tab1_273

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_273

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_273') DROP VIEW view_2_tab1_273

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_273

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_273') DROP VIEW view_3_tab1_273

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_273

statement ok
CREATE VIEW view_1_tab1_273 AS SELECT pk, col0 FROM tab1 WHERE col4 > 513.77

statement ok
CREATE VIEW view_2_tab1_273 AS SELECT pk, col0 FROM tab1 WHERE NOT (col4 > 513.77)

statement ok
CREATE VIEW view_3_tab1_273 AS SELECT pk FROM view_1_tab1_273

query II rowsort label-4300-1
SELECT pk, col0 FROM tab1 WHERE col4 > 513.77
----
108 values hashing to 9c3654cc4973483664533d43bfa73168

query II rowsort label-4300-2
SELECT pk, col0 FROM tab1 WHERE NOT (col4 > 513.77)
----
92 values hashing to a1704b1786313e7e05f3917a2d3d3e05

query II rowsort label-4300-1
SELECT pk, col0 FROM view_1_tab1_273
----
108 values hashing to 9c3654cc4973483664533d43bfa73168

query II rowsort label-4300-2
SELECT pk, col0 FROM view_2_tab1_273
----
92 values hashing to a1704b1786313e7e05f3917a2d3d3e05

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col4 > 513.77 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col4 > 513.77)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_273 UNION ALL SELECT pk, col0 FROM view_2_tab1_273
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col4 > 513.77 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col4 > 513.77)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_273 UNION SELECT pk, col0 FROM view_2_tab1_273
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-4300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col4 > 513.77 ) AS tab1_273
----
54 values hashing to a70b7120009c9b248a4eb9a0a87c370c

query I rowsort label-4300-3
SELECT * FROM view_3_tab1_273
----
54 values hashing to a70b7120009c9b248a4eb9a0a87c370c

query I rowsort label-4300-3
SELECT pk FROM tab1 WHERE col4 > 513.77
----
54 values hashing to a70b7120009c9b248a4eb9a0a87c370c

statement ok
DROP VIEW view_1_tab1_273

statement ok
DROP VIEW view_2_tab1_273

statement ok
DROP VIEW view_3_tab1_273

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_273') DROP VIEW view_1_tab2_273

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_273

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_273') DROP VIEW view_2_tab2_273

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_273

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_273') DROP VIEW view_3_tab2_273

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_273

statement ok
CREATE VIEW view_1_tab2_273 AS SELECT pk, col0 FROM tab2 WHERE col4 > 513.77

statement ok
CREATE VIEW view_2_tab2_273 AS SELECT pk, col0 FROM tab2 WHERE NOT (col4 > 513.77)

statement ok
CREATE VIEW view_3_tab2_273 AS SELECT pk FROM view_1_tab2_273

query II rowsort label-4300-1
SELECT pk, col0 FROM tab2 WHERE col4 > 513.77
----
108 values hashing to 9c3654cc4973483664533d43bfa73168

query II rowsort label-4300-2
SELECT pk, col0 FROM tab2 WHERE NOT (col4 > 513.77)
----
92 values hashing to a1704b1786313e7e05f3917a2d3d3e05

query II rowsort label-4300-1
SELECT pk, col0 FROM view_1_tab2_273
----
108 values hashing to 9c3654cc4973483664533d43bfa73168

query II rowsort label-4300-2
SELECT pk, col0 FROM view_2_tab2_273
----
92 values hashing to a1704b1786313e7e05f3917a2d3d3e05

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col4 > 513.77 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col4 > 513.77)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_273 UNION ALL SELECT pk, col0 FROM view_2_tab2_273
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col4 > 513.77 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col4 > 513.77)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_273 UNION SELECT pk, col0 FROM view_2_tab2_273
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-4300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col4 > 513.77 ) AS tab2_273
----
54 values hashing to a70b7120009c9b248a4eb9a0a87c370c

query I rowsort label-4300-3
SELECT * FROM view_3_tab2_273
----
54 values hashing to a70b7120009c9b248a4eb9a0a87c370c

query I rowsort label-4300-3
SELECT pk FROM tab2 WHERE col4 > 513.77
----
54 values hashing to a70b7120009c9b248a4eb9a0a87c370c

statement ok
DROP VIEW view_1_tab2_273

statement ok
DROP VIEW view_2_tab2_273

statement ok
DROP VIEW view_3_tab2_273

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_273') DROP VIEW view_1_tab3_273

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_273

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_273') DROP VIEW view_2_tab3_273

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_273

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_273') DROP VIEW view_3_tab3_273

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_273

statement ok
CREATE VIEW view_1_tab3_273 AS SELECT pk, col0 FROM tab3 WHERE col4 > 513.77

statement ok
CREATE VIEW view_2_tab3_273 AS SELECT pk, col0 FROM tab3 WHERE NOT (col4 > 513.77)

statement ok
CREATE VIEW view_3_tab3_273 AS SELECT pk FROM view_1_tab3_273

query II rowsort label-4300-1
SELECT pk, col0 FROM tab3 WHERE col4 > 513.77
----
108 values hashing to 9c3654cc4973483664533d43bfa73168

query II rowsort label-4300-2
SELECT pk, col0 FROM tab3 WHERE NOT (col4 > 513.77)
----
92 values hashing to a1704b1786313e7e05f3917a2d3d3e05

query II rowsort label-4300-1
SELECT pk, col0 FROM view_1_tab3_273
----
108 values hashing to 9c3654cc4973483664533d43bfa73168

query II rowsort label-4300-2
SELECT pk, col0 FROM view_2_tab3_273
----
92 values hashing to a1704b1786313e7e05f3917a2d3d3e05

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col4 > 513.77 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col4 > 513.77)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_273 UNION ALL SELECT pk, col0 FROM view_2_tab3_273
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col4 > 513.77 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col4 > 513.77)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_273 UNION SELECT pk, col0 FROM view_2_tab3_273
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-4300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col4 > 513.77 ) AS tab3_273
----
54 values hashing to a70b7120009c9b248a4eb9a0a87c370c

query I rowsort label-4300-3
SELECT * FROM view_3_tab3_273
----
54 values hashing to a70b7120009c9b248a4eb9a0a87c370c

query I rowsort label-4300-3
SELECT pk FROM tab3 WHERE col4 > 513.77
----
54 values hashing to a70b7120009c9b248a4eb9a0a87c370c

statement ok
DROP VIEW view_1_tab3_273

statement ok
DROP VIEW view_2_tab3_273

statement ok
DROP VIEW view_3_tab3_273

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_273') DROP VIEW view_1_tab4_273

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_273

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_273') DROP VIEW view_2_tab4_273

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_273

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_273') DROP VIEW view_3_tab4_273

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_273

statement ok
CREATE VIEW view_1_tab4_273 AS SELECT pk, col0 FROM tab4 WHERE col4 > 513.77

statement ok
CREATE VIEW view_2_tab4_273 AS SELECT pk, col0 FROM tab4 WHERE NOT (col4 > 513.77)

statement ok
CREATE VIEW view_3_tab4_273 AS SELECT pk FROM view_1_tab4_273

query II rowsort label-4300-1
SELECT pk, col0 FROM tab4 WHERE col4 > 513.77
----
108 values hashing to 9c3654cc4973483664533d43bfa73168

query II rowsort label-4300-2
SELECT pk, col0 FROM tab4 WHERE NOT (col4 > 513.77)
----
92 values hashing to a1704b1786313e7e05f3917a2d3d3e05

query II rowsort label-4300-1
SELECT pk, col0 FROM view_1_tab4_273
----
108 values hashing to 9c3654cc4973483664533d43bfa73168

query II rowsort label-4300-2
SELECT pk, col0 FROM view_2_tab4_273
----
92 values hashing to a1704b1786313e7e05f3917a2d3d3e05

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col4 > 513.77 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col4 > 513.77)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_273 UNION ALL SELECT pk, col0 FROM view_2_tab4_273
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col4 > 513.77 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col4 > 513.77)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_273 UNION SELECT pk, col0 FROM view_2_tab4_273
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-4300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col4 > 513.77 ) AS tab4_273
----
54 values hashing to a70b7120009c9b248a4eb9a0a87c370c

query I rowsort label-4300-3
SELECT * FROM view_3_tab4_273
----
54 values hashing to a70b7120009c9b248a4eb9a0a87c370c

query I rowsort label-4300-3
SELECT pk FROM tab4 WHERE col4 > 513.77
----
54 values hashing to a70b7120009c9b248a4eb9a0a87c370c

statement ok
DROP VIEW view_1_tab4_273

statement ok
DROP VIEW view_2_tab4_273

statement ok
DROP VIEW view_3_tab4_273

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_274') DROP VIEW view_1_tab0_274

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_274

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_274') DROP VIEW view_2_tab0_274

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_274

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_274') DROP VIEW view_3_tab0_274

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_274

statement ok
CREATE VIEW view_1_tab0_274 AS SELECT pk, col0 FROM tab0 WHERE ((col3 = 961))

statement ok
CREATE VIEW view_2_tab0_274 AS SELECT pk, col0 FROM tab0 WHERE NOT (((col3 = 961)))

statement ok
CREATE VIEW view_3_tab0_274 AS SELECT pk FROM view_1_tab0_274

query II rowsort label-4400-1
SELECT pk, col0 FROM tab0 WHERE ((col3 = 961))
----

query II rowsort label-4400-2
SELECT pk, col0 FROM tab0 WHERE NOT (((col3 = 961)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-4400-1
SELECT pk, col0 FROM view_1_tab0_274
----

query II rowsort label-4400-2
SELECT pk, col0 FROM view_2_tab0_274
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE ((col3 = 961)) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (((col3 = 961)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_274 UNION ALL SELECT pk, col0 FROM view_2_tab0_274
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE ((col3 = 961)) UNION SELECT pk, col0 FROM tab0 WHERE NOT (((col3 = 961)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_274 UNION SELECT pk, col0 FROM view_2_tab0_274
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-4400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE ((col3 = 961)) ) AS tab0_274
----

query I rowsort label-4400-3
SELECT * FROM view_3_tab0_274
----

query I rowsort label-4400-3
SELECT pk FROM tab0 WHERE ((col3 = 961))
----

statement ok
DROP VIEW view_1_tab0_274

statement ok
DROP VIEW view_2_tab0_274

statement ok
DROP VIEW view_3_tab0_274

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_274') DROP VIEW view_1_tab1_274

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_274

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_274') DROP VIEW view_2_tab1_274

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_274

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_274') DROP VIEW view_3_tab1_274

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_274

statement ok
CREATE VIEW view_1_tab1_274 AS SELECT pk, col0 FROM tab1 WHERE ((col3 = 961))

statement ok
CREATE VIEW view_2_tab1_274 AS SELECT pk, col0 FROM tab1 WHERE NOT (((col3 = 961)))

statement ok
CREATE VIEW view_3_tab1_274 AS SELECT pk FROM view_1_tab1_274

query II rowsort label-4400-1
SELECT pk, col0 FROM tab1 WHERE ((col3 = 961))
----

query II rowsort label-4400-2
SELECT pk, col0 FROM tab1 WHERE NOT (((col3 = 961)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-4400-1
SELECT pk, col0 FROM view_1_tab1_274
----

query II rowsort label-4400-2
SELECT pk, col0 FROM view_2_tab1_274
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE ((col3 = 961)) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (((col3 = 961)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_274 UNION ALL SELECT pk, col0 FROM view_2_tab1_274
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE ((col3 = 961)) UNION SELECT pk, col0 FROM tab1 WHERE NOT (((col3 = 961)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_274 UNION SELECT pk, col0 FROM view_2_tab1_274
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-4400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE ((col3 = 961)) ) AS tab1_274
----

query I rowsort label-4400-3
SELECT * FROM view_3_tab1_274
----

query I rowsort label-4400-3
SELECT pk FROM tab1 WHERE ((col3 = 961))
----

statement ok
DROP VIEW view_1_tab1_274

statement ok
DROP VIEW view_2_tab1_274

statement ok
DROP VIEW view_3_tab1_274

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_274') DROP VIEW view_1_tab2_274

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_274

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_274') DROP VIEW view_2_tab2_274

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_274

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_274') DROP VIEW view_3_tab2_274

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_274

statement ok
CREATE VIEW view_1_tab2_274 AS SELECT pk, col0 FROM tab2 WHERE ((col3 = 961))

statement ok
CREATE VIEW view_2_tab2_274 AS SELECT pk, col0 FROM tab2 WHERE NOT (((col3 = 961)))

statement ok
CREATE VIEW view_3_tab2_274 AS SELECT pk FROM view_1_tab2_274

query II rowsort label-4400-1
SELECT pk, col0 FROM tab2 WHERE ((col3 = 961))
----

query II rowsort label-4400-2
SELECT pk, col0 FROM tab2 WHERE NOT (((col3 = 961)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-4400-1
SELECT pk, col0 FROM view_1_tab2_274
----

query II rowsort label-4400-2
SELECT pk, col0 FROM view_2_tab2_274
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE ((col3 = 961)) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (((col3 = 961)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_274 UNION ALL SELECT pk, col0 FROM view_2_tab2_274
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE ((col3 = 961)) UNION SELECT pk, col0 FROM tab2 WHERE NOT (((col3 = 961)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_274 UNION SELECT pk, col0 FROM view_2_tab2_274
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-4400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE ((col3 = 961)) ) AS tab2_274
----

query I rowsort label-4400-3
SELECT * FROM view_3_tab2_274
----

query I rowsort label-4400-3
SELECT pk FROM tab2 WHERE ((col3 = 961))
----

statement ok
DROP VIEW view_1_tab2_274

statement ok
DROP VIEW view_2_tab2_274

statement ok
DROP VIEW view_3_tab2_274

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_274') DROP VIEW view_1_tab3_274

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_274

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_274') DROP VIEW view_2_tab3_274

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_274

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_274') DROP VIEW view_3_tab3_274

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_274

statement ok
CREATE VIEW view_1_tab3_274 AS SELECT pk, col0 FROM tab3 WHERE ((col3 = 961))

statement ok
CREATE VIEW view_2_tab3_274 AS SELECT pk, col0 FROM tab3 WHERE NOT (((col3 = 961)))

statement ok
CREATE VIEW view_3_tab3_274 AS SELECT pk FROM view_1_tab3_274

query II rowsort label-4400-1
SELECT pk, col0 FROM tab3 WHERE ((col3 = 961))
----

query II rowsort label-4400-2
SELECT pk, col0 FROM tab3 WHERE NOT (((col3 = 961)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-4400-1
SELECT pk, col0 FROM view_1_tab3_274
----

query II rowsort label-4400-2
SELECT pk, col0 FROM view_2_tab3_274
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE ((col3 = 961)) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (((col3 = 961)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_274 UNION ALL SELECT pk, col0 FROM view_2_tab3_274
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE ((col3 = 961)) UNION SELECT pk, col0 FROM tab3 WHERE NOT (((col3 = 961)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_274 UNION SELECT pk, col0 FROM view_2_tab3_274
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-4400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE ((col3 = 961)) ) AS tab3_274
----

query I rowsort label-4400-3
SELECT * FROM view_3_tab3_274
----

query I rowsort label-4400-3
SELECT pk FROM tab3 WHERE ((col3 = 961))
----

statement ok
DROP VIEW view_1_tab3_274

statement ok
DROP VIEW view_2_tab3_274

statement ok
DROP VIEW view_3_tab3_274

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_274') DROP VIEW view_1_tab4_274

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_274

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_274') DROP VIEW view_2_tab4_274

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_274

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_274') DROP VIEW view_3_tab4_274

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_274

statement ok
CREATE VIEW view_1_tab4_274 AS SELECT pk, col0 FROM tab4 WHERE ((col3 = 961))

statement ok
CREATE VIEW view_2_tab4_274 AS SELECT pk, col0 FROM tab4 WHERE NOT (((col3 = 961)))

statement ok
CREATE VIEW view_3_tab4_274 AS SELECT pk FROM view_1_tab4_274

query II rowsort label-4400-1
SELECT pk, col0 FROM tab4 WHERE ((col3 = 961))
----

query II rowsort label-4400-2
SELECT pk, col0 FROM tab4 WHERE NOT (((col3 = 961)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-4400-1
SELECT pk, col0 FROM view_1_tab4_274
----

query II rowsort label-4400-2
SELECT pk, col0 FROM view_2_tab4_274
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE ((col3 = 961)) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (((col3 = 961)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_274 UNION ALL SELECT pk, col0 FROM view_2_tab4_274
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE ((col3 = 961)) UNION SELECT pk, col0 FROM tab4 WHERE NOT (((col3 = 961)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_274 UNION SELECT pk, col0 FROM view_2_tab4_274
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-4400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE ((col3 = 961)) ) AS tab4_274
----

query I rowsort label-4400-3
SELECT * FROM view_3_tab4_274
----

query I rowsort label-4400-3
SELECT pk FROM tab4 WHERE ((col3 = 961))
----

statement ok
DROP VIEW view_1_tab4_274

statement ok
DROP VIEW view_2_tab4_274

statement ok
DROP VIEW view_3_tab4_274

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_275') DROP VIEW view_1_tab0_275

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_275

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_275') DROP VIEW view_2_tab0_275

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_275

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_275') DROP VIEW view_3_tab0_275

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_275

statement ok
CREATE VIEW view_1_tab0_275 AS SELECT pk, col0 FROM tab0 WHERE (((col0 < 932 OR ((col0 = 506) AND (col4 < 845.42)) OR (col4 <= 130.0) OR (col4 < 105.46) AND (col4 > 312.48 OR (col1 IS NULL)) OR col3 > 824 AND col3 > 92 AND (col1 >= 70.26) AND (col3 <= 801))) AND ((((((col1 > 586.88)))) OR col3 < 245 OR col4 > 437.87))) AND col0 >= 616

statement ok
CREATE VIEW view_2_tab0_275 AS SELECT pk, col0 FROM tab0 WHERE NOT ((((col0 < 932 OR ((col0 = 506) AND (col4 < 845.42)) OR (col4 <= 130.0) OR (col4 < 105.46) AND (col4 > 312.48 OR (col1 IS NULL)) OR col3 > 824 AND col3 > 92 AND (col1 >= 70.26) AND (col3 <= 801))) AND ((((((col1 > 586.88)))) OR col3 < 245 OR col4 > 437.87))) AND col0 >= 616)

statement ok
CREATE VIEW view_3_tab0_275 AS SELECT pk FROM view_1_tab0_275

query II rowsort label-4500-1
SELECT pk, col0 FROM tab0 WHERE (((col0 < 932 OR ((col0 = 506) AND (col4 < 845.42)) OR (col4 <= 130.0) OR (col4 < 105.46) AND (col4 > 312.48 OR (col1 IS NULL)) OR col3 > 824 AND col3 > 92 AND (col1 >= 70.26) AND (col3 <= 801))) AND ((((((col1 > 586.88)))) OR col3 < 245 OR col4 > 437.87))) AND col0 >= 616
----
50 values hashing to c2b1ee4a1ae1a5df71dcfd33c3be5668

query II rowsort label-4500-2
SELECT pk, col0 FROM tab0 WHERE NOT ((((col0 < 932 OR ((col0 = 506) AND (col4 < 845.42)) OR (col4 <= 130.0) OR (col4 < 105.46) AND (col4 > 312.48 OR (col1 IS NULL)) OR col3 > 824 AND col3 > 92 AND (col1 >= 70.26) AND (col3 <= 801))) AND ((((((col1 > 586.88)))) OR col3 < 245 OR col4 > 437.87))) AND col0 >= 616)
----
150 values hashing to 22aa9d325387695d27fd8989236ef869

query II rowsort label-4500-1
SELECT pk, col0 FROM view_1_tab0_275
----
50 values hashing to c2b1ee4a1ae1a5df71dcfd33c3be5668

query II rowsort label-4500-2
SELECT pk, col0 FROM view_2_tab0_275
----
150 values hashing to 22aa9d325387695d27fd8989236ef869

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (((col0 < 932 OR ((col0 = 506) AND (col4 < 845.42)) OR (col4 <= 130.0) OR (col4 < 105.46) AND (col4 > 312.48 OR (col1 IS NULL)) OR col3 > 824 AND col3 > 92 AND (col1 >= 70.26) AND (col3 <= 801))) AND ((((((col1 > 586.88)))) OR col3 < 245 OR col4 > 437.87))) AND col0 >= 616 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT ((((col0 < 932 OR ((col0 = 506) AND (col4 < 845.42)) OR (col4 <= 130.0) OR (col4 < 105.46) AND (col4 > 312.48 OR (col1 IS NULL)) OR col3 > 824 AND col3 > 92 AND (col1 >= 70.26) AND (col3 <= 801))) AND ((((((col1 > 586.88)))) OR col3 < 245 OR col4 > 437.87))) AND col0 >= 616)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_275 UNION ALL SELECT pk, col0 FROM view_2_tab0_275
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (((col0 < 932 OR ((col0 = 506) AND (col4 < 845.42)) OR (col4 <= 130.0) OR (col4 < 105.46) AND (col4 > 312.48 OR (col1 IS NULL)) OR col3 > 824 AND col3 > 92 AND (col1 >= 70.26) AND (col3 <= 801))) AND ((((((col1 > 586.88)))) OR col3 < 245 OR col4 > 437.87))) AND col0 >= 616 UNION SELECT pk, col0 FROM tab0 WHERE NOT ((((col0 < 932 OR ((col0 = 506) AND (col4 < 845.42)) OR (col4 <= 130.0) OR (col4 < 105.46) AND (col4 > 312.48 OR (col1 IS NULL)) OR col3 > 824 AND col3 > 92 AND (col1 >= 70.26) AND (col3 <= 801))) AND ((((((col1 > 586.88)))) OR col3 < 245 OR col4 > 437.87))) AND col0 >= 616)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_275 UNION SELECT pk, col0 FROM view_2_tab0_275
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-4500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE (((col0 < 932 OR ((col0 = 506) AND (col4 < 845.42)) OR (col4 <= 130.0) OR (col4 < 105.46) AND (col4 > 312.48 OR (col1 IS NULL)) OR col3 > 824 AND col3 > 92 AND (col1 >= 70.26) AND (col3 <= 801))) AND ((((((col1 > 586.88)))) OR col3 < 245 OR col4 > 437.87))) AND col0 >= 616 ) AS tab0_275
----
25 values hashing to daab5a56422fe3795f4f9ed8c21fd002

query I rowsort label-4500-3
SELECT * FROM view_3_tab0_275
----
25 values hashing to daab5a56422fe3795f4f9ed8c21fd002

query I rowsort label-4500-3
SELECT pk FROM tab0 WHERE (((col0 < 932 OR ((col0 = 506) AND (col4 < 845.42)) OR (col4 <= 130.0) OR (col4 < 105.46) AND (col4 > 312.48 OR (col1 IS NULL)) OR col3 > 824 AND col3 > 92 AND (col1 >= 70.26) AND (col3 <= 801))) AND ((((((col1 > 586.88)))) OR col3 < 245 OR col4 > 437.87))) AND col0 >= 616
----
25 values hashing to daab5a56422fe3795f4f9ed8c21fd002

statement ok
DROP VIEW view_1_tab0_275

statement ok
DROP VIEW view_2_tab0_275

statement ok
DROP VIEW view_3_tab0_275

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_275') DROP VIEW view_1_tab1_275

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_275

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_275') DROP VIEW view_2_tab1_275

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_275

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_275') DROP VIEW view_3_tab1_275

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_275

statement ok
CREATE VIEW view_1_tab1_275 AS SELECT pk, col0 FROM tab1 WHERE (((col0 < 932 OR ((col0 = 506) AND (col4 < 845.42)) OR (col4 <= 130.0) OR (col4 < 105.46) AND (col4 > 312.48 OR (col1 IS NULL)) OR col3 > 824 AND col3 > 92 AND (col1 >= 70.26) AND (col3 <= 801))) AND ((((((col1 > 586.88)))) OR col3 < 245 OR col4 > 437.87))) AND col0 >= 616

statement ok
CREATE VIEW view_2_tab1_275 AS SELECT pk, col0 FROM tab1 WHERE NOT ((((col0 < 932 OR ((col0 = 506) AND (col4 < 845.42)) OR (col4 <= 130.0) OR (col4 < 105.46) AND (col4 > 312.48 OR (col1 IS NULL)) OR col3 > 824 AND col3 > 92 AND (col1 >= 70.26) AND (col3 <= 801))) AND ((((((col1 > 586.88)))) OR col3 < 245 OR col4 > 437.87))) AND col0 >= 616)

statement ok
CREATE VIEW view_3_tab1_275 AS SELECT pk FROM view_1_tab1_275

query II rowsort label-4500-1
SELECT pk, col0 FROM tab1 WHERE (((col0 < 932 OR ((col0 = 506) AND (col4 < 845.42)) OR (col4 <= 130.0) OR (col4 < 105.46) AND (col4 > 312.48 OR (col1 IS NULL)) OR col3 > 824 AND col3 > 92 AND (col1 >= 70.26) AND (col3 <= 801))) AND ((((((col1 > 586.88)))) OR col3 < 245 OR col4 > 437.87))) AND col0 >= 616
----
50 values hashing to c2b1ee4a1ae1a5df71dcfd33c3be5668

query II rowsort label-4500-2
SELECT pk, col0 FROM tab1 WHERE NOT ((((col0 < 932 OR ((col0 = 506) AND (col4 < 845.42)) OR (col4 <= 130.0) OR (col4 < 105.46) AND (col4 > 312.48 OR (col1 IS NULL)) OR col3 > 824 AND col3 > 92 AND (col1 >= 70.26) AND (col3 <= 801))) AND ((((((col1 > 586.88)))) OR col3 < 245 OR col4 > 437.87))) AND col0 >= 616)
----
150 values hashing to 22aa9d325387695d27fd8989236ef869

query II rowsort label-4500-1
SELECT pk, col0 FROM view_1_tab1_275
----
50 values hashing to c2b1ee4a1ae1a5df71dcfd33c3be5668

query II rowsort label-4500-2
SELECT pk, col0 FROM view_2_tab1_275
----
150 values hashing to 22aa9d325387695d27fd8989236ef869

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (((col0 < 932 OR ((col0 = 506) AND (col4 < 845.42)) OR (col4 <= 130.0) OR (col4 < 105.46) AND (col4 > 312.48 OR (col1 IS NULL)) OR col3 > 824 AND col3 > 92 AND (col1 >= 70.26) AND (col3 <= 801))) AND ((((((col1 > 586.88)))) OR col3 < 245 OR col4 > 437.87))) AND col0 >= 616 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT ((((col0 < 932 OR ((col0 = 506) AND (col4 < 845.42)) OR (col4 <= 130.0) OR (col4 < 105.46) AND (col4 > 312.48 OR (col1 IS NULL)) OR col3 > 824 AND col3 > 92 AND (col1 >= 70.26) AND (col3 <= 801))) AND ((((((col1 > 586.88)))) OR col3 < 245 OR col4 > 437.87))) AND col0 >= 616)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_275 UNION ALL SELECT pk, col0 FROM view_2_tab1_275
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (((col0 < 932 OR ((col0 = 506) AND (col4 < 845.42)) OR (col4 <= 130.0) OR (col4 < 105.46) AND (col4 > 312.48 OR (col1 IS NULL)) OR col3 > 824 AND col3 > 92 AND (col1 >= 70.26) AND (col3 <= 801))) AND ((((((col1 > 586.88)))) OR col3 < 245 OR col4 > 437.87))) AND col0 >= 616 UNION SELECT pk, col0 FROM tab1 WHERE NOT ((((col0 < 932 OR ((col0 = 506) AND (col4 < 845.42)) OR (col4 <= 130.0) OR (col4 < 105.46) AND (col4 > 312.48 OR (col1 IS NULL)) OR col3 > 824 AND col3 > 92 AND (col1 >= 70.26) AND (col3 <= 801))) AND ((((((col1 > 586.88)))) OR col3 < 245 OR col4 > 437.87))) AND col0 >= 616)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_275 UNION SELECT pk, col0 FROM view_2_tab1_275
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-4500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE (((col0 < 932 OR ((col0 = 506) AND (col4 < 845.42)) OR (col4 <= 130.0) OR (col4 < 105.46) AND (col4 > 312.48 OR (col1 IS NULL)) OR col3 > 824 AND col3 > 92 AND (col1 >= 70.26) AND (col3 <= 801))) AND ((((((col1 > 586.88)))) OR col3 < 245 OR col4 > 437.87))) AND col0 >= 616 ) AS tab1_275
----
25 values hashing to daab5a56422fe3795f4f9ed8c21fd002

query I rowsort label-4500-3
SELECT * FROM view_3_tab1_275
----
25 values hashing to daab5a56422fe3795f4f9ed8c21fd002

query I rowsort label-4500-3
SELECT pk FROM tab1 WHERE (((col0 < 932 OR ((col0 = 506) AND (col4 < 845.42)) OR (col4 <= 130.0) OR (col4 < 105.46) AND (col4 > 312.48 OR (col1 IS NULL)) OR col3 > 824 AND col3 > 92 AND (col1 >= 70.26) AND (col3 <= 801))) AND ((((((col1 > 586.88)))) OR col3 < 245 OR col4 > 437.87))) AND col0 >= 616
----
25 values hashing to daab5a56422fe3795f4f9ed8c21fd002

statement ok
DROP VIEW view_1_tab1_275

statement ok
DROP VIEW view_2_tab1_275

statement ok
DROP VIEW view_3_tab1_275

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_275') DROP VIEW view_1_tab2_275

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_275

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_275') DROP VIEW view_2_tab2_275

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_275

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_275') DROP VIEW view_3_tab2_275

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_275

statement ok
CREATE VIEW view_1_tab2_275 AS SELECT pk, col0 FROM tab2 WHERE (((col0 < 932 OR ((col0 = 506) AND (col4 < 845.42)) OR (col4 <= 130.0) OR (col4 < 105.46) AND (col4 > 312.48 OR (col1 IS NULL)) OR col3 > 824 AND col3 > 92 AND (col1 >= 70.26) AND (col3 <= 801))) AND ((((((col1 > 586.88)))) OR col3 < 245 OR col4 > 437.87))) AND col0 >= 616

statement ok
CREATE VIEW view_2_tab2_275 AS SELECT pk, col0 FROM tab2 WHERE NOT ((((col0 < 932 OR ((col0 = 506) AND (col4 < 845.42)) OR (col4 <= 130.0) OR (col4 < 105.46) AND (col4 > 312.48 OR (col1 IS NULL)) OR col3 > 824 AND col3 > 92 AND (col1 >= 70.26) AND (col3 <= 801))) AND ((((((col1 > 586.88)))) OR col3 < 245 OR col4 > 437.87))) AND col0 >= 616)

statement ok
CREATE VIEW view_3_tab2_275 AS SELECT pk FROM view_1_tab2_275

query II rowsort label-4500-1
SELECT pk, col0 FROM tab2 WHERE (((col0 < 932 OR ((col0 = 506) AND (col4 < 845.42)) OR (col4 <= 130.0) OR (col4 < 105.46) AND (col4 > 312.48 OR (col1 IS NULL)) OR col3 > 824 AND col3 > 92 AND (col1 >= 70.26) AND (col3 <= 801))) AND ((((((col1 > 586.88)))) OR col3 < 245 OR col4 > 437.87))) AND col0 >= 616
----
50 values hashing to c2b1ee4a1ae1a5df71dcfd33c3be5668

query II rowsort label-4500-2
SELECT pk, col0 FROM tab2 WHERE NOT ((((col0 < 932 OR ((col0 = 506) AND (col4 < 845.42)) OR (col4 <= 130.0) OR (col4 < 105.46) AND (col4 > 312.48 OR (col1 IS NULL)) OR col3 > 824 AND col3 > 92 AND (col1 >= 70.26) AND (col3 <= 801))) AND ((((((col1 > 586.88)))) OR col3 < 245 OR col4 > 437.87))) AND col0 >= 616)
----
150 values hashing to 22aa9d325387695d27fd8989236ef869

query II rowsort label-4500-1
SELECT pk, col0 FROM view_1_tab2_275
----
50 values hashing to c2b1ee4a1ae1a5df71dcfd33c3be5668

query II rowsort label-4500-2
SELECT pk, col0 FROM view_2_tab2_275
----
150 values hashing to 22aa9d325387695d27fd8989236ef869

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (((col0 < 932 OR ((col0 = 506) AND (col4 < 845.42)) OR (col4 <= 130.0) OR (col4 < 105.46) AND (col4 > 312.48 OR (col1 IS NULL)) OR col3 > 824 AND col3 > 92 AND (col1 >= 70.26) AND (col3 <= 801))) AND ((((((col1 > 586.88)))) OR col3 < 245 OR col4 > 437.87))) AND col0 >= 616 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT ((((col0 < 932 OR ((col0 = 506) AND (col4 < 845.42)) OR (col4 <= 130.0) OR (col4 < 105.46) AND (col4 > 312.48 OR (col1 IS NULL)) OR col3 > 824 AND col3 > 92 AND (col1 >= 70.26) AND (col3 <= 801))) AND ((((((col1 > 586.88)))) OR col3 < 245 OR col4 > 437.87))) AND col0 >= 616)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_275 UNION ALL SELECT pk, col0 FROM view_2_tab2_275
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (((col0 < 932 OR ((col0 = 506) AND (col4 < 845.42)) OR (col4 <= 130.0) OR (col4 < 105.46) AND (col4 > 312.48 OR (col1 IS NULL)) OR col3 > 824 AND col3 > 92 AND (col1 >= 70.26) AND (col3 <= 801))) AND ((((((col1 > 586.88)))) OR col3 < 245 OR col4 > 437.87))) AND col0 >= 616 UNION SELECT pk, col0 FROM tab2 WHERE NOT ((((col0 < 932 OR ((col0 = 506) AND (col4 < 845.42)) OR (col4 <= 130.0) OR (col4 < 105.46) AND (col4 > 312.48 OR (col1 IS NULL)) OR col3 > 824 AND col3 > 92 AND (col1 >= 70.26) AND (col3 <= 801))) AND ((((((col1 > 586.88)))) OR col3 < 245 OR col4 > 437.87))) AND col0 >= 616)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_275 UNION SELECT pk, col0 FROM view_2_tab2_275
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-4500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE (((col0 < 932 OR ((col0 = 506) AND (col4 < 845.42)) OR (col4 <= 130.0) OR (col4 < 105.46) AND (col4 > 312.48 OR (col1 IS NULL)) OR col3 > 824 AND col3 > 92 AND (col1 >= 70.26) AND (col3 <= 801))) AND ((((((col1 > 586.88)))) OR col3 < 245 OR col4 > 437.87))) AND col0 >= 616 ) AS tab2_275
----
25 values hashing to daab5a56422fe3795f4f9ed8c21fd002

query I rowsort label-4500-3
SELECT * FROM view_3_tab2_275
----
25 values hashing to daab5a56422fe3795f4f9ed8c21fd002

query I rowsort label-4500-3
SELECT pk FROM tab2 WHERE (((col0 < 932 OR ((col0 = 506) AND (col4 < 845.42)) OR (col4 <= 130.0) OR (col4 < 105.46) AND (col4 > 312.48 OR (col1 IS NULL)) OR col3 > 824 AND col3 > 92 AND (col1 >= 70.26) AND (col3 <= 801))) AND ((((((col1 > 586.88)))) OR col3 < 245 OR col4 > 437.87))) AND col0 >= 616
----
25 values hashing to daab5a56422fe3795f4f9ed8c21fd002

statement ok
DROP VIEW view_1_tab2_275

statement ok
DROP VIEW view_2_tab2_275

statement ok
DROP VIEW view_3_tab2_275

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_275') DROP VIEW view_1_tab3_275

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_275

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_275') DROP VIEW view_2_tab3_275

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_275

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_275') DROP VIEW view_3_tab3_275

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_275

statement ok
CREATE VIEW view_1_tab3_275 AS SELECT pk, col0 FROM tab3 WHERE (((col0 < 932 OR ((col0 = 506) AND (col4 < 845.42)) OR (col4 <= 130.0) OR (col4 < 105.46) AND (col4 > 312.48 OR (col1 IS NULL)) OR col3 > 824 AND col3 > 92 AND (col1 >= 70.26) AND (col3 <= 801))) AND ((((((col1 > 586.88)))) OR col3 < 245 OR col4 > 437.87))) AND col0 >= 616

statement ok
CREATE VIEW view_2_tab3_275 AS SELECT pk, col0 FROM tab3 WHERE NOT ((((col0 < 932 OR ((col0 = 506) AND (col4 < 845.42)) OR (col4 <= 130.0) OR (col4 < 105.46) AND (col4 > 312.48 OR (col1 IS NULL)) OR col3 > 824 AND col3 > 92 AND (col1 >= 70.26) AND (col3 <= 801))) AND ((((((col1 > 586.88)))) OR col3 < 245 OR col4 > 437.87))) AND col0 >= 616)

statement ok
CREATE VIEW view_3_tab3_275 AS SELECT pk FROM view_1_tab3_275

query II rowsort label-4500-1
SELECT pk, col0 FROM tab3 WHERE (((col0 < 932 OR ((col0 = 506) AND (col4 < 845.42)) OR (col4 <= 130.0) OR (col4 < 105.46) AND (col4 > 312.48 OR (col1 IS NULL)) OR col3 > 824 AND col3 > 92 AND (col1 >= 70.26) AND (col3 <= 801))) AND ((((((col1 > 586.88)))) OR col3 < 245 OR col4 > 437.87))) AND col0 >= 616
----
50 values hashing to c2b1ee4a1ae1a5df71dcfd33c3be5668

query II rowsort label-4500-2
SELECT pk, col0 FROM tab3 WHERE NOT ((((col0 < 932 OR ((col0 = 506) AND (col4 < 845.42)) OR (col4 <= 130.0) OR (col4 < 105.46) AND (col4 > 312.48 OR (col1 IS NULL)) OR col3 > 824 AND col3 > 92 AND (col1 >= 70.26) AND (col3 <= 801))) AND ((((((col1 > 586.88)))) OR col3 < 245 OR col4 > 437.87))) AND col0 >= 616)
----
150 values hashing to 22aa9d325387695d27fd8989236ef869

query II rowsort label-4500-1
SELECT pk, col0 FROM view_1_tab3_275
----
50 values hashing to c2b1ee4a1ae1a5df71dcfd33c3be5668

query II rowsort label-4500-2
SELECT pk, col0 FROM view_2_tab3_275
----
150 values hashing to 22aa9d325387695d27fd8989236ef869

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (((col0 < 932 OR ((col0 = 506) AND (col4 < 845.42)) OR (col4 <= 130.0) OR (col4 < 105.46) AND (col4 > 312.48 OR (col1 IS NULL)) OR col3 > 824 AND col3 > 92 AND (col1 >= 70.26) AND (col3 <= 801))) AND ((((((col1 > 586.88)))) OR col3 < 245 OR col4 > 437.87))) AND col0 >= 616 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT ((((col0 < 932 OR ((col0 = 506) AND (col4 < 845.42)) OR (col4 <= 130.0) OR (col4 < 105.46) AND (col4 > 312.48 OR (col1 IS NULL)) OR col3 > 824 AND col3 > 92 AND (col1 >= 70.26) AND (col3 <= 801))) AND ((((((col1 > 586.88)))) OR col3 < 245 OR col4 > 437.87))) AND col0 >= 616)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_275 UNION ALL SELECT pk, col0 FROM view_2_tab3_275
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (((col0 < 932 OR ((col0 = 506) AND (col4 < 845.42)) OR (col4 <= 130.0) OR (col4 < 105.46) AND (col4 > 312.48 OR (col1 IS NULL)) OR col3 > 824 AND col3 > 92 AND (col1 >= 70.26) AND (col3 <= 801))) AND ((((((col1 > 586.88)))) OR col3 < 245 OR col4 > 437.87))) AND col0 >= 616 UNION SELECT pk, col0 FROM tab3 WHERE NOT ((((col0 < 932 OR ((col0 = 506) AND (col4 < 845.42)) OR (col4 <= 130.0) OR (col4 < 105.46) AND (col4 > 312.48 OR (col1 IS NULL)) OR col3 > 824 AND col3 > 92 AND (col1 >= 70.26) AND (col3 <= 801))) AND ((((((col1 > 586.88)))) OR col3 < 245 OR col4 > 437.87))) AND col0 >= 616)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_275 UNION SELECT pk, col0 FROM view_2_tab3_275
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-4500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE (((col0 < 932 OR ((col0 = 506) AND (col4 < 845.42)) OR (col4 <= 130.0) OR (col4 < 105.46) AND (col4 > 312.48 OR (col1 IS NULL)) OR col3 > 824 AND col3 > 92 AND (col1 >= 70.26) AND (col3 <= 801))) AND ((((((col1 > 586.88)))) OR col3 < 245 OR col4 > 437.87))) AND col0 >= 616 ) AS tab3_275
----
25 values hashing to daab5a56422fe3795f4f9ed8c21fd002

query I rowsort label-4500-3
SELECT * FROM view_3_tab3_275
----
25 values hashing to daab5a56422fe3795f4f9ed8c21fd002

query I rowsort label-4500-3
SELECT pk FROM tab3 WHERE (((col0 < 932 OR ((col0 = 506) AND (col4 < 845.42)) OR (col4 <= 130.0) OR (col4 < 105.46) AND (col4 > 312.48 OR (col1 IS NULL)) OR col3 > 824 AND col3 > 92 AND (col1 >= 70.26) AND (col3 <= 801))) AND ((((((col1 > 586.88)))) OR col3 < 245 OR col4 > 437.87))) AND col0 >= 616
----
25 values hashing to daab5a56422fe3795f4f9ed8c21fd002

statement ok
DROP VIEW view_1_tab3_275

statement ok
DROP VIEW view_2_tab3_275

statement ok
DROP VIEW view_3_tab3_275

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_275') DROP VIEW view_1_tab4_275

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_275

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_275') DROP VIEW view_2_tab4_275

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_275

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_275') DROP VIEW view_3_tab4_275

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_275

statement ok
CREATE VIEW view_1_tab4_275 AS SELECT pk, col0 FROM tab4 WHERE (((col0 < 932 OR ((col0 = 506) AND (col4 < 845.42)) OR (col4 <= 130.0) OR (col4 < 105.46) AND (col4 > 312.48 OR (col1 IS NULL)) OR col3 > 824 AND col3 > 92 AND (col1 >= 70.26) AND (col3 <= 801))) AND ((((((col1 > 586.88)))) OR col3 < 245 OR col4 > 437.87))) AND col0 >= 616

statement ok
CREATE VIEW view_2_tab4_275 AS SELECT pk, col0 FROM tab4 WHERE NOT ((((col0 < 932 OR ((col0 = 506) AND (col4 < 845.42)) OR (col4 <= 130.0) OR (col4 < 105.46) AND (col4 > 312.48 OR (col1 IS NULL)) OR col3 > 824 AND col3 > 92 AND (col1 >= 70.26) AND (col3 <= 801))) AND ((((((col1 > 586.88)))) OR col3 < 245 OR col4 > 437.87))) AND col0 >= 616)

statement ok
CREATE VIEW view_3_tab4_275 AS SELECT pk FROM view_1_tab4_275

query II rowsort label-4500-1
SELECT pk, col0 FROM tab4 WHERE (((col0 < 932 OR ((col0 = 506) AND (col4 < 845.42)) OR (col4 <= 130.0) OR (col4 < 105.46) AND (col4 > 312.48 OR (col1 IS NULL)) OR col3 > 824 AND col3 > 92 AND (col1 >= 70.26) AND (col3 <= 801))) AND ((((((col1 > 586.88)))) OR col3 < 245 OR col4 > 437.87))) AND col0 >= 616
----
50 values hashing to c2b1ee4a1ae1a5df71dcfd33c3be5668

query II rowsort label-4500-2
SELECT pk, col0 FROM tab4 WHERE NOT ((((col0 < 932 OR ((col0 = 506) AND (col4 < 845.42)) OR (col4 <= 130.0) OR (col4 < 105.46) AND (col4 > 312.48 OR (col1 IS NULL)) OR col3 > 824 AND col3 > 92 AND (col1 >= 70.26) AND (col3 <= 801))) AND ((((((col1 > 586.88)))) OR col3 < 245 OR col4 > 437.87))) AND col0 >= 616)
----
150 values hashing to 22aa9d325387695d27fd8989236ef869

query II rowsort label-4500-1
SELECT pk, col0 FROM view_1_tab4_275
----
50 values hashing to c2b1ee4a1ae1a5df71dcfd33c3be5668

query II rowsort label-4500-2
SELECT pk, col0 FROM view_2_tab4_275
----
150 values hashing to 22aa9d325387695d27fd8989236ef869

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (((col0 < 932 OR ((col0 = 506) AND (col4 < 845.42)) OR (col4 <= 130.0) OR (col4 < 105.46) AND (col4 > 312.48 OR (col1 IS NULL)) OR col3 > 824 AND col3 > 92 AND (col1 >= 70.26) AND (col3 <= 801))) AND ((((((col1 > 586.88)))) OR col3 < 245 OR col4 > 437.87))) AND col0 >= 616 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT ((((col0 < 932 OR ((col0 = 506) AND (col4 < 845.42)) OR (col4 <= 130.0) OR (col4 < 105.46) AND (col4 > 312.48 OR (col1 IS NULL)) OR col3 > 824 AND col3 > 92 AND (col1 >= 70.26) AND (col3 <= 801))) AND ((((((col1 > 586.88)))) OR col3 < 245 OR col4 > 437.87))) AND col0 >= 616)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_275 UNION ALL SELECT pk, col0 FROM view_2_tab4_275
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (((col0 < 932 OR ((col0 = 506) AND (col4 < 845.42)) OR (col4 <= 130.0) OR (col4 < 105.46) AND (col4 > 312.48 OR (col1 IS NULL)) OR col3 > 824 AND col3 > 92 AND (col1 >= 70.26) AND (col3 <= 801))) AND ((((((col1 > 586.88)))) OR col3 < 245 OR col4 > 437.87))) AND col0 >= 616 UNION SELECT pk, col0 FROM tab4 WHERE NOT ((((col0 < 932 OR ((col0 = 506) AND (col4 < 845.42)) OR (col4 <= 130.0) OR (col4 < 105.46) AND (col4 > 312.48 OR (col1 IS NULL)) OR col3 > 824 AND col3 > 92 AND (col1 >= 70.26) AND (col3 <= 801))) AND ((((((col1 > 586.88)))) OR col3 < 245 OR col4 > 437.87))) AND col0 >= 616)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_275 UNION SELECT pk, col0 FROM view_2_tab4_275
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-4500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE (((col0 < 932 OR ((col0 = 506) AND (col4 < 845.42)) OR (col4 <= 130.0) OR (col4 < 105.46) AND (col4 > 312.48 OR (col1 IS NULL)) OR col3 > 824 AND col3 > 92 AND (col1 >= 70.26) AND (col3 <= 801))) AND ((((((col1 > 586.88)))) OR col3 < 245 OR col4 > 437.87))) AND col0 >= 616 ) AS tab4_275
----
25 values hashing to daab5a56422fe3795f4f9ed8c21fd002

query I rowsort label-4500-3
SELECT * FROM view_3_tab4_275
----
25 values hashing to daab5a56422fe3795f4f9ed8c21fd002

query I rowsort label-4500-3
SELECT pk FROM tab4 WHERE (((col0 < 932 OR ((col0 = 506) AND (col4 < 845.42)) OR (col4 <= 130.0) OR (col4 < 105.46) AND (col4 > 312.48 OR (col1 IS NULL)) OR col3 > 824 AND col3 > 92 AND (col1 >= 70.26) AND (col3 <= 801))) AND ((((((col1 > 586.88)))) OR col3 < 245 OR col4 > 437.87))) AND col0 >= 616
----
25 values hashing to daab5a56422fe3795f4f9ed8c21fd002

statement ok
DROP VIEW view_1_tab4_275

statement ok
DROP VIEW view_2_tab4_275

statement ok
DROP VIEW view_3_tab4_275

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_276') DROP VIEW view_1_tab0_276

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_276

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_276') DROP VIEW view_2_tab0_276

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_276

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_276') DROP VIEW view_3_tab0_276

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_276

statement ok
CREATE VIEW view_1_tab0_276 AS SELECT pk, col0 FROM tab0 WHERE col3 IN (395,213)

statement ok
CREATE VIEW view_2_tab0_276 AS SELECT pk, col0 FROM tab0 WHERE NOT (col3 IN (395,213))

statement ok
CREATE VIEW view_3_tab0_276 AS SELECT pk FROM view_1_tab0_276

query II rowsort label-4600-1
SELECT pk, col0 FROM tab0 WHERE col3 IN (395,213)
----

query II rowsort label-4600-2
SELECT pk, col0 FROM tab0 WHERE NOT (col3 IN (395,213))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-4600-1
SELECT pk, col0 FROM view_1_tab0_276
----

query II rowsort label-4600-2
SELECT pk, col0 FROM view_2_tab0_276
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 IN (395,213) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col3 IN (395,213))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_276 UNION ALL SELECT pk, col0 FROM view_2_tab0_276
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 IN (395,213) UNION SELECT pk, col0 FROM tab0 WHERE NOT (col3 IN (395,213))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_276 UNION SELECT pk, col0 FROM view_2_tab0_276
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-4600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col3 IN (395,213) ) AS tab0_276
----

query I rowsort label-4600-3
SELECT * FROM view_3_tab0_276
----

query I rowsort label-4600-3
SELECT pk FROM tab0 WHERE col3 IN (395,213)
----

statement ok
DROP VIEW view_1_tab0_276

statement ok
DROP VIEW view_2_tab0_276

statement ok
DROP VIEW view_3_tab0_276

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_276') DROP VIEW view_1_tab1_276

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_276

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_276') DROP VIEW view_2_tab1_276

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_276

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_276') DROP VIEW view_3_tab1_276

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_276

statement ok
CREATE VIEW view_1_tab1_276 AS SELECT pk, col0 FROM tab1 WHERE col3 IN (395,213)

statement ok
CREATE VIEW view_2_tab1_276 AS SELECT pk, col0 FROM tab1 WHERE NOT (col3 IN (395,213))

statement ok
CREATE VIEW view_3_tab1_276 AS SELECT pk FROM view_1_tab1_276

query II rowsort label-4600-1
SELECT pk, col0 FROM tab1 WHERE col3 IN (395,213)
----

query II rowsort label-4600-2
SELECT pk, col0 FROM tab1 WHERE NOT (col3 IN (395,213))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-4600-1
SELECT pk, col0 FROM view_1_tab1_276
----

query II rowsort label-4600-2
SELECT pk, col0 FROM view_2_tab1_276
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 IN (395,213) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col3 IN (395,213))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_276 UNION ALL SELECT pk, col0 FROM view_2_tab1_276
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 IN (395,213) UNION SELECT pk, col0 FROM tab1 WHERE NOT (col3 IN (395,213))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_276 UNION SELECT pk, col0 FROM view_2_tab1_276
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-4600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col3 IN (395,213) ) AS tab1_276
----

query I rowsort label-4600-3
SELECT * FROM view_3_tab1_276
----

query I rowsort label-4600-3
SELECT pk FROM tab1 WHERE col3 IN (395,213)
----

statement ok
DROP VIEW view_1_tab1_276

statement ok
DROP VIEW view_2_tab1_276

statement ok
DROP VIEW view_3_tab1_276

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_276') DROP VIEW view_1_tab2_276

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_276

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_276') DROP VIEW view_2_tab2_276

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_276

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_276') DROP VIEW view_3_tab2_276

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_276

statement ok
CREATE VIEW view_1_tab2_276 AS SELECT pk, col0 FROM tab2 WHERE col3 IN (395,213)

statement ok
CREATE VIEW view_2_tab2_276 AS SELECT pk, col0 FROM tab2 WHERE NOT (col3 IN (395,213))

statement ok
CREATE VIEW view_3_tab2_276 AS SELECT pk FROM view_1_tab2_276

query II rowsort label-4600-1
SELECT pk, col0 FROM tab2 WHERE col3 IN (395,213)
----

query II rowsort label-4600-2
SELECT pk, col0 FROM tab2 WHERE NOT (col3 IN (395,213))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-4600-1
SELECT pk, col0 FROM view_1_tab2_276
----

query II rowsort label-4600-2
SELECT pk, col0 FROM view_2_tab2_276
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 IN (395,213) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col3 IN (395,213))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_276 UNION ALL SELECT pk, col0 FROM view_2_tab2_276
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 IN (395,213) UNION SELECT pk, col0 FROM tab2 WHERE NOT (col3 IN (395,213))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_276 UNION SELECT pk, col0 FROM view_2_tab2_276
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-4600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col3 IN (395,213) ) AS tab2_276
----

query I rowsort label-4600-3
SELECT * FROM view_3_tab2_276
----

query I rowsort label-4600-3
SELECT pk FROM tab2 WHERE col3 IN (395,213)
----

statement ok
DROP VIEW view_1_tab2_276

statement ok
DROP VIEW view_2_tab2_276

statement ok
DROP VIEW view_3_tab2_276

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_276') DROP VIEW view_1_tab3_276

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_276

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_276') DROP VIEW view_2_tab3_276

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_276

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_276') DROP VIEW view_3_tab3_276

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_276

statement ok
CREATE VIEW view_1_tab3_276 AS SELECT pk, col0 FROM tab3 WHERE col3 IN (395,213)

statement ok
CREATE VIEW view_2_tab3_276 AS SELECT pk, col0 FROM tab3 WHERE NOT (col3 IN (395,213))

statement ok
CREATE VIEW view_3_tab3_276 AS SELECT pk FROM view_1_tab3_276

query II rowsort label-4600-1
SELECT pk, col0 FROM tab3 WHERE col3 IN (395,213)
----

query II rowsort label-4600-2
SELECT pk, col0 FROM tab3 WHERE NOT (col3 IN (395,213))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-4600-1
SELECT pk, col0 FROM view_1_tab3_276
----

query II rowsort label-4600-2
SELECT pk, col0 FROM view_2_tab3_276
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 IN (395,213) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col3 IN (395,213))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_276 UNION ALL SELECT pk, col0 FROM view_2_tab3_276
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 IN (395,213) UNION SELECT pk, col0 FROM tab3 WHERE NOT (col3 IN (395,213))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_276 UNION SELECT pk, col0 FROM view_2_tab3_276
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-4600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col3 IN (395,213) ) AS tab3_276
----

query I rowsort label-4600-3
SELECT * FROM view_3_tab3_276
----

query I rowsort label-4600-3
SELECT pk FROM tab3 WHERE col3 IN (395,213)
----

statement ok
DROP VIEW view_1_tab3_276

statement ok
DROP VIEW view_2_tab3_276

statement ok
DROP VIEW view_3_tab3_276

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_276') DROP VIEW view_1_tab4_276

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_276

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_276') DROP VIEW view_2_tab4_276

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_276

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_276') DROP VIEW view_3_tab4_276

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_276

statement ok
CREATE VIEW view_1_tab4_276 AS SELECT pk, col0 FROM tab4 WHERE col3 IN (395,213)

statement ok
CREATE VIEW view_2_tab4_276 AS SELECT pk, col0 FROM tab4 WHERE NOT (col3 IN (395,213))

statement ok
CREATE VIEW view_3_tab4_276 AS SELECT pk FROM view_1_tab4_276

query II rowsort label-4600-1
SELECT pk, col0 FROM tab4 WHERE col3 IN (395,213)
----

query II rowsort label-4600-2
SELECT pk, col0 FROM tab4 WHERE NOT (col3 IN (395,213))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-4600-1
SELECT pk, col0 FROM view_1_tab4_276
----

query II rowsort label-4600-2
SELECT pk, col0 FROM view_2_tab4_276
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 IN (395,213) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col3 IN (395,213))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_276 UNION ALL SELECT pk, col0 FROM view_2_tab4_276
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 IN (395,213) UNION SELECT pk, col0 FROM tab4 WHERE NOT (col3 IN (395,213))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_276 UNION SELECT pk, col0 FROM view_2_tab4_276
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-4600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col3 IN (395,213) ) AS tab4_276
----

query I rowsort label-4600-3
SELECT * FROM view_3_tab4_276
----

query I rowsort label-4600-3
SELECT pk FROM tab4 WHERE col3 IN (395,213)
----

statement ok
DROP VIEW view_1_tab4_276

statement ok
DROP VIEW view_2_tab4_276

statement ok
DROP VIEW view_3_tab4_276

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_277') DROP VIEW view_1_tab0_277

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_277

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_277') DROP VIEW view_2_tab0_277

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_277

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_277') DROP VIEW view_3_tab0_277

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_277

statement ok
CREATE VIEW view_1_tab0_277 AS SELECT pk, col0 FROM tab0 WHERE ((col3 < 387))

statement ok
CREATE VIEW view_2_tab0_277 AS SELECT pk, col0 FROM tab0 WHERE NOT (((col3 < 387)))

statement ok
CREATE VIEW view_3_tab0_277 AS SELECT pk FROM view_1_tab0_277

query II rowsort label-4700-1
SELECT pk, col0 FROM tab0 WHERE ((col3 < 387))
----
82 values hashing to 16134394858b8a0bc1569c9ee274eb72

query II rowsort label-4700-2
SELECT pk, col0 FROM tab0 WHERE NOT (((col3 < 387)))
----
118 values hashing to 5ea1c905b9938622481ede19c4ab2816

query II rowsort label-4700-1
SELECT pk, col0 FROM view_1_tab0_277
----
82 values hashing to 16134394858b8a0bc1569c9ee274eb72

query II rowsort label-4700-2
SELECT pk, col0 FROM view_2_tab0_277
----
118 values hashing to 5ea1c905b9938622481ede19c4ab2816

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE ((col3 < 387)) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (((col3 < 387)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_277 UNION ALL SELECT pk, col0 FROM view_2_tab0_277
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE ((col3 < 387)) UNION SELECT pk, col0 FROM tab0 WHERE NOT (((col3 < 387)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_277 UNION SELECT pk, col0 FROM view_2_tab0_277
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-4700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE ((col3 < 387)) ) AS tab0_277
----
41 values hashing to 6c25c3ab37aaea35892735f40e824582

query I rowsort label-4700-3
SELECT * FROM view_3_tab0_277
----
41 values hashing to 6c25c3ab37aaea35892735f40e824582

query I rowsort label-4700-3
SELECT pk FROM tab0 WHERE ((col3 < 387))
----
41 values hashing to 6c25c3ab37aaea35892735f40e824582

statement ok
DROP VIEW view_1_tab0_277

statement ok
DROP VIEW view_2_tab0_277

statement ok
DROP VIEW view_3_tab0_277

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_277') DROP VIEW view_1_tab1_277

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_277

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_277') DROP VIEW view_2_tab1_277

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_277

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_277') DROP VIEW view_3_tab1_277

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_277

statement ok
CREATE VIEW view_1_tab1_277 AS SELECT pk, col0 FROM tab1 WHERE ((col3 < 387))

statement ok
CREATE VIEW view_2_tab1_277 AS SELECT pk, col0 FROM tab1 WHERE NOT (((col3 < 387)))

statement ok
CREATE VIEW view_3_tab1_277 AS SELECT pk FROM view_1_tab1_277

query II rowsort label-4700-1
SELECT pk, col0 FROM tab1 WHERE ((col3 < 387))
----
82 values hashing to 16134394858b8a0bc1569c9ee274eb72

query II rowsort label-4700-2
SELECT pk, col0 FROM tab1 WHERE NOT (((col3 < 387)))
----
118 values hashing to 5ea1c905b9938622481ede19c4ab2816

query II rowsort label-4700-1
SELECT pk, col0 FROM view_1_tab1_277
----
82 values hashing to 16134394858b8a0bc1569c9ee274eb72

query II rowsort label-4700-2
SELECT pk, col0 FROM view_2_tab1_277
----
118 values hashing to 5ea1c905b9938622481ede19c4ab2816

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE ((col3 < 387)) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (((col3 < 387)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_277 UNION ALL SELECT pk, col0 FROM view_2_tab1_277
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE ((col3 < 387)) UNION SELECT pk, col0 FROM tab1 WHERE NOT (((col3 < 387)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_277 UNION SELECT pk, col0 FROM view_2_tab1_277
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-4700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE ((col3 < 387)) ) AS tab1_277
----
41 values hashing to 6c25c3ab37aaea35892735f40e824582

query I rowsort label-4700-3
SELECT * FROM view_3_tab1_277
----
41 values hashing to 6c25c3ab37aaea35892735f40e824582

query I rowsort label-4700-3
SELECT pk FROM tab1 WHERE ((col3 < 387))
----
41 values hashing to 6c25c3ab37aaea35892735f40e824582

statement ok
DROP VIEW view_1_tab1_277

statement ok
DROP VIEW view_2_tab1_277

statement ok
DROP VIEW view_3_tab1_277

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_277') DROP VIEW view_1_tab2_277

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_277

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_277') DROP VIEW view_2_tab2_277

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_277

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_277') DROP VIEW view_3_tab2_277

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_277

statement ok
CREATE VIEW view_1_tab2_277 AS SELECT pk, col0 FROM tab2 WHERE ((col3 < 387))

statement ok
CREATE VIEW view_2_tab2_277 AS SELECT pk, col0 FROM tab2 WHERE NOT (((col3 < 387)))

statement ok
CREATE VIEW view_3_tab2_277 AS SELECT pk FROM view_1_tab2_277

query II rowsort label-4700-1
SELECT pk, col0 FROM tab2 WHERE ((col3 < 387))
----
82 values hashing to 16134394858b8a0bc1569c9ee274eb72

query II rowsort label-4700-2
SELECT pk, col0 FROM tab2 WHERE NOT (((col3 < 387)))
----
118 values hashing to 5ea1c905b9938622481ede19c4ab2816

query II rowsort label-4700-1
SELECT pk, col0 FROM view_1_tab2_277
----
82 values hashing to 16134394858b8a0bc1569c9ee274eb72

query II rowsort label-4700-2
SELECT pk, col0 FROM view_2_tab2_277
----
118 values hashing to 5ea1c905b9938622481ede19c4ab2816

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE ((col3 < 387)) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (((col3 < 387)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_277 UNION ALL SELECT pk, col0 FROM view_2_tab2_277
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE ((col3 < 387)) UNION SELECT pk, col0 FROM tab2 WHERE NOT (((col3 < 387)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_277 UNION SELECT pk, col0 FROM view_2_tab2_277
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-4700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE ((col3 < 387)) ) AS tab2_277
----
41 values hashing to 6c25c3ab37aaea35892735f40e824582

query I rowsort label-4700-3
SELECT * FROM view_3_tab2_277
----
41 values hashing to 6c25c3ab37aaea35892735f40e824582

query I rowsort label-4700-3
SELECT pk FROM tab2 WHERE ((col3 < 387))
----
41 values hashing to 6c25c3ab37aaea35892735f40e824582

statement ok
DROP VIEW view_1_tab2_277

statement ok
DROP VIEW view_2_tab2_277

statement ok
DROP VIEW view_3_tab2_277

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_277') DROP VIEW view_1_tab3_277

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_277

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_277') DROP VIEW view_2_tab3_277

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_277

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_277') DROP VIEW view_3_tab3_277

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_277

statement ok
CREATE VIEW view_1_tab3_277 AS SELECT pk, col0 FROM tab3 WHERE ((col3 < 387))

statement ok
CREATE VIEW view_2_tab3_277 AS SELECT pk, col0 FROM tab3 WHERE NOT (((col3 < 387)))

statement ok
CREATE VIEW view_3_tab3_277 AS SELECT pk FROM view_1_tab3_277

query II rowsort label-4700-1
SELECT pk, col0 FROM tab3 WHERE ((col3 < 387))
----
82 values hashing to 16134394858b8a0bc1569c9ee274eb72

query II rowsort label-4700-2
SELECT pk, col0 FROM tab3 WHERE NOT (((col3 < 387)))
----
118 values hashing to 5ea1c905b9938622481ede19c4ab2816

query II rowsort label-4700-1
SELECT pk, col0 FROM view_1_tab3_277
----
82 values hashing to 16134394858b8a0bc1569c9ee274eb72

query II rowsort label-4700-2
SELECT pk, col0 FROM view_2_tab3_277
----
118 values hashing to 5ea1c905b9938622481ede19c4ab2816

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE ((col3 < 387)) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (((col3 < 387)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_277 UNION ALL SELECT pk, col0 FROM view_2_tab3_277
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE ((col3 < 387)) UNION SELECT pk, col0 FROM tab3 WHERE NOT (((col3 < 387)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_277 UNION SELECT pk, col0 FROM view_2_tab3_277
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-4700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE ((col3 < 387)) ) AS tab3_277
----
41 values hashing to 6c25c3ab37aaea35892735f40e824582

query I rowsort label-4700-3
SELECT * FROM view_3_tab3_277
----
41 values hashing to 6c25c3ab37aaea35892735f40e824582

query I rowsort label-4700-3
SELECT pk FROM tab3 WHERE ((col3 < 387))
----
41 values hashing to 6c25c3ab37aaea35892735f40e824582

statement ok
DROP VIEW view_1_tab3_277

statement ok
DROP VIEW view_2_tab3_277

statement ok
DROP VIEW view_3_tab3_277

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_277') DROP VIEW view_1_tab4_277

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_277

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_277') DROP VIEW view_2_tab4_277

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_277

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_277') DROP VIEW view_3_tab4_277

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_277

statement ok
CREATE VIEW view_1_tab4_277 AS SELECT pk, col0 FROM tab4 WHERE ((col3 < 387))

statement ok
CREATE VIEW view_2_tab4_277 AS SELECT pk, col0 FROM tab4 WHERE NOT (((col3 < 387)))

statement ok
CREATE VIEW view_3_tab4_277 AS SELECT pk FROM view_1_tab4_277

query II rowsort label-4700-1
SELECT pk, col0 FROM tab4 WHERE ((col3 < 387))
----
82 values hashing to 16134394858b8a0bc1569c9ee274eb72

query II rowsort label-4700-2
SELECT pk, col0 FROM tab4 WHERE NOT (((col3 < 387)))
----
118 values hashing to 5ea1c905b9938622481ede19c4ab2816

query II rowsort label-4700-1
SELECT pk, col0 FROM view_1_tab4_277
----
82 values hashing to 16134394858b8a0bc1569c9ee274eb72

query II rowsort label-4700-2
SELECT pk, col0 FROM view_2_tab4_277
----
118 values hashing to 5ea1c905b9938622481ede19c4ab2816

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE ((col3 < 387)) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (((col3 < 387)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_277 UNION ALL SELECT pk, col0 FROM view_2_tab4_277
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE ((col3 < 387)) UNION SELECT pk, col0 FROM tab4 WHERE NOT (((col3 < 387)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_277 UNION SELECT pk, col0 FROM view_2_tab4_277
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-4700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE ((col3 < 387)) ) AS tab4_277
----
41 values hashing to 6c25c3ab37aaea35892735f40e824582

query I rowsort label-4700-3
SELECT * FROM view_3_tab4_277
----
41 values hashing to 6c25c3ab37aaea35892735f40e824582

query I rowsort label-4700-3
SELECT pk FROM tab4 WHERE ((col3 < 387))
----
41 values hashing to 6c25c3ab37aaea35892735f40e824582

statement ok
DROP VIEW view_1_tab4_277

statement ok
DROP VIEW view_2_tab4_277

statement ok
DROP VIEW view_3_tab4_277

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_278') DROP VIEW view_1_tab0_278

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_278

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_278') DROP VIEW view_2_tab0_278

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_278

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_278') DROP VIEW view_3_tab0_278

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_278

statement ok
CREATE VIEW view_1_tab0_278 AS SELECT pk, col0 FROM tab0 WHERE (col3 >= 549)

statement ok
CREATE VIEW view_2_tab0_278 AS SELECT pk, col0 FROM tab0 WHERE NOT ((col3 >= 549))

statement ok
CREATE VIEW view_3_tab0_278 AS SELECT pk FROM view_1_tab0_278

query II rowsort label-4800-1
SELECT pk, col0 FROM tab0 WHERE (col3 >= 549)
----
86 values hashing to 9170235e9679d29bd1e4c5f9aaeb540f

query II rowsort label-4800-2
SELECT pk, col0 FROM tab0 WHERE NOT ((col3 >= 549))
----
114 values hashing to 5e36c4133451112c3609108c5893b637

query II rowsort label-4800-1
SELECT pk, col0 FROM view_1_tab0_278
----
86 values hashing to 9170235e9679d29bd1e4c5f9aaeb540f

query II rowsort label-4800-2
SELECT pk, col0 FROM view_2_tab0_278
----
114 values hashing to 5e36c4133451112c3609108c5893b637

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 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_278 UNION ALL SELECT pk, col0 FROM view_2_tab0_278
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

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 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_278 UNION SELECT pk, col0 FROM view_2_tab0_278
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-4800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE (col3 >= 549) ) AS tab0_278
----
43 values hashing to 1239463f5e7ad0b7eec0ceedbce195cd

query I rowsort label-4800-3
SELECT * FROM view_3_tab0_278
----
43 values hashing to 1239463f5e7ad0b7eec0ceedbce195cd

query I rowsort label-4800-3
SELECT pk FROM tab0 WHERE (col3 >= 549)
----
43 values hashing to 1239463f5e7ad0b7eec0ceedbce195cd

statement ok
DROP VIEW view_1_tab0_278

statement ok
DROP VIEW view_2_tab0_278

statement ok
DROP VIEW view_3_tab0_278

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_278') DROP VIEW view_1_tab1_278

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_278

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_278') DROP VIEW view_2_tab1_278

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_278

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_278') DROP VIEW view_3_tab1_278

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_278

statement ok
CREATE VIEW view_1_tab1_278 AS SELECT pk, col0 FROM tab1 WHERE (col3 >= 549)

statement ok
CREATE VIEW view_2_tab1_278 AS SELECT pk, col0 FROM tab1 WHERE NOT ((col3 >= 549))

statement ok
CREATE VIEW view_3_tab1_278 AS SELECT pk FROM view_1_tab1_278

query II rowsort label-4800-1
SELECT pk, col0 FROM tab1 WHERE (col3 >= 549)
----
86 values hashing to 9170235e9679d29bd1e4c5f9aaeb540f

query II rowsort label-4800-2
SELECT pk, col0 FROM tab1 WHERE NOT ((col3 >= 549))
----
114 values hashing to 5e36c4133451112c3609108c5893b637

query II rowsort label-4800-1
SELECT pk, col0 FROM view_1_tab1_278
----
86 values hashing to 9170235e9679d29bd1e4c5f9aaeb540f

query II rowsort label-4800-2
SELECT pk, col0 FROM view_2_tab1_278
----
114 values hashing to 5e36c4133451112c3609108c5893b637

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 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_278 UNION ALL SELECT pk, col0 FROM view_2_tab1_278
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

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 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_278 UNION SELECT pk, col0 FROM view_2_tab1_278
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-4800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE (col3 >= 549) ) AS tab1_278
----
43 values hashing to 1239463f5e7ad0b7eec0ceedbce195cd

query I rowsort label-4800-3
SELECT * FROM view_3_tab1_278
----
43 values hashing to 1239463f5e7ad0b7eec0ceedbce195cd

query I rowsort label-4800-3
SELECT pk FROM tab1 WHERE (col3 >= 549)
----
43 values hashing to 1239463f5e7ad0b7eec0ceedbce195cd

statement ok
DROP VIEW view_1_tab1_278

statement ok
DROP VIEW view_2_tab1_278

statement ok
DROP VIEW view_3_tab1_278

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_278') DROP VIEW view_1_tab2_278

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_278

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_278') DROP VIEW view_2_tab2_278

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_278

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_278') DROP VIEW view_3_tab2_278

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_278

statement ok
CREATE VIEW view_1_tab2_278 AS SELECT pk, col0 FROM tab2 WHERE (col3 >= 549)

statement ok
CREATE VIEW view_2_tab2_278 AS SELECT pk, col0 FROM tab2 WHERE NOT ((col3 >= 549))

statement ok
CREATE VIEW view_3_tab2_278 AS SELECT pk FROM view_1_tab2_278

query II rowsort label-4800-1
SELECT pk, col0 FROM tab2 WHERE (col3 >= 549)
----
86 values hashing to 9170235e9679d29bd1e4c5f9aaeb540f

query II rowsort label-4800-2
SELECT pk, col0 FROM tab2 WHERE NOT ((col3 >= 549))
----
114 values hashing to 5e36c4133451112c3609108c5893b637

query II rowsort label-4800-1
SELECT pk, col0 FROM view_1_tab2_278
----
86 values hashing to 9170235e9679d29bd1e4c5f9aaeb540f

query II rowsort label-4800-2
SELECT pk, col0 FROM view_2_tab2_278
----
114 values hashing to 5e36c4133451112c3609108c5893b637

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 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_278 UNION ALL SELECT pk, col0 FROM view_2_tab2_278
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

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 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_278 UNION SELECT pk, col0 FROM view_2_tab2_278
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-4800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE (col3 >= 549) ) AS tab2_278
----
43 values hashing to 1239463f5e7ad0b7eec0ceedbce195cd

query I rowsort label-4800-3
SELECT * FROM view_3_tab2_278
----
43 values hashing to 1239463f5e7ad0b7eec0ceedbce195cd

query I rowsort label-4800-3
SELECT pk FROM tab2 WHERE (col3 >= 549)
----
43 values hashing to 1239463f5e7ad0b7eec0ceedbce195cd

statement ok
DROP VIEW view_1_tab2_278

statement ok
DROP VIEW view_2_tab2_278

statement ok
DROP VIEW view_3_tab2_278

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_278') DROP VIEW view_1_tab3_278

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_278

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_278') DROP VIEW view_2_tab3_278

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_278

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_278') DROP VIEW view_3_tab3_278

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_278

statement ok
CREATE VIEW view_1_tab3_278 AS SELECT pk, col0 FROM tab3 WHERE (col3 >= 549)

statement ok
CREATE VIEW view_2_tab3_278 AS SELECT pk, col0 FROM tab3 WHERE NOT ((col3 >= 549))

statement ok
CREATE VIEW view_3_tab3_278 AS SELECT pk FROM view_1_tab3_278

query II rowsort label-4800-1
SELECT pk, col0 FROM tab3 WHERE (col3 >= 549)
----
86 values hashing to 9170235e9679d29bd1e4c5f9aaeb540f

query II rowsort label-4800-2
SELECT pk, col0 FROM tab3 WHERE NOT ((col3 >= 549))
----
114 values hashing to 5e36c4133451112c3609108c5893b637

query II rowsort label-4800-1
SELECT pk, col0 FROM view_1_tab3_278
----
86 values hashing to 9170235e9679d29bd1e4c5f9aaeb540f

query II rowsort label-4800-2
SELECT pk, col0 FROM view_2_tab3_278
----
114 values hashing to 5e36c4133451112c3609108c5893b637

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 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_278 UNION ALL SELECT pk, col0 FROM view_2_tab3_278
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

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 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_278 UNION SELECT pk, col0 FROM view_2_tab3_278
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-4800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE (col3 >= 549) ) AS tab3_278
----
43 values hashing to 1239463f5e7ad0b7eec0ceedbce195cd

query I rowsort label-4800-3
SELECT * FROM view_3_tab3_278
----
43 values hashing to 1239463f5e7ad0b7eec0ceedbce195cd

query I rowsort label-4800-3
SELECT pk FROM tab3 WHERE (col3 >= 549)
----
43 values hashing to 1239463f5e7ad0b7eec0ceedbce195cd

statement ok
DROP VIEW view_1_tab3_278

statement ok
DROP VIEW view_2_tab3_278

statement ok
DROP VIEW view_3_tab3_278

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_278') DROP VIEW view_1_tab4_278

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_278

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_278') DROP VIEW view_2_tab4_278

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_278

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_278') DROP VIEW view_3_tab4_278

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_278

statement ok
CREATE VIEW view_1_tab4_278 AS SELECT pk, col0 FROM tab4 WHERE (col3 >= 549)

statement ok
CREATE VIEW view_2_tab4_278 AS SELECT pk, col0 FROM tab4 WHERE NOT ((col3 >= 549))

statement ok
CREATE VIEW view_3_tab4_278 AS SELECT pk FROM view_1_tab4_278

query II rowsort label-4800-1
SELECT pk, col0 FROM tab4 WHERE (col3 >= 549)
----
86 values hashing to 9170235e9679d29bd1e4c5f9aaeb540f

query II rowsort label-4800-2
SELECT pk, col0 FROM tab4 WHERE NOT ((col3 >= 549))
----
114 values hashing to 5e36c4133451112c3609108c5893b637

query II rowsort label-4800-1
SELECT pk, col0 FROM view_1_tab4_278
----
86 values hashing to 9170235e9679d29bd1e4c5f9aaeb540f

query II rowsort label-4800-2
SELECT pk, col0 FROM view_2_tab4_278
----
114 values hashing to 5e36c4133451112c3609108c5893b637

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 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_278 UNION ALL SELECT pk, col0 FROM view_2_tab4_278
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

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 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_278 UNION SELECT pk, col0 FROM view_2_tab4_278
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-4800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE (col3 >= 549) ) AS tab4_278
----
43 values hashing to 1239463f5e7ad0b7eec0ceedbce195cd

query I rowsort label-4800-3
SELECT * FROM view_3_tab4_278
----
43 values hashing to 1239463f5e7ad0b7eec0ceedbce195cd

query I rowsort label-4800-3
SELECT pk FROM tab4 WHERE (col3 >= 549)
----
43 values hashing to 1239463f5e7ad0b7eec0ceedbce195cd

statement ok
DROP VIEW view_1_tab4_278

statement ok
DROP VIEW view_2_tab4_278

statement ok
DROP VIEW view_3_tab4_278

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_279') DROP VIEW view_1_tab0_279

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_279

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_279') DROP VIEW view_2_tab0_279

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_279

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_279') DROP VIEW view_3_tab0_279

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_279

statement ok
CREATE VIEW view_1_tab0_279 AS SELECT pk, col0 FROM tab0 WHERE (col4 > 48.26 AND col1 > 575.40)

statement ok
CREATE VIEW view_2_tab0_279 AS SELECT pk, col0 FROM tab0 WHERE NOT ((col4 > 48.26 AND col1 > 575.40))

statement ok
CREATE VIEW view_3_tab0_279 AS SELECT pk FROM view_1_tab0_279

query II rowsort label-4900-1
SELECT pk, col0 FROM tab0 WHERE (col4 > 48.26 AND col1 > 575.40)
----
88 values hashing to 20f26d1a3a7f2c30e9353cf550979916

query II rowsort label-4900-2
SELECT pk, col0 FROM tab0 WHERE NOT ((col4 > 48.26 AND col1 > 575.40))
----
112 values hashing to e0dd32b98954b57cc25f5886353c2994

query II rowsort label-4900-1
SELECT pk, col0 FROM view_1_tab0_279
----
88 values hashing to 20f26d1a3a7f2c30e9353cf550979916

query II rowsort label-4900-2
SELECT pk, col0 FROM view_2_tab0_279
----
112 values hashing to e0dd32b98954b57cc25f5886353c2994

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col4 > 48.26 AND col1 > 575.40) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT ((col4 > 48.26 AND col1 > 575.40))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_279 UNION ALL SELECT pk, col0 FROM view_2_tab0_279
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col4 > 48.26 AND col1 > 575.40) UNION SELECT pk, col0 FROM tab0 WHERE NOT ((col4 > 48.26 AND col1 > 575.40))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_279 UNION SELECT pk, col0 FROM view_2_tab0_279
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-4900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE (col4 > 48.26 AND col1 > 575.40) ) AS tab0_279
----
44 values hashing to 9aec7282e06ecfc4a058238d6290079b

query I rowsort label-4900-3
SELECT * FROM view_3_tab0_279
----
44 values hashing to 9aec7282e06ecfc4a058238d6290079b

query I rowsort label-4900-3
SELECT pk FROM tab0 WHERE (col4 > 48.26 AND col1 > 575.40)
----
44 values hashing to 9aec7282e06ecfc4a058238d6290079b

statement ok
DROP VIEW view_1_tab0_279

statement ok
DROP VIEW view_2_tab0_279

statement ok
DROP VIEW view_3_tab0_279

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_279') DROP VIEW view_1_tab1_279

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_279

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_279') DROP VIEW view_2_tab1_279

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_279

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_279') DROP VIEW view_3_tab1_279

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_279

statement ok
CREATE VIEW view_1_tab1_279 AS SELECT pk, col0 FROM tab1 WHERE (col4 > 48.26 AND col1 > 575.40)

statement ok
CREATE VIEW view_2_tab1_279 AS SELECT pk, col0 FROM tab1 WHERE NOT ((col4 > 48.26 AND col1 > 575.40))

statement ok
CREATE VIEW view_3_tab1_279 AS SELECT pk FROM view_1_tab1_279

query II rowsort label-4900-1
SELECT pk, col0 FROM tab1 WHERE (col4 > 48.26 AND col1 > 575.40)
----
88 values hashing to 20f26d1a3a7f2c30e9353cf550979916

query II rowsort label-4900-2
SELECT pk, col0 FROM tab1 WHERE NOT ((col4 > 48.26 AND col1 > 575.40))
----
112 values hashing to e0dd32b98954b57cc25f5886353c2994

query II rowsort label-4900-1
SELECT pk, col0 FROM view_1_tab1_279
----
88 values hashing to 20f26d1a3a7f2c30e9353cf550979916

query II rowsort label-4900-2
SELECT pk, col0 FROM view_2_tab1_279
----
112 values hashing to e0dd32b98954b57cc25f5886353c2994

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col4 > 48.26 AND col1 > 575.40) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT ((col4 > 48.26 AND col1 > 575.40))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_279 UNION ALL SELECT pk, col0 FROM view_2_tab1_279
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col4 > 48.26 AND col1 > 575.40) UNION SELECT pk, col0 FROM tab1 WHERE NOT ((col4 > 48.26 AND col1 > 575.40))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_279 UNION SELECT pk, col0 FROM view_2_tab1_279
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-4900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE (col4 > 48.26 AND col1 > 575.40) ) AS tab1_279
----
44 values hashing to 9aec7282e06ecfc4a058238d6290079b

query I rowsort label-4900-3
SELECT * FROM view_3_tab1_279
----
44 values hashing to 9aec7282e06ecfc4a058238d6290079b

query I rowsort label-4900-3
SELECT pk FROM tab1 WHERE (col4 > 48.26 AND col1 > 575.40)
----
44 values hashing to 9aec7282e06ecfc4a058238d6290079b

statement ok
DROP VIEW view_1_tab1_279

statement ok
DROP VIEW view_2_tab1_279

statement ok
DROP VIEW view_3_tab1_279

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_279') DROP VIEW view_1_tab2_279

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_279

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_279') DROP VIEW view_2_tab2_279

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_279

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_279') DROP VIEW view_3_tab2_279

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_279

statement ok
CREATE VIEW view_1_tab2_279 AS SELECT pk, col0 FROM tab2 WHERE (col4 > 48.26 AND col1 > 575.40)

statement ok
CREATE VIEW view_2_tab2_279 AS SELECT pk, col0 FROM tab2 WHERE NOT ((col4 > 48.26 AND col1 > 575.40))

statement ok
CREATE VIEW view_3_tab2_279 AS SELECT pk FROM view_1_tab2_279

query II rowsort label-4900-1
SELECT pk, col0 FROM tab2 WHERE (col4 > 48.26 AND col1 > 575.40)
----
88 values hashing to 20f26d1a3a7f2c30e9353cf550979916

query II rowsort label-4900-2
SELECT pk, col0 FROM tab2 WHERE NOT ((col4 > 48.26 AND col1 > 575.40))
----
112 values hashing to e0dd32b98954b57cc25f5886353c2994

query II rowsort label-4900-1
SELECT pk, col0 FROM view_1_tab2_279
----
88 values hashing to 20f26d1a3a7f2c30e9353cf550979916

query II rowsort label-4900-2
SELECT pk, col0 FROM view_2_tab2_279
----
112 values hashing to e0dd32b98954b57cc25f5886353c2994

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col4 > 48.26 AND col1 > 575.40) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT ((col4 > 48.26 AND col1 > 575.40))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_279 UNION ALL SELECT pk, col0 FROM view_2_tab2_279
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col4 > 48.26 AND col1 > 575.40) UNION SELECT pk, col0 FROM tab2 WHERE NOT ((col4 > 48.26 AND col1 > 575.40))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_279 UNION SELECT pk, col0 FROM view_2_tab2_279
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-4900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE (col4 > 48.26 AND col1 > 575.40) ) AS tab2_279
----
44 values hashing to 9aec7282e06ecfc4a058238d6290079b

query I rowsort label-4900-3
SELECT * FROM view_3_tab2_279
----
44 values hashing to 9aec7282e06ecfc4a058238d6290079b

query I rowsort label-4900-3
SELECT pk FROM tab2 WHERE (col4 > 48.26 AND col1 > 575.40)
----
44 values hashing to 9aec7282e06ecfc4a058238d6290079b

statement ok
DROP VIEW view_1_tab2_279

statement ok
DROP VIEW view_2_tab2_279

statement ok
DROP VIEW view_3_tab2_279

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_279') DROP VIEW view_1_tab3_279

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_279

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_279') DROP VIEW view_2_tab3_279

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_279

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_279') DROP VIEW view_3_tab3_279

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_279

statement ok
CREATE VIEW view_1_tab3_279 AS SELECT pk, col0 FROM tab3 WHERE (col4 > 48.26 AND col1 > 575.40)

statement ok
CREATE VIEW view_2_tab3_279 AS SELECT pk, col0 FROM tab3 WHERE NOT ((col4 > 48.26 AND col1 > 575.40))

statement ok
CREATE VIEW view_3_tab3_279 AS SELECT pk FROM view_1_tab3_279

query II rowsort label-4900-1
SELECT pk, col0 FROM tab3 WHERE (col4 > 48.26 AND col1 > 575.40)
----
88 values hashing to 20f26d1a3a7f2c30e9353cf550979916

query II rowsort label-4900-2
SELECT pk, col0 FROM tab3 WHERE NOT ((col4 > 48.26 AND col1 > 575.40))
----
112 values hashing to e0dd32b98954b57cc25f5886353c2994

query II rowsort label-4900-1
SELECT pk, col0 FROM view_1_tab3_279
----
88 values hashing to 20f26d1a3a7f2c30e9353cf550979916

query II rowsort label-4900-2
SELECT pk, col0 FROM view_2_tab3_279
----
112 values hashing to e0dd32b98954b57cc25f5886353c2994

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col4 > 48.26 AND col1 > 575.40) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT ((col4 > 48.26 AND col1 > 575.40))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_279 UNION ALL SELECT pk, col0 FROM view_2_tab3_279
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col4 > 48.26 AND col1 > 575.40) UNION SELECT pk, col0 FROM tab3 WHERE NOT ((col4 > 48.26 AND col1 > 575.40))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_279 UNION SELECT pk, col0 FROM view_2_tab3_279
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-4900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE (col4 > 48.26 AND col1 > 575.40) ) AS tab3_279
----
44 values hashing to 9aec7282e06ecfc4a058238d6290079b

query I rowsort label-4900-3
SELECT * FROM view_3_tab3_279
----
44 values hashing to 9aec7282e06ecfc4a058238d6290079b

query I rowsort label-4900-3
SELECT pk FROM tab3 WHERE (col4 > 48.26 AND col1 > 575.40)
----
44 values hashing to 9aec7282e06ecfc4a058238d6290079b

statement ok
DROP VIEW view_1_tab3_279

statement ok
DROP VIEW view_2_tab3_279

statement ok
DROP VIEW view_3_tab3_279

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_279') DROP VIEW view_1_tab4_279

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_279

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_279') DROP VIEW view_2_tab4_279

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_279

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_279') DROP VIEW view_3_tab4_279

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_279

statement ok
CREATE VIEW view_1_tab4_279 AS SELECT pk, col0 FROM tab4 WHERE (col4 > 48.26 AND col1 > 575.40)

statement ok
CREATE VIEW view_2_tab4_279 AS SELECT pk, col0 FROM tab4 WHERE NOT ((col4 > 48.26 AND col1 > 575.40))

statement ok
CREATE VIEW view_3_tab4_279 AS SELECT pk FROM view_1_tab4_279

query II rowsort label-4900-1
SELECT pk, col0 FROM tab4 WHERE (col4 > 48.26 AND col1 > 575.40)
----
88 values hashing to 20f26d1a3a7f2c30e9353cf550979916

query II rowsort label-4900-2
SELECT pk, col0 FROM tab4 WHERE NOT ((col4 > 48.26 AND col1 > 575.40))
----
112 values hashing to e0dd32b98954b57cc25f5886353c2994

query II rowsort label-4900-1
SELECT pk, col0 FROM view_1_tab4_279
----
88 values hashing to 20f26d1a3a7f2c30e9353cf550979916

query II rowsort label-4900-2
SELECT pk, col0 FROM view_2_tab4_279
----
112 values hashing to e0dd32b98954b57cc25f5886353c2994

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col4 > 48.26 AND col1 > 575.40) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT ((col4 > 48.26 AND col1 > 575.40))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_279 UNION ALL SELECT pk, col0 FROM view_2_tab4_279
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col4 > 48.26 AND col1 > 575.40) UNION SELECT pk, col0 FROM tab4 WHERE NOT ((col4 > 48.26 AND col1 > 575.40))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_279 UNION SELECT pk, col0 FROM view_2_tab4_279
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-4900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE (col4 > 48.26 AND col1 > 575.40) ) AS tab4_279
----
44 values hashing to 9aec7282e06ecfc4a058238d6290079b

query I rowsort label-4900-3
SELECT * FROM view_3_tab4_279
----
44 values hashing to 9aec7282e06ecfc4a058238d6290079b

query I rowsort label-4900-3
SELECT pk FROM tab4 WHERE (col4 > 48.26 AND col1 > 575.40)
----
44 values hashing to 9aec7282e06ecfc4a058238d6290079b

statement ok
DROP VIEW view_1_tab4_279

statement ok
DROP VIEW view_2_tab4_279

statement ok
DROP VIEW view_3_tab4_279

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_280') DROP VIEW view_1_tab0_280

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_280

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_280') DROP VIEW view_2_tab0_280

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_280

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_280') DROP VIEW view_3_tab0_280

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_280

statement ok
CREATE VIEW view_1_tab0_280 AS SELECT pk, col0 FROM tab0 WHERE (col1 < 966.10)

statement ok
CREATE VIEW view_2_tab0_280 AS SELECT pk, col0 FROM tab0 WHERE NOT ((col1 < 966.10))

statement ok
CREATE VIEW view_3_tab0_280 AS SELECT pk FROM view_1_tab0_280

query II rowsort label-5000-1
SELECT pk, col0 FROM tab0 WHERE (col1 < 966.10)
----
186 values hashing to f28fb5538713b67c1145d72c497b7896

query II rowsort label-5000-2
SELECT pk, col0 FROM tab0 WHERE NOT ((col1 < 966.10))
----
14 values hashing to 7424b8b69741674e49051f3701009c23

query II rowsort label-5000-1
SELECT pk, col0 FROM view_1_tab0_280
----
186 values hashing to f28fb5538713b67c1145d72c497b7896

query II rowsort label-5000-2
SELECT pk, col0 FROM view_2_tab0_280
----
14 values hashing to 7424b8b69741674e49051f3701009c23

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col1 < 966.10) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT ((col1 < 966.10))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_280 UNION ALL SELECT pk, col0 FROM view_2_tab0_280
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col1 < 966.10) UNION SELECT pk, col0 FROM tab0 WHERE NOT ((col1 < 966.10))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_280 UNION SELECT pk, col0 FROM view_2_tab0_280
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-5000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE (col1 < 966.10) ) AS tab0_280
----
93 values hashing to 83618884a27f5c13e71c50d7b3329eb8

query I rowsort label-5000-3
SELECT * FROM view_3_tab0_280
----
93 values hashing to 83618884a27f5c13e71c50d7b3329eb8

query I rowsort label-5000-3
SELECT pk FROM tab0 WHERE (col1 < 966.10)
----
93 values hashing to 83618884a27f5c13e71c50d7b3329eb8

statement ok
DROP VIEW view_1_tab0_280

statement ok
DROP VIEW view_2_tab0_280

statement ok
DROP VIEW view_3_tab0_280

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_280') DROP VIEW view_1_tab1_280

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_280

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_280') DROP VIEW view_2_tab1_280

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_280

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_280') DROP VIEW view_3_tab1_280

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_280

statement ok
CREATE VIEW view_1_tab1_280 AS SELECT pk, col0 FROM tab1 WHERE (col1 < 966.10)

statement ok
CREATE VIEW view_2_tab1_280 AS SELECT pk, col0 FROM tab1 WHERE NOT ((col1 < 966.10))

statement ok
CREATE VIEW view_3_tab1_280 AS SELECT pk FROM view_1_tab1_280

query II rowsort label-5000-1
SELECT pk, col0 FROM tab1 WHERE (col1 < 966.10)
----
186 values hashing to f28fb5538713b67c1145d72c497b7896

query II rowsort label-5000-2
SELECT pk, col0 FROM tab1 WHERE NOT ((col1 < 966.10))
----
14 values hashing to 7424b8b69741674e49051f3701009c23

query II rowsort label-5000-1
SELECT pk, col0 FROM view_1_tab1_280
----
186 values hashing to f28fb5538713b67c1145d72c497b7896

query II rowsort label-5000-2
SELECT pk, col0 FROM view_2_tab1_280
----
14 values hashing to 7424b8b69741674e49051f3701009c23

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col1 < 966.10) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT ((col1 < 966.10))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_280 UNION ALL SELECT pk, col0 FROM view_2_tab1_280
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col1 < 966.10) UNION SELECT pk, col0 FROM tab1 WHERE NOT ((col1 < 966.10))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_280 UNION SELECT pk, col0 FROM view_2_tab1_280
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-5000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE (col1 < 966.10) ) AS tab1_280
----
93 values hashing to 83618884a27f5c13e71c50d7b3329eb8

query I rowsort label-5000-3
SELECT * FROM view_3_tab1_280
----
93 values hashing to 83618884a27f5c13e71c50d7b3329eb8

query I rowsort label-5000-3
SELECT pk FROM tab1 WHERE (col1 < 966.10)
----
93 values hashing to 83618884a27f5c13e71c50d7b3329eb8

statement ok
DROP VIEW view_1_tab1_280

statement ok
DROP VIEW view_2_tab1_280

statement ok
DROP VIEW view_3_tab1_280

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_280') DROP VIEW view_1_tab2_280

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_280

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_280') DROP VIEW view_2_tab2_280

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_280

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_280') DROP VIEW view_3_tab2_280

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_280

statement ok
CREATE VIEW view_1_tab2_280 AS SELECT pk, col0 FROM tab2 WHERE (col1 < 966.10)

statement ok
CREATE VIEW view_2_tab2_280 AS SELECT pk, col0 FROM tab2 WHERE NOT ((col1 < 966.10))

statement ok
CREATE VIEW view_3_tab2_280 AS SELECT pk FROM view_1_tab2_280

query II rowsort label-5000-1
SELECT pk, col0 FROM tab2 WHERE (col1 < 966.10)
----
186 values hashing to f28fb5538713b67c1145d72c497b7896

query II rowsort label-5000-2
SELECT pk, col0 FROM tab2 WHERE NOT ((col1 < 966.10))
----
14 values hashing to 7424b8b69741674e49051f3701009c23

query II rowsort label-5000-1
SELECT pk, col0 FROM view_1_tab2_280
----
186 values hashing to f28fb5538713b67c1145d72c497b7896

query II rowsort label-5000-2
SELECT pk, col0 FROM view_2_tab2_280
----
14 values hashing to 7424b8b69741674e49051f3701009c23

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col1 < 966.10) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT ((col1 < 966.10))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_280 UNION ALL SELECT pk, col0 FROM view_2_tab2_280
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col1 < 966.10) UNION SELECT pk, col0 FROM tab2 WHERE NOT ((col1 < 966.10))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_280 UNION SELECT pk, col0 FROM view_2_tab2_280
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-5000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE (col1 < 966.10) ) AS tab2_280
----
93 values hashing to 83618884a27f5c13e71c50d7b3329eb8

query I rowsort label-5000-3
SELECT * FROM view_3_tab2_280
----
93 values hashing to 83618884a27f5c13e71c50d7b3329eb8

query I rowsort label-5000-3
SELECT pk FROM tab2 WHERE (col1 < 966.10)
----
93 values hashing to 83618884a27f5c13e71c50d7b3329eb8

statement ok
DROP VIEW view_1_tab2_280

statement ok
DROP VIEW view_2_tab2_280

statement ok
DROP VIEW view_3_tab2_280

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_280') DROP VIEW view_1_tab3_280

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_280

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_280') DROP VIEW view_2_tab3_280

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_280

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_280') DROP VIEW view_3_tab3_280

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_280

statement ok
CREATE VIEW view_1_tab3_280 AS SELECT pk, col0 FROM tab3 WHERE (col1 < 966.10)

statement ok
CREATE VIEW view_2_tab3_280 AS SELECT pk, col0 FROM tab3 WHERE NOT ((col1 < 966.10))

statement ok
CREATE VIEW view_3_tab3_280 AS SELECT pk FROM view_1_tab3_280

query II rowsort label-5000-1
SELECT pk, col0 FROM tab3 WHERE (col1 < 966.10)
----
186 values hashing to f28fb5538713b67c1145d72c497b7896

query II rowsort label-5000-2
SELECT pk, col0 FROM tab3 WHERE NOT ((col1 < 966.10))
----
14 values hashing to 7424b8b69741674e49051f3701009c23

query II rowsort label-5000-1
SELECT pk, col0 FROM view_1_tab3_280
----
186 values hashing to f28fb5538713b67c1145d72c497b7896

query II rowsort label-5000-2
SELECT pk, col0 FROM view_2_tab3_280
----
14 values hashing to 7424b8b69741674e49051f3701009c23

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col1 < 966.10) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT ((col1 < 966.10))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_280 UNION ALL SELECT pk, col0 FROM view_2_tab3_280
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col1 < 966.10) UNION SELECT pk, col0 FROM tab3 WHERE NOT ((col1 < 966.10))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_280 UNION SELECT pk, col0 FROM view_2_tab3_280
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-5000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE (col1 < 966.10) ) AS tab3_280
----
93 values hashing to 83618884a27f5c13e71c50d7b3329eb8

query I rowsort label-5000-3
SELECT * FROM view_3_tab3_280
----
93 values hashing to 83618884a27f5c13e71c50d7b3329eb8

query I rowsort label-5000-3
SELECT pk FROM tab3 WHERE (col1 < 966.10)
----
93 values hashing to 83618884a27f5c13e71c50d7b3329eb8

statement ok
DROP VIEW view_1_tab3_280

statement ok
DROP VIEW view_2_tab3_280

statement ok
DROP VIEW view_3_tab3_280

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_280') DROP VIEW view_1_tab4_280

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_280

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_280') DROP VIEW view_2_tab4_280

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_280

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_280') DROP VIEW view_3_tab4_280

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_280

statement ok
CREATE VIEW view_1_tab4_280 AS SELECT pk, col0 FROM tab4 WHERE (col1 < 966.10)

statement ok
CREATE VIEW view_2_tab4_280 AS SELECT pk, col0 FROM tab4 WHERE NOT ((col1 < 966.10))

statement ok
CREATE VIEW view_3_tab4_280 AS SELECT pk FROM view_1_tab4_280

query II rowsort label-5000-1
SELECT pk, col0 FROM tab4 WHERE (col1 < 966.10)
----
186 values hashing to f28fb5538713b67c1145d72c497b7896

query II rowsort label-5000-2
SELECT pk, col0 FROM tab4 WHERE NOT ((col1 < 966.10))
----
14 values hashing to 7424b8b69741674e49051f3701009c23

query II rowsort label-5000-1
SELECT pk, col0 FROM view_1_tab4_280
----
186 values hashing to f28fb5538713b67c1145d72c497b7896

query II rowsort label-5000-2
SELECT pk, col0 FROM view_2_tab4_280
----
14 values hashing to 7424b8b69741674e49051f3701009c23

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col1 < 966.10) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT ((col1 < 966.10))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_280 UNION ALL SELECT pk, col0 FROM view_2_tab4_280
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col1 < 966.10) UNION SELECT pk, col0 FROM tab4 WHERE NOT ((col1 < 966.10))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_280 UNION SELECT pk, col0 FROM view_2_tab4_280
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-5000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE (col1 < 966.10) ) AS tab4_280
----
93 values hashing to 83618884a27f5c13e71c50d7b3329eb8

query I rowsort label-5000-3
SELECT * FROM view_3_tab4_280
----
93 values hashing to 83618884a27f5c13e71c50d7b3329eb8

query I rowsort label-5000-3
SELECT pk FROM tab4 WHERE (col1 < 966.10)
----
93 values hashing to 83618884a27f5c13e71c50d7b3329eb8

statement ok
DROP VIEW view_1_tab4_280

statement ok
DROP VIEW view_2_tab4_280

statement ok
DROP VIEW view_3_tab4_280

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_282') DROP VIEW view_1_tab0_282

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_282

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_282') DROP VIEW view_2_tab0_282

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_282

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_282') DROP VIEW view_3_tab0_282

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_282

statement ok
CREATE VIEW view_1_tab0_282 AS SELECT pk, col0 FROM tab0 WHERE col3 < 679

statement ok
CREATE VIEW view_2_tab0_282 AS SELECT pk, col0 FROM tab0 WHERE NOT (col3 < 679)

statement ok
CREATE VIEW view_3_tab0_282 AS SELECT pk FROM view_1_tab0_282

query II rowsort label-5100-1
SELECT pk, col0 FROM tab0 WHERE col3 < 679
----
146 values hashing to c90b6360bc14d701189666552570a778

query II rowsort label-5100-2
SELECT pk, col0 FROM tab0 WHERE NOT (col3 < 679)
----
54 values hashing to a6d9ccaf383d4713fd77059709c18efc

query II rowsort label-5100-1
SELECT pk, col0 FROM view_1_tab0_282
----
146 values hashing to c90b6360bc14d701189666552570a778

query II rowsort label-5100-2
SELECT pk, col0 FROM view_2_tab0_282
----
54 values hashing to a6d9ccaf383d4713fd77059709c18efc

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 < 679 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col3 < 679)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_282 UNION ALL SELECT pk, col0 FROM view_2_tab0_282
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 < 679 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col3 < 679)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_282 UNION SELECT pk, col0 FROM view_2_tab0_282
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-5100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col3 < 679 ) AS tab0_282
----
73 values hashing to 302aa1540155a6f7993e9241e0116771

query I rowsort label-5100-3
SELECT * FROM view_3_tab0_282
----
73 values hashing to 302aa1540155a6f7993e9241e0116771

query I rowsort label-5100-3
SELECT pk FROM tab0 WHERE col3 < 679
----
73 values hashing to 302aa1540155a6f7993e9241e0116771

statement ok
DROP VIEW view_1_tab0_282

statement ok
DROP VIEW view_2_tab0_282

statement ok
DROP VIEW view_3_tab0_282

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_282') DROP VIEW view_1_tab1_282

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_282

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_282') DROP VIEW view_2_tab1_282

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_282

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_282') DROP VIEW view_3_tab1_282

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_282

statement ok
CREATE VIEW view_1_tab1_282 AS SELECT pk, col0 FROM tab1 WHERE col3 < 679

statement ok
CREATE VIEW view_2_tab1_282 AS SELECT pk, col0 FROM tab1 WHERE NOT (col3 < 679)

statement ok
CREATE VIEW view_3_tab1_282 AS SELECT pk FROM view_1_tab1_282

query II rowsort label-5100-1
SELECT pk, col0 FROM tab1 WHERE col3 < 679
----
146 values hashing to c90b6360bc14d701189666552570a778

query II rowsort label-5100-2
SELECT pk, col0 FROM tab1 WHERE NOT (col3 < 679)
----
54 values hashing to a6d9ccaf383d4713fd77059709c18efc

query II rowsort label-5100-1
SELECT pk, col0 FROM view_1_tab1_282
----
146 values hashing to c90b6360bc14d701189666552570a778

query II rowsort label-5100-2
SELECT pk, col0 FROM view_2_tab1_282
----
54 values hashing to a6d9ccaf383d4713fd77059709c18efc

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 < 679 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col3 < 679)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_282 UNION ALL SELECT pk, col0 FROM view_2_tab1_282
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 < 679 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col3 < 679)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_282 UNION SELECT pk, col0 FROM view_2_tab1_282
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-5100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col3 < 679 ) AS tab1_282
----
73 values hashing to 302aa1540155a6f7993e9241e0116771

query I rowsort label-5100-3
SELECT * FROM view_3_tab1_282
----
73 values hashing to 302aa1540155a6f7993e9241e0116771

query I rowsort label-5100-3
SELECT pk FROM tab1 WHERE col3 < 679
----
73 values hashing to 302aa1540155a6f7993e9241e0116771

statement ok
DROP VIEW view_1_tab1_282

statement ok
DROP VIEW view_2_tab1_282

statement ok
DROP VIEW view_3_tab1_282

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_282') DROP VIEW view_1_tab2_282

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_282

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_282') DROP VIEW view_2_tab2_282

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_282

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_282') DROP VIEW view_3_tab2_282

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_282

statement ok
CREATE VIEW view_1_tab2_282 AS SELECT pk, col0 FROM tab2 WHERE col3 < 679

statement ok
CREATE VIEW view_2_tab2_282 AS SELECT pk, col0 FROM tab2 WHERE NOT (col3 < 679)

statement ok
CREATE VIEW view_3_tab2_282 AS SELECT pk FROM view_1_tab2_282

query II rowsort label-5100-1
SELECT pk, col0 FROM tab2 WHERE col3 < 679
----
146 values hashing to c90b6360bc14d701189666552570a778

query II rowsort label-5100-2
SELECT pk, col0 FROM tab2 WHERE NOT (col3 < 679)
----
54 values hashing to a6d9ccaf383d4713fd77059709c18efc

query II rowsort label-5100-1
SELECT pk, col0 FROM view_1_tab2_282
----
146 values hashing to c90b6360bc14d701189666552570a778

query II rowsort label-5100-2
SELECT pk, col0 FROM view_2_tab2_282
----
54 values hashing to a6d9ccaf383d4713fd77059709c18efc

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 < 679 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col3 < 679)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_282 UNION ALL SELECT pk, col0 FROM view_2_tab2_282
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 < 679 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col3 < 679)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_282 UNION SELECT pk, col0 FROM view_2_tab2_282
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-5100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col3 < 679 ) AS tab2_282
----
73 values hashing to 302aa1540155a6f7993e9241e0116771

query I rowsort label-5100-3
SELECT * FROM view_3_tab2_282
----
73 values hashing to 302aa1540155a6f7993e9241e0116771

query I rowsort label-5100-3
SELECT pk FROM tab2 WHERE col3 < 679
----
73 values hashing to 302aa1540155a6f7993e9241e0116771

statement ok
DROP VIEW view_1_tab2_282

statement ok
DROP VIEW view_2_tab2_282

statement ok
DROP VIEW view_3_tab2_282

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_282') DROP VIEW view_1_tab3_282

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_282

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_282') DROP VIEW view_2_tab3_282

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_282

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_282') DROP VIEW view_3_tab3_282

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_282

statement ok
CREATE VIEW view_1_tab3_282 AS SELECT pk, col0 FROM tab3 WHERE col3 < 679

statement ok
CREATE VIEW view_2_tab3_282 AS SELECT pk, col0 FROM tab3 WHERE NOT (col3 < 679)

statement ok
CREATE VIEW view_3_tab3_282 AS SELECT pk FROM view_1_tab3_282

query II rowsort label-5100-1
SELECT pk, col0 FROM tab3 WHERE col3 < 679
----
146 values hashing to c90b6360bc14d701189666552570a778

query II rowsort label-5100-2
SELECT pk, col0 FROM tab3 WHERE NOT (col3 < 679)
----
54 values hashing to a6d9ccaf383d4713fd77059709c18efc

query II rowsort label-5100-1
SELECT pk, col0 FROM view_1_tab3_282
----
146 values hashing to c90b6360bc14d701189666552570a778

query II rowsort label-5100-2
SELECT pk, col0 FROM view_2_tab3_282
----
54 values hashing to a6d9ccaf383d4713fd77059709c18efc

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 < 679 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col3 < 679)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_282 UNION ALL SELECT pk, col0 FROM view_2_tab3_282
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 < 679 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col3 < 679)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_282 UNION SELECT pk, col0 FROM view_2_tab3_282
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-5100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col3 < 679 ) AS tab3_282
----
73 values hashing to 302aa1540155a6f7993e9241e0116771

query I rowsort label-5100-3
SELECT * FROM view_3_tab3_282
----
73 values hashing to 302aa1540155a6f7993e9241e0116771

query I rowsort label-5100-3
SELECT pk FROM tab3 WHERE col3 < 679
----
73 values hashing to 302aa1540155a6f7993e9241e0116771

statement ok
DROP VIEW view_1_tab3_282

statement ok
DROP VIEW view_2_tab3_282

statement ok
DROP VIEW view_3_tab3_282

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_282') DROP VIEW view_1_tab4_282

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_282

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_282') DROP VIEW view_2_tab4_282

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_282

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_282') DROP VIEW view_3_tab4_282

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_282

statement ok
CREATE VIEW view_1_tab4_282 AS SELECT pk, col0 FROM tab4 WHERE col3 < 679

statement ok
CREATE VIEW view_2_tab4_282 AS SELECT pk, col0 FROM tab4 WHERE NOT (col3 < 679)

statement ok
CREATE VIEW view_3_tab4_282 AS SELECT pk FROM view_1_tab4_282

query II rowsort label-5100-1
SELECT pk, col0 FROM tab4 WHERE col3 < 679
----
146 values hashing to c90b6360bc14d701189666552570a778

query II rowsort label-5100-2
SELECT pk, col0 FROM tab4 WHERE NOT (col3 < 679)
----
54 values hashing to a6d9ccaf383d4713fd77059709c18efc

query II rowsort label-5100-1
SELECT pk, col0 FROM view_1_tab4_282
----
146 values hashing to c90b6360bc14d701189666552570a778

query II rowsort label-5100-2
SELECT pk, col0 FROM view_2_tab4_282
----
54 values hashing to a6d9ccaf383d4713fd77059709c18efc

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 < 679 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col3 < 679)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_282 UNION ALL SELECT pk, col0 FROM view_2_tab4_282
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 < 679 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col3 < 679)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_282 UNION SELECT pk, col0 FROM view_2_tab4_282
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-5100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col3 < 679 ) AS tab4_282
----
73 values hashing to 302aa1540155a6f7993e9241e0116771

query I rowsort label-5100-3
SELECT * FROM view_3_tab4_282
----
73 values hashing to 302aa1540155a6f7993e9241e0116771

query I rowsort label-5100-3
SELECT pk FROM tab4 WHERE col3 < 679
----
73 values hashing to 302aa1540155a6f7993e9241e0116771

statement ok
DROP VIEW view_1_tab4_282

statement ok
DROP VIEW view_2_tab4_282

statement ok
DROP VIEW view_3_tab4_282

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_283') DROP VIEW view_1_tab0_283

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_283

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_283') DROP VIEW view_2_tab0_283

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_283

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_283') DROP VIEW view_3_tab0_283

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_283

statement ok
CREATE VIEW view_1_tab0_283 AS SELECT pk, col0 FROM tab0 WHERE col3 = 999 AND col0 > 745 OR (((col3 = 824)))

statement ok
CREATE VIEW view_2_tab0_283 AS SELECT pk, col0 FROM tab0 WHERE NOT (col3 = 999 AND col0 > 745 OR (((col3 = 824))))

statement ok
CREATE VIEW view_3_tab0_283 AS SELECT pk FROM view_1_tab0_283

query II rowsort label-5200-1
SELECT pk, col0 FROM tab0 WHERE col3 = 999 AND col0 > 745 OR (((col3 = 824)))
----

query II rowsort label-5200-2
SELECT pk, col0 FROM tab0 WHERE NOT (col3 = 999 AND col0 > 745 OR (((col3 = 824))))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-5200-1
SELECT pk, col0 FROM view_1_tab0_283
----

query II rowsort label-5200-2
SELECT pk, col0 FROM view_2_tab0_283
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 = 999 AND col0 > 745 OR (((col3 = 824))) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col3 = 999 AND col0 > 745 OR (((col3 = 824))))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_283 UNION ALL SELECT pk, col0 FROM view_2_tab0_283
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 = 999 AND col0 > 745 OR (((col3 = 824))) UNION SELECT pk, col0 FROM tab0 WHERE NOT (col3 = 999 AND col0 > 745 OR (((col3 = 824))))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_283 UNION SELECT pk, col0 FROM view_2_tab0_283
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-5200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col3 = 999 AND col0 > 745 OR (((col3 = 824))) ) AS tab0_283
----

query I rowsort label-5200-3
SELECT * FROM view_3_tab0_283
----

query I rowsort label-5200-3
SELECT pk FROM tab0 WHERE col3 = 999 AND col0 > 745 OR (((col3 = 824)))
----

statement ok
DROP VIEW view_1_tab0_283

statement ok
DROP VIEW view_2_tab0_283

statement ok
DROP VIEW view_3_tab0_283

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_283') DROP VIEW view_1_tab1_283

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_283

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_283') DROP VIEW view_2_tab1_283

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_283

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_283') DROP VIEW view_3_tab1_283

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_283

statement ok
CREATE VIEW view_1_tab1_283 AS SELECT pk, col0 FROM tab1 WHERE col3 = 999 AND col0 > 745 OR (((col3 = 824)))

statement ok
CREATE VIEW view_2_tab1_283 AS SELECT pk, col0 FROM tab1 WHERE NOT (col3 = 999 AND col0 > 745 OR (((col3 = 824))))

statement ok
CREATE VIEW view_3_tab1_283 AS SELECT pk FROM view_1_tab1_283

query II rowsort label-5200-1
SELECT pk, col0 FROM tab1 WHERE col3 = 999 AND col0 > 745 OR (((col3 = 824)))
----

query II rowsort label-5200-2
SELECT pk, col0 FROM tab1 WHERE NOT (col3 = 999 AND col0 > 745 OR (((col3 = 824))))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-5200-1
SELECT pk, col0 FROM view_1_tab1_283
----

query II rowsort label-5200-2
SELECT pk, col0 FROM view_2_tab1_283
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 = 999 AND col0 > 745 OR (((col3 = 824))) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col3 = 999 AND col0 > 745 OR (((col3 = 824))))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_283 UNION ALL SELECT pk, col0 FROM view_2_tab1_283
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 = 999 AND col0 > 745 OR (((col3 = 824))) UNION SELECT pk, col0 FROM tab1 WHERE NOT (col3 = 999 AND col0 > 745 OR (((col3 = 824))))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_283 UNION SELECT pk, col0 FROM view_2_tab1_283
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-5200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col3 = 999 AND col0 > 745 OR (((col3 = 824))) ) AS tab1_283
----

query I rowsort label-5200-3
SELECT * FROM view_3_tab1_283
----

query I rowsort label-5200-3
SELECT pk FROM tab1 WHERE col3 = 999 AND col0 > 745 OR (((col3 = 824)))
----

statement ok
DROP VIEW view_1_tab1_283

statement ok
DROP VIEW view_2_tab1_283

statement ok
DROP VIEW view_3_tab1_283

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_283') DROP VIEW view_1_tab2_283

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_283

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_283') DROP VIEW view_2_tab2_283

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_283

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_283') DROP VIEW view_3_tab2_283

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_283

statement ok
CREATE VIEW view_1_tab2_283 AS SELECT pk, col0 FROM tab2 WHERE col3 = 999 AND col0 > 745 OR (((col3 = 824)))

statement ok
CREATE VIEW view_2_tab2_283 AS SELECT pk, col0 FROM tab2 WHERE NOT (col3 = 999 AND col0 > 745 OR (((col3 = 824))))

statement ok
CREATE VIEW view_3_tab2_283 AS SELECT pk FROM view_1_tab2_283

query II rowsort label-5200-1
SELECT pk, col0 FROM tab2 WHERE col3 = 999 AND col0 > 745 OR (((col3 = 824)))
----

query II rowsort label-5200-2
SELECT pk, col0 FROM tab2 WHERE NOT (col3 = 999 AND col0 > 745 OR (((col3 = 824))))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-5200-1
SELECT pk, col0 FROM view_1_tab2_283
----

query II rowsort label-5200-2
SELECT pk, col0 FROM view_2_tab2_283
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 = 999 AND col0 > 745 OR (((col3 = 824))) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col3 = 999 AND col0 > 745 OR (((col3 = 824))))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_283 UNION ALL SELECT pk, col0 FROM view_2_tab2_283
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 = 999 AND col0 > 745 OR (((col3 = 824))) UNION SELECT pk, col0 FROM tab2 WHERE NOT (col3 = 999 AND col0 > 745 OR (((col3 = 824))))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_283 UNION SELECT pk, col0 FROM view_2_tab2_283
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-5200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col3 = 999 AND col0 > 745 OR (((col3 = 824))) ) AS tab2_283
----

query I rowsort label-5200-3
SELECT * FROM view_3_tab2_283
----

query I rowsort label-5200-3
SELECT pk FROM tab2 WHERE col3 = 999 AND col0 > 745 OR (((col3 = 824)))
----

statement ok
DROP VIEW view_1_tab2_283

statement ok
DROP VIEW view_2_tab2_283

statement ok
DROP VIEW view_3_tab2_283

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_283') DROP VIEW view_1_tab3_283

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_283

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_283') DROP VIEW view_2_tab3_283

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_283

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_283') DROP VIEW view_3_tab3_283

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_283

statement ok
CREATE VIEW view_1_tab3_283 AS SELECT pk, col0 FROM tab3 WHERE col3 = 999 AND col0 > 745 OR (((col3 = 824)))

statement ok
CREATE VIEW view_2_tab3_283 AS SELECT pk, col0 FROM tab3 WHERE NOT (col3 = 999 AND col0 > 745 OR (((col3 = 824))))

statement ok
CREATE VIEW view_3_tab3_283 AS SELECT pk FROM view_1_tab3_283

query II rowsort label-5200-1
SELECT pk, col0 FROM tab3 WHERE col3 = 999 AND col0 > 745 OR (((col3 = 824)))
----

query II rowsort label-5200-2
SELECT pk, col0 FROM tab3 WHERE NOT (col3 = 999 AND col0 > 745 OR (((col3 = 824))))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-5200-1
SELECT pk, col0 FROM view_1_tab3_283
----

query II rowsort label-5200-2
SELECT pk, col0 FROM view_2_tab3_283
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 = 999 AND col0 > 745 OR (((col3 = 824))) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col3 = 999 AND col0 > 745 OR (((col3 = 824))))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_283 UNION ALL SELECT pk, col0 FROM view_2_tab3_283
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 = 999 AND col0 > 745 OR (((col3 = 824))) UNION SELECT pk, col0 FROM tab3 WHERE NOT (col3 = 999 AND col0 > 745 OR (((col3 = 824))))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_283 UNION SELECT pk, col0 FROM view_2_tab3_283
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-5200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col3 = 999 AND col0 > 745 OR (((col3 = 824))) ) AS tab3_283
----

query I rowsort label-5200-3
SELECT * FROM view_3_tab3_283
----

query I rowsort label-5200-3
SELECT pk FROM tab3 WHERE col3 = 999 AND col0 > 745 OR (((col3 = 824)))
----

statement ok
DROP VIEW view_1_tab3_283

statement ok
DROP VIEW view_2_tab3_283

statement ok
DROP VIEW view_3_tab3_283

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_283') DROP VIEW view_1_tab4_283

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_283

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_283') DROP VIEW view_2_tab4_283

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_283

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_283') DROP VIEW view_3_tab4_283

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_283

statement ok
CREATE VIEW view_1_tab4_283 AS SELECT pk, col0 FROM tab4 WHERE col3 = 999 AND col0 > 745 OR (((col3 = 824)))

statement ok
CREATE VIEW view_2_tab4_283 AS SELECT pk, col0 FROM tab4 WHERE NOT (col3 = 999 AND col0 > 745 OR (((col3 = 824))))

statement ok
CREATE VIEW view_3_tab4_283 AS SELECT pk FROM view_1_tab4_283

query II rowsort label-5200-1
SELECT pk, col0 FROM tab4 WHERE col3 = 999 AND col0 > 745 OR (((col3 = 824)))
----

query II rowsort label-5200-2
SELECT pk, col0 FROM tab4 WHERE NOT (col3 = 999 AND col0 > 745 OR (((col3 = 824))))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-5200-1
SELECT pk, col0 FROM view_1_tab4_283
----

query II rowsort label-5200-2
SELECT pk, col0 FROM view_2_tab4_283
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 = 999 AND col0 > 745 OR (((col3 = 824))) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col3 = 999 AND col0 > 745 OR (((col3 = 824))))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_283 UNION ALL SELECT pk, col0 FROM view_2_tab4_283
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 = 999 AND col0 > 745 OR (((col3 = 824))) UNION SELECT pk, col0 FROM tab4 WHERE NOT (col3 = 999 AND col0 > 745 OR (((col3 = 824))))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_283 UNION SELECT pk, col0 FROM view_2_tab4_283
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-5200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col3 = 999 AND col0 > 745 OR (((col3 = 824))) ) AS tab4_283
----

query I rowsort label-5200-3
SELECT * FROM view_3_tab4_283
----

query I rowsort label-5200-3
SELECT pk FROM tab4 WHERE col3 = 999 AND col0 > 745 OR (((col3 = 824)))
----

statement ok
DROP VIEW view_1_tab4_283

statement ok
DROP VIEW view_2_tab4_283

statement ok
DROP VIEW view_3_tab4_283

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_285') DROP VIEW view_1_tab0_285

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_285

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_285') DROP VIEW view_2_tab0_285

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_285

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_285') DROP VIEW view_3_tab0_285

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_285

statement ok
CREATE VIEW view_1_tab0_285 AS SELECT pk, col0 FROM tab0 WHERE ((col0 BETWEEN 534 AND 52)) AND (((col1 > 960.52)) AND col4 IN (459.81,145.1,900.89,638.40) AND col4 = 459.55 OR col4 <= 506.5 AND col3 > 731) AND col4 <= 872.74

statement ok
CREATE VIEW view_2_tab0_285 AS SELECT pk, col0 FROM tab0 WHERE NOT (((col0 BETWEEN 534 AND 52)) AND (((col1 > 960.52)) AND col4 IN (459.81,145.1,900.89,638.40) AND col4 = 459.55 OR col4 <= 506.5 AND col3 > 731) AND col4 <= 872.74)

statement ok
CREATE VIEW view_3_tab0_285 AS SELECT pk FROM view_1_tab0_285

query II rowsort label-5300-1
SELECT pk, col0 FROM tab0 WHERE ((col0 BETWEEN 534 AND 52)) AND (((col1 > 960.52)) AND col4 IN (459.81,145.1,900.89,638.40) AND col4 = 459.55 OR col4 <= 506.5 AND col3 > 731) AND col4 <= 872.74
----

query II rowsort label-5300-2
SELECT pk, col0 FROM tab0 WHERE NOT (((col0 BETWEEN 534 AND 52)) AND (((col1 > 960.52)) AND col4 IN (459.81,145.1,900.89,638.40) AND col4 = 459.55 OR col4 <= 506.5 AND col3 > 731) AND col4 <= 872.74)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-5300-1
SELECT pk, col0 FROM view_1_tab0_285
----

query II rowsort label-5300-2
SELECT pk, col0 FROM view_2_tab0_285
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE ((col0 BETWEEN 534 AND 52)) AND (((col1 > 960.52)) AND col4 IN (459.81,145.1,900.89,638.40) AND col4 = 459.55 OR col4 <= 506.5 AND col3 > 731) AND col4 <= 872.74 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (((col0 BETWEEN 534 AND 52)) AND (((col1 > 960.52)) AND col4 IN (459.81,145.1,900.89,638.40) AND col4 = 459.55 OR col4 <= 506.5 AND col3 > 731) AND col4 <= 872.74)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_285 UNION ALL SELECT pk, col0 FROM view_2_tab0_285
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE ((col0 BETWEEN 534 AND 52)) AND (((col1 > 960.52)) AND col4 IN (459.81,145.1,900.89,638.40) AND col4 = 459.55 OR col4 <= 506.5 AND col3 > 731) AND col4 <= 872.74 UNION SELECT pk, col0 FROM tab0 WHERE NOT (((col0 BETWEEN 534 AND 52)) AND (((col1 > 960.52)) AND col4 IN (459.81,145.1,900.89,638.40) AND col4 = 459.55 OR col4 <= 506.5 AND col3 > 731) AND col4 <= 872.74)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_285 UNION SELECT pk, col0 FROM view_2_tab0_285
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-5300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE ((col0 BETWEEN 534 AND 52)) AND (((col1 > 960.52)) AND col4 IN (459.81,145.1,900.89,638.40) AND col4 = 459.55 OR col4 <= 506.5 AND col3 > 731) AND col4 <= 872.74 ) AS tab0_285
----

query I rowsort label-5300-3
SELECT * FROM view_3_tab0_285
----

query I rowsort label-5300-3
SELECT pk FROM tab0 WHERE ((col0 BETWEEN 534 AND 52)) AND (((col1 > 960.52)) AND col4 IN (459.81,145.1,900.89,638.40) AND col4 = 459.55 OR col4 <= 506.5 AND col3 > 731) AND col4 <= 872.74
----

statement ok
DROP VIEW view_1_tab0_285

statement ok
DROP VIEW view_2_tab0_285

statement ok
DROP VIEW view_3_tab0_285

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_285') DROP VIEW view_1_tab1_285

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_285

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_285') DROP VIEW view_2_tab1_285

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_285

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_285') DROP VIEW view_3_tab1_285

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_285

statement ok
CREATE VIEW view_1_tab1_285 AS SELECT pk, col0 FROM tab1 WHERE ((col0 BETWEEN 534 AND 52)) AND (((col1 > 960.52)) AND col4 IN (459.81,145.1,900.89,638.40) AND col4 = 459.55 OR col4 <= 506.5 AND col3 > 731) AND col4 <= 872.74

statement ok
CREATE VIEW view_2_tab1_285 AS SELECT pk, col0 FROM tab1 WHERE NOT (((col0 BETWEEN 534 AND 52)) AND (((col1 > 960.52)) AND col4 IN (459.81,145.1,900.89,638.40) AND col4 = 459.55 OR col4 <= 506.5 AND col3 > 731) AND col4 <= 872.74)

statement ok
CREATE VIEW view_3_tab1_285 AS SELECT pk FROM view_1_tab1_285

query II rowsort label-5300-1
SELECT pk, col0 FROM tab1 WHERE ((col0 BETWEEN 534 AND 52)) AND (((col1 > 960.52)) AND col4 IN (459.81,145.1,900.89,638.40) AND col4 = 459.55 OR col4 <= 506.5 AND col3 > 731) AND col4 <= 872.74
----

query II rowsort label-5300-2
SELECT pk, col0 FROM tab1 WHERE NOT (((col0 BETWEEN 534 AND 52)) AND (((col1 > 960.52)) AND col4 IN (459.81,145.1,900.89,638.40) AND col4 = 459.55 OR col4 <= 506.5 AND col3 > 731) AND col4 <= 872.74)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-5300-1
SELECT pk, col0 FROM view_1_tab1_285
----

query II rowsort label-5300-2
SELECT pk, col0 FROM view_2_tab1_285
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE ((col0 BETWEEN 534 AND 52)) AND (((col1 > 960.52)) AND col4 IN (459.81,145.1,900.89,638.40) AND col4 = 459.55 OR col4 <= 506.5 AND col3 > 731) AND col4 <= 872.74 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (((col0 BETWEEN 534 AND 52)) AND (((col1 > 960.52)) AND col4 IN (459.81,145.1,900.89,638.40) AND col4 = 459.55 OR col4 <= 506.5 AND col3 > 731) AND col4 <= 872.74)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_285 UNION ALL SELECT pk, col0 FROM view_2_tab1_285
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE ((col0 BETWEEN 534 AND 52)) AND (((col1 > 960.52)) AND col4 IN (459.81,145.1,900.89,638.40) AND col4 = 459.55 OR col4 <= 506.5 AND col3 > 731) AND col4 <= 872.74 UNION SELECT pk, col0 FROM tab1 WHERE NOT (((col0 BETWEEN 534 AND 52)) AND (((col1 > 960.52)) AND col4 IN (459.81,145.1,900.89,638.40) AND col4 = 459.55 OR col4 <= 506.5 AND col3 > 731) AND col4 <= 872.74)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_285 UNION SELECT pk, col0 FROM view_2_tab1_285
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-5300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE ((col0 BETWEEN 534 AND 52)) AND (((col1 > 960.52)) AND col4 IN (459.81,145.1,900.89,638.40) AND col4 = 459.55 OR col4 <= 506.5 AND col3 > 731) AND col4 <= 872.74 ) AS tab1_285
----

query I rowsort label-5300-3
SELECT * FROM view_3_tab1_285
----

query I rowsort label-5300-3
SELECT pk FROM tab1 WHERE ((col0 BETWEEN 534 AND 52)) AND (((col1 > 960.52)) AND col4 IN (459.81,145.1,900.89,638.40) AND col4 = 459.55 OR col4 <= 506.5 AND col3 > 731) AND col4 <= 872.74
----

statement ok
DROP VIEW view_1_tab1_285

statement ok
DROP VIEW view_2_tab1_285

statement ok
DROP VIEW view_3_tab1_285

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_285') DROP VIEW view_1_tab2_285

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_285

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_285') DROP VIEW view_2_tab2_285

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_285

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_285') DROP VIEW view_3_tab2_285

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_285

statement ok
CREATE VIEW view_1_tab2_285 AS SELECT pk, col0 FROM tab2 WHERE ((col0 BETWEEN 534 AND 52)) AND (((col1 > 960.52)) AND col4 IN (459.81,145.1,900.89,638.40) AND col4 = 459.55 OR col4 <= 506.5 AND col3 > 731) AND col4 <= 872.74

statement ok
CREATE VIEW view_2_tab2_285 AS SELECT pk, col0 FROM tab2 WHERE NOT (((col0 BETWEEN 534 AND 52)) AND (((col1 > 960.52)) AND col4 IN (459.81,145.1,900.89,638.40) AND col4 = 459.55 OR col4 <= 506.5 AND col3 > 731) AND col4 <= 872.74)

statement ok
CREATE VIEW view_3_tab2_285 AS SELECT pk FROM view_1_tab2_285

query II rowsort label-5300-1
SELECT pk, col0 FROM tab2 WHERE ((col0 BETWEEN 534 AND 52)) AND (((col1 > 960.52)) AND col4 IN (459.81,145.1,900.89,638.40) AND col4 = 459.55 OR col4 <= 506.5 AND col3 > 731) AND col4 <= 872.74
----

query II rowsort label-5300-2
SELECT pk, col0 FROM tab2 WHERE NOT (((col0 BETWEEN 534 AND 52)) AND (((col1 > 960.52)) AND col4 IN (459.81,145.1,900.89,638.40) AND col4 = 459.55 OR col4 <= 506.5 AND col3 > 731) AND col4 <= 872.74)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-5300-1
SELECT pk, col0 FROM view_1_tab2_285
----

query II rowsort label-5300-2
SELECT pk, col0 FROM view_2_tab2_285
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE ((col0 BETWEEN 534 AND 52)) AND (((col1 > 960.52)) AND col4 IN (459.81,145.1,900.89,638.40) AND col4 = 459.55 OR col4 <= 506.5 AND col3 > 731) AND col4 <= 872.74 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (((col0 BETWEEN 534 AND 52)) AND (((col1 > 960.52)) AND col4 IN (459.81,145.1,900.89,638.40) AND col4 = 459.55 OR col4 <= 506.5 AND col3 > 731) AND col4 <= 872.74)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_285 UNION ALL SELECT pk, col0 FROM view_2_tab2_285
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE ((col0 BETWEEN 534 AND 52)) AND (((col1 > 960.52)) AND col4 IN (459.81,145.1,900.89,638.40) AND col4 = 459.55 OR col4 <= 506.5 AND col3 > 731) AND col4 <= 872.74 UNION SELECT pk, col0 FROM tab2 WHERE NOT (((col0 BETWEEN 534 AND 52)) AND (((col1 > 960.52)) AND col4 IN (459.81,145.1,900.89,638.40) AND col4 = 459.55 OR col4 <= 506.5 AND col3 > 731) AND col4 <= 872.74)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_285 UNION SELECT pk, col0 FROM view_2_tab2_285
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-5300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE ((col0 BETWEEN 534 AND 52)) AND (((col1 > 960.52)) AND col4 IN (459.81,145.1,900.89,638.40) AND col4 = 459.55 OR col4 <= 506.5 AND col3 > 731) AND col4 <= 872.74 ) AS tab2_285
----

query I rowsort label-5300-3
SELECT * FROM view_3_tab2_285
----

query I rowsort label-5300-3
SELECT pk FROM tab2 WHERE ((col0 BETWEEN 534 AND 52)) AND (((col1 > 960.52)) AND col4 IN (459.81,145.1,900.89,638.40) AND col4 = 459.55 OR col4 <= 506.5 AND col3 > 731) AND col4 <= 872.74
----

statement ok
DROP VIEW view_1_tab2_285

statement ok
DROP VIEW view_2_tab2_285

statement ok
DROP VIEW view_3_tab2_285

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_285') DROP VIEW view_1_tab3_285

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_285

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_285') DROP VIEW view_2_tab3_285

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_285

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_285') DROP VIEW view_3_tab3_285

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_285

statement ok
CREATE VIEW view_1_tab3_285 AS SELECT pk, col0 FROM tab3 WHERE ((col0 BETWEEN 534 AND 52)) AND (((col1 > 960.52)) AND col4 IN (459.81,145.1,900.89,638.40) AND col4 = 459.55 OR col4 <= 506.5 AND col3 > 731) AND col4 <= 872.74

statement ok
CREATE VIEW view_2_tab3_285 AS SELECT pk, col0 FROM tab3 WHERE NOT (((col0 BETWEEN 534 AND 52)) AND (((col1 > 960.52)) AND col4 IN (459.81,145.1,900.89,638.40) AND col4 = 459.55 OR col4 <= 506.5 AND col3 > 731) AND col4 <= 872.74)

statement ok
CREATE VIEW view_3_tab3_285 AS SELECT pk FROM view_1_tab3_285

query II rowsort label-5300-1
SELECT pk, col0 FROM tab3 WHERE ((col0 BETWEEN 534 AND 52)) AND (((col1 > 960.52)) AND col4 IN (459.81,145.1,900.89,638.40) AND col4 = 459.55 OR col4 <= 506.5 AND col3 > 731) AND col4 <= 872.74
----

query II rowsort label-5300-2
SELECT pk, col0 FROM tab3 WHERE NOT (((col0 BETWEEN 534 AND 52)) AND (((col1 > 960.52)) AND col4 IN (459.81,145.1,900.89,638.40) AND col4 = 459.55 OR col4 <= 506.5 AND col3 > 731) AND col4 <= 872.74)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-5300-1
SELECT pk, col0 FROM view_1_tab3_285
----

query II rowsort label-5300-2
SELECT pk, col0 FROM view_2_tab3_285
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE ((col0 BETWEEN 534 AND 52)) AND (((col1 > 960.52)) AND col4 IN (459.81,145.1,900.89,638.40) AND col4 = 459.55 OR col4 <= 506.5 AND col3 > 731) AND col4 <= 872.74 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (((col0 BETWEEN 534 AND 52)) AND (((col1 > 960.52)) AND col4 IN (459.81,145.1,900.89,638.40) AND col4 = 459.55 OR col4 <= 506.5 AND col3 > 731) AND col4 <= 872.74)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_285 UNION ALL SELECT pk, col0 FROM view_2_tab3_285
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE ((col0 BETWEEN 534 AND 52)) AND (((col1 > 960.52)) AND col4 IN (459.81,145.1,900.89,638.40) AND col4 = 459.55 OR col4 <= 506.5 AND col3 > 731) AND col4 <= 872.74 UNION SELECT pk, col0 FROM tab3 WHERE NOT (((col0 BETWEEN 534 AND 52)) AND (((col1 > 960.52)) AND col4 IN (459.81,145.1,900.89,638.40) AND col4 = 459.55 OR col4 <= 506.5 AND col3 > 731) AND col4 <= 872.74)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_285 UNION SELECT pk, col0 FROM view_2_tab3_285
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-5300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE ((col0 BETWEEN 534 AND 52)) AND (((col1 > 960.52)) AND col4 IN (459.81,145.1,900.89,638.40) AND col4 = 459.55 OR col4 <= 506.5 AND col3 > 731) AND col4 <= 872.74 ) AS tab3_285
----

query I rowsort label-5300-3
SELECT * FROM view_3_tab3_285
----

query I rowsort label-5300-3
SELECT pk FROM tab3 WHERE ((col0 BETWEEN 534 AND 52)) AND (((col1 > 960.52)) AND col4 IN (459.81,145.1,900.89,638.40) AND col4 = 459.55 OR col4 <= 506.5 AND col3 > 731) AND col4 <= 872.74
----

statement ok
DROP VIEW view_1_tab3_285

statement ok
DROP VIEW view_2_tab3_285

statement ok
DROP VIEW view_3_tab3_285

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_285') DROP VIEW view_1_tab4_285

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_285

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_285') DROP VIEW view_2_tab4_285

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_285

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_285') DROP VIEW view_3_tab4_285

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_285

statement ok
CREATE VIEW view_1_tab4_285 AS SELECT pk, col0 FROM tab4 WHERE ((col0 BETWEEN 534 AND 52)) AND (((col1 > 960.52)) AND col4 IN (459.81,145.1,900.89,638.40) AND col4 = 459.55 OR col4 <= 506.5 AND col3 > 731) AND col4 <= 872.74

statement ok
CREATE VIEW view_2_tab4_285 AS SELECT pk, col0 FROM tab4 WHERE NOT (((col0 BETWEEN 534 AND 52)) AND (((col1 > 960.52)) AND col4 IN (459.81,145.1,900.89,638.40) AND col4 = 459.55 OR col4 <= 506.5 AND col3 > 731) AND col4 <= 872.74)

statement ok
CREATE VIEW view_3_tab4_285 AS SELECT pk FROM view_1_tab4_285

query II rowsort label-5300-1
SELECT pk, col0 FROM tab4 WHERE ((col0 BETWEEN 534 AND 52)) AND (((col1 > 960.52)) AND col4 IN (459.81,145.1,900.89,638.40) AND col4 = 459.55 OR col4 <= 506.5 AND col3 > 731) AND col4 <= 872.74
----

query II rowsort label-5300-2
SELECT pk, col0 FROM tab4 WHERE NOT (((col0 BETWEEN 534 AND 52)) AND (((col1 > 960.52)) AND col4 IN (459.81,145.1,900.89,638.40) AND col4 = 459.55 OR col4 <= 506.5 AND col3 > 731) AND col4 <= 872.74)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-5300-1
SELECT pk, col0 FROM view_1_tab4_285
----

query II rowsort label-5300-2
SELECT pk, col0 FROM view_2_tab4_285
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE ((col0 BETWEEN 534 AND 52)) AND (((col1 > 960.52)) AND col4 IN (459.81,145.1,900.89,638.40) AND col4 = 459.55 OR col4 <= 506.5 AND col3 > 731) AND col4 <= 872.74 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (((col0 BETWEEN 534 AND 52)) AND (((col1 > 960.52)) AND col4 IN (459.81,145.1,900.89,638.40) AND col4 = 459.55 OR col4 <= 506.5 AND col3 > 731) AND col4 <= 872.74)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_285 UNION ALL SELECT pk, col0 FROM view_2_tab4_285
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE ((col0 BETWEEN 534 AND 52)) AND (((col1 > 960.52)) AND col4 IN (459.81,145.1,900.89,638.40) AND col4 = 459.55 OR col4 <= 506.5 AND col3 > 731) AND col4 <= 872.74 UNION SELECT pk, col0 FROM tab4 WHERE NOT (((col0 BETWEEN 534 AND 52)) AND (((col1 > 960.52)) AND col4 IN (459.81,145.1,900.89,638.40) AND col4 = 459.55 OR col4 <= 506.5 AND col3 > 731) AND col4 <= 872.74)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_285 UNION SELECT pk, col0 FROM view_2_tab4_285
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-5300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE ((col0 BETWEEN 534 AND 52)) AND (((col1 > 960.52)) AND col4 IN (459.81,145.1,900.89,638.40) AND col4 = 459.55 OR col4 <= 506.5 AND col3 > 731) AND col4 <= 872.74 ) AS tab4_285
----

query I rowsort label-5300-3
SELECT * FROM view_3_tab4_285
----

query I rowsort label-5300-3
SELECT pk FROM tab4 WHERE ((col0 BETWEEN 534 AND 52)) AND (((col1 > 960.52)) AND col4 IN (459.81,145.1,900.89,638.40) AND col4 = 459.55 OR col4 <= 506.5 AND col3 > 731) AND col4 <= 872.74
----

statement ok
DROP VIEW view_1_tab4_285

statement ok
DROP VIEW view_2_tab4_285

statement ok
DROP VIEW view_3_tab4_285

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_286') DROP VIEW view_1_tab0_286

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_286

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_286') DROP VIEW view_2_tab0_286

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_286

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_286') DROP VIEW view_3_tab0_286

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_286

statement ok
CREATE VIEW view_1_tab0_286 AS SELECT pk, col0 FROM tab0 WHERE (col1 = 664.28 AND col0 = 338 AND (col3 = 35 AND ((col4 > 778.22))))

statement ok
CREATE VIEW view_2_tab0_286 AS SELECT pk, col0 FROM tab0 WHERE NOT ((col1 = 664.28 AND col0 = 338 AND (col3 = 35 AND ((col4 > 778.22)))))

statement ok
CREATE VIEW view_3_tab0_286 AS SELECT pk FROM view_1_tab0_286

query II rowsort label-5400-1
SELECT pk, col0 FROM tab0 WHERE (col1 = 664.28 AND col0 = 338 AND (col3 = 35 AND ((col4 > 778.22))))
----

query II rowsort label-5400-2
SELECT pk, col0 FROM tab0 WHERE NOT ((col1 = 664.28 AND col0 = 338 AND (col3 = 35 AND ((col4 > 778.22)))))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-5400-1
SELECT pk, col0 FROM view_1_tab0_286
----

query II rowsort label-5400-2
SELECT pk, col0 FROM view_2_tab0_286
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col1 = 664.28 AND col0 = 338 AND (col3 = 35 AND ((col4 > 778.22)))) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT ((col1 = 664.28 AND col0 = 338 AND (col3 = 35 AND ((col4 > 778.22)))))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_286 UNION ALL SELECT pk, col0 FROM view_2_tab0_286
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col1 = 664.28 AND col0 = 338 AND (col3 = 35 AND ((col4 > 778.22)))) UNION SELECT pk, col0 FROM tab0 WHERE NOT ((col1 = 664.28 AND col0 = 338 AND (col3 = 35 AND ((col4 > 778.22)))))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_286 UNION SELECT pk, col0 FROM view_2_tab0_286
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-5400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE (col1 = 664.28 AND col0 = 338 AND (col3 = 35 AND ((col4 > 778.22)))) ) AS tab0_286
----

query I rowsort label-5400-3
SELECT * FROM view_3_tab0_286
----

query I rowsort label-5400-3
SELECT pk FROM tab0 WHERE (col1 = 664.28 AND col0 = 338 AND (col3 = 35 AND ((col4 > 778.22))))
----

statement ok
DROP VIEW view_1_tab0_286

statement ok
DROP VIEW view_2_tab0_286

statement ok
DROP VIEW view_3_tab0_286

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_286') DROP VIEW view_1_tab1_286

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_286

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_286') DROP VIEW view_2_tab1_286

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_286

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_286') DROP VIEW view_3_tab1_286

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_286

statement ok
CREATE VIEW view_1_tab1_286 AS SELECT pk, col0 FROM tab1 WHERE (col1 = 664.28 AND col0 = 338 AND (col3 = 35 AND ((col4 > 778.22))))

statement ok
CREATE VIEW view_2_tab1_286 AS SELECT pk, col0 FROM tab1 WHERE NOT ((col1 = 664.28 AND col0 = 338 AND (col3 = 35 AND ((col4 > 778.22)))))

statement ok
CREATE VIEW view_3_tab1_286 AS SELECT pk FROM view_1_tab1_286

query II rowsort label-5400-1
SELECT pk, col0 FROM tab1 WHERE (col1 = 664.28 AND col0 = 338 AND (col3 = 35 AND ((col4 > 778.22))))
----

query II rowsort label-5400-2
SELECT pk, col0 FROM tab1 WHERE NOT ((col1 = 664.28 AND col0 = 338 AND (col3 = 35 AND ((col4 > 778.22)))))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-5400-1
SELECT pk, col0 FROM view_1_tab1_286
----

query II rowsort label-5400-2
SELECT pk, col0 FROM view_2_tab1_286
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col1 = 664.28 AND col0 = 338 AND (col3 = 35 AND ((col4 > 778.22)))) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT ((col1 = 664.28 AND col0 = 338 AND (col3 = 35 AND ((col4 > 778.22)))))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_286 UNION ALL SELECT pk, col0 FROM view_2_tab1_286
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col1 = 664.28 AND col0 = 338 AND (col3 = 35 AND ((col4 > 778.22)))) UNION SELECT pk, col0 FROM tab1 WHERE NOT ((col1 = 664.28 AND col0 = 338 AND (col3 = 35 AND ((col4 > 778.22)))))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_286 UNION SELECT pk, col0 FROM view_2_tab1_286
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-5400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE (col1 = 664.28 AND col0 = 338 AND (col3 = 35 AND ((col4 > 778.22)))) ) AS tab1_286
----

query I rowsort label-5400-3
SELECT * FROM view_3_tab1_286
----

query I rowsort label-5400-3
SELECT pk FROM tab1 WHERE (col1 = 664.28 AND col0 = 338 AND (col3 = 35 AND ((col4 > 778.22))))
----

statement ok
DROP VIEW view_1_tab1_286

statement ok
DROP VIEW view_2_tab1_286

statement ok
DROP VIEW view_3_tab1_286

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_286') DROP VIEW view_1_tab2_286

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_286

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_286') DROP VIEW view_2_tab2_286

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_286

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_286') DROP VIEW view_3_tab2_286

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_286

statement ok
CREATE VIEW view_1_tab2_286 AS SELECT pk, col0 FROM tab2 WHERE (col1 = 664.28 AND col0 = 338 AND (col3 = 35 AND ((col4 > 778.22))))

statement ok
CREATE VIEW view_2_tab2_286 AS SELECT pk, col0 FROM tab2 WHERE NOT ((col1 = 664.28 AND col0 = 338 AND (col3 = 35 AND ((col4 > 778.22)))))

statement ok
CREATE VIEW view_3_tab2_286 AS SELECT pk FROM view_1_tab2_286

query II rowsort label-5400-1
SELECT pk, col0 FROM tab2 WHERE (col1 = 664.28 AND col0 = 338 AND (col3 = 35 AND ((col4 > 778.22))))
----

query II rowsort label-5400-2
SELECT pk, col0 FROM tab2 WHERE NOT ((col1 = 664.28 AND col0 = 338 AND (col3 = 35 AND ((col4 > 778.22)))))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-5400-1
SELECT pk, col0 FROM view_1_tab2_286
----

query II rowsort label-5400-2
SELECT pk, col0 FROM view_2_tab2_286
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col1 = 664.28 AND col0 = 338 AND (col3 = 35 AND ((col4 > 778.22)))) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT ((col1 = 664.28 AND col0 = 338 AND (col3 = 35 AND ((col4 > 778.22)))))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_286 UNION ALL SELECT pk, col0 FROM view_2_tab2_286
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col1 = 664.28 AND col0 = 338 AND (col3 = 35 AND ((col4 > 778.22)))) UNION SELECT pk, col0 FROM tab2 WHERE NOT ((col1 = 664.28 AND col0 = 338 AND (col3 = 35 AND ((col4 > 778.22)))))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_286 UNION SELECT pk, col0 FROM view_2_tab2_286
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-5400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE (col1 = 664.28 AND col0 = 338 AND (col3 = 35 AND ((col4 > 778.22)))) ) AS tab2_286
----

query I rowsort label-5400-3
SELECT * FROM view_3_tab2_286
----

query I rowsort label-5400-3
SELECT pk FROM tab2 WHERE (col1 = 664.28 AND col0 = 338 AND (col3 = 35 AND ((col4 > 778.22))))
----

statement ok
DROP VIEW view_1_tab2_286

statement ok
DROP VIEW view_2_tab2_286

statement ok
DROP VIEW view_3_tab2_286

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_286') DROP VIEW view_1_tab3_286

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_286

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_286') DROP VIEW view_2_tab3_286

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_286

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_286') DROP VIEW view_3_tab3_286

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_286

statement ok
CREATE VIEW view_1_tab3_286 AS SELECT pk, col0 FROM tab3 WHERE (col1 = 664.28 AND col0 = 338 AND (col3 = 35 AND ((col4 > 778.22))))

statement ok
CREATE VIEW view_2_tab3_286 AS SELECT pk, col0 FROM tab3 WHERE NOT ((col1 = 664.28 AND col0 = 338 AND (col3 = 35 AND ((col4 > 778.22)))))

statement ok
CREATE VIEW view_3_tab3_286 AS SELECT pk FROM view_1_tab3_286

query II rowsort label-5400-1
SELECT pk, col0 FROM tab3 WHERE (col1 = 664.28 AND col0 = 338 AND (col3 = 35 AND ((col4 > 778.22))))
----

query II rowsort label-5400-2
SELECT pk, col0 FROM tab3 WHERE NOT ((col1 = 664.28 AND col0 = 338 AND (col3 = 35 AND ((col4 > 778.22)))))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-5400-1
SELECT pk, col0 FROM view_1_tab3_286
----

query II rowsort label-5400-2
SELECT pk, col0 FROM view_2_tab3_286
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col1 = 664.28 AND col0 = 338 AND (col3 = 35 AND ((col4 > 778.22)))) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT ((col1 = 664.28 AND col0 = 338 AND (col3 = 35 AND ((col4 > 778.22)))))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_286 UNION ALL SELECT pk, col0 FROM view_2_tab3_286
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col1 = 664.28 AND col0 = 338 AND (col3 = 35 AND ((col4 > 778.22)))) UNION SELECT pk, col0 FROM tab3 WHERE NOT ((col1 = 664.28 AND col0 = 338 AND (col3 = 35 AND ((col4 > 778.22)))))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_286 UNION SELECT pk, col0 FROM view_2_tab3_286
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-5400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE (col1 = 664.28 AND col0 = 338 AND (col3 = 35 AND ((col4 > 778.22)))) ) AS tab3_286
----

query I rowsort label-5400-3
SELECT * FROM view_3_tab3_286
----

query I rowsort label-5400-3
SELECT pk FROM tab3 WHERE (col1 = 664.28 AND col0 = 338 AND (col3 = 35 AND ((col4 > 778.22))))
----

statement ok
DROP VIEW view_1_tab3_286

statement ok
DROP VIEW view_2_tab3_286

statement ok
DROP VIEW view_3_tab3_286

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_286') DROP VIEW view_1_tab4_286

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_286

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_286') DROP VIEW view_2_tab4_286

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_286

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_286') DROP VIEW view_3_tab4_286

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_286

statement ok
CREATE VIEW view_1_tab4_286 AS SELECT pk, col0 FROM tab4 WHERE (col1 = 664.28 AND col0 = 338 AND (col3 = 35 AND ((col4 > 778.22))))

statement ok
CREATE VIEW view_2_tab4_286 AS SELECT pk, col0 FROM tab4 WHERE NOT ((col1 = 664.28 AND col0 = 338 AND (col3 = 35 AND ((col4 > 778.22)))))

statement ok
CREATE VIEW view_3_tab4_286 AS SELECT pk FROM view_1_tab4_286

query II rowsort label-5400-1
SELECT pk, col0 FROM tab4 WHERE (col1 = 664.28 AND col0 = 338 AND (col3 = 35 AND ((col4 > 778.22))))
----

query II rowsort label-5400-2
SELECT pk, col0 FROM tab4 WHERE NOT ((col1 = 664.28 AND col0 = 338 AND (col3 = 35 AND ((col4 > 778.22)))))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-5400-1
SELECT pk, col0 FROM view_1_tab4_286
----

query II rowsort label-5400-2
SELECT pk, col0 FROM view_2_tab4_286
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col1 = 664.28 AND col0 = 338 AND (col3 = 35 AND ((col4 > 778.22)))) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT ((col1 = 664.28 AND col0 = 338 AND (col3 = 35 AND ((col4 > 778.22)))))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_286 UNION ALL SELECT pk, col0 FROM view_2_tab4_286
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col1 = 664.28 AND col0 = 338 AND (col3 = 35 AND ((col4 > 778.22)))) UNION SELECT pk, col0 FROM tab4 WHERE NOT ((col1 = 664.28 AND col0 = 338 AND (col3 = 35 AND ((col4 > 778.22)))))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_286 UNION SELECT pk, col0 FROM view_2_tab4_286
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-5400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE (col1 = 664.28 AND col0 = 338 AND (col3 = 35 AND ((col4 > 778.22)))) ) AS tab4_286
----

query I rowsort label-5400-3
SELECT * FROM view_3_tab4_286
----

query I rowsort label-5400-3
SELECT pk FROM tab4 WHERE (col1 = 664.28 AND col0 = 338 AND (col3 = 35 AND ((col4 > 778.22))))
----

statement ok
DROP VIEW view_1_tab4_286

statement ok
DROP VIEW view_2_tab4_286

statement ok
DROP VIEW view_3_tab4_286

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_287') DROP VIEW view_1_tab0_287

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_287

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_287') DROP VIEW view_2_tab0_287

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_287

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_287') DROP VIEW view_3_tab0_287

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_287

statement ok
CREATE VIEW view_1_tab0_287 AS SELECT pk, col0 FROM tab0 WHERE col0 > 722

statement ok
CREATE VIEW view_2_tab0_287 AS SELECT pk, col0 FROM tab0 WHERE NOT (col0 > 722)

statement ok
CREATE VIEW view_3_tab0_287 AS SELECT pk FROM view_1_tab0_287

query II rowsort label-5500-1
SELECT pk, col0 FROM tab0 WHERE col0 > 722
----
54 values hashing to 42c0be0237368f99189cef9a122a8dcb

query II rowsort label-5500-2
SELECT pk, col0 FROM tab0 WHERE NOT (col0 > 722)
----
146 values hashing to 11ab5d199d04d245efba5a6d618a9d22

query II rowsort label-5500-1
SELECT pk, col0 FROM view_1_tab0_287
----
54 values hashing to 42c0be0237368f99189cef9a122a8dcb

query II rowsort label-5500-2
SELECT pk, col0 FROM view_2_tab0_287
----
146 values hashing to 11ab5d199d04d245efba5a6d618a9d22

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col0 > 722 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col0 > 722)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_287 UNION ALL SELECT pk, col0 FROM view_2_tab0_287
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col0 > 722 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col0 > 722)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_287 UNION SELECT pk, col0 FROM view_2_tab0_287
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-5500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col0 > 722 ) AS tab0_287
----
27 values hashing to 7b9fa0a7c0f9200ba37d39881c88ef96

query I rowsort label-5500-3
SELECT * FROM view_3_tab0_287
----
27 values hashing to 7b9fa0a7c0f9200ba37d39881c88ef96

query I rowsort label-5500-3
SELECT pk FROM tab0 WHERE col0 > 722
----
27 values hashing to 7b9fa0a7c0f9200ba37d39881c88ef96

statement ok
DROP VIEW view_1_tab0_287

statement ok
DROP VIEW view_2_tab0_287

statement ok
DROP VIEW view_3_tab0_287

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_287') DROP VIEW view_1_tab1_287

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_287

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_287') DROP VIEW view_2_tab1_287

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_287

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_287') DROP VIEW view_3_tab1_287

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_287

statement ok
CREATE VIEW view_1_tab1_287 AS SELECT pk, col0 FROM tab1 WHERE col0 > 722

statement ok
CREATE VIEW view_2_tab1_287 AS SELECT pk, col0 FROM tab1 WHERE NOT (col0 > 722)

statement ok
CREATE VIEW view_3_tab1_287 AS SELECT pk FROM view_1_tab1_287

query II rowsort label-5500-1
SELECT pk, col0 FROM tab1 WHERE col0 > 722
----
54 values hashing to 42c0be0237368f99189cef9a122a8dcb

query II rowsort label-5500-2
SELECT pk, col0 FROM tab1 WHERE NOT (col0 > 722)
----
146 values hashing to 11ab5d199d04d245efba5a6d618a9d22

query II rowsort label-5500-1
SELECT pk, col0 FROM view_1_tab1_287
----
54 values hashing to 42c0be0237368f99189cef9a122a8dcb

query II rowsort label-5500-2
SELECT pk, col0 FROM view_2_tab1_287
----
146 values hashing to 11ab5d199d04d245efba5a6d618a9d22

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col0 > 722 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col0 > 722)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_287 UNION ALL SELECT pk, col0 FROM view_2_tab1_287
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col0 > 722 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col0 > 722)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_287 UNION SELECT pk, col0 FROM view_2_tab1_287
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-5500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col0 > 722 ) AS tab1_287
----
27 values hashing to 7b9fa0a7c0f9200ba37d39881c88ef96

query I rowsort label-5500-3
SELECT * FROM view_3_tab1_287
----
27 values hashing to 7b9fa0a7c0f9200ba37d39881c88ef96

query I rowsort label-5500-3
SELECT pk FROM tab1 WHERE col0 > 722
----
27 values hashing to 7b9fa0a7c0f9200ba37d39881c88ef96

statement ok
DROP VIEW view_1_tab1_287

statement ok
DROP VIEW view_2_tab1_287

statement ok
DROP VIEW view_3_tab1_287

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_287') DROP VIEW view_1_tab2_287

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_287

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_287') DROP VIEW view_2_tab2_287

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_287

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_287') DROP VIEW view_3_tab2_287

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_287

statement ok
CREATE VIEW view_1_tab2_287 AS SELECT pk, col0 FROM tab2 WHERE col0 > 722

statement ok
CREATE VIEW view_2_tab2_287 AS SELECT pk, col0 FROM tab2 WHERE NOT (col0 > 722)

statement ok
CREATE VIEW view_3_tab2_287 AS SELECT pk FROM view_1_tab2_287

query II rowsort label-5500-1
SELECT pk, col0 FROM tab2 WHERE col0 > 722
----
54 values hashing to 42c0be0237368f99189cef9a122a8dcb

query II rowsort label-5500-2
SELECT pk, col0 FROM tab2 WHERE NOT (col0 > 722)
----
146 values hashing to 11ab5d199d04d245efba5a6d618a9d22

query II rowsort label-5500-1
SELECT pk, col0 FROM view_1_tab2_287
----
54 values hashing to 42c0be0237368f99189cef9a122a8dcb

query II rowsort label-5500-2
SELECT pk, col0 FROM view_2_tab2_287
----
146 values hashing to 11ab5d199d04d245efba5a6d618a9d22

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col0 > 722 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col0 > 722)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_287 UNION ALL SELECT pk, col0 FROM view_2_tab2_287
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col0 > 722 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col0 > 722)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_287 UNION SELECT pk, col0 FROM view_2_tab2_287
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-5500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col0 > 722 ) AS tab2_287
----
27 values hashing to 7b9fa0a7c0f9200ba37d39881c88ef96

query I rowsort label-5500-3
SELECT * FROM view_3_tab2_287
----
27 values hashing to 7b9fa0a7c0f9200ba37d39881c88ef96

query I rowsort label-5500-3
SELECT pk FROM tab2 WHERE col0 > 722
----
27 values hashing to 7b9fa0a7c0f9200ba37d39881c88ef96

statement ok
DROP VIEW view_1_tab2_287

statement ok
DROP VIEW view_2_tab2_287

statement ok
DROP VIEW view_3_tab2_287

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_287') DROP VIEW view_1_tab3_287

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_287

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_287') DROP VIEW view_2_tab3_287

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_287

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_287') DROP VIEW view_3_tab3_287

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_287

statement ok
CREATE VIEW view_1_tab3_287 AS SELECT pk, col0 FROM tab3 WHERE col0 > 722

statement ok
CREATE VIEW view_2_tab3_287 AS SELECT pk, col0 FROM tab3 WHERE NOT (col0 > 722)

statement ok
CREATE VIEW view_3_tab3_287 AS SELECT pk FROM view_1_tab3_287

query II rowsort label-5500-1
SELECT pk, col0 FROM tab3 WHERE col0 > 722
----
54 values hashing to 42c0be0237368f99189cef9a122a8dcb

query II rowsort label-5500-2
SELECT pk, col0 FROM tab3 WHERE NOT (col0 > 722)
----
146 values hashing to 11ab5d199d04d245efba5a6d618a9d22

query II rowsort label-5500-1
SELECT pk, col0 FROM view_1_tab3_287
----
54 values hashing to 42c0be0237368f99189cef9a122a8dcb

query II rowsort label-5500-2
SELECT pk, col0 FROM view_2_tab3_287
----
146 values hashing to 11ab5d199d04d245efba5a6d618a9d22

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col0 > 722 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col0 > 722)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_287 UNION ALL SELECT pk, col0 FROM view_2_tab3_287
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col0 > 722 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col0 > 722)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_287 UNION SELECT pk, col0 FROM view_2_tab3_287
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-5500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col0 > 722 ) AS tab3_287
----
27 values hashing to 7b9fa0a7c0f9200ba37d39881c88ef96

query I rowsort label-5500-3
SELECT * FROM view_3_tab3_287
----
27 values hashing to 7b9fa0a7c0f9200ba37d39881c88ef96

query I rowsort label-5500-3
SELECT pk FROM tab3 WHERE col0 > 722
----
27 values hashing to 7b9fa0a7c0f9200ba37d39881c88ef96

statement ok
DROP VIEW view_1_tab3_287

statement ok
DROP VIEW view_2_tab3_287

statement ok
DROP VIEW view_3_tab3_287

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_287') DROP VIEW view_1_tab4_287

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_287

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_287') DROP VIEW view_2_tab4_287

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_287

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_287') DROP VIEW view_3_tab4_287

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_287

statement ok
CREATE VIEW view_1_tab4_287 AS SELECT pk, col0 FROM tab4 WHERE col0 > 722

statement ok
CREATE VIEW view_2_tab4_287 AS SELECT pk, col0 FROM tab4 WHERE NOT (col0 > 722)

statement ok
CREATE VIEW view_3_tab4_287 AS SELECT pk FROM view_1_tab4_287

query II rowsort label-5500-1
SELECT pk, col0 FROM tab4 WHERE col0 > 722
----
54 values hashing to 42c0be0237368f99189cef9a122a8dcb

query II rowsort label-5500-2
SELECT pk, col0 FROM tab4 WHERE NOT (col0 > 722)
----
146 values hashing to 11ab5d199d04d245efba5a6d618a9d22

query II rowsort label-5500-1
SELECT pk, col0 FROM view_1_tab4_287
----
54 values hashing to 42c0be0237368f99189cef9a122a8dcb

query II rowsort label-5500-2
SELECT pk, col0 FROM view_2_tab4_287
----
146 values hashing to 11ab5d199d04d245efba5a6d618a9d22

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col0 > 722 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col0 > 722)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_287 UNION ALL SELECT pk, col0 FROM view_2_tab4_287
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col0 > 722 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col0 > 722)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_287 UNION SELECT pk, col0 FROM view_2_tab4_287
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-5500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col0 > 722 ) AS tab4_287
----
27 values hashing to 7b9fa0a7c0f9200ba37d39881c88ef96

query I rowsort label-5500-3
SELECT * FROM view_3_tab4_287
----
27 values hashing to 7b9fa0a7c0f9200ba37d39881c88ef96

query I rowsort label-5500-3
SELECT pk FROM tab4 WHERE col0 > 722
----
27 values hashing to 7b9fa0a7c0f9200ba37d39881c88ef96

statement ok
DROP VIEW view_1_tab4_287

statement ok
DROP VIEW view_2_tab4_287

statement ok
DROP VIEW view_3_tab4_287

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_288') DROP VIEW view_1_tab0_288

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_288

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_288') DROP VIEW view_2_tab0_288

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_288

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_288') DROP VIEW view_3_tab0_288

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_288

statement ok
CREATE VIEW view_1_tab0_288 AS SELECT pk, col0 FROM tab0 WHERE (col0 < 985 OR col0 < 304 AND col1 < 525.45)

statement ok
CREATE VIEW view_2_tab0_288 AS SELECT pk, col0 FROM tab0 WHERE NOT ((col0 < 985 OR col0 < 304 AND col1 < 525.45))

statement ok
CREATE VIEW view_3_tab0_288 AS SELECT pk FROM view_1_tab0_288

query II rowsort label-5600-1
SELECT pk, col0 FROM tab0 WHERE (col0 < 985 OR col0 < 304 AND col1 < 525.45)
----
198 values hashing to 6eba9b6b021459b18e61fa06832a9cf2

query II rowsort label-5600-2
SELECT pk, col0 FROM tab0 WHERE NOT ((col0 < 985 OR col0 < 304 AND col1 < 525.45))
----
11
993

query II rowsort label-5600-1
SELECT pk, col0 FROM view_1_tab0_288
----
198 values hashing to 6eba9b6b021459b18e61fa06832a9cf2

query II rowsort label-5600-2
SELECT pk, col0 FROM view_2_tab0_288
----
11
993

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col0 < 985 OR col0 < 304 AND col1 < 525.45) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT ((col0 < 985 OR col0 < 304 AND col1 < 525.45))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_288 UNION ALL SELECT pk, col0 FROM view_2_tab0_288
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col0 < 985 OR col0 < 304 AND col1 < 525.45) UNION SELECT pk, col0 FROM tab0 WHERE NOT ((col0 < 985 OR col0 < 304 AND col1 < 525.45))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_288 UNION SELECT pk, col0 FROM view_2_tab0_288
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-5600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE (col0 < 985 OR col0 < 304 AND col1 < 525.45) ) AS tab0_288
----
99 values hashing to 95cfb44363c1cb762ec04a82427ef49d

query I rowsort label-5600-3
SELECT * FROM view_3_tab0_288
----
99 values hashing to 95cfb44363c1cb762ec04a82427ef49d

query I rowsort label-5600-3
SELECT pk FROM tab0 WHERE (col0 < 985 OR col0 < 304 AND col1 < 525.45)
----
99 values hashing to 95cfb44363c1cb762ec04a82427ef49d

statement ok
DROP VIEW view_1_tab0_288

statement ok
DROP VIEW view_2_tab0_288

statement ok
DROP VIEW view_3_tab0_288

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_288') DROP VIEW view_1_tab1_288

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_288

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_288') DROP VIEW view_2_tab1_288

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_288

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_288') DROP VIEW view_3_tab1_288

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_288

statement ok
CREATE VIEW view_1_tab1_288 AS SELECT pk, col0 FROM tab1 WHERE (col0 < 985 OR col0 < 304 AND col1 < 525.45)

statement ok
CREATE VIEW view_2_tab1_288 AS SELECT pk, col0 FROM tab1 WHERE NOT ((col0 < 985 OR col0 < 304 AND col1 < 525.45))

statement ok
CREATE VIEW view_3_tab1_288 AS SELECT pk FROM view_1_tab1_288

query II rowsort label-5600-1
SELECT pk, col0 FROM tab1 WHERE (col0 < 985 OR col0 < 304 AND col1 < 525.45)
----
198 values hashing to 6eba9b6b021459b18e61fa06832a9cf2

query II rowsort label-5600-2
SELECT pk, col0 FROM tab1 WHERE NOT ((col0 < 985 OR col0 < 304 AND col1 < 525.45))
----
11
993

query II rowsort label-5600-1
SELECT pk, col0 FROM view_1_tab1_288
----
198 values hashing to 6eba9b6b021459b18e61fa06832a9cf2

query II rowsort label-5600-2
SELECT pk, col0 FROM view_2_tab1_288
----
11
993

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col0 < 985 OR col0 < 304 AND col1 < 525.45) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT ((col0 < 985 OR col0 < 304 AND col1 < 525.45))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_288 UNION ALL SELECT pk, col0 FROM view_2_tab1_288
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col0 < 985 OR col0 < 304 AND col1 < 525.45) UNION SELECT pk, col0 FROM tab1 WHERE NOT ((col0 < 985 OR col0 < 304 AND col1 < 525.45))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_288 UNION SELECT pk, col0 FROM view_2_tab1_288
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-5600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE (col0 < 985 OR col0 < 304 AND col1 < 525.45) ) AS tab1_288
----
99 values hashing to 95cfb44363c1cb762ec04a82427ef49d

query I rowsort label-5600-3
SELECT * FROM view_3_tab1_288
----
99 values hashing to 95cfb44363c1cb762ec04a82427ef49d

query I rowsort label-5600-3
SELECT pk FROM tab1 WHERE (col0 < 985 OR col0 < 304 AND col1 < 525.45)
----
99 values hashing to 95cfb44363c1cb762ec04a82427ef49d

statement ok
DROP VIEW view_1_tab1_288

statement ok
DROP VIEW view_2_tab1_288

statement ok
DROP VIEW view_3_tab1_288

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_288') DROP VIEW view_1_tab2_288

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_288

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_288') DROP VIEW view_2_tab2_288

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_288

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_288') DROP VIEW view_3_tab2_288

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_288

statement ok
CREATE VIEW view_1_tab2_288 AS SELECT pk, col0 FROM tab2 WHERE (col0 < 985 OR col0 < 304 AND col1 < 525.45)

statement ok
CREATE VIEW view_2_tab2_288 AS SELECT pk, col0 FROM tab2 WHERE NOT ((col0 < 985 OR col0 < 304 AND col1 < 525.45))

statement ok
CREATE VIEW view_3_tab2_288 AS SELECT pk FROM view_1_tab2_288

query II rowsort label-5600-1
SELECT pk, col0 FROM tab2 WHERE (col0 < 985 OR col0 < 304 AND col1 < 525.45)
----
198 values hashing to 6eba9b6b021459b18e61fa06832a9cf2

query II rowsort label-5600-2
SELECT pk, col0 FROM tab2 WHERE NOT ((col0 < 985 OR col0 < 304 AND col1 < 525.45))
----
11
993

query II rowsort label-5600-1
SELECT pk, col0 FROM view_1_tab2_288
----
198 values hashing to 6eba9b6b021459b18e61fa06832a9cf2

query II rowsort label-5600-2
SELECT pk, col0 FROM view_2_tab2_288
----
11
993

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col0 < 985 OR col0 < 304 AND col1 < 525.45) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT ((col0 < 985 OR col0 < 304 AND col1 < 525.45))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_288 UNION ALL SELECT pk, col0 FROM view_2_tab2_288
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col0 < 985 OR col0 < 304 AND col1 < 525.45) UNION SELECT pk, col0 FROM tab2 WHERE NOT ((col0 < 985 OR col0 < 304 AND col1 < 525.45))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_288 UNION SELECT pk, col0 FROM view_2_tab2_288
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-5600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE (col0 < 985 OR col0 < 304 AND col1 < 525.45) ) AS tab2_288
----
99 values hashing to 95cfb44363c1cb762ec04a82427ef49d

query I rowsort label-5600-3
SELECT * FROM view_3_tab2_288
----
99 values hashing to 95cfb44363c1cb762ec04a82427ef49d

query I rowsort label-5600-3
SELECT pk FROM tab2 WHERE (col0 < 985 OR col0 < 304 AND col1 < 525.45)
----
99 values hashing to 95cfb44363c1cb762ec04a82427ef49d

statement ok
DROP VIEW view_1_tab2_288

statement ok
DROP VIEW view_2_tab2_288

statement ok
DROP VIEW view_3_tab2_288

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_288') DROP VIEW view_1_tab3_288

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_288

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_288') DROP VIEW view_2_tab3_288

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_288

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_288') DROP VIEW view_3_tab3_288

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_288

statement ok
CREATE VIEW view_1_tab3_288 AS SELECT pk, col0 FROM tab3 WHERE (col0 < 985 OR col0 < 304 AND col1 < 525.45)

statement ok
CREATE VIEW view_2_tab3_288 AS SELECT pk, col0 FROM tab3 WHERE NOT ((col0 < 985 OR col0 < 304 AND col1 < 525.45))

statement ok
CREATE VIEW view_3_tab3_288 AS SELECT pk FROM view_1_tab3_288

query II rowsort label-5600-1
SELECT pk, col0 FROM tab3 WHERE (col0 < 985 OR col0 < 304 AND col1 < 525.45)
----
198 values hashing to 6eba9b6b021459b18e61fa06832a9cf2

query II rowsort label-5600-2
SELECT pk, col0 FROM tab3 WHERE NOT ((col0 < 985 OR col0 < 304 AND col1 < 525.45))
----
11
993

query II rowsort label-5600-1
SELECT pk, col0 FROM view_1_tab3_288
----
198 values hashing to 6eba9b6b021459b18e61fa06832a9cf2

query II rowsort label-5600-2
SELECT pk, col0 FROM view_2_tab3_288
----
11
993

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col0 < 985 OR col0 < 304 AND col1 < 525.45) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT ((col0 < 985 OR col0 < 304 AND col1 < 525.45))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_288 UNION ALL SELECT pk, col0 FROM view_2_tab3_288
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col0 < 985 OR col0 < 304 AND col1 < 525.45) UNION SELECT pk, col0 FROM tab3 WHERE NOT ((col0 < 985 OR col0 < 304 AND col1 < 525.45))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_288 UNION SELECT pk, col0 FROM view_2_tab3_288
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-5600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE (col0 < 985 OR col0 < 304 AND col1 < 525.45) ) AS tab3_288
----
99 values hashing to 95cfb44363c1cb762ec04a82427ef49d

query I rowsort label-5600-3
SELECT * FROM view_3_tab3_288
----
99 values hashing to 95cfb44363c1cb762ec04a82427ef49d

query I rowsort label-5600-3
SELECT pk FROM tab3 WHERE (col0 < 985 OR col0 < 304 AND col1 < 525.45)
----
99 values hashing to 95cfb44363c1cb762ec04a82427ef49d

statement ok
DROP VIEW view_1_tab3_288

statement ok
DROP VIEW view_2_tab3_288

statement ok
DROP VIEW view_3_tab3_288

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_288') DROP VIEW view_1_tab4_288

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_288

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_288') DROP VIEW view_2_tab4_288

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_288

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_288') DROP VIEW view_3_tab4_288

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_288

statement ok
CREATE VIEW view_1_tab4_288 AS SELECT pk, col0 FROM tab4 WHERE (col0 < 985 OR col0 < 304 AND col1 < 525.45)

statement ok
CREATE VIEW view_2_tab4_288 AS SELECT pk, col0 FROM tab4 WHERE NOT ((col0 < 985 OR col0 < 304 AND col1 < 525.45))

statement ok
CREATE VIEW view_3_tab4_288 AS SELECT pk FROM view_1_tab4_288

query II rowsort label-5600-1
SELECT pk, col0 FROM tab4 WHERE (col0 < 985 OR col0 < 304 AND col1 < 525.45)
----
198 values hashing to 6eba9b6b021459b18e61fa06832a9cf2

query II rowsort label-5600-2
SELECT pk, col0 FROM tab4 WHERE NOT ((col0 < 985 OR col0 < 304 AND col1 < 525.45))
----
11
993

query II rowsort label-5600-1
SELECT pk, col0 FROM view_1_tab4_288
----
198 values hashing to 6eba9b6b021459b18e61fa06832a9cf2

query II rowsort label-5600-2
SELECT pk, col0 FROM view_2_tab4_288
----
11
993

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col0 < 985 OR col0 < 304 AND col1 < 525.45) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT ((col0 < 985 OR col0 < 304 AND col1 < 525.45))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_288 UNION ALL SELECT pk, col0 FROM view_2_tab4_288
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col0 < 985 OR col0 < 304 AND col1 < 525.45) UNION SELECT pk, col0 FROM tab4 WHERE NOT ((col0 < 985 OR col0 < 304 AND col1 < 525.45))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_288 UNION SELECT pk, col0 FROM view_2_tab4_288
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-5600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE (col0 < 985 OR col0 < 304 AND col1 < 525.45) ) AS tab4_288
----
99 values hashing to 95cfb44363c1cb762ec04a82427ef49d

query I rowsort label-5600-3
SELECT * FROM view_3_tab4_288
----
99 values hashing to 95cfb44363c1cb762ec04a82427ef49d

query I rowsort label-5600-3
SELECT pk FROM tab4 WHERE (col0 < 985 OR col0 < 304 AND col1 < 525.45)
----
99 values hashing to 95cfb44363c1cb762ec04a82427ef49d

statement ok
DROP VIEW view_1_tab4_288

statement ok
DROP VIEW view_2_tab4_288

statement ok
DROP VIEW view_3_tab4_288

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_289') DROP VIEW view_1_tab0_289

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_289

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_289') DROP VIEW view_2_tab0_289

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_289

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_289') DROP VIEW view_3_tab0_289

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_289

statement ok
CREATE VIEW view_1_tab0_289 AS SELECT pk, col0 FROM tab0 WHERE col0 <= 642 AND col3 > 287 OR col1 <= 864.75 OR ((col0 <= 374) AND col0 < 948 AND ((col4 >= 641.11 OR col0 BETWEEN 55 AND 643)) OR (col3 <= 64) AND (col3 IN (191,792) AND col0 = 634 AND ((((col3 >= 591))))) AND col1 >= 554.71) AND (((((col3 > 747)))) OR (col3 < 837))

statement ok
CREATE VIEW view_2_tab0_289 AS SELECT pk, col0 FROM tab0 WHERE NOT (col0 <= 642 AND col3 > 287 OR col1 <= 864.75 OR ((col0 <= 374) AND col0 < 948 AND ((col4 >= 641.11 OR col0 BETWEEN 55 AND 643)) OR (col3 <= 64) AND (col3 IN (191,792) AND col0 = 634 AND ((((col3 >= 591))))) AND col1 >= 554.71) AND (((((col3 > 747)))) OR (col3 < 837)))

statement ok
CREATE VIEW view_3_tab0_289 AS SELECT pk FROM view_1_tab0_289

query II rowsort label-5700-1
SELECT pk, col0 FROM tab0 WHERE col0 <= 642 AND col3 > 287 OR col1 <= 864.75 OR ((col0 <= 374) AND col0 < 948 AND ((col4 >= 641.11 OR col0 BETWEEN 55 AND 643)) OR (col3 <= 64) AND (col3 IN (191,792) AND col0 = 634 AND ((((col3 >= 591))))) AND col1 >= 554.71) AND (((((col3 > 747)))) OR (col3 < 837))
----
186 values hashing to 04232a558c5acb08e3525794b5c606f4

query II rowsort label-5700-2
SELECT pk, col0 FROM tab0 WHERE NOT (col0 <= 642 AND col3 > 287 OR col1 <= 864.75 OR ((col0 <= 374) AND col0 < 948 AND ((col4 >= 641.11 OR col0 BETWEEN 55 AND 643)) OR (col3 <= 64) AND (col3 IN (191,792) AND col0 = 634 AND ((((col3 >= 591))))) AND col1 >= 554.71) AND (((((col3 > 747)))) OR (col3 < 837)))
----
14 values hashing to 15d7f03bbbb55a936d258f47ee2e7e0f

query II rowsort label-5700-1
SELECT pk, col0 FROM view_1_tab0_289
----
186 values hashing to 04232a558c5acb08e3525794b5c606f4

query II rowsort label-5700-2
SELECT pk, col0 FROM view_2_tab0_289
----
14 values hashing to 15d7f03bbbb55a936d258f47ee2e7e0f

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col0 <= 642 AND col3 > 287 OR col1 <= 864.75 OR ((col0 <= 374) AND col0 < 948 AND ((col4 >= 641.11 OR col0 BETWEEN 55 AND 643)) OR (col3 <= 64) AND (col3 IN (191,792) AND col0 = 634 AND ((((col3 >= 591))))) AND col1 >= 554.71) AND (((((col3 > 747)))) OR (col3 < 837)) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col0 <= 642 AND col3 > 287 OR col1 <= 864.75 OR ((col0 <= 374) AND col0 < 948 AND ((col4 >= 641.11 OR col0 BETWEEN 55 AND 643)) OR (col3 <= 64) AND (col3 IN (191,792) AND col0 = 634 AND ((((col3 >= 591))))) AND col1 >= 554.71) AND (((((col3 > 747)))) OR (col3 < 837)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_289 UNION ALL SELECT pk, col0 FROM view_2_tab0_289
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col0 <= 642 AND col3 > 287 OR col1 <= 864.75 OR ((col0 <= 374) AND col0 < 948 AND ((col4 >= 641.11 OR col0 BETWEEN 55 AND 643)) OR (col3 <= 64) AND (col3 IN (191,792) AND col0 = 634 AND ((((col3 >= 591))))) AND col1 >= 554.71) AND (((((col3 > 747)))) OR (col3 < 837)) UNION SELECT pk, col0 FROM tab0 WHERE NOT (col0 <= 642 AND col3 > 287 OR col1 <= 864.75 OR ((col0 <= 374) AND col0 < 948 AND ((col4 >= 641.11 OR col0 BETWEEN 55 AND 643)) OR (col3 <= 64) AND (col3 IN (191,792) AND col0 = 634 AND ((((col3 >= 591))))) AND col1 >= 554.71) AND (((((col3 > 747)))) OR (col3 < 837)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_289 UNION SELECT pk, col0 FROM view_2_tab0_289
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-5700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col0 <= 642 AND col3 > 287 OR col1 <= 864.75 OR ((col0 <= 374) AND col0 < 948 AND ((col4 >= 641.11 OR col0 BETWEEN 55 AND 643)) OR (col3 <= 64) AND (col3 IN (191,792) AND col0 = 634 AND ((((col3 >= 591))))) AND col1 >= 554.71) AND (((((col3 > 747)))) OR (col3 < 837)) ) AS tab0_289
----
93 values hashing to 99c99a56d2c39a0275b0b1f7c6348235

query I rowsort label-5700-3
SELECT * FROM view_3_tab0_289
----
93 values hashing to 99c99a56d2c39a0275b0b1f7c6348235

query I rowsort label-5700-3
SELECT pk FROM tab0 WHERE col0 <= 642 AND col3 > 287 OR col1 <= 864.75 OR ((col0 <= 374) AND col0 < 948 AND ((col4 >= 641.11 OR col0 BETWEEN 55 AND 643)) OR (col3 <= 64) AND (col3 IN (191,792) AND col0 = 634 AND ((((col3 >= 591))))) AND col1 >= 554.71) AND (((((col3 > 747)))) OR (col3 < 837))
----
93 values hashing to 99c99a56d2c39a0275b0b1f7c6348235

statement ok
DROP VIEW view_1_tab0_289

statement ok
DROP VIEW view_2_tab0_289

statement ok
DROP VIEW view_3_tab0_289

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_289') DROP VIEW view_1_tab1_289

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_289

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_289') DROP VIEW view_2_tab1_289

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_289

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_289') DROP VIEW view_3_tab1_289

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_289

statement ok
CREATE VIEW view_1_tab1_289 AS SELECT pk, col0 FROM tab1 WHERE col0 <= 642 AND col3 > 287 OR col1 <= 864.75 OR ((col0 <= 374) AND col0 < 948 AND ((col4 >= 641.11 OR col0 BETWEEN 55 AND 643)) OR (col3 <= 64) AND (col3 IN (191,792) AND col0 = 634 AND ((((col3 >= 591))))) AND col1 >= 554.71) AND (((((col3 > 747)))) OR (col3 < 837))

statement ok
CREATE VIEW view_2_tab1_289 AS SELECT pk, col0 FROM tab1 WHERE NOT (col0 <= 642 AND col3 > 287 OR col1 <= 864.75 OR ((col0 <= 374) AND col0 < 948 AND ((col4 >= 641.11 OR col0 BETWEEN 55 AND 643)) OR (col3 <= 64) AND (col3 IN (191,792) AND col0 = 634 AND ((((col3 >= 591))))) AND col1 >= 554.71) AND (((((col3 > 747)))) OR (col3 < 837)))

statement ok
CREATE VIEW view_3_tab1_289 AS SELECT pk FROM view_1_tab1_289

query II rowsort label-5700-1
SELECT pk, col0 FROM tab1 WHERE col0 <= 642 AND col3 > 287 OR col1 <= 864.75 OR ((col0 <= 374) AND col0 < 948 AND ((col4 >= 641.11 OR col0 BETWEEN 55 AND 643)) OR (col3 <= 64) AND (col3 IN (191,792) AND col0 = 634 AND ((((col3 >= 591))))) AND col1 >= 554.71) AND (((((col3 > 747)))) OR (col3 < 837))
----
186 values hashing to 04232a558c5acb08e3525794b5c606f4

query II rowsort label-5700-2
SELECT pk, col0 FROM tab1 WHERE NOT (col0 <= 642 AND col3 > 287 OR col1 <= 864.75 OR ((col0 <= 374) AND col0 < 948 AND ((col4 >= 641.11 OR col0 BETWEEN 55 AND 643)) OR (col3 <= 64) AND (col3 IN (191,792) AND col0 = 634 AND ((((col3 >= 591))))) AND col1 >= 554.71) AND (((((col3 > 747)))) OR (col3 < 837)))
----
14 values hashing to 15d7f03bbbb55a936d258f47ee2e7e0f

query II rowsort label-5700-1
SELECT pk, col0 FROM view_1_tab1_289
----
186 values hashing to 04232a558c5acb08e3525794b5c606f4

query II rowsort label-5700-2
SELECT pk, col0 FROM view_2_tab1_289
----
14 values hashing to 15d7f03bbbb55a936d258f47ee2e7e0f

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col0 <= 642 AND col3 > 287 OR col1 <= 864.75 OR ((col0 <= 374) AND col0 < 948 AND ((col4 >= 641.11 OR col0 BETWEEN 55 AND 643)) OR (col3 <= 64) AND (col3 IN (191,792) AND col0 = 634 AND ((((col3 >= 591))))) AND col1 >= 554.71) AND (((((col3 > 747)))) OR (col3 < 837)) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col0 <= 642 AND col3 > 287 OR col1 <= 864.75 OR ((col0 <= 374) AND col0 < 948 AND ((col4 >= 641.11 OR col0 BETWEEN 55 AND 643)) OR (col3 <= 64) AND (col3 IN (191,792) AND col0 = 634 AND ((((col3 >= 591))))) AND col1 >= 554.71) AND (((((col3 > 747)))) OR (col3 < 837)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_289 UNION ALL SELECT pk, col0 FROM view_2_tab1_289
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col0 <= 642 AND col3 > 287 OR col1 <= 864.75 OR ((col0 <= 374) AND col0 < 948 AND ((col4 >= 641.11 OR col0 BETWEEN 55 AND 643)) OR (col3 <= 64) AND (col3 IN (191,792) AND col0 = 634 AND ((((col3 >= 591))))) AND col1 >= 554.71) AND (((((col3 > 747)))) OR (col3 < 837)) UNION SELECT pk, col0 FROM tab1 WHERE NOT (col0 <= 642 AND col3 > 287 OR col1 <= 864.75 OR ((col0 <= 374) AND col0 < 948 AND ((col4 >= 641.11 OR col0 BETWEEN 55 AND 643)) OR (col3 <= 64) AND (col3 IN (191,792) AND col0 = 634 AND ((((col3 >= 591))))) AND col1 >= 554.71) AND (((((col3 > 747)))) OR (col3 < 837)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_289 UNION SELECT pk, col0 FROM view_2_tab1_289
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-5700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col0 <= 642 AND col3 > 287 OR col1 <= 864.75 OR ((col0 <= 374) AND col0 < 948 AND ((col4 >= 641.11 OR col0 BETWEEN 55 AND 643)) OR (col3 <= 64) AND (col3 IN (191,792) AND col0 = 634 AND ((((col3 >= 591))))) AND col1 >= 554.71) AND (((((col3 > 747)))) OR (col3 < 837)) ) AS tab1_289
----
93 values hashing to 99c99a56d2c39a0275b0b1f7c6348235

query I rowsort label-5700-3
SELECT * FROM view_3_tab1_289
----
93 values hashing to 99c99a56d2c39a0275b0b1f7c6348235

query I rowsort label-5700-3
SELECT pk FROM tab1 WHERE col0 <= 642 AND col3 > 287 OR col1 <= 864.75 OR ((col0 <= 374) AND col0 < 948 AND ((col4 >= 641.11 OR col0 BETWEEN 55 AND 643)) OR (col3 <= 64) AND (col3 IN (191,792) AND col0 = 634 AND ((((col3 >= 591))))) AND col1 >= 554.71) AND (((((col3 > 747)))) OR (col3 < 837))
----
93 values hashing to 99c99a56d2c39a0275b0b1f7c6348235

statement ok
DROP VIEW view_1_tab1_289

statement ok
DROP VIEW view_2_tab1_289

statement ok
DROP VIEW view_3_tab1_289

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_289') DROP VIEW view_1_tab2_289

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_289

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_289') DROP VIEW view_2_tab2_289

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_289

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_289') DROP VIEW view_3_tab2_289

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_289

statement ok
CREATE VIEW view_1_tab2_289 AS SELECT pk, col0 FROM tab2 WHERE col0 <= 642 AND col3 > 287 OR col1 <= 864.75 OR ((col0 <= 374) AND col0 < 948 AND ((col4 >= 641.11 OR col0 BETWEEN 55 AND 643)) OR (col3 <= 64) AND (col3 IN (191,792) AND col0 = 634 AND ((((col3 >= 591))))) AND col1 >= 554.71) AND (((((col3 > 747)))) OR (col3 < 837))

statement ok
CREATE VIEW view_2_tab2_289 AS SELECT pk, col0 FROM tab2 WHERE NOT (col0 <= 642 AND col3 > 287 OR col1 <= 864.75 OR ((col0 <= 374) AND col0 < 948 AND ((col4 >= 641.11 OR col0 BETWEEN 55 AND 643)) OR (col3 <= 64) AND (col3 IN (191,792) AND col0 = 634 AND ((((col3 >= 591))))) AND col1 >= 554.71) AND (((((col3 > 747)))) OR (col3 < 837)))

statement ok
CREATE VIEW view_3_tab2_289 AS SELECT pk FROM view_1_tab2_289

query II rowsort label-5700-1
SELECT pk, col0 FROM tab2 WHERE col0 <= 642 AND col3 > 287 OR col1 <= 864.75 OR ((col0 <= 374) AND col0 < 948 AND ((col4 >= 641.11 OR col0 BETWEEN 55 AND 643)) OR (col3 <= 64) AND (col3 IN (191,792) AND col0 = 634 AND ((((col3 >= 591))))) AND col1 >= 554.71) AND (((((col3 > 747)))) OR (col3 < 837))
----
186 values hashing to 04232a558c5acb08e3525794b5c606f4

query II rowsort label-5700-2
SELECT pk, col0 FROM tab2 WHERE NOT (col0 <= 642 AND col3 > 287 OR col1 <= 864.75 OR ((col0 <= 374) AND col0 < 948 AND ((col4 >= 641.11 OR col0 BETWEEN 55 AND 643)) OR (col3 <= 64) AND (col3 IN (191,792) AND col0 = 634 AND ((((col3 >= 591))))) AND col1 >= 554.71) AND (((((col3 > 747)))) OR (col3 < 837)))
----
14 values hashing to 15d7f03bbbb55a936d258f47ee2e7e0f

query II rowsort label-5700-1
SELECT pk, col0 FROM view_1_tab2_289
----
186 values hashing to 04232a558c5acb08e3525794b5c606f4

query II rowsort label-5700-2
SELECT pk, col0 FROM view_2_tab2_289
----
14 values hashing to 15d7f03bbbb55a936d258f47ee2e7e0f

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col0 <= 642 AND col3 > 287 OR col1 <= 864.75 OR ((col0 <= 374) AND col0 < 948 AND ((col4 >= 641.11 OR col0 BETWEEN 55 AND 643)) OR (col3 <= 64) AND (col3 IN (191,792) AND col0 = 634 AND ((((col3 >= 591))))) AND col1 >= 554.71) AND (((((col3 > 747)))) OR (col3 < 837)) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col0 <= 642 AND col3 > 287 OR col1 <= 864.75 OR ((col0 <= 374) AND col0 < 948 AND ((col4 >= 641.11 OR col0 BETWEEN 55 AND 643)) OR (col3 <= 64) AND (col3 IN (191,792) AND col0 = 634 AND ((((col3 >= 591))))) AND col1 >= 554.71) AND (((((col3 > 747)))) OR (col3 < 837)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_289 UNION ALL SELECT pk, col0 FROM view_2_tab2_289
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col0 <= 642 AND col3 > 287 OR col1 <= 864.75 OR ((col0 <= 374) AND col0 < 948 AND ((col4 >= 641.11 OR col0 BETWEEN 55 AND 643)) OR (col3 <= 64) AND (col3 IN (191,792) AND col0 = 634 AND ((((col3 >= 591))))) AND col1 >= 554.71) AND (((((col3 > 747)))) OR (col3 < 837)) UNION SELECT pk, col0 FROM tab2 WHERE NOT (col0 <= 642 AND col3 > 287 OR col1 <= 864.75 OR ((col0 <= 374) AND col0 < 948 AND ((col4 >= 641.11 OR col0 BETWEEN 55 AND 643)) OR (col3 <= 64) AND (col3 IN (191,792) AND col0 = 634 AND ((((col3 >= 591))))) AND col1 >= 554.71) AND (((((col3 > 747)))) OR (col3 < 837)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_289 UNION SELECT pk, col0 FROM view_2_tab2_289
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-5700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col0 <= 642 AND col3 > 287 OR col1 <= 864.75 OR ((col0 <= 374) AND col0 < 948 AND ((col4 >= 641.11 OR col0 BETWEEN 55 AND 643)) OR (col3 <= 64) AND (col3 IN (191,792) AND col0 = 634 AND ((((col3 >= 591))))) AND col1 >= 554.71) AND (((((col3 > 747)))) OR (col3 < 837)) ) AS tab2_289
----
93 values hashing to 99c99a56d2c39a0275b0b1f7c6348235

query I rowsort label-5700-3
SELECT * FROM view_3_tab2_289
----
93 values hashing to 99c99a56d2c39a0275b0b1f7c6348235

query I rowsort label-5700-3
SELECT pk FROM tab2 WHERE col0 <= 642 AND col3 > 287 OR col1 <= 864.75 OR ((col0 <= 374) AND col0 < 948 AND ((col4 >= 641.11 OR col0 BETWEEN 55 AND 643)) OR (col3 <= 64) AND (col3 IN (191,792) AND col0 = 634 AND ((((col3 >= 591))))) AND col1 >= 554.71) AND (((((col3 > 747)))) OR (col3 < 837))
----
93 values hashing to 99c99a56d2c39a0275b0b1f7c6348235

statement ok
DROP VIEW view_1_tab2_289

statement ok
DROP VIEW view_2_tab2_289

statement ok
DROP VIEW view_3_tab2_289

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_289') DROP VIEW view_1_tab3_289

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_289

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_289') DROP VIEW view_2_tab3_289

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_289

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_289') DROP VIEW view_3_tab3_289

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_289

statement ok
CREATE VIEW view_1_tab3_289 AS SELECT pk, col0 FROM tab3 WHERE col0 <= 642 AND col3 > 287 OR col1 <= 864.75 OR ((col0 <= 374) AND col0 < 948 AND ((col4 >= 641.11 OR col0 BETWEEN 55 AND 643)) OR (col3 <= 64) AND (col3 IN (191,792) AND col0 = 634 AND ((((col3 >= 591))))) AND col1 >= 554.71) AND (((((col3 > 747)))) OR (col3 < 837))

statement ok
CREATE VIEW view_2_tab3_289 AS SELECT pk, col0 FROM tab3 WHERE NOT (col0 <= 642 AND col3 > 287 OR col1 <= 864.75 OR ((col0 <= 374) AND col0 < 948 AND ((col4 >= 641.11 OR col0 BETWEEN 55 AND 643)) OR (col3 <= 64) AND (col3 IN (191,792) AND col0 = 634 AND ((((col3 >= 591))))) AND col1 >= 554.71) AND (((((col3 > 747)))) OR (col3 < 837)))

statement ok
CREATE VIEW view_3_tab3_289 AS SELECT pk FROM view_1_tab3_289

query II rowsort label-5700-1
SELECT pk, col0 FROM tab3 WHERE col0 <= 642 AND col3 > 287 OR col1 <= 864.75 OR ((col0 <= 374) AND col0 < 948 AND ((col4 >= 641.11 OR col0 BETWEEN 55 AND 643)) OR (col3 <= 64) AND (col3 IN (191,792) AND col0 = 634 AND ((((col3 >= 591))))) AND col1 >= 554.71) AND (((((col3 > 747)))) OR (col3 < 837))
----
186 values hashing to 04232a558c5acb08e3525794b5c606f4

query II rowsort label-5700-2
SELECT pk, col0 FROM tab3 WHERE NOT (col0 <= 642 AND col3 > 287 OR col1 <= 864.75 OR ((col0 <= 374) AND col0 < 948 AND ((col4 >= 641.11 OR col0 BETWEEN 55 AND 643)) OR (col3 <= 64) AND (col3 IN (191,792) AND col0 = 634 AND ((((col3 >= 591))))) AND col1 >= 554.71) AND (((((col3 > 747)))) OR (col3 < 837)))
----
14 values hashing to 15d7f03bbbb55a936d258f47ee2e7e0f

query II rowsort label-5700-1
SELECT pk, col0 FROM view_1_tab3_289
----
186 values hashing to 04232a558c5acb08e3525794b5c606f4

query II rowsort label-5700-2
SELECT pk, col0 FROM view_2_tab3_289
----
14 values hashing to 15d7f03bbbb55a936d258f47ee2e7e0f

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col0 <= 642 AND col3 > 287 OR col1 <= 864.75 OR ((col0 <= 374) AND col0 < 948 AND ((col4 >= 641.11 OR col0 BETWEEN 55 AND 643)) OR (col3 <= 64) AND (col3 IN (191,792) AND col0 = 634 AND ((((col3 >= 591))))) AND col1 >= 554.71) AND (((((col3 > 747)))) OR (col3 < 837)) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col0 <= 642 AND col3 > 287 OR col1 <= 864.75 OR ((col0 <= 374) AND col0 < 948 AND ((col4 >= 641.11 OR col0 BETWEEN 55 AND 643)) OR (col3 <= 64) AND (col3 IN (191,792) AND col0 = 634 AND ((((col3 >= 591))))) AND col1 >= 554.71) AND (((((col3 > 747)))) OR (col3 < 837)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_289 UNION ALL SELECT pk, col0 FROM view_2_tab3_289
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col0 <= 642 AND col3 > 287 OR col1 <= 864.75 OR ((col0 <= 374) AND col0 < 948 AND ((col4 >= 641.11 OR col0 BETWEEN 55 AND 643)) OR (col3 <= 64) AND (col3 IN (191,792) AND col0 = 634 AND ((((col3 >= 591))))) AND col1 >= 554.71) AND (((((col3 > 747)))) OR (col3 < 837)) UNION SELECT pk, col0 FROM tab3 WHERE NOT (col0 <= 642 AND col3 > 287 OR col1 <= 864.75 OR ((col0 <= 374) AND col0 < 948 AND ((col4 >= 641.11 OR col0 BETWEEN 55 AND 643)) OR (col3 <= 64) AND (col3 IN (191,792) AND col0 = 634 AND ((((col3 >= 591))))) AND col1 >= 554.71) AND (((((col3 > 747)))) OR (col3 < 837)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_289 UNION SELECT pk, col0 FROM view_2_tab3_289
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-5700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col0 <= 642 AND col3 > 287 OR col1 <= 864.75 OR ((col0 <= 374) AND col0 < 948 AND ((col4 >= 641.11 OR col0 BETWEEN 55 AND 643)) OR (col3 <= 64) AND (col3 IN (191,792) AND col0 = 634 AND ((((col3 >= 591))))) AND col1 >= 554.71) AND (((((col3 > 747)))) OR (col3 < 837)) ) AS tab3_289
----
93 values hashing to 99c99a56d2c39a0275b0b1f7c6348235

query I rowsort label-5700-3
SELECT * FROM view_3_tab3_289
----
93 values hashing to 99c99a56d2c39a0275b0b1f7c6348235

query I rowsort label-5700-3
SELECT pk FROM tab3 WHERE col0 <= 642 AND col3 > 287 OR col1 <= 864.75 OR ((col0 <= 374) AND col0 < 948 AND ((col4 >= 641.11 OR col0 BETWEEN 55 AND 643)) OR (col3 <= 64) AND (col3 IN (191,792) AND col0 = 634 AND ((((col3 >= 591))))) AND col1 >= 554.71) AND (((((col3 > 747)))) OR (col3 < 837))
----
93 values hashing to 99c99a56d2c39a0275b0b1f7c6348235

statement ok
DROP VIEW view_1_tab3_289

statement ok
DROP VIEW view_2_tab3_289

statement ok
DROP VIEW view_3_tab3_289

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_289') DROP VIEW view_1_tab4_289

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_289

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_289') DROP VIEW view_2_tab4_289

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_289

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_289') DROP VIEW view_3_tab4_289

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_289

statement ok
CREATE VIEW view_1_tab4_289 AS SELECT pk, col0 FROM tab4 WHERE col0 <= 642 AND col3 > 287 OR col1 <= 864.75 OR ((col0 <= 374) AND col0 < 948 AND ((col4 >= 641.11 OR col0 BETWEEN 55 AND 643)) OR (col3 <= 64) AND (col3 IN (191,792) AND col0 = 634 AND ((((col3 >= 591))))) AND col1 >= 554.71) AND (((((col3 > 747)))) OR (col3 < 837))

statement ok
CREATE VIEW view_2_tab4_289 AS SELECT pk, col0 FROM tab4 WHERE NOT (col0 <= 642 AND col3 > 287 OR col1 <= 864.75 OR ((col0 <= 374) AND col0 < 948 AND ((col4 >= 641.11 OR col0 BETWEEN 55 AND 643)) OR (col3 <= 64) AND (col3 IN (191,792) AND col0 = 634 AND ((((col3 >= 591))))) AND col1 >= 554.71) AND (((((col3 > 747)))) OR (col3 < 837)))

statement ok
CREATE VIEW view_3_tab4_289 AS SELECT pk FROM view_1_tab4_289

query II rowsort label-5700-1
SELECT pk, col0 FROM tab4 WHERE col0 <= 642 AND col3 > 287 OR col1 <= 864.75 OR ((col0 <= 374) AND col0 < 948 AND ((col4 >= 641.11 OR col0 BETWEEN 55 AND 643)) OR (col3 <= 64) AND (col3 IN (191,792) AND col0 = 634 AND ((((col3 >= 591))))) AND col1 >= 554.71) AND (((((col3 > 747)))) OR (col3 < 837))
----
186 values hashing to 04232a558c5acb08e3525794b5c606f4

query II rowsort label-5700-2
SELECT pk, col0 FROM tab4 WHERE NOT (col0 <= 642 AND col3 > 287 OR col1 <= 864.75 OR ((col0 <= 374) AND col0 < 948 AND ((col4 >= 641.11 OR col0 BETWEEN 55 AND 643)) OR (col3 <= 64) AND (col3 IN (191,792) AND col0 = 634 AND ((((col3 >= 591))))) AND col1 >= 554.71) AND (((((col3 > 747)))) OR (col3 < 837)))
----
14 values hashing to 15d7f03bbbb55a936d258f47ee2e7e0f

query II rowsort label-5700-1
SELECT pk, col0 FROM view_1_tab4_289
----
186 values hashing to 04232a558c5acb08e3525794b5c606f4

query II rowsort label-5700-2
SELECT pk, col0 FROM view_2_tab4_289
----
14 values hashing to 15d7f03bbbb55a936d258f47ee2e7e0f

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col0 <= 642 AND col3 > 287 OR col1 <= 864.75 OR ((col0 <= 374) AND col0 < 948 AND ((col4 >= 641.11 OR col0 BETWEEN 55 AND 643)) OR (col3 <= 64) AND (col3 IN (191,792) AND col0 = 634 AND ((((col3 >= 591))))) AND col1 >= 554.71) AND (((((col3 > 747)))) OR (col3 < 837)) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col0 <= 642 AND col3 > 287 OR col1 <= 864.75 OR ((col0 <= 374) AND col0 < 948 AND ((col4 >= 641.11 OR col0 BETWEEN 55 AND 643)) OR (col3 <= 64) AND (col3 IN (191,792) AND col0 = 634 AND ((((col3 >= 591))))) AND col1 >= 554.71) AND (((((col3 > 747)))) OR (col3 < 837)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_289 UNION ALL SELECT pk, col0 FROM view_2_tab4_289
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col0 <= 642 AND col3 > 287 OR col1 <= 864.75 OR ((col0 <= 374) AND col0 < 948 AND ((col4 >= 641.11 OR col0 BETWEEN 55 AND 643)) OR (col3 <= 64) AND (col3 IN (191,792) AND col0 = 634 AND ((((col3 >= 591))))) AND col1 >= 554.71) AND (((((col3 > 747)))) OR (col3 < 837)) UNION SELECT pk, col0 FROM tab4 WHERE NOT (col0 <= 642 AND col3 > 287 OR col1 <= 864.75 OR ((col0 <= 374) AND col0 < 948 AND ((col4 >= 641.11 OR col0 BETWEEN 55 AND 643)) OR (col3 <= 64) AND (col3 IN (191,792) AND col0 = 634 AND ((((col3 >= 591))))) AND col1 >= 554.71) AND (((((col3 > 747)))) OR (col3 < 837)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_289 UNION SELECT pk, col0 FROM view_2_tab4_289
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-5700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col0 <= 642 AND col3 > 287 OR col1 <= 864.75 OR ((col0 <= 374) AND col0 < 948 AND ((col4 >= 641.11 OR col0 BETWEEN 55 AND 643)) OR (col3 <= 64) AND (col3 IN (191,792) AND col0 = 634 AND ((((col3 >= 591))))) AND col1 >= 554.71) AND (((((col3 > 747)))) OR (col3 < 837)) ) AS tab4_289
----
93 values hashing to 99c99a56d2c39a0275b0b1f7c6348235

query I rowsort label-5700-3
SELECT * FROM view_3_tab4_289
----
93 values hashing to 99c99a56d2c39a0275b0b1f7c6348235

query I rowsort label-5700-3
SELECT pk FROM tab4 WHERE col0 <= 642 AND col3 > 287 OR col1 <= 864.75 OR ((col0 <= 374) AND col0 < 948 AND ((col4 >= 641.11 OR col0 BETWEEN 55 AND 643)) OR (col3 <= 64) AND (col3 IN (191,792) AND col0 = 634 AND ((((col3 >= 591))))) AND col1 >= 554.71) AND (((((col3 > 747)))) OR (col3 < 837))
----
93 values hashing to 99c99a56d2c39a0275b0b1f7c6348235

statement ok
DROP VIEW view_1_tab4_289

statement ok
DROP VIEW view_2_tab4_289

statement ok
DROP VIEW view_3_tab4_289

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_290') DROP VIEW view_1_tab0_290

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_290

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_290') DROP VIEW view_2_tab0_290

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_290

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_290') DROP VIEW view_3_tab0_290

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_290

statement ok
CREATE VIEW view_1_tab0_290 AS SELECT pk, col0 FROM tab0 WHERE (((col3 <= 612) OR (((col3 IS NULL)) OR col0 >= 43) AND col0 >= 977 OR (col4 = 341.48 OR (col4 = 376.78) AND (col1 > 719.86) OR ((col0 = 234 OR col3 >= 213)) OR (col3 IS NULL)) OR (col4 BETWEEN 832.17 AND 882.42) AND col4 < 158.51))

statement ok
CREATE VIEW view_2_tab0_290 AS SELECT pk, col0 FROM tab0 WHERE NOT ((((col3 <= 612) OR (((col3 IS NULL)) OR col0 >= 43) AND col0 >= 977 OR (col4 = 341.48 OR (col4 = 376.78) AND (col1 > 719.86) OR ((col0 = 234 OR col3 >= 213)) OR (col3 IS NULL)) OR (col4 BETWEEN 832.17 AND 882.42) AND col4 < 158.51)))

statement ok
CREATE VIEW view_3_tab0_290 AS SELECT pk FROM view_1_tab0_290

query II rowsort label-5800-1
SELECT pk, col0 FROM tab0 WHERE (((col3 <= 612) OR (((col3 IS NULL)) OR col0 >= 43) AND col0 >= 977 OR (col4 = 341.48 OR (col4 = 376.78) AND (col1 > 719.86) OR ((col0 = 234 OR col3 >= 213)) OR (col3 IS NULL)) OR (col4 BETWEEN 832.17 AND 882.42) AND col4 < 158.51))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-5800-2
SELECT pk, col0 FROM tab0 WHERE NOT ((((col3 <= 612) OR (((col3 IS NULL)) OR col0 >= 43) AND col0 >= 977 OR (col4 = 341.48 OR (col4 = 376.78) AND (col1 > 719.86) OR ((col0 = 234 OR col3 >= 213)) OR (col3 IS NULL)) OR (col4 BETWEEN 832.17 AND 882.42) AND col4 < 158.51)))
----

query II rowsort label-5800-1
SELECT pk, col0 FROM view_1_tab0_290
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-5800-2
SELECT pk, col0 FROM view_2_tab0_290
----

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (((col3 <= 612) OR (((col3 IS NULL)) OR col0 >= 43) AND col0 >= 977 OR (col4 = 341.48 OR (col4 = 376.78) AND (col1 > 719.86) OR ((col0 = 234 OR col3 >= 213)) OR (col3 IS NULL)) OR (col4 BETWEEN 832.17 AND 882.42) AND col4 < 158.51)) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT ((((col3 <= 612) OR (((col3 IS NULL)) OR col0 >= 43) AND col0 >= 977 OR (col4 = 341.48 OR (col4 = 376.78) AND (col1 > 719.86) OR ((col0 = 234 OR col3 >= 213)) OR (col3 IS NULL)) OR (col4 BETWEEN 832.17 AND 882.42) AND col4 < 158.51)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_290 UNION ALL SELECT pk, col0 FROM view_2_tab0_290
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (((col3 <= 612) OR (((col3 IS NULL)) OR col0 >= 43) AND col0 >= 977 OR (col4 = 341.48 OR (col4 = 376.78) AND (col1 > 719.86) OR ((col0 = 234 OR col3 >= 213)) OR (col3 IS NULL)) OR (col4 BETWEEN 832.17 AND 882.42) AND col4 < 158.51)) UNION SELECT pk, col0 FROM tab0 WHERE NOT ((((col3 <= 612) OR (((col3 IS NULL)) OR col0 >= 43) AND col0 >= 977 OR (col4 = 341.48 OR (col4 = 376.78) AND (col1 > 719.86) OR ((col0 = 234 OR col3 >= 213)) OR (col3 IS NULL)) OR (col4 BETWEEN 832.17 AND 882.42) AND col4 < 158.51)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_290 UNION SELECT pk, col0 FROM view_2_tab0_290
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-5800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE (((col3 <= 612) OR (((col3 IS NULL)) OR col0 >= 43) AND col0 >= 977 OR (col4 = 341.48 OR (col4 = 376.78) AND (col1 > 719.86) OR ((col0 = 234 OR col3 >= 213)) OR (col3 IS NULL)) OR (col4 BETWEEN 832.17 AND 882.42) AND col4 < 158.51)) ) AS tab0_290
----
100 values hashing to d7fd31c3916c207fd3117332326c3f37

query I rowsort label-5800-3
SELECT * FROM view_3_tab0_290
----
100 values hashing to d7fd31c3916c207fd3117332326c3f37

query I rowsort label-5800-3
SELECT pk FROM tab0 WHERE (((col3 <= 612) OR (((col3 IS NULL)) OR col0 >= 43) AND col0 >= 977 OR (col4 = 341.48 OR (col4 = 376.78) AND (col1 > 719.86) OR ((col0 = 234 OR col3 >= 213)) OR (col3 IS NULL)) OR (col4 BETWEEN 832.17 AND 882.42) AND col4 < 158.51))
----
100 values hashing to d7fd31c3916c207fd3117332326c3f37

statement ok
DROP VIEW view_1_tab0_290

statement ok
DROP VIEW view_2_tab0_290

statement ok
DROP VIEW view_3_tab0_290

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_290') DROP VIEW view_1_tab1_290

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_290

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_290') DROP VIEW view_2_tab1_290

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_290

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_290') DROP VIEW view_3_tab1_290

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_290

statement ok
CREATE VIEW view_1_tab1_290 AS SELECT pk, col0 FROM tab1 WHERE (((col3 <= 612) OR (((col3 IS NULL)) OR col0 >= 43) AND col0 >= 977 OR (col4 = 341.48 OR (col4 = 376.78) AND (col1 > 719.86) OR ((col0 = 234 OR col3 >= 213)) OR (col3 IS NULL)) OR (col4 BETWEEN 832.17 AND 882.42) AND col4 < 158.51))

statement ok
CREATE VIEW view_2_tab1_290 AS SELECT pk, col0 FROM tab1 WHERE NOT ((((col3 <= 612) OR (((col3 IS NULL)) OR col0 >= 43) AND col0 >= 977 OR (col4 = 341.48 OR (col4 = 376.78) AND (col1 > 719.86) OR ((col0 = 234 OR col3 >= 213)) OR (col3 IS NULL)) OR (col4 BETWEEN 832.17 AND 882.42) AND col4 < 158.51)))

statement ok
CREATE VIEW view_3_tab1_290 AS SELECT pk FROM view_1_tab1_290

query II rowsort label-5800-1
SELECT pk, col0 FROM tab1 WHERE (((col3 <= 612) OR (((col3 IS NULL)) OR col0 >= 43) AND col0 >= 977 OR (col4 = 341.48 OR (col4 = 376.78) AND (col1 > 719.86) OR ((col0 = 234 OR col3 >= 213)) OR (col3 IS NULL)) OR (col4 BETWEEN 832.17 AND 882.42) AND col4 < 158.51))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-5800-2
SELECT pk, col0 FROM tab1 WHERE NOT ((((col3 <= 612) OR (((col3 IS NULL)) OR col0 >= 43) AND col0 >= 977 OR (col4 = 341.48 OR (col4 = 376.78) AND (col1 > 719.86) OR ((col0 = 234 OR col3 >= 213)) OR (col3 IS NULL)) OR (col4 BETWEEN 832.17 AND 882.42) AND col4 < 158.51)))
----

query II rowsort label-5800-1
SELECT pk, col0 FROM view_1_tab1_290
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-5800-2
SELECT pk, col0 FROM view_2_tab1_290
----

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (((col3 <= 612) OR (((col3 IS NULL)) OR col0 >= 43) AND col0 >= 977 OR (col4 = 341.48 OR (col4 = 376.78) AND (col1 > 719.86) OR ((col0 = 234 OR col3 >= 213)) OR (col3 IS NULL)) OR (col4 BETWEEN 832.17 AND 882.42) AND col4 < 158.51)) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT ((((col3 <= 612) OR (((col3 IS NULL)) OR col0 >= 43) AND col0 >= 977 OR (col4 = 341.48 OR (col4 = 376.78) AND (col1 > 719.86) OR ((col0 = 234 OR col3 >= 213)) OR (col3 IS NULL)) OR (col4 BETWEEN 832.17 AND 882.42) AND col4 < 158.51)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_290 UNION ALL SELECT pk, col0 FROM view_2_tab1_290
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (((col3 <= 612) OR (((col3 IS NULL)) OR col0 >= 43) AND col0 >= 977 OR (col4 = 341.48 OR (col4 = 376.78) AND (col1 > 719.86) OR ((col0 = 234 OR col3 >= 213)) OR (col3 IS NULL)) OR (col4 BETWEEN 832.17 AND 882.42) AND col4 < 158.51)) UNION SELECT pk, col0 FROM tab1 WHERE NOT ((((col3 <= 612) OR (((col3 IS NULL)) OR col0 >= 43) AND col0 >= 977 OR (col4 = 341.48 OR (col4 = 376.78) AND (col1 > 719.86) OR ((col0 = 234 OR col3 >= 213)) OR (col3 IS NULL)) OR (col4 BETWEEN 832.17 AND 882.42) AND col4 < 158.51)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_290 UNION SELECT pk, col0 FROM view_2_tab1_290
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-5800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE (((col3 <= 612) OR (((col3 IS NULL)) OR col0 >= 43) AND col0 >= 977 OR (col4 = 341.48 OR (col4 = 376.78) AND (col1 > 719.86) OR ((col0 = 234 OR col3 >= 213)) OR (col3 IS NULL)) OR (col4 BETWEEN 832.17 AND 882.42) AND col4 < 158.51)) ) AS tab1_290
----
100 values hashing to d7fd31c3916c207fd3117332326c3f37

query I rowsort label-5800-3
SELECT * FROM view_3_tab1_290
----
100 values hashing to d7fd31c3916c207fd3117332326c3f37

query I rowsort label-5800-3
SELECT pk FROM tab1 WHERE (((col3 <= 612) OR (((col3 IS NULL)) OR col0 >= 43) AND col0 >= 977 OR (col4 = 341.48 OR (col4 = 376.78) AND (col1 > 719.86) OR ((col0 = 234 OR col3 >= 213)) OR (col3 IS NULL)) OR (col4 BETWEEN 832.17 AND 882.42) AND col4 < 158.51))
----
100 values hashing to d7fd31c3916c207fd3117332326c3f37

statement ok
DROP VIEW view_1_tab1_290

statement ok
DROP VIEW view_2_tab1_290

statement ok
DROP VIEW view_3_tab1_290

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_290') DROP VIEW view_1_tab2_290

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_290

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_290') DROP VIEW view_2_tab2_290

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_290

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_290') DROP VIEW view_3_tab2_290

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_290

statement ok
CREATE VIEW view_1_tab2_290 AS SELECT pk, col0 FROM tab2 WHERE (((col3 <= 612) OR (((col3 IS NULL)) OR col0 >= 43) AND col0 >= 977 OR (col4 = 341.48 OR (col4 = 376.78) AND (col1 > 719.86) OR ((col0 = 234 OR col3 >= 213)) OR (col3 IS NULL)) OR (col4 BETWEEN 832.17 AND 882.42) AND col4 < 158.51))

statement ok
CREATE VIEW view_2_tab2_290 AS SELECT pk, col0 FROM tab2 WHERE NOT ((((col3 <= 612) OR (((col3 IS NULL)) OR col0 >= 43) AND col0 >= 977 OR (col4 = 341.48 OR (col4 = 376.78) AND (col1 > 719.86) OR ((col0 = 234 OR col3 >= 213)) OR (col3 IS NULL)) OR (col4 BETWEEN 832.17 AND 882.42) AND col4 < 158.51)))

statement ok
CREATE VIEW view_3_tab2_290 AS SELECT pk FROM view_1_tab2_290

query II rowsort label-5800-1
SELECT pk, col0 FROM tab2 WHERE (((col3 <= 612) OR (((col3 IS NULL)) OR col0 >= 43) AND col0 >= 977 OR (col4 = 341.48 OR (col4 = 376.78) AND (col1 > 719.86) OR ((col0 = 234 OR col3 >= 213)) OR (col3 IS NULL)) OR (col4 BETWEEN 832.17 AND 882.42) AND col4 < 158.51))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-5800-2
SELECT pk, col0 FROM tab2 WHERE NOT ((((col3 <= 612) OR (((col3 IS NULL)) OR col0 >= 43) AND col0 >= 977 OR (col4 = 341.48 OR (col4 = 376.78) AND (col1 > 719.86) OR ((col0 = 234 OR col3 >= 213)) OR (col3 IS NULL)) OR (col4 BETWEEN 832.17 AND 882.42) AND col4 < 158.51)))
----

query II rowsort label-5800-1
SELECT pk, col0 FROM view_1_tab2_290
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-5800-2
SELECT pk, col0 FROM view_2_tab2_290
----

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (((col3 <= 612) OR (((col3 IS NULL)) OR col0 >= 43) AND col0 >= 977 OR (col4 = 341.48 OR (col4 = 376.78) AND (col1 > 719.86) OR ((col0 = 234 OR col3 >= 213)) OR (col3 IS NULL)) OR (col4 BETWEEN 832.17 AND 882.42) AND col4 < 158.51)) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT ((((col3 <= 612) OR (((col3 IS NULL)) OR col0 >= 43) AND col0 >= 977 OR (col4 = 341.48 OR (col4 = 376.78) AND (col1 > 719.86) OR ((col0 = 234 OR col3 >= 213)) OR (col3 IS NULL)) OR (col4 BETWEEN 832.17 AND 882.42) AND col4 < 158.51)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_290 UNION ALL SELECT pk, col0 FROM view_2_tab2_290
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (((col3 <= 612) OR (((col3 IS NULL)) OR col0 >= 43) AND col0 >= 977 OR (col4 = 341.48 OR (col4 = 376.78) AND (col1 > 719.86) OR ((col0 = 234 OR col3 >= 213)) OR (col3 IS NULL)) OR (col4 BETWEEN 832.17 AND 882.42) AND col4 < 158.51)) UNION SELECT pk, col0 FROM tab2 WHERE NOT ((((col3 <= 612) OR (((col3 IS NULL)) OR col0 >= 43) AND col0 >= 977 OR (col4 = 341.48 OR (col4 = 376.78) AND (col1 > 719.86) OR ((col0 = 234 OR col3 >= 213)) OR (col3 IS NULL)) OR (col4 BETWEEN 832.17 AND 882.42) AND col4 < 158.51)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_290 UNION SELECT pk, col0 FROM view_2_tab2_290
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-5800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE (((col3 <= 612) OR (((col3 IS NULL)) OR col0 >= 43) AND col0 >= 977 OR (col4 = 341.48 OR (col4 = 376.78) AND (col1 > 719.86) OR ((col0 = 234 OR col3 >= 213)) OR (col3 IS NULL)) OR (col4 BETWEEN 832.17 AND 882.42) AND col4 < 158.51)) ) AS tab2_290
----
100 values hashing to d7fd31c3916c207fd3117332326c3f37

query I rowsort label-5800-3
SELECT * FROM view_3_tab2_290
----
100 values hashing to d7fd31c3916c207fd3117332326c3f37

query I rowsort label-5800-3
SELECT pk FROM tab2 WHERE (((col3 <= 612) OR (((col3 IS NULL)) OR col0 >= 43) AND col0 >= 977 OR (col4 = 341.48 OR (col4 = 376.78) AND (col1 > 719.86) OR ((col0 = 234 OR col3 >= 213)) OR (col3 IS NULL)) OR (col4 BETWEEN 832.17 AND 882.42) AND col4 < 158.51))
----
100 values hashing to d7fd31c3916c207fd3117332326c3f37

statement ok
DROP VIEW view_1_tab2_290

statement ok
DROP VIEW view_2_tab2_290

statement ok
DROP VIEW view_3_tab2_290

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_290') DROP VIEW view_1_tab3_290

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_290

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_290') DROP VIEW view_2_tab3_290

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_290

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_290') DROP VIEW view_3_tab3_290

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_290

statement ok
CREATE VIEW view_1_tab3_290 AS SELECT pk, col0 FROM tab3 WHERE (((col3 <= 612) OR (((col3 IS NULL)) OR col0 >= 43) AND col0 >= 977 OR (col4 = 341.48 OR (col4 = 376.78) AND (col1 > 719.86) OR ((col0 = 234 OR col3 >= 213)) OR (col3 IS NULL)) OR (col4 BETWEEN 832.17 AND 882.42) AND col4 < 158.51))

statement ok
CREATE VIEW view_2_tab3_290 AS SELECT pk, col0 FROM tab3 WHERE NOT ((((col3 <= 612) OR (((col3 IS NULL)) OR col0 >= 43) AND col0 >= 977 OR (col4 = 341.48 OR (col4 = 376.78) AND (col1 > 719.86) OR ((col0 = 234 OR col3 >= 213)) OR (col3 IS NULL)) OR (col4 BETWEEN 832.17 AND 882.42) AND col4 < 158.51)))

statement ok
CREATE VIEW view_3_tab3_290 AS SELECT pk FROM view_1_tab3_290

query II rowsort label-5800-1
SELECT pk, col0 FROM tab3 WHERE (((col3 <= 612) OR (((col3 IS NULL)) OR col0 >= 43) AND col0 >= 977 OR (col4 = 341.48 OR (col4 = 376.78) AND (col1 > 719.86) OR ((col0 = 234 OR col3 >= 213)) OR (col3 IS NULL)) OR (col4 BETWEEN 832.17 AND 882.42) AND col4 < 158.51))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-5800-2
SELECT pk, col0 FROM tab3 WHERE NOT ((((col3 <= 612) OR (((col3 IS NULL)) OR col0 >= 43) AND col0 >= 977 OR (col4 = 341.48 OR (col4 = 376.78) AND (col1 > 719.86) OR ((col0 = 234 OR col3 >= 213)) OR (col3 IS NULL)) OR (col4 BETWEEN 832.17 AND 882.42) AND col4 < 158.51)))
----

query II rowsort label-5800-1
SELECT pk, col0 FROM view_1_tab3_290
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-5800-2
SELECT pk, col0 FROM view_2_tab3_290
----

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (((col3 <= 612) OR (((col3 IS NULL)) OR col0 >= 43) AND col0 >= 977 OR (col4 = 341.48 OR (col4 = 376.78) AND (col1 > 719.86) OR ((col0 = 234 OR col3 >= 213)) OR (col3 IS NULL)) OR (col4 BETWEEN 832.17 AND 882.42) AND col4 < 158.51)) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT ((((col3 <= 612) OR (((col3 IS NULL)) OR col0 >= 43) AND col0 >= 977 OR (col4 = 341.48 OR (col4 = 376.78) AND (col1 > 719.86) OR ((col0 = 234 OR col3 >= 213)) OR (col3 IS NULL)) OR (col4 BETWEEN 832.17 AND 882.42) AND col4 < 158.51)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_290 UNION ALL SELECT pk, col0 FROM view_2_tab3_290
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (((col3 <= 612) OR (((col3 IS NULL)) OR col0 >= 43) AND col0 >= 977 OR (col4 = 341.48 OR (col4 = 376.78) AND (col1 > 719.86) OR ((col0 = 234 OR col3 >= 213)) OR (col3 IS NULL)) OR (col4 BETWEEN 832.17 AND 882.42) AND col4 < 158.51)) UNION SELECT pk, col0 FROM tab3 WHERE NOT ((((col3 <= 612) OR (((col3 IS NULL)) OR col0 >= 43) AND col0 >= 977 OR (col4 = 341.48 OR (col4 = 376.78) AND (col1 > 719.86) OR ((col0 = 234 OR col3 >= 213)) OR (col3 IS NULL)) OR (col4 BETWEEN 832.17 AND 882.42) AND col4 < 158.51)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_290 UNION SELECT pk, col0 FROM view_2_tab3_290
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-5800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE (((col3 <= 612) OR (((col3 IS NULL)) OR col0 >= 43) AND col0 >= 977 OR (col4 = 341.48 OR (col4 = 376.78) AND (col1 > 719.86) OR ((col0 = 234 OR col3 >= 213)) OR (col3 IS NULL)) OR (col4 BETWEEN 832.17 AND 882.42) AND col4 < 158.51)) ) AS tab3_290
----
100 values hashing to d7fd31c3916c207fd3117332326c3f37

query I rowsort label-5800-3
SELECT * FROM view_3_tab3_290
----
100 values hashing to d7fd31c3916c207fd3117332326c3f37

query I rowsort label-5800-3
SELECT pk FROM tab3 WHERE (((col3 <= 612) OR (((col3 IS NULL)) OR col0 >= 43) AND col0 >= 977 OR (col4 = 341.48 OR (col4 = 376.78) AND (col1 > 719.86) OR ((col0 = 234 OR col3 >= 213)) OR (col3 IS NULL)) OR (col4 BETWEEN 832.17 AND 882.42) AND col4 < 158.51))
----
100 values hashing to d7fd31c3916c207fd3117332326c3f37

statement ok
DROP VIEW view_1_tab3_290

statement ok
DROP VIEW view_2_tab3_290

statement ok
DROP VIEW view_3_tab3_290

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_290') DROP VIEW view_1_tab4_290

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_290

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_290') DROP VIEW view_2_tab4_290

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_290

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_290') DROP VIEW view_3_tab4_290

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_290

statement ok
CREATE VIEW view_1_tab4_290 AS SELECT pk, col0 FROM tab4 WHERE (((col3 <= 612) OR (((col3 IS NULL)) OR col0 >= 43) AND col0 >= 977 OR (col4 = 341.48 OR (col4 = 376.78) AND (col1 > 719.86) OR ((col0 = 234 OR col3 >= 213)) OR (col3 IS NULL)) OR (col4 BETWEEN 832.17 AND 882.42) AND col4 < 158.51))

statement ok
CREATE VIEW view_2_tab4_290 AS SELECT pk, col0 FROM tab4 WHERE NOT ((((col3 <= 612) OR (((col3 IS NULL)) OR col0 >= 43) AND col0 >= 977 OR (col4 = 341.48 OR (col4 = 376.78) AND (col1 > 719.86) OR ((col0 = 234 OR col3 >= 213)) OR (col3 IS NULL)) OR (col4 BETWEEN 832.17 AND 882.42) AND col4 < 158.51)))

statement ok
CREATE VIEW view_3_tab4_290 AS SELECT pk FROM view_1_tab4_290

query II rowsort label-5800-1
SELECT pk, col0 FROM tab4 WHERE (((col3 <= 612) OR (((col3 IS NULL)) OR col0 >= 43) AND col0 >= 977 OR (col4 = 341.48 OR (col4 = 376.78) AND (col1 > 719.86) OR ((col0 = 234 OR col3 >= 213)) OR (col3 IS NULL)) OR (col4 BETWEEN 832.17 AND 882.42) AND col4 < 158.51))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-5800-2
SELECT pk, col0 FROM tab4 WHERE NOT ((((col3 <= 612) OR (((col3 IS NULL)) OR col0 >= 43) AND col0 >= 977 OR (col4 = 341.48 OR (col4 = 376.78) AND (col1 > 719.86) OR ((col0 = 234 OR col3 >= 213)) OR (col3 IS NULL)) OR (col4 BETWEEN 832.17 AND 882.42) AND col4 < 158.51)))
----

query II rowsort label-5800-1
SELECT pk, col0 FROM view_1_tab4_290
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-5800-2
SELECT pk, col0 FROM view_2_tab4_290
----

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (((col3 <= 612) OR (((col3 IS NULL)) OR col0 >= 43) AND col0 >= 977 OR (col4 = 341.48 OR (col4 = 376.78) AND (col1 > 719.86) OR ((col0 = 234 OR col3 >= 213)) OR (col3 IS NULL)) OR (col4 BETWEEN 832.17 AND 882.42) AND col4 < 158.51)) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT ((((col3 <= 612) OR (((col3 IS NULL)) OR col0 >= 43) AND col0 >= 977 OR (col4 = 341.48 OR (col4 = 376.78) AND (col1 > 719.86) OR ((col0 = 234 OR col3 >= 213)) OR (col3 IS NULL)) OR (col4 BETWEEN 832.17 AND 882.42) AND col4 < 158.51)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_290 UNION ALL SELECT pk, col0 FROM view_2_tab4_290
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (((col3 <= 612) OR (((col3 IS NULL)) OR col0 >= 43) AND col0 >= 977 OR (col4 = 341.48 OR (col4 = 376.78) AND (col1 > 719.86) OR ((col0 = 234 OR col3 >= 213)) OR (col3 IS NULL)) OR (col4 BETWEEN 832.17 AND 882.42) AND col4 < 158.51)) UNION SELECT pk, col0 FROM tab4 WHERE NOT ((((col3 <= 612) OR (((col3 IS NULL)) OR col0 >= 43) AND col0 >= 977 OR (col4 = 341.48 OR (col4 = 376.78) AND (col1 > 719.86) OR ((col0 = 234 OR col3 >= 213)) OR (col3 IS NULL)) OR (col4 BETWEEN 832.17 AND 882.42) AND col4 < 158.51)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_290 UNION SELECT pk, col0 FROM view_2_tab4_290
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-5800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE (((col3 <= 612) OR (((col3 IS NULL)) OR col0 >= 43) AND col0 >= 977 OR (col4 = 341.48 OR (col4 = 376.78) AND (col1 > 719.86) OR ((col0 = 234 OR col3 >= 213)) OR (col3 IS NULL)) OR (col4 BETWEEN 832.17 AND 882.42) AND col4 < 158.51)) ) AS tab4_290
----
100 values hashing to d7fd31c3916c207fd3117332326c3f37

query I rowsort label-5800-3
SELECT * FROM view_3_tab4_290
----
100 values hashing to d7fd31c3916c207fd3117332326c3f37

query I rowsort label-5800-3
SELECT pk FROM tab4 WHERE (((col3 <= 612) OR (((col3 IS NULL)) OR col0 >= 43) AND col0 >= 977 OR (col4 = 341.48 OR (col4 = 376.78) AND (col1 > 719.86) OR ((col0 = 234 OR col3 >= 213)) OR (col3 IS NULL)) OR (col4 BETWEEN 832.17 AND 882.42) AND col4 < 158.51))
----
100 values hashing to d7fd31c3916c207fd3117332326c3f37

statement ok
DROP VIEW view_1_tab4_290

statement ok
DROP VIEW view_2_tab4_290

statement ok
DROP VIEW view_3_tab4_290

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_291') DROP VIEW view_1_tab0_291

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_291

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_291') DROP VIEW view_2_tab0_291

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_291

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_291') DROP VIEW view_3_tab0_291

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_291

statement ok
CREATE VIEW view_1_tab0_291 AS SELECT pk, col0 FROM tab0 WHERE (col3 >= 584 OR col3 <= 85)

statement ok
CREATE VIEW view_2_tab0_291 AS SELECT pk, col0 FROM tab0 WHERE NOT ((col3 >= 584 OR col3 <= 85))

statement ok
CREATE VIEW view_3_tab0_291 AS SELECT pk FROM view_1_tab0_291

query II rowsort label-5900-1
SELECT pk, col0 FROM tab0 WHERE (col3 >= 584 OR col3 <= 85)
----
94 values hashing to 7c33b4c7bcc8ffc4f1d5f3b0d7ef6097

query II rowsort label-5900-2
SELECT pk, col0 FROM tab0 WHERE NOT ((col3 >= 584 OR col3 <= 85))
----
106 values hashing to 7f2b911b5c1d15cdca7f303490d2678a

query II rowsort label-5900-1
SELECT pk, col0 FROM view_1_tab0_291
----
94 values hashing to 7c33b4c7bcc8ffc4f1d5f3b0d7ef6097

query II rowsort label-5900-2
SELECT pk, col0 FROM view_2_tab0_291
----
106 values hashing to 7f2b911b5c1d15cdca7f303490d2678a

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col3 >= 584 OR col3 <= 85) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT ((col3 >= 584 OR col3 <= 85))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_291 UNION ALL SELECT pk, col0 FROM view_2_tab0_291
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col3 >= 584 OR col3 <= 85) UNION SELECT pk, col0 FROM tab0 WHERE NOT ((col3 >= 584 OR col3 <= 85))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_291 UNION SELECT pk, col0 FROM view_2_tab0_291
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-5900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE (col3 >= 584 OR col3 <= 85) ) AS tab0_291
----
47 values hashing to 50b5dc04cbfeb74a0a833ccec72cfe75

query I rowsort label-5900-3
SELECT * FROM view_3_tab0_291
----
47 values hashing to 50b5dc04cbfeb74a0a833ccec72cfe75

query I rowsort label-5900-3
SELECT pk FROM tab0 WHERE (col3 >= 584 OR col3 <= 85)
----
47 values hashing to 50b5dc04cbfeb74a0a833ccec72cfe75

statement ok
DROP VIEW view_1_tab0_291

statement ok
DROP VIEW view_2_tab0_291

statement ok
DROP VIEW view_3_tab0_291

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_291') DROP VIEW view_1_tab1_291

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_291

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_291') DROP VIEW view_2_tab1_291

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_291

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_291') DROP VIEW view_3_tab1_291

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_291

statement ok
CREATE VIEW view_1_tab1_291 AS SELECT pk, col0 FROM tab1 WHERE (col3 >= 584 OR col3 <= 85)

statement ok
CREATE VIEW view_2_tab1_291 AS SELECT pk, col0 FROM tab1 WHERE NOT ((col3 >= 584 OR col3 <= 85))

statement ok
CREATE VIEW view_3_tab1_291 AS SELECT pk FROM view_1_tab1_291

query II rowsort label-5900-1
SELECT pk, col0 FROM tab1 WHERE (col3 >= 584 OR col3 <= 85)
----
94 values hashing to 7c33b4c7bcc8ffc4f1d5f3b0d7ef6097

query II rowsort label-5900-2
SELECT pk, col0 FROM tab1 WHERE NOT ((col3 >= 584 OR col3 <= 85))
----
106 values hashing to 7f2b911b5c1d15cdca7f303490d2678a

query II rowsort label-5900-1
SELECT pk, col0 FROM view_1_tab1_291
----
94 values hashing to 7c33b4c7bcc8ffc4f1d5f3b0d7ef6097

query II rowsort label-5900-2
SELECT pk, col0 FROM view_2_tab1_291
----
106 values hashing to 7f2b911b5c1d15cdca7f303490d2678a

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col3 >= 584 OR col3 <= 85) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT ((col3 >= 584 OR col3 <= 85))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_291 UNION ALL SELECT pk, col0 FROM view_2_tab1_291
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col3 >= 584 OR col3 <= 85) UNION SELECT pk, col0 FROM tab1 WHERE NOT ((col3 >= 584 OR col3 <= 85))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_291 UNION SELECT pk, col0 FROM view_2_tab1_291
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-5900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE (col3 >= 584 OR col3 <= 85) ) AS tab1_291
----
47 values hashing to 50b5dc04cbfeb74a0a833ccec72cfe75

query I rowsort label-5900-3
SELECT * FROM view_3_tab1_291
----
47 values hashing to 50b5dc04cbfeb74a0a833ccec72cfe75

query I rowsort label-5900-3
SELECT pk FROM tab1 WHERE (col3 >= 584 OR col3 <= 85)
----
47 values hashing to 50b5dc04cbfeb74a0a833ccec72cfe75

statement ok
DROP VIEW view_1_tab1_291

statement ok
DROP VIEW view_2_tab1_291

statement ok
DROP VIEW view_3_tab1_291

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_291') DROP VIEW view_1_tab2_291

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_291

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_291') DROP VIEW view_2_tab2_291

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_291

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_291') DROP VIEW view_3_tab2_291

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_291

statement ok
CREATE VIEW view_1_tab2_291 AS SELECT pk, col0 FROM tab2 WHERE (col3 >= 584 OR col3 <= 85)

statement ok
CREATE VIEW view_2_tab2_291 AS SELECT pk, col0 FROM tab2 WHERE NOT ((col3 >= 584 OR col3 <= 85))

statement ok
CREATE VIEW view_3_tab2_291 AS SELECT pk FROM view_1_tab2_291

query II rowsort label-5900-1
SELECT pk, col0 FROM tab2 WHERE (col3 >= 584 OR col3 <= 85)
----
94 values hashing to 7c33b4c7bcc8ffc4f1d5f3b0d7ef6097

query II rowsort label-5900-2
SELECT pk, col0 FROM tab2 WHERE NOT ((col3 >= 584 OR col3 <= 85))
----
106 values hashing to 7f2b911b5c1d15cdca7f303490d2678a

query II rowsort label-5900-1
SELECT pk, col0 FROM view_1_tab2_291
----
94 values hashing to 7c33b4c7bcc8ffc4f1d5f3b0d7ef6097

query II rowsort label-5900-2
SELECT pk, col0 FROM view_2_tab2_291
----
106 values hashing to 7f2b911b5c1d15cdca7f303490d2678a

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col3 >= 584 OR col3 <= 85) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT ((col3 >= 584 OR col3 <= 85))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_291 UNION ALL SELECT pk, col0 FROM view_2_tab2_291
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col3 >= 584 OR col3 <= 85) UNION SELECT pk, col0 FROM tab2 WHERE NOT ((col3 >= 584 OR col3 <= 85))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_291 UNION SELECT pk, col0 FROM view_2_tab2_291
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-5900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE (col3 >= 584 OR col3 <= 85) ) AS tab2_291
----
47 values hashing to 50b5dc04cbfeb74a0a833ccec72cfe75

query I rowsort label-5900-3
SELECT * FROM view_3_tab2_291
----
47 values hashing to 50b5dc04cbfeb74a0a833ccec72cfe75

query I rowsort label-5900-3
SELECT pk FROM tab2 WHERE (col3 >= 584 OR col3 <= 85)
----
47 values hashing to 50b5dc04cbfeb74a0a833ccec72cfe75

statement ok
DROP VIEW view_1_tab2_291

statement ok
DROP VIEW view_2_tab2_291

statement ok
DROP VIEW view_3_tab2_291

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_291') DROP VIEW view_1_tab3_291

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_291

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_291') DROP VIEW view_2_tab3_291

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_291

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_291') DROP VIEW view_3_tab3_291

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_291

statement ok
CREATE VIEW view_1_tab3_291 AS SELECT pk, col0 FROM tab3 WHERE (col3 >= 584 OR col3 <= 85)

statement ok
CREATE VIEW view_2_tab3_291 AS SELECT pk, col0 FROM tab3 WHERE NOT ((col3 >= 584 OR col3 <= 85))

statement ok
CREATE VIEW view_3_tab3_291 AS SELECT pk FROM view_1_tab3_291

query II rowsort label-5900-1
SELECT pk, col0 FROM tab3 WHERE (col3 >= 584 OR col3 <= 85)
----
94 values hashing to 7c33b4c7bcc8ffc4f1d5f3b0d7ef6097

query II rowsort label-5900-2
SELECT pk, col0 FROM tab3 WHERE NOT ((col3 >= 584 OR col3 <= 85))
----
106 values hashing to 7f2b911b5c1d15cdca7f303490d2678a

query II rowsort label-5900-1
SELECT pk, col0 FROM view_1_tab3_291
----
94 values hashing to 7c33b4c7bcc8ffc4f1d5f3b0d7ef6097

query II rowsort label-5900-2
SELECT pk, col0 FROM view_2_tab3_291
----
106 values hashing to 7f2b911b5c1d15cdca7f303490d2678a

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col3 >= 584 OR col3 <= 85) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT ((col3 >= 584 OR col3 <= 85))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_291 UNION ALL SELECT pk, col0 FROM view_2_tab3_291
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col3 >= 584 OR col3 <= 85) UNION SELECT pk, col0 FROM tab3 WHERE NOT ((col3 >= 584 OR col3 <= 85))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_291 UNION SELECT pk, col0 FROM view_2_tab3_291
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-5900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE (col3 >= 584 OR col3 <= 85) ) AS tab3_291
----
47 values hashing to 50b5dc04cbfeb74a0a833ccec72cfe75

query I rowsort label-5900-3
SELECT * FROM view_3_tab3_291
----
47 values hashing to 50b5dc04cbfeb74a0a833ccec72cfe75

query I rowsort label-5900-3
SELECT pk FROM tab3 WHERE (col3 >= 584 OR col3 <= 85)
----
47 values hashing to 50b5dc04cbfeb74a0a833ccec72cfe75

statement ok
DROP VIEW view_1_tab3_291

statement ok
DROP VIEW view_2_tab3_291

statement ok
DROP VIEW view_3_tab3_291

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_291') DROP VIEW view_1_tab4_291

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_291

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_291') DROP VIEW view_2_tab4_291

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_291

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_291') DROP VIEW view_3_tab4_291

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_291

statement ok
CREATE VIEW view_1_tab4_291 AS SELECT pk, col0 FROM tab4 WHERE (col3 >= 584 OR col3 <= 85)

statement ok
CREATE VIEW view_2_tab4_291 AS SELECT pk, col0 FROM tab4 WHERE NOT ((col3 >= 584 OR col3 <= 85))

statement ok
CREATE VIEW view_3_tab4_291 AS SELECT pk FROM view_1_tab4_291

query II rowsort label-5900-1
SELECT pk, col0 FROM tab4 WHERE (col3 >= 584 OR col3 <= 85)
----
94 values hashing to 7c33b4c7bcc8ffc4f1d5f3b0d7ef6097

query II rowsort label-5900-2
SELECT pk, col0 FROM tab4 WHERE NOT ((col3 >= 584 OR col3 <= 85))
----
106 values hashing to 7f2b911b5c1d15cdca7f303490d2678a

query II rowsort label-5900-1
SELECT pk, col0 FROM view_1_tab4_291
----
94 values hashing to 7c33b4c7bcc8ffc4f1d5f3b0d7ef6097

query II rowsort label-5900-2
SELECT pk, col0 FROM view_2_tab4_291
----
106 values hashing to 7f2b911b5c1d15cdca7f303490d2678a

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col3 >= 584 OR col3 <= 85) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT ((col3 >= 584 OR col3 <= 85))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_291 UNION ALL SELECT pk, col0 FROM view_2_tab4_291
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col3 >= 584 OR col3 <= 85) UNION SELECT pk, col0 FROM tab4 WHERE NOT ((col3 >= 584 OR col3 <= 85))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_291 UNION SELECT pk, col0 FROM view_2_tab4_291
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-5900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE (col3 >= 584 OR col3 <= 85) ) AS tab4_291
----
47 values hashing to 50b5dc04cbfeb74a0a833ccec72cfe75

query I rowsort label-5900-3
SELECT * FROM view_3_tab4_291
----
47 values hashing to 50b5dc04cbfeb74a0a833ccec72cfe75

query I rowsort label-5900-3
SELECT pk FROM tab4 WHERE (col3 >= 584 OR col3 <= 85)
----
47 values hashing to 50b5dc04cbfeb74a0a833ccec72cfe75

statement ok
DROP VIEW view_1_tab4_291

statement ok
DROP VIEW view_2_tab4_291

statement ok
DROP VIEW view_3_tab4_291

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_292') DROP VIEW view_1_tab0_292

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_292

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_292') DROP VIEW view_2_tab0_292

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_292

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_292') DROP VIEW view_3_tab0_292

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_292

statement ok
CREATE VIEW view_1_tab0_292 AS SELECT pk, col0 FROM tab0 WHERE (col3 >= 808 AND col0 < 749 AND col1 > 203.77 OR ((col3 > 510)))

statement ok
CREATE VIEW view_2_tab0_292 AS SELECT pk, col0 FROM tab0 WHERE NOT ((col3 >= 808 AND col0 < 749 AND col1 > 203.77 OR ((col3 > 510))))

statement ok
CREATE VIEW view_3_tab0_292 AS SELECT pk FROM view_1_tab0_292

query II rowsort label-6000-1
SELECT pk, col0 FROM tab0 WHERE (col3 >= 808 AND col0 < 749 AND col1 > 203.77 OR ((col3 > 510)))
----
98 values hashing to d99a7481c15550f72cc67913098064e1

query II rowsort label-6000-2
SELECT pk, col0 FROM tab0 WHERE NOT ((col3 >= 808 AND col0 < 749 AND col1 > 203.77 OR ((col3 > 510))))
----
102 values hashing to 76a557074dcbf59cd3a69927a4914d5d

query II rowsort label-6000-1
SELECT pk, col0 FROM view_1_tab0_292
----
98 values hashing to d99a7481c15550f72cc67913098064e1

query II rowsort label-6000-2
SELECT pk, col0 FROM view_2_tab0_292
----
102 values hashing to 76a557074dcbf59cd3a69927a4914d5d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col3 >= 808 AND col0 < 749 AND col1 > 203.77 OR ((col3 > 510))) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT ((col3 >= 808 AND col0 < 749 AND col1 > 203.77 OR ((col3 > 510))))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_292 UNION ALL SELECT pk, col0 FROM view_2_tab0_292
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col3 >= 808 AND col0 < 749 AND col1 > 203.77 OR ((col3 > 510))) UNION SELECT pk, col0 FROM tab0 WHERE NOT ((col3 >= 808 AND col0 < 749 AND col1 > 203.77 OR ((col3 > 510))))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_292 UNION SELECT pk, col0 FROM view_2_tab0_292
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-6000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE (col3 >= 808 AND col0 < 749 AND col1 > 203.77 OR ((col3 > 510))) ) AS tab0_292
----
49 values hashing to b4c3b711218c3dbcb058f6c694e28d20

query I rowsort label-6000-3
SELECT * FROM view_3_tab0_292
----
49 values hashing to b4c3b711218c3dbcb058f6c694e28d20

query I rowsort label-6000-3
SELECT pk FROM tab0 WHERE (col3 >= 808 AND col0 < 749 AND col1 > 203.77 OR ((col3 > 510)))
----
49 values hashing to b4c3b711218c3dbcb058f6c694e28d20

statement ok
DROP VIEW view_1_tab0_292

statement ok
DROP VIEW view_2_tab0_292

statement ok
DROP VIEW view_3_tab0_292

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_292') DROP VIEW view_1_tab1_292

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_292

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_292') DROP VIEW view_2_tab1_292

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_292

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_292') DROP VIEW view_3_tab1_292

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_292

statement ok
CREATE VIEW view_1_tab1_292 AS SELECT pk, col0 FROM tab1 WHERE (col3 >= 808 AND col0 < 749 AND col1 > 203.77 OR ((col3 > 510)))

statement ok
CREATE VIEW view_2_tab1_292 AS SELECT pk, col0 FROM tab1 WHERE NOT ((col3 >= 808 AND col0 < 749 AND col1 > 203.77 OR ((col3 > 510))))

statement ok
CREATE VIEW view_3_tab1_292 AS SELECT pk FROM view_1_tab1_292

query II rowsort label-6000-1
SELECT pk, col0 FROM tab1 WHERE (col3 >= 808 AND col0 < 749 AND col1 > 203.77 OR ((col3 > 510)))
----
98 values hashing to d99a7481c15550f72cc67913098064e1

query II rowsort label-6000-2
SELECT pk, col0 FROM tab1 WHERE NOT ((col3 >= 808 AND col0 < 749 AND col1 > 203.77 OR ((col3 > 510))))
----
102 values hashing to 76a557074dcbf59cd3a69927a4914d5d

query II rowsort label-6000-1
SELECT pk, col0 FROM view_1_tab1_292
----
98 values hashing to d99a7481c15550f72cc67913098064e1

query II rowsort label-6000-2
SELECT pk, col0 FROM view_2_tab1_292
----
102 values hashing to 76a557074dcbf59cd3a69927a4914d5d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col3 >= 808 AND col0 < 749 AND col1 > 203.77 OR ((col3 > 510))) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT ((col3 >= 808 AND col0 < 749 AND col1 > 203.77 OR ((col3 > 510))))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_292 UNION ALL SELECT pk, col0 FROM view_2_tab1_292
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col3 >= 808 AND col0 < 749 AND col1 > 203.77 OR ((col3 > 510))) UNION SELECT pk, col0 FROM tab1 WHERE NOT ((col3 >= 808 AND col0 < 749 AND col1 > 203.77 OR ((col3 > 510))))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_292 UNION SELECT pk, col0 FROM view_2_tab1_292
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-6000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE (col3 >= 808 AND col0 < 749 AND col1 > 203.77 OR ((col3 > 510))) ) AS tab1_292
----
49 values hashing to b4c3b711218c3dbcb058f6c694e28d20

query I rowsort label-6000-3
SELECT * FROM view_3_tab1_292
----
49 values hashing to b4c3b711218c3dbcb058f6c694e28d20

query I rowsort label-6000-3
SELECT pk FROM tab1 WHERE (col3 >= 808 AND col0 < 749 AND col1 > 203.77 OR ((col3 > 510)))
----
49 values hashing to b4c3b711218c3dbcb058f6c694e28d20

statement ok
DROP VIEW view_1_tab1_292

statement ok
DROP VIEW view_2_tab1_292

statement ok
DROP VIEW view_3_tab1_292

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_292') DROP VIEW view_1_tab2_292

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_292

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_292') DROP VIEW view_2_tab2_292

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_292

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_292') DROP VIEW view_3_tab2_292

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_292

statement ok
CREATE VIEW view_1_tab2_292 AS SELECT pk, col0 FROM tab2 WHERE (col3 >= 808 AND col0 < 749 AND col1 > 203.77 OR ((col3 > 510)))

statement ok
CREATE VIEW view_2_tab2_292 AS SELECT pk, col0 FROM tab2 WHERE NOT ((col3 >= 808 AND col0 < 749 AND col1 > 203.77 OR ((col3 > 510))))

statement ok
CREATE VIEW view_3_tab2_292 AS SELECT pk FROM view_1_tab2_292

query II rowsort label-6000-1
SELECT pk, col0 FROM tab2 WHERE (col3 >= 808 AND col0 < 749 AND col1 > 203.77 OR ((col3 > 510)))
----
98 values hashing to d99a7481c15550f72cc67913098064e1

query II rowsort label-6000-2
SELECT pk, col0 FROM tab2 WHERE NOT ((col3 >= 808 AND col0 < 749 AND col1 > 203.77 OR ((col3 > 510))))
----
102 values hashing to 76a557074dcbf59cd3a69927a4914d5d

query II rowsort label-6000-1
SELECT pk, col0 FROM view_1_tab2_292
----
98 values hashing to d99a7481c15550f72cc67913098064e1

query II rowsort label-6000-2
SELECT pk, col0 FROM view_2_tab2_292
----
102 values hashing to 76a557074dcbf59cd3a69927a4914d5d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col3 >= 808 AND col0 < 749 AND col1 > 203.77 OR ((col3 > 510))) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT ((col3 >= 808 AND col0 < 749 AND col1 > 203.77 OR ((col3 > 510))))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_292 UNION ALL SELECT pk, col0 FROM view_2_tab2_292
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col3 >= 808 AND col0 < 749 AND col1 > 203.77 OR ((col3 > 510))) UNION SELECT pk, col0 FROM tab2 WHERE NOT ((col3 >= 808 AND col0 < 749 AND col1 > 203.77 OR ((col3 > 510))))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_292 UNION SELECT pk, col0 FROM view_2_tab2_292
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-6000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE (col3 >= 808 AND col0 < 749 AND col1 > 203.77 OR ((col3 > 510))) ) AS tab2_292
----
49 values hashing to b4c3b711218c3dbcb058f6c694e28d20

query I rowsort label-6000-3
SELECT * FROM view_3_tab2_292
----
49 values hashing to b4c3b711218c3dbcb058f6c694e28d20

query I rowsort label-6000-3
SELECT pk FROM tab2 WHERE (col3 >= 808 AND col0 < 749 AND col1 > 203.77 OR ((col3 > 510)))
----
49 values hashing to b4c3b711218c3dbcb058f6c694e28d20

statement ok
DROP VIEW view_1_tab2_292

statement ok
DROP VIEW view_2_tab2_292

statement ok
DROP VIEW view_3_tab2_292

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_292') DROP VIEW view_1_tab3_292

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_292

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_292') DROP VIEW view_2_tab3_292

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_292

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_292') DROP VIEW view_3_tab3_292

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_292

statement ok
CREATE VIEW view_1_tab3_292 AS SELECT pk, col0 FROM tab3 WHERE (col3 >= 808 AND col0 < 749 AND col1 > 203.77 OR ((col3 > 510)))

statement ok
CREATE VIEW view_2_tab3_292 AS SELECT pk, col0 FROM tab3 WHERE NOT ((col3 >= 808 AND col0 < 749 AND col1 > 203.77 OR ((col3 > 510))))

statement ok
CREATE VIEW view_3_tab3_292 AS SELECT pk FROM view_1_tab3_292

query II rowsort label-6000-1
SELECT pk, col0 FROM tab3 WHERE (col3 >= 808 AND col0 < 749 AND col1 > 203.77 OR ((col3 > 510)))
----
98 values hashing to d99a7481c15550f72cc67913098064e1

query II rowsort label-6000-2
SELECT pk, col0 FROM tab3 WHERE NOT ((col3 >= 808 AND col0 < 749 AND col1 > 203.77 OR ((col3 > 510))))
----
102 values hashing to 76a557074dcbf59cd3a69927a4914d5d

query II rowsort label-6000-1
SELECT pk, col0 FROM view_1_tab3_292
----
98 values hashing to d99a7481c15550f72cc67913098064e1

query II rowsort label-6000-2
SELECT pk, col0 FROM view_2_tab3_292
----
102 values hashing to 76a557074dcbf59cd3a69927a4914d5d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col3 >= 808 AND col0 < 749 AND col1 > 203.77 OR ((col3 > 510))) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT ((col3 >= 808 AND col0 < 749 AND col1 > 203.77 OR ((col3 > 510))))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_292 UNION ALL SELECT pk, col0 FROM view_2_tab3_292
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col3 >= 808 AND col0 < 749 AND col1 > 203.77 OR ((col3 > 510))) UNION SELECT pk, col0 FROM tab3 WHERE NOT ((col3 >= 808 AND col0 < 749 AND col1 > 203.77 OR ((col3 > 510))))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_292 UNION SELECT pk, col0 FROM view_2_tab3_292
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-6000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE (col3 >= 808 AND col0 < 749 AND col1 > 203.77 OR ((col3 > 510))) ) AS tab3_292
----
49 values hashing to b4c3b711218c3dbcb058f6c694e28d20

query I rowsort label-6000-3
SELECT * FROM view_3_tab3_292
----
49 values hashing to b4c3b711218c3dbcb058f6c694e28d20

query I rowsort label-6000-3
SELECT pk FROM tab3 WHERE (col3 >= 808 AND col0 < 749 AND col1 > 203.77 OR ((col3 > 510)))
----
49 values hashing to b4c3b711218c3dbcb058f6c694e28d20

statement ok
DROP VIEW view_1_tab3_292

statement ok
DROP VIEW view_2_tab3_292

statement ok
DROP VIEW view_3_tab3_292

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_292') DROP VIEW view_1_tab4_292

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_292

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_292') DROP VIEW view_2_tab4_292

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_292

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_292') DROP VIEW view_3_tab4_292

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_292

statement ok
CREATE VIEW view_1_tab4_292 AS SELECT pk, col0 FROM tab4 WHERE (col3 >= 808 AND col0 < 749 AND col1 > 203.77 OR ((col3 > 510)))

statement ok
CREATE VIEW view_2_tab4_292 AS SELECT pk, col0 FROM tab4 WHERE NOT ((col3 >= 808 AND col0 < 749 AND col1 > 203.77 OR ((col3 > 510))))

statement ok
CREATE VIEW view_3_tab4_292 AS SELECT pk FROM view_1_tab4_292

query II rowsort label-6000-1
SELECT pk, col0 FROM tab4 WHERE (col3 >= 808 AND col0 < 749 AND col1 > 203.77 OR ((col3 > 510)))
----
98 values hashing to d99a7481c15550f72cc67913098064e1

query II rowsort label-6000-2
SELECT pk, col0 FROM tab4 WHERE NOT ((col3 >= 808 AND col0 < 749 AND col1 > 203.77 OR ((col3 > 510))))
----
102 values hashing to 76a557074dcbf59cd3a69927a4914d5d

query II rowsort label-6000-1
SELECT pk, col0 FROM view_1_tab4_292
----
98 values hashing to d99a7481c15550f72cc67913098064e1

query II rowsort label-6000-2
SELECT pk, col0 FROM view_2_tab4_292
----
102 values hashing to 76a557074dcbf59cd3a69927a4914d5d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col3 >= 808 AND col0 < 749 AND col1 > 203.77 OR ((col3 > 510))) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT ((col3 >= 808 AND col0 < 749 AND col1 > 203.77 OR ((col3 > 510))))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_292 UNION ALL SELECT pk, col0 FROM view_2_tab4_292
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col3 >= 808 AND col0 < 749 AND col1 > 203.77 OR ((col3 > 510))) UNION SELECT pk, col0 FROM tab4 WHERE NOT ((col3 >= 808 AND col0 < 749 AND col1 > 203.77 OR ((col3 > 510))))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_292 UNION SELECT pk, col0 FROM view_2_tab4_292
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-6000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE (col3 >= 808 AND col0 < 749 AND col1 > 203.77 OR ((col3 > 510))) ) AS tab4_292
----
49 values hashing to b4c3b711218c3dbcb058f6c694e28d20

query I rowsort label-6000-3
SELECT * FROM view_3_tab4_292
----
49 values hashing to b4c3b711218c3dbcb058f6c694e28d20

query I rowsort label-6000-3
SELECT pk FROM tab4 WHERE (col3 >= 808 AND col0 < 749 AND col1 > 203.77 OR ((col3 > 510)))
----
49 values hashing to b4c3b711218c3dbcb058f6c694e28d20

statement ok
DROP VIEW view_1_tab4_292

statement ok
DROP VIEW view_2_tab4_292

statement ok
DROP VIEW view_3_tab4_292

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_293') DROP VIEW view_1_tab0_293

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_293

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_293') DROP VIEW view_2_tab0_293

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_293

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_293') DROP VIEW view_3_tab0_293

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_293

statement ok
CREATE VIEW view_1_tab0_293 AS SELECT pk, col0 FROM tab0 WHERE col3 >= 328

statement ok
CREATE VIEW view_2_tab0_293 AS SELECT pk, col0 FROM tab0 WHERE NOT (col3 >= 328)

statement ok
CREATE VIEW view_3_tab0_293 AS SELECT pk FROM view_1_tab0_293

query II rowsort label-6100-1
SELECT pk, col0 FROM tab0 WHERE col3 >= 328
----
130 values hashing to 07dda3a7124ebf585317d7fa5a6b2245

query II rowsort label-6100-2
SELECT pk, col0 FROM tab0 WHERE NOT (col3 >= 328)
----
70 values hashing to fcf01a2f936ed2d6dadc3abb7f863dec

query II rowsort label-6100-1
SELECT pk, col0 FROM view_1_tab0_293
----
130 values hashing to 07dda3a7124ebf585317d7fa5a6b2245

query II rowsort label-6100-2
SELECT pk, col0 FROM view_2_tab0_293
----
70 values hashing to fcf01a2f936ed2d6dadc3abb7f863dec

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 >= 328 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col3 >= 328)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_293 UNION ALL SELECT pk, col0 FROM view_2_tab0_293
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 >= 328 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col3 >= 328)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_293 UNION SELECT pk, col0 FROM view_2_tab0_293
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-6100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col3 >= 328 ) AS tab0_293
----
65 values hashing to 21ed37aacd4a5bd30d78762f3faff5e3

query I rowsort label-6100-3
SELECT * FROM view_3_tab0_293
----
65 values hashing to 21ed37aacd4a5bd30d78762f3faff5e3

query I rowsort label-6100-3
SELECT pk FROM tab0 WHERE col3 >= 328
----
65 values hashing to 21ed37aacd4a5bd30d78762f3faff5e3

statement ok
DROP VIEW view_1_tab0_293

statement ok
DROP VIEW view_2_tab0_293

statement ok
DROP VIEW view_3_tab0_293

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_293') DROP VIEW view_1_tab1_293

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_293

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_293') DROP VIEW view_2_tab1_293

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_293

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_293') DROP VIEW view_3_tab1_293

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_293

statement ok
CREATE VIEW view_1_tab1_293 AS SELECT pk, col0 FROM tab1 WHERE col3 >= 328

statement ok
CREATE VIEW view_2_tab1_293 AS SELECT pk, col0 FROM tab1 WHERE NOT (col3 >= 328)

statement ok
CREATE VIEW view_3_tab1_293 AS SELECT pk FROM view_1_tab1_293

query II rowsort label-6100-1
SELECT pk, col0 FROM tab1 WHERE col3 >= 328
----
130 values hashing to 07dda3a7124ebf585317d7fa5a6b2245

query II rowsort label-6100-2
SELECT pk, col0 FROM tab1 WHERE NOT (col3 >= 328)
----
70 values hashing to fcf01a2f936ed2d6dadc3abb7f863dec

query II rowsort label-6100-1
SELECT pk, col0 FROM view_1_tab1_293
----
130 values hashing to 07dda3a7124ebf585317d7fa5a6b2245

query II rowsort label-6100-2
SELECT pk, col0 FROM view_2_tab1_293
----
70 values hashing to fcf01a2f936ed2d6dadc3abb7f863dec

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 >= 328 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col3 >= 328)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_293 UNION ALL SELECT pk, col0 FROM view_2_tab1_293
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 >= 328 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col3 >= 328)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_293 UNION SELECT pk, col0 FROM view_2_tab1_293
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-6100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col3 >= 328 ) AS tab1_293
----
65 values hashing to 21ed37aacd4a5bd30d78762f3faff5e3

query I rowsort label-6100-3
SELECT * FROM view_3_tab1_293
----
65 values hashing to 21ed37aacd4a5bd30d78762f3faff5e3

query I rowsort label-6100-3
SELECT pk FROM tab1 WHERE col3 >= 328
----
65 values hashing to 21ed37aacd4a5bd30d78762f3faff5e3

statement ok
DROP VIEW view_1_tab1_293

statement ok
DROP VIEW view_2_tab1_293

statement ok
DROP VIEW view_3_tab1_293

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_293') DROP VIEW view_1_tab2_293

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_293

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_293') DROP VIEW view_2_tab2_293

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_293

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_293') DROP VIEW view_3_tab2_293

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_293

statement ok
CREATE VIEW view_1_tab2_293 AS SELECT pk, col0 FROM tab2 WHERE col3 >= 328

statement ok
CREATE VIEW view_2_tab2_293 AS SELECT pk, col0 FROM tab2 WHERE NOT (col3 >= 328)

statement ok
CREATE VIEW view_3_tab2_293 AS SELECT pk FROM view_1_tab2_293

query II rowsort label-6100-1
SELECT pk, col0 FROM tab2 WHERE col3 >= 328
----
130 values hashing to 07dda3a7124ebf585317d7fa5a6b2245

query II rowsort label-6100-2
SELECT pk, col0 FROM tab2 WHERE NOT (col3 >= 328)
----
70 values hashing to fcf01a2f936ed2d6dadc3abb7f863dec

query II rowsort label-6100-1
SELECT pk, col0 FROM view_1_tab2_293
----
130 values hashing to 07dda3a7124ebf585317d7fa5a6b2245

query II rowsort label-6100-2
SELECT pk, col0 FROM view_2_tab2_293
----
70 values hashing to fcf01a2f936ed2d6dadc3abb7f863dec

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 >= 328 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col3 >= 328)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_293 UNION ALL SELECT pk, col0 FROM view_2_tab2_293
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 >= 328 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col3 >= 328)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_293 UNION SELECT pk, col0 FROM view_2_tab2_293
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-6100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col3 >= 328 ) AS tab2_293
----
65 values hashing to 21ed37aacd4a5bd30d78762f3faff5e3

query I rowsort label-6100-3
SELECT * FROM view_3_tab2_293
----
65 values hashing to 21ed37aacd4a5bd30d78762f3faff5e3

query I rowsort label-6100-3
SELECT pk FROM tab2 WHERE col3 >= 328
----
65 values hashing to 21ed37aacd4a5bd30d78762f3faff5e3

statement ok
DROP VIEW view_1_tab2_293

statement ok
DROP VIEW view_2_tab2_293

statement ok
DROP VIEW view_3_tab2_293

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_293') DROP VIEW view_1_tab3_293

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_293

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_293') DROP VIEW view_2_tab3_293

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_293

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_293') DROP VIEW view_3_tab3_293

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_293

statement ok
CREATE VIEW view_1_tab3_293 AS SELECT pk, col0 FROM tab3 WHERE col3 >= 328

statement ok
CREATE VIEW view_2_tab3_293 AS SELECT pk, col0 FROM tab3 WHERE NOT (col3 >= 328)

statement ok
CREATE VIEW view_3_tab3_293 AS SELECT pk FROM view_1_tab3_293

query II rowsort label-6100-1
SELECT pk, col0 FROM tab3 WHERE col3 >= 328
----
130 values hashing to 07dda3a7124ebf585317d7fa5a6b2245

query II rowsort label-6100-2
SELECT pk, col0 FROM tab3 WHERE NOT (col3 >= 328)
----
70 values hashing to fcf01a2f936ed2d6dadc3abb7f863dec

query II rowsort label-6100-1
SELECT pk, col0 FROM view_1_tab3_293
----
130 values hashing to 07dda3a7124ebf585317d7fa5a6b2245

query II rowsort label-6100-2
SELECT pk, col0 FROM view_2_tab3_293
----
70 values hashing to fcf01a2f936ed2d6dadc3abb7f863dec

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 >= 328 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col3 >= 328)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_293 UNION ALL SELECT pk, col0 FROM view_2_tab3_293
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 >= 328 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col3 >= 328)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_293 UNION SELECT pk, col0 FROM view_2_tab3_293
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-6100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col3 >= 328 ) AS tab3_293
----
65 values hashing to 21ed37aacd4a5bd30d78762f3faff5e3

query I rowsort label-6100-3
SELECT * FROM view_3_tab3_293
----
65 values hashing to 21ed37aacd4a5bd30d78762f3faff5e3

query I rowsort label-6100-3
SELECT pk FROM tab3 WHERE col3 >= 328
----
65 values hashing to 21ed37aacd4a5bd30d78762f3faff5e3

statement ok
DROP VIEW view_1_tab3_293

statement ok
DROP VIEW view_2_tab3_293

statement ok
DROP VIEW view_3_tab3_293

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_293') DROP VIEW view_1_tab4_293

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_293

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_293') DROP VIEW view_2_tab4_293

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_293

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_293') DROP VIEW view_3_tab4_293

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_293

statement ok
CREATE VIEW view_1_tab4_293 AS SELECT pk, col0 FROM tab4 WHERE col3 >= 328

statement ok
CREATE VIEW view_2_tab4_293 AS SELECT pk, col0 FROM tab4 WHERE NOT (col3 >= 328)

statement ok
CREATE VIEW view_3_tab4_293 AS SELECT pk FROM view_1_tab4_293

query II rowsort label-6100-1
SELECT pk, col0 FROM tab4 WHERE col3 >= 328
----
130 values hashing to 07dda3a7124ebf585317d7fa5a6b2245

query II rowsort label-6100-2
SELECT pk, col0 FROM tab4 WHERE NOT (col3 >= 328)
----
70 values hashing to fcf01a2f936ed2d6dadc3abb7f863dec

query II rowsort label-6100-1
SELECT pk, col0 FROM view_1_tab4_293
----
130 values hashing to 07dda3a7124ebf585317d7fa5a6b2245

query II rowsort label-6100-2
SELECT pk, col0 FROM view_2_tab4_293
----
70 values hashing to fcf01a2f936ed2d6dadc3abb7f863dec

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 >= 328 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col3 >= 328)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_293 UNION ALL SELECT pk, col0 FROM view_2_tab4_293
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 >= 328 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col3 >= 328)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_293 UNION SELECT pk, col0 FROM view_2_tab4_293
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-6100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col3 >= 328 ) AS tab4_293
----
65 values hashing to 21ed37aacd4a5bd30d78762f3faff5e3

query I rowsort label-6100-3
SELECT * FROM view_3_tab4_293
----
65 values hashing to 21ed37aacd4a5bd30d78762f3faff5e3

query I rowsort label-6100-3
SELECT pk FROM tab4 WHERE col3 >= 328
----
65 values hashing to 21ed37aacd4a5bd30d78762f3faff5e3

statement ok
DROP VIEW view_1_tab4_293

statement ok
DROP VIEW view_2_tab4_293

statement ok
DROP VIEW view_3_tab4_293

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_294') DROP VIEW view_1_tab0_294

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_294

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_294') DROP VIEW view_2_tab0_294

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_294

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_294') DROP VIEW view_3_tab0_294

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_294

statement ok
CREATE VIEW view_1_tab0_294 AS SELECT pk, col0 FROM tab0 WHERE col3 <= 687 AND col3 >= 393 OR col1 = 192.1

statement ok
CREATE VIEW view_2_tab0_294 AS SELECT pk, col0 FROM tab0 WHERE NOT (col3 <= 687 AND col3 >= 393 OR col1 = 192.1)

statement ok
CREATE VIEW view_3_tab0_294 AS SELECT pk FROM view_1_tab0_294

query II rowsort label-6200-1
SELECT pk, col0 FROM tab0 WHERE col3 <= 687 AND col3 >= 393 OR col1 = 192.1
----
66 values hashing to fd0798c922915cfd866e24b697598796

query II rowsort label-6200-2
SELECT pk, col0 FROM tab0 WHERE NOT (col3 <= 687 AND col3 >= 393 OR col1 = 192.1)
----
134 values hashing to 5d2c225d3ae114b98b72e1fded77e941

query II rowsort label-6200-1
SELECT pk, col0 FROM view_1_tab0_294
----
66 values hashing to fd0798c922915cfd866e24b697598796

query II rowsort label-6200-2
SELECT pk, col0 FROM view_2_tab0_294
----
134 values hashing to 5d2c225d3ae114b98b72e1fded77e941

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 <= 687 AND col3 >= 393 OR col1 = 192.1 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col3 <= 687 AND col3 >= 393 OR col1 = 192.1)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_294 UNION ALL SELECT pk, col0 FROM view_2_tab0_294
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 <= 687 AND col3 >= 393 OR col1 = 192.1 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col3 <= 687 AND col3 >= 393 OR col1 = 192.1)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_294 UNION SELECT pk, col0 FROM view_2_tab0_294
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-6200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col3 <= 687 AND col3 >= 393 OR col1 = 192.1 ) AS tab0_294
----
33 values hashing to 762e7098997b7d2cb04de7a17d92a260

query I rowsort label-6200-3
SELECT * FROM view_3_tab0_294
----
33 values hashing to 762e7098997b7d2cb04de7a17d92a260

query I rowsort label-6200-3
SELECT pk FROM tab0 WHERE col3 <= 687 AND col3 >= 393 OR col1 = 192.1
----
33 values hashing to 762e7098997b7d2cb04de7a17d92a260

statement ok
DROP VIEW view_1_tab0_294

statement ok
DROP VIEW view_2_tab0_294

statement ok
DROP VIEW view_3_tab0_294

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_294') DROP VIEW view_1_tab1_294

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_294

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_294') DROP VIEW view_2_tab1_294

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_294

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_294') DROP VIEW view_3_tab1_294

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_294

statement ok
CREATE VIEW view_1_tab1_294 AS SELECT pk, col0 FROM tab1 WHERE col3 <= 687 AND col3 >= 393 OR col1 = 192.1

statement ok
CREATE VIEW view_2_tab1_294 AS SELECT pk, col0 FROM tab1 WHERE NOT (col3 <= 687 AND col3 >= 393 OR col1 = 192.1)

statement ok
CREATE VIEW view_3_tab1_294 AS SELECT pk FROM view_1_tab1_294

query II rowsort label-6200-1
SELECT pk, col0 FROM tab1 WHERE col3 <= 687 AND col3 >= 393 OR col1 = 192.1
----
66 values hashing to fd0798c922915cfd866e24b697598796

query II rowsort label-6200-2
SELECT pk, col0 FROM tab1 WHERE NOT (col3 <= 687 AND col3 >= 393 OR col1 = 192.1)
----
134 values hashing to 5d2c225d3ae114b98b72e1fded77e941

query II rowsort label-6200-1
SELECT pk, col0 FROM view_1_tab1_294
----
66 values hashing to fd0798c922915cfd866e24b697598796

query II rowsort label-6200-2
SELECT pk, col0 FROM view_2_tab1_294
----
134 values hashing to 5d2c225d3ae114b98b72e1fded77e941

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 <= 687 AND col3 >= 393 OR col1 = 192.1 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col3 <= 687 AND col3 >= 393 OR col1 = 192.1)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_294 UNION ALL SELECT pk, col0 FROM view_2_tab1_294
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 <= 687 AND col3 >= 393 OR col1 = 192.1 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col3 <= 687 AND col3 >= 393 OR col1 = 192.1)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_294 UNION SELECT pk, col0 FROM view_2_tab1_294
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-6200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col3 <= 687 AND col3 >= 393 OR col1 = 192.1 ) AS tab1_294
----
33 values hashing to 762e7098997b7d2cb04de7a17d92a260

query I rowsort label-6200-3
SELECT * FROM view_3_tab1_294
----
33 values hashing to 762e7098997b7d2cb04de7a17d92a260

query I rowsort label-6200-3
SELECT pk FROM tab1 WHERE col3 <= 687 AND col3 >= 393 OR col1 = 192.1
----
33 values hashing to 762e7098997b7d2cb04de7a17d92a260

statement ok
DROP VIEW view_1_tab1_294

statement ok
DROP VIEW view_2_tab1_294

statement ok
DROP VIEW view_3_tab1_294

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_294') DROP VIEW view_1_tab2_294

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_294

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_294') DROP VIEW view_2_tab2_294

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_294

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_294') DROP VIEW view_3_tab2_294

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_294

statement ok
CREATE VIEW view_1_tab2_294 AS SELECT pk, col0 FROM tab2 WHERE col3 <= 687 AND col3 >= 393 OR col1 = 192.1

statement ok
CREATE VIEW view_2_tab2_294 AS SELECT pk, col0 FROM tab2 WHERE NOT (col3 <= 687 AND col3 >= 393 OR col1 = 192.1)

statement ok
CREATE VIEW view_3_tab2_294 AS SELECT pk FROM view_1_tab2_294

query II rowsort label-6200-1
SELECT pk, col0 FROM tab2 WHERE col3 <= 687 AND col3 >= 393 OR col1 = 192.1
----
66 values hashing to fd0798c922915cfd866e24b697598796

query II rowsort label-6200-2
SELECT pk, col0 FROM tab2 WHERE NOT (col3 <= 687 AND col3 >= 393 OR col1 = 192.1)
----
134 values hashing to 5d2c225d3ae114b98b72e1fded77e941

query II rowsort label-6200-1
SELECT pk, col0 FROM view_1_tab2_294
----
66 values hashing to fd0798c922915cfd866e24b697598796

query II rowsort label-6200-2
SELECT pk, col0 FROM view_2_tab2_294
----
134 values hashing to 5d2c225d3ae114b98b72e1fded77e941

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 <= 687 AND col3 >= 393 OR col1 = 192.1 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col3 <= 687 AND col3 >= 393 OR col1 = 192.1)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_294 UNION ALL SELECT pk, col0 FROM view_2_tab2_294
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 <= 687 AND col3 >= 393 OR col1 = 192.1 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col3 <= 687 AND col3 >= 393 OR col1 = 192.1)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_294 UNION SELECT pk, col0 FROM view_2_tab2_294
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-6200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col3 <= 687 AND col3 >= 393 OR col1 = 192.1 ) AS tab2_294
----
33 values hashing to 762e7098997b7d2cb04de7a17d92a260

query I rowsort label-6200-3
SELECT * FROM view_3_tab2_294
----
33 values hashing to 762e7098997b7d2cb04de7a17d92a260

query I rowsort label-6200-3
SELECT pk FROM tab2 WHERE col3 <= 687 AND col3 >= 393 OR col1 = 192.1
----
33 values hashing to 762e7098997b7d2cb04de7a17d92a260

statement ok
DROP VIEW view_1_tab2_294

statement ok
DROP VIEW view_2_tab2_294

statement ok
DROP VIEW view_3_tab2_294

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_294') DROP VIEW view_1_tab3_294

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_294

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_294') DROP VIEW view_2_tab3_294

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_294

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_294') DROP VIEW view_3_tab3_294

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_294

statement ok
CREATE VIEW view_1_tab3_294 AS SELECT pk, col0 FROM tab3 WHERE col3 <= 687 AND col3 >= 393 OR col1 = 192.1

statement ok
CREATE VIEW view_2_tab3_294 AS SELECT pk, col0 FROM tab3 WHERE NOT (col3 <= 687 AND col3 >= 393 OR col1 = 192.1)

statement ok
CREATE VIEW view_3_tab3_294 AS SELECT pk FROM view_1_tab3_294

query II rowsort label-6200-1
SELECT pk, col0 FROM tab3 WHERE col3 <= 687 AND col3 >= 393 OR col1 = 192.1
----
66 values hashing to fd0798c922915cfd866e24b697598796

query II rowsort label-6200-2
SELECT pk, col0 FROM tab3 WHERE NOT (col3 <= 687 AND col3 >= 393 OR col1 = 192.1)
----
134 values hashing to 5d2c225d3ae114b98b72e1fded77e941

query II rowsort label-6200-1
SELECT pk, col0 FROM view_1_tab3_294
----
66 values hashing to fd0798c922915cfd866e24b697598796

query II rowsort label-6200-2
SELECT pk, col0 FROM view_2_tab3_294
----
134 values hashing to 5d2c225d3ae114b98b72e1fded77e941

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 <= 687 AND col3 >= 393 OR col1 = 192.1 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col3 <= 687 AND col3 >= 393 OR col1 = 192.1)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_294 UNION ALL SELECT pk, col0 FROM view_2_tab3_294
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 <= 687 AND col3 >= 393 OR col1 = 192.1 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col3 <= 687 AND col3 >= 393 OR col1 = 192.1)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_294 UNION SELECT pk, col0 FROM view_2_tab3_294
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-6200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col3 <= 687 AND col3 >= 393 OR col1 = 192.1 ) AS tab3_294
----
33 values hashing to 762e7098997b7d2cb04de7a17d92a260

query I rowsort label-6200-3
SELECT * FROM view_3_tab3_294
----
33 values hashing to 762e7098997b7d2cb04de7a17d92a260

query I rowsort label-6200-3
SELECT pk FROM tab3 WHERE col3 <= 687 AND col3 >= 393 OR col1 = 192.1
----
33 values hashing to 762e7098997b7d2cb04de7a17d92a260

statement ok
DROP VIEW view_1_tab3_294

statement ok
DROP VIEW view_2_tab3_294

statement ok
DROP VIEW view_3_tab3_294

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_294') DROP VIEW view_1_tab4_294

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_294

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_294') DROP VIEW view_2_tab4_294

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_294

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_294') DROP VIEW view_3_tab4_294

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_294

statement ok
CREATE VIEW view_1_tab4_294 AS SELECT pk, col0 FROM tab4 WHERE col3 <= 687 AND col3 >= 393 OR col1 = 192.1

statement ok
CREATE VIEW view_2_tab4_294 AS SELECT pk, col0 FROM tab4 WHERE NOT (col3 <= 687 AND col3 >= 393 OR col1 = 192.1)

statement ok
CREATE VIEW view_3_tab4_294 AS SELECT pk FROM view_1_tab4_294

query II rowsort label-6200-1
SELECT pk, col0 FROM tab4 WHERE col3 <= 687 AND col3 >= 393 OR col1 = 192.1
----
66 values hashing to fd0798c922915cfd866e24b697598796

query II rowsort label-6200-2
SELECT pk, col0 FROM tab4 WHERE NOT (col3 <= 687 AND col3 >= 393 OR col1 = 192.1)
----
134 values hashing to 5d2c225d3ae114b98b72e1fded77e941

query II rowsort label-6200-1
SELECT pk, col0 FROM view_1_tab4_294
----
66 values hashing to fd0798c922915cfd866e24b697598796

query II rowsort label-6200-2
SELECT pk, col0 FROM view_2_tab4_294
----
134 values hashing to 5d2c225d3ae114b98b72e1fded77e941

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 <= 687 AND col3 >= 393 OR col1 = 192.1 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col3 <= 687 AND col3 >= 393 OR col1 = 192.1)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_294 UNION ALL SELECT pk, col0 FROM view_2_tab4_294
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 <= 687 AND col3 >= 393 OR col1 = 192.1 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col3 <= 687 AND col3 >= 393 OR col1 = 192.1)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_294 UNION SELECT pk, col0 FROM view_2_tab4_294
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-6200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col3 <= 687 AND col3 >= 393 OR col1 = 192.1 ) AS tab4_294
----
33 values hashing to 762e7098997b7d2cb04de7a17d92a260

query I rowsort label-6200-3
SELECT * FROM view_3_tab4_294
----
33 values hashing to 762e7098997b7d2cb04de7a17d92a260

query I rowsort label-6200-3
SELECT pk FROM tab4 WHERE col3 <= 687 AND col3 >= 393 OR col1 = 192.1
----
33 values hashing to 762e7098997b7d2cb04de7a17d92a260

statement ok
DROP VIEW view_1_tab4_294

statement ok
DROP VIEW view_2_tab4_294

statement ok
DROP VIEW view_3_tab4_294

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_295') DROP VIEW view_1_tab0_295

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_295

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_295') DROP VIEW view_2_tab0_295

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_295

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_295') DROP VIEW view_3_tab0_295

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_295

statement ok
CREATE VIEW view_1_tab0_295 AS SELECT pk, col0 FROM tab0 WHERE col0 >= 736 OR col0 >= 503 OR col0 >= 107

statement ok
CREATE VIEW view_2_tab0_295 AS SELECT pk, col0 FROM tab0 WHERE NOT (col0 >= 736 OR col0 >= 503 OR col0 >= 107)

statement ok
CREATE VIEW view_3_tab0_295 AS SELECT pk FROM view_1_tab0_295

query II rowsort label-6300-1
SELECT pk, col0 FROM tab0 WHERE col0 >= 736 OR col0 >= 503 OR col0 >= 107
----
182 values hashing to 17701dc8bcc2e0722e1b6dd3bfc2fc69

query II rowsort label-6300-2
SELECT pk, col0 FROM tab0 WHERE NOT (col0 >= 736 OR col0 >= 503 OR col0 >= 107)
----
18 values hashing to 5fd95422b9feabb6ebf95e29fa063ceb

query II rowsort label-6300-1
SELECT pk, col0 FROM view_1_tab0_295
----
182 values hashing to 17701dc8bcc2e0722e1b6dd3bfc2fc69

query II rowsort label-6300-2
SELECT pk, col0 FROM view_2_tab0_295
----
18 values hashing to 5fd95422b9feabb6ebf95e29fa063ceb

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col0 >= 736 OR col0 >= 503 OR col0 >= 107 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col0 >= 736 OR col0 >= 503 OR col0 >= 107)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_295 UNION ALL SELECT pk, col0 FROM view_2_tab0_295
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col0 >= 736 OR col0 >= 503 OR col0 >= 107 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col0 >= 736 OR col0 >= 503 OR col0 >= 107)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_295 UNION SELECT pk, col0 FROM view_2_tab0_295
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-6300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col0 >= 736 OR col0 >= 503 OR col0 >= 107 ) AS tab0_295
----
91 values hashing to 5465a924e6d69737fcb0a260c38e450d

query I rowsort label-6300-3
SELECT * FROM view_3_tab0_295
----
91 values hashing to 5465a924e6d69737fcb0a260c38e450d

query I rowsort label-6300-3
SELECT pk FROM tab0 WHERE col0 >= 736 OR col0 >= 503 OR col0 >= 107
----
91 values hashing to 5465a924e6d69737fcb0a260c38e450d

statement ok
DROP VIEW view_1_tab0_295

statement ok
DROP VIEW view_2_tab0_295

statement ok
DROP VIEW view_3_tab0_295

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_295') DROP VIEW view_1_tab1_295

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_295

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_295') DROP VIEW view_2_tab1_295

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_295

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_295') DROP VIEW view_3_tab1_295

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_295

statement ok
CREATE VIEW view_1_tab1_295 AS SELECT pk, col0 FROM tab1 WHERE col0 >= 736 OR col0 >= 503 OR col0 >= 107

statement ok
CREATE VIEW view_2_tab1_295 AS SELECT pk, col0 FROM tab1 WHERE NOT (col0 >= 736 OR col0 >= 503 OR col0 >= 107)

statement ok
CREATE VIEW view_3_tab1_295 AS SELECT pk FROM view_1_tab1_295

query II rowsort label-6300-1
SELECT pk, col0 FROM tab1 WHERE col0 >= 736 OR col0 >= 503 OR col0 >= 107
----
182 values hashing to 17701dc8bcc2e0722e1b6dd3bfc2fc69

query II rowsort label-6300-2
SELECT pk, col0 FROM tab1 WHERE NOT (col0 >= 736 OR col0 >= 503 OR col0 >= 107)
----
18 values hashing to 5fd95422b9feabb6ebf95e29fa063ceb

query II rowsort label-6300-1
SELECT pk, col0 FROM view_1_tab1_295
----
182 values hashing to 17701dc8bcc2e0722e1b6dd3bfc2fc69

query II rowsort label-6300-2
SELECT pk, col0 FROM view_2_tab1_295
----
18 values hashing to 5fd95422b9feabb6ebf95e29fa063ceb

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col0 >= 736 OR col0 >= 503 OR col0 >= 107 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col0 >= 736 OR col0 >= 503 OR col0 >= 107)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_295 UNION ALL SELECT pk, col0 FROM view_2_tab1_295
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col0 >= 736 OR col0 >= 503 OR col0 >= 107 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col0 >= 736 OR col0 >= 503 OR col0 >= 107)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_295 UNION SELECT pk, col0 FROM view_2_tab1_295
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-6300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col0 >= 736 OR col0 >= 503 OR col0 >= 107 ) AS tab1_295
----
91 values hashing to 5465a924e6d69737fcb0a260c38e450d

query I rowsort label-6300-3
SELECT * FROM view_3_tab1_295
----
91 values hashing to 5465a924e6d69737fcb0a260c38e450d

query I rowsort label-6300-3
SELECT pk FROM tab1 WHERE col0 >= 736 OR col0 >= 503 OR col0 >= 107
----
91 values hashing to 5465a924e6d69737fcb0a260c38e450d

statement ok
DROP VIEW view_1_tab1_295

statement ok
DROP VIEW view_2_tab1_295

statement ok
DROP VIEW view_3_tab1_295

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_295') DROP VIEW view_1_tab2_295

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_295

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_295') DROP VIEW view_2_tab2_295

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_295

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_295') DROP VIEW view_3_tab2_295

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_295

statement ok
CREATE VIEW view_1_tab2_295 AS SELECT pk, col0 FROM tab2 WHERE col0 >= 736 OR col0 >= 503 OR col0 >= 107

statement ok
CREATE VIEW view_2_tab2_295 AS SELECT pk, col0 FROM tab2 WHERE NOT (col0 >= 736 OR col0 >= 503 OR col0 >= 107)

statement ok
CREATE VIEW view_3_tab2_295 AS SELECT pk FROM view_1_tab2_295

query II rowsort label-6300-1
SELECT pk, col0 FROM tab2 WHERE col0 >= 736 OR col0 >= 503 OR col0 >= 107
----
182 values hashing to 17701dc8bcc2e0722e1b6dd3bfc2fc69

query II rowsort label-6300-2
SELECT pk, col0 FROM tab2 WHERE NOT (col0 >= 736 OR col0 >= 503 OR col0 >= 107)
----
18 values hashing to 5fd95422b9feabb6ebf95e29fa063ceb

query II rowsort label-6300-1
SELECT pk, col0 FROM view_1_tab2_295
----
182 values hashing to 17701dc8bcc2e0722e1b6dd3bfc2fc69

query II rowsort label-6300-2
SELECT pk, col0 FROM view_2_tab2_295
----
18 values hashing to 5fd95422b9feabb6ebf95e29fa063ceb

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col0 >= 736 OR col0 >= 503 OR col0 >= 107 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col0 >= 736 OR col0 >= 503 OR col0 >= 107)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_295 UNION ALL SELECT pk, col0 FROM view_2_tab2_295
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col0 >= 736 OR col0 >= 503 OR col0 >= 107 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col0 >= 736 OR col0 >= 503 OR col0 >= 107)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_295 UNION SELECT pk, col0 FROM view_2_tab2_295
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-6300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col0 >= 736 OR col0 >= 503 OR col0 >= 107 ) AS tab2_295
----
91 values hashing to 5465a924e6d69737fcb0a260c38e450d

query I rowsort label-6300-3
SELECT * FROM view_3_tab2_295
----
91 values hashing to 5465a924e6d69737fcb0a260c38e450d

query I rowsort label-6300-3
SELECT pk FROM tab2 WHERE col0 >= 736 OR col0 >= 503 OR col0 >= 107
----
91 values hashing to 5465a924e6d69737fcb0a260c38e450d

statement ok
DROP VIEW view_1_tab2_295

statement ok
DROP VIEW view_2_tab2_295

statement ok
DROP VIEW view_3_tab2_295

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_295') DROP VIEW view_1_tab3_295

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_295

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_295') DROP VIEW view_2_tab3_295

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_295

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_295') DROP VIEW view_3_tab3_295

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_295

statement ok
CREATE VIEW view_1_tab3_295 AS SELECT pk, col0 FROM tab3 WHERE col0 >= 736 OR col0 >= 503 OR col0 >= 107

statement ok
CREATE VIEW view_2_tab3_295 AS SELECT pk, col0 FROM tab3 WHERE NOT (col0 >= 736 OR col0 >= 503 OR col0 >= 107)

statement ok
CREATE VIEW view_3_tab3_295 AS SELECT pk FROM view_1_tab3_295

query II rowsort label-6300-1
SELECT pk, col0 FROM tab3 WHERE col0 >= 736 OR col0 >= 503 OR col0 >= 107
----
182 values hashing to 17701dc8bcc2e0722e1b6dd3bfc2fc69

query II rowsort label-6300-2
SELECT pk, col0 FROM tab3 WHERE NOT (col0 >= 736 OR col0 >= 503 OR col0 >= 107)
----
18 values hashing to 5fd95422b9feabb6ebf95e29fa063ceb

query II rowsort label-6300-1
SELECT pk, col0 FROM view_1_tab3_295
----
182 values hashing to 17701dc8bcc2e0722e1b6dd3bfc2fc69

query II rowsort label-6300-2
SELECT pk, col0 FROM view_2_tab3_295
----
18 values hashing to 5fd95422b9feabb6ebf95e29fa063ceb

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col0 >= 736 OR col0 >= 503 OR col0 >= 107 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col0 >= 736 OR col0 >= 503 OR col0 >= 107)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_295 UNION ALL SELECT pk, col0 FROM view_2_tab3_295
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col0 >= 736 OR col0 >= 503 OR col0 >= 107 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col0 >= 736 OR col0 >= 503 OR col0 >= 107)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_295 UNION SELECT pk, col0 FROM view_2_tab3_295
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-6300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col0 >= 736 OR col0 >= 503 OR col0 >= 107 ) AS tab3_295
----
91 values hashing to 5465a924e6d69737fcb0a260c38e450d

query I rowsort label-6300-3
SELECT * FROM view_3_tab3_295
----
91 values hashing to 5465a924e6d69737fcb0a260c38e450d

query I rowsort label-6300-3
SELECT pk FROM tab3 WHERE col0 >= 736 OR col0 >= 503 OR col0 >= 107
----
91 values hashing to 5465a924e6d69737fcb0a260c38e450d

statement ok
DROP VIEW view_1_tab3_295

statement ok
DROP VIEW view_2_tab3_295

statement ok
DROP VIEW view_3_tab3_295

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_295') DROP VIEW view_1_tab4_295

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_295

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_295') DROP VIEW view_2_tab4_295

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_295

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_295') DROP VIEW view_3_tab4_295

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_295

statement ok
CREATE VIEW view_1_tab4_295 AS SELECT pk, col0 FROM tab4 WHERE col0 >= 736 OR col0 >= 503 OR col0 >= 107

statement ok
CREATE VIEW view_2_tab4_295 AS SELECT pk, col0 FROM tab4 WHERE NOT (col0 >= 736 OR col0 >= 503 OR col0 >= 107)

statement ok
CREATE VIEW view_3_tab4_295 AS SELECT pk FROM view_1_tab4_295

query II rowsort label-6300-1
SELECT pk, col0 FROM tab4 WHERE col0 >= 736 OR col0 >= 503 OR col0 >= 107
----
182 values hashing to 17701dc8bcc2e0722e1b6dd3bfc2fc69

query II rowsort label-6300-2
SELECT pk, col0 FROM tab4 WHERE NOT (col0 >= 736 OR col0 >= 503 OR col0 >= 107)
----
18 values hashing to 5fd95422b9feabb6ebf95e29fa063ceb

query II rowsort label-6300-1
SELECT pk, col0 FROM view_1_tab4_295
----
182 values hashing to 17701dc8bcc2e0722e1b6dd3bfc2fc69

query II rowsort label-6300-2
SELECT pk, col0 FROM view_2_tab4_295
----
18 values hashing to 5fd95422b9feabb6ebf95e29fa063ceb

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col0 >= 736 OR col0 >= 503 OR col0 >= 107 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col0 >= 736 OR col0 >= 503 OR col0 >= 107)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_295 UNION ALL SELECT pk, col0 FROM view_2_tab4_295
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col0 >= 736 OR col0 >= 503 OR col0 >= 107 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col0 >= 736 OR col0 >= 503 OR col0 >= 107)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_295 UNION SELECT pk, col0 FROM view_2_tab4_295
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-6300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col0 >= 736 OR col0 >= 503 OR col0 >= 107 ) AS tab4_295
----
91 values hashing to 5465a924e6d69737fcb0a260c38e450d

query I rowsort label-6300-3
SELECT * FROM view_3_tab4_295
----
91 values hashing to 5465a924e6d69737fcb0a260c38e450d

query I rowsort label-6300-3
SELECT pk FROM tab4 WHERE col0 >= 736 OR col0 >= 503 OR col0 >= 107
----
91 values hashing to 5465a924e6d69737fcb0a260c38e450d

statement ok
DROP VIEW view_1_tab4_295

statement ok
DROP VIEW view_2_tab4_295

statement ok
DROP VIEW view_3_tab4_295

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_296') DROP VIEW view_1_tab0_296

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_296

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_296') DROP VIEW view_2_tab0_296

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_296

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_296') DROP VIEW view_3_tab0_296

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_296

statement ok
CREATE VIEW view_1_tab0_296 AS SELECT pk, col0 FROM tab0 WHERE col4 >= 265.28

statement ok
CREATE VIEW view_2_tab0_296 AS SELECT pk, col0 FROM tab0 WHERE NOT (col4 >= 265.28)

statement ok
CREATE VIEW view_3_tab0_296 AS SELECT pk FROM view_1_tab0_296

query II rowsort label-6400-1
SELECT pk, col0 FROM tab0 WHERE col4 >= 265.28
----
156 values hashing to d852ca22e019f15a0057917207a41bad

query II rowsort label-6400-2
SELECT pk, col0 FROM tab0 WHERE NOT (col4 >= 265.28)
----
44 values hashing to 7c4ca2038f7ebb7516f619c827470cb8

query II rowsort label-6400-1
SELECT pk, col0 FROM view_1_tab0_296
----
156 values hashing to d852ca22e019f15a0057917207a41bad

query II rowsort label-6400-2
SELECT pk, col0 FROM view_2_tab0_296
----
44 values hashing to 7c4ca2038f7ebb7516f619c827470cb8

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col4 >= 265.28 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col4 >= 265.28)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_296 UNION ALL SELECT pk, col0 FROM view_2_tab0_296
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col4 >= 265.28 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col4 >= 265.28)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_296 UNION SELECT pk, col0 FROM view_2_tab0_296
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-6400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col4 >= 265.28 ) AS tab0_296
----
78 values hashing to bf177f5883365d40f61d7a55facb89a6

query I rowsort label-6400-3
SELECT * FROM view_3_tab0_296
----
78 values hashing to bf177f5883365d40f61d7a55facb89a6

query I rowsort label-6400-3
SELECT pk FROM tab0 WHERE col4 >= 265.28
----
78 values hashing to bf177f5883365d40f61d7a55facb89a6

statement ok
DROP VIEW view_1_tab0_296

statement ok
DROP VIEW view_2_tab0_296

statement ok
DROP VIEW view_3_tab0_296

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_296') DROP VIEW view_1_tab1_296

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_296

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_296') DROP VIEW view_2_tab1_296

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_296

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_296') DROP VIEW view_3_tab1_296

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_296

statement ok
CREATE VIEW view_1_tab1_296 AS SELECT pk, col0 FROM tab1 WHERE col4 >= 265.28

statement ok
CREATE VIEW view_2_tab1_296 AS SELECT pk, col0 FROM tab1 WHERE NOT (col4 >= 265.28)

statement ok
CREATE VIEW view_3_tab1_296 AS SELECT pk FROM view_1_tab1_296

query II rowsort label-6400-1
SELECT pk, col0 FROM tab1 WHERE col4 >= 265.28
----
156 values hashing to d852ca22e019f15a0057917207a41bad

query II rowsort label-6400-2
SELECT pk, col0 FROM tab1 WHERE NOT (col4 >= 265.28)
----
44 values hashing to 7c4ca2038f7ebb7516f619c827470cb8

query II rowsort label-6400-1
SELECT pk, col0 FROM view_1_tab1_296
----
156 values hashing to d852ca22e019f15a0057917207a41bad

query II rowsort label-6400-2
SELECT pk, col0 FROM view_2_tab1_296
----
44 values hashing to 7c4ca2038f7ebb7516f619c827470cb8

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col4 >= 265.28 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col4 >= 265.28)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_296 UNION ALL SELECT pk, col0 FROM view_2_tab1_296
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col4 >= 265.28 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col4 >= 265.28)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_296 UNION SELECT pk, col0 FROM view_2_tab1_296
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-6400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col4 >= 265.28 ) AS tab1_296
----
78 values hashing to bf177f5883365d40f61d7a55facb89a6

query I rowsort label-6400-3
SELECT * FROM view_3_tab1_296
----
78 values hashing to bf177f5883365d40f61d7a55facb89a6

query I rowsort label-6400-3
SELECT pk FROM tab1 WHERE col4 >= 265.28
----
78 values hashing to bf177f5883365d40f61d7a55facb89a6

statement ok
DROP VIEW view_1_tab1_296

statement ok
DROP VIEW view_2_tab1_296

statement ok
DROP VIEW view_3_tab1_296

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_296') DROP VIEW view_1_tab2_296

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_296

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_296') DROP VIEW view_2_tab2_296

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_296

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_296') DROP VIEW view_3_tab2_296

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_296

statement ok
CREATE VIEW view_1_tab2_296 AS SELECT pk, col0 FROM tab2 WHERE col4 >= 265.28

statement ok
CREATE VIEW view_2_tab2_296 AS SELECT pk, col0 FROM tab2 WHERE NOT (col4 >= 265.28)

statement ok
CREATE VIEW view_3_tab2_296 AS SELECT pk FROM view_1_tab2_296

query II rowsort label-6400-1
SELECT pk, col0 FROM tab2 WHERE col4 >= 265.28
----
156 values hashing to d852ca22e019f15a0057917207a41bad

query II rowsort label-6400-2
SELECT pk, col0 FROM tab2 WHERE NOT (col4 >= 265.28)
----
44 values hashing to 7c4ca2038f7ebb7516f619c827470cb8

query II rowsort label-6400-1
SELECT pk, col0 FROM view_1_tab2_296
----
156 values hashing to d852ca22e019f15a0057917207a41bad

query II rowsort label-6400-2
SELECT pk, col0 FROM view_2_tab2_296
----
44 values hashing to 7c4ca2038f7ebb7516f619c827470cb8

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col4 >= 265.28 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col4 >= 265.28)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_296 UNION ALL SELECT pk, col0 FROM view_2_tab2_296
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col4 >= 265.28 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col4 >= 265.28)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_296 UNION SELECT pk, col0 FROM view_2_tab2_296
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-6400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col4 >= 265.28 ) AS tab2_296
----
78 values hashing to bf177f5883365d40f61d7a55facb89a6

query I rowsort label-6400-3
SELECT * FROM view_3_tab2_296
----
78 values hashing to bf177f5883365d40f61d7a55facb89a6

query I rowsort label-6400-3
SELECT pk FROM tab2 WHERE col4 >= 265.28
----
78 values hashing to bf177f5883365d40f61d7a55facb89a6

statement ok
DROP VIEW view_1_tab2_296

statement ok
DROP VIEW view_2_tab2_296

statement ok
DROP VIEW view_3_tab2_296

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_296') DROP VIEW view_1_tab3_296

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_296

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_296') DROP VIEW view_2_tab3_296

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_296

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_296') DROP VIEW view_3_tab3_296

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_296

statement ok
CREATE VIEW view_1_tab3_296 AS SELECT pk, col0 FROM tab3 WHERE col4 >= 265.28

statement ok
CREATE VIEW view_2_tab3_296 AS SELECT pk, col0 FROM tab3 WHERE NOT (col4 >= 265.28)

statement ok
CREATE VIEW view_3_tab3_296 AS SELECT pk FROM view_1_tab3_296

query II rowsort label-6400-1
SELECT pk, col0 FROM tab3 WHERE col4 >= 265.28
----
156 values hashing to d852ca22e019f15a0057917207a41bad

query II rowsort label-6400-2
SELECT pk, col0 FROM tab3 WHERE NOT (col4 >= 265.28)
----
44 values hashing to 7c4ca2038f7ebb7516f619c827470cb8

query II rowsort label-6400-1
SELECT pk, col0 FROM view_1_tab3_296
----
156 values hashing to d852ca22e019f15a0057917207a41bad

query II rowsort label-6400-2
SELECT pk, col0 FROM view_2_tab3_296
----
44 values hashing to 7c4ca2038f7ebb7516f619c827470cb8

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col4 >= 265.28 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col4 >= 265.28)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_296 UNION ALL SELECT pk, col0 FROM view_2_tab3_296
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col4 >= 265.28 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col4 >= 265.28)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_296 UNION SELECT pk, col0 FROM view_2_tab3_296
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-6400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col4 >= 265.28 ) AS tab3_296
----
78 values hashing to bf177f5883365d40f61d7a55facb89a6

query I rowsort label-6400-3
SELECT * FROM view_3_tab3_296
----
78 values hashing to bf177f5883365d40f61d7a55facb89a6

query I rowsort label-6400-3
SELECT pk FROM tab3 WHERE col4 >= 265.28
----
78 values hashing to bf177f5883365d40f61d7a55facb89a6

statement ok
DROP VIEW view_1_tab3_296

statement ok
DROP VIEW view_2_tab3_296

statement ok
DROP VIEW view_3_tab3_296

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_296') DROP VIEW view_1_tab4_296

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_296

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_296') DROP VIEW view_2_tab4_296

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_296

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_296') DROP VIEW view_3_tab4_296

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_296

statement ok
CREATE VIEW view_1_tab4_296 AS SELECT pk, col0 FROM tab4 WHERE col4 >= 265.28

statement ok
CREATE VIEW view_2_tab4_296 AS SELECT pk, col0 FROM tab4 WHERE NOT (col4 >= 265.28)

statement ok
CREATE VIEW view_3_tab4_296 AS SELECT pk FROM view_1_tab4_296

query II rowsort label-6400-1
SELECT pk, col0 FROM tab4 WHERE col4 >= 265.28
----
156 values hashing to d852ca22e019f15a0057917207a41bad

query II rowsort label-6400-2
SELECT pk, col0 FROM tab4 WHERE NOT (col4 >= 265.28)
----
44 values hashing to 7c4ca2038f7ebb7516f619c827470cb8

query II rowsort label-6400-1
SELECT pk, col0 FROM view_1_tab4_296
----
156 values hashing to d852ca22e019f15a0057917207a41bad

query II rowsort label-6400-2
SELECT pk, col0 FROM view_2_tab4_296
----
44 values hashing to 7c4ca2038f7ebb7516f619c827470cb8

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col4 >= 265.28 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col4 >= 265.28)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_296 UNION ALL SELECT pk, col0 FROM view_2_tab4_296
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col4 >= 265.28 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col4 >= 265.28)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_296 UNION SELECT pk, col0 FROM view_2_tab4_296
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-6400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col4 >= 265.28 ) AS tab4_296
----
78 values hashing to bf177f5883365d40f61d7a55facb89a6

query I rowsort label-6400-3
SELECT * FROM view_3_tab4_296
----
78 values hashing to bf177f5883365d40f61d7a55facb89a6

query I rowsort label-6400-3
SELECT pk FROM tab4 WHERE col4 >= 265.28
----
78 values hashing to bf177f5883365d40f61d7a55facb89a6

statement ok
DROP VIEW view_1_tab4_296

statement ok
DROP VIEW view_2_tab4_296

statement ok
DROP VIEW view_3_tab4_296

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_297') DROP VIEW view_1_tab0_297

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_297

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_297') DROP VIEW view_2_tab0_297

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_297

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_297') DROP VIEW view_3_tab0_297

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_297

statement ok
CREATE VIEW view_1_tab0_297 AS SELECT pk, col0 FROM tab0 WHERE ((col0 > 709) OR (((col3 >= 434 AND col1 >= 915.22 AND col1 >= 31.64 OR col3 IN (185,326)) OR col4 >= 274.6 OR col3 = 459 AND (col1 < 268.58) OR col3 IN (499) OR (col0 >= 348) OR (col4 > 380.37) AND col3 < 940 OR (((col0 > 791) AND col4 >= 431.3)) AND col0 <= 965))) OR col3 > 306 AND col0 < 146 OR ((col0 >= 144))

statement ok
CREATE VIEW view_2_tab0_297 AS SELECT pk, col0 FROM tab0 WHERE NOT (((col0 > 709) OR (((col3 >= 434 AND col1 >= 915.22 AND col1 >= 31.64 OR col3 IN (185,326)) OR col4 >= 274.6 OR col3 = 459 AND (col1 < 268.58) OR col3 IN (499) OR (col0 >= 348) OR (col4 > 380.37) AND col3 < 940 OR (((col0 > 791) AND col4 >= 431.3)) AND col0 <= 965))) OR col3 > 306 AND col0 < 146 OR ((col0 >= 144)))

statement ok
CREATE VIEW view_3_tab0_297 AS SELECT pk FROM view_1_tab0_297

query II rowsort label-6500-1
SELECT pk, col0 FROM tab0 WHERE ((col0 > 709) OR (((col3 >= 434 AND col1 >= 915.22 AND col1 >= 31.64 OR col3 IN (185,326)) OR col4 >= 274.6 OR col3 = 459 AND (col1 < 268.58) OR col3 IN (499) OR (col0 >= 348) OR (col4 > 380.37) AND col3 < 940 OR (((col0 > 791) AND col4 >= 431.3)) AND col0 <= 965))) OR col3 > 306 AND col0 < 146 OR ((col0 >= 144))
----
198 values hashing to d707d856af5a8bedd7048ae2cd19ae37

query II rowsort label-6500-2
SELECT pk, col0 FROM tab0 WHERE NOT (((col0 > 709) OR (((col3 >= 434 AND col1 >= 915.22 AND col1 >= 31.64 OR col3 IN (185,326)) OR col4 >= 274.6 OR col3 = 459 AND (col1 < 268.58) OR col3 IN (499) OR (col0 >= 348) OR (col4 > 380.37) AND col3 < 940 OR (((col0 > 791) AND col4 >= 431.3)) AND col0 <= 965))) OR col3 > 306 AND col0 < 146 OR ((col0 >= 144)))
----
30
84

query II rowsort label-6500-1
SELECT pk, col0 FROM view_1_tab0_297
----
198 values hashing to d707d856af5a8bedd7048ae2cd19ae37

query II rowsort label-6500-2
SELECT pk, col0 FROM view_2_tab0_297
----
30
84

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE ((col0 > 709) OR (((col3 >= 434 AND col1 >= 915.22 AND col1 >= 31.64 OR col3 IN (185,326)) OR col4 >= 274.6 OR col3 = 459 AND (col1 < 268.58) OR col3 IN (499) OR (col0 >= 348) OR (col4 > 380.37) AND col3 < 940 OR (((col0 > 791) AND col4 >= 431.3)) AND col0 <= 965))) OR col3 > 306 AND col0 < 146 OR ((col0 >= 144)) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (((col0 > 709) OR (((col3 >= 434 AND col1 >= 915.22 AND col1 >= 31.64 OR col3 IN (185,326)) OR col4 >= 274.6 OR col3 = 459 AND (col1 < 268.58) OR col3 IN (499) OR (col0 >= 348) OR (col4 > 380.37) AND col3 < 940 OR (((col0 > 791) AND col4 >= 431.3)) AND col0 <= 965))) OR col3 > 306 AND col0 < 146 OR ((col0 >= 144)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_297 UNION ALL SELECT pk, col0 FROM view_2_tab0_297
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE ((col0 > 709) OR (((col3 >= 434 AND col1 >= 915.22 AND col1 >= 31.64 OR col3 IN (185,326)) OR col4 >= 274.6 OR col3 = 459 AND (col1 < 268.58) OR col3 IN (499) OR (col0 >= 348) OR (col4 > 380.37) AND col3 < 940 OR (((col0 > 791) AND col4 >= 431.3)) AND col0 <= 965))) OR col3 > 306 AND col0 < 146 OR ((col0 >= 144)) UNION SELECT pk, col0 FROM tab0 WHERE NOT (((col0 > 709) OR (((col3 >= 434 AND col1 >= 915.22 AND col1 >= 31.64 OR col3 IN (185,326)) OR col4 >= 274.6 OR col3 = 459 AND (col1 < 268.58) OR col3 IN (499) OR (col0 >= 348) OR (col4 > 380.37) AND col3 < 940 OR (((col0 > 791) AND col4 >= 431.3)) AND col0 <= 965))) OR col3 > 306 AND col0 < 146 OR ((col0 >= 144)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_297 UNION SELECT pk, col0 FROM view_2_tab0_297
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-6500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE ((col0 > 709) OR (((col3 >= 434 AND col1 >= 915.22 AND col1 >= 31.64 OR col3 IN (185,326)) OR col4 >= 274.6 OR col3 = 459 AND (col1 < 268.58) OR col3 IN (499) OR (col0 >= 348) OR (col4 > 380.37) AND col3 < 940 OR (((col0 > 791) AND col4 >= 431.3)) AND col0 <= 965))) OR col3 > 306 AND col0 < 146 OR ((col0 >= 144)) ) AS tab0_297
----
99 values hashing to ffd3dd7b611ce53af641c2899d3aa331

query I rowsort label-6500-3
SELECT * FROM view_3_tab0_297
----
99 values hashing to ffd3dd7b611ce53af641c2899d3aa331

query I rowsort label-6500-3
SELECT pk FROM tab0 WHERE ((col0 > 709) OR (((col3 >= 434 AND col1 >= 915.22 AND col1 >= 31.64 OR col3 IN (185,326)) OR col4 >= 274.6 OR col3 = 459 AND (col1 < 268.58) OR col3 IN (499) OR (col0 >= 348) OR (col4 > 380.37) AND col3 < 940 OR (((col0 > 791) AND col4 >= 431.3)) AND col0 <= 965))) OR col3 > 306 AND col0 < 146 OR ((col0 >= 144))
----
99 values hashing to ffd3dd7b611ce53af641c2899d3aa331

statement ok
DROP VIEW view_1_tab0_297

statement ok
DROP VIEW view_2_tab0_297

statement ok
DROP VIEW view_3_tab0_297

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_297') DROP VIEW view_1_tab1_297

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_297

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_297') DROP VIEW view_2_tab1_297

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_297

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_297') DROP VIEW view_3_tab1_297

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_297

statement ok
CREATE VIEW view_1_tab1_297 AS SELECT pk, col0 FROM tab1 WHERE ((col0 > 709) OR (((col3 >= 434 AND col1 >= 915.22 AND col1 >= 31.64 OR col3 IN (185,326)) OR col4 >= 274.6 OR col3 = 459 AND (col1 < 268.58) OR col3 IN (499) OR (col0 >= 348) OR (col4 > 380.37) AND col3 < 940 OR (((col0 > 791) AND col4 >= 431.3)) AND col0 <= 965))) OR col3 > 306 AND col0 < 146 OR ((col0 >= 144))

statement ok
CREATE VIEW view_2_tab1_297 AS SELECT pk, col0 FROM tab1 WHERE NOT (((col0 > 709) OR (((col3 >= 434 AND col1 >= 915.22 AND col1 >= 31.64 OR col3 IN (185,326)) OR col4 >= 274.6 OR col3 = 459 AND (col1 < 268.58) OR col3 IN (499) OR (col0 >= 348) OR (col4 > 380.37) AND col3 < 940 OR (((col0 > 791) AND col4 >= 431.3)) AND col0 <= 965))) OR col3 > 306 AND col0 < 146 OR ((col0 >= 144)))

statement ok
CREATE VIEW view_3_tab1_297 AS SELECT pk FROM view_1_tab1_297

query II rowsort label-6500-1
SELECT pk, col0 FROM tab1 WHERE ((col0 > 709) OR (((col3 >= 434 AND col1 >= 915.22 AND col1 >= 31.64 OR col3 IN (185,326)) OR col4 >= 274.6 OR col3 = 459 AND (col1 < 268.58) OR col3 IN (499) OR (col0 >= 348) OR (col4 > 380.37) AND col3 < 940 OR (((col0 > 791) AND col4 >= 431.3)) AND col0 <= 965))) OR col3 > 306 AND col0 < 146 OR ((col0 >= 144))
----
198 values hashing to d707d856af5a8bedd7048ae2cd19ae37

query II rowsort label-6500-2
SELECT pk, col0 FROM tab1 WHERE NOT (((col0 > 709) OR (((col3 >= 434 AND col1 >= 915.22 AND col1 >= 31.64 OR col3 IN (185,326)) OR col4 >= 274.6 OR col3 = 459 AND (col1 < 268.58) OR col3 IN (499) OR (col0 >= 348) OR (col4 > 380.37) AND col3 < 940 OR (((col0 > 791) AND col4 >= 431.3)) AND col0 <= 965))) OR col3 > 306 AND col0 < 146 OR ((col0 >= 144)))
----
30
84

query II rowsort label-6500-1
SELECT pk, col0 FROM view_1_tab1_297
----
198 values hashing to d707d856af5a8bedd7048ae2cd19ae37

query II rowsort label-6500-2
SELECT pk, col0 FROM view_2_tab1_297
----
30
84

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE ((col0 > 709) OR (((col3 >= 434 AND col1 >= 915.22 AND col1 >= 31.64 OR col3 IN (185,326)) OR col4 >= 274.6 OR col3 = 459 AND (col1 < 268.58) OR col3 IN (499) OR (col0 >= 348) OR (col4 > 380.37) AND col3 < 940 OR (((col0 > 791) AND col4 >= 431.3)) AND col0 <= 965))) OR col3 > 306 AND col0 < 146 OR ((col0 >= 144)) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (((col0 > 709) OR (((col3 >= 434 AND col1 >= 915.22 AND col1 >= 31.64 OR col3 IN (185,326)) OR col4 >= 274.6 OR col3 = 459 AND (col1 < 268.58) OR col3 IN (499) OR (col0 >= 348) OR (col4 > 380.37) AND col3 < 940 OR (((col0 > 791) AND col4 >= 431.3)) AND col0 <= 965))) OR col3 > 306 AND col0 < 146 OR ((col0 >= 144)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_297 UNION ALL SELECT pk, col0 FROM view_2_tab1_297
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE ((col0 > 709) OR (((col3 >= 434 AND col1 >= 915.22 AND col1 >= 31.64 OR col3 IN (185,326)) OR col4 >= 274.6 OR col3 = 459 AND (col1 < 268.58) OR col3 IN (499) OR (col0 >= 348) OR (col4 > 380.37) AND col3 < 940 OR (((col0 > 791) AND col4 >= 431.3)) AND col0 <= 965))) OR col3 > 306 AND col0 < 146 OR ((col0 >= 144)) UNION SELECT pk, col0 FROM tab1 WHERE NOT (((col0 > 709) OR (((col3 >= 434 AND col1 >= 915.22 AND col1 >= 31.64 OR col3 IN (185,326)) OR col4 >= 274.6 OR col3 = 459 AND (col1 < 268.58) OR col3 IN (499) OR (col0 >= 348) OR (col4 > 380.37) AND col3 < 940 OR (((col0 > 791) AND col4 >= 431.3)) AND col0 <= 965))) OR col3 > 306 AND col0 < 146 OR ((col0 >= 144)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_297 UNION SELECT pk, col0 FROM view_2_tab1_297
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-6500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE ((col0 > 709) OR (((col3 >= 434 AND col1 >= 915.22 AND col1 >= 31.64 OR col3 IN (185,326)) OR col4 >= 274.6 OR col3 = 459 AND (col1 < 268.58) OR col3 IN (499) OR (col0 >= 348) OR (col4 > 380.37) AND col3 < 940 OR (((col0 > 791) AND col4 >= 431.3)) AND col0 <= 965))) OR col3 > 306 AND col0 < 146 OR ((col0 >= 144)) ) AS tab1_297
----
99 values hashing to ffd3dd7b611ce53af641c2899d3aa331

query I rowsort label-6500-3
SELECT * FROM view_3_tab1_297
----
99 values hashing to ffd3dd7b611ce53af641c2899d3aa331

query I rowsort label-6500-3
SELECT pk FROM tab1 WHERE ((col0 > 709) OR (((col3 >= 434 AND col1 >= 915.22 AND col1 >= 31.64 OR col3 IN (185,326)) OR col4 >= 274.6 OR col3 = 459 AND (col1 < 268.58) OR col3 IN (499) OR (col0 >= 348) OR (col4 > 380.37) AND col3 < 940 OR (((col0 > 791) AND col4 >= 431.3)) AND col0 <= 965))) OR col3 > 306 AND col0 < 146 OR ((col0 >= 144))
----
99 values hashing to ffd3dd7b611ce53af641c2899d3aa331

statement ok
DROP VIEW view_1_tab1_297

statement ok
DROP VIEW view_2_tab1_297

statement ok
DROP VIEW view_3_tab1_297

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_297') DROP VIEW view_1_tab2_297

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_297

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_297') DROP VIEW view_2_tab2_297

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_297

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_297') DROP VIEW view_3_tab2_297

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_297

statement ok
CREATE VIEW view_1_tab2_297 AS SELECT pk, col0 FROM tab2 WHERE ((col0 > 709) OR (((col3 >= 434 AND col1 >= 915.22 AND col1 >= 31.64 OR col3 IN (185,326)) OR col4 >= 274.6 OR col3 = 459 AND (col1 < 268.58) OR col3 IN (499) OR (col0 >= 348) OR (col4 > 380.37) AND col3 < 940 OR (((col0 > 791) AND col4 >= 431.3)) AND col0 <= 965))) OR col3 > 306 AND col0 < 146 OR ((col0 >= 144))

statement ok
CREATE VIEW view_2_tab2_297 AS SELECT pk, col0 FROM tab2 WHERE NOT (((col0 > 709) OR (((col3 >= 434 AND col1 >= 915.22 AND col1 >= 31.64 OR col3 IN (185,326)) OR col4 >= 274.6 OR col3 = 459 AND (col1 < 268.58) OR col3 IN (499) OR (col0 >= 348) OR (col4 > 380.37) AND col3 < 940 OR (((col0 > 791) AND col4 >= 431.3)) AND col0 <= 965))) OR col3 > 306 AND col0 < 146 OR ((col0 >= 144)))

statement ok
CREATE VIEW view_3_tab2_297 AS SELECT pk FROM view_1_tab2_297

query II rowsort label-6500-1
SELECT pk, col0 FROM tab2 WHERE ((col0 > 709) OR (((col3 >= 434 AND col1 >= 915.22 AND col1 >= 31.64 OR col3 IN (185,326)) OR col4 >= 274.6 OR col3 = 459 AND (col1 < 268.58) OR col3 IN (499) OR (col0 >= 348) OR (col4 > 380.37) AND col3 < 940 OR (((col0 > 791) AND col4 >= 431.3)) AND col0 <= 965))) OR col3 > 306 AND col0 < 146 OR ((col0 >= 144))
----
198 values hashing to d707d856af5a8bedd7048ae2cd19ae37

query II rowsort label-6500-2
SELECT pk, col0 FROM tab2 WHERE NOT (((col0 > 709) OR (((col3 >= 434 AND col1 >= 915.22 AND col1 >= 31.64 OR col3 IN (185,326)) OR col4 >= 274.6 OR col3 = 459 AND (col1 < 268.58) OR col3 IN (499) OR (col0 >= 348) OR (col4 > 380.37) AND col3 < 940 OR (((col0 > 791) AND col4 >= 431.3)) AND col0 <= 965))) OR col3 > 306 AND col0 < 146 OR ((col0 >= 144)))
----
30
84

query II rowsort label-6500-1
SELECT pk, col0 FROM view_1_tab2_297
----
198 values hashing to d707d856af5a8bedd7048ae2cd19ae37

query II rowsort label-6500-2
SELECT pk, col0 FROM view_2_tab2_297
----
30
84

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE ((col0 > 709) OR (((col3 >= 434 AND col1 >= 915.22 AND col1 >= 31.64 OR col3 IN (185,326)) OR col4 >= 274.6 OR col3 = 459 AND (col1 < 268.58) OR col3 IN (499) OR (col0 >= 348) OR (col4 > 380.37) AND col3 < 940 OR (((col0 > 791) AND col4 >= 431.3)) AND col0 <= 965))) OR col3 > 306 AND col0 < 146 OR ((col0 >= 144)) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (((col0 > 709) OR (((col3 >= 434 AND col1 >= 915.22 AND col1 >= 31.64 OR col3 IN (185,326)) OR col4 >= 274.6 OR col3 = 459 AND (col1 < 268.58) OR col3 IN (499) OR (col0 >= 348) OR (col4 > 380.37) AND col3 < 940 OR (((col0 > 791) AND col4 >= 431.3)) AND col0 <= 965))) OR col3 > 306 AND col0 < 146 OR ((col0 >= 144)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_297 UNION ALL SELECT pk, col0 FROM view_2_tab2_297
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE ((col0 > 709) OR (((col3 >= 434 AND col1 >= 915.22 AND col1 >= 31.64 OR col3 IN (185,326)) OR col4 >= 274.6 OR col3 = 459 AND (col1 < 268.58) OR col3 IN (499) OR (col0 >= 348) OR (col4 > 380.37) AND col3 < 940 OR (((col0 > 791) AND col4 >= 431.3)) AND col0 <= 965))) OR col3 > 306 AND col0 < 146 OR ((col0 >= 144)) UNION SELECT pk, col0 FROM tab2 WHERE NOT (((col0 > 709) OR (((col3 >= 434 AND col1 >= 915.22 AND col1 >= 31.64 OR col3 IN (185,326)) OR col4 >= 274.6 OR col3 = 459 AND (col1 < 268.58) OR col3 IN (499) OR (col0 >= 348) OR (col4 > 380.37) AND col3 < 940 OR (((col0 > 791) AND col4 >= 431.3)) AND col0 <= 965))) OR col3 > 306 AND col0 < 146 OR ((col0 >= 144)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_297 UNION SELECT pk, col0 FROM view_2_tab2_297
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-6500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE ((col0 > 709) OR (((col3 >= 434 AND col1 >= 915.22 AND col1 >= 31.64 OR col3 IN (185,326)) OR col4 >= 274.6 OR col3 = 459 AND (col1 < 268.58) OR col3 IN (499) OR (col0 >= 348) OR (col4 > 380.37) AND col3 < 940 OR (((col0 > 791) AND col4 >= 431.3)) AND col0 <= 965))) OR col3 > 306 AND col0 < 146 OR ((col0 >= 144)) ) AS tab2_297
----
99 values hashing to ffd3dd7b611ce53af641c2899d3aa331

query I rowsort label-6500-3
SELECT * FROM view_3_tab2_297
----
99 values hashing to ffd3dd7b611ce53af641c2899d3aa331

query I rowsort label-6500-3
SELECT pk FROM tab2 WHERE ((col0 > 709) OR (((col3 >= 434 AND col1 >= 915.22 AND col1 >= 31.64 OR col3 IN (185,326)) OR col4 >= 274.6 OR col3 = 459 AND (col1 < 268.58) OR col3 IN (499) OR (col0 >= 348) OR (col4 > 380.37) AND col3 < 940 OR (((col0 > 791) AND col4 >= 431.3)) AND col0 <= 965))) OR col3 > 306 AND col0 < 146 OR ((col0 >= 144))
----
99 values hashing to ffd3dd7b611ce53af641c2899d3aa331

statement ok
DROP VIEW view_1_tab2_297

statement ok
DROP VIEW view_2_tab2_297

statement ok
DROP VIEW view_3_tab2_297

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_297') DROP VIEW view_1_tab3_297

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_297

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_297') DROP VIEW view_2_tab3_297

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_297

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_297') DROP VIEW view_3_tab3_297

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_297

statement ok
CREATE VIEW view_1_tab3_297 AS SELECT pk, col0 FROM tab3 WHERE ((col0 > 709) OR (((col3 >= 434 AND col1 >= 915.22 AND col1 >= 31.64 OR col3 IN (185,326)) OR col4 >= 274.6 OR col3 = 459 AND (col1 < 268.58) OR col3 IN (499) OR (col0 >= 348) OR (col4 > 380.37) AND col3 < 940 OR (((col0 > 791) AND col4 >= 431.3)) AND col0 <= 965))) OR col3 > 306 AND col0 < 146 OR ((col0 >= 144))

statement ok
CREATE VIEW view_2_tab3_297 AS SELECT pk, col0 FROM tab3 WHERE NOT (((col0 > 709) OR (((col3 >= 434 AND col1 >= 915.22 AND col1 >= 31.64 OR col3 IN (185,326)) OR col4 >= 274.6 OR col3 = 459 AND (col1 < 268.58) OR col3 IN (499) OR (col0 >= 348) OR (col4 > 380.37) AND col3 < 940 OR (((col0 > 791) AND col4 >= 431.3)) AND col0 <= 965))) OR col3 > 306 AND col0 < 146 OR ((col0 >= 144)))

statement ok
CREATE VIEW view_3_tab3_297 AS SELECT pk FROM view_1_tab3_297

query II rowsort label-6500-1
SELECT pk, col0 FROM tab3 WHERE ((col0 > 709) OR (((col3 >= 434 AND col1 >= 915.22 AND col1 >= 31.64 OR col3 IN (185,326)) OR col4 >= 274.6 OR col3 = 459 AND (col1 < 268.58) OR col3 IN (499) OR (col0 >= 348) OR (col4 > 380.37) AND col3 < 940 OR (((col0 > 791) AND col4 >= 431.3)) AND col0 <= 965))) OR col3 > 306 AND col0 < 146 OR ((col0 >= 144))
----
198 values hashing to d707d856af5a8bedd7048ae2cd19ae37

query II rowsort label-6500-2
SELECT pk, col0 FROM tab3 WHERE NOT (((col0 > 709) OR (((col3 >= 434 AND col1 >= 915.22 AND col1 >= 31.64 OR col3 IN (185,326)) OR col4 >= 274.6 OR col3 = 459 AND (col1 < 268.58) OR col3 IN (499) OR (col0 >= 348) OR (col4 > 380.37) AND col3 < 940 OR (((col0 > 791) AND col4 >= 431.3)) AND col0 <= 965))) OR col3 > 306 AND col0 < 146 OR ((col0 >= 144)))
----
30
84

query II rowsort label-6500-1
SELECT pk, col0 FROM view_1_tab3_297
----
198 values hashing to d707d856af5a8bedd7048ae2cd19ae37

query II rowsort label-6500-2
SELECT pk, col0 FROM view_2_tab3_297
----
30
84

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE ((col0 > 709) OR (((col3 >= 434 AND col1 >= 915.22 AND col1 >= 31.64 OR col3 IN (185,326)) OR col4 >= 274.6 OR col3 = 459 AND (col1 < 268.58) OR col3 IN (499) OR (col0 >= 348) OR (col4 > 380.37) AND col3 < 940 OR (((col0 > 791) AND col4 >= 431.3)) AND col0 <= 965))) OR col3 > 306 AND col0 < 146 OR ((col0 >= 144)) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (((col0 > 709) OR (((col3 >= 434 AND col1 >= 915.22 AND col1 >= 31.64 OR col3 IN (185,326)) OR col4 >= 274.6 OR col3 = 459 AND (col1 < 268.58) OR col3 IN (499) OR (col0 >= 348) OR (col4 > 380.37) AND col3 < 940 OR (((col0 > 791) AND col4 >= 431.3)) AND col0 <= 965))) OR col3 > 306 AND col0 < 146 OR ((col0 >= 144)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_297 UNION ALL SELECT pk, col0 FROM view_2_tab3_297
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE ((col0 > 709) OR (((col3 >= 434 AND col1 >= 915.22 AND col1 >= 31.64 OR col3 IN (185,326)) OR col4 >= 274.6 OR col3 = 459 AND (col1 < 268.58) OR col3 IN (499) OR (col0 >= 348) OR (col4 > 380.37) AND col3 < 940 OR (((col0 > 791) AND col4 >= 431.3)) AND col0 <= 965))) OR col3 > 306 AND col0 < 146 OR ((col0 >= 144)) UNION SELECT pk, col0 FROM tab3 WHERE NOT (((col0 > 709) OR (((col3 >= 434 AND col1 >= 915.22 AND col1 >= 31.64 OR col3 IN (185,326)) OR col4 >= 274.6 OR col3 = 459 AND (col1 < 268.58) OR col3 IN (499) OR (col0 >= 348) OR (col4 > 380.37) AND col3 < 940 OR (((col0 > 791) AND col4 >= 431.3)) AND col0 <= 965))) OR col3 > 306 AND col0 < 146 OR ((col0 >= 144)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_297 UNION SELECT pk, col0 FROM view_2_tab3_297
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-6500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE ((col0 > 709) OR (((col3 >= 434 AND col1 >= 915.22 AND col1 >= 31.64 OR col3 IN (185,326)) OR col4 >= 274.6 OR col3 = 459 AND (col1 < 268.58) OR col3 IN (499) OR (col0 >= 348) OR (col4 > 380.37) AND col3 < 940 OR (((col0 > 791) AND col4 >= 431.3)) AND col0 <= 965))) OR col3 > 306 AND col0 < 146 OR ((col0 >= 144)) ) AS tab3_297
----
99 values hashing to ffd3dd7b611ce53af641c2899d3aa331

query I rowsort label-6500-3
SELECT * FROM view_3_tab3_297
----
99 values hashing to ffd3dd7b611ce53af641c2899d3aa331

query I rowsort label-6500-3
SELECT pk FROM tab3 WHERE ((col0 > 709) OR (((col3 >= 434 AND col1 >= 915.22 AND col1 >= 31.64 OR col3 IN (185,326)) OR col4 >= 274.6 OR col3 = 459 AND (col1 < 268.58) OR col3 IN (499) OR (col0 >= 348) OR (col4 > 380.37) AND col3 < 940 OR (((col0 > 791) AND col4 >= 431.3)) AND col0 <= 965))) OR col3 > 306 AND col0 < 146 OR ((col0 >= 144))
----
99 values hashing to ffd3dd7b611ce53af641c2899d3aa331

statement ok
DROP VIEW view_1_tab3_297

statement ok
DROP VIEW view_2_tab3_297

statement ok
DROP VIEW view_3_tab3_297

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_297') DROP VIEW view_1_tab4_297

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_297

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_297') DROP VIEW view_2_tab4_297

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_297

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_297') DROP VIEW view_3_tab4_297

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_297

statement ok
CREATE VIEW view_1_tab4_297 AS SELECT pk, col0 FROM tab4 WHERE ((col0 > 709) OR (((col3 >= 434 AND col1 >= 915.22 AND col1 >= 31.64 OR col3 IN (185,326)) OR col4 >= 274.6 OR col3 = 459 AND (col1 < 268.58) OR col3 IN (499) OR (col0 >= 348) OR (col4 > 380.37) AND col3 < 940 OR (((col0 > 791) AND col4 >= 431.3)) AND col0 <= 965))) OR col3 > 306 AND col0 < 146 OR ((col0 >= 144))

statement ok
CREATE VIEW view_2_tab4_297 AS SELECT pk, col0 FROM tab4 WHERE NOT (((col0 > 709) OR (((col3 >= 434 AND col1 >= 915.22 AND col1 >= 31.64 OR col3 IN (185,326)) OR col4 >= 274.6 OR col3 = 459 AND (col1 < 268.58) OR col3 IN (499) OR (col0 >= 348) OR (col4 > 380.37) AND col3 < 940 OR (((col0 > 791) AND col4 >= 431.3)) AND col0 <= 965))) OR col3 > 306 AND col0 < 146 OR ((col0 >= 144)))

statement ok
CREATE VIEW view_3_tab4_297 AS SELECT pk FROM view_1_tab4_297

query II rowsort label-6500-1
SELECT pk, col0 FROM tab4 WHERE ((col0 > 709) OR (((col3 >= 434 AND col1 >= 915.22 AND col1 >= 31.64 OR col3 IN (185,326)) OR col4 >= 274.6 OR col3 = 459 AND (col1 < 268.58) OR col3 IN (499) OR (col0 >= 348) OR (col4 > 380.37) AND col3 < 940 OR (((col0 > 791) AND col4 >= 431.3)) AND col0 <= 965))) OR col3 > 306 AND col0 < 146 OR ((col0 >= 144))
----
198 values hashing to d707d856af5a8bedd7048ae2cd19ae37

query II rowsort label-6500-2
SELECT pk, col0 FROM tab4 WHERE NOT (((col0 > 709) OR (((col3 >= 434 AND col1 >= 915.22 AND col1 >= 31.64 OR col3 IN (185,326)) OR col4 >= 274.6 OR col3 = 459 AND (col1 < 268.58) OR col3 IN (499) OR (col0 >= 348) OR (col4 > 380.37) AND col3 < 940 OR (((col0 > 791) AND col4 >= 431.3)) AND col0 <= 965))) OR col3 > 306 AND col0 < 146 OR ((col0 >= 144)))
----
30
84

query II rowsort label-6500-1
SELECT pk, col0 FROM view_1_tab4_297
----
198 values hashing to d707d856af5a8bedd7048ae2cd19ae37

query II rowsort label-6500-2
SELECT pk, col0 FROM view_2_tab4_297
----
30
84

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE ((col0 > 709) OR (((col3 >= 434 AND col1 >= 915.22 AND col1 >= 31.64 OR col3 IN (185,326)) OR col4 >= 274.6 OR col3 = 459 AND (col1 < 268.58) OR col3 IN (499) OR (col0 >= 348) OR (col4 > 380.37) AND col3 < 940 OR (((col0 > 791) AND col4 >= 431.3)) AND col0 <= 965))) OR col3 > 306 AND col0 < 146 OR ((col0 >= 144)) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (((col0 > 709) OR (((col3 >= 434 AND col1 >= 915.22 AND col1 >= 31.64 OR col3 IN (185,326)) OR col4 >= 274.6 OR col3 = 459 AND (col1 < 268.58) OR col3 IN (499) OR (col0 >= 348) OR (col4 > 380.37) AND col3 < 940 OR (((col0 > 791) AND col4 >= 431.3)) AND col0 <= 965))) OR col3 > 306 AND col0 < 146 OR ((col0 >= 144)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_297 UNION ALL SELECT pk, col0 FROM view_2_tab4_297
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE ((col0 > 709) OR (((col3 >= 434 AND col1 >= 915.22 AND col1 >= 31.64 OR col3 IN (185,326)) OR col4 >= 274.6 OR col3 = 459 AND (col1 < 268.58) OR col3 IN (499) OR (col0 >= 348) OR (col4 > 380.37) AND col3 < 940 OR (((col0 > 791) AND col4 >= 431.3)) AND col0 <= 965))) OR col3 > 306 AND col0 < 146 OR ((col0 >= 144)) UNION SELECT pk, col0 FROM tab4 WHERE NOT (((col0 > 709) OR (((col3 >= 434 AND col1 >= 915.22 AND col1 >= 31.64 OR col3 IN (185,326)) OR col4 >= 274.6 OR col3 = 459 AND (col1 < 268.58) OR col3 IN (499) OR (col0 >= 348) OR (col4 > 380.37) AND col3 < 940 OR (((col0 > 791) AND col4 >= 431.3)) AND col0 <= 965))) OR col3 > 306 AND col0 < 146 OR ((col0 >= 144)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_297 UNION SELECT pk, col0 FROM view_2_tab4_297
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-6500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE ((col0 > 709) OR (((col3 >= 434 AND col1 >= 915.22 AND col1 >= 31.64 OR col3 IN (185,326)) OR col4 >= 274.6 OR col3 = 459 AND (col1 < 268.58) OR col3 IN (499) OR (col0 >= 348) OR (col4 > 380.37) AND col3 < 940 OR (((col0 > 791) AND col4 >= 431.3)) AND col0 <= 965))) OR col3 > 306 AND col0 < 146 OR ((col0 >= 144)) ) AS tab4_297
----
99 values hashing to ffd3dd7b611ce53af641c2899d3aa331

query I rowsort label-6500-3
SELECT * FROM view_3_tab4_297
----
99 values hashing to ffd3dd7b611ce53af641c2899d3aa331

query I rowsort label-6500-3
SELECT pk FROM tab4 WHERE ((col0 > 709) OR (((col3 >= 434 AND col1 >= 915.22 AND col1 >= 31.64 OR col3 IN (185,326)) OR col4 >= 274.6 OR col3 = 459 AND (col1 < 268.58) OR col3 IN (499) OR (col0 >= 348) OR (col4 > 380.37) AND col3 < 940 OR (((col0 > 791) AND col4 >= 431.3)) AND col0 <= 965))) OR col3 > 306 AND col0 < 146 OR ((col0 >= 144))
----
99 values hashing to ffd3dd7b611ce53af641c2899d3aa331

statement ok
DROP VIEW view_1_tab4_297

statement ok
DROP VIEW view_2_tab4_297

statement ok
DROP VIEW view_3_tab4_297

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_298') DROP VIEW view_1_tab0_298

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_298

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_298') DROP VIEW view_2_tab0_298

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_298

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_298') DROP VIEW view_3_tab0_298

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_298

statement ok
CREATE VIEW view_1_tab0_298 AS SELECT pk, col0 FROM tab0 WHERE ((col4 > 362.56))

statement ok
CREATE VIEW view_2_tab0_298 AS SELECT pk, col0 FROM tab0 WHERE NOT (((col4 > 362.56)))

statement ok
CREATE VIEW view_3_tab0_298 AS SELECT pk FROM view_1_tab0_298

query II rowsort label-6600-1
SELECT pk, col0 FROM tab0 WHERE ((col4 > 362.56))
----
144 values hashing to da496d2911789aba9bafb71537bba7d8

query II rowsort label-6600-2
SELECT pk, col0 FROM tab0 WHERE NOT (((col4 > 362.56)))
----
56 values hashing to ec82a13372e3394c3a1e87dbd8611e37

query II rowsort label-6600-1
SELECT pk, col0 FROM view_1_tab0_298
----
144 values hashing to da496d2911789aba9bafb71537bba7d8

query II rowsort label-6600-2
SELECT pk, col0 FROM view_2_tab0_298
----
56 values hashing to ec82a13372e3394c3a1e87dbd8611e37

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE ((col4 > 362.56)) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (((col4 > 362.56)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_298 UNION ALL SELECT pk, col0 FROM view_2_tab0_298
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE ((col4 > 362.56)) UNION SELECT pk, col0 FROM tab0 WHERE NOT (((col4 > 362.56)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_298 UNION SELECT pk, col0 FROM view_2_tab0_298
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-6600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE ((col4 > 362.56)) ) AS tab0_298
----
72 values hashing to 23a57a82eba5793b2d4ff2981e3db5f7

query I rowsort label-6600-3
SELECT * FROM view_3_tab0_298
----
72 values hashing to 23a57a82eba5793b2d4ff2981e3db5f7

query I rowsort label-6600-3
SELECT pk FROM tab0 WHERE ((col4 > 362.56))
----
72 values hashing to 23a57a82eba5793b2d4ff2981e3db5f7

statement ok
DROP VIEW view_1_tab0_298

statement ok
DROP VIEW view_2_tab0_298

statement ok
DROP VIEW view_3_tab0_298

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_298') DROP VIEW view_1_tab1_298

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_298

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_298') DROP VIEW view_2_tab1_298

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_298

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_298') DROP VIEW view_3_tab1_298

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_298

statement ok
CREATE VIEW view_1_tab1_298 AS SELECT pk, col0 FROM tab1 WHERE ((col4 > 362.56))

statement ok
CREATE VIEW view_2_tab1_298 AS SELECT pk, col0 FROM tab1 WHERE NOT (((col4 > 362.56)))

statement ok
CREATE VIEW view_3_tab1_298 AS SELECT pk FROM view_1_tab1_298

query II rowsort label-6600-1
SELECT pk, col0 FROM tab1 WHERE ((col4 > 362.56))
----
144 values hashing to da496d2911789aba9bafb71537bba7d8

query II rowsort label-6600-2
SELECT pk, col0 FROM tab1 WHERE NOT (((col4 > 362.56)))
----
56 values hashing to ec82a13372e3394c3a1e87dbd8611e37

query II rowsort label-6600-1
SELECT pk, col0 FROM view_1_tab1_298
----
144 values hashing to da496d2911789aba9bafb71537bba7d8

query II rowsort label-6600-2
SELECT pk, col0 FROM view_2_tab1_298
----
56 values hashing to ec82a13372e3394c3a1e87dbd8611e37

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE ((col4 > 362.56)) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (((col4 > 362.56)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_298 UNION ALL SELECT pk, col0 FROM view_2_tab1_298
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE ((col4 > 362.56)) UNION SELECT pk, col0 FROM tab1 WHERE NOT (((col4 > 362.56)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_298 UNION SELECT pk, col0 FROM view_2_tab1_298
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-6600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE ((col4 > 362.56)) ) AS tab1_298
----
72 values hashing to 23a57a82eba5793b2d4ff2981e3db5f7

query I rowsort label-6600-3
SELECT * FROM view_3_tab1_298
----
72 values hashing to 23a57a82eba5793b2d4ff2981e3db5f7

query I rowsort label-6600-3
SELECT pk FROM tab1 WHERE ((col4 > 362.56))
----
72 values hashing to 23a57a82eba5793b2d4ff2981e3db5f7

statement ok
DROP VIEW view_1_tab1_298

statement ok
DROP VIEW view_2_tab1_298

statement ok
DROP VIEW view_3_tab1_298

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_298') DROP VIEW view_1_tab2_298

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_298

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_298') DROP VIEW view_2_tab2_298

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_298

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_298') DROP VIEW view_3_tab2_298

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_298

statement ok
CREATE VIEW view_1_tab2_298 AS SELECT pk, col0 FROM tab2 WHERE ((col4 > 362.56))

statement ok
CREATE VIEW view_2_tab2_298 AS SELECT pk, col0 FROM tab2 WHERE NOT (((col4 > 362.56)))

statement ok
CREATE VIEW view_3_tab2_298 AS SELECT pk FROM view_1_tab2_298

query II rowsort label-6600-1
SELECT pk, col0 FROM tab2 WHERE ((col4 > 362.56))
----
144 values hashing to da496d2911789aba9bafb71537bba7d8

query II rowsort label-6600-2
SELECT pk, col0 FROM tab2 WHERE NOT (((col4 > 362.56)))
----
56 values hashing to ec82a13372e3394c3a1e87dbd8611e37

query II rowsort label-6600-1
SELECT pk, col0 FROM view_1_tab2_298
----
144 values hashing to da496d2911789aba9bafb71537bba7d8

query II rowsort label-6600-2
SELECT pk, col0 FROM view_2_tab2_298
----
56 values hashing to ec82a13372e3394c3a1e87dbd8611e37

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE ((col4 > 362.56)) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (((col4 > 362.56)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_298 UNION ALL SELECT pk, col0 FROM view_2_tab2_298
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE ((col4 > 362.56)) UNION SELECT pk, col0 FROM tab2 WHERE NOT (((col4 > 362.56)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_298 UNION SELECT pk, col0 FROM view_2_tab2_298
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-6600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE ((col4 > 362.56)) ) AS tab2_298
----
72 values hashing to 23a57a82eba5793b2d4ff2981e3db5f7

query I rowsort label-6600-3
SELECT * FROM view_3_tab2_298
----
72 values hashing to 23a57a82eba5793b2d4ff2981e3db5f7

query I rowsort label-6600-3
SELECT pk FROM tab2 WHERE ((col4 > 362.56))
----
72 values hashing to 23a57a82eba5793b2d4ff2981e3db5f7

statement ok
DROP VIEW view_1_tab2_298

statement ok
DROP VIEW view_2_tab2_298

statement ok
DROP VIEW view_3_tab2_298

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_298') DROP VIEW view_1_tab3_298

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_298

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_298') DROP VIEW view_2_tab3_298

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_298

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_298') DROP VIEW view_3_tab3_298

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_298

statement ok
CREATE VIEW view_1_tab3_298 AS SELECT pk, col0 FROM tab3 WHERE ((col4 > 362.56))

statement ok
CREATE VIEW view_2_tab3_298 AS SELECT pk, col0 FROM tab3 WHERE NOT (((col4 > 362.56)))

statement ok
CREATE VIEW view_3_tab3_298 AS SELECT pk FROM view_1_tab3_298

query II rowsort label-6600-1
SELECT pk, col0 FROM tab3 WHERE ((col4 > 362.56))
----
144 values hashing to da496d2911789aba9bafb71537bba7d8

query II rowsort label-6600-2
SELECT pk, col0 FROM tab3 WHERE NOT (((col4 > 362.56)))
----
56 values hashing to ec82a13372e3394c3a1e87dbd8611e37

query II rowsort label-6600-1
SELECT pk, col0 FROM view_1_tab3_298
----
144 values hashing to da496d2911789aba9bafb71537bba7d8

query II rowsort label-6600-2
SELECT pk, col0 FROM view_2_tab3_298
----
56 values hashing to ec82a13372e3394c3a1e87dbd8611e37

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE ((col4 > 362.56)) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (((col4 > 362.56)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_298 UNION ALL SELECT pk, col0 FROM view_2_tab3_298
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE ((col4 > 362.56)) UNION SELECT pk, col0 FROM tab3 WHERE NOT (((col4 > 362.56)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_298 UNION SELECT pk, col0 FROM view_2_tab3_298
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-6600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE ((col4 > 362.56)) ) AS tab3_298
----
72 values hashing to 23a57a82eba5793b2d4ff2981e3db5f7

query I rowsort label-6600-3
SELECT * FROM view_3_tab3_298
----
72 values hashing to 23a57a82eba5793b2d4ff2981e3db5f7

query I rowsort label-6600-3
SELECT pk FROM tab3 WHERE ((col4 > 362.56))
----
72 values hashing to 23a57a82eba5793b2d4ff2981e3db5f7

statement ok
DROP VIEW view_1_tab3_298

statement ok
DROP VIEW view_2_tab3_298

statement ok
DROP VIEW view_3_tab3_298

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_298') DROP VIEW view_1_tab4_298

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_298

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_298') DROP VIEW view_2_tab4_298

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_298

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_298') DROP VIEW view_3_tab4_298

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_298

statement ok
CREATE VIEW view_1_tab4_298 AS SELECT pk, col0 FROM tab4 WHERE ((col4 > 362.56))

statement ok
CREATE VIEW view_2_tab4_298 AS SELECT pk, col0 FROM tab4 WHERE NOT (((col4 > 362.56)))

statement ok
CREATE VIEW view_3_tab4_298 AS SELECT pk FROM view_1_tab4_298

query II rowsort label-6600-1
SELECT pk, col0 FROM tab4 WHERE ((col4 > 362.56))
----
144 values hashing to da496d2911789aba9bafb71537bba7d8

query II rowsort label-6600-2
SELECT pk, col0 FROM tab4 WHERE NOT (((col4 > 362.56)))
----
56 values hashing to ec82a13372e3394c3a1e87dbd8611e37

query II rowsort label-6600-1
SELECT pk, col0 FROM view_1_tab4_298
----
144 values hashing to da496d2911789aba9bafb71537bba7d8

query II rowsort label-6600-2
SELECT pk, col0 FROM view_2_tab4_298
----
56 values hashing to ec82a13372e3394c3a1e87dbd8611e37

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE ((col4 > 362.56)) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (((col4 > 362.56)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_298 UNION ALL SELECT pk, col0 FROM view_2_tab4_298
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE ((col4 > 362.56)) UNION SELECT pk, col0 FROM tab4 WHERE NOT (((col4 > 362.56)))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_298 UNION SELECT pk, col0 FROM view_2_tab4_298
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-6600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE ((col4 > 362.56)) ) AS tab4_298
----
72 values hashing to 23a57a82eba5793b2d4ff2981e3db5f7

query I rowsort label-6600-3
SELECT * FROM view_3_tab4_298
----
72 values hashing to 23a57a82eba5793b2d4ff2981e3db5f7

query I rowsort label-6600-3
SELECT pk FROM tab4 WHERE ((col4 > 362.56))
----
72 values hashing to 23a57a82eba5793b2d4ff2981e3db5f7

statement ok
DROP VIEW view_1_tab4_298

statement ok
DROP VIEW view_2_tab4_298

statement ok
DROP VIEW view_3_tab4_298

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_299') DROP VIEW view_1_tab0_299

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_299

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_299') DROP VIEW view_2_tab0_299

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_299

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_299') DROP VIEW view_3_tab0_299

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_299

statement ok
CREATE VIEW view_1_tab0_299 AS SELECT pk, col0 FROM tab0 WHERE col3 < 424

statement ok
CREATE VIEW view_2_tab0_299 AS SELECT pk, col0 FROM tab0 WHERE NOT (col3 < 424)

statement ok
CREATE VIEW view_3_tab0_299 AS SELECT pk FROM view_1_tab0_299

query II rowsort label-6700-1
SELECT pk, col0 FROM tab0 WHERE col3 < 424
----
92 values hashing to c187cf7c45c26519627424ed1ca39376

query II rowsort label-6700-2
SELECT pk, col0 FROM tab0 WHERE NOT (col3 < 424)
----
108 values hashing to 65f7dc029ff81d75abbab45e6e009869

query II rowsort label-6700-1
SELECT pk, col0 FROM view_1_tab0_299
----
92 values hashing to c187cf7c45c26519627424ed1ca39376

query II rowsort label-6700-2
SELECT pk, col0 FROM view_2_tab0_299
----
108 values hashing to 65f7dc029ff81d75abbab45e6e009869

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 < 424 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col3 < 424)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_299 UNION ALL SELECT pk, col0 FROM view_2_tab0_299
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 < 424 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col3 < 424)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_299 UNION SELECT pk, col0 FROM view_2_tab0_299
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-6700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col3 < 424 ) AS tab0_299
----
46 values hashing to 9db1ecd96a41c7ec2ce72e3dc018a2cf

query I rowsort label-6700-3
SELECT * FROM view_3_tab0_299
----
46 values hashing to 9db1ecd96a41c7ec2ce72e3dc018a2cf

query I rowsort label-6700-3
SELECT pk FROM tab0 WHERE col3 < 424
----
46 values hashing to 9db1ecd96a41c7ec2ce72e3dc018a2cf

statement ok
DROP VIEW view_1_tab0_299

statement ok
DROP VIEW view_2_tab0_299

statement ok
DROP VIEW view_3_tab0_299

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_299') DROP VIEW view_1_tab1_299

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_299

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_299') DROP VIEW view_2_tab1_299

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_299

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_299') DROP VIEW view_3_tab1_299

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_299

statement ok
CREATE VIEW view_1_tab1_299 AS SELECT pk, col0 FROM tab1 WHERE col3 < 424

statement ok
CREATE VIEW view_2_tab1_299 AS SELECT pk, col0 FROM tab1 WHERE NOT (col3 < 424)

statement ok
CREATE VIEW view_3_tab1_299 AS SELECT pk FROM view_1_tab1_299

query II rowsort label-6700-1
SELECT pk, col0 FROM tab1 WHERE col3 < 424
----
92 values hashing to c187cf7c45c26519627424ed1ca39376

query II rowsort label-6700-2
SELECT pk, col0 FROM tab1 WHERE NOT (col3 < 424)
----
108 values hashing to 65f7dc029ff81d75abbab45e6e009869

query II rowsort label-6700-1
SELECT pk, col0 FROM view_1_tab1_299
----
92 values hashing to c187cf7c45c26519627424ed1ca39376

query II rowsort label-6700-2
SELECT pk, col0 FROM view_2_tab1_299
----
108 values hashing to 65f7dc029ff81d75abbab45e6e009869

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 < 424 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col3 < 424)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_299 UNION ALL SELECT pk, col0 FROM view_2_tab1_299
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 < 424 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col3 < 424)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_299 UNION SELECT pk, col0 FROM view_2_tab1_299
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-6700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col3 < 424 ) AS tab1_299
----
46 values hashing to 9db1ecd96a41c7ec2ce72e3dc018a2cf

query I rowsort label-6700-3
SELECT * FROM view_3_tab1_299
----
46 values hashing to 9db1ecd96a41c7ec2ce72e3dc018a2cf

query I rowsort label-6700-3
SELECT pk FROM tab1 WHERE col3 < 424
----
46 values hashing to 9db1ecd96a41c7ec2ce72e3dc018a2cf

statement ok
DROP VIEW view_1_tab1_299

statement ok
DROP VIEW view_2_tab1_299

statement ok
DROP VIEW view_3_tab1_299

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_299') DROP VIEW view_1_tab2_299

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_299

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_299') DROP VIEW view_2_tab2_299

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_299

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_299') DROP VIEW view_3_tab2_299

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_299

statement ok
CREATE VIEW view_1_tab2_299 AS SELECT pk, col0 FROM tab2 WHERE col3 < 424

statement ok
CREATE VIEW view_2_tab2_299 AS SELECT pk, col0 FROM tab2 WHERE NOT (col3 < 424)

statement ok
CREATE VIEW view_3_tab2_299 AS SELECT pk FROM view_1_tab2_299

query II rowsort label-6700-1
SELECT pk, col0 FROM tab2 WHERE col3 < 424
----
92 values hashing to c187cf7c45c26519627424ed1ca39376

query II rowsort label-6700-2
SELECT pk, col0 FROM tab2 WHERE NOT (col3 < 424)
----
108 values hashing to 65f7dc029ff81d75abbab45e6e009869

query II rowsort label-6700-1
SELECT pk, col0 FROM view_1_tab2_299
----
92 values hashing to c187cf7c45c26519627424ed1ca39376

query II rowsort label-6700-2
SELECT pk, col0 FROM view_2_tab2_299
----
108 values hashing to 65f7dc029ff81d75abbab45e6e009869

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 < 424 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col3 < 424)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_299 UNION ALL SELECT pk, col0 FROM view_2_tab2_299
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 < 424 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col3 < 424)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_299 UNION SELECT pk, col0 FROM view_2_tab2_299
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-6700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col3 < 424 ) AS tab2_299
----
46 values hashing to 9db1ecd96a41c7ec2ce72e3dc018a2cf

query I rowsort label-6700-3
SELECT * FROM view_3_tab2_299
----
46 values hashing to 9db1ecd96a41c7ec2ce72e3dc018a2cf

query I rowsort label-6700-3
SELECT pk FROM tab2 WHERE col3 < 424
----
46 values hashing to 9db1ecd96a41c7ec2ce72e3dc018a2cf

statement ok
DROP VIEW view_1_tab2_299

statement ok
DROP VIEW view_2_tab2_299

statement ok
DROP VIEW view_3_tab2_299

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_299') DROP VIEW view_1_tab3_299

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_299

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_299') DROP VIEW view_2_tab3_299

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_299

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_299') DROP VIEW view_3_tab3_299

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_299

statement ok
CREATE VIEW view_1_tab3_299 AS SELECT pk, col0 FROM tab3 WHERE col3 < 424

statement ok
CREATE VIEW view_2_tab3_299 AS SELECT pk, col0 FROM tab3 WHERE NOT (col3 < 424)

statement ok
CREATE VIEW view_3_tab3_299 AS SELECT pk FROM view_1_tab3_299

query II rowsort label-6700-1
SELECT pk, col0 FROM tab3 WHERE col3 < 424
----
92 values hashing to c187cf7c45c26519627424ed1ca39376

query II rowsort label-6700-2
SELECT pk, col0 FROM tab3 WHERE NOT (col3 < 424)
----
108 values hashing to 65f7dc029ff81d75abbab45e6e009869

query II rowsort label-6700-1
SELECT pk, col0 FROM view_1_tab3_299
----
92 values hashing to c187cf7c45c26519627424ed1ca39376

query II rowsort label-6700-2
SELECT pk, col0 FROM view_2_tab3_299
----
108 values hashing to 65f7dc029ff81d75abbab45e6e009869

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 < 424 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col3 < 424)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_299 UNION ALL SELECT pk, col0 FROM view_2_tab3_299
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 < 424 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col3 < 424)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_299 UNION SELECT pk, col0 FROM view_2_tab3_299
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-6700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col3 < 424 ) AS tab3_299
----
46 values hashing to 9db1ecd96a41c7ec2ce72e3dc018a2cf

query I rowsort label-6700-3
SELECT * FROM view_3_tab3_299
----
46 values hashing to 9db1ecd96a41c7ec2ce72e3dc018a2cf

query I rowsort label-6700-3
SELECT pk FROM tab3 WHERE col3 < 424
----
46 values hashing to 9db1ecd96a41c7ec2ce72e3dc018a2cf

statement ok
DROP VIEW view_1_tab3_299

statement ok
DROP VIEW view_2_tab3_299

statement ok
DROP VIEW view_3_tab3_299

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_299') DROP VIEW view_1_tab4_299

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_299

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_299') DROP VIEW view_2_tab4_299

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_299

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_299') DROP VIEW view_3_tab4_299

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_299

statement ok
CREATE VIEW view_1_tab4_299 AS SELECT pk, col0 FROM tab4 WHERE col3 < 424

statement ok
CREATE VIEW view_2_tab4_299 AS SELECT pk, col0 FROM tab4 WHERE NOT (col3 < 424)

statement ok
CREATE VIEW view_3_tab4_299 AS SELECT pk FROM view_1_tab4_299

query II rowsort label-6700-1
SELECT pk, col0 FROM tab4 WHERE col3 < 424
----
92 values hashing to c187cf7c45c26519627424ed1ca39376

query II rowsort label-6700-2
SELECT pk, col0 FROM tab4 WHERE NOT (col3 < 424)
----
108 values hashing to 65f7dc029ff81d75abbab45e6e009869

query II rowsort label-6700-1
SELECT pk, col0 FROM view_1_tab4_299
----
92 values hashing to c187cf7c45c26519627424ed1ca39376

query II rowsort label-6700-2
SELECT pk, col0 FROM view_2_tab4_299
----
108 values hashing to 65f7dc029ff81d75abbab45e6e009869

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 < 424 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col3 < 424)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_299 UNION ALL SELECT pk, col0 FROM view_2_tab4_299
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 < 424 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col3 < 424)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_299 UNION SELECT pk, col0 FROM view_2_tab4_299
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-6700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col3 < 424 ) AS tab4_299
----
46 values hashing to 9db1ecd96a41c7ec2ce72e3dc018a2cf

query I rowsort label-6700-3
SELECT * FROM view_3_tab4_299
----
46 values hashing to 9db1ecd96a41c7ec2ce72e3dc018a2cf

query I rowsort label-6700-3
SELECT pk FROM tab4 WHERE col3 < 424
----
46 values hashing to 9db1ecd96a41c7ec2ce72e3dc018a2cf

statement ok
DROP VIEW view_1_tab4_299

statement ok
DROP VIEW view_2_tab4_299

statement ok
DROP VIEW view_3_tab4_299

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_300') DROP VIEW view_1_tab0_300

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_300

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_300') DROP VIEW view_2_tab0_300

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_300

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_300') DROP VIEW view_3_tab0_300

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_300

statement ok
CREATE VIEW view_1_tab0_300 AS SELECT pk, col0 FROM tab0 WHERE col1 < 522.96

statement ok
CREATE VIEW view_2_tab0_300 AS SELECT pk, col0 FROM tab0 WHERE NOT (col1 < 522.96)

statement ok
CREATE VIEW view_3_tab0_300 AS SELECT pk FROM view_1_tab0_300

query II rowsort label-6800-1
SELECT pk, col0 FROM tab0 WHERE col1 < 522.96
----
104 values hashing to 448d967a5ee0729a908763313d6482a8

query II rowsort label-6800-2
SELECT pk, col0 FROM tab0 WHERE NOT (col1 < 522.96)
----
96 values hashing to 7726cc7ec5c94f2f3bf53591dfc356cd

query II rowsort label-6800-1
SELECT pk, col0 FROM view_1_tab0_300
----
104 values hashing to 448d967a5ee0729a908763313d6482a8

query II rowsort label-6800-2
SELECT pk, col0 FROM view_2_tab0_300
----
96 values hashing to 7726cc7ec5c94f2f3bf53591dfc356cd

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col1 < 522.96 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col1 < 522.96)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_300 UNION ALL SELECT pk, col0 FROM view_2_tab0_300
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col1 < 522.96 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col1 < 522.96)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_300 UNION SELECT pk, col0 FROM view_2_tab0_300
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-6800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col1 < 522.96 ) AS tab0_300
----
52 values hashing to 541393ecbbe55565e237b429b02554d2

query I rowsort label-6800-3
SELECT * FROM view_3_tab0_300
----
52 values hashing to 541393ecbbe55565e237b429b02554d2

query I rowsort label-6800-3
SELECT pk FROM tab0 WHERE col1 < 522.96
----
52 values hashing to 541393ecbbe55565e237b429b02554d2

statement ok
DROP VIEW view_1_tab0_300

statement ok
DROP VIEW view_2_tab0_300

statement ok
DROP VIEW view_3_tab0_300

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_300') DROP VIEW view_1_tab1_300

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_300

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_300') DROP VIEW view_2_tab1_300

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_300

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_300') DROP VIEW view_3_tab1_300

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_300

statement ok
CREATE VIEW view_1_tab1_300 AS SELECT pk, col0 FROM tab1 WHERE col1 < 522.96

statement ok
CREATE VIEW view_2_tab1_300 AS SELECT pk, col0 FROM tab1 WHERE NOT (col1 < 522.96)

statement ok
CREATE VIEW view_3_tab1_300 AS SELECT pk FROM view_1_tab1_300

query II rowsort label-6800-1
SELECT pk, col0 FROM tab1 WHERE col1 < 522.96
----
104 values hashing to 448d967a5ee0729a908763313d6482a8

query II rowsort label-6800-2
SELECT pk, col0 FROM tab1 WHERE NOT (col1 < 522.96)
----
96 values hashing to 7726cc7ec5c94f2f3bf53591dfc356cd

query II rowsort label-6800-1
SELECT pk, col0 FROM view_1_tab1_300
----
104 values hashing to 448d967a5ee0729a908763313d6482a8

query II rowsort label-6800-2
SELECT pk, col0 FROM view_2_tab1_300
----
96 values hashing to 7726cc7ec5c94f2f3bf53591dfc356cd

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col1 < 522.96 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col1 < 522.96)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_300 UNION ALL SELECT pk, col0 FROM view_2_tab1_300
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col1 < 522.96 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col1 < 522.96)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_300 UNION SELECT pk, col0 FROM view_2_tab1_300
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-6800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col1 < 522.96 ) AS tab1_300
----
52 values hashing to 541393ecbbe55565e237b429b02554d2

query I rowsort label-6800-3
SELECT * FROM view_3_tab1_300
----
52 values hashing to 541393ecbbe55565e237b429b02554d2

query I rowsort label-6800-3
SELECT pk FROM tab1 WHERE col1 < 522.96
----
52 values hashing to 541393ecbbe55565e237b429b02554d2

statement ok
DROP VIEW view_1_tab1_300

statement ok
DROP VIEW view_2_tab1_300

statement ok
DROP VIEW view_3_tab1_300

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_300') DROP VIEW view_1_tab2_300

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_300

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_300') DROP VIEW view_2_tab2_300

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_300

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_300') DROP VIEW view_3_tab2_300

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_300

statement ok
CREATE VIEW view_1_tab2_300 AS SELECT pk, col0 FROM tab2 WHERE col1 < 522.96

statement ok
CREATE VIEW view_2_tab2_300 AS SELECT pk, col0 FROM tab2 WHERE NOT (col1 < 522.96)

statement ok
CREATE VIEW view_3_tab2_300 AS SELECT pk FROM view_1_tab2_300

query II rowsort label-6800-1
SELECT pk, col0 FROM tab2 WHERE col1 < 522.96
----
104 values hashing to 448d967a5ee0729a908763313d6482a8

query II rowsort label-6800-2
SELECT pk, col0 FROM tab2 WHERE NOT (col1 < 522.96)
----
96 values hashing to 7726cc7ec5c94f2f3bf53591dfc356cd

query II rowsort label-6800-1
SELECT pk, col0 FROM view_1_tab2_300
----
104 values hashing to 448d967a5ee0729a908763313d6482a8

query II rowsort label-6800-2
SELECT pk, col0 FROM view_2_tab2_300
----
96 values hashing to 7726cc7ec5c94f2f3bf53591dfc356cd

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col1 < 522.96 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col1 < 522.96)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_300 UNION ALL SELECT pk, col0 FROM view_2_tab2_300
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col1 < 522.96 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col1 < 522.96)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_300 UNION SELECT pk, col0 FROM view_2_tab2_300
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-6800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col1 < 522.96 ) AS tab2_300
----
52 values hashing to 541393ecbbe55565e237b429b02554d2

query I rowsort label-6800-3
SELECT * FROM view_3_tab2_300
----
52 values hashing to 541393ecbbe55565e237b429b02554d2

query I rowsort label-6800-3
SELECT pk FROM tab2 WHERE col1 < 522.96
----
52 values hashing to 541393ecbbe55565e237b429b02554d2

statement ok
DROP VIEW view_1_tab2_300

statement ok
DROP VIEW view_2_tab2_300

statement ok
DROP VIEW view_3_tab2_300

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_300') DROP VIEW view_1_tab3_300

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_300

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_300') DROP VIEW view_2_tab3_300

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_300

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_300') DROP VIEW view_3_tab3_300

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_300

statement ok
CREATE VIEW view_1_tab3_300 AS SELECT pk, col0 FROM tab3 WHERE col1 < 522.96

statement ok
CREATE VIEW view_2_tab3_300 AS SELECT pk, col0 FROM tab3 WHERE NOT (col1 < 522.96)

statement ok
CREATE VIEW view_3_tab3_300 AS SELECT pk FROM view_1_tab3_300

query II rowsort label-6800-1
SELECT pk, col0 FROM tab3 WHERE col1 < 522.96
----
104 values hashing to 448d967a5ee0729a908763313d6482a8

query II rowsort label-6800-2
SELECT pk, col0 FROM tab3 WHERE NOT (col1 < 522.96)
----
96 values hashing to 7726cc7ec5c94f2f3bf53591dfc356cd

query II rowsort label-6800-1
SELECT pk, col0 FROM view_1_tab3_300
----
104 values hashing to 448d967a5ee0729a908763313d6482a8

query II rowsort label-6800-2
SELECT pk, col0 FROM view_2_tab3_300
----
96 values hashing to 7726cc7ec5c94f2f3bf53591dfc356cd

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col1 < 522.96 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col1 < 522.96)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_300 UNION ALL SELECT pk, col0 FROM view_2_tab3_300
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col1 < 522.96 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col1 < 522.96)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_300 UNION SELECT pk, col0 FROM view_2_tab3_300
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-6800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col1 < 522.96 ) AS tab3_300
----
52 values hashing to 541393ecbbe55565e237b429b02554d2

query I rowsort label-6800-3
SELECT * FROM view_3_tab3_300
----
52 values hashing to 541393ecbbe55565e237b429b02554d2

query I rowsort label-6800-3
SELECT pk FROM tab3 WHERE col1 < 522.96
----
52 values hashing to 541393ecbbe55565e237b429b02554d2

statement ok
DROP VIEW view_1_tab3_300

statement ok
DROP VIEW view_2_tab3_300

statement ok
DROP VIEW view_3_tab3_300

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_300') DROP VIEW view_1_tab4_300

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_300

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_300') DROP VIEW view_2_tab4_300

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_300

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_300') DROP VIEW view_3_tab4_300

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_300

statement ok
CREATE VIEW view_1_tab4_300 AS SELECT pk, col0 FROM tab4 WHERE col1 < 522.96

statement ok
CREATE VIEW view_2_tab4_300 AS SELECT pk, col0 FROM tab4 WHERE NOT (col1 < 522.96)

statement ok
CREATE VIEW view_3_tab4_300 AS SELECT pk FROM view_1_tab4_300

query II rowsort label-6800-1
SELECT pk, col0 FROM tab4 WHERE col1 < 522.96
----
104 values hashing to 448d967a5ee0729a908763313d6482a8

query II rowsort label-6800-2
SELECT pk, col0 FROM tab4 WHERE NOT (col1 < 522.96)
----
96 values hashing to 7726cc7ec5c94f2f3bf53591dfc356cd

query II rowsort label-6800-1
SELECT pk, col0 FROM view_1_tab4_300
----
104 values hashing to 448d967a5ee0729a908763313d6482a8

query II rowsort label-6800-2
SELECT pk, col0 FROM view_2_tab4_300
----
96 values hashing to 7726cc7ec5c94f2f3bf53591dfc356cd

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col1 < 522.96 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col1 < 522.96)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_300 UNION ALL SELECT pk, col0 FROM view_2_tab4_300
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col1 < 522.96 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col1 < 522.96)
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_300 UNION SELECT pk, col0 FROM view_2_tab4_300
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-6800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col1 < 522.96 ) AS tab4_300
----
52 values hashing to 541393ecbbe55565e237b429b02554d2

query I rowsort label-6800-3
SELECT * FROM view_3_tab4_300
----
52 values hashing to 541393ecbbe55565e237b429b02554d2

query I rowsort label-6800-3
SELECT pk FROM tab4 WHERE col1 < 522.96
----
52 values hashing to 541393ecbbe55565e237b429b02554d2

statement ok
DROP VIEW view_1_tab4_300

statement ok
DROP VIEW view_2_tab4_300

statement ok
DROP VIEW view_3_tab4_300

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_301') DROP VIEW view_1_tab0_301

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_301

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_301') DROP VIEW view_2_tab0_301

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_301

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_301') DROP VIEW view_3_tab0_301

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_301

statement ok
CREATE VIEW view_1_tab0_301 AS SELECT pk, col0 FROM tab0 WHERE col3 < 503 OR col3 IN (327,997) AND col0 >= 541 AND (col0 > 495 AND (col4 >= 258.46 AND col4 IS NULL AND col0 >= 747 OR (col3 < 676) AND col3 < 649 OR (col1 >= 839.72 AND ((col0 > 444 OR col3 = 316 AND (((col3 < 241) AND (col4 > 37.76 AND col3 <= 594))) OR (((col1 < 107.89))) AND col3 >= 235)) AND col3 = 643 OR col3 >= 341 OR col1 < 842.48 AND col0 < 202) AND col3 >= 500 OR (col0 < 84 AND col0 >= 371) OR (col0 BETWEEN 440 AND 778 AND (col1 IN (527.40,784.55,103.64)) AND col3 < 825)))

statement ok
CREATE VIEW view_2_tab0_301 AS SELECT pk, col0 FROM tab0 WHERE NOT (col3 < 503 OR col3 IN (327,997) AND col0 >= 541 AND (col0 > 495 AND (col4 >= 258.46 AND col4 IS NULL AND col0 >= 747 OR (col3 < 676) AND col3 < 649 OR (col1 >= 839.72 AND ((col0 > 444 OR col3 = 316 AND (((col3 < 241) AND (col4 > 37.76 AND col3 <= 594))) OR (((col1 < 107.89))) AND col3 >= 235)) AND col3 = 643 OR col3 >= 341 OR col1 < 842.48 AND col0 < 202) AND col3 >= 500 OR (col0 < 84 AND col0 >= 371) OR (col0 BETWEEN 440 AND 778 AND (col1 IN (527.40,784.55,103.64)) AND col3 < 825))))

statement ok
CREATE VIEW view_3_tab0_301 AS SELECT pk FROM view_1_tab0_301

query II rowsort label-6900-1
SELECT pk, col0 FROM tab0 WHERE col3 < 503 OR col3 IN (327,997) AND col0 >= 541 AND (col0 > 495 AND (col4 >= 258.46 AND col4 IS NULL AND col0 >= 747 OR (col3 < 676) AND col3 < 649 OR (col1 >= 839.72 AND ((col0 > 444 OR col3 = 316 AND (((col3 < 241) AND (col4 > 37.76 AND col3 <= 594))) OR (((col1 < 107.89))) AND col3 >= 235)) AND col3 = 643 OR col3 >= 341 OR col1 < 842.48 AND col0 < 202) AND col3 >= 500 OR (col0 < 84 AND col0 >= 371) OR (col0 BETWEEN 440 AND 778 AND (col1 IN (527.40,784.55,103.64)) AND col3 < 825)))
----
102 values hashing to 76a557074dcbf59cd3a69927a4914d5d

query II rowsort label-6900-2
SELECT pk, col0 FROM tab0 WHERE NOT (col3 < 503 OR col3 IN (327,997) AND col0 >= 541 AND (col0 > 495 AND (col4 >= 258.46 AND col4 IS NULL AND col0 >= 747 OR (col3 < 676) AND col3 < 649 OR (col1 >= 839.72 AND ((col0 > 444 OR col3 = 316 AND (((col3 < 241) AND (col4 > 37.76 AND col3 <= 594))) OR (((col1 < 107.89))) AND col3 >= 235)) AND col3 = 643 OR col3 >= 341 OR col1 < 842.48 AND col0 < 202) AND col3 >= 500 OR (col0 < 84 AND col0 >= 371) OR (col0 BETWEEN 440 AND 778 AND (col1 IN (527.40,784.55,103.64)) AND col3 < 825))))
----
98 values hashing to d99a7481c15550f72cc67913098064e1

query II rowsort label-6900-1
SELECT pk, col0 FROM view_1_tab0_301
----
102 values hashing to 76a557074dcbf59cd3a69927a4914d5d

query II rowsort label-6900-2
SELECT pk, col0 FROM view_2_tab0_301
----
98 values hashing to d99a7481c15550f72cc67913098064e1

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 < 503 OR col3 IN (327,997) AND col0 >= 541 AND (col0 > 495 AND (col4 >= 258.46 AND col4 IS NULL AND col0 >= 747 OR (col3 < 676) AND col3 < 649 OR (col1 >= 839.72 AND ((col0 > 444 OR col3 = 316 AND (((col3 < 241) AND (col4 > 37.76 AND col3 <= 594))) OR (((col1 < 107.89))) AND col3 >= 235)) AND col3 = 643 OR col3 >= 341 OR col1 < 842.48 AND col0 < 202) AND col3 >= 500 OR (col0 < 84 AND col0 >= 371) OR (col0 BETWEEN 440 AND 778 AND (col1 IN (527.40,784.55,103.64)) AND col3 < 825))) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col3 < 503 OR col3 IN (327,997) AND col0 >= 541 AND (col0 > 495 AND (col4 >= 258.46 AND col4 IS NULL AND col0 >= 747 OR (col3 < 676) AND col3 < 649 OR (col1 >= 839.72 AND ((col0 > 444 OR col3 = 316 AND (((col3 < 241) AND (col4 > 37.76 AND col3 <= 594))) OR (((col1 < 107.89))) AND col3 >= 235)) AND col3 = 643 OR col3 >= 341 OR col1 < 842.48 AND col0 < 202) AND col3 >= 500 OR (col0 < 84 AND col0 >= 371) OR (col0 BETWEEN 440 AND 778 AND (col1 IN (527.40,784.55,103.64)) AND col3 < 825))))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_301 UNION ALL SELECT pk, col0 FROM view_2_tab0_301
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 < 503 OR col3 IN (327,997) AND col0 >= 541 AND (col0 > 495 AND (col4 >= 258.46 AND col4 IS NULL AND col0 >= 747 OR (col3 < 676) AND col3 < 649 OR (col1 >= 839.72 AND ((col0 > 444 OR col3 = 316 AND (((col3 < 241) AND (col4 > 37.76 AND col3 <= 594))) OR (((col1 < 107.89))) AND col3 >= 235)) AND col3 = 643 OR col3 >= 341 OR col1 < 842.48 AND col0 < 202) AND col3 >= 500 OR (col0 < 84 AND col0 >= 371) OR (col0 BETWEEN 440 AND 778 AND (col1 IN (527.40,784.55,103.64)) AND col3 < 825))) UNION SELECT pk, col0 FROM tab0 WHERE NOT (col3 < 503 OR col3 IN (327,997) AND col0 >= 541 AND (col0 > 495 AND (col4 >= 258.46 AND col4 IS NULL AND col0 >= 747 OR (col3 < 676) AND col3 < 649 OR (col1 >= 839.72 AND ((col0 > 444 OR col3 = 316 AND (((col3 < 241) AND (col4 > 37.76 AND col3 <= 594))) OR (((col1 < 107.89))) AND col3 >= 235)) AND col3 = 643 OR col3 >= 341 OR col1 < 842.48 AND col0 < 202) AND col3 >= 500 OR (col0 < 84 AND col0 >= 371) OR (col0 BETWEEN 440 AND 778 AND (col1 IN (527.40,784.55,103.64)) AND col3 < 825))))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_301 UNION SELECT pk, col0 FROM view_2_tab0_301
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-6900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col3 < 503 OR col3 IN (327,997) AND col0 >= 541 AND (col0 > 495 AND (col4 >= 258.46 AND col4 IS NULL AND col0 >= 747 OR (col3 < 676) AND col3 < 649 OR (col1 >= 839.72 AND ((col0 > 444 OR col3 = 316 AND (((col3 < 241) AND (col4 > 37.76 AND col3 <= 594))) OR (((col1 < 107.89))) AND col3 >= 235)) AND col3 = 643 OR col3 >= 341 OR col1 < 842.48 AND col0 < 202) AND col3 >= 500 OR (col0 < 84 AND col0 >= 371) OR (col0 BETWEEN 440 AND 778 AND (col1 IN (527.40,784.55,103.64)) AND col3 < 825))) ) AS tab0_301
----
51 values hashing to 1b474b99568c490591ed555a661e89bb

query I rowsort label-6900-3
SELECT * FROM view_3_tab0_301
----
51 values hashing to 1b474b99568c490591ed555a661e89bb

query I rowsort label-6900-3
SELECT pk FROM tab0 WHERE col3 < 503 OR col3 IN (327,997) AND col0 >= 541 AND (col0 > 495 AND (col4 >= 258.46 AND col4 IS NULL AND col0 >= 747 OR (col3 < 676) AND col3 < 649 OR (col1 >= 839.72 AND ((col0 > 444 OR col3 = 316 AND (((col3 < 241) AND (col4 > 37.76 AND col3 <= 594))) OR (((col1 < 107.89))) AND col3 >= 235)) AND col3 = 643 OR col3 >= 341 OR col1 < 842.48 AND col0 < 202) AND col3 >= 500 OR (col0 < 84 AND col0 >= 371) OR (col0 BETWEEN 440 AND 778 AND (col1 IN (527.40,784.55,103.64)) AND col3 < 825)))
----
51 values hashing to 1b474b99568c490591ed555a661e89bb

statement ok
DROP VIEW view_1_tab0_301

statement ok
DROP VIEW view_2_tab0_301

statement ok
DROP VIEW view_3_tab0_301

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_301') DROP VIEW view_1_tab1_301

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_301

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_301') DROP VIEW view_2_tab1_301

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_301

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_301') DROP VIEW view_3_tab1_301

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_301

statement ok
CREATE VIEW view_1_tab1_301 AS SELECT pk, col0 FROM tab1 WHERE col3 < 503 OR col3 IN (327,997) AND col0 >= 541 AND (col0 > 495 AND (col4 >= 258.46 AND col4 IS NULL AND col0 >= 747 OR (col3 < 676) AND col3 < 649 OR (col1 >= 839.72 AND ((col0 > 444 OR col3 = 316 AND (((col3 < 241) AND (col4 > 37.76 AND col3 <= 594))) OR (((col1 < 107.89))) AND col3 >= 235)) AND col3 = 643 OR col3 >= 341 OR col1 < 842.48 AND col0 < 202) AND col3 >= 500 OR (col0 < 84 AND col0 >= 371) OR (col0 BETWEEN 440 AND 778 AND (col1 IN (527.40,784.55,103.64)) AND col3 < 825)))

statement ok
CREATE VIEW view_2_tab1_301 AS SELECT pk, col0 FROM tab1 WHERE NOT (col3 < 503 OR col3 IN (327,997) AND col0 >= 541 AND (col0 > 495 AND (col4 >= 258.46 AND col4 IS NULL AND col0 >= 747 OR (col3 < 676) AND col3 < 649 OR (col1 >= 839.72 AND ((col0 > 444 OR col3 = 316 AND (((col3 < 241) AND (col4 > 37.76 AND col3 <= 594))) OR (((col1 < 107.89))) AND col3 >= 235)) AND col3 = 643 OR col3 >= 341 OR col1 < 842.48 AND col0 < 202) AND col3 >= 500 OR (col0 < 84 AND col0 >= 371) OR (col0 BETWEEN 440 AND 778 AND (col1 IN (527.40,784.55,103.64)) AND col3 < 825))))

statement ok
CREATE VIEW view_3_tab1_301 AS SELECT pk FROM view_1_tab1_301

query II rowsort label-6900-1
SELECT pk, col0 FROM tab1 WHERE col3 < 503 OR col3 IN (327,997) AND col0 >= 541 AND (col0 > 495 AND (col4 >= 258.46 AND col4 IS NULL AND col0 >= 747 OR (col3 < 676) AND col3 < 649 OR (col1 >= 839.72 AND ((col0 > 444 OR col3 = 316 AND (((col3 < 241) AND (col4 > 37.76 AND col3 <= 594))) OR (((col1 < 107.89))) AND col3 >= 235)) AND col3 = 643 OR col3 >= 341 OR col1 < 842.48 AND col0 < 202) AND col3 >= 500 OR (col0 < 84 AND col0 >= 371) OR (col0 BETWEEN 440 AND 778 AND (col1 IN (527.40,784.55,103.64)) AND col3 < 825)))
----
102 values hashing to 76a557074dcbf59cd3a69927a4914d5d

query II rowsort label-6900-2
SELECT pk, col0 FROM tab1 WHERE NOT (col3 < 503 OR col3 IN (327,997) AND col0 >= 541 AND (col0 > 495 AND (col4 >= 258.46 AND col4 IS NULL AND col0 >= 747 OR (col3 < 676) AND col3 < 649 OR (col1 >= 839.72 AND ((col0 > 444 OR col3 = 316 AND (((col3 < 241) AND (col4 > 37.76 AND col3 <= 594))) OR (((col1 < 107.89))) AND col3 >= 235)) AND col3 = 643 OR col3 >= 341 OR col1 < 842.48 AND col0 < 202) AND col3 >= 500 OR (col0 < 84 AND col0 >= 371) OR (col0 BETWEEN 440 AND 778 AND (col1 IN (527.40,784.55,103.64)) AND col3 < 825))))
----
98 values hashing to d99a7481c15550f72cc67913098064e1

query II rowsort label-6900-1
SELECT pk, col0 FROM view_1_tab1_301
----
102 values hashing to 76a557074dcbf59cd3a69927a4914d5d

query II rowsort label-6900-2
SELECT pk, col0 FROM view_2_tab1_301
----
98 values hashing to d99a7481c15550f72cc67913098064e1

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 < 503 OR col3 IN (327,997) AND col0 >= 541 AND (col0 > 495 AND (col4 >= 258.46 AND col4 IS NULL AND col0 >= 747 OR (col3 < 676) AND col3 < 649 OR (col1 >= 839.72 AND ((col0 > 444 OR col3 = 316 AND (((col3 < 241) AND (col4 > 37.76 AND col3 <= 594))) OR (((col1 < 107.89))) AND col3 >= 235)) AND col3 = 643 OR col3 >= 341 OR col1 < 842.48 AND col0 < 202) AND col3 >= 500 OR (col0 < 84 AND col0 >= 371) OR (col0 BETWEEN 440 AND 778 AND (col1 IN (527.40,784.55,103.64)) AND col3 < 825))) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col3 < 503 OR col3 IN (327,997) AND col0 >= 541 AND (col0 > 495 AND (col4 >= 258.46 AND col4 IS NULL AND col0 >= 747 OR (col3 < 676) AND col3 < 649 OR (col1 >= 839.72 AND ((col0 > 444 OR col3 = 316 AND (((col3 < 241) AND (col4 > 37.76 AND col3 <= 594))) OR (((col1 < 107.89))) AND col3 >= 235)) AND col3 = 643 OR col3 >= 341 OR col1 < 842.48 AND col0 < 202) AND col3 >= 500 OR (col0 < 84 AND col0 >= 371) OR (col0 BETWEEN 440 AND 778 AND (col1 IN (527.40,784.55,103.64)) AND col3 < 825))))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_301 UNION ALL SELECT pk, col0 FROM view_2_tab1_301
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 < 503 OR col3 IN (327,997) AND col0 >= 541 AND (col0 > 495 AND (col4 >= 258.46 AND col4 IS NULL AND col0 >= 747 OR (col3 < 676) AND col3 < 649 OR (col1 >= 839.72 AND ((col0 > 444 OR col3 = 316 AND (((col3 < 241) AND (col4 > 37.76 AND col3 <= 594))) OR (((col1 < 107.89))) AND col3 >= 235)) AND col3 = 643 OR col3 >= 341 OR col1 < 842.48 AND col0 < 202) AND col3 >= 500 OR (col0 < 84 AND col0 >= 371) OR (col0 BETWEEN 440 AND 778 AND (col1 IN (527.40,784.55,103.64)) AND col3 < 825))) UNION SELECT pk, col0 FROM tab1 WHERE NOT (col3 < 503 OR col3 IN (327,997) AND col0 >= 541 AND (col0 > 495 AND (col4 >= 258.46 AND col4 IS NULL AND col0 >= 747 OR (col3 < 676) AND col3 < 649 OR (col1 >= 839.72 AND ((col0 > 444 OR col3 = 316 AND (((col3 < 241) AND (col4 > 37.76 AND col3 <= 594))) OR (((col1 < 107.89))) AND col3 >= 235)) AND col3 = 643 OR col3 >= 341 OR col1 < 842.48 AND col0 < 202) AND col3 >= 500 OR (col0 < 84 AND col0 >= 371) OR (col0 BETWEEN 440 AND 778 AND (col1 IN (527.40,784.55,103.64)) AND col3 < 825))))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_301 UNION SELECT pk, col0 FROM view_2_tab1_301
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-6900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col3 < 503 OR col3 IN (327,997) AND col0 >= 541 AND (col0 > 495 AND (col4 >= 258.46 AND col4 IS NULL AND col0 >= 747 OR (col3 < 676) AND col3 < 649 OR (col1 >= 839.72 AND ((col0 > 444 OR col3 = 316 AND (((col3 < 241) AND (col4 > 37.76 AND col3 <= 594))) OR (((col1 < 107.89))) AND col3 >= 235)) AND col3 = 643 OR col3 >= 341 OR col1 < 842.48 AND col0 < 202) AND col3 >= 500 OR (col0 < 84 AND col0 >= 371) OR (col0 BETWEEN 440 AND 778 AND (col1 IN (527.40,784.55,103.64)) AND col3 < 825))) ) AS tab1_301
----
51 values hashing to 1b474b99568c490591ed555a661e89bb

query I rowsort label-6900-3
SELECT * FROM view_3_tab1_301
----
51 values hashing to 1b474b99568c490591ed555a661e89bb

query I rowsort label-6900-3
SELECT pk FROM tab1 WHERE col3 < 503 OR col3 IN (327,997) AND col0 >= 541 AND (col0 > 495 AND (col4 >= 258.46 AND col4 IS NULL AND col0 >= 747 OR (col3 < 676) AND col3 < 649 OR (col1 >= 839.72 AND ((col0 > 444 OR col3 = 316 AND (((col3 < 241) AND (col4 > 37.76 AND col3 <= 594))) OR (((col1 < 107.89))) AND col3 >= 235)) AND col3 = 643 OR col3 >= 341 OR col1 < 842.48 AND col0 < 202) AND col3 >= 500 OR (col0 < 84 AND col0 >= 371) OR (col0 BETWEEN 440 AND 778 AND (col1 IN (527.40,784.55,103.64)) AND col3 < 825)))
----
51 values hashing to 1b474b99568c490591ed555a661e89bb

statement ok
DROP VIEW view_1_tab1_301

statement ok
DROP VIEW view_2_tab1_301

statement ok
DROP VIEW view_3_tab1_301

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_301') DROP VIEW view_1_tab2_301

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_301

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_301') DROP VIEW view_2_tab2_301

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_301

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_301') DROP VIEW view_3_tab2_301

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_301

statement ok
CREATE VIEW view_1_tab2_301 AS SELECT pk, col0 FROM tab2 WHERE col3 < 503 OR col3 IN (327,997) AND col0 >= 541 AND (col0 > 495 AND (col4 >= 258.46 AND col4 IS NULL AND col0 >= 747 OR (col3 < 676) AND col3 < 649 OR (col1 >= 839.72 AND ((col0 > 444 OR col3 = 316 AND (((col3 < 241) AND (col4 > 37.76 AND col3 <= 594))) OR (((col1 < 107.89))) AND col3 >= 235)) AND col3 = 643 OR col3 >= 341 OR col1 < 842.48 AND col0 < 202) AND col3 >= 500 OR (col0 < 84 AND col0 >= 371) OR (col0 BETWEEN 440 AND 778 AND (col1 IN (527.40,784.55,103.64)) AND col3 < 825)))

statement ok
CREATE VIEW view_2_tab2_301 AS SELECT pk, col0 FROM tab2 WHERE NOT (col3 < 503 OR col3 IN (327,997) AND col0 >= 541 AND (col0 > 495 AND (col4 >= 258.46 AND col4 IS NULL AND col0 >= 747 OR (col3 < 676) AND col3 < 649 OR (col1 >= 839.72 AND ((col0 > 444 OR col3 = 316 AND (((col3 < 241) AND (col4 > 37.76 AND col3 <= 594))) OR (((col1 < 107.89))) AND col3 >= 235)) AND col3 = 643 OR col3 >= 341 OR col1 < 842.48 AND col0 < 202) AND col3 >= 500 OR (col0 < 84 AND col0 >= 371) OR (col0 BETWEEN 440 AND 778 AND (col1 IN (527.40,784.55,103.64)) AND col3 < 825))))

statement ok
CREATE VIEW view_3_tab2_301 AS SELECT pk FROM view_1_tab2_301

query II rowsort label-6900-1
SELECT pk, col0 FROM tab2 WHERE col3 < 503 OR col3 IN (327,997) AND col0 >= 541 AND (col0 > 495 AND (col4 >= 258.46 AND col4 IS NULL AND col0 >= 747 OR (col3 < 676) AND col3 < 649 OR (col1 >= 839.72 AND ((col0 > 444 OR col3 = 316 AND (((col3 < 241) AND (col4 > 37.76 AND col3 <= 594))) OR (((col1 < 107.89))) AND col3 >= 235)) AND col3 = 643 OR col3 >= 341 OR col1 < 842.48 AND col0 < 202) AND col3 >= 500 OR (col0 < 84 AND col0 >= 371) OR (col0 BETWEEN 440 AND 778 AND (col1 IN (527.40,784.55,103.64)) AND col3 < 825)))
----
102 values hashing to 76a557074dcbf59cd3a69927a4914d5d

query II rowsort label-6900-2
SELECT pk, col0 FROM tab2 WHERE NOT (col3 < 503 OR col3 IN (327,997) AND col0 >= 541 AND (col0 > 495 AND (col4 >= 258.46 AND col4 IS NULL AND col0 >= 747 OR (col3 < 676) AND col3 < 649 OR (col1 >= 839.72 AND ((col0 > 444 OR col3 = 316 AND (((col3 < 241) AND (col4 > 37.76 AND col3 <= 594))) OR (((col1 < 107.89))) AND col3 >= 235)) AND col3 = 643 OR col3 >= 341 OR col1 < 842.48 AND col0 < 202) AND col3 >= 500 OR (col0 < 84 AND col0 >= 371) OR (col0 BETWEEN 440 AND 778 AND (col1 IN (527.40,784.55,103.64)) AND col3 < 825))))
----
98 values hashing to d99a7481c15550f72cc67913098064e1

query II rowsort label-6900-1
SELECT pk, col0 FROM view_1_tab2_301
----
102 values hashing to 76a557074dcbf59cd3a69927a4914d5d

query II rowsort label-6900-2
SELECT pk, col0 FROM view_2_tab2_301
----
98 values hashing to d99a7481c15550f72cc67913098064e1

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 < 503 OR col3 IN (327,997) AND col0 >= 541 AND (col0 > 495 AND (col4 >= 258.46 AND col4 IS NULL AND col0 >= 747 OR (col3 < 676) AND col3 < 649 OR (col1 >= 839.72 AND ((col0 > 444 OR col3 = 316 AND (((col3 < 241) AND (col4 > 37.76 AND col3 <= 594))) OR (((col1 < 107.89))) AND col3 >= 235)) AND col3 = 643 OR col3 >= 341 OR col1 < 842.48 AND col0 < 202) AND col3 >= 500 OR (col0 < 84 AND col0 >= 371) OR (col0 BETWEEN 440 AND 778 AND (col1 IN (527.40,784.55,103.64)) AND col3 < 825))) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col3 < 503 OR col3 IN (327,997) AND col0 >= 541 AND (col0 > 495 AND (col4 >= 258.46 AND col4 IS NULL AND col0 >= 747 OR (col3 < 676) AND col3 < 649 OR (col1 >= 839.72 AND ((col0 > 444 OR col3 = 316 AND (((col3 < 241) AND (col4 > 37.76 AND col3 <= 594))) OR (((col1 < 107.89))) AND col3 >= 235)) AND col3 = 643 OR col3 >= 341 OR col1 < 842.48 AND col0 < 202) AND col3 >= 500 OR (col0 < 84 AND col0 >= 371) OR (col0 BETWEEN 440 AND 778 AND (col1 IN (527.40,784.55,103.64)) AND col3 < 825))))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_301 UNION ALL SELECT pk, col0 FROM view_2_tab2_301
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 < 503 OR col3 IN (327,997) AND col0 >= 541 AND (col0 > 495 AND (col4 >= 258.46 AND col4 IS NULL AND col0 >= 747 OR (col3 < 676) AND col3 < 649 OR (col1 >= 839.72 AND ((col0 > 444 OR col3 = 316 AND (((col3 < 241) AND (col4 > 37.76 AND col3 <= 594))) OR (((col1 < 107.89))) AND col3 >= 235)) AND col3 = 643 OR col3 >= 341 OR col1 < 842.48 AND col0 < 202) AND col3 >= 500 OR (col0 < 84 AND col0 >= 371) OR (col0 BETWEEN 440 AND 778 AND (col1 IN (527.40,784.55,103.64)) AND col3 < 825))) UNION SELECT pk, col0 FROM tab2 WHERE NOT (col3 < 503 OR col3 IN (327,997) AND col0 >= 541 AND (col0 > 495 AND (col4 >= 258.46 AND col4 IS NULL AND col0 >= 747 OR (col3 < 676) AND col3 < 649 OR (col1 >= 839.72 AND ((col0 > 444 OR col3 = 316 AND (((col3 < 241) AND (col4 > 37.76 AND col3 <= 594))) OR (((col1 < 107.89))) AND col3 >= 235)) AND col3 = 643 OR col3 >= 341 OR col1 < 842.48 AND col0 < 202) AND col3 >= 500 OR (col0 < 84 AND col0 >= 371) OR (col0 BETWEEN 440 AND 778 AND (col1 IN (527.40,784.55,103.64)) AND col3 < 825))))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_301 UNION SELECT pk, col0 FROM view_2_tab2_301
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-6900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col3 < 503 OR col3 IN (327,997) AND col0 >= 541 AND (col0 > 495 AND (col4 >= 258.46 AND col4 IS NULL AND col0 >= 747 OR (col3 < 676) AND col3 < 649 OR (col1 >= 839.72 AND ((col0 > 444 OR col3 = 316 AND (((col3 < 241) AND (col4 > 37.76 AND col3 <= 594))) OR (((col1 < 107.89))) AND col3 >= 235)) AND col3 = 643 OR col3 >= 341 OR col1 < 842.48 AND col0 < 202) AND col3 >= 500 OR (col0 < 84 AND col0 >= 371) OR (col0 BETWEEN 440 AND 778 AND (col1 IN (527.40,784.55,103.64)) AND col3 < 825))) ) AS tab2_301
----
51 values hashing to 1b474b99568c490591ed555a661e89bb

query I rowsort label-6900-3
SELECT * FROM view_3_tab2_301
----
51 values hashing to 1b474b99568c490591ed555a661e89bb

query I rowsort label-6900-3
SELECT pk FROM tab2 WHERE col3 < 503 OR col3 IN (327,997) AND col0 >= 541 AND (col0 > 495 AND (col4 >= 258.46 AND col4 IS NULL AND col0 >= 747 OR (col3 < 676) AND col3 < 649 OR (col1 >= 839.72 AND ((col0 > 444 OR col3 = 316 AND (((col3 < 241) AND (col4 > 37.76 AND col3 <= 594))) OR (((col1 < 107.89))) AND col3 >= 235)) AND col3 = 643 OR col3 >= 341 OR col1 < 842.48 AND col0 < 202) AND col3 >= 500 OR (col0 < 84 AND col0 >= 371) OR (col0 BETWEEN 440 AND 778 AND (col1 IN (527.40,784.55,103.64)) AND col3 < 825)))
----
51 values hashing to 1b474b99568c490591ed555a661e89bb

statement ok
DROP VIEW view_1_tab2_301

statement ok
DROP VIEW view_2_tab2_301

statement ok
DROP VIEW view_3_tab2_301

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_301') DROP VIEW view_1_tab3_301

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_301

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_301') DROP VIEW view_2_tab3_301

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_301

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_301') DROP VIEW view_3_tab3_301

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_301

statement ok
CREATE VIEW view_1_tab3_301 AS SELECT pk, col0 FROM tab3 WHERE col3 < 503 OR col3 IN (327,997) AND col0 >= 541 AND (col0 > 495 AND (col4 >= 258.46 AND col4 IS NULL AND col0 >= 747 OR (col3 < 676) AND col3 < 649 OR (col1 >= 839.72 AND ((col0 > 444 OR col3 = 316 AND (((col3 < 241) AND (col4 > 37.76 AND col3 <= 594))) OR (((col1 < 107.89))) AND col3 >= 235)) AND col3 = 643 OR col3 >= 341 OR col1 < 842.48 AND col0 < 202) AND col3 >= 500 OR (col0 < 84 AND col0 >= 371) OR (col0 BETWEEN 440 AND 778 AND (col1 IN (527.40,784.55,103.64)) AND col3 < 825)))

statement ok
CREATE VIEW view_2_tab3_301 AS SELECT pk, col0 FROM tab3 WHERE NOT (col3 < 503 OR col3 IN (327,997) AND col0 >= 541 AND (col0 > 495 AND (col4 >= 258.46 AND col4 IS NULL AND col0 >= 747 OR (col3 < 676) AND col3 < 649 OR (col1 >= 839.72 AND ((col0 > 444 OR col3 = 316 AND (((col3 < 241) AND (col4 > 37.76 AND col3 <= 594))) OR (((col1 < 107.89))) AND col3 >= 235)) AND col3 = 643 OR col3 >= 341 OR col1 < 842.48 AND col0 < 202) AND col3 >= 500 OR (col0 < 84 AND col0 >= 371) OR (col0 BETWEEN 440 AND 778 AND (col1 IN (527.40,784.55,103.64)) AND col3 < 825))))

statement ok
CREATE VIEW view_3_tab3_301 AS SELECT pk FROM view_1_tab3_301

query II rowsort label-6900-1
SELECT pk, col0 FROM tab3 WHERE col3 < 503 OR col3 IN (327,997) AND col0 >= 541 AND (col0 > 495 AND (col4 >= 258.46 AND col4 IS NULL AND col0 >= 747 OR (col3 < 676) AND col3 < 649 OR (col1 >= 839.72 AND ((col0 > 444 OR col3 = 316 AND (((col3 < 241) AND (col4 > 37.76 AND col3 <= 594))) OR (((col1 < 107.89))) AND col3 >= 235)) AND col3 = 643 OR col3 >= 341 OR col1 < 842.48 AND col0 < 202) AND col3 >= 500 OR (col0 < 84 AND col0 >= 371) OR (col0 BETWEEN 440 AND 778 AND (col1 IN (527.40,784.55,103.64)) AND col3 < 825)))
----
102 values hashing to 76a557074dcbf59cd3a69927a4914d5d

query II rowsort label-6900-2
SELECT pk, col0 FROM tab3 WHERE NOT (col3 < 503 OR col3 IN (327,997) AND col0 >= 541 AND (col0 > 495 AND (col4 >= 258.46 AND col4 IS NULL AND col0 >= 747 OR (col3 < 676) AND col3 < 649 OR (col1 >= 839.72 AND ((col0 > 444 OR col3 = 316 AND (((col3 < 241) AND (col4 > 37.76 AND col3 <= 594))) OR (((col1 < 107.89))) AND col3 >= 235)) AND col3 = 643 OR col3 >= 341 OR col1 < 842.48 AND col0 < 202) AND col3 >= 500 OR (col0 < 84 AND col0 >= 371) OR (col0 BETWEEN 440 AND 778 AND (col1 IN (527.40,784.55,103.64)) AND col3 < 825))))
----
98 values hashing to d99a7481c15550f72cc67913098064e1

query II rowsort label-6900-1
SELECT pk, col0 FROM view_1_tab3_301
----
102 values hashing to 76a557074dcbf59cd3a69927a4914d5d

query II rowsort label-6900-2
SELECT pk, col0 FROM view_2_tab3_301
----
98 values hashing to d99a7481c15550f72cc67913098064e1

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 < 503 OR col3 IN (327,997) AND col0 >= 541 AND (col0 > 495 AND (col4 >= 258.46 AND col4 IS NULL AND col0 >= 747 OR (col3 < 676) AND col3 < 649 OR (col1 >= 839.72 AND ((col0 > 444 OR col3 = 316 AND (((col3 < 241) AND (col4 > 37.76 AND col3 <= 594))) OR (((col1 < 107.89))) AND col3 >= 235)) AND col3 = 643 OR col3 >= 341 OR col1 < 842.48 AND col0 < 202) AND col3 >= 500 OR (col0 < 84 AND col0 >= 371) OR (col0 BETWEEN 440 AND 778 AND (col1 IN (527.40,784.55,103.64)) AND col3 < 825))) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col3 < 503 OR col3 IN (327,997) AND col0 >= 541 AND (col0 > 495 AND (col4 >= 258.46 AND col4 IS NULL AND col0 >= 747 OR (col3 < 676) AND col3 < 649 OR (col1 >= 839.72 AND ((col0 > 444 OR col3 = 316 AND (((col3 < 241) AND (col4 > 37.76 AND col3 <= 594))) OR (((col1 < 107.89))) AND col3 >= 235)) AND col3 = 643 OR col3 >= 341 OR col1 < 842.48 AND col0 < 202) AND col3 >= 500 OR (col0 < 84 AND col0 >= 371) OR (col0 BETWEEN 440 AND 778 AND (col1 IN (527.40,784.55,103.64)) AND col3 < 825))))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_301 UNION ALL SELECT pk, col0 FROM view_2_tab3_301
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 < 503 OR col3 IN (327,997) AND col0 >= 541 AND (col0 > 495 AND (col4 >= 258.46 AND col4 IS NULL AND col0 >= 747 OR (col3 < 676) AND col3 < 649 OR (col1 >= 839.72 AND ((col0 > 444 OR col3 = 316 AND (((col3 < 241) AND (col4 > 37.76 AND col3 <= 594))) OR (((col1 < 107.89))) AND col3 >= 235)) AND col3 = 643 OR col3 >= 341 OR col1 < 842.48 AND col0 < 202) AND col3 >= 500 OR (col0 < 84 AND col0 >= 371) OR (col0 BETWEEN 440 AND 778 AND (col1 IN (527.40,784.55,103.64)) AND col3 < 825))) UNION SELECT pk, col0 FROM tab3 WHERE NOT (col3 < 503 OR col3 IN (327,997) AND col0 >= 541 AND (col0 > 495 AND (col4 >= 258.46 AND col4 IS NULL AND col0 >= 747 OR (col3 < 676) AND col3 < 649 OR (col1 >= 839.72 AND ((col0 > 444 OR col3 = 316 AND (((col3 < 241) AND (col4 > 37.76 AND col3 <= 594))) OR (((col1 < 107.89))) AND col3 >= 235)) AND col3 = 643 OR col3 >= 341 OR col1 < 842.48 AND col0 < 202) AND col3 >= 500 OR (col0 < 84 AND col0 >= 371) OR (col0 BETWEEN 440 AND 778 AND (col1 IN (527.40,784.55,103.64)) AND col3 < 825))))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_301 UNION SELECT pk, col0 FROM view_2_tab3_301
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-6900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col3 < 503 OR col3 IN (327,997) AND col0 >= 541 AND (col0 > 495 AND (col4 >= 258.46 AND col4 IS NULL AND col0 >= 747 OR (col3 < 676) AND col3 < 649 OR (col1 >= 839.72 AND ((col0 > 444 OR col3 = 316 AND (((col3 < 241) AND (col4 > 37.76 AND col3 <= 594))) OR (((col1 < 107.89))) AND col3 >= 235)) AND col3 = 643 OR col3 >= 341 OR col1 < 842.48 AND col0 < 202) AND col3 >= 500 OR (col0 < 84 AND col0 >= 371) OR (col0 BETWEEN 440 AND 778 AND (col1 IN (527.40,784.55,103.64)) AND col3 < 825))) ) AS tab3_301
----
51 values hashing to 1b474b99568c490591ed555a661e89bb

query I rowsort label-6900-3
SELECT * FROM view_3_tab3_301
----
51 values hashing to 1b474b99568c490591ed555a661e89bb

query I rowsort label-6900-3
SELECT pk FROM tab3 WHERE col3 < 503 OR col3 IN (327,997) AND col0 >= 541 AND (col0 > 495 AND (col4 >= 258.46 AND col4 IS NULL AND col0 >= 747 OR (col3 < 676) AND col3 < 649 OR (col1 >= 839.72 AND ((col0 > 444 OR col3 = 316 AND (((col3 < 241) AND (col4 > 37.76 AND col3 <= 594))) OR (((col1 < 107.89))) AND col3 >= 235)) AND col3 = 643 OR col3 >= 341 OR col1 < 842.48 AND col0 < 202) AND col3 >= 500 OR (col0 < 84 AND col0 >= 371) OR (col0 BETWEEN 440 AND 778 AND (col1 IN (527.40,784.55,103.64)) AND col3 < 825)))
----
51 values hashing to 1b474b99568c490591ed555a661e89bb

statement ok
DROP VIEW view_1_tab3_301

statement ok
DROP VIEW view_2_tab3_301

statement ok
DROP VIEW view_3_tab3_301

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_301') DROP VIEW view_1_tab4_301

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_301

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_301') DROP VIEW view_2_tab4_301

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_301

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_301') DROP VIEW view_3_tab4_301

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_301

statement ok
CREATE VIEW view_1_tab4_301 AS SELECT pk, col0 FROM tab4 WHERE col3 < 503 OR col3 IN (327,997) AND col0 >= 541 AND (col0 > 495 AND (col4 >= 258.46 AND col4 IS NULL AND col0 >= 747 OR (col3 < 676) AND col3 < 649 OR (col1 >= 839.72 AND ((col0 > 444 OR col3 = 316 AND (((col3 < 241) AND (col4 > 37.76 AND col3 <= 594))) OR (((col1 < 107.89))) AND col3 >= 235)) AND col3 = 643 OR col3 >= 341 OR col1 < 842.48 AND col0 < 202) AND col3 >= 500 OR (col0 < 84 AND col0 >= 371) OR (col0 BETWEEN 440 AND 778 AND (col1 IN (527.40,784.55,103.64)) AND col3 < 825)))

statement ok
CREATE VIEW view_2_tab4_301 AS SELECT pk, col0 FROM tab4 WHERE NOT (col3 < 503 OR col3 IN (327,997) AND col0 >= 541 AND (col0 > 495 AND (col4 >= 258.46 AND col4 IS NULL AND col0 >= 747 OR (col3 < 676) AND col3 < 649 OR (col1 >= 839.72 AND ((col0 > 444 OR col3 = 316 AND (((col3 < 241) AND (col4 > 37.76 AND col3 <= 594))) OR (((col1 < 107.89))) AND col3 >= 235)) AND col3 = 643 OR col3 >= 341 OR col1 < 842.48 AND col0 < 202) AND col3 >= 500 OR (col0 < 84 AND col0 >= 371) OR (col0 BETWEEN 440 AND 778 AND (col1 IN (527.40,784.55,103.64)) AND col3 < 825))))

statement ok
CREATE VIEW view_3_tab4_301 AS SELECT pk FROM view_1_tab4_301

query II rowsort label-6900-1
SELECT pk, col0 FROM tab4 WHERE col3 < 503 OR col3 IN (327,997) AND col0 >= 541 AND (col0 > 495 AND (col4 >= 258.46 AND col4 IS NULL AND col0 >= 747 OR (col3 < 676) AND col3 < 649 OR (col1 >= 839.72 AND ((col0 > 444 OR col3 = 316 AND (((col3 < 241) AND (col4 > 37.76 AND col3 <= 594))) OR (((col1 < 107.89))) AND col3 >= 235)) AND col3 = 643 OR col3 >= 341 OR col1 < 842.48 AND col0 < 202) AND col3 >= 500 OR (col0 < 84 AND col0 >= 371) OR (col0 BETWEEN 440 AND 778 AND (col1 IN (527.40,784.55,103.64)) AND col3 < 825)))
----
102 values hashing to 76a557074dcbf59cd3a69927a4914d5d

query II rowsort label-6900-2
SELECT pk, col0 FROM tab4 WHERE NOT (col3 < 503 OR col3 IN (327,997) AND col0 >= 541 AND (col0 > 495 AND (col4 >= 258.46 AND col4 IS NULL AND col0 >= 747 OR (col3 < 676) AND col3 < 649 OR (col1 >= 839.72 AND ((col0 > 444 OR col3 = 316 AND (((col3 < 241) AND (col4 > 37.76 AND col3 <= 594))) OR (((col1 < 107.89))) AND col3 >= 235)) AND col3 = 643 OR col3 >= 341 OR col1 < 842.48 AND col0 < 202) AND col3 >= 500 OR (col0 < 84 AND col0 >= 371) OR (col0 BETWEEN 440 AND 778 AND (col1 IN (527.40,784.55,103.64)) AND col3 < 825))))
----
98 values hashing to d99a7481c15550f72cc67913098064e1

query II rowsort label-6900-1
SELECT pk, col0 FROM view_1_tab4_301
----
102 values hashing to 76a557074dcbf59cd3a69927a4914d5d

query II rowsort label-6900-2
SELECT pk, col0 FROM view_2_tab4_301
----
98 values hashing to d99a7481c15550f72cc67913098064e1

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 < 503 OR col3 IN (327,997) AND col0 >= 541 AND (col0 > 495 AND (col4 >= 258.46 AND col4 IS NULL AND col0 >= 747 OR (col3 < 676) AND col3 < 649 OR (col1 >= 839.72 AND ((col0 > 444 OR col3 = 316 AND (((col3 < 241) AND (col4 > 37.76 AND col3 <= 594))) OR (((col1 < 107.89))) AND col3 >= 235)) AND col3 = 643 OR col3 >= 341 OR col1 < 842.48 AND col0 < 202) AND col3 >= 500 OR (col0 < 84 AND col0 >= 371) OR (col0 BETWEEN 440 AND 778 AND (col1 IN (527.40,784.55,103.64)) AND col3 < 825))) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col3 < 503 OR col3 IN (327,997) AND col0 >= 541 AND (col0 > 495 AND (col4 >= 258.46 AND col4 IS NULL AND col0 >= 747 OR (col3 < 676) AND col3 < 649 OR (col1 >= 839.72 AND ((col0 > 444 OR col3 = 316 AND (((col3 < 241) AND (col4 > 37.76 AND col3 <= 594))) OR (((col1 < 107.89))) AND col3 >= 235)) AND col3 = 643 OR col3 >= 341 OR col1 < 842.48 AND col0 < 202) AND col3 >= 500 OR (col0 < 84 AND col0 >= 371) OR (col0 BETWEEN 440 AND 778 AND (col1 IN (527.40,784.55,103.64)) AND col3 < 825))))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_301 UNION ALL SELECT pk, col0 FROM view_2_tab4_301
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 < 503 OR col3 IN (327,997) AND col0 >= 541 AND (col0 > 495 AND (col4 >= 258.46 AND col4 IS NULL AND col0 >= 747 OR (col3 < 676) AND col3 < 649 OR (col1 >= 839.72 AND ((col0 > 444 OR col3 = 316 AND (((col3 < 241) AND (col4 > 37.76 AND col3 <= 594))) OR (((col1 < 107.89))) AND col3 >= 235)) AND col3 = 643 OR col3 >= 341 OR col1 < 842.48 AND col0 < 202) AND col3 >= 500 OR (col0 < 84 AND col0 >= 371) OR (col0 BETWEEN 440 AND 778 AND (col1 IN (527.40,784.55,103.64)) AND col3 < 825))) UNION SELECT pk, col0 FROM tab4 WHERE NOT (col3 < 503 OR col3 IN (327,997) AND col0 >= 541 AND (col0 > 495 AND (col4 >= 258.46 AND col4 IS NULL AND col0 >= 747 OR (col3 < 676) AND col3 < 649 OR (col1 >= 839.72 AND ((col0 > 444 OR col3 = 316 AND (((col3 < 241) AND (col4 > 37.76 AND col3 <= 594))) OR (((col1 < 107.89))) AND col3 >= 235)) AND col3 = 643 OR col3 >= 341 OR col1 < 842.48 AND col0 < 202) AND col3 >= 500 OR (col0 < 84 AND col0 >= 371) OR (col0 BETWEEN 440 AND 778 AND (col1 IN (527.40,784.55,103.64)) AND col3 < 825))))
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_301 UNION SELECT pk, col0 FROM view_2_tab4_301
----
200 values hashing to 562a2912b956066d1869d03513f6ce1d

query I rowsort label-6900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col3 < 503 OR col3 IN (327,997) AND col0 >= 541 AND (col0 > 495 AND (col4 >= 258.46 AND col4 IS NULL AND col0 >= 747 OR (col3 < 676) AND col3 < 649 OR (col1 >= 839.72 AND ((col0 > 444 OR col3 = 316 AND (((col3 < 241) AND (col4 > 37.76 AND col3 <= 594))) OR (((col1 < 107.89))) AND col3 >= 235)) AND col3 = 643 OR col3 >= 341 OR col1 < 842.48 AND col0 < 202) AND col3 >= 500 OR (col0 < 84 AND col0 >= 371) OR (col0 BETWEEN 440 AND 778 AND (col1 IN (527.40,784.55,103.64)) AND col3 < 825))) ) AS tab4_301
----
51 values hashing to 1b474b99568c490591ed555a661e89bb

query I rowsort label-6900-3
SELECT * FROM view_3_tab4_301
----
51 values hashing to 1b474b99568c490591ed555a661e89bb

query I rowsort label-6900-3
SELECT pk FROM tab4 WHERE col3 < 503 OR col3 IN (327,997) AND col0 >= 541 AND (col0 > 495 AND (col4 >= 258.46 AND col4 IS NULL AND col0 >= 747 OR (col3 < 676) AND col3 < 649 OR (col1 >= 839.72 AND ((col0 > 444 OR col3 = 316 AND (((col3 < 241) AND (col4 > 37.76 AND col3 <= 594))) OR (((col1 < 107.89))) AND col3 >= 235)) AND col3 = 643 OR col3 >= 341 OR col1 < 842.48 AND col0 < 202) AND col3 >= 500 OR (col0 < 84 AND col0 >= 371) OR (col0 BETWEEN 440 AND 778 AND (col1 IN (527.40,784.55,103.64)) AND col3 < 825)))
----
51 values hashing to 1b474b99568c490591ed555a661e89bb

statement ok
DROP VIEW view_1_tab4_301

statement ok
DROP VIEW view_2_tab4_301

statement ok
DROP VIEW view_3_tab4_301

