sqllogictest
Artifact Content
Not logged in

Artifact bd93d38654f5e28192d6463a8b5c8fc5a3dd15f7:


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,521,560.97,'wfmzx',268,204.44,'aqwnk')

statement ok
INSERT INTO tab0 VALUES(1,993,165.84,'xwozf',994,964.36,'qruez')

statement ok
INSERT INTO tab0 VALUES(2,190,870.9,'gvwsp',134,893.3,'sreum')

statement ok
INSERT INTO tab0 VALUES(3,634,886.76,'wbnwk',14,796.70,'oshox')

statement ok
INSERT INTO tab0 VALUES(4,985,18.7,'apymi',156,887.38,'droms')

statement ok
INSERT INTO tab0 VALUES(5,160,292.61,'bjkvv',406,412.99,'trzno')

statement ok
INSERT INTO tab0 VALUES(6,462,581.41,'wqstz',56,276.47,'oybqb')

statement ok
INSERT INTO tab0 VALUES(7,704,228.11,'pussz',970,665.91,'jgzad')

statement ok
INSERT INTO tab0 VALUES(8,335,671.3,'hscxs',710,677.69,'bptfw')

statement ok
INSERT INTO tab0 VALUES(9,560,70.37,'jvxko',660,939.58,'jvkba')

statement ok
INSERT INTO tab0 VALUES(10,472,930.26,'ngcfx',151,239.86,'mivct')

statement ok
INSERT INTO tab0 VALUES(11,173,726.93,'bvlpr',588,148.48,'nmilb')

statement ok
INSERT INTO tab0 VALUES(12,900,530.83,'ritxf',571,645.17,'knjbp')

statement ok
INSERT INTO tab0 VALUES(13,148,634.72,'cqxyq',22,740.54,'iwzxf')

statement ok
INSERT INTO tab0 VALUES(14,800,176.86,'prcaq',313,105.23,'idpwo')

statement ok
INSERT INTO tab0 VALUES(15,246,764.8,'suvab',387,693.6,'binct')

statement ok
INSERT INTO tab0 VALUES(16,511,103.92,'wrfol',882,364.8,'jxsbb')

statement ok
INSERT INTO tab0 VALUES(17,381,618.76,'yovfv',261,514.77,'vxfoj')

statement ok
INSERT INTO tab0 VALUES(18,526,78.94,'xjfmd',934,696.13,'ndzdw')

statement ok
INSERT INTO tab0 VALUES(19,627,227.90,'nvozb',383,245.81,'nfivv')

statement ok
INSERT INTO tab0 VALUES(20,497,400.29,'xmgon',286,907.22,'ovroz')

statement ok
INSERT INTO tab0 VALUES(21,212,156.8,'cbqmh',644,457.70,'sqceh')

statement ok
INSERT INTO tab0 VALUES(22,231,898.72,'ujnns',907,333.59,'zqbpq')

statement ok
INSERT INTO tab0 VALUES(23,522,500.24,'zmuzf',94,254.38,'wcxxg')

statement ok
INSERT INTO tab0 VALUES(24,690,932.40,'jzezb',925,845.87,'cvonm')

statement ok
INSERT INTO tab0 VALUES(25,98,885.77,'hytnw',939,268.22,'fgcgj')

statement ok
INSERT INTO tab0 VALUES(26,994,394.90,'ccnng',624,840.13,'blmli')

statement ok
INSERT INTO tab0 VALUES(27,636,468.44,'zyfbn',539,666.95,'rjbfq')

statement ok
INSERT INTO tab0 VALUES(28,418,708.22,'jyumf',442,251.81,'sagkh')

statement ok
INSERT INTO tab0 VALUES(29,992,938.43,'spant',413,142.74,'ckewj')

statement ok
INSERT INTO tab0 VALUES(30,395,827.73,'eoghd',977,538.79,'svhju')

statement ok
INSERT INTO tab0 VALUES(31,174,515.34,'atyrl',234,926.16,'zyyab')

statement ok
INSERT INTO tab0 VALUES(32,512,237.23,'loien',980,697.33,'nwceo')

statement ok
INSERT INTO tab0 VALUES(33,350,950.17,'dwxgr',833,777.17,'rhvoo')

statement ok
INSERT INTO tab0 VALUES(34,515,956.91,'vghhf',360,250.10,'irdon')

statement ok
INSERT INTO tab0 VALUES(35,842,526.30,'cbswy',197,985.17,'hhjez')

statement ok
INSERT INTO tab0 VALUES(36,303,531.39,'tppse',181,255.20,'elyfz')

statement ok
INSERT INTO tab0 VALUES(37,128,56.56,'sdizy',468,371.93,'soblu')

statement ok
INSERT INTO tab0 VALUES(38,933,40.67,'kerjv',664,298.11,'uecsl')

statement ok
INSERT INTO tab0 VALUES(39,843,887.16,'pmqcp',946,288.64,'qhmyo')

statement ok
INSERT INTO tab0 VALUES(40,619,96.18,'vgyeu',187,498.72,'uiemt')

statement ok
INSERT INTO tab0 VALUES(41,780,892.71,'efrmg',85,621.91,'mjhci')

statement ok
INSERT INTO tab0 VALUES(42,730,840.73,'uuxxx',283,505.33,'meuzz')

statement ok
INSERT INTO tab0 VALUES(43,884,480.26,'ockkj',497,784.73,'njbei')

statement ok
INSERT INTO tab0 VALUES(44,791,945.56,'uicfl',642,499.66,'boplo')

statement ok
INSERT INTO tab0 VALUES(45,261,591.22,'tnwyv',951,723.53,'ulnmb')

statement ok
INSERT INTO tab0 VALUES(46,485,616.31,'gcctu',109,191.81,'jzhcb')

statement ok
INSERT INTO tab0 VALUES(47,169,693.45,'koegt',370,918.10,'amiei')

statement ok
INSERT INTO tab0 VALUES(48,650,587.1,'fzkyu',687,828.30,'crpan')

statement ok
INSERT INTO tab0 VALUES(49,26,788.18,'dxjfm',835,377.69,'vyghf')

statement ok
INSERT INTO tab0 VALUES(50,280,127.12,'qoshj',534,181.7,'ukgfd')

statement ok
INSERT INTO tab0 VALUES(51,404,408.7,'dyprs',581,639.91,'paatc')

statement ok
INSERT INTO tab0 VALUES(52,525,32.50,'fapax',966,558.44,'psaqk')

statement ok
INSERT INTO tab0 VALUES(53,31,619.19,'nsblk',2,778.80,'lnlmp')

statement ok
INSERT INTO tab0 VALUES(54,693,632.40,'ifukz',452,797.15,'qssbc')

statement ok
INSERT INTO tab0 VALUES(55,793,12.98,'exwdt',648,394.81,'hxigs')

statement ok
INSERT INTO tab0 VALUES(56,247,789.49,'iqaom',621,262.35,'sgfgi')

statement ok
INSERT INTO tab0 VALUES(57,731,716.33,'rviki',223,623.78,'xjosp')

statement ok
INSERT INTO tab0 VALUES(58,805,893.86,'emynn',255,858.59,'jsjvk')

statement ok
INSERT INTO tab0 VALUES(59,42,388.52,'mmqsx',589,130.96,'rpals')

statement ok
INSERT INTO tab0 VALUES(60,145,868.97,'rokeo',294,13.83,'ahbhz')

statement ok
INSERT INTO tab0 VALUES(61,80,217.22,'todko',763,111.2,'ydqzx')

statement ok
INSERT INTO tab0 VALUES(62,197,168.72,'lkeli',834,689.42,'vsfdz')

statement ok
INSERT INTO tab0 VALUES(63,355,922.52,'njcvq',920,294.2,'sairf')

statement ok
INSERT INTO tab0 VALUES(64,49,778.39,'vccav',128,381.14,'tlwsp')

statement ok
INSERT INTO tab0 VALUES(65,534,755.93,'nvweu',390,938.44,'wabwy')

statement ok
INSERT INTO tab0 VALUES(66,947,218.70,'zlaoi',584,113.16,'mnygh')

statement ok
INSERT INTO tab0 VALUES(67,438,498.35,'hpwnx',661,834.16,'zoyts')

statement ok
INSERT INTO tab0 VALUES(68,291,532.74,'wxwrj',766,440.7,'nsnyu')

statement ok
INSERT INTO tab0 VALUES(69,47,466.8,'eymyg',372,302.45,'mrxkk')

statement ok
INSERT INTO tab0 VALUES(70,637,300.3,'foouu',396,450.86,'ekqvf')

statement ok
INSERT INTO tab0 VALUES(71,496,502.84,'gvdhh',326,197.1,'mdcyg')

statement ok
INSERT INTO tab0 VALUES(72,699,635.48,'lgahu',351,762.91,'mqjxu')

statement ok
INSERT INTO tab0 VALUES(73,76,983.75,'kvilt',477,900.95,'zhpgs')

statement ok
INSERT INTO tab0 VALUES(74,346,177.42,'whgmr',663,524.4,'hevbf')

statement ok
INSERT INTO tab0 VALUES(75,234,817.34,'ieods',937,329.76,'tfodm')

statement ok
INSERT INTO tab0 VALUES(76,603,100.58,'owhnf',524,419.44,'higbg')

statement ok
INSERT INTO tab0 VALUES(77,574,442.54,'lujzm',972,930.35,'godjo')

statement ok
INSERT INTO tab0 VALUES(78,654,107.9,'jpfni',278,657.74,'vdsqe')

statement ok
INSERT INTO tab0 VALUES(79,857,829.69,'zfios',8,679.4,'urnpi')

statement ok
INSERT INTO tab0 VALUES(80,835,436.51,'wzblh',428,983.95,'cgnjk')

statement ok
INSERT INTO tab0 VALUES(81,998,478.54,'zsahf',625,87.56,'lpykj')

statement ok
INSERT INTO tab0 VALUES(82,641,851.77,'mzygq',633,671.50,'bbwtp')

statement ok
INSERT INTO tab0 VALUES(83,70,422.25,'fccog',559,194.3,'dzsem')

statement ok
INSERT INTO tab0 VALUES(84,724,652.24,'kiasd',707,526.21,'nobfv')

statement ok
INSERT INTO tab0 VALUES(85,302,225.36,'gyeqe',703,571.99,'ldcjv')

statement ok
INSERT INTO tab0 VALUES(86,888,668.68,'pkmpx',622,888.34,'zijck')

statement ok
INSERT INTO tab0 VALUES(87,78,981.85,'mlaqv',106,320.38,'uakex')

statement ok
INSERT INTO tab0 VALUES(88,99,259.25,'ufomi',502,622.51,'trepv')

statement ok
INSERT INTO tab0 VALUES(89,940,318.9,'zkhsd',974,77.54,'lizvi')

statement ok
INSERT INTO tab0 VALUES(90,475,319.53,'ojlxb',634,131.80,'yqwwz')

statement ok
INSERT INTO tab0 VALUES(91,586,391.85,'shuvl',668,6.24,'jggke')

statement ok
INSERT INTO tab0 VALUES(92,292,266.50,'dgkia',456,341.64,'ltuxz')

statement ok
INSERT INTO tab0 VALUES(93,869,891.31,'jjgvi',705,804.63,'hvqwr')

statement ok
INSERT INTO tab0 VALUES(94,981,60.55,'qwtcl',565,720.91,'wiksg')

statement ok
INSERT INTO tab0 VALUES(95,801,37.8,'kinop',761,698.28,'upodj')

statement ok
INSERT INTO tab0 VALUES(96,132,184.47,'zuwkv',712,257.87,'siecn')

statement ok
INSERT INTO tab0 VALUES(97,544,580.14,'cslsl',665,448.17,'evnac')

statement ok
INSERT INTO tab0 VALUES(98,488,654.46,'tjbmy',807,480.20,'egqws')

statement ok
INSERT INTO tab0 VALUES(99,424,803.90,'nqyxh',403,344.66,'qlaga')

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

statement ok
CREATE INDEX idx_tab1_0 on tab1 (col0)

statement ok
CREATE INDEX idx_tab1_1 on tab1 (col1)

statement ok
CREATE INDEX idx_tab1_3 on tab1 (col3)

statement ok
CREATE INDEX idx_tab1_4 on tab1 (col4)

statement ok
INSERT INTO tab1 SELECT * FROM tab0

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

statement ok
CREATE UNIQUE INDEX idx_tab2_0 ON tab2 (col0)

statement ok
CREATE INDEX idx_tab2_1 ON tab2 (col3)

statement ok
CREATE UNIQUE INDEX idx_tab2_2 ON tab2 (col4)

statement ok
CREATE INDEX idx_tab2_5 ON tab2 (col1 DESC)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

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

statement ok
CREATE INDEX idx_tab3_0 ON tab3 (col4)

statement ok
CREATE INDEX idx_tab3_2 ON tab3 (col3,col0 DESC)

statement ok
CREATE INDEX idx_tab3_3 ON tab3 (col1,col0 DESC)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

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

statement ok
CREATE UNIQUE INDEX idx_tab4_0 ON tab4 (col3)

statement ok
CREATE INDEX idx_tab4_1 ON tab4 (col0 DESC,col1)

statement ok
CREATE INDEX idx_tab4_2 ON tab4 (col4)

statement ok
CREATE INDEX idx_tab4_4 ON tab4 (col1 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 53a5cadcdd11d71be2cb8161ad490035

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab0_77 AS SELECT pk, col0 FROM tab0 WHERE (((col1 < 229.92)))

statement ok
CREATE VIEW view_2_tab0_77 AS SELECT pk, col0 FROM tab0 WHERE NOT ((((col1 < 229.92))))

statement ok
CREATE VIEW view_3_tab0_77 AS SELECT pk FROM view_1_tab0_77

query II rowsort label-0-1
SELECT pk, col0 FROM tab0 WHERE (((col1 < 229.92)))
----
50 values hashing to 79aef92e815ec54584bc36aaf23d4b88

query II rowsort label-0-2
SELECT pk, col0 FROM tab0 WHERE NOT ((((col1 < 229.92))))
----
150 values hashing to 13da9128df4fd51f2fd59d6aeb2673c3

query II rowsort label-0-1
SELECT pk, col0 FROM view_1_tab0_77
----
50 values hashing to 79aef92e815ec54584bc36aaf23d4b88

query II rowsort label-0-2
SELECT pk, col0 FROM view_2_tab0_77
----
150 values hashing to 13da9128df4fd51f2fd59d6aeb2673c3

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (((col1 < 229.92))) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT ((((col1 < 229.92))))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_77 UNION ALL SELECT pk, col0 FROM view_2_tab0_77
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (((col1 < 229.92))) UNION SELECT pk, col0 FROM tab0 WHERE NOT ((((col1 < 229.92))))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_77 UNION SELECT pk, col0 FROM view_2_tab0_77
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-0-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE (((col1 < 229.92))) ) AS tab0_77
----
25 values hashing to d078a1d99e009ef6330aaf53e9578de9

query I rowsort label-0-3
SELECT * FROM view_3_tab0_77
----
25 values hashing to d078a1d99e009ef6330aaf53e9578de9

query I rowsort label-0-3
SELECT pk FROM tab0 WHERE (((col1 < 229.92)))
----
25 values hashing to d078a1d99e009ef6330aaf53e9578de9

statement ok
DROP VIEW view_1_tab0_77

statement ok
DROP VIEW view_2_tab0_77

statement ok
DROP VIEW view_3_tab0_77

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab1_77 AS SELECT pk, col0 FROM tab1 WHERE (((col1 < 229.92)))

statement ok
CREATE VIEW view_2_tab1_77 AS SELECT pk, col0 FROM tab1 WHERE NOT ((((col1 < 229.92))))

statement ok
CREATE VIEW view_3_tab1_77 AS SELECT pk FROM view_1_tab1_77

query II rowsort label-0-1
SELECT pk, col0 FROM tab1 WHERE (((col1 < 229.92)))
----
50 values hashing to 79aef92e815ec54584bc36aaf23d4b88

query II rowsort label-0-2
SELECT pk, col0 FROM tab1 WHERE NOT ((((col1 < 229.92))))
----
150 values hashing to 13da9128df4fd51f2fd59d6aeb2673c3

query II rowsort label-0-1
SELECT pk, col0 FROM view_1_tab1_77
----
50 values hashing to 79aef92e815ec54584bc36aaf23d4b88

query II rowsort label-0-2
SELECT pk, col0 FROM view_2_tab1_77
----
150 values hashing to 13da9128df4fd51f2fd59d6aeb2673c3

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (((col1 < 229.92))) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT ((((col1 < 229.92))))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_77 UNION ALL SELECT pk, col0 FROM view_2_tab1_77
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (((col1 < 229.92))) UNION SELECT pk, col0 FROM tab1 WHERE NOT ((((col1 < 229.92))))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_77 UNION SELECT pk, col0 FROM view_2_tab1_77
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-0-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE (((col1 < 229.92))) ) AS tab1_77
----
25 values hashing to d078a1d99e009ef6330aaf53e9578de9

query I rowsort label-0-3
SELECT * FROM view_3_tab1_77
----
25 values hashing to d078a1d99e009ef6330aaf53e9578de9

query I rowsort label-0-3
SELECT pk FROM tab1 WHERE (((col1 < 229.92)))
----
25 values hashing to d078a1d99e009ef6330aaf53e9578de9

statement ok
DROP VIEW view_1_tab1_77

statement ok
DROP VIEW view_2_tab1_77

statement ok
DROP VIEW view_3_tab1_77

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab2_77 AS SELECT pk, col0 FROM tab2 WHERE (((col1 < 229.92)))

statement ok
CREATE VIEW view_2_tab2_77 AS SELECT pk, col0 FROM tab2 WHERE NOT ((((col1 < 229.92))))

statement ok
CREATE VIEW view_3_tab2_77 AS SELECT pk FROM view_1_tab2_77

query II rowsort label-0-1
SELECT pk, col0 FROM tab2 WHERE (((col1 < 229.92)))
----
50 values hashing to 79aef92e815ec54584bc36aaf23d4b88

query II rowsort label-0-2
SELECT pk, col0 FROM tab2 WHERE NOT ((((col1 < 229.92))))
----
150 values hashing to 13da9128df4fd51f2fd59d6aeb2673c3

query II rowsort label-0-1
SELECT pk, col0 FROM view_1_tab2_77
----
50 values hashing to 79aef92e815ec54584bc36aaf23d4b88

query II rowsort label-0-2
SELECT pk, col0 FROM view_2_tab2_77
----
150 values hashing to 13da9128df4fd51f2fd59d6aeb2673c3

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (((col1 < 229.92))) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT ((((col1 < 229.92))))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_77 UNION ALL SELECT pk, col0 FROM view_2_tab2_77
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (((col1 < 229.92))) UNION SELECT pk, col0 FROM tab2 WHERE NOT ((((col1 < 229.92))))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_77 UNION SELECT pk, col0 FROM view_2_tab2_77
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-0-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE (((col1 < 229.92))) ) AS tab2_77
----
25 values hashing to d078a1d99e009ef6330aaf53e9578de9

query I rowsort label-0-3
SELECT * FROM view_3_tab2_77
----
25 values hashing to d078a1d99e009ef6330aaf53e9578de9

query I rowsort label-0-3
SELECT pk FROM tab2 WHERE (((col1 < 229.92)))
----
25 values hashing to d078a1d99e009ef6330aaf53e9578de9

statement ok
DROP VIEW view_1_tab2_77

statement ok
DROP VIEW view_2_tab2_77

statement ok
DROP VIEW view_3_tab2_77

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab3_77 AS SELECT pk, col0 FROM tab3 WHERE (((col1 < 229.92)))

statement ok
CREATE VIEW view_2_tab3_77 AS SELECT pk, col0 FROM tab3 WHERE NOT ((((col1 < 229.92))))

statement ok
CREATE VIEW view_3_tab3_77 AS SELECT pk FROM view_1_tab3_77

query II rowsort label-0-1
SELECT pk, col0 FROM tab3 WHERE (((col1 < 229.92)))
----
50 values hashing to 79aef92e815ec54584bc36aaf23d4b88

query II rowsort label-0-2
SELECT pk, col0 FROM tab3 WHERE NOT ((((col1 < 229.92))))
----
150 values hashing to 13da9128df4fd51f2fd59d6aeb2673c3

query II rowsort label-0-1
SELECT pk, col0 FROM view_1_tab3_77
----
50 values hashing to 79aef92e815ec54584bc36aaf23d4b88

query II rowsort label-0-2
SELECT pk, col0 FROM view_2_tab3_77
----
150 values hashing to 13da9128df4fd51f2fd59d6aeb2673c3

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (((col1 < 229.92))) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT ((((col1 < 229.92))))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_77 UNION ALL SELECT pk, col0 FROM view_2_tab3_77
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (((col1 < 229.92))) UNION SELECT pk, col0 FROM tab3 WHERE NOT ((((col1 < 229.92))))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_77 UNION SELECT pk, col0 FROM view_2_tab3_77
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-0-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE (((col1 < 229.92))) ) AS tab3_77
----
25 values hashing to d078a1d99e009ef6330aaf53e9578de9

query I rowsort label-0-3
SELECT * FROM view_3_tab3_77
----
25 values hashing to d078a1d99e009ef6330aaf53e9578de9

query I rowsort label-0-3
SELECT pk FROM tab3 WHERE (((col1 < 229.92)))
----
25 values hashing to d078a1d99e009ef6330aaf53e9578de9

statement ok
DROP VIEW view_1_tab3_77

statement ok
DROP VIEW view_2_tab3_77

statement ok
DROP VIEW view_3_tab3_77

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab4_77 AS SELECT pk, col0 FROM tab4 WHERE (((col1 < 229.92)))

statement ok
CREATE VIEW view_2_tab4_77 AS SELECT pk, col0 FROM tab4 WHERE NOT ((((col1 < 229.92))))

statement ok
CREATE VIEW view_3_tab4_77 AS SELECT pk FROM view_1_tab4_77

query II rowsort label-0-1
SELECT pk, col0 FROM tab4 WHERE (((col1 < 229.92)))
----
50 values hashing to 79aef92e815ec54584bc36aaf23d4b88

query II rowsort label-0-2
SELECT pk, col0 FROM tab4 WHERE NOT ((((col1 < 229.92))))
----
150 values hashing to 13da9128df4fd51f2fd59d6aeb2673c3

query II rowsort label-0-1
SELECT pk, col0 FROM view_1_tab4_77
----
50 values hashing to 79aef92e815ec54584bc36aaf23d4b88

query II rowsort label-0-2
SELECT pk, col0 FROM view_2_tab4_77
----
150 values hashing to 13da9128df4fd51f2fd59d6aeb2673c3

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (((col1 < 229.92))) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT ((((col1 < 229.92))))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_77 UNION ALL SELECT pk, col0 FROM view_2_tab4_77
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (((col1 < 229.92))) UNION SELECT pk, col0 FROM tab4 WHERE NOT ((((col1 < 229.92))))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_77 UNION SELECT pk, col0 FROM view_2_tab4_77
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-0-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE (((col1 < 229.92))) ) AS tab4_77
----
25 values hashing to d078a1d99e009ef6330aaf53e9578de9

query I rowsort label-0-3
SELECT * FROM view_3_tab4_77
----
25 values hashing to d078a1d99e009ef6330aaf53e9578de9

query I rowsort label-0-3
SELECT pk FROM tab4 WHERE (((col1 < 229.92)))
----
25 values hashing to d078a1d99e009ef6330aaf53e9578de9

statement ok
DROP VIEW view_1_tab4_77

statement ok
DROP VIEW view_2_tab4_77

statement ok
DROP VIEW view_3_tab4_77

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab0_78 AS SELECT pk, col0 FROM tab0 WHERE (col0 >= 309) OR col0 > 879 OR col0 > 380 AND (col3 > 153) AND ((col0 > 638))

statement ok
CREATE VIEW view_2_tab0_78 AS SELECT pk, col0 FROM tab0 WHERE NOT ((col0 >= 309) OR col0 > 879 OR col0 > 380 AND (col3 > 153) AND ((col0 > 638)))

statement ok
CREATE VIEW view_3_tab0_78 AS SELECT pk FROM view_1_tab0_78

query II rowsort label-100-1
SELECT pk, col0 FROM tab0 WHERE (col0 >= 309) OR col0 > 879 OR col0 > 380 AND (col3 > 153) AND ((col0 > 638))
----
136 values hashing to 47a17f54349aefb61d188dbcc3e1a131

query II rowsort label-100-2
SELECT pk, col0 FROM tab0 WHERE NOT ((col0 >= 309) OR col0 > 879 OR col0 > 380 AND (col3 > 153) AND ((col0 > 638)))
----
64 values hashing to 2982e5b6002d2bca43e529cb10903000

query II rowsort label-100-1
SELECT pk, col0 FROM view_1_tab0_78
----
136 values hashing to 47a17f54349aefb61d188dbcc3e1a131

query II rowsort label-100-2
SELECT pk, col0 FROM view_2_tab0_78
----
64 values hashing to 2982e5b6002d2bca43e529cb10903000

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col0 >= 309) OR col0 > 879 OR col0 > 380 AND (col3 > 153) AND ((col0 > 638)) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT ((col0 >= 309) OR col0 > 879 OR col0 > 380 AND (col3 > 153) AND ((col0 > 638)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_78 UNION ALL SELECT pk, col0 FROM view_2_tab0_78
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col0 >= 309) OR col0 > 879 OR col0 > 380 AND (col3 > 153) AND ((col0 > 638)) UNION SELECT pk, col0 FROM tab0 WHERE NOT ((col0 >= 309) OR col0 > 879 OR col0 > 380 AND (col3 > 153) AND ((col0 > 638)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_78 UNION SELECT pk, col0 FROM view_2_tab0_78
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE (col0 >= 309) OR col0 > 879 OR col0 > 380 AND (col3 > 153) AND ((col0 > 638)) ) AS tab0_78
----
68 values hashing to fdd63f76396edb29f6ea34897ae9fefc

query I rowsort label-100-3
SELECT * FROM view_3_tab0_78
----
68 values hashing to fdd63f76396edb29f6ea34897ae9fefc

query I rowsort label-100-3
SELECT pk FROM tab0 WHERE (col0 >= 309) OR col0 > 879 OR col0 > 380 AND (col3 > 153) AND ((col0 > 638))
----
68 values hashing to fdd63f76396edb29f6ea34897ae9fefc

statement ok
DROP VIEW view_1_tab0_78

statement ok
DROP VIEW view_2_tab0_78

statement ok
DROP VIEW view_3_tab0_78

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab1_78 AS SELECT pk, col0 FROM tab1 WHERE (col0 >= 309) OR col0 > 879 OR col0 > 380 AND (col3 > 153) AND ((col0 > 638))

statement ok
CREATE VIEW view_2_tab1_78 AS SELECT pk, col0 FROM tab1 WHERE NOT ((col0 >= 309) OR col0 > 879 OR col0 > 380 AND (col3 > 153) AND ((col0 > 638)))

statement ok
CREATE VIEW view_3_tab1_78 AS SELECT pk FROM view_1_tab1_78

query II rowsort label-100-1
SELECT pk, col0 FROM tab1 WHERE (col0 >= 309) OR col0 > 879 OR col0 > 380 AND (col3 > 153) AND ((col0 > 638))
----
136 values hashing to 47a17f54349aefb61d188dbcc3e1a131

query II rowsort label-100-2
SELECT pk, col0 FROM tab1 WHERE NOT ((col0 >= 309) OR col0 > 879 OR col0 > 380 AND (col3 > 153) AND ((col0 > 638)))
----
64 values hashing to 2982e5b6002d2bca43e529cb10903000

query II rowsort label-100-1
SELECT pk, col0 FROM view_1_tab1_78
----
136 values hashing to 47a17f54349aefb61d188dbcc3e1a131

query II rowsort label-100-2
SELECT pk, col0 FROM view_2_tab1_78
----
64 values hashing to 2982e5b6002d2bca43e529cb10903000

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col0 >= 309) OR col0 > 879 OR col0 > 380 AND (col3 > 153) AND ((col0 > 638)) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT ((col0 >= 309) OR col0 > 879 OR col0 > 380 AND (col3 > 153) AND ((col0 > 638)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_78 UNION ALL SELECT pk, col0 FROM view_2_tab1_78
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col0 >= 309) OR col0 > 879 OR col0 > 380 AND (col3 > 153) AND ((col0 > 638)) UNION SELECT pk, col0 FROM tab1 WHERE NOT ((col0 >= 309) OR col0 > 879 OR col0 > 380 AND (col3 > 153) AND ((col0 > 638)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_78 UNION SELECT pk, col0 FROM view_2_tab1_78
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE (col0 >= 309) OR col0 > 879 OR col0 > 380 AND (col3 > 153) AND ((col0 > 638)) ) AS tab1_78
----
68 values hashing to fdd63f76396edb29f6ea34897ae9fefc

query I rowsort label-100-3
SELECT * FROM view_3_tab1_78
----
68 values hashing to fdd63f76396edb29f6ea34897ae9fefc

query I rowsort label-100-3
SELECT pk FROM tab1 WHERE (col0 >= 309) OR col0 > 879 OR col0 > 380 AND (col3 > 153) AND ((col0 > 638))
----
68 values hashing to fdd63f76396edb29f6ea34897ae9fefc

statement ok
DROP VIEW view_1_tab1_78

statement ok
DROP VIEW view_2_tab1_78

statement ok
DROP VIEW view_3_tab1_78

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab2_78 AS SELECT pk, col0 FROM tab2 WHERE (col0 >= 309) OR col0 > 879 OR col0 > 380 AND (col3 > 153) AND ((col0 > 638))

statement ok
CREATE VIEW view_2_tab2_78 AS SELECT pk, col0 FROM tab2 WHERE NOT ((col0 >= 309) OR col0 > 879 OR col0 > 380 AND (col3 > 153) AND ((col0 > 638)))

statement ok
CREATE VIEW view_3_tab2_78 AS SELECT pk FROM view_1_tab2_78

query II rowsort label-100-1
SELECT pk, col0 FROM tab2 WHERE (col0 >= 309) OR col0 > 879 OR col0 > 380 AND (col3 > 153) AND ((col0 > 638))
----
136 values hashing to 47a17f54349aefb61d188dbcc3e1a131

query II rowsort label-100-2
SELECT pk, col0 FROM tab2 WHERE NOT ((col0 >= 309) OR col0 > 879 OR col0 > 380 AND (col3 > 153) AND ((col0 > 638)))
----
64 values hashing to 2982e5b6002d2bca43e529cb10903000

query II rowsort label-100-1
SELECT pk, col0 FROM view_1_tab2_78
----
136 values hashing to 47a17f54349aefb61d188dbcc3e1a131

query II rowsort label-100-2
SELECT pk, col0 FROM view_2_tab2_78
----
64 values hashing to 2982e5b6002d2bca43e529cb10903000

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col0 >= 309) OR col0 > 879 OR col0 > 380 AND (col3 > 153) AND ((col0 > 638)) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT ((col0 >= 309) OR col0 > 879 OR col0 > 380 AND (col3 > 153) AND ((col0 > 638)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_78 UNION ALL SELECT pk, col0 FROM view_2_tab2_78
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col0 >= 309) OR col0 > 879 OR col0 > 380 AND (col3 > 153) AND ((col0 > 638)) UNION SELECT pk, col0 FROM tab2 WHERE NOT ((col0 >= 309) OR col0 > 879 OR col0 > 380 AND (col3 > 153) AND ((col0 > 638)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_78 UNION SELECT pk, col0 FROM view_2_tab2_78
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE (col0 >= 309) OR col0 > 879 OR col0 > 380 AND (col3 > 153) AND ((col0 > 638)) ) AS tab2_78
----
68 values hashing to fdd63f76396edb29f6ea34897ae9fefc

query I rowsort label-100-3
SELECT * FROM view_3_tab2_78
----
68 values hashing to fdd63f76396edb29f6ea34897ae9fefc

query I rowsort label-100-3
SELECT pk FROM tab2 WHERE (col0 >= 309) OR col0 > 879 OR col0 > 380 AND (col3 > 153) AND ((col0 > 638))
----
68 values hashing to fdd63f76396edb29f6ea34897ae9fefc

statement ok
DROP VIEW view_1_tab2_78

statement ok
DROP VIEW view_2_tab2_78

statement ok
DROP VIEW view_3_tab2_78

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab3_78 AS SELECT pk, col0 FROM tab3 WHERE (col0 >= 309) OR col0 > 879 OR col0 > 380 AND (col3 > 153) AND ((col0 > 638))

statement ok
CREATE VIEW view_2_tab3_78 AS SELECT pk, col0 FROM tab3 WHERE NOT ((col0 >= 309) OR col0 > 879 OR col0 > 380 AND (col3 > 153) AND ((col0 > 638)))

statement ok
CREATE VIEW view_3_tab3_78 AS SELECT pk FROM view_1_tab3_78

query II rowsort label-100-1
SELECT pk, col0 FROM tab3 WHERE (col0 >= 309) OR col0 > 879 OR col0 > 380 AND (col3 > 153) AND ((col0 > 638))
----
136 values hashing to 47a17f54349aefb61d188dbcc3e1a131

query II rowsort label-100-2
SELECT pk, col0 FROM tab3 WHERE NOT ((col0 >= 309) OR col0 > 879 OR col0 > 380 AND (col3 > 153) AND ((col0 > 638)))
----
64 values hashing to 2982e5b6002d2bca43e529cb10903000

query II rowsort label-100-1
SELECT pk, col0 FROM view_1_tab3_78
----
136 values hashing to 47a17f54349aefb61d188dbcc3e1a131

query II rowsort label-100-2
SELECT pk, col0 FROM view_2_tab3_78
----
64 values hashing to 2982e5b6002d2bca43e529cb10903000

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col0 >= 309) OR col0 > 879 OR col0 > 380 AND (col3 > 153) AND ((col0 > 638)) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT ((col0 >= 309) OR col0 > 879 OR col0 > 380 AND (col3 > 153) AND ((col0 > 638)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_78 UNION ALL SELECT pk, col0 FROM view_2_tab3_78
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col0 >= 309) OR col0 > 879 OR col0 > 380 AND (col3 > 153) AND ((col0 > 638)) UNION SELECT pk, col0 FROM tab3 WHERE NOT ((col0 >= 309) OR col0 > 879 OR col0 > 380 AND (col3 > 153) AND ((col0 > 638)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_78 UNION SELECT pk, col0 FROM view_2_tab3_78
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE (col0 >= 309) OR col0 > 879 OR col0 > 380 AND (col3 > 153) AND ((col0 > 638)) ) AS tab3_78
----
68 values hashing to fdd63f76396edb29f6ea34897ae9fefc

query I rowsort label-100-3
SELECT * FROM view_3_tab3_78
----
68 values hashing to fdd63f76396edb29f6ea34897ae9fefc

query I rowsort label-100-3
SELECT pk FROM tab3 WHERE (col0 >= 309) OR col0 > 879 OR col0 > 380 AND (col3 > 153) AND ((col0 > 638))
----
68 values hashing to fdd63f76396edb29f6ea34897ae9fefc

statement ok
DROP VIEW view_1_tab3_78

statement ok
DROP VIEW view_2_tab3_78

statement ok
DROP VIEW view_3_tab3_78

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab4_78 AS SELECT pk, col0 FROM tab4 WHERE (col0 >= 309) OR col0 > 879 OR col0 > 380 AND (col3 > 153) AND ((col0 > 638))

statement ok
CREATE VIEW view_2_tab4_78 AS SELECT pk, col0 FROM tab4 WHERE NOT ((col0 >= 309) OR col0 > 879 OR col0 > 380 AND (col3 > 153) AND ((col0 > 638)))

statement ok
CREATE VIEW view_3_tab4_78 AS SELECT pk FROM view_1_tab4_78

query II rowsort label-100-1
SELECT pk, col0 FROM tab4 WHERE (col0 >= 309) OR col0 > 879 OR col0 > 380 AND (col3 > 153) AND ((col0 > 638))
----
136 values hashing to 47a17f54349aefb61d188dbcc3e1a131

query II rowsort label-100-2
SELECT pk, col0 FROM tab4 WHERE NOT ((col0 >= 309) OR col0 > 879 OR col0 > 380 AND (col3 > 153) AND ((col0 > 638)))
----
64 values hashing to 2982e5b6002d2bca43e529cb10903000

query II rowsort label-100-1
SELECT pk, col0 FROM view_1_tab4_78
----
136 values hashing to 47a17f54349aefb61d188dbcc3e1a131

query II rowsort label-100-2
SELECT pk, col0 FROM view_2_tab4_78
----
64 values hashing to 2982e5b6002d2bca43e529cb10903000

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col0 >= 309) OR col0 > 879 OR col0 > 380 AND (col3 > 153) AND ((col0 > 638)) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT ((col0 >= 309) OR col0 > 879 OR col0 > 380 AND (col3 > 153) AND ((col0 > 638)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_78 UNION ALL SELECT pk, col0 FROM view_2_tab4_78
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col0 >= 309) OR col0 > 879 OR col0 > 380 AND (col3 > 153) AND ((col0 > 638)) UNION SELECT pk, col0 FROM tab4 WHERE NOT ((col0 >= 309) OR col0 > 879 OR col0 > 380 AND (col3 > 153) AND ((col0 > 638)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_78 UNION SELECT pk, col0 FROM view_2_tab4_78
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE (col0 >= 309) OR col0 > 879 OR col0 > 380 AND (col3 > 153) AND ((col0 > 638)) ) AS tab4_78
----
68 values hashing to fdd63f76396edb29f6ea34897ae9fefc

query I rowsort label-100-3
SELECT * FROM view_3_tab4_78
----
68 values hashing to fdd63f76396edb29f6ea34897ae9fefc

query I rowsort label-100-3
SELECT pk FROM tab4 WHERE (col0 >= 309) OR col0 > 879 OR col0 > 380 AND (col3 > 153) AND ((col0 > 638))
----
68 values hashing to fdd63f76396edb29f6ea34897ae9fefc

statement ok
DROP VIEW view_1_tab4_78

statement ok
DROP VIEW view_2_tab4_78

statement ok
DROP VIEW view_3_tab4_78

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab0_79 AS SELECT pk, col0 FROM tab0 WHERE col4 <= 73.63 OR col4 > 372.90

statement ok
CREATE VIEW view_2_tab0_79 AS SELECT pk, col0 FROM tab0 WHERE NOT (col4 <= 73.63 OR col4 > 372.90)

statement ok
CREATE VIEW view_3_tab0_79 AS SELECT pk FROM view_1_tab0_79

query II rowsort label-200-1
SELECT pk, col0 FROM tab0 WHERE col4 <= 73.63 OR col4 > 372.90
----
130 values hashing to 72aed40875d72cf1d42d6cab6ddec24c

query II rowsort label-200-2
SELECT pk, col0 FROM tab0 WHERE NOT (col4 <= 73.63 OR col4 > 372.90)
----
70 values hashing to 2af1f5aadf64d7392d488b43d684c339

query II rowsort label-200-1
SELECT pk, col0 FROM view_1_tab0_79
----
130 values hashing to 72aed40875d72cf1d42d6cab6ddec24c

query II rowsort label-200-2
SELECT pk, col0 FROM view_2_tab0_79
----
70 values hashing to 2af1f5aadf64d7392d488b43d684c339

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col4 <= 73.63 OR col4 > 372.90 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col4 <= 73.63 OR col4 > 372.90)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_79 UNION ALL SELECT pk, col0 FROM view_2_tab0_79
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col4 <= 73.63 OR col4 > 372.90 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col4 <= 73.63 OR col4 > 372.90)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_79 UNION SELECT pk, col0 FROM view_2_tab0_79
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col4 <= 73.63 OR col4 > 372.90 ) AS tab0_79
----
65 values hashing to e3580df6b2ce11f6afbfc6d0c2936954

query I rowsort label-200-3
SELECT * FROM view_3_tab0_79
----
65 values hashing to e3580df6b2ce11f6afbfc6d0c2936954

query I rowsort label-200-3
SELECT pk FROM tab0 WHERE col4 <= 73.63 OR col4 > 372.90
----
65 values hashing to e3580df6b2ce11f6afbfc6d0c2936954

statement ok
DROP VIEW view_1_tab0_79

statement ok
DROP VIEW view_2_tab0_79

statement ok
DROP VIEW view_3_tab0_79

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab1_79 AS SELECT pk, col0 FROM tab1 WHERE col4 <= 73.63 OR col4 > 372.90

statement ok
CREATE VIEW view_2_tab1_79 AS SELECT pk, col0 FROM tab1 WHERE NOT (col4 <= 73.63 OR col4 > 372.90)

statement ok
CREATE VIEW view_3_tab1_79 AS SELECT pk FROM view_1_tab1_79

query II rowsort label-200-1
SELECT pk, col0 FROM tab1 WHERE col4 <= 73.63 OR col4 > 372.90
----
130 values hashing to 72aed40875d72cf1d42d6cab6ddec24c

query II rowsort label-200-2
SELECT pk, col0 FROM tab1 WHERE NOT (col4 <= 73.63 OR col4 > 372.90)
----
70 values hashing to 2af1f5aadf64d7392d488b43d684c339

query II rowsort label-200-1
SELECT pk, col0 FROM view_1_tab1_79
----
130 values hashing to 72aed40875d72cf1d42d6cab6ddec24c

query II rowsort label-200-2
SELECT pk, col0 FROM view_2_tab1_79
----
70 values hashing to 2af1f5aadf64d7392d488b43d684c339

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col4 <= 73.63 OR col4 > 372.90 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col4 <= 73.63 OR col4 > 372.90)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_79 UNION ALL SELECT pk, col0 FROM view_2_tab1_79
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col4 <= 73.63 OR col4 > 372.90 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col4 <= 73.63 OR col4 > 372.90)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_79 UNION SELECT pk, col0 FROM view_2_tab1_79
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col4 <= 73.63 OR col4 > 372.90 ) AS tab1_79
----
65 values hashing to e3580df6b2ce11f6afbfc6d0c2936954

query I rowsort label-200-3
SELECT * FROM view_3_tab1_79
----
65 values hashing to e3580df6b2ce11f6afbfc6d0c2936954

query I rowsort label-200-3
SELECT pk FROM tab1 WHERE col4 <= 73.63 OR col4 > 372.90
----
65 values hashing to e3580df6b2ce11f6afbfc6d0c2936954

statement ok
DROP VIEW view_1_tab1_79

statement ok
DROP VIEW view_2_tab1_79

statement ok
DROP VIEW view_3_tab1_79

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab2_79 AS SELECT pk, col0 FROM tab2 WHERE col4 <= 73.63 OR col4 > 372.90

statement ok
CREATE VIEW view_2_tab2_79 AS SELECT pk, col0 FROM tab2 WHERE NOT (col4 <= 73.63 OR col4 > 372.90)

statement ok
CREATE VIEW view_3_tab2_79 AS SELECT pk FROM view_1_tab2_79

query II rowsort label-200-1
SELECT pk, col0 FROM tab2 WHERE col4 <= 73.63 OR col4 > 372.90
----
130 values hashing to 72aed40875d72cf1d42d6cab6ddec24c

query II rowsort label-200-2
SELECT pk, col0 FROM tab2 WHERE NOT (col4 <= 73.63 OR col4 > 372.90)
----
70 values hashing to 2af1f5aadf64d7392d488b43d684c339

query II rowsort label-200-1
SELECT pk, col0 FROM view_1_tab2_79
----
130 values hashing to 72aed40875d72cf1d42d6cab6ddec24c

query II rowsort label-200-2
SELECT pk, col0 FROM view_2_tab2_79
----
70 values hashing to 2af1f5aadf64d7392d488b43d684c339

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col4 <= 73.63 OR col4 > 372.90 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col4 <= 73.63 OR col4 > 372.90)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_79 UNION ALL SELECT pk, col0 FROM view_2_tab2_79
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col4 <= 73.63 OR col4 > 372.90 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col4 <= 73.63 OR col4 > 372.90)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_79 UNION SELECT pk, col0 FROM view_2_tab2_79
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col4 <= 73.63 OR col4 > 372.90 ) AS tab2_79
----
65 values hashing to e3580df6b2ce11f6afbfc6d0c2936954

query I rowsort label-200-3
SELECT * FROM view_3_tab2_79
----
65 values hashing to e3580df6b2ce11f6afbfc6d0c2936954

query I rowsort label-200-3
SELECT pk FROM tab2 WHERE col4 <= 73.63 OR col4 > 372.90
----
65 values hashing to e3580df6b2ce11f6afbfc6d0c2936954

statement ok
DROP VIEW view_1_tab2_79

statement ok
DROP VIEW view_2_tab2_79

statement ok
DROP VIEW view_3_tab2_79

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab3_79 AS SELECT pk, col0 FROM tab3 WHERE col4 <= 73.63 OR col4 > 372.90

statement ok
CREATE VIEW view_2_tab3_79 AS SELECT pk, col0 FROM tab3 WHERE NOT (col4 <= 73.63 OR col4 > 372.90)

statement ok
CREATE VIEW view_3_tab3_79 AS SELECT pk FROM view_1_tab3_79

query II rowsort label-200-1
SELECT pk, col0 FROM tab3 WHERE col4 <= 73.63 OR col4 > 372.90
----
130 values hashing to 72aed40875d72cf1d42d6cab6ddec24c

query II rowsort label-200-2
SELECT pk, col0 FROM tab3 WHERE NOT (col4 <= 73.63 OR col4 > 372.90)
----
70 values hashing to 2af1f5aadf64d7392d488b43d684c339

query II rowsort label-200-1
SELECT pk, col0 FROM view_1_tab3_79
----
130 values hashing to 72aed40875d72cf1d42d6cab6ddec24c

query II rowsort label-200-2
SELECT pk, col0 FROM view_2_tab3_79
----
70 values hashing to 2af1f5aadf64d7392d488b43d684c339

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col4 <= 73.63 OR col4 > 372.90 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col4 <= 73.63 OR col4 > 372.90)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_79 UNION ALL SELECT pk, col0 FROM view_2_tab3_79
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col4 <= 73.63 OR col4 > 372.90 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col4 <= 73.63 OR col4 > 372.90)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_79 UNION SELECT pk, col0 FROM view_2_tab3_79
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col4 <= 73.63 OR col4 > 372.90 ) AS tab3_79
----
65 values hashing to e3580df6b2ce11f6afbfc6d0c2936954

query I rowsort label-200-3
SELECT * FROM view_3_tab3_79
----
65 values hashing to e3580df6b2ce11f6afbfc6d0c2936954

query I rowsort label-200-3
SELECT pk FROM tab3 WHERE col4 <= 73.63 OR col4 > 372.90
----
65 values hashing to e3580df6b2ce11f6afbfc6d0c2936954

statement ok
DROP VIEW view_1_tab3_79

statement ok
DROP VIEW view_2_tab3_79

statement ok
DROP VIEW view_3_tab3_79

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab4_79 AS SELECT pk, col0 FROM tab4 WHERE col4 <= 73.63 OR col4 > 372.90

statement ok
CREATE VIEW view_2_tab4_79 AS SELECT pk, col0 FROM tab4 WHERE NOT (col4 <= 73.63 OR col4 > 372.90)

statement ok
CREATE VIEW view_3_tab4_79 AS SELECT pk FROM view_1_tab4_79

query II rowsort label-200-1
SELECT pk, col0 FROM tab4 WHERE col4 <= 73.63 OR col4 > 372.90
----
130 values hashing to 72aed40875d72cf1d42d6cab6ddec24c

query II rowsort label-200-2
SELECT pk, col0 FROM tab4 WHERE NOT (col4 <= 73.63 OR col4 > 372.90)
----
70 values hashing to 2af1f5aadf64d7392d488b43d684c339

query II rowsort label-200-1
SELECT pk, col0 FROM view_1_tab4_79
----
130 values hashing to 72aed40875d72cf1d42d6cab6ddec24c

query II rowsort label-200-2
SELECT pk, col0 FROM view_2_tab4_79
----
70 values hashing to 2af1f5aadf64d7392d488b43d684c339

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col4 <= 73.63 OR col4 > 372.90 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col4 <= 73.63 OR col4 > 372.90)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_79 UNION ALL SELECT pk, col0 FROM view_2_tab4_79
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col4 <= 73.63 OR col4 > 372.90 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col4 <= 73.63 OR col4 > 372.90)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_79 UNION SELECT pk, col0 FROM view_2_tab4_79
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col4 <= 73.63 OR col4 > 372.90 ) AS tab4_79
----
65 values hashing to e3580df6b2ce11f6afbfc6d0c2936954

query I rowsort label-200-3
SELECT * FROM view_3_tab4_79
----
65 values hashing to e3580df6b2ce11f6afbfc6d0c2936954

query I rowsort label-200-3
SELECT pk FROM tab4 WHERE col4 <= 73.63 OR col4 > 372.90
----
65 values hashing to e3580df6b2ce11f6afbfc6d0c2936954

statement ok
DROP VIEW view_1_tab4_79

statement ok
DROP VIEW view_2_tab4_79

statement ok
DROP VIEW view_3_tab4_79

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab0_80 AS SELECT pk, col0 FROM tab0 WHERE col1 >= 397.64

statement ok
CREATE VIEW view_2_tab0_80 AS SELECT pk, col0 FROM tab0 WHERE NOT (col1 >= 397.64)

statement ok
CREATE VIEW view_3_tab0_80 AS SELECT pk FROM view_1_tab0_80

query II rowsort label-300-1
SELECT pk, col0 FROM tab0 WHERE col1 >= 397.64
----
130 values hashing to f2f9670ef8e8a7b47d10829257f67463

query II rowsort label-300-2
SELECT pk, col0 FROM tab0 WHERE NOT (col1 >= 397.64)
----
70 values hashing to 382254e70fe5e45e599588c1d6a981b6

query II rowsort label-300-1
SELECT pk, col0 FROM view_1_tab0_80
----
130 values hashing to f2f9670ef8e8a7b47d10829257f67463

query II rowsort label-300-2
SELECT pk, col0 FROM view_2_tab0_80
----
70 values hashing to 382254e70fe5e45e599588c1d6a981b6

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col1 >= 397.64 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col1 >= 397.64)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_80 UNION ALL SELECT pk, col0 FROM view_2_tab0_80
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col1 >= 397.64 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col1 >= 397.64)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_80 UNION SELECT pk, col0 FROM view_2_tab0_80
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col1 >= 397.64 ) AS tab0_80
----
65 values hashing to c3f2c42fc210d93874f1298f43d76efe

query I rowsort label-300-3
SELECT * FROM view_3_tab0_80
----
65 values hashing to c3f2c42fc210d93874f1298f43d76efe

query I rowsort label-300-3
SELECT pk FROM tab0 WHERE col1 >= 397.64
----
65 values hashing to c3f2c42fc210d93874f1298f43d76efe

statement ok
DROP VIEW view_1_tab0_80

statement ok
DROP VIEW view_2_tab0_80

statement ok
DROP VIEW view_3_tab0_80

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab1_80 AS SELECT pk, col0 FROM tab1 WHERE col1 >= 397.64

statement ok
CREATE VIEW view_2_tab1_80 AS SELECT pk, col0 FROM tab1 WHERE NOT (col1 >= 397.64)

statement ok
CREATE VIEW view_3_tab1_80 AS SELECT pk FROM view_1_tab1_80

query II rowsort label-300-1
SELECT pk, col0 FROM tab1 WHERE col1 >= 397.64
----
130 values hashing to f2f9670ef8e8a7b47d10829257f67463

query II rowsort label-300-2
SELECT pk, col0 FROM tab1 WHERE NOT (col1 >= 397.64)
----
70 values hashing to 382254e70fe5e45e599588c1d6a981b6

query II rowsort label-300-1
SELECT pk, col0 FROM view_1_tab1_80
----
130 values hashing to f2f9670ef8e8a7b47d10829257f67463

query II rowsort label-300-2
SELECT pk, col0 FROM view_2_tab1_80
----
70 values hashing to 382254e70fe5e45e599588c1d6a981b6

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col1 >= 397.64 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col1 >= 397.64)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_80 UNION ALL SELECT pk, col0 FROM view_2_tab1_80
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col1 >= 397.64 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col1 >= 397.64)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_80 UNION SELECT pk, col0 FROM view_2_tab1_80
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col1 >= 397.64 ) AS tab1_80
----
65 values hashing to c3f2c42fc210d93874f1298f43d76efe

query I rowsort label-300-3
SELECT * FROM view_3_tab1_80
----
65 values hashing to c3f2c42fc210d93874f1298f43d76efe

query I rowsort label-300-3
SELECT pk FROM tab1 WHERE col1 >= 397.64
----
65 values hashing to c3f2c42fc210d93874f1298f43d76efe

statement ok
DROP VIEW view_1_tab1_80

statement ok
DROP VIEW view_2_tab1_80

statement ok
DROP VIEW view_3_tab1_80

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab2_80 AS SELECT pk, col0 FROM tab2 WHERE col1 >= 397.64

statement ok
CREATE VIEW view_2_tab2_80 AS SELECT pk, col0 FROM tab2 WHERE NOT (col1 >= 397.64)

statement ok
CREATE VIEW view_3_tab2_80 AS SELECT pk FROM view_1_tab2_80

query II rowsort label-300-1
SELECT pk, col0 FROM tab2 WHERE col1 >= 397.64
----
130 values hashing to f2f9670ef8e8a7b47d10829257f67463

query II rowsort label-300-2
SELECT pk, col0 FROM tab2 WHERE NOT (col1 >= 397.64)
----
70 values hashing to 382254e70fe5e45e599588c1d6a981b6

query II rowsort label-300-1
SELECT pk, col0 FROM view_1_tab2_80
----
130 values hashing to f2f9670ef8e8a7b47d10829257f67463

query II rowsort label-300-2
SELECT pk, col0 FROM view_2_tab2_80
----
70 values hashing to 382254e70fe5e45e599588c1d6a981b6

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col1 >= 397.64 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col1 >= 397.64)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_80 UNION ALL SELECT pk, col0 FROM view_2_tab2_80
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col1 >= 397.64 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col1 >= 397.64)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_80 UNION SELECT pk, col0 FROM view_2_tab2_80
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col1 >= 397.64 ) AS tab2_80
----
65 values hashing to c3f2c42fc210d93874f1298f43d76efe

query I rowsort label-300-3
SELECT * FROM view_3_tab2_80
----
65 values hashing to c3f2c42fc210d93874f1298f43d76efe

query I rowsort label-300-3
SELECT pk FROM tab2 WHERE col1 >= 397.64
----
65 values hashing to c3f2c42fc210d93874f1298f43d76efe

statement ok
DROP VIEW view_1_tab2_80

statement ok
DROP VIEW view_2_tab2_80

statement ok
DROP VIEW view_3_tab2_80

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab3_80 AS SELECT pk, col0 FROM tab3 WHERE col1 >= 397.64

statement ok
CREATE VIEW view_2_tab3_80 AS SELECT pk, col0 FROM tab3 WHERE NOT (col1 >= 397.64)

statement ok
CREATE VIEW view_3_tab3_80 AS SELECT pk FROM view_1_tab3_80

query II rowsort label-300-1
SELECT pk, col0 FROM tab3 WHERE col1 >= 397.64
----
130 values hashing to f2f9670ef8e8a7b47d10829257f67463

query II rowsort label-300-2
SELECT pk, col0 FROM tab3 WHERE NOT (col1 >= 397.64)
----
70 values hashing to 382254e70fe5e45e599588c1d6a981b6

query II rowsort label-300-1
SELECT pk, col0 FROM view_1_tab3_80
----
130 values hashing to f2f9670ef8e8a7b47d10829257f67463

query II rowsort label-300-2
SELECT pk, col0 FROM view_2_tab3_80
----
70 values hashing to 382254e70fe5e45e599588c1d6a981b6

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col1 >= 397.64 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col1 >= 397.64)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_80 UNION ALL SELECT pk, col0 FROM view_2_tab3_80
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col1 >= 397.64 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col1 >= 397.64)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_80 UNION SELECT pk, col0 FROM view_2_tab3_80
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col1 >= 397.64 ) AS tab3_80
----
65 values hashing to c3f2c42fc210d93874f1298f43d76efe

query I rowsort label-300-3
SELECT * FROM view_3_tab3_80
----
65 values hashing to c3f2c42fc210d93874f1298f43d76efe

query I rowsort label-300-3
SELECT pk FROM tab3 WHERE col1 >= 397.64
----
65 values hashing to c3f2c42fc210d93874f1298f43d76efe

statement ok
DROP VIEW view_1_tab3_80

statement ok
DROP VIEW view_2_tab3_80

statement ok
DROP VIEW view_3_tab3_80

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab4_80 AS SELECT pk, col0 FROM tab4 WHERE col1 >= 397.64

statement ok
CREATE VIEW view_2_tab4_80 AS SELECT pk, col0 FROM tab4 WHERE NOT (col1 >= 397.64)

statement ok
CREATE VIEW view_3_tab4_80 AS SELECT pk FROM view_1_tab4_80

query II rowsort label-300-1
SELECT pk, col0 FROM tab4 WHERE col1 >= 397.64
----
130 values hashing to f2f9670ef8e8a7b47d10829257f67463

query II rowsort label-300-2
SELECT pk, col0 FROM tab4 WHERE NOT (col1 >= 397.64)
----
70 values hashing to 382254e70fe5e45e599588c1d6a981b6

query II rowsort label-300-1
SELECT pk, col0 FROM view_1_tab4_80
----
130 values hashing to f2f9670ef8e8a7b47d10829257f67463

query II rowsort label-300-2
SELECT pk, col0 FROM view_2_tab4_80
----
70 values hashing to 382254e70fe5e45e599588c1d6a981b6

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col1 >= 397.64 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col1 >= 397.64)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_80 UNION ALL SELECT pk, col0 FROM view_2_tab4_80
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col1 >= 397.64 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col1 >= 397.64)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_80 UNION SELECT pk, col0 FROM view_2_tab4_80
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col1 >= 397.64 ) AS tab4_80
----
65 values hashing to c3f2c42fc210d93874f1298f43d76efe

query I rowsort label-300-3
SELECT * FROM view_3_tab4_80
----
65 values hashing to c3f2c42fc210d93874f1298f43d76efe

query I rowsort label-300-3
SELECT pk FROM tab4 WHERE col1 >= 397.64
----
65 values hashing to c3f2c42fc210d93874f1298f43d76efe

statement ok
DROP VIEW view_1_tab4_80

statement ok
DROP VIEW view_2_tab4_80

statement ok
DROP VIEW view_3_tab4_80

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab0_81 AS SELECT pk, col0 FROM tab0 WHERE col0 < 230

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

statement ok
CREATE VIEW view_3_tab0_81 AS SELECT pk FROM view_1_tab0_81

query II rowsort label-400-1
SELECT pk, col0 FROM tab0 WHERE col0 < 230
----
44 values hashing to ee0c58a05a6b0f8a7b67e8df5963c4f9

query II rowsort label-400-2
SELECT pk, col0 FROM tab0 WHERE NOT (col0 < 230)
----
156 values hashing to 4b86726b69b7580c32881f7b82916e43

query II rowsort label-400-1
SELECT pk, col0 FROM view_1_tab0_81
----
44 values hashing to ee0c58a05a6b0f8a7b67e8df5963c4f9

query II rowsort label-400-2
SELECT pk, col0 FROM view_2_tab0_81
----
156 values hashing to 4b86726b69b7580c32881f7b82916e43

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col0 < 230 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col0 < 230)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_81 UNION ALL SELECT pk, col0 FROM view_2_tab0_81
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col0 < 230 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col0 < 230)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_81 UNION SELECT pk, col0 FROM view_2_tab0_81
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col0 < 230 ) AS tab0_81
----
22 values hashing to 897b23cba09a5eae07c56aef834a68e0

query I rowsort label-400-3
SELECT * FROM view_3_tab0_81
----
22 values hashing to 897b23cba09a5eae07c56aef834a68e0

query I rowsort label-400-3
SELECT pk FROM tab0 WHERE col0 < 230
----
22 values hashing to 897b23cba09a5eae07c56aef834a68e0

statement ok
DROP VIEW view_1_tab0_81

statement ok
DROP VIEW view_2_tab0_81

statement ok
DROP VIEW view_3_tab0_81

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab1_81 AS SELECT pk, col0 FROM tab1 WHERE col0 < 230

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

statement ok
CREATE VIEW view_3_tab1_81 AS SELECT pk FROM view_1_tab1_81

query II rowsort label-400-1
SELECT pk, col0 FROM tab1 WHERE col0 < 230
----
44 values hashing to ee0c58a05a6b0f8a7b67e8df5963c4f9

query II rowsort label-400-2
SELECT pk, col0 FROM tab1 WHERE NOT (col0 < 230)
----
156 values hashing to 4b86726b69b7580c32881f7b82916e43

query II rowsort label-400-1
SELECT pk, col0 FROM view_1_tab1_81
----
44 values hashing to ee0c58a05a6b0f8a7b67e8df5963c4f9

query II rowsort label-400-2
SELECT pk, col0 FROM view_2_tab1_81
----
156 values hashing to 4b86726b69b7580c32881f7b82916e43

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col0 < 230 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col0 < 230)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_81 UNION ALL SELECT pk, col0 FROM view_2_tab1_81
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col0 < 230 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col0 < 230)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_81 UNION SELECT pk, col0 FROM view_2_tab1_81
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col0 < 230 ) AS tab1_81
----
22 values hashing to 897b23cba09a5eae07c56aef834a68e0

query I rowsort label-400-3
SELECT * FROM view_3_tab1_81
----
22 values hashing to 897b23cba09a5eae07c56aef834a68e0

query I rowsort label-400-3
SELECT pk FROM tab1 WHERE col0 < 230
----
22 values hashing to 897b23cba09a5eae07c56aef834a68e0

statement ok
DROP VIEW view_1_tab1_81

statement ok
DROP VIEW view_2_tab1_81

statement ok
DROP VIEW view_3_tab1_81

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab2_81 AS SELECT pk, col0 FROM tab2 WHERE col0 < 230

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

statement ok
CREATE VIEW view_3_tab2_81 AS SELECT pk FROM view_1_tab2_81

query II rowsort label-400-1
SELECT pk, col0 FROM tab2 WHERE col0 < 230
----
44 values hashing to ee0c58a05a6b0f8a7b67e8df5963c4f9

query II rowsort label-400-2
SELECT pk, col0 FROM tab2 WHERE NOT (col0 < 230)
----
156 values hashing to 4b86726b69b7580c32881f7b82916e43

query II rowsort label-400-1
SELECT pk, col0 FROM view_1_tab2_81
----
44 values hashing to ee0c58a05a6b0f8a7b67e8df5963c4f9

query II rowsort label-400-2
SELECT pk, col0 FROM view_2_tab2_81
----
156 values hashing to 4b86726b69b7580c32881f7b82916e43

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col0 < 230 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col0 < 230)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_81 UNION ALL SELECT pk, col0 FROM view_2_tab2_81
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col0 < 230 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col0 < 230)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_81 UNION SELECT pk, col0 FROM view_2_tab2_81
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col0 < 230 ) AS tab2_81
----
22 values hashing to 897b23cba09a5eae07c56aef834a68e0

query I rowsort label-400-3
SELECT * FROM view_3_tab2_81
----
22 values hashing to 897b23cba09a5eae07c56aef834a68e0

query I rowsort label-400-3
SELECT pk FROM tab2 WHERE col0 < 230
----
22 values hashing to 897b23cba09a5eae07c56aef834a68e0

statement ok
DROP VIEW view_1_tab2_81

statement ok
DROP VIEW view_2_tab2_81

statement ok
DROP VIEW view_3_tab2_81

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab3_81 AS SELECT pk, col0 FROM tab3 WHERE col0 < 230

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

statement ok
CREATE VIEW view_3_tab3_81 AS SELECT pk FROM view_1_tab3_81

query II rowsort label-400-1
SELECT pk, col0 FROM tab3 WHERE col0 < 230
----
44 values hashing to ee0c58a05a6b0f8a7b67e8df5963c4f9

query II rowsort label-400-2
SELECT pk, col0 FROM tab3 WHERE NOT (col0 < 230)
----
156 values hashing to 4b86726b69b7580c32881f7b82916e43

query II rowsort label-400-1
SELECT pk, col0 FROM view_1_tab3_81
----
44 values hashing to ee0c58a05a6b0f8a7b67e8df5963c4f9

query II rowsort label-400-2
SELECT pk, col0 FROM view_2_tab3_81
----
156 values hashing to 4b86726b69b7580c32881f7b82916e43

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col0 < 230 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col0 < 230)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_81 UNION ALL SELECT pk, col0 FROM view_2_tab3_81
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col0 < 230 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col0 < 230)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_81 UNION SELECT pk, col0 FROM view_2_tab3_81
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col0 < 230 ) AS tab3_81
----
22 values hashing to 897b23cba09a5eae07c56aef834a68e0

query I rowsort label-400-3
SELECT * FROM view_3_tab3_81
----
22 values hashing to 897b23cba09a5eae07c56aef834a68e0

query I rowsort label-400-3
SELECT pk FROM tab3 WHERE col0 < 230
----
22 values hashing to 897b23cba09a5eae07c56aef834a68e0

statement ok
DROP VIEW view_1_tab3_81

statement ok
DROP VIEW view_2_tab3_81

statement ok
DROP VIEW view_3_tab3_81

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab4_81 AS SELECT pk, col0 FROM tab4 WHERE col0 < 230

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

statement ok
CREATE VIEW view_3_tab4_81 AS SELECT pk FROM view_1_tab4_81

query II rowsort label-400-1
SELECT pk, col0 FROM tab4 WHERE col0 < 230
----
44 values hashing to ee0c58a05a6b0f8a7b67e8df5963c4f9

query II rowsort label-400-2
SELECT pk, col0 FROM tab4 WHERE NOT (col0 < 230)
----
156 values hashing to 4b86726b69b7580c32881f7b82916e43

query II rowsort label-400-1
SELECT pk, col0 FROM view_1_tab4_81
----
44 values hashing to ee0c58a05a6b0f8a7b67e8df5963c4f9

query II rowsort label-400-2
SELECT pk, col0 FROM view_2_tab4_81
----
156 values hashing to 4b86726b69b7580c32881f7b82916e43

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col0 < 230 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col0 < 230)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_81 UNION ALL SELECT pk, col0 FROM view_2_tab4_81
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col0 < 230 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col0 < 230)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_81 UNION SELECT pk, col0 FROM view_2_tab4_81
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col0 < 230 ) AS tab4_81
----
22 values hashing to 897b23cba09a5eae07c56aef834a68e0

query I rowsort label-400-3
SELECT * FROM view_3_tab4_81
----
22 values hashing to 897b23cba09a5eae07c56aef834a68e0

query I rowsort label-400-3
SELECT pk FROM tab4 WHERE col0 < 230
----
22 values hashing to 897b23cba09a5eae07c56aef834a68e0

statement ok
DROP VIEW view_1_tab4_81

statement ok
DROP VIEW view_2_tab4_81

statement ok
DROP VIEW view_3_tab4_81

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab0_82 AS SELECT pk, col0 FROM tab0 WHERE (col1 < 654.68 OR col1 > 91.43 AND (col3 > 136 AND col3 < 286))

statement ok
CREATE VIEW view_2_tab0_82 AS SELECT pk, col0 FROM tab0 WHERE NOT ((col1 < 654.68 OR col1 > 91.43 AND (col3 > 136 AND col3 < 286)))

statement ok
CREATE VIEW view_3_tab0_82 AS SELECT pk FROM view_1_tab0_82

query II rowsort label-500-1
SELECT pk, col0 FROM tab0 WHERE (col1 < 654.68 OR col1 > 91.43 AND (col3 > 136 AND col3 < 286))
----
138 values hashing to 4cec2fc334d98b6f9c08aeaba450e97f

query II rowsort label-500-2
SELECT pk, col0 FROM tab0 WHERE NOT ((col1 < 654.68 OR col1 > 91.43 AND (col3 > 136 AND col3 < 286)))
----
62 values hashing to f2330d82228a08cb67d160dde8b4a1a9

query II rowsort label-500-1
SELECT pk, col0 FROM view_1_tab0_82
----
138 values hashing to 4cec2fc334d98b6f9c08aeaba450e97f

query II rowsort label-500-2
SELECT pk, col0 FROM view_2_tab0_82
----
62 values hashing to f2330d82228a08cb67d160dde8b4a1a9

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col1 < 654.68 OR col1 > 91.43 AND (col3 > 136 AND col3 < 286)) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT ((col1 < 654.68 OR col1 > 91.43 AND (col3 > 136 AND col3 < 286)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_82 UNION ALL SELECT pk, col0 FROM view_2_tab0_82
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col1 < 654.68 OR col1 > 91.43 AND (col3 > 136 AND col3 < 286)) UNION SELECT pk, col0 FROM tab0 WHERE NOT ((col1 < 654.68 OR col1 > 91.43 AND (col3 > 136 AND col3 < 286)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_82 UNION SELECT pk, col0 FROM view_2_tab0_82
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE (col1 < 654.68 OR col1 > 91.43 AND (col3 > 136 AND col3 < 286)) ) AS tab0_82
----
69 values hashing to 1fd5d8e361875938646773aa12b7f2ea

query I rowsort label-500-3
SELECT * FROM view_3_tab0_82
----
69 values hashing to 1fd5d8e361875938646773aa12b7f2ea

query I rowsort label-500-3
SELECT pk FROM tab0 WHERE (col1 < 654.68 OR col1 > 91.43 AND (col3 > 136 AND col3 < 286))
----
69 values hashing to 1fd5d8e361875938646773aa12b7f2ea

statement ok
DROP VIEW view_1_tab0_82

statement ok
DROP VIEW view_2_tab0_82

statement ok
DROP VIEW view_3_tab0_82

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab1_82 AS SELECT pk, col0 FROM tab1 WHERE (col1 < 654.68 OR col1 > 91.43 AND (col3 > 136 AND col3 < 286))

statement ok
CREATE VIEW view_2_tab1_82 AS SELECT pk, col0 FROM tab1 WHERE NOT ((col1 < 654.68 OR col1 > 91.43 AND (col3 > 136 AND col3 < 286)))

statement ok
CREATE VIEW view_3_tab1_82 AS SELECT pk FROM view_1_tab1_82

query II rowsort label-500-1
SELECT pk, col0 FROM tab1 WHERE (col1 < 654.68 OR col1 > 91.43 AND (col3 > 136 AND col3 < 286))
----
138 values hashing to 4cec2fc334d98b6f9c08aeaba450e97f

query II rowsort label-500-2
SELECT pk, col0 FROM tab1 WHERE NOT ((col1 < 654.68 OR col1 > 91.43 AND (col3 > 136 AND col3 < 286)))
----
62 values hashing to f2330d82228a08cb67d160dde8b4a1a9

query II rowsort label-500-1
SELECT pk, col0 FROM view_1_tab1_82
----
138 values hashing to 4cec2fc334d98b6f9c08aeaba450e97f

query II rowsort label-500-2
SELECT pk, col0 FROM view_2_tab1_82
----
62 values hashing to f2330d82228a08cb67d160dde8b4a1a9

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col1 < 654.68 OR col1 > 91.43 AND (col3 > 136 AND col3 < 286)) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT ((col1 < 654.68 OR col1 > 91.43 AND (col3 > 136 AND col3 < 286)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_82 UNION ALL SELECT pk, col0 FROM view_2_tab1_82
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col1 < 654.68 OR col1 > 91.43 AND (col3 > 136 AND col3 < 286)) UNION SELECT pk, col0 FROM tab1 WHERE NOT ((col1 < 654.68 OR col1 > 91.43 AND (col3 > 136 AND col3 < 286)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_82 UNION SELECT pk, col0 FROM view_2_tab1_82
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE (col1 < 654.68 OR col1 > 91.43 AND (col3 > 136 AND col3 < 286)) ) AS tab1_82
----
69 values hashing to 1fd5d8e361875938646773aa12b7f2ea

query I rowsort label-500-3
SELECT * FROM view_3_tab1_82
----
69 values hashing to 1fd5d8e361875938646773aa12b7f2ea

query I rowsort label-500-3
SELECT pk FROM tab1 WHERE (col1 < 654.68 OR col1 > 91.43 AND (col3 > 136 AND col3 < 286))
----
69 values hashing to 1fd5d8e361875938646773aa12b7f2ea

statement ok
DROP VIEW view_1_tab1_82

statement ok
DROP VIEW view_2_tab1_82

statement ok
DROP VIEW view_3_tab1_82

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab2_82 AS SELECT pk, col0 FROM tab2 WHERE (col1 < 654.68 OR col1 > 91.43 AND (col3 > 136 AND col3 < 286))

statement ok
CREATE VIEW view_2_tab2_82 AS SELECT pk, col0 FROM tab2 WHERE NOT ((col1 < 654.68 OR col1 > 91.43 AND (col3 > 136 AND col3 < 286)))

statement ok
CREATE VIEW view_3_tab2_82 AS SELECT pk FROM view_1_tab2_82

query II rowsort label-500-1
SELECT pk, col0 FROM tab2 WHERE (col1 < 654.68 OR col1 > 91.43 AND (col3 > 136 AND col3 < 286))
----
138 values hashing to 4cec2fc334d98b6f9c08aeaba450e97f

query II rowsort label-500-2
SELECT pk, col0 FROM tab2 WHERE NOT ((col1 < 654.68 OR col1 > 91.43 AND (col3 > 136 AND col3 < 286)))
----
62 values hashing to f2330d82228a08cb67d160dde8b4a1a9

query II rowsort label-500-1
SELECT pk, col0 FROM view_1_tab2_82
----
138 values hashing to 4cec2fc334d98b6f9c08aeaba450e97f

query II rowsort label-500-2
SELECT pk, col0 FROM view_2_tab2_82
----
62 values hashing to f2330d82228a08cb67d160dde8b4a1a9

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col1 < 654.68 OR col1 > 91.43 AND (col3 > 136 AND col3 < 286)) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT ((col1 < 654.68 OR col1 > 91.43 AND (col3 > 136 AND col3 < 286)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_82 UNION ALL SELECT pk, col0 FROM view_2_tab2_82
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col1 < 654.68 OR col1 > 91.43 AND (col3 > 136 AND col3 < 286)) UNION SELECT pk, col0 FROM tab2 WHERE NOT ((col1 < 654.68 OR col1 > 91.43 AND (col3 > 136 AND col3 < 286)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_82 UNION SELECT pk, col0 FROM view_2_tab2_82
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE (col1 < 654.68 OR col1 > 91.43 AND (col3 > 136 AND col3 < 286)) ) AS tab2_82
----
69 values hashing to 1fd5d8e361875938646773aa12b7f2ea

query I rowsort label-500-3
SELECT * FROM view_3_tab2_82
----
69 values hashing to 1fd5d8e361875938646773aa12b7f2ea

query I rowsort label-500-3
SELECT pk FROM tab2 WHERE (col1 < 654.68 OR col1 > 91.43 AND (col3 > 136 AND col3 < 286))
----
69 values hashing to 1fd5d8e361875938646773aa12b7f2ea

statement ok
DROP VIEW view_1_tab2_82

statement ok
DROP VIEW view_2_tab2_82

statement ok
DROP VIEW view_3_tab2_82

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab3_82 AS SELECT pk, col0 FROM tab3 WHERE (col1 < 654.68 OR col1 > 91.43 AND (col3 > 136 AND col3 < 286))

statement ok
CREATE VIEW view_2_tab3_82 AS SELECT pk, col0 FROM tab3 WHERE NOT ((col1 < 654.68 OR col1 > 91.43 AND (col3 > 136 AND col3 < 286)))

statement ok
CREATE VIEW view_3_tab3_82 AS SELECT pk FROM view_1_tab3_82

query II rowsort label-500-1
SELECT pk, col0 FROM tab3 WHERE (col1 < 654.68 OR col1 > 91.43 AND (col3 > 136 AND col3 < 286))
----
138 values hashing to 4cec2fc334d98b6f9c08aeaba450e97f

query II rowsort label-500-2
SELECT pk, col0 FROM tab3 WHERE NOT ((col1 < 654.68 OR col1 > 91.43 AND (col3 > 136 AND col3 < 286)))
----
62 values hashing to f2330d82228a08cb67d160dde8b4a1a9

query II rowsort label-500-1
SELECT pk, col0 FROM view_1_tab3_82
----
138 values hashing to 4cec2fc334d98b6f9c08aeaba450e97f

query II rowsort label-500-2
SELECT pk, col0 FROM view_2_tab3_82
----
62 values hashing to f2330d82228a08cb67d160dde8b4a1a9

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col1 < 654.68 OR col1 > 91.43 AND (col3 > 136 AND col3 < 286)) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT ((col1 < 654.68 OR col1 > 91.43 AND (col3 > 136 AND col3 < 286)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_82 UNION ALL SELECT pk, col0 FROM view_2_tab3_82
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col1 < 654.68 OR col1 > 91.43 AND (col3 > 136 AND col3 < 286)) UNION SELECT pk, col0 FROM tab3 WHERE NOT ((col1 < 654.68 OR col1 > 91.43 AND (col3 > 136 AND col3 < 286)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_82 UNION SELECT pk, col0 FROM view_2_tab3_82
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE (col1 < 654.68 OR col1 > 91.43 AND (col3 > 136 AND col3 < 286)) ) AS tab3_82
----
69 values hashing to 1fd5d8e361875938646773aa12b7f2ea

query I rowsort label-500-3
SELECT * FROM view_3_tab3_82
----
69 values hashing to 1fd5d8e361875938646773aa12b7f2ea

query I rowsort label-500-3
SELECT pk FROM tab3 WHERE (col1 < 654.68 OR col1 > 91.43 AND (col3 > 136 AND col3 < 286))
----
69 values hashing to 1fd5d8e361875938646773aa12b7f2ea

statement ok
DROP VIEW view_1_tab3_82

statement ok
DROP VIEW view_2_tab3_82

statement ok
DROP VIEW view_3_tab3_82

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab4_82 AS SELECT pk, col0 FROM tab4 WHERE (col1 < 654.68 OR col1 > 91.43 AND (col3 > 136 AND col3 < 286))

statement ok
CREATE VIEW view_2_tab4_82 AS SELECT pk, col0 FROM tab4 WHERE NOT ((col1 < 654.68 OR col1 > 91.43 AND (col3 > 136 AND col3 < 286)))

statement ok
CREATE VIEW view_3_tab4_82 AS SELECT pk FROM view_1_tab4_82

query II rowsort label-500-1
SELECT pk, col0 FROM tab4 WHERE (col1 < 654.68 OR col1 > 91.43 AND (col3 > 136 AND col3 < 286))
----
138 values hashing to 4cec2fc334d98b6f9c08aeaba450e97f

query II rowsort label-500-2
SELECT pk, col0 FROM tab4 WHERE NOT ((col1 < 654.68 OR col1 > 91.43 AND (col3 > 136 AND col3 < 286)))
----
62 values hashing to f2330d82228a08cb67d160dde8b4a1a9

query II rowsort label-500-1
SELECT pk, col0 FROM view_1_tab4_82
----
138 values hashing to 4cec2fc334d98b6f9c08aeaba450e97f

query II rowsort label-500-2
SELECT pk, col0 FROM view_2_tab4_82
----
62 values hashing to f2330d82228a08cb67d160dde8b4a1a9

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col1 < 654.68 OR col1 > 91.43 AND (col3 > 136 AND col3 < 286)) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT ((col1 < 654.68 OR col1 > 91.43 AND (col3 > 136 AND col3 < 286)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_82 UNION ALL SELECT pk, col0 FROM view_2_tab4_82
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col1 < 654.68 OR col1 > 91.43 AND (col3 > 136 AND col3 < 286)) UNION SELECT pk, col0 FROM tab4 WHERE NOT ((col1 < 654.68 OR col1 > 91.43 AND (col3 > 136 AND col3 < 286)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_82 UNION SELECT pk, col0 FROM view_2_tab4_82
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE (col1 < 654.68 OR col1 > 91.43 AND (col3 > 136 AND col3 < 286)) ) AS tab4_82
----
69 values hashing to 1fd5d8e361875938646773aa12b7f2ea

query I rowsort label-500-3
SELECT * FROM view_3_tab4_82
----
69 values hashing to 1fd5d8e361875938646773aa12b7f2ea

query I rowsort label-500-3
SELECT pk FROM tab4 WHERE (col1 < 654.68 OR col1 > 91.43 AND (col3 > 136 AND col3 < 286))
----
69 values hashing to 1fd5d8e361875938646773aa12b7f2ea

statement ok
DROP VIEW view_1_tab4_82

statement ok
DROP VIEW view_2_tab4_82

statement ok
DROP VIEW view_3_tab4_82

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab0_83 AS SELECT pk, col0 FROM tab0 WHERE ((col1 = 459.6) OR col4 IS NULL) OR (col0 = 426)

statement ok
CREATE VIEW view_2_tab0_83 AS SELECT pk, col0 FROM tab0 WHERE NOT (((col1 = 459.6) OR col4 IS NULL) OR (col0 = 426))

statement ok
CREATE VIEW view_3_tab0_83 AS SELECT pk FROM view_1_tab0_83

query II rowsort label-600-1
SELECT pk, col0 FROM tab0 WHERE ((col1 = 459.6) OR col4 IS NULL) OR (col0 = 426)
----

query II rowsort label-600-2
SELECT pk, col0 FROM tab0 WHERE NOT (((col1 = 459.6) OR col4 IS NULL) OR (col0 = 426))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-600-1
SELECT pk, col0 FROM view_1_tab0_83
----

query II rowsort label-600-2
SELECT pk, col0 FROM view_2_tab0_83
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE ((col1 = 459.6) OR col4 IS NULL) OR (col0 = 426) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (((col1 = 459.6) OR col4 IS NULL) OR (col0 = 426))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_83 UNION ALL SELECT pk, col0 FROM view_2_tab0_83
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE ((col1 = 459.6) OR col4 IS NULL) OR (col0 = 426) UNION SELECT pk, col0 FROM tab0 WHERE NOT (((col1 = 459.6) OR col4 IS NULL) OR (col0 = 426))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_83 UNION SELECT pk, col0 FROM view_2_tab0_83
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE ((col1 = 459.6) OR col4 IS NULL) OR (col0 = 426) ) AS tab0_83
----

query I rowsort label-600-3
SELECT * FROM view_3_tab0_83
----

query I rowsort label-600-3
SELECT pk FROM tab0 WHERE ((col1 = 459.6) OR col4 IS NULL) OR (col0 = 426)
----

statement ok
DROP VIEW view_1_tab0_83

statement ok
DROP VIEW view_2_tab0_83

statement ok
DROP VIEW view_3_tab0_83

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab1_83 AS SELECT pk, col0 FROM tab1 WHERE ((col1 = 459.6) OR col4 IS NULL) OR (col0 = 426)

statement ok
CREATE VIEW view_2_tab1_83 AS SELECT pk, col0 FROM tab1 WHERE NOT (((col1 = 459.6) OR col4 IS NULL) OR (col0 = 426))

statement ok
CREATE VIEW view_3_tab1_83 AS SELECT pk FROM view_1_tab1_83

query II rowsort label-600-1
SELECT pk, col0 FROM tab1 WHERE ((col1 = 459.6) OR col4 IS NULL) OR (col0 = 426)
----

query II rowsort label-600-2
SELECT pk, col0 FROM tab1 WHERE NOT (((col1 = 459.6) OR col4 IS NULL) OR (col0 = 426))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-600-1
SELECT pk, col0 FROM view_1_tab1_83
----

query II rowsort label-600-2
SELECT pk, col0 FROM view_2_tab1_83
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE ((col1 = 459.6) OR col4 IS NULL) OR (col0 = 426) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (((col1 = 459.6) OR col4 IS NULL) OR (col0 = 426))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_83 UNION ALL SELECT pk, col0 FROM view_2_tab1_83
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE ((col1 = 459.6) OR col4 IS NULL) OR (col0 = 426) UNION SELECT pk, col0 FROM tab1 WHERE NOT (((col1 = 459.6) OR col4 IS NULL) OR (col0 = 426))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_83 UNION SELECT pk, col0 FROM view_2_tab1_83
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE ((col1 = 459.6) OR col4 IS NULL) OR (col0 = 426) ) AS tab1_83
----

query I rowsort label-600-3
SELECT * FROM view_3_tab1_83
----

query I rowsort label-600-3
SELECT pk FROM tab1 WHERE ((col1 = 459.6) OR col4 IS NULL) OR (col0 = 426)
----

statement ok
DROP VIEW view_1_tab1_83

statement ok
DROP VIEW view_2_tab1_83

statement ok
DROP VIEW view_3_tab1_83

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab2_83 AS SELECT pk, col0 FROM tab2 WHERE ((col1 = 459.6) OR col4 IS NULL) OR (col0 = 426)

statement ok
CREATE VIEW view_2_tab2_83 AS SELECT pk, col0 FROM tab2 WHERE NOT (((col1 = 459.6) OR col4 IS NULL) OR (col0 = 426))

statement ok
CREATE VIEW view_3_tab2_83 AS SELECT pk FROM view_1_tab2_83

query II rowsort label-600-1
SELECT pk, col0 FROM tab2 WHERE ((col1 = 459.6) OR col4 IS NULL) OR (col0 = 426)
----

query II rowsort label-600-2
SELECT pk, col0 FROM tab2 WHERE NOT (((col1 = 459.6) OR col4 IS NULL) OR (col0 = 426))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-600-1
SELECT pk, col0 FROM view_1_tab2_83
----

query II rowsort label-600-2
SELECT pk, col0 FROM view_2_tab2_83
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE ((col1 = 459.6) OR col4 IS NULL) OR (col0 = 426) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (((col1 = 459.6) OR col4 IS NULL) OR (col0 = 426))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_83 UNION ALL SELECT pk, col0 FROM view_2_tab2_83
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE ((col1 = 459.6) OR col4 IS NULL) OR (col0 = 426) UNION SELECT pk, col0 FROM tab2 WHERE NOT (((col1 = 459.6) OR col4 IS NULL) OR (col0 = 426))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_83 UNION SELECT pk, col0 FROM view_2_tab2_83
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE ((col1 = 459.6) OR col4 IS NULL) OR (col0 = 426) ) AS tab2_83
----

query I rowsort label-600-3
SELECT * FROM view_3_tab2_83
----

query I rowsort label-600-3
SELECT pk FROM tab2 WHERE ((col1 = 459.6) OR col4 IS NULL) OR (col0 = 426)
----

statement ok
DROP VIEW view_1_tab2_83

statement ok
DROP VIEW view_2_tab2_83

statement ok
DROP VIEW view_3_tab2_83

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab3_83 AS SELECT pk, col0 FROM tab3 WHERE ((col1 = 459.6) OR col4 IS NULL) OR (col0 = 426)

statement ok
CREATE VIEW view_2_tab3_83 AS SELECT pk, col0 FROM tab3 WHERE NOT (((col1 = 459.6) OR col4 IS NULL) OR (col0 = 426))

statement ok
CREATE VIEW view_3_tab3_83 AS SELECT pk FROM view_1_tab3_83

query II rowsort label-600-1
SELECT pk, col0 FROM tab3 WHERE ((col1 = 459.6) OR col4 IS NULL) OR (col0 = 426)
----

query II rowsort label-600-2
SELECT pk, col0 FROM tab3 WHERE NOT (((col1 = 459.6) OR col4 IS NULL) OR (col0 = 426))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-600-1
SELECT pk, col0 FROM view_1_tab3_83
----

query II rowsort label-600-2
SELECT pk, col0 FROM view_2_tab3_83
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE ((col1 = 459.6) OR col4 IS NULL) OR (col0 = 426) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (((col1 = 459.6) OR col4 IS NULL) OR (col0 = 426))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_83 UNION ALL SELECT pk, col0 FROM view_2_tab3_83
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE ((col1 = 459.6) OR col4 IS NULL) OR (col0 = 426) UNION SELECT pk, col0 FROM tab3 WHERE NOT (((col1 = 459.6) OR col4 IS NULL) OR (col0 = 426))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_83 UNION SELECT pk, col0 FROM view_2_tab3_83
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE ((col1 = 459.6) OR col4 IS NULL) OR (col0 = 426) ) AS tab3_83
----

query I rowsort label-600-3
SELECT * FROM view_3_tab3_83
----

query I rowsort label-600-3
SELECT pk FROM tab3 WHERE ((col1 = 459.6) OR col4 IS NULL) OR (col0 = 426)
----

statement ok
DROP VIEW view_1_tab3_83

statement ok
DROP VIEW view_2_tab3_83

statement ok
DROP VIEW view_3_tab3_83

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab4_83 AS SELECT pk, col0 FROM tab4 WHERE ((col1 = 459.6) OR col4 IS NULL) OR (col0 = 426)

statement ok
CREATE VIEW view_2_tab4_83 AS SELECT pk, col0 FROM tab4 WHERE NOT (((col1 = 459.6) OR col4 IS NULL) OR (col0 = 426))

statement ok
CREATE VIEW view_3_tab4_83 AS SELECT pk FROM view_1_tab4_83

query II rowsort label-600-1
SELECT pk, col0 FROM tab4 WHERE ((col1 = 459.6) OR col4 IS NULL) OR (col0 = 426)
----

query II rowsort label-600-2
SELECT pk, col0 FROM tab4 WHERE NOT (((col1 = 459.6) OR col4 IS NULL) OR (col0 = 426))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-600-1
SELECT pk, col0 FROM view_1_tab4_83
----

query II rowsort label-600-2
SELECT pk, col0 FROM view_2_tab4_83
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE ((col1 = 459.6) OR col4 IS NULL) OR (col0 = 426) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (((col1 = 459.6) OR col4 IS NULL) OR (col0 = 426))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_83 UNION ALL SELECT pk, col0 FROM view_2_tab4_83
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE ((col1 = 459.6) OR col4 IS NULL) OR (col0 = 426) UNION SELECT pk, col0 FROM tab4 WHERE NOT (((col1 = 459.6) OR col4 IS NULL) OR (col0 = 426))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_83 UNION SELECT pk, col0 FROM view_2_tab4_83
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE ((col1 = 459.6) OR col4 IS NULL) OR (col0 = 426) ) AS tab4_83
----

query I rowsort label-600-3
SELECT * FROM view_3_tab4_83
----

query I rowsort label-600-3
SELECT pk FROM tab4 WHERE ((col1 = 459.6) OR col4 IS NULL) OR (col0 = 426)
----

statement ok
DROP VIEW view_1_tab4_83

statement ok
DROP VIEW view_2_tab4_83

statement ok
DROP VIEW view_3_tab4_83

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab0_84 AS SELECT pk, col0 FROM tab0 WHERE col0 > 979

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

statement ok
CREATE VIEW view_3_tab0_84 AS SELECT pk FROM view_1_tab0_84

query II rowsort label-700-1
SELECT pk, col0 FROM tab0 WHERE col0 > 979
----
12 values hashing to c9e03d8ed6fae691ff32e62aa89e4539

query II rowsort label-700-2
SELECT pk, col0 FROM tab0 WHERE NOT (col0 > 979)
----
188 values hashing to 6ca01f7694d8b042e9b7c6bbeba7f311

query II rowsort label-700-1
SELECT pk, col0 FROM view_1_tab0_84
----
12 values hashing to c9e03d8ed6fae691ff32e62aa89e4539

query II rowsort label-700-2
SELECT pk, col0 FROM view_2_tab0_84
----
188 values hashing to 6ca01f7694d8b042e9b7c6bbeba7f311

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col0 > 979 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col0 > 979)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_84 UNION ALL SELECT pk, col0 FROM view_2_tab0_84
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col0 > 979 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col0 > 979)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_84 UNION SELECT pk, col0 FROM view_2_tab0_84
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col0 > 979 ) AS tab0_84
----
1
26
29
4
81
94

query I rowsort label-700-3
SELECT * FROM view_3_tab0_84
----
1
26
29
4
81
94

query I rowsort label-700-3
SELECT pk FROM tab0 WHERE col0 > 979
----
1
26
29
4
81
94

statement ok
DROP VIEW view_1_tab0_84

statement ok
DROP VIEW view_2_tab0_84

statement ok
DROP VIEW view_3_tab0_84

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab1_84 AS SELECT pk, col0 FROM tab1 WHERE col0 > 979

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

statement ok
CREATE VIEW view_3_tab1_84 AS SELECT pk FROM view_1_tab1_84

query II rowsort label-700-1
SELECT pk, col0 FROM tab1 WHERE col0 > 979
----
12 values hashing to c9e03d8ed6fae691ff32e62aa89e4539

query II rowsort label-700-2
SELECT pk, col0 FROM tab1 WHERE NOT (col0 > 979)
----
188 values hashing to 6ca01f7694d8b042e9b7c6bbeba7f311

query II rowsort label-700-1
SELECT pk, col0 FROM view_1_tab1_84
----
12 values hashing to c9e03d8ed6fae691ff32e62aa89e4539

query II rowsort label-700-2
SELECT pk, col0 FROM view_2_tab1_84
----
188 values hashing to 6ca01f7694d8b042e9b7c6bbeba7f311

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col0 > 979 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col0 > 979)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_84 UNION ALL SELECT pk, col0 FROM view_2_tab1_84
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col0 > 979 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col0 > 979)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_84 UNION SELECT pk, col0 FROM view_2_tab1_84
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col0 > 979 ) AS tab1_84
----
1
26
29
4
81
94

query I rowsort label-700-3
SELECT * FROM view_3_tab1_84
----
1
26
29
4
81
94

query I rowsort label-700-3
SELECT pk FROM tab1 WHERE col0 > 979
----
1
26
29
4
81
94

statement ok
DROP VIEW view_1_tab1_84

statement ok
DROP VIEW view_2_tab1_84

statement ok
DROP VIEW view_3_tab1_84

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab2_84 AS SELECT pk, col0 FROM tab2 WHERE col0 > 979

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

statement ok
CREATE VIEW view_3_tab2_84 AS SELECT pk FROM view_1_tab2_84

query II rowsort label-700-1
SELECT pk, col0 FROM tab2 WHERE col0 > 979
----
12 values hashing to c9e03d8ed6fae691ff32e62aa89e4539

query II rowsort label-700-2
SELECT pk, col0 FROM tab2 WHERE NOT (col0 > 979)
----
188 values hashing to 6ca01f7694d8b042e9b7c6bbeba7f311

query II rowsort label-700-1
SELECT pk, col0 FROM view_1_tab2_84
----
12 values hashing to c9e03d8ed6fae691ff32e62aa89e4539

query II rowsort label-700-2
SELECT pk, col0 FROM view_2_tab2_84
----
188 values hashing to 6ca01f7694d8b042e9b7c6bbeba7f311

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col0 > 979 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col0 > 979)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_84 UNION ALL SELECT pk, col0 FROM view_2_tab2_84
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col0 > 979 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col0 > 979)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_84 UNION SELECT pk, col0 FROM view_2_tab2_84
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col0 > 979 ) AS tab2_84
----
1
26
29
4
81
94

query I rowsort label-700-3
SELECT * FROM view_3_tab2_84
----
1
26
29
4
81
94

query I rowsort label-700-3
SELECT pk FROM tab2 WHERE col0 > 979
----
1
26
29
4
81
94

statement ok
DROP VIEW view_1_tab2_84

statement ok
DROP VIEW view_2_tab2_84

statement ok
DROP VIEW view_3_tab2_84

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab3_84 AS SELECT pk, col0 FROM tab3 WHERE col0 > 979

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

statement ok
CREATE VIEW view_3_tab3_84 AS SELECT pk FROM view_1_tab3_84

query II rowsort label-700-1
SELECT pk, col0 FROM tab3 WHERE col0 > 979
----
12 values hashing to c9e03d8ed6fae691ff32e62aa89e4539

query II rowsort label-700-2
SELECT pk, col0 FROM tab3 WHERE NOT (col0 > 979)
----
188 values hashing to 6ca01f7694d8b042e9b7c6bbeba7f311

query II rowsort label-700-1
SELECT pk, col0 FROM view_1_tab3_84
----
12 values hashing to c9e03d8ed6fae691ff32e62aa89e4539

query II rowsort label-700-2
SELECT pk, col0 FROM view_2_tab3_84
----
188 values hashing to 6ca01f7694d8b042e9b7c6bbeba7f311

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col0 > 979 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col0 > 979)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_84 UNION ALL SELECT pk, col0 FROM view_2_tab3_84
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col0 > 979 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col0 > 979)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_84 UNION SELECT pk, col0 FROM view_2_tab3_84
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col0 > 979 ) AS tab3_84
----
1
26
29
4
81
94

query I rowsort label-700-3
SELECT * FROM view_3_tab3_84
----
1
26
29
4
81
94

query I rowsort label-700-3
SELECT pk FROM tab3 WHERE col0 > 979
----
1
26
29
4
81
94

statement ok
DROP VIEW view_1_tab3_84

statement ok
DROP VIEW view_2_tab3_84

statement ok
DROP VIEW view_3_tab3_84

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab4_84 AS SELECT pk, col0 FROM tab4 WHERE col0 > 979

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

statement ok
CREATE VIEW view_3_tab4_84 AS SELECT pk FROM view_1_tab4_84

query II rowsort label-700-1
SELECT pk, col0 FROM tab4 WHERE col0 > 979
----
12 values hashing to c9e03d8ed6fae691ff32e62aa89e4539

query II rowsort label-700-2
SELECT pk, col0 FROM tab4 WHERE NOT (col0 > 979)
----
188 values hashing to 6ca01f7694d8b042e9b7c6bbeba7f311

query II rowsort label-700-1
SELECT pk, col0 FROM view_1_tab4_84
----
12 values hashing to c9e03d8ed6fae691ff32e62aa89e4539

query II rowsort label-700-2
SELECT pk, col0 FROM view_2_tab4_84
----
188 values hashing to 6ca01f7694d8b042e9b7c6bbeba7f311

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col0 > 979 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col0 > 979)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_84 UNION ALL SELECT pk, col0 FROM view_2_tab4_84
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col0 > 979 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col0 > 979)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_84 UNION SELECT pk, col0 FROM view_2_tab4_84
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col0 > 979 ) AS tab4_84
----
1
26
29
4
81
94

query I rowsort label-700-3
SELECT * FROM view_3_tab4_84
----
1
26
29
4
81
94

query I rowsort label-700-3
SELECT pk FROM tab4 WHERE col0 > 979
----
1
26
29
4
81
94

statement ok
DROP VIEW view_1_tab4_84

statement ok
DROP VIEW view_2_tab4_84

statement ok
DROP VIEW view_3_tab4_84

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab0_85 AS SELECT pk, col0 FROM tab0 WHERE col4 < 377.40

statement ok
CREATE VIEW view_2_tab0_85 AS SELECT pk, col0 FROM tab0 WHERE NOT (col4 < 377.40)

statement ok
CREATE VIEW view_3_tab0_85 AS SELECT pk FROM view_1_tab0_85

query II rowsort label-800-1
SELECT pk, col0 FROM tab0 WHERE col4 < 377.40
----
74 values hashing to bd65cc811e8c3786dbe83b52947c5c07

query II rowsort label-800-2
SELECT pk, col0 FROM tab0 WHERE NOT (col4 < 377.40)
----
126 values hashing to 134f54cdb33b2ff59cc9a6ee9450bf77

query II rowsort label-800-1
SELECT pk, col0 FROM view_1_tab0_85
----
74 values hashing to bd65cc811e8c3786dbe83b52947c5c07

query II rowsort label-800-2
SELECT pk, col0 FROM view_2_tab0_85
----
126 values hashing to 134f54cdb33b2ff59cc9a6ee9450bf77

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col4 < 377.40 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col4 < 377.40)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_85 UNION ALL SELECT pk, col0 FROM view_2_tab0_85
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col4 < 377.40 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col4 < 377.40)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_85 UNION SELECT pk, col0 FROM view_2_tab0_85
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col4 < 377.40 ) AS tab0_85
----
37 values hashing to 0e1fc7c2beb54031c52913072fedc723

query I rowsort label-800-3
SELECT * FROM view_3_tab0_85
----
37 values hashing to 0e1fc7c2beb54031c52913072fedc723

query I rowsort label-800-3
SELECT pk FROM tab0 WHERE col4 < 377.40
----
37 values hashing to 0e1fc7c2beb54031c52913072fedc723

statement ok
DROP VIEW view_1_tab0_85

statement ok
DROP VIEW view_2_tab0_85

statement ok
DROP VIEW view_3_tab0_85

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab1_85 AS SELECT pk, col0 FROM tab1 WHERE col4 < 377.40

statement ok
CREATE VIEW view_2_tab1_85 AS SELECT pk, col0 FROM tab1 WHERE NOT (col4 < 377.40)

statement ok
CREATE VIEW view_3_tab1_85 AS SELECT pk FROM view_1_tab1_85

query II rowsort label-800-1
SELECT pk, col0 FROM tab1 WHERE col4 < 377.40
----
74 values hashing to bd65cc811e8c3786dbe83b52947c5c07

query II rowsort label-800-2
SELECT pk, col0 FROM tab1 WHERE NOT (col4 < 377.40)
----
126 values hashing to 134f54cdb33b2ff59cc9a6ee9450bf77

query II rowsort label-800-1
SELECT pk, col0 FROM view_1_tab1_85
----
74 values hashing to bd65cc811e8c3786dbe83b52947c5c07

query II rowsort label-800-2
SELECT pk, col0 FROM view_2_tab1_85
----
126 values hashing to 134f54cdb33b2ff59cc9a6ee9450bf77

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col4 < 377.40 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col4 < 377.40)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_85 UNION ALL SELECT pk, col0 FROM view_2_tab1_85
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col4 < 377.40 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col4 < 377.40)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_85 UNION SELECT pk, col0 FROM view_2_tab1_85
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col4 < 377.40 ) AS tab1_85
----
37 values hashing to 0e1fc7c2beb54031c52913072fedc723

query I rowsort label-800-3
SELECT * FROM view_3_tab1_85
----
37 values hashing to 0e1fc7c2beb54031c52913072fedc723

query I rowsort label-800-3
SELECT pk FROM tab1 WHERE col4 < 377.40
----
37 values hashing to 0e1fc7c2beb54031c52913072fedc723

statement ok
DROP VIEW view_1_tab1_85

statement ok
DROP VIEW view_2_tab1_85

statement ok
DROP VIEW view_3_tab1_85

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab2_85 AS SELECT pk, col0 FROM tab2 WHERE col4 < 377.40

statement ok
CREATE VIEW view_2_tab2_85 AS SELECT pk, col0 FROM tab2 WHERE NOT (col4 < 377.40)

statement ok
CREATE VIEW view_3_tab2_85 AS SELECT pk FROM view_1_tab2_85

query II rowsort label-800-1
SELECT pk, col0 FROM tab2 WHERE col4 < 377.40
----
74 values hashing to bd65cc811e8c3786dbe83b52947c5c07

query II rowsort label-800-2
SELECT pk, col0 FROM tab2 WHERE NOT (col4 < 377.40)
----
126 values hashing to 134f54cdb33b2ff59cc9a6ee9450bf77

query II rowsort label-800-1
SELECT pk, col0 FROM view_1_tab2_85
----
74 values hashing to bd65cc811e8c3786dbe83b52947c5c07

query II rowsort label-800-2
SELECT pk, col0 FROM view_2_tab2_85
----
126 values hashing to 134f54cdb33b2ff59cc9a6ee9450bf77

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col4 < 377.40 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col4 < 377.40)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_85 UNION ALL SELECT pk, col0 FROM view_2_tab2_85
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col4 < 377.40 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col4 < 377.40)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_85 UNION SELECT pk, col0 FROM view_2_tab2_85
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col4 < 377.40 ) AS tab2_85
----
37 values hashing to 0e1fc7c2beb54031c52913072fedc723

query I rowsort label-800-3
SELECT * FROM view_3_tab2_85
----
37 values hashing to 0e1fc7c2beb54031c52913072fedc723

query I rowsort label-800-3
SELECT pk FROM tab2 WHERE col4 < 377.40
----
37 values hashing to 0e1fc7c2beb54031c52913072fedc723

statement ok
DROP VIEW view_1_tab2_85

statement ok
DROP VIEW view_2_tab2_85

statement ok
DROP VIEW view_3_tab2_85

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab3_85 AS SELECT pk, col0 FROM tab3 WHERE col4 < 377.40

statement ok
CREATE VIEW view_2_tab3_85 AS SELECT pk, col0 FROM tab3 WHERE NOT (col4 < 377.40)

statement ok
CREATE VIEW view_3_tab3_85 AS SELECT pk FROM view_1_tab3_85

query II rowsort label-800-1
SELECT pk, col0 FROM tab3 WHERE col4 < 377.40
----
74 values hashing to bd65cc811e8c3786dbe83b52947c5c07

query II rowsort label-800-2
SELECT pk, col0 FROM tab3 WHERE NOT (col4 < 377.40)
----
126 values hashing to 134f54cdb33b2ff59cc9a6ee9450bf77

query II rowsort label-800-1
SELECT pk, col0 FROM view_1_tab3_85
----
74 values hashing to bd65cc811e8c3786dbe83b52947c5c07

query II rowsort label-800-2
SELECT pk, col0 FROM view_2_tab3_85
----
126 values hashing to 134f54cdb33b2ff59cc9a6ee9450bf77

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col4 < 377.40 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col4 < 377.40)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_85 UNION ALL SELECT pk, col0 FROM view_2_tab3_85
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col4 < 377.40 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col4 < 377.40)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_85 UNION SELECT pk, col0 FROM view_2_tab3_85
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col4 < 377.40 ) AS tab3_85
----
37 values hashing to 0e1fc7c2beb54031c52913072fedc723

query I rowsort label-800-3
SELECT * FROM view_3_tab3_85
----
37 values hashing to 0e1fc7c2beb54031c52913072fedc723

query I rowsort label-800-3
SELECT pk FROM tab3 WHERE col4 < 377.40
----
37 values hashing to 0e1fc7c2beb54031c52913072fedc723

statement ok
DROP VIEW view_1_tab3_85

statement ok
DROP VIEW view_2_tab3_85

statement ok
DROP VIEW view_3_tab3_85

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab4_85 AS SELECT pk, col0 FROM tab4 WHERE col4 < 377.40

statement ok
CREATE VIEW view_2_tab4_85 AS SELECT pk, col0 FROM tab4 WHERE NOT (col4 < 377.40)

statement ok
CREATE VIEW view_3_tab4_85 AS SELECT pk FROM view_1_tab4_85

query II rowsort label-800-1
SELECT pk, col0 FROM tab4 WHERE col4 < 377.40
----
74 values hashing to bd65cc811e8c3786dbe83b52947c5c07

query II rowsort label-800-2
SELECT pk, col0 FROM tab4 WHERE NOT (col4 < 377.40)
----
126 values hashing to 134f54cdb33b2ff59cc9a6ee9450bf77

query II rowsort label-800-1
SELECT pk, col0 FROM view_1_tab4_85
----
74 values hashing to bd65cc811e8c3786dbe83b52947c5c07

query II rowsort label-800-2
SELECT pk, col0 FROM view_2_tab4_85
----
126 values hashing to 134f54cdb33b2ff59cc9a6ee9450bf77

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col4 < 377.40 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col4 < 377.40)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_85 UNION ALL SELECT pk, col0 FROM view_2_tab4_85
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col4 < 377.40 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col4 < 377.40)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_85 UNION SELECT pk, col0 FROM view_2_tab4_85
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col4 < 377.40 ) AS tab4_85
----
37 values hashing to 0e1fc7c2beb54031c52913072fedc723

query I rowsort label-800-3
SELECT * FROM view_3_tab4_85
----
37 values hashing to 0e1fc7c2beb54031c52913072fedc723

query I rowsort label-800-3
SELECT pk FROM tab4 WHERE col4 < 377.40
----
37 values hashing to 0e1fc7c2beb54031c52913072fedc723

statement ok
DROP VIEW view_1_tab4_85

statement ok
DROP VIEW view_2_tab4_85

statement ok
DROP VIEW view_3_tab4_85

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab0_86 AS SELECT pk, col0 FROM tab0 WHERE col0 IN (455,415)

statement ok
CREATE VIEW view_2_tab0_86 AS SELECT pk, col0 FROM tab0 WHERE NOT (col0 IN (455,415))

statement ok
CREATE VIEW view_3_tab0_86 AS SELECT pk FROM view_1_tab0_86

query II rowsort label-900-1
SELECT pk, col0 FROM tab0 WHERE col0 IN (455,415)
----

query II rowsort label-900-2
SELECT pk, col0 FROM tab0 WHERE NOT (col0 IN (455,415))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-900-1
SELECT pk, col0 FROM view_1_tab0_86
----

query II rowsort label-900-2
SELECT pk, col0 FROM view_2_tab0_86
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col0 IN (455,415) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col0 IN (455,415))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_86 UNION ALL SELECT pk, col0 FROM view_2_tab0_86
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col0 IN (455,415) UNION SELECT pk, col0 FROM tab0 WHERE NOT (col0 IN (455,415))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_86 UNION SELECT pk, col0 FROM view_2_tab0_86
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col0 IN (455,415) ) AS tab0_86
----

query I rowsort label-900-3
SELECT * FROM view_3_tab0_86
----

query I rowsort label-900-3
SELECT pk FROM tab0 WHERE col0 IN (455,415)
----

statement ok
DROP VIEW view_1_tab0_86

statement ok
DROP VIEW view_2_tab0_86

statement ok
DROP VIEW view_3_tab0_86

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab1_86 AS SELECT pk, col0 FROM tab1 WHERE col0 IN (455,415)

statement ok
CREATE VIEW view_2_tab1_86 AS SELECT pk, col0 FROM tab1 WHERE NOT (col0 IN (455,415))

statement ok
CREATE VIEW view_3_tab1_86 AS SELECT pk FROM view_1_tab1_86

query II rowsort label-900-1
SELECT pk, col0 FROM tab1 WHERE col0 IN (455,415)
----

query II rowsort label-900-2
SELECT pk, col0 FROM tab1 WHERE NOT (col0 IN (455,415))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-900-1
SELECT pk, col0 FROM view_1_tab1_86
----

query II rowsort label-900-2
SELECT pk, col0 FROM view_2_tab1_86
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col0 IN (455,415) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col0 IN (455,415))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_86 UNION ALL SELECT pk, col0 FROM view_2_tab1_86
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col0 IN (455,415) UNION SELECT pk, col0 FROM tab1 WHERE NOT (col0 IN (455,415))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_86 UNION SELECT pk, col0 FROM view_2_tab1_86
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col0 IN (455,415) ) AS tab1_86
----

query I rowsort label-900-3
SELECT * FROM view_3_tab1_86
----

query I rowsort label-900-3
SELECT pk FROM tab1 WHERE col0 IN (455,415)
----

statement ok
DROP VIEW view_1_tab1_86

statement ok
DROP VIEW view_2_tab1_86

statement ok
DROP VIEW view_3_tab1_86

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab2_86 AS SELECT pk, col0 FROM tab2 WHERE col0 IN (455,415)

statement ok
CREATE VIEW view_2_tab2_86 AS SELECT pk, col0 FROM tab2 WHERE NOT (col0 IN (455,415))

statement ok
CREATE VIEW view_3_tab2_86 AS SELECT pk FROM view_1_tab2_86

query II rowsort label-900-1
SELECT pk, col0 FROM tab2 WHERE col0 IN (455,415)
----

query II rowsort label-900-2
SELECT pk, col0 FROM tab2 WHERE NOT (col0 IN (455,415))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-900-1
SELECT pk, col0 FROM view_1_tab2_86
----

query II rowsort label-900-2
SELECT pk, col0 FROM view_2_tab2_86
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col0 IN (455,415) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col0 IN (455,415))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_86 UNION ALL SELECT pk, col0 FROM view_2_tab2_86
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col0 IN (455,415) UNION SELECT pk, col0 FROM tab2 WHERE NOT (col0 IN (455,415))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_86 UNION SELECT pk, col0 FROM view_2_tab2_86
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col0 IN (455,415) ) AS tab2_86
----

query I rowsort label-900-3
SELECT * FROM view_3_tab2_86
----

query I rowsort label-900-3
SELECT pk FROM tab2 WHERE col0 IN (455,415)
----

statement ok
DROP VIEW view_1_tab2_86

statement ok
DROP VIEW view_2_tab2_86

statement ok
DROP VIEW view_3_tab2_86

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab3_86 AS SELECT pk, col0 FROM tab3 WHERE col0 IN (455,415)

statement ok
CREATE VIEW view_2_tab3_86 AS SELECT pk, col0 FROM tab3 WHERE NOT (col0 IN (455,415))

statement ok
CREATE VIEW view_3_tab3_86 AS SELECT pk FROM view_1_tab3_86

query II rowsort label-900-1
SELECT pk, col0 FROM tab3 WHERE col0 IN (455,415)
----

query II rowsort label-900-2
SELECT pk, col0 FROM tab3 WHERE NOT (col0 IN (455,415))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-900-1
SELECT pk, col0 FROM view_1_tab3_86
----

query II rowsort label-900-2
SELECT pk, col0 FROM view_2_tab3_86
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col0 IN (455,415) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col0 IN (455,415))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_86 UNION ALL SELECT pk, col0 FROM view_2_tab3_86
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col0 IN (455,415) UNION SELECT pk, col0 FROM tab3 WHERE NOT (col0 IN (455,415))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_86 UNION SELECT pk, col0 FROM view_2_tab3_86
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col0 IN (455,415) ) AS tab3_86
----

query I rowsort label-900-3
SELECT * FROM view_3_tab3_86
----

query I rowsort label-900-3
SELECT pk FROM tab3 WHERE col0 IN (455,415)
----

statement ok
DROP VIEW view_1_tab3_86

statement ok
DROP VIEW view_2_tab3_86

statement ok
DROP VIEW view_3_tab3_86

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab4_86 AS SELECT pk, col0 FROM tab4 WHERE col0 IN (455,415)

statement ok
CREATE VIEW view_2_tab4_86 AS SELECT pk, col0 FROM tab4 WHERE NOT (col0 IN (455,415))

statement ok
CREATE VIEW view_3_tab4_86 AS SELECT pk FROM view_1_tab4_86

query II rowsort label-900-1
SELECT pk, col0 FROM tab4 WHERE col0 IN (455,415)
----

query II rowsort label-900-2
SELECT pk, col0 FROM tab4 WHERE NOT (col0 IN (455,415))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-900-1
SELECT pk, col0 FROM view_1_tab4_86
----

query II rowsort label-900-2
SELECT pk, col0 FROM view_2_tab4_86
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col0 IN (455,415) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col0 IN (455,415))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_86 UNION ALL SELECT pk, col0 FROM view_2_tab4_86
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col0 IN (455,415) UNION SELECT pk, col0 FROM tab4 WHERE NOT (col0 IN (455,415))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_86 UNION SELECT pk, col0 FROM view_2_tab4_86
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col0 IN (455,415) ) AS tab4_86
----

query I rowsort label-900-3
SELECT * FROM view_3_tab4_86
----

query I rowsort label-900-3
SELECT pk FROM tab4 WHERE col0 IN (455,415)
----

statement ok
DROP VIEW view_1_tab4_86

statement ok
DROP VIEW view_2_tab4_86

statement ok
DROP VIEW view_3_tab4_86

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab0_87 AS SELECT pk, col0 FROM tab0 WHERE (col1 <= 669.80 AND col4 <= 570.92)

statement ok
CREATE VIEW view_2_tab0_87 AS SELECT pk, col0 FROM tab0 WHERE NOT ((col1 <= 669.80 AND col4 <= 570.92))

statement ok
CREATE VIEW view_3_tab0_87 AS SELECT pk FROM view_1_tab0_87

query II rowsort label-1000-1
SELECT pk, col0 FROM tab0 WHERE (col1 <= 669.80 AND col4 <= 570.92)
----
72 values hashing to 471e6ebdcf01d194779851e81b5c4a4a

query II rowsort label-1000-2
SELECT pk, col0 FROM tab0 WHERE NOT ((col1 <= 669.80 AND col4 <= 570.92))
----
128 values hashing to 62c94b2b942445a6bf8545897122eb3e

query II rowsort label-1000-1
SELECT pk, col0 FROM view_1_tab0_87
----
72 values hashing to 471e6ebdcf01d194779851e81b5c4a4a

query II rowsort label-1000-2
SELECT pk, col0 FROM view_2_tab0_87
----
128 values hashing to 62c94b2b942445a6bf8545897122eb3e

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col1 <= 669.80 AND col4 <= 570.92) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT ((col1 <= 669.80 AND col4 <= 570.92))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_87 UNION ALL SELECT pk, col0 FROM view_2_tab0_87
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col1 <= 669.80 AND col4 <= 570.92) UNION SELECT pk, col0 FROM tab0 WHERE NOT ((col1 <= 669.80 AND col4 <= 570.92))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_87 UNION SELECT pk, col0 FROM view_2_tab0_87
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-1000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE (col1 <= 669.80 AND col4 <= 570.92) ) AS tab0_87
----
36 values hashing to 647aaf7f098ca164d04fce68f94bea9b

query I rowsort label-1000-3
SELECT * FROM view_3_tab0_87
----
36 values hashing to 647aaf7f098ca164d04fce68f94bea9b

query I rowsort label-1000-3
SELECT pk FROM tab0 WHERE (col1 <= 669.80 AND col4 <= 570.92)
----
36 values hashing to 647aaf7f098ca164d04fce68f94bea9b

statement ok
DROP VIEW view_1_tab0_87

statement ok
DROP VIEW view_2_tab0_87

statement ok
DROP VIEW view_3_tab0_87

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab1_87 AS SELECT pk, col0 FROM tab1 WHERE (col1 <= 669.80 AND col4 <= 570.92)

statement ok
CREATE VIEW view_2_tab1_87 AS SELECT pk, col0 FROM tab1 WHERE NOT ((col1 <= 669.80 AND col4 <= 570.92))

statement ok
CREATE VIEW view_3_tab1_87 AS SELECT pk FROM view_1_tab1_87

query II rowsort label-1000-1
SELECT pk, col0 FROM tab1 WHERE (col1 <= 669.80 AND col4 <= 570.92)
----
72 values hashing to 471e6ebdcf01d194779851e81b5c4a4a

query II rowsort label-1000-2
SELECT pk, col0 FROM tab1 WHERE NOT ((col1 <= 669.80 AND col4 <= 570.92))
----
128 values hashing to 62c94b2b942445a6bf8545897122eb3e

query II rowsort label-1000-1
SELECT pk, col0 FROM view_1_tab1_87
----
72 values hashing to 471e6ebdcf01d194779851e81b5c4a4a

query II rowsort label-1000-2
SELECT pk, col0 FROM view_2_tab1_87
----
128 values hashing to 62c94b2b942445a6bf8545897122eb3e

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col1 <= 669.80 AND col4 <= 570.92) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT ((col1 <= 669.80 AND col4 <= 570.92))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_87 UNION ALL SELECT pk, col0 FROM view_2_tab1_87
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col1 <= 669.80 AND col4 <= 570.92) UNION SELECT pk, col0 FROM tab1 WHERE NOT ((col1 <= 669.80 AND col4 <= 570.92))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_87 UNION SELECT pk, col0 FROM view_2_tab1_87
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-1000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE (col1 <= 669.80 AND col4 <= 570.92) ) AS tab1_87
----
36 values hashing to 647aaf7f098ca164d04fce68f94bea9b

query I rowsort label-1000-3
SELECT * FROM view_3_tab1_87
----
36 values hashing to 647aaf7f098ca164d04fce68f94bea9b

query I rowsort label-1000-3
SELECT pk FROM tab1 WHERE (col1 <= 669.80 AND col4 <= 570.92)
----
36 values hashing to 647aaf7f098ca164d04fce68f94bea9b

statement ok
DROP VIEW view_1_tab1_87

statement ok
DROP VIEW view_2_tab1_87

statement ok
DROP VIEW view_3_tab1_87

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab2_87 AS SELECT pk, col0 FROM tab2 WHERE (col1 <= 669.80 AND col4 <= 570.92)

statement ok
CREATE VIEW view_2_tab2_87 AS SELECT pk, col0 FROM tab2 WHERE NOT ((col1 <= 669.80 AND col4 <= 570.92))

statement ok
CREATE VIEW view_3_tab2_87 AS SELECT pk FROM view_1_tab2_87

query II rowsort label-1000-1
SELECT pk, col0 FROM tab2 WHERE (col1 <= 669.80 AND col4 <= 570.92)
----
72 values hashing to 471e6ebdcf01d194779851e81b5c4a4a

query II rowsort label-1000-2
SELECT pk, col0 FROM tab2 WHERE NOT ((col1 <= 669.80 AND col4 <= 570.92))
----
128 values hashing to 62c94b2b942445a6bf8545897122eb3e

query II rowsort label-1000-1
SELECT pk, col0 FROM view_1_tab2_87
----
72 values hashing to 471e6ebdcf01d194779851e81b5c4a4a

query II rowsort label-1000-2
SELECT pk, col0 FROM view_2_tab2_87
----
128 values hashing to 62c94b2b942445a6bf8545897122eb3e

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col1 <= 669.80 AND col4 <= 570.92) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT ((col1 <= 669.80 AND col4 <= 570.92))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_87 UNION ALL SELECT pk, col0 FROM view_2_tab2_87
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col1 <= 669.80 AND col4 <= 570.92) UNION SELECT pk, col0 FROM tab2 WHERE NOT ((col1 <= 669.80 AND col4 <= 570.92))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_87 UNION SELECT pk, col0 FROM view_2_tab2_87
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-1000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE (col1 <= 669.80 AND col4 <= 570.92) ) AS tab2_87
----
36 values hashing to 647aaf7f098ca164d04fce68f94bea9b

query I rowsort label-1000-3
SELECT * FROM view_3_tab2_87
----
36 values hashing to 647aaf7f098ca164d04fce68f94bea9b

query I rowsort label-1000-3
SELECT pk FROM tab2 WHERE (col1 <= 669.80 AND col4 <= 570.92)
----
36 values hashing to 647aaf7f098ca164d04fce68f94bea9b

statement ok
DROP VIEW view_1_tab2_87

statement ok
DROP VIEW view_2_tab2_87

statement ok
DROP VIEW view_3_tab2_87

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab3_87 AS SELECT pk, col0 FROM tab3 WHERE (col1 <= 669.80 AND col4 <= 570.92)

statement ok
CREATE VIEW view_2_tab3_87 AS SELECT pk, col0 FROM tab3 WHERE NOT ((col1 <= 669.80 AND col4 <= 570.92))

statement ok
CREATE VIEW view_3_tab3_87 AS SELECT pk FROM view_1_tab3_87

query II rowsort label-1000-1
SELECT pk, col0 FROM tab3 WHERE (col1 <= 669.80 AND col4 <= 570.92)
----
72 values hashing to 471e6ebdcf01d194779851e81b5c4a4a

query II rowsort label-1000-2
SELECT pk, col0 FROM tab3 WHERE NOT ((col1 <= 669.80 AND col4 <= 570.92))
----
128 values hashing to 62c94b2b942445a6bf8545897122eb3e

query II rowsort label-1000-1
SELECT pk, col0 FROM view_1_tab3_87
----
72 values hashing to 471e6ebdcf01d194779851e81b5c4a4a

query II rowsort label-1000-2
SELECT pk, col0 FROM view_2_tab3_87
----
128 values hashing to 62c94b2b942445a6bf8545897122eb3e

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col1 <= 669.80 AND col4 <= 570.92) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT ((col1 <= 669.80 AND col4 <= 570.92))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_87 UNION ALL SELECT pk, col0 FROM view_2_tab3_87
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col1 <= 669.80 AND col4 <= 570.92) UNION SELECT pk, col0 FROM tab3 WHERE NOT ((col1 <= 669.80 AND col4 <= 570.92))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_87 UNION SELECT pk, col0 FROM view_2_tab3_87
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-1000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE (col1 <= 669.80 AND col4 <= 570.92) ) AS tab3_87
----
36 values hashing to 647aaf7f098ca164d04fce68f94bea9b

query I rowsort label-1000-3
SELECT * FROM view_3_tab3_87
----
36 values hashing to 647aaf7f098ca164d04fce68f94bea9b

query I rowsort label-1000-3
SELECT pk FROM tab3 WHERE (col1 <= 669.80 AND col4 <= 570.92)
----
36 values hashing to 647aaf7f098ca164d04fce68f94bea9b

statement ok
DROP VIEW view_1_tab3_87

statement ok
DROP VIEW view_2_tab3_87

statement ok
DROP VIEW view_3_tab3_87

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab4_87 AS SELECT pk, col0 FROM tab4 WHERE (col1 <= 669.80 AND col4 <= 570.92)

statement ok
CREATE VIEW view_2_tab4_87 AS SELECT pk, col0 FROM tab4 WHERE NOT ((col1 <= 669.80 AND col4 <= 570.92))

statement ok
CREATE VIEW view_3_tab4_87 AS SELECT pk FROM view_1_tab4_87

query II rowsort label-1000-1
SELECT pk, col0 FROM tab4 WHERE (col1 <= 669.80 AND col4 <= 570.92)
----
72 values hashing to 471e6ebdcf01d194779851e81b5c4a4a

query II rowsort label-1000-2
SELECT pk, col0 FROM tab4 WHERE NOT ((col1 <= 669.80 AND col4 <= 570.92))
----
128 values hashing to 62c94b2b942445a6bf8545897122eb3e

query II rowsort label-1000-1
SELECT pk, col0 FROM view_1_tab4_87
----
72 values hashing to 471e6ebdcf01d194779851e81b5c4a4a

query II rowsort label-1000-2
SELECT pk, col0 FROM view_2_tab4_87
----
128 values hashing to 62c94b2b942445a6bf8545897122eb3e

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col1 <= 669.80 AND col4 <= 570.92) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT ((col1 <= 669.80 AND col4 <= 570.92))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_87 UNION ALL SELECT pk, col0 FROM view_2_tab4_87
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col1 <= 669.80 AND col4 <= 570.92) UNION SELECT pk, col0 FROM tab4 WHERE NOT ((col1 <= 669.80 AND col4 <= 570.92))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_87 UNION SELECT pk, col0 FROM view_2_tab4_87
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-1000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE (col1 <= 669.80 AND col4 <= 570.92) ) AS tab4_87
----
36 values hashing to 647aaf7f098ca164d04fce68f94bea9b

query I rowsort label-1000-3
SELECT * FROM view_3_tab4_87
----
36 values hashing to 647aaf7f098ca164d04fce68f94bea9b

query I rowsort label-1000-3
SELECT pk FROM tab4 WHERE (col1 <= 669.80 AND col4 <= 570.92)
----
36 values hashing to 647aaf7f098ca164d04fce68f94bea9b

statement ok
DROP VIEW view_1_tab4_87

statement ok
DROP VIEW view_2_tab4_87

statement ok
DROP VIEW view_3_tab4_87

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab0_88 AS SELECT pk, col0 FROM tab0 WHERE col0 <= 229 OR col3 >= 292 AND col0 < 669 AND col4 IS NULL OR col4 <= 183.95 AND col1 <= 433.69

statement ok
CREATE VIEW view_2_tab0_88 AS SELECT pk, col0 FROM tab0 WHERE NOT (col0 <= 229 OR col3 >= 292 AND col0 < 669 AND col4 IS NULL OR col4 <= 183.95 AND col1 <= 433.69)

statement ok
CREATE VIEW view_3_tab0_88 AS SELECT pk FROM view_1_tab0_88

query II rowsort label-1100-1
SELECT pk, col0 FROM tab0 WHERE col0 <= 229 OR col3 >= 292 AND col0 < 669 AND col4 IS NULL OR col4 <= 183.95 AND col1 <= 433.69
----
56 values hashing to 54471814df7b73049d94f35188ead671

query II rowsort label-1100-2
SELECT pk, col0 FROM tab0 WHERE NOT (col0 <= 229 OR col3 >= 292 AND col0 < 669 AND col4 IS NULL OR col4 <= 183.95 AND col1 <= 433.69)
----
144 values hashing to ceb7417e8538328dc65f84bb7436e3e2

query II rowsort label-1100-1
SELECT pk, col0 FROM view_1_tab0_88
----
56 values hashing to 54471814df7b73049d94f35188ead671

query II rowsort label-1100-2
SELECT pk, col0 FROM view_2_tab0_88
----
144 values hashing to ceb7417e8538328dc65f84bb7436e3e2

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col0 <= 229 OR col3 >= 292 AND col0 < 669 AND col4 IS NULL OR col4 <= 183.95 AND col1 <= 433.69 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col0 <= 229 OR col3 >= 292 AND col0 < 669 AND col4 IS NULL OR col4 <= 183.95 AND col1 <= 433.69)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_88 UNION ALL SELECT pk, col0 FROM view_2_tab0_88
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col0 <= 229 OR col3 >= 292 AND col0 < 669 AND col4 IS NULL OR col4 <= 183.95 AND col1 <= 433.69 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col0 <= 229 OR col3 >= 292 AND col0 < 669 AND col4 IS NULL OR col4 <= 183.95 AND col1 <= 433.69)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_88 UNION SELECT pk, col0 FROM view_2_tab0_88
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-1100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col0 <= 229 OR col3 >= 292 AND col0 < 669 AND col4 IS NULL OR col4 <= 183.95 AND col1 <= 433.69 ) AS tab0_88
----
28 values hashing to e2d6a6ad99408ddb68912faa60a84d36

query I rowsort label-1100-3
SELECT * FROM view_3_tab0_88
----
28 values hashing to e2d6a6ad99408ddb68912faa60a84d36

query I rowsort label-1100-3
SELECT pk FROM tab0 WHERE col0 <= 229 OR col3 >= 292 AND col0 < 669 AND col4 IS NULL OR col4 <= 183.95 AND col1 <= 433.69
----
28 values hashing to e2d6a6ad99408ddb68912faa60a84d36

statement ok
DROP VIEW view_1_tab0_88

statement ok
DROP VIEW view_2_tab0_88

statement ok
DROP VIEW view_3_tab0_88

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab1_88 AS SELECT pk, col0 FROM tab1 WHERE col0 <= 229 OR col3 >= 292 AND col0 < 669 AND col4 IS NULL OR col4 <= 183.95 AND col1 <= 433.69

statement ok
CREATE VIEW view_2_tab1_88 AS SELECT pk, col0 FROM tab1 WHERE NOT (col0 <= 229 OR col3 >= 292 AND col0 < 669 AND col4 IS NULL OR col4 <= 183.95 AND col1 <= 433.69)

statement ok
CREATE VIEW view_3_tab1_88 AS SELECT pk FROM view_1_tab1_88

query II rowsort label-1100-1
SELECT pk, col0 FROM tab1 WHERE col0 <= 229 OR col3 >= 292 AND col0 < 669 AND col4 IS NULL OR col4 <= 183.95 AND col1 <= 433.69
----
56 values hashing to 54471814df7b73049d94f35188ead671

query II rowsort label-1100-2
SELECT pk, col0 FROM tab1 WHERE NOT (col0 <= 229 OR col3 >= 292 AND col0 < 669 AND col4 IS NULL OR col4 <= 183.95 AND col1 <= 433.69)
----
144 values hashing to ceb7417e8538328dc65f84bb7436e3e2

query II rowsort label-1100-1
SELECT pk, col0 FROM view_1_tab1_88
----
56 values hashing to 54471814df7b73049d94f35188ead671

query II rowsort label-1100-2
SELECT pk, col0 FROM view_2_tab1_88
----
144 values hashing to ceb7417e8538328dc65f84bb7436e3e2

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col0 <= 229 OR col3 >= 292 AND col0 < 669 AND col4 IS NULL OR col4 <= 183.95 AND col1 <= 433.69 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col0 <= 229 OR col3 >= 292 AND col0 < 669 AND col4 IS NULL OR col4 <= 183.95 AND col1 <= 433.69)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_88 UNION ALL SELECT pk, col0 FROM view_2_tab1_88
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col0 <= 229 OR col3 >= 292 AND col0 < 669 AND col4 IS NULL OR col4 <= 183.95 AND col1 <= 433.69 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col0 <= 229 OR col3 >= 292 AND col0 < 669 AND col4 IS NULL OR col4 <= 183.95 AND col1 <= 433.69)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_88 UNION SELECT pk, col0 FROM view_2_tab1_88
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-1100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col0 <= 229 OR col3 >= 292 AND col0 < 669 AND col4 IS NULL OR col4 <= 183.95 AND col1 <= 433.69 ) AS tab1_88
----
28 values hashing to e2d6a6ad99408ddb68912faa60a84d36

query I rowsort label-1100-3
SELECT * FROM view_3_tab1_88
----
28 values hashing to e2d6a6ad99408ddb68912faa60a84d36

query I rowsort label-1100-3
SELECT pk FROM tab1 WHERE col0 <= 229 OR col3 >= 292 AND col0 < 669 AND col4 IS NULL OR col4 <= 183.95 AND col1 <= 433.69
----
28 values hashing to e2d6a6ad99408ddb68912faa60a84d36

statement ok
DROP VIEW view_1_tab1_88

statement ok
DROP VIEW view_2_tab1_88

statement ok
DROP VIEW view_3_tab1_88

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab2_88 AS SELECT pk, col0 FROM tab2 WHERE col0 <= 229 OR col3 >= 292 AND col0 < 669 AND col4 IS NULL OR col4 <= 183.95 AND col1 <= 433.69

statement ok
CREATE VIEW view_2_tab2_88 AS SELECT pk, col0 FROM tab2 WHERE NOT (col0 <= 229 OR col3 >= 292 AND col0 < 669 AND col4 IS NULL OR col4 <= 183.95 AND col1 <= 433.69)

statement ok
CREATE VIEW view_3_tab2_88 AS SELECT pk FROM view_1_tab2_88

query II rowsort label-1100-1
SELECT pk, col0 FROM tab2 WHERE col0 <= 229 OR col3 >= 292 AND col0 < 669 AND col4 IS NULL OR col4 <= 183.95 AND col1 <= 433.69
----
56 values hashing to 54471814df7b73049d94f35188ead671

query II rowsort label-1100-2
SELECT pk, col0 FROM tab2 WHERE NOT (col0 <= 229 OR col3 >= 292 AND col0 < 669 AND col4 IS NULL OR col4 <= 183.95 AND col1 <= 433.69)
----
144 values hashing to ceb7417e8538328dc65f84bb7436e3e2

query II rowsort label-1100-1
SELECT pk, col0 FROM view_1_tab2_88
----
56 values hashing to 54471814df7b73049d94f35188ead671

query II rowsort label-1100-2
SELECT pk, col0 FROM view_2_tab2_88
----
144 values hashing to ceb7417e8538328dc65f84bb7436e3e2

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col0 <= 229 OR col3 >= 292 AND col0 < 669 AND col4 IS NULL OR col4 <= 183.95 AND col1 <= 433.69 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col0 <= 229 OR col3 >= 292 AND col0 < 669 AND col4 IS NULL OR col4 <= 183.95 AND col1 <= 433.69)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_88 UNION ALL SELECT pk, col0 FROM view_2_tab2_88
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col0 <= 229 OR col3 >= 292 AND col0 < 669 AND col4 IS NULL OR col4 <= 183.95 AND col1 <= 433.69 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col0 <= 229 OR col3 >= 292 AND col0 < 669 AND col4 IS NULL OR col4 <= 183.95 AND col1 <= 433.69)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_88 UNION SELECT pk, col0 FROM view_2_tab2_88
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-1100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col0 <= 229 OR col3 >= 292 AND col0 < 669 AND col4 IS NULL OR col4 <= 183.95 AND col1 <= 433.69 ) AS tab2_88
----
28 values hashing to e2d6a6ad99408ddb68912faa60a84d36

query I rowsort label-1100-3
SELECT * FROM view_3_tab2_88
----
28 values hashing to e2d6a6ad99408ddb68912faa60a84d36

query I rowsort label-1100-3
SELECT pk FROM tab2 WHERE col0 <= 229 OR col3 >= 292 AND col0 < 669 AND col4 IS NULL OR col4 <= 183.95 AND col1 <= 433.69
----
28 values hashing to e2d6a6ad99408ddb68912faa60a84d36

statement ok
DROP VIEW view_1_tab2_88

statement ok
DROP VIEW view_2_tab2_88

statement ok
DROP VIEW view_3_tab2_88

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab3_88 AS SELECT pk, col0 FROM tab3 WHERE col0 <= 229 OR col3 >= 292 AND col0 < 669 AND col4 IS NULL OR col4 <= 183.95 AND col1 <= 433.69

statement ok
CREATE VIEW view_2_tab3_88 AS SELECT pk, col0 FROM tab3 WHERE NOT (col0 <= 229 OR col3 >= 292 AND col0 < 669 AND col4 IS NULL OR col4 <= 183.95 AND col1 <= 433.69)

statement ok
CREATE VIEW view_3_tab3_88 AS SELECT pk FROM view_1_tab3_88

query II rowsort label-1100-1
SELECT pk, col0 FROM tab3 WHERE col0 <= 229 OR col3 >= 292 AND col0 < 669 AND col4 IS NULL OR col4 <= 183.95 AND col1 <= 433.69
----
56 values hashing to 54471814df7b73049d94f35188ead671

query II rowsort label-1100-2
SELECT pk, col0 FROM tab3 WHERE NOT (col0 <= 229 OR col3 >= 292 AND col0 < 669 AND col4 IS NULL OR col4 <= 183.95 AND col1 <= 433.69)
----
144 values hashing to ceb7417e8538328dc65f84bb7436e3e2

query II rowsort label-1100-1
SELECT pk, col0 FROM view_1_tab3_88
----
56 values hashing to 54471814df7b73049d94f35188ead671

query II rowsort label-1100-2
SELECT pk, col0 FROM view_2_tab3_88
----
144 values hashing to ceb7417e8538328dc65f84bb7436e3e2

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col0 <= 229 OR col3 >= 292 AND col0 < 669 AND col4 IS NULL OR col4 <= 183.95 AND col1 <= 433.69 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col0 <= 229 OR col3 >= 292 AND col0 < 669 AND col4 IS NULL OR col4 <= 183.95 AND col1 <= 433.69)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_88 UNION ALL SELECT pk, col0 FROM view_2_tab3_88
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col0 <= 229 OR col3 >= 292 AND col0 < 669 AND col4 IS NULL OR col4 <= 183.95 AND col1 <= 433.69 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col0 <= 229 OR col3 >= 292 AND col0 < 669 AND col4 IS NULL OR col4 <= 183.95 AND col1 <= 433.69)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_88 UNION SELECT pk, col0 FROM view_2_tab3_88
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-1100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col0 <= 229 OR col3 >= 292 AND col0 < 669 AND col4 IS NULL OR col4 <= 183.95 AND col1 <= 433.69 ) AS tab3_88
----
28 values hashing to e2d6a6ad99408ddb68912faa60a84d36

query I rowsort label-1100-3
SELECT * FROM view_3_tab3_88
----
28 values hashing to e2d6a6ad99408ddb68912faa60a84d36

query I rowsort label-1100-3
SELECT pk FROM tab3 WHERE col0 <= 229 OR col3 >= 292 AND col0 < 669 AND col4 IS NULL OR col4 <= 183.95 AND col1 <= 433.69
----
28 values hashing to e2d6a6ad99408ddb68912faa60a84d36

statement ok
DROP VIEW view_1_tab3_88

statement ok
DROP VIEW view_2_tab3_88

statement ok
DROP VIEW view_3_tab3_88

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab4_88 AS SELECT pk, col0 FROM tab4 WHERE col0 <= 229 OR col3 >= 292 AND col0 < 669 AND col4 IS NULL OR col4 <= 183.95 AND col1 <= 433.69

statement ok
CREATE VIEW view_2_tab4_88 AS SELECT pk, col0 FROM tab4 WHERE NOT (col0 <= 229 OR col3 >= 292 AND col0 < 669 AND col4 IS NULL OR col4 <= 183.95 AND col1 <= 433.69)

statement ok
CREATE VIEW view_3_tab4_88 AS SELECT pk FROM view_1_tab4_88

query II rowsort label-1100-1
SELECT pk, col0 FROM tab4 WHERE col0 <= 229 OR col3 >= 292 AND col0 < 669 AND col4 IS NULL OR col4 <= 183.95 AND col1 <= 433.69
----
56 values hashing to 54471814df7b73049d94f35188ead671

query II rowsort label-1100-2
SELECT pk, col0 FROM tab4 WHERE NOT (col0 <= 229 OR col3 >= 292 AND col0 < 669 AND col4 IS NULL OR col4 <= 183.95 AND col1 <= 433.69)
----
144 values hashing to ceb7417e8538328dc65f84bb7436e3e2

query II rowsort label-1100-1
SELECT pk, col0 FROM view_1_tab4_88
----
56 values hashing to 54471814df7b73049d94f35188ead671

query II rowsort label-1100-2
SELECT pk, col0 FROM view_2_tab4_88
----
144 values hashing to ceb7417e8538328dc65f84bb7436e3e2

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col0 <= 229 OR col3 >= 292 AND col0 < 669 AND col4 IS NULL OR col4 <= 183.95 AND col1 <= 433.69 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col0 <= 229 OR col3 >= 292 AND col0 < 669 AND col4 IS NULL OR col4 <= 183.95 AND col1 <= 433.69)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_88 UNION ALL SELECT pk, col0 FROM view_2_tab4_88
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col0 <= 229 OR col3 >= 292 AND col0 < 669 AND col4 IS NULL OR col4 <= 183.95 AND col1 <= 433.69 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col0 <= 229 OR col3 >= 292 AND col0 < 669 AND col4 IS NULL OR col4 <= 183.95 AND col1 <= 433.69)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_88 UNION SELECT pk, col0 FROM view_2_tab4_88
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-1100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col0 <= 229 OR col3 >= 292 AND col0 < 669 AND col4 IS NULL OR col4 <= 183.95 AND col1 <= 433.69 ) AS tab4_88
----
28 values hashing to e2d6a6ad99408ddb68912faa60a84d36

query I rowsort label-1100-3
SELECT * FROM view_3_tab4_88
----
28 values hashing to e2d6a6ad99408ddb68912faa60a84d36

query I rowsort label-1100-3
SELECT pk FROM tab4 WHERE col0 <= 229 OR col3 >= 292 AND col0 < 669 AND col4 IS NULL OR col4 <= 183.95 AND col1 <= 433.69
----
28 values hashing to e2d6a6ad99408ddb68912faa60a84d36

statement ok
DROP VIEW view_1_tab4_88

statement ok
DROP VIEW view_2_tab4_88

statement ok
DROP VIEW view_3_tab4_88

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab0_89 AS SELECT pk, col0 FROM tab0 WHERE col1 <= 38.96 AND col4 IN (717.97,930.23,946.43,274.22,960.73) OR col3 <= 746

statement ok
CREATE VIEW view_2_tab0_89 AS SELECT pk, col0 FROM tab0 WHERE NOT (col1 <= 38.96 AND col4 IN (717.97,930.23,946.43,274.22,960.73) OR col3 <= 746)

statement ok
CREATE VIEW view_3_tab0_89 AS SELECT pk FROM view_1_tab0_89

query II rowsort label-1200-1
SELECT pk, col0 FROM tab0 WHERE col1 <= 38.96 AND col4 IN (717.97,930.23,946.43,274.22,960.73) OR col3 <= 746
----
154 values hashing to e4d4a5f89d58d74513d992b0e161f804

query II rowsort label-1200-2
SELECT pk, col0 FROM tab0 WHERE NOT (col1 <= 38.96 AND col4 IN (717.97,930.23,946.43,274.22,960.73) OR col3 <= 746)
----
46 values hashing to 4fa30ec8ba0014064a089419681c93a4

query II rowsort label-1200-1
SELECT pk, col0 FROM view_1_tab0_89
----
154 values hashing to e4d4a5f89d58d74513d992b0e161f804

query II rowsort label-1200-2
SELECT pk, col0 FROM view_2_tab0_89
----
46 values hashing to 4fa30ec8ba0014064a089419681c93a4

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col1 <= 38.96 AND col4 IN (717.97,930.23,946.43,274.22,960.73) OR col3 <= 746 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col1 <= 38.96 AND col4 IN (717.97,930.23,946.43,274.22,960.73) OR col3 <= 746)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_89 UNION ALL SELECT pk, col0 FROM view_2_tab0_89
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col1 <= 38.96 AND col4 IN (717.97,930.23,946.43,274.22,960.73) OR col3 <= 746 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col1 <= 38.96 AND col4 IN (717.97,930.23,946.43,274.22,960.73) OR col3 <= 746)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_89 UNION SELECT pk, col0 FROM view_2_tab0_89
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-1200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col1 <= 38.96 AND col4 IN (717.97,930.23,946.43,274.22,960.73) OR col3 <= 746 ) AS tab0_89
----
77 values hashing to d40f878ba822143dafeedb997ca66916

query I rowsort label-1200-3
SELECT * FROM view_3_tab0_89
----
77 values hashing to d40f878ba822143dafeedb997ca66916

query I rowsort label-1200-3
SELECT pk FROM tab0 WHERE col1 <= 38.96 AND col4 IN (717.97,930.23,946.43,274.22,960.73) OR col3 <= 746
----
77 values hashing to d40f878ba822143dafeedb997ca66916

statement ok
DROP VIEW view_1_tab0_89

statement ok
DROP VIEW view_2_tab0_89

statement ok
DROP VIEW view_3_tab0_89

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab1_89 AS SELECT pk, col0 FROM tab1 WHERE col1 <= 38.96 AND col4 IN (717.97,930.23,946.43,274.22,960.73) OR col3 <= 746

statement ok
CREATE VIEW view_2_tab1_89 AS SELECT pk, col0 FROM tab1 WHERE NOT (col1 <= 38.96 AND col4 IN (717.97,930.23,946.43,274.22,960.73) OR col3 <= 746)

statement ok
CREATE VIEW view_3_tab1_89 AS SELECT pk FROM view_1_tab1_89

query II rowsort label-1200-1
SELECT pk, col0 FROM tab1 WHERE col1 <= 38.96 AND col4 IN (717.97,930.23,946.43,274.22,960.73) OR col3 <= 746
----
154 values hashing to e4d4a5f89d58d74513d992b0e161f804

query II rowsort label-1200-2
SELECT pk, col0 FROM tab1 WHERE NOT (col1 <= 38.96 AND col4 IN (717.97,930.23,946.43,274.22,960.73) OR col3 <= 746)
----
46 values hashing to 4fa30ec8ba0014064a089419681c93a4

query II rowsort label-1200-1
SELECT pk, col0 FROM view_1_tab1_89
----
154 values hashing to e4d4a5f89d58d74513d992b0e161f804

query II rowsort label-1200-2
SELECT pk, col0 FROM view_2_tab1_89
----
46 values hashing to 4fa30ec8ba0014064a089419681c93a4

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col1 <= 38.96 AND col4 IN (717.97,930.23,946.43,274.22,960.73) OR col3 <= 746 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col1 <= 38.96 AND col4 IN (717.97,930.23,946.43,274.22,960.73) OR col3 <= 746)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_89 UNION ALL SELECT pk, col0 FROM view_2_tab1_89
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col1 <= 38.96 AND col4 IN (717.97,930.23,946.43,274.22,960.73) OR col3 <= 746 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col1 <= 38.96 AND col4 IN (717.97,930.23,946.43,274.22,960.73) OR col3 <= 746)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_89 UNION SELECT pk, col0 FROM view_2_tab1_89
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-1200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col1 <= 38.96 AND col4 IN (717.97,930.23,946.43,274.22,960.73) OR col3 <= 746 ) AS tab1_89
----
77 values hashing to d40f878ba822143dafeedb997ca66916

query I rowsort label-1200-3
SELECT * FROM view_3_tab1_89
----
77 values hashing to d40f878ba822143dafeedb997ca66916

query I rowsort label-1200-3
SELECT pk FROM tab1 WHERE col1 <= 38.96 AND col4 IN (717.97,930.23,946.43,274.22,960.73) OR col3 <= 746
----
77 values hashing to d40f878ba822143dafeedb997ca66916

statement ok
DROP VIEW view_1_tab1_89

statement ok
DROP VIEW view_2_tab1_89

statement ok
DROP VIEW view_3_tab1_89

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab2_89 AS SELECT pk, col0 FROM tab2 WHERE col1 <= 38.96 AND col4 IN (717.97,930.23,946.43,274.22,960.73) OR col3 <= 746

statement ok
CREATE VIEW view_2_tab2_89 AS SELECT pk, col0 FROM tab2 WHERE NOT (col1 <= 38.96 AND col4 IN (717.97,930.23,946.43,274.22,960.73) OR col3 <= 746)

statement ok
CREATE VIEW view_3_tab2_89 AS SELECT pk FROM view_1_tab2_89

query II rowsort label-1200-1
SELECT pk, col0 FROM tab2 WHERE col1 <= 38.96 AND col4 IN (717.97,930.23,946.43,274.22,960.73) OR col3 <= 746
----
154 values hashing to e4d4a5f89d58d74513d992b0e161f804

query II rowsort label-1200-2
SELECT pk, col0 FROM tab2 WHERE NOT (col1 <= 38.96 AND col4 IN (717.97,930.23,946.43,274.22,960.73) OR col3 <= 746)
----
46 values hashing to 4fa30ec8ba0014064a089419681c93a4

query II rowsort label-1200-1
SELECT pk, col0 FROM view_1_tab2_89
----
154 values hashing to e4d4a5f89d58d74513d992b0e161f804

query II rowsort label-1200-2
SELECT pk, col0 FROM view_2_tab2_89
----
46 values hashing to 4fa30ec8ba0014064a089419681c93a4

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col1 <= 38.96 AND col4 IN (717.97,930.23,946.43,274.22,960.73) OR col3 <= 746 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col1 <= 38.96 AND col4 IN (717.97,930.23,946.43,274.22,960.73) OR col3 <= 746)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_89 UNION ALL SELECT pk, col0 FROM view_2_tab2_89
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col1 <= 38.96 AND col4 IN (717.97,930.23,946.43,274.22,960.73) OR col3 <= 746 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col1 <= 38.96 AND col4 IN (717.97,930.23,946.43,274.22,960.73) OR col3 <= 746)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_89 UNION SELECT pk, col0 FROM view_2_tab2_89
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-1200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col1 <= 38.96 AND col4 IN (717.97,930.23,946.43,274.22,960.73) OR col3 <= 746 ) AS tab2_89
----
77 values hashing to d40f878ba822143dafeedb997ca66916

query I rowsort label-1200-3
SELECT * FROM view_3_tab2_89
----
77 values hashing to d40f878ba822143dafeedb997ca66916

query I rowsort label-1200-3
SELECT pk FROM tab2 WHERE col1 <= 38.96 AND col4 IN (717.97,930.23,946.43,274.22,960.73) OR col3 <= 746
----
77 values hashing to d40f878ba822143dafeedb997ca66916

statement ok
DROP VIEW view_1_tab2_89

statement ok
DROP VIEW view_2_tab2_89

statement ok
DROP VIEW view_3_tab2_89

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab3_89 AS SELECT pk, col0 FROM tab3 WHERE col1 <= 38.96 AND col4 IN (717.97,930.23,946.43,274.22,960.73) OR col3 <= 746

statement ok
CREATE VIEW view_2_tab3_89 AS SELECT pk, col0 FROM tab3 WHERE NOT (col1 <= 38.96 AND col4 IN (717.97,930.23,946.43,274.22,960.73) OR col3 <= 746)

statement ok
CREATE VIEW view_3_tab3_89 AS SELECT pk FROM view_1_tab3_89

query II rowsort label-1200-1
SELECT pk, col0 FROM tab3 WHERE col1 <= 38.96 AND col4 IN (717.97,930.23,946.43,274.22,960.73) OR col3 <= 746
----
154 values hashing to e4d4a5f89d58d74513d992b0e161f804

query II rowsort label-1200-2
SELECT pk, col0 FROM tab3 WHERE NOT (col1 <= 38.96 AND col4 IN (717.97,930.23,946.43,274.22,960.73) OR col3 <= 746)
----
46 values hashing to 4fa30ec8ba0014064a089419681c93a4

query II rowsort label-1200-1
SELECT pk, col0 FROM view_1_tab3_89
----
154 values hashing to e4d4a5f89d58d74513d992b0e161f804

query II rowsort label-1200-2
SELECT pk, col0 FROM view_2_tab3_89
----
46 values hashing to 4fa30ec8ba0014064a089419681c93a4

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col1 <= 38.96 AND col4 IN (717.97,930.23,946.43,274.22,960.73) OR col3 <= 746 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col1 <= 38.96 AND col4 IN (717.97,930.23,946.43,274.22,960.73) OR col3 <= 746)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_89 UNION ALL SELECT pk, col0 FROM view_2_tab3_89
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col1 <= 38.96 AND col4 IN (717.97,930.23,946.43,274.22,960.73) OR col3 <= 746 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col1 <= 38.96 AND col4 IN (717.97,930.23,946.43,274.22,960.73) OR col3 <= 746)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_89 UNION SELECT pk, col0 FROM view_2_tab3_89
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-1200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col1 <= 38.96 AND col4 IN (717.97,930.23,946.43,274.22,960.73) OR col3 <= 746 ) AS tab3_89
----
77 values hashing to d40f878ba822143dafeedb997ca66916

query I rowsort label-1200-3
SELECT * FROM view_3_tab3_89
----
77 values hashing to d40f878ba822143dafeedb997ca66916

query I rowsort label-1200-3
SELECT pk FROM tab3 WHERE col1 <= 38.96 AND col4 IN (717.97,930.23,946.43,274.22,960.73) OR col3 <= 746
----
77 values hashing to d40f878ba822143dafeedb997ca66916

statement ok
DROP VIEW view_1_tab3_89

statement ok
DROP VIEW view_2_tab3_89

statement ok
DROP VIEW view_3_tab3_89

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab4_89 AS SELECT pk, col0 FROM tab4 WHERE col1 <= 38.96 AND col4 IN (717.97,930.23,946.43,274.22,960.73) OR col3 <= 746

statement ok
CREATE VIEW view_2_tab4_89 AS SELECT pk, col0 FROM tab4 WHERE NOT (col1 <= 38.96 AND col4 IN (717.97,930.23,946.43,274.22,960.73) OR col3 <= 746)

statement ok
CREATE VIEW view_3_tab4_89 AS SELECT pk FROM view_1_tab4_89

query II rowsort label-1200-1
SELECT pk, col0 FROM tab4 WHERE col1 <= 38.96 AND col4 IN (717.97,930.23,946.43,274.22,960.73) OR col3 <= 746
----
154 values hashing to e4d4a5f89d58d74513d992b0e161f804

query II rowsort label-1200-2
SELECT pk, col0 FROM tab4 WHERE NOT (col1 <= 38.96 AND col4 IN (717.97,930.23,946.43,274.22,960.73) OR col3 <= 746)
----
46 values hashing to 4fa30ec8ba0014064a089419681c93a4

query II rowsort label-1200-1
SELECT pk, col0 FROM view_1_tab4_89
----
154 values hashing to e4d4a5f89d58d74513d992b0e161f804

query II rowsort label-1200-2
SELECT pk, col0 FROM view_2_tab4_89
----
46 values hashing to 4fa30ec8ba0014064a089419681c93a4

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col1 <= 38.96 AND col4 IN (717.97,930.23,946.43,274.22,960.73) OR col3 <= 746 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col1 <= 38.96 AND col4 IN (717.97,930.23,946.43,274.22,960.73) OR col3 <= 746)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_89 UNION ALL SELECT pk, col0 FROM view_2_tab4_89
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col1 <= 38.96 AND col4 IN (717.97,930.23,946.43,274.22,960.73) OR col3 <= 746 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col1 <= 38.96 AND col4 IN (717.97,930.23,946.43,274.22,960.73) OR col3 <= 746)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_89 UNION SELECT pk, col0 FROM view_2_tab4_89
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-1200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col1 <= 38.96 AND col4 IN (717.97,930.23,946.43,274.22,960.73) OR col3 <= 746 ) AS tab4_89
----
77 values hashing to d40f878ba822143dafeedb997ca66916

query I rowsort label-1200-3
SELECT * FROM view_3_tab4_89
----
77 values hashing to d40f878ba822143dafeedb997ca66916

query I rowsort label-1200-3
SELECT pk FROM tab4 WHERE col1 <= 38.96 AND col4 IN (717.97,930.23,946.43,274.22,960.73) OR col3 <= 746
----
77 values hashing to d40f878ba822143dafeedb997ca66916

statement ok
DROP VIEW view_1_tab4_89

statement ok
DROP VIEW view_2_tab4_89

statement ok
DROP VIEW view_3_tab4_89

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab0_90 AS SELECT pk, col0 FROM tab0 WHERE ((col1 < 929.98 AND col0 = 621 AND col0 >= 647 AND col0 > 942 OR col3 < 482 OR col0 < 592 AND col4 = 306.35 OR col0 >= 122 OR ((((col0 > 421)))) OR col3 IS NULL AND col1 IS NULL))

statement ok
CREATE VIEW view_2_tab0_90 AS SELECT pk, col0 FROM tab0 WHERE NOT (((col1 < 929.98 AND col0 = 621 AND col0 >= 647 AND col0 > 942 OR col3 < 482 OR col0 < 592 AND col4 = 306.35 OR col0 >= 122 OR ((((col0 > 421)))) OR col3 IS NULL AND col1 IS NULL)))

statement ok
CREATE VIEW view_3_tab0_90 AS SELECT pk FROM view_1_tab0_90

query II rowsort label-1300-1
SELECT pk, col0 FROM tab0 WHERE ((col1 < 929.98 AND col0 = 621 AND col0 >= 647 AND col0 > 942 OR col3 < 482 OR col0 < 592 AND col4 = 306.35 OR col0 >= 122 OR ((((col0 > 421)))) OR col3 IS NULL AND col1 IS NULL))
----
188 values hashing to 0866d47d3b6b393bc07e2b35e269f094

query II rowsort label-1300-2
SELECT pk, col0 FROM tab0 WHERE NOT (((col1 < 929.98 AND col0 = 621 AND col0 >= 647 AND col0 > 942 OR col3 < 482 OR col0 < 592 AND col4 = 306.35 OR col0 >= 122 OR ((((col0 > 421)))) OR col3 IS NULL AND col1 IS NULL)))
----
12 values hashing to 4aa613704a5c73319d628f1e516af338

query II rowsort label-1300-1
SELECT pk, col0 FROM view_1_tab0_90
----
188 values hashing to 0866d47d3b6b393bc07e2b35e269f094

query II rowsort label-1300-2
SELECT pk, col0 FROM view_2_tab0_90
----
12 values hashing to 4aa613704a5c73319d628f1e516af338

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE ((col1 < 929.98 AND col0 = 621 AND col0 >= 647 AND col0 > 942 OR col3 < 482 OR col0 < 592 AND col4 = 306.35 OR col0 >= 122 OR ((((col0 > 421)))) OR col3 IS NULL AND col1 IS NULL)) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (((col1 < 929.98 AND col0 = 621 AND col0 >= 647 AND col0 > 942 OR col3 < 482 OR col0 < 592 AND col4 = 306.35 OR col0 >= 122 OR ((((col0 > 421)))) OR col3 IS NULL AND col1 IS NULL)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_90 UNION ALL SELECT pk, col0 FROM view_2_tab0_90
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE ((col1 < 929.98 AND col0 = 621 AND col0 >= 647 AND col0 > 942 OR col3 < 482 OR col0 < 592 AND col4 = 306.35 OR col0 >= 122 OR ((((col0 > 421)))) OR col3 IS NULL AND col1 IS NULL)) UNION SELECT pk, col0 FROM tab0 WHERE NOT (((col1 < 929.98 AND col0 = 621 AND col0 >= 647 AND col0 > 942 OR col3 < 482 OR col0 < 592 AND col4 = 306.35 OR col0 >= 122 OR ((((col0 > 421)))) OR col3 IS NULL AND col1 IS NULL)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_90 UNION SELECT pk, col0 FROM view_2_tab0_90
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-1300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE ((col1 < 929.98 AND col0 = 621 AND col0 >= 647 AND col0 > 942 OR col3 < 482 OR col0 < 592 AND col4 = 306.35 OR col0 >= 122 OR ((((col0 > 421)))) OR col3 IS NULL AND col1 IS NULL)) ) AS tab0_90
----
94 values hashing to 93b27a702d8af5b7b85020665d777fba

query I rowsort label-1300-3
SELECT * FROM view_3_tab0_90
----
94 values hashing to 93b27a702d8af5b7b85020665d777fba

query I rowsort label-1300-3
SELECT pk FROM tab0 WHERE ((col1 < 929.98 AND col0 = 621 AND col0 >= 647 AND col0 > 942 OR col3 < 482 OR col0 < 592 AND col4 = 306.35 OR col0 >= 122 OR ((((col0 > 421)))) OR col3 IS NULL AND col1 IS NULL))
----
94 values hashing to 93b27a702d8af5b7b85020665d777fba

statement ok
DROP VIEW view_1_tab0_90

statement ok
DROP VIEW view_2_tab0_90

statement ok
DROP VIEW view_3_tab0_90

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab1_90 AS SELECT pk, col0 FROM tab1 WHERE ((col1 < 929.98 AND col0 = 621 AND col0 >= 647 AND col0 > 942 OR col3 < 482 OR col0 < 592 AND col4 = 306.35 OR col0 >= 122 OR ((((col0 > 421)))) OR col3 IS NULL AND col1 IS NULL))

statement ok
CREATE VIEW view_2_tab1_90 AS SELECT pk, col0 FROM tab1 WHERE NOT (((col1 < 929.98 AND col0 = 621 AND col0 >= 647 AND col0 > 942 OR col3 < 482 OR col0 < 592 AND col4 = 306.35 OR col0 >= 122 OR ((((col0 > 421)))) OR col3 IS NULL AND col1 IS NULL)))

statement ok
CREATE VIEW view_3_tab1_90 AS SELECT pk FROM view_1_tab1_90

query II rowsort label-1300-1
SELECT pk, col0 FROM tab1 WHERE ((col1 < 929.98 AND col0 = 621 AND col0 >= 647 AND col0 > 942 OR col3 < 482 OR col0 < 592 AND col4 = 306.35 OR col0 >= 122 OR ((((col0 > 421)))) OR col3 IS NULL AND col1 IS NULL))
----
188 values hashing to 0866d47d3b6b393bc07e2b35e269f094

query II rowsort label-1300-2
SELECT pk, col0 FROM tab1 WHERE NOT (((col1 < 929.98 AND col0 = 621 AND col0 >= 647 AND col0 > 942 OR col3 < 482 OR col0 < 592 AND col4 = 306.35 OR col0 >= 122 OR ((((col0 > 421)))) OR col3 IS NULL AND col1 IS NULL)))
----
12 values hashing to 4aa613704a5c73319d628f1e516af338

query II rowsort label-1300-1
SELECT pk, col0 FROM view_1_tab1_90
----
188 values hashing to 0866d47d3b6b393bc07e2b35e269f094

query II rowsort label-1300-2
SELECT pk, col0 FROM view_2_tab1_90
----
12 values hashing to 4aa613704a5c73319d628f1e516af338

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE ((col1 < 929.98 AND col0 = 621 AND col0 >= 647 AND col0 > 942 OR col3 < 482 OR col0 < 592 AND col4 = 306.35 OR col0 >= 122 OR ((((col0 > 421)))) OR col3 IS NULL AND col1 IS NULL)) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (((col1 < 929.98 AND col0 = 621 AND col0 >= 647 AND col0 > 942 OR col3 < 482 OR col0 < 592 AND col4 = 306.35 OR col0 >= 122 OR ((((col0 > 421)))) OR col3 IS NULL AND col1 IS NULL)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_90 UNION ALL SELECT pk, col0 FROM view_2_tab1_90
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE ((col1 < 929.98 AND col0 = 621 AND col0 >= 647 AND col0 > 942 OR col3 < 482 OR col0 < 592 AND col4 = 306.35 OR col0 >= 122 OR ((((col0 > 421)))) OR col3 IS NULL AND col1 IS NULL)) UNION SELECT pk, col0 FROM tab1 WHERE NOT (((col1 < 929.98 AND col0 = 621 AND col0 >= 647 AND col0 > 942 OR col3 < 482 OR col0 < 592 AND col4 = 306.35 OR col0 >= 122 OR ((((col0 > 421)))) OR col3 IS NULL AND col1 IS NULL)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_90 UNION SELECT pk, col0 FROM view_2_tab1_90
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-1300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE ((col1 < 929.98 AND col0 = 621 AND col0 >= 647 AND col0 > 942 OR col3 < 482 OR col0 < 592 AND col4 = 306.35 OR col0 >= 122 OR ((((col0 > 421)))) OR col3 IS NULL AND col1 IS NULL)) ) AS tab1_90
----
94 values hashing to 93b27a702d8af5b7b85020665d777fba

query I rowsort label-1300-3
SELECT * FROM view_3_tab1_90
----
94 values hashing to 93b27a702d8af5b7b85020665d777fba

query I rowsort label-1300-3
SELECT pk FROM tab1 WHERE ((col1 < 929.98 AND col0 = 621 AND col0 >= 647 AND col0 > 942 OR col3 < 482 OR col0 < 592 AND col4 = 306.35 OR col0 >= 122 OR ((((col0 > 421)))) OR col3 IS NULL AND col1 IS NULL))
----
94 values hashing to 93b27a702d8af5b7b85020665d777fba

statement ok
DROP VIEW view_1_tab1_90

statement ok
DROP VIEW view_2_tab1_90

statement ok
DROP VIEW view_3_tab1_90

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab2_90 AS SELECT pk, col0 FROM tab2 WHERE ((col1 < 929.98 AND col0 = 621 AND col0 >= 647 AND col0 > 942 OR col3 < 482 OR col0 < 592 AND col4 = 306.35 OR col0 >= 122 OR ((((col0 > 421)))) OR col3 IS NULL AND col1 IS NULL))

statement ok
CREATE VIEW view_2_tab2_90 AS SELECT pk, col0 FROM tab2 WHERE NOT (((col1 < 929.98 AND col0 = 621 AND col0 >= 647 AND col0 > 942 OR col3 < 482 OR col0 < 592 AND col4 = 306.35 OR col0 >= 122 OR ((((col0 > 421)))) OR col3 IS NULL AND col1 IS NULL)))

statement ok
CREATE VIEW view_3_tab2_90 AS SELECT pk FROM view_1_tab2_90

query II rowsort label-1300-1
SELECT pk, col0 FROM tab2 WHERE ((col1 < 929.98 AND col0 = 621 AND col0 >= 647 AND col0 > 942 OR col3 < 482 OR col0 < 592 AND col4 = 306.35 OR col0 >= 122 OR ((((col0 > 421)))) OR col3 IS NULL AND col1 IS NULL))
----
188 values hashing to 0866d47d3b6b393bc07e2b35e269f094

query II rowsort label-1300-2
SELECT pk, col0 FROM tab2 WHERE NOT (((col1 < 929.98 AND col0 = 621 AND col0 >= 647 AND col0 > 942 OR col3 < 482 OR col0 < 592 AND col4 = 306.35 OR col0 >= 122 OR ((((col0 > 421)))) OR col3 IS NULL AND col1 IS NULL)))
----
12 values hashing to 4aa613704a5c73319d628f1e516af338

query II rowsort label-1300-1
SELECT pk, col0 FROM view_1_tab2_90
----
188 values hashing to 0866d47d3b6b393bc07e2b35e269f094

query II rowsort label-1300-2
SELECT pk, col0 FROM view_2_tab2_90
----
12 values hashing to 4aa613704a5c73319d628f1e516af338

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE ((col1 < 929.98 AND col0 = 621 AND col0 >= 647 AND col0 > 942 OR col3 < 482 OR col0 < 592 AND col4 = 306.35 OR col0 >= 122 OR ((((col0 > 421)))) OR col3 IS NULL AND col1 IS NULL)) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (((col1 < 929.98 AND col0 = 621 AND col0 >= 647 AND col0 > 942 OR col3 < 482 OR col0 < 592 AND col4 = 306.35 OR col0 >= 122 OR ((((col0 > 421)))) OR col3 IS NULL AND col1 IS NULL)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_90 UNION ALL SELECT pk, col0 FROM view_2_tab2_90
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE ((col1 < 929.98 AND col0 = 621 AND col0 >= 647 AND col0 > 942 OR col3 < 482 OR col0 < 592 AND col4 = 306.35 OR col0 >= 122 OR ((((col0 > 421)))) OR col3 IS NULL AND col1 IS NULL)) UNION SELECT pk, col0 FROM tab2 WHERE NOT (((col1 < 929.98 AND col0 = 621 AND col0 >= 647 AND col0 > 942 OR col3 < 482 OR col0 < 592 AND col4 = 306.35 OR col0 >= 122 OR ((((col0 > 421)))) OR col3 IS NULL AND col1 IS NULL)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_90 UNION SELECT pk, col0 FROM view_2_tab2_90
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-1300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE ((col1 < 929.98 AND col0 = 621 AND col0 >= 647 AND col0 > 942 OR col3 < 482 OR col0 < 592 AND col4 = 306.35 OR col0 >= 122 OR ((((col0 > 421)))) OR col3 IS NULL AND col1 IS NULL)) ) AS tab2_90
----
94 values hashing to 93b27a702d8af5b7b85020665d777fba

query I rowsort label-1300-3
SELECT * FROM view_3_tab2_90
----
94 values hashing to 93b27a702d8af5b7b85020665d777fba

query I rowsort label-1300-3
SELECT pk FROM tab2 WHERE ((col1 < 929.98 AND col0 = 621 AND col0 >= 647 AND col0 > 942 OR col3 < 482 OR col0 < 592 AND col4 = 306.35 OR col0 >= 122 OR ((((col0 > 421)))) OR col3 IS NULL AND col1 IS NULL))
----
94 values hashing to 93b27a702d8af5b7b85020665d777fba

statement ok
DROP VIEW view_1_tab2_90

statement ok
DROP VIEW view_2_tab2_90

statement ok
DROP VIEW view_3_tab2_90

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab3_90 AS SELECT pk, col0 FROM tab3 WHERE ((col1 < 929.98 AND col0 = 621 AND col0 >= 647 AND col0 > 942 OR col3 < 482 OR col0 < 592 AND col4 = 306.35 OR col0 >= 122 OR ((((col0 > 421)))) OR col3 IS NULL AND col1 IS NULL))

statement ok
CREATE VIEW view_2_tab3_90 AS SELECT pk, col0 FROM tab3 WHERE NOT (((col1 < 929.98 AND col0 = 621 AND col0 >= 647 AND col0 > 942 OR col3 < 482 OR col0 < 592 AND col4 = 306.35 OR col0 >= 122 OR ((((col0 > 421)))) OR col3 IS NULL AND col1 IS NULL)))

statement ok
CREATE VIEW view_3_tab3_90 AS SELECT pk FROM view_1_tab3_90

query II rowsort label-1300-1
SELECT pk, col0 FROM tab3 WHERE ((col1 < 929.98 AND col0 = 621 AND col0 >= 647 AND col0 > 942 OR col3 < 482 OR col0 < 592 AND col4 = 306.35 OR col0 >= 122 OR ((((col0 > 421)))) OR col3 IS NULL AND col1 IS NULL))
----
188 values hashing to 0866d47d3b6b393bc07e2b35e269f094

query II rowsort label-1300-2
SELECT pk, col0 FROM tab3 WHERE NOT (((col1 < 929.98 AND col0 = 621 AND col0 >= 647 AND col0 > 942 OR col3 < 482 OR col0 < 592 AND col4 = 306.35 OR col0 >= 122 OR ((((col0 > 421)))) OR col3 IS NULL AND col1 IS NULL)))
----
12 values hashing to 4aa613704a5c73319d628f1e516af338

query II rowsort label-1300-1
SELECT pk, col0 FROM view_1_tab3_90
----
188 values hashing to 0866d47d3b6b393bc07e2b35e269f094

query II rowsort label-1300-2
SELECT pk, col0 FROM view_2_tab3_90
----
12 values hashing to 4aa613704a5c73319d628f1e516af338

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE ((col1 < 929.98 AND col0 = 621 AND col0 >= 647 AND col0 > 942 OR col3 < 482 OR col0 < 592 AND col4 = 306.35 OR col0 >= 122 OR ((((col0 > 421)))) OR col3 IS NULL AND col1 IS NULL)) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (((col1 < 929.98 AND col0 = 621 AND col0 >= 647 AND col0 > 942 OR col3 < 482 OR col0 < 592 AND col4 = 306.35 OR col0 >= 122 OR ((((col0 > 421)))) OR col3 IS NULL AND col1 IS NULL)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_90 UNION ALL SELECT pk, col0 FROM view_2_tab3_90
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE ((col1 < 929.98 AND col0 = 621 AND col0 >= 647 AND col0 > 942 OR col3 < 482 OR col0 < 592 AND col4 = 306.35 OR col0 >= 122 OR ((((col0 > 421)))) OR col3 IS NULL AND col1 IS NULL)) UNION SELECT pk, col0 FROM tab3 WHERE NOT (((col1 < 929.98 AND col0 = 621 AND col0 >= 647 AND col0 > 942 OR col3 < 482 OR col0 < 592 AND col4 = 306.35 OR col0 >= 122 OR ((((col0 > 421)))) OR col3 IS NULL AND col1 IS NULL)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_90 UNION SELECT pk, col0 FROM view_2_tab3_90
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-1300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE ((col1 < 929.98 AND col0 = 621 AND col0 >= 647 AND col0 > 942 OR col3 < 482 OR col0 < 592 AND col4 = 306.35 OR col0 >= 122 OR ((((col0 > 421)))) OR col3 IS NULL AND col1 IS NULL)) ) AS tab3_90
----
94 values hashing to 93b27a702d8af5b7b85020665d777fba

query I rowsort label-1300-3
SELECT * FROM view_3_tab3_90
----
94 values hashing to 93b27a702d8af5b7b85020665d777fba

query I rowsort label-1300-3
SELECT pk FROM tab3 WHERE ((col1 < 929.98 AND col0 = 621 AND col0 >= 647 AND col0 > 942 OR col3 < 482 OR col0 < 592 AND col4 = 306.35 OR col0 >= 122 OR ((((col0 > 421)))) OR col3 IS NULL AND col1 IS NULL))
----
94 values hashing to 93b27a702d8af5b7b85020665d777fba

statement ok
DROP VIEW view_1_tab3_90

statement ok
DROP VIEW view_2_tab3_90

statement ok
DROP VIEW view_3_tab3_90

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab4_90 AS SELECT pk, col0 FROM tab4 WHERE ((col1 < 929.98 AND col0 = 621 AND col0 >= 647 AND col0 > 942 OR col3 < 482 OR col0 < 592 AND col4 = 306.35 OR col0 >= 122 OR ((((col0 > 421)))) OR col3 IS NULL AND col1 IS NULL))

statement ok
CREATE VIEW view_2_tab4_90 AS SELECT pk, col0 FROM tab4 WHERE NOT (((col1 < 929.98 AND col0 = 621 AND col0 >= 647 AND col0 > 942 OR col3 < 482 OR col0 < 592 AND col4 = 306.35 OR col0 >= 122 OR ((((col0 > 421)))) OR col3 IS NULL AND col1 IS NULL)))

statement ok
CREATE VIEW view_3_tab4_90 AS SELECT pk FROM view_1_tab4_90

query II rowsort label-1300-1
SELECT pk, col0 FROM tab4 WHERE ((col1 < 929.98 AND col0 = 621 AND col0 >= 647 AND col0 > 942 OR col3 < 482 OR col0 < 592 AND col4 = 306.35 OR col0 >= 122 OR ((((col0 > 421)))) OR col3 IS NULL AND col1 IS NULL))
----
188 values hashing to 0866d47d3b6b393bc07e2b35e269f094

query II rowsort label-1300-2
SELECT pk, col0 FROM tab4 WHERE NOT (((col1 < 929.98 AND col0 = 621 AND col0 >= 647 AND col0 > 942 OR col3 < 482 OR col0 < 592 AND col4 = 306.35 OR col0 >= 122 OR ((((col0 > 421)))) OR col3 IS NULL AND col1 IS NULL)))
----
12 values hashing to 4aa613704a5c73319d628f1e516af338

query II rowsort label-1300-1
SELECT pk, col0 FROM view_1_tab4_90
----
188 values hashing to 0866d47d3b6b393bc07e2b35e269f094

query II rowsort label-1300-2
SELECT pk, col0 FROM view_2_tab4_90
----
12 values hashing to 4aa613704a5c73319d628f1e516af338

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE ((col1 < 929.98 AND col0 = 621 AND col0 >= 647 AND col0 > 942 OR col3 < 482 OR col0 < 592 AND col4 = 306.35 OR col0 >= 122 OR ((((col0 > 421)))) OR col3 IS NULL AND col1 IS NULL)) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (((col1 < 929.98 AND col0 = 621 AND col0 >= 647 AND col0 > 942 OR col3 < 482 OR col0 < 592 AND col4 = 306.35 OR col0 >= 122 OR ((((col0 > 421)))) OR col3 IS NULL AND col1 IS NULL)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_90 UNION ALL SELECT pk, col0 FROM view_2_tab4_90
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE ((col1 < 929.98 AND col0 = 621 AND col0 >= 647 AND col0 > 942 OR col3 < 482 OR col0 < 592 AND col4 = 306.35 OR col0 >= 122 OR ((((col0 > 421)))) OR col3 IS NULL AND col1 IS NULL)) UNION SELECT pk, col0 FROM tab4 WHERE NOT (((col1 < 929.98 AND col0 = 621 AND col0 >= 647 AND col0 > 942 OR col3 < 482 OR col0 < 592 AND col4 = 306.35 OR col0 >= 122 OR ((((col0 > 421)))) OR col3 IS NULL AND col1 IS NULL)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_90 UNION SELECT pk, col0 FROM view_2_tab4_90
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-1300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE ((col1 < 929.98 AND col0 = 621 AND col0 >= 647 AND col0 > 942 OR col3 < 482 OR col0 < 592 AND col4 = 306.35 OR col0 >= 122 OR ((((col0 > 421)))) OR col3 IS NULL AND col1 IS NULL)) ) AS tab4_90
----
94 values hashing to 93b27a702d8af5b7b85020665d777fba

query I rowsort label-1300-3
SELECT * FROM view_3_tab4_90
----
94 values hashing to 93b27a702d8af5b7b85020665d777fba

query I rowsort label-1300-3
SELECT pk FROM tab4 WHERE ((col1 < 929.98 AND col0 = 621 AND col0 >= 647 AND col0 > 942 OR col3 < 482 OR col0 < 592 AND col4 = 306.35 OR col0 >= 122 OR ((((col0 > 421)))) OR col3 IS NULL AND col1 IS NULL))
----
94 values hashing to 93b27a702d8af5b7b85020665d777fba

statement ok
DROP VIEW view_1_tab4_90

statement ok
DROP VIEW view_2_tab4_90

statement ok
DROP VIEW view_3_tab4_90

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab0_91 AS SELECT pk, col0 FROM tab0 WHERE col0 BETWEEN 426 AND 515

statement ok
CREATE VIEW view_2_tab0_91 AS SELECT pk, col0 FROM tab0 WHERE NOT (col0 BETWEEN 426 AND 515)

statement ok
CREATE VIEW view_3_tab0_91 AS SELECT pk FROM view_1_tab0_91

query II rowsort label-1400-1
SELECT pk, col0 FROM tab0 WHERE col0 BETWEEN 426 AND 515
----
22 values hashing to 95cc9174b071037948b905cf2c959a1c

query II rowsort label-1400-2
SELECT pk, col0 FROM tab0 WHERE NOT (col0 BETWEEN 426 AND 515)
----
178 values hashing to d4489710b7975982d73dc207e4891a21

query II rowsort label-1400-1
SELECT pk, col0 FROM view_1_tab0_91
----
22 values hashing to 95cc9174b071037948b905cf2c959a1c

query II rowsort label-1400-2
SELECT pk, col0 FROM view_2_tab0_91
----
178 values hashing to d4489710b7975982d73dc207e4891a21

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col0 BETWEEN 426 AND 515 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col0 BETWEEN 426 AND 515)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_91 UNION ALL SELECT pk, col0 FROM view_2_tab0_91
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col0 BETWEEN 426 AND 515 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col0 BETWEEN 426 AND 515)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_91 UNION SELECT pk, col0 FROM view_2_tab0_91
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-1400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col0 BETWEEN 426 AND 515 ) AS tab0_91
----
11 values hashing to d10d6c7a3d9afe6ea0ed494345f2e84f

query I rowsort label-1400-3
SELECT * FROM view_3_tab0_91
----
11 values hashing to d10d6c7a3d9afe6ea0ed494345f2e84f

query I rowsort label-1400-3
SELECT pk FROM tab0 WHERE col0 BETWEEN 426 AND 515
----
11 values hashing to d10d6c7a3d9afe6ea0ed494345f2e84f

statement ok
DROP VIEW view_1_tab0_91

statement ok
DROP VIEW view_2_tab0_91

statement ok
DROP VIEW view_3_tab0_91

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab1_91 AS SELECT pk, col0 FROM tab1 WHERE col0 BETWEEN 426 AND 515

statement ok
CREATE VIEW view_2_tab1_91 AS SELECT pk, col0 FROM tab1 WHERE NOT (col0 BETWEEN 426 AND 515)

statement ok
CREATE VIEW view_3_tab1_91 AS SELECT pk FROM view_1_tab1_91

query II rowsort label-1400-1
SELECT pk, col0 FROM tab1 WHERE col0 BETWEEN 426 AND 515
----
22 values hashing to 95cc9174b071037948b905cf2c959a1c

query II rowsort label-1400-2
SELECT pk, col0 FROM tab1 WHERE NOT (col0 BETWEEN 426 AND 515)
----
178 values hashing to d4489710b7975982d73dc207e4891a21

query II rowsort label-1400-1
SELECT pk, col0 FROM view_1_tab1_91
----
22 values hashing to 95cc9174b071037948b905cf2c959a1c

query II rowsort label-1400-2
SELECT pk, col0 FROM view_2_tab1_91
----
178 values hashing to d4489710b7975982d73dc207e4891a21

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col0 BETWEEN 426 AND 515 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col0 BETWEEN 426 AND 515)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_91 UNION ALL SELECT pk, col0 FROM view_2_tab1_91
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col0 BETWEEN 426 AND 515 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col0 BETWEEN 426 AND 515)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_91 UNION SELECT pk, col0 FROM view_2_tab1_91
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-1400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col0 BETWEEN 426 AND 515 ) AS tab1_91
----
11 values hashing to d10d6c7a3d9afe6ea0ed494345f2e84f

query I rowsort label-1400-3
SELECT * FROM view_3_tab1_91
----
11 values hashing to d10d6c7a3d9afe6ea0ed494345f2e84f

query I rowsort label-1400-3
SELECT pk FROM tab1 WHERE col0 BETWEEN 426 AND 515
----
11 values hashing to d10d6c7a3d9afe6ea0ed494345f2e84f

statement ok
DROP VIEW view_1_tab1_91

statement ok
DROP VIEW view_2_tab1_91

statement ok
DROP VIEW view_3_tab1_91

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab2_91 AS SELECT pk, col0 FROM tab2 WHERE col0 BETWEEN 426 AND 515

statement ok
CREATE VIEW view_2_tab2_91 AS SELECT pk, col0 FROM tab2 WHERE NOT (col0 BETWEEN 426 AND 515)

statement ok
CREATE VIEW view_3_tab2_91 AS SELECT pk FROM view_1_tab2_91

query II rowsort label-1400-1
SELECT pk, col0 FROM tab2 WHERE col0 BETWEEN 426 AND 515
----
22 values hashing to 95cc9174b071037948b905cf2c959a1c

query II rowsort label-1400-2
SELECT pk, col0 FROM tab2 WHERE NOT (col0 BETWEEN 426 AND 515)
----
178 values hashing to d4489710b7975982d73dc207e4891a21

query II rowsort label-1400-1
SELECT pk, col0 FROM view_1_tab2_91
----
22 values hashing to 95cc9174b071037948b905cf2c959a1c

query II rowsort label-1400-2
SELECT pk, col0 FROM view_2_tab2_91
----
178 values hashing to d4489710b7975982d73dc207e4891a21

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col0 BETWEEN 426 AND 515 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col0 BETWEEN 426 AND 515)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_91 UNION ALL SELECT pk, col0 FROM view_2_tab2_91
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col0 BETWEEN 426 AND 515 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col0 BETWEEN 426 AND 515)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_91 UNION SELECT pk, col0 FROM view_2_tab2_91
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-1400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col0 BETWEEN 426 AND 515 ) AS tab2_91
----
11 values hashing to d10d6c7a3d9afe6ea0ed494345f2e84f

query I rowsort label-1400-3
SELECT * FROM view_3_tab2_91
----
11 values hashing to d10d6c7a3d9afe6ea0ed494345f2e84f

query I rowsort label-1400-3
SELECT pk FROM tab2 WHERE col0 BETWEEN 426 AND 515
----
11 values hashing to d10d6c7a3d9afe6ea0ed494345f2e84f

statement ok
DROP VIEW view_1_tab2_91

statement ok
DROP VIEW view_2_tab2_91

statement ok
DROP VIEW view_3_tab2_91

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab3_91 AS SELECT pk, col0 FROM tab3 WHERE col0 BETWEEN 426 AND 515

statement ok
CREATE VIEW view_2_tab3_91 AS SELECT pk, col0 FROM tab3 WHERE NOT (col0 BETWEEN 426 AND 515)

statement ok
CREATE VIEW view_3_tab3_91 AS SELECT pk FROM view_1_tab3_91

query II rowsort label-1400-1
SELECT pk, col0 FROM tab3 WHERE col0 BETWEEN 426 AND 515
----
22 values hashing to 95cc9174b071037948b905cf2c959a1c

query II rowsort label-1400-2
SELECT pk, col0 FROM tab3 WHERE NOT (col0 BETWEEN 426 AND 515)
----
178 values hashing to d4489710b7975982d73dc207e4891a21

query II rowsort label-1400-1
SELECT pk, col0 FROM view_1_tab3_91
----
22 values hashing to 95cc9174b071037948b905cf2c959a1c

query II rowsort label-1400-2
SELECT pk, col0 FROM view_2_tab3_91
----
178 values hashing to d4489710b7975982d73dc207e4891a21

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col0 BETWEEN 426 AND 515 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col0 BETWEEN 426 AND 515)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_91 UNION ALL SELECT pk, col0 FROM view_2_tab3_91
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col0 BETWEEN 426 AND 515 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col0 BETWEEN 426 AND 515)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_91 UNION SELECT pk, col0 FROM view_2_tab3_91
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-1400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col0 BETWEEN 426 AND 515 ) AS tab3_91
----
11 values hashing to d10d6c7a3d9afe6ea0ed494345f2e84f

query I rowsort label-1400-3
SELECT * FROM view_3_tab3_91
----
11 values hashing to d10d6c7a3d9afe6ea0ed494345f2e84f

query I rowsort label-1400-3
SELECT pk FROM tab3 WHERE col0 BETWEEN 426 AND 515
----
11 values hashing to d10d6c7a3d9afe6ea0ed494345f2e84f

statement ok
DROP VIEW view_1_tab3_91

statement ok
DROP VIEW view_2_tab3_91

statement ok
DROP VIEW view_3_tab3_91

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab4_91 AS SELECT pk, col0 FROM tab4 WHERE col0 BETWEEN 426 AND 515

statement ok
CREATE VIEW view_2_tab4_91 AS SELECT pk, col0 FROM tab4 WHERE NOT (col0 BETWEEN 426 AND 515)

statement ok
CREATE VIEW view_3_tab4_91 AS SELECT pk FROM view_1_tab4_91

query II rowsort label-1400-1
SELECT pk, col0 FROM tab4 WHERE col0 BETWEEN 426 AND 515
----
22 values hashing to 95cc9174b071037948b905cf2c959a1c

query II rowsort label-1400-2
SELECT pk, col0 FROM tab4 WHERE NOT (col0 BETWEEN 426 AND 515)
----
178 values hashing to d4489710b7975982d73dc207e4891a21

query II rowsort label-1400-1
SELECT pk, col0 FROM view_1_tab4_91
----
22 values hashing to 95cc9174b071037948b905cf2c959a1c

query II rowsort label-1400-2
SELECT pk, col0 FROM view_2_tab4_91
----
178 values hashing to d4489710b7975982d73dc207e4891a21

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col0 BETWEEN 426 AND 515 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col0 BETWEEN 426 AND 515)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_91 UNION ALL SELECT pk, col0 FROM view_2_tab4_91
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col0 BETWEEN 426 AND 515 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col0 BETWEEN 426 AND 515)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_91 UNION SELECT pk, col0 FROM view_2_tab4_91
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-1400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col0 BETWEEN 426 AND 515 ) AS tab4_91
----
11 values hashing to d10d6c7a3d9afe6ea0ed494345f2e84f

query I rowsort label-1400-3
SELECT * FROM view_3_tab4_91
----
11 values hashing to d10d6c7a3d9afe6ea0ed494345f2e84f

query I rowsort label-1400-3
SELECT pk FROM tab4 WHERE col0 BETWEEN 426 AND 515
----
11 values hashing to d10d6c7a3d9afe6ea0ed494345f2e84f

statement ok
DROP VIEW view_1_tab4_91

statement ok
DROP VIEW view_2_tab4_91

statement ok
DROP VIEW view_3_tab4_91

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab0_92 AS SELECT pk, col0 FROM tab0 WHERE col0 >= 278 AND col3 <= 409

statement ok
CREATE VIEW view_2_tab0_92 AS SELECT pk, col0 FROM tab0 WHERE NOT (col0 >= 278 AND col3 <= 409)

statement ok
CREATE VIEW view_3_tab0_92 AS SELECT pk FROM view_1_tab0_92

query II rowsort label-1500-1
SELECT pk, col0 FROM tab0 WHERE col0 >= 278 AND col3 <= 409
----
52 values hashing to 0ec077f65194cf111b1c11eed9f62afb

query II rowsort label-1500-2
SELECT pk, col0 FROM tab0 WHERE NOT (col0 >= 278 AND col3 <= 409)
----
148 values hashing to b500c1a2d08273a66bda2b0995daf0b9

query II rowsort label-1500-1
SELECT pk, col0 FROM view_1_tab0_92
----
52 values hashing to 0ec077f65194cf111b1c11eed9f62afb

query II rowsort label-1500-2
SELECT pk, col0 FROM view_2_tab0_92
----
148 values hashing to b500c1a2d08273a66bda2b0995daf0b9

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col0 >= 278 AND col3 <= 409 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col0 >= 278 AND col3 <= 409)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_92 UNION ALL SELECT pk, col0 FROM view_2_tab0_92
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col0 >= 278 AND col3 <= 409 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col0 >= 278 AND col3 <= 409)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_92 UNION SELECT pk, col0 FROM view_2_tab0_92
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-1500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col0 >= 278 AND col3 <= 409 ) AS tab0_92
----
26 values hashing to 79bf8f02e02e8a02771e4851ea70cda9

query I rowsort label-1500-3
SELECT * FROM view_3_tab0_92
----
26 values hashing to 79bf8f02e02e8a02771e4851ea70cda9

query I rowsort label-1500-3
SELECT pk FROM tab0 WHERE col0 >= 278 AND col3 <= 409
----
26 values hashing to 79bf8f02e02e8a02771e4851ea70cda9

statement ok
DROP VIEW view_1_tab0_92

statement ok
DROP VIEW view_2_tab0_92

statement ok
DROP VIEW view_3_tab0_92

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab1_92 AS SELECT pk, col0 FROM tab1 WHERE col0 >= 278 AND col3 <= 409

statement ok
CREATE VIEW view_2_tab1_92 AS SELECT pk, col0 FROM tab1 WHERE NOT (col0 >= 278 AND col3 <= 409)

statement ok
CREATE VIEW view_3_tab1_92 AS SELECT pk FROM view_1_tab1_92

query II rowsort label-1500-1
SELECT pk, col0 FROM tab1 WHERE col0 >= 278 AND col3 <= 409
----
52 values hashing to 0ec077f65194cf111b1c11eed9f62afb

query II rowsort label-1500-2
SELECT pk, col0 FROM tab1 WHERE NOT (col0 >= 278 AND col3 <= 409)
----
148 values hashing to b500c1a2d08273a66bda2b0995daf0b9

query II rowsort label-1500-1
SELECT pk, col0 FROM view_1_tab1_92
----
52 values hashing to 0ec077f65194cf111b1c11eed9f62afb

query II rowsort label-1500-2
SELECT pk, col0 FROM view_2_tab1_92
----
148 values hashing to b500c1a2d08273a66bda2b0995daf0b9

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col0 >= 278 AND col3 <= 409 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col0 >= 278 AND col3 <= 409)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_92 UNION ALL SELECT pk, col0 FROM view_2_tab1_92
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col0 >= 278 AND col3 <= 409 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col0 >= 278 AND col3 <= 409)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_92 UNION SELECT pk, col0 FROM view_2_tab1_92
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-1500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col0 >= 278 AND col3 <= 409 ) AS tab1_92
----
26 values hashing to 79bf8f02e02e8a02771e4851ea70cda9

query I rowsort label-1500-3
SELECT * FROM view_3_tab1_92
----
26 values hashing to 79bf8f02e02e8a02771e4851ea70cda9

query I rowsort label-1500-3
SELECT pk FROM tab1 WHERE col0 >= 278 AND col3 <= 409
----
26 values hashing to 79bf8f02e02e8a02771e4851ea70cda9

statement ok
DROP VIEW view_1_tab1_92

statement ok
DROP VIEW view_2_tab1_92

statement ok
DROP VIEW view_3_tab1_92

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab2_92 AS SELECT pk, col0 FROM tab2 WHERE col0 >= 278 AND col3 <= 409

statement ok
CREATE VIEW view_2_tab2_92 AS SELECT pk, col0 FROM tab2 WHERE NOT (col0 >= 278 AND col3 <= 409)

statement ok
CREATE VIEW view_3_tab2_92 AS SELECT pk FROM view_1_tab2_92

query II rowsort label-1500-1
SELECT pk, col0 FROM tab2 WHERE col0 >= 278 AND col3 <= 409
----
52 values hashing to 0ec077f65194cf111b1c11eed9f62afb

query II rowsort label-1500-2
SELECT pk, col0 FROM tab2 WHERE NOT (col0 >= 278 AND col3 <= 409)
----
148 values hashing to b500c1a2d08273a66bda2b0995daf0b9

query II rowsort label-1500-1
SELECT pk, col0 FROM view_1_tab2_92
----
52 values hashing to 0ec077f65194cf111b1c11eed9f62afb

query II rowsort label-1500-2
SELECT pk, col0 FROM view_2_tab2_92
----
148 values hashing to b500c1a2d08273a66bda2b0995daf0b9

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col0 >= 278 AND col3 <= 409 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col0 >= 278 AND col3 <= 409)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_92 UNION ALL SELECT pk, col0 FROM view_2_tab2_92
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col0 >= 278 AND col3 <= 409 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col0 >= 278 AND col3 <= 409)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_92 UNION SELECT pk, col0 FROM view_2_tab2_92
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-1500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col0 >= 278 AND col3 <= 409 ) AS tab2_92
----
26 values hashing to 79bf8f02e02e8a02771e4851ea70cda9

query I rowsort label-1500-3
SELECT * FROM view_3_tab2_92
----
26 values hashing to 79bf8f02e02e8a02771e4851ea70cda9

query I rowsort label-1500-3
SELECT pk FROM tab2 WHERE col0 >= 278 AND col3 <= 409
----
26 values hashing to 79bf8f02e02e8a02771e4851ea70cda9

statement ok
DROP VIEW view_1_tab2_92

statement ok
DROP VIEW view_2_tab2_92

statement ok
DROP VIEW view_3_tab2_92

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab3_92 AS SELECT pk, col0 FROM tab3 WHERE col0 >= 278 AND col3 <= 409

statement ok
CREATE VIEW view_2_tab3_92 AS SELECT pk, col0 FROM tab3 WHERE NOT (col0 >= 278 AND col3 <= 409)

statement ok
CREATE VIEW view_3_tab3_92 AS SELECT pk FROM view_1_tab3_92

query II rowsort label-1500-1
SELECT pk, col0 FROM tab3 WHERE col0 >= 278 AND col3 <= 409
----
52 values hashing to 0ec077f65194cf111b1c11eed9f62afb

query II rowsort label-1500-2
SELECT pk, col0 FROM tab3 WHERE NOT (col0 >= 278 AND col3 <= 409)
----
148 values hashing to b500c1a2d08273a66bda2b0995daf0b9

query II rowsort label-1500-1
SELECT pk, col0 FROM view_1_tab3_92
----
52 values hashing to 0ec077f65194cf111b1c11eed9f62afb

query II rowsort label-1500-2
SELECT pk, col0 FROM view_2_tab3_92
----
148 values hashing to b500c1a2d08273a66bda2b0995daf0b9

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col0 >= 278 AND col3 <= 409 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col0 >= 278 AND col3 <= 409)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_92 UNION ALL SELECT pk, col0 FROM view_2_tab3_92
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col0 >= 278 AND col3 <= 409 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col0 >= 278 AND col3 <= 409)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_92 UNION SELECT pk, col0 FROM view_2_tab3_92
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-1500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col0 >= 278 AND col3 <= 409 ) AS tab3_92
----
26 values hashing to 79bf8f02e02e8a02771e4851ea70cda9

query I rowsort label-1500-3
SELECT * FROM view_3_tab3_92
----
26 values hashing to 79bf8f02e02e8a02771e4851ea70cda9

query I rowsort label-1500-3
SELECT pk FROM tab3 WHERE col0 >= 278 AND col3 <= 409
----
26 values hashing to 79bf8f02e02e8a02771e4851ea70cda9

statement ok
DROP VIEW view_1_tab3_92

statement ok
DROP VIEW view_2_tab3_92

statement ok
DROP VIEW view_3_tab3_92

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab4_92 AS SELECT pk, col0 FROM tab4 WHERE col0 >= 278 AND col3 <= 409

statement ok
CREATE VIEW view_2_tab4_92 AS SELECT pk, col0 FROM tab4 WHERE NOT (col0 >= 278 AND col3 <= 409)

statement ok
CREATE VIEW view_3_tab4_92 AS SELECT pk FROM view_1_tab4_92

query II rowsort label-1500-1
SELECT pk, col0 FROM tab4 WHERE col0 >= 278 AND col3 <= 409
----
52 values hashing to 0ec077f65194cf111b1c11eed9f62afb

query II rowsort label-1500-2
SELECT pk, col0 FROM tab4 WHERE NOT (col0 >= 278 AND col3 <= 409)
----
148 values hashing to b500c1a2d08273a66bda2b0995daf0b9

query II rowsort label-1500-1
SELECT pk, col0 FROM view_1_tab4_92
----
52 values hashing to 0ec077f65194cf111b1c11eed9f62afb

query II rowsort label-1500-2
SELECT pk, col0 FROM view_2_tab4_92
----
148 values hashing to b500c1a2d08273a66bda2b0995daf0b9

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col0 >= 278 AND col3 <= 409 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col0 >= 278 AND col3 <= 409)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_92 UNION ALL SELECT pk, col0 FROM view_2_tab4_92
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col0 >= 278 AND col3 <= 409 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col0 >= 278 AND col3 <= 409)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_92 UNION SELECT pk, col0 FROM view_2_tab4_92
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-1500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col0 >= 278 AND col3 <= 409 ) AS tab4_92
----
26 values hashing to 79bf8f02e02e8a02771e4851ea70cda9

query I rowsort label-1500-3
SELECT * FROM view_3_tab4_92
----
26 values hashing to 79bf8f02e02e8a02771e4851ea70cda9

query I rowsort label-1500-3
SELECT pk FROM tab4 WHERE col0 >= 278 AND col3 <= 409
----
26 values hashing to 79bf8f02e02e8a02771e4851ea70cda9

statement ok
DROP VIEW view_1_tab4_92

statement ok
DROP VIEW view_2_tab4_92

statement ok
DROP VIEW view_3_tab4_92

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab0_93 AS SELECT pk, col0 FROM tab0 WHERE col4 < 813.50 AND col0 >= 561 AND (col4 >= 32.37 AND col0 IN (SELECT col3 FROM tab0 WHERE (col0 > 117))) AND (col1 < 303.87) OR col1 = 218.35

statement ok
CREATE VIEW view_2_tab0_93 AS SELECT pk, col0 FROM tab0 WHERE NOT (col4 < 813.50 AND col0 >= 561 AND (col4 >= 32.37 AND col0 IN (SELECT col3 FROM tab0 WHERE (col0 > 117))) AND (col1 < 303.87) OR col1 = 218.35)

statement ok
CREATE VIEW view_3_tab0_93 AS SELECT pk FROM view_1_tab0_93

query II rowsort label-1600-1
SELECT pk, col0 FROM tab0 WHERE col4 < 813.50 AND col0 >= 561 AND (col4 >= 32.37 AND col0 IN (SELECT col3 FROM tab0 WHERE (col0 > 117))) AND (col1 < 303.87) OR col1 = 218.35
----

query II rowsort label-1600-2
SELECT pk, col0 FROM tab0 WHERE NOT (col4 < 813.50 AND col0 >= 561 AND (col4 >= 32.37 AND col0 IN (SELECT col3 FROM tab0 WHERE (col0 > 117))) AND (col1 < 303.87) OR col1 = 218.35)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-1600-1
SELECT pk, col0 FROM view_1_tab0_93
----

query II rowsort label-1600-2
SELECT pk, col0 FROM view_2_tab0_93
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col4 < 813.50 AND col0 >= 561 AND (col4 >= 32.37 AND col0 IN (SELECT col3 FROM tab0 WHERE (col0 > 117))) AND (col1 < 303.87) OR col1 = 218.35 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col4 < 813.50 AND col0 >= 561 AND (col4 >= 32.37 AND col0 IN (SELECT col3 FROM tab0 WHERE (col0 > 117))) AND (col1 < 303.87) OR col1 = 218.35)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_93 UNION ALL SELECT pk, col0 FROM view_2_tab0_93
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col4 < 813.50 AND col0 >= 561 AND (col4 >= 32.37 AND col0 IN (SELECT col3 FROM tab0 WHERE (col0 > 117))) AND (col1 < 303.87) OR col1 = 218.35 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col4 < 813.50 AND col0 >= 561 AND (col4 >= 32.37 AND col0 IN (SELECT col3 FROM tab0 WHERE (col0 > 117))) AND (col1 < 303.87) OR col1 = 218.35)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_93 UNION SELECT pk, col0 FROM view_2_tab0_93
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-1600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col4 < 813.50 AND col0 >= 561 AND (col4 >= 32.37 AND col0 IN (SELECT col3 FROM tab0 WHERE (col0 > 117))) AND (col1 < 303.87) OR col1 = 218.35 ) AS tab0_93
----

query I rowsort label-1600-3
SELECT * FROM view_3_tab0_93
----

query I rowsort label-1600-3
SELECT pk FROM tab0 WHERE col4 < 813.50 AND col0 >= 561 AND (col4 >= 32.37 AND col0 IN (SELECT col3 FROM tab0 WHERE (col0 > 117))) AND (col1 < 303.87) OR col1 = 218.35
----

statement ok
DROP VIEW view_1_tab0_93

statement ok
DROP VIEW view_2_tab0_93

statement ok
DROP VIEW view_3_tab0_93

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab1_93 AS SELECT pk, col0 FROM tab1 WHERE col4 < 813.50 AND col0 >= 561 AND (col4 >= 32.37 AND col0 IN (SELECT col3 FROM tab1 WHERE (col0 > 117))) AND (col1 < 303.87) OR col1 = 218.35

statement ok
CREATE VIEW view_2_tab1_93 AS SELECT pk, col0 FROM tab1 WHERE NOT (col4 < 813.50 AND col0 >= 561 AND (col4 >= 32.37 AND col0 IN (SELECT col3 FROM tab1 WHERE (col0 > 117))) AND (col1 < 303.87) OR col1 = 218.35)

statement ok
CREATE VIEW view_3_tab1_93 AS SELECT pk FROM view_1_tab1_93

query II rowsort label-1600-1
SELECT pk, col0 FROM tab1 WHERE col4 < 813.50 AND col0 >= 561 AND (col4 >= 32.37 AND col0 IN (SELECT col3 FROM tab1 WHERE (col0 > 117))) AND (col1 < 303.87) OR col1 = 218.35
----

query II rowsort label-1600-2
SELECT pk, col0 FROM tab1 WHERE NOT (col4 < 813.50 AND col0 >= 561 AND (col4 >= 32.37 AND col0 IN (SELECT col3 FROM tab1 WHERE (col0 > 117))) AND (col1 < 303.87) OR col1 = 218.35)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-1600-1
SELECT pk, col0 FROM view_1_tab1_93
----

query II rowsort label-1600-2
SELECT pk, col0 FROM view_2_tab1_93
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col4 < 813.50 AND col0 >= 561 AND (col4 >= 32.37 AND col0 IN (SELECT col3 FROM tab1 WHERE (col0 > 117))) AND (col1 < 303.87) OR col1 = 218.35 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col4 < 813.50 AND col0 >= 561 AND (col4 >= 32.37 AND col0 IN (SELECT col3 FROM tab1 WHERE (col0 > 117))) AND (col1 < 303.87) OR col1 = 218.35)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_93 UNION ALL SELECT pk, col0 FROM view_2_tab1_93
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col4 < 813.50 AND col0 >= 561 AND (col4 >= 32.37 AND col0 IN (SELECT col3 FROM tab1 WHERE (col0 > 117))) AND (col1 < 303.87) OR col1 = 218.35 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col4 < 813.50 AND col0 >= 561 AND (col4 >= 32.37 AND col0 IN (SELECT col3 FROM tab1 WHERE (col0 > 117))) AND (col1 < 303.87) OR col1 = 218.35)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_93 UNION SELECT pk, col0 FROM view_2_tab1_93
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-1600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col4 < 813.50 AND col0 >= 561 AND (col4 >= 32.37 AND col0 IN (SELECT col3 FROM tab1 WHERE (col0 > 117))) AND (col1 < 303.87) OR col1 = 218.35 ) AS tab1_93
----

query I rowsort label-1600-3
SELECT * FROM view_3_tab1_93
----

query I rowsort label-1600-3
SELECT pk FROM tab1 WHERE col4 < 813.50 AND col0 >= 561 AND (col4 >= 32.37 AND col0 IN (SELECT col3 FROM tab1 WHERE (col0 > 117))) AND (col1 < 303.87) OR col1 = 218.35
----

statement ok
DROP VIEW view_1_tab1_93

statement ok
DROP VIEW view_2_tab1_93

statement ok
DROP VIEW view_3_tab1_93

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab2_93 AS SELECT pk, col0 FROM tab2 WHERE col4 < 813.50 AND col0 >= 561 AND (col4 >= 32.37 AND col0 IN (SELECT col3 FROM tab2 WHERE (col0 > 117))) AND (col1 < 303.87) OR col1 = 218.35

statement ok
CREATE VIEW view_2_tab2_93 AS SELECT pk, col0 FROM tab2 WHERE NOT (col4 < 813.50 AND col0 >= 561 AND (col4 >= 32.37 AND col0 IN (SELECT col3 FROM tab2 WHERE (col0 > 117))) AND (col1 < 303.87) OR col1 = 218.35)

statement ok
CREATE VIEW view_3_tab2_93 AS SELECT pk FROM view_1_tab2_93

query II rowsort label-1600-1
SELECT pk, col0 FROM tab2 WHERE col4 < 813.50 AND col0 >= 561 AND (col4 >= 32.37 AND col0 IN (SELECT col3 FROM tab2 WHERE (col0 > 117))) AND (col1 < 303.87) OR col1 = 218.35
----

query II rowsort label-1600-2
SELECT pk, col0 FROM tab2 WHERE NOT (col4 < 813.50 AND col0 >= 561 AND (col4 >= 32.37 AND col0 IN (SELECT col3 FROM tab2 WHERE (col0 > 117))) AND (col1 < 303.87) OR col1 = 218.35)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-1600-1
SELECT pk, col0 FROM view_1_tab2_93
----

query II rowsort label-1600-2
SELECT pk, col0 FROM view_2_tab2_93
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col4 < 813.50 AND col0 >= 561 AND (col4 >= 32.37 AND col0 IN (SELECT col3 FROM tab2 WHERE (col0 > 117))) AND (col1 < 303.87) OR col1 = 218.35 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col4 < 813.50 AND col0 >= 561 AND (col4 >= 32.37 AND col0 IN (SELECT col3 FROM tab2 WHERE (col0 > 117))) AND (col1 < 303.87) OR col1 = 218.35)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_93 UNION ALL SELECT pk, col0 FROM view_2_tab2_93
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col4 < 813.50 AND col0 >= 561 AND (col4 >= 32.37 AND col0 IN (SELECT col3 FROM tab2 WHERE (col0 > 117))) AND (col1 < 303.87) OR col1 = 218.35 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col4 < 813.50 AND col0 >= 561 AND (col4 >= 32.37 AND col0 IN (SELECT col3 FROM tab2 WHERE (col0 > 117))) AND (col1 < 303.87) OR col1 = 218.35)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_93 UNION SELECT pk, col0 FROM view_2_tab2_93
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-1600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col4 < 813.50 AND col0 >= 561 AND (col4 >= 32.37 AND col0 IN (SELECT col3 FROM tab2 WHERE (col0 > 117))) AND (col1 < 303.87) OR col1 = 218.35 ) AS tab2_93
----

query I rowsort label-1600-3
SELECT * FROM view_3_tab2_93
----

query I rowsort label-1600-3
SELECT pk FROM tab2 WHERE col4 < 813.50 AND col0 >= 561 AND (col4 >= 32.37 AND col0 IN (SELECT col3 FROM tab2 WHERE (col0 > 117))) AND (col1 < 303.87) OR col1 = 218.35
----

statement ok
DROP VIEW view_1_tab2_93

statement ok
DROP VIEW view_2_tab2_93

statement ok
DROP VIEW view_3_tab2_93

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab3_93 AS SELECT pk, col0 FROM tab3 WHERE col4 < 813.50 AND col0 >= 561 AND (col4 >= 32.37 AND col0 IN (SELECT col3 FROM tab3 WHERE (col0 > 117))) AND (col1 < 303.87) OR col1 = 218.35

statement ok
CREATE VIEW view_2_tab3_93 AS SELECT pk, col0 FROM tab3 WHERE NOT (col4 < 813.50 AND col0 >= 561 AND (col4 >= 32.37 AND col0 IN (SELECT col3 FROM tab3 WHERE (col0 > 117))) AND (col1 < 303.87) OR col1 = 218.35)

statement ok
CREATE VIEW view_3_tab3_93 AS SELECT pk FROM view_1_tab3_93

query II rowsort label-1600-1
SELECT pk, col0 FROM tab3 WHERE col4 < 813.50 AND col0 >= 561 AND (col4 >= 32.37 AND col0 IN (SELECT col3 FROM tab3 WHERE (col0 > 117))) AND (col1 < 303.87) OR col1 = 218.35
----

query II rowsort label-1600-2
SELECT pk, col0 FROM tab3 WHERE NOT (col4 < 813.50 AND col0 >= 561 AND (col4 >= 32.37 AND col0 IN (SELECT col3 FROM tab3 WHERE (col0 > 117))) AND (col1 < 303.87) OR col1 = 218.35)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-1600-1
SELECT pk, col0 FROM view_1_tab3_93
----

query II rowsort label-1600-2
SELECT pk, col0 FROM view_2_tab3_93
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col4 < 813.50 AND col0 >= 561 AND (col4 >= 32.37 AND col0 IN (SELECT col3 FROM tab3 WHERE (col0 > 117))) AND (col1 < 303.87) OR col1 = 218.35 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col4 < 813.50 AND col0 >= 561 AND (col4 >= 32.37 AND col0 IN (SELECT col3 FROM tab3 WHERE (col0 > 117))) AND (col1 < 303.87) OR col1 = 218.35)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_93 UNION ALL SELECT pk, col0 FROM view_2_tab3_93
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col4 < 813.50 AND col0 >= 561 AND (col4 >= 32.37 AND col0 IN (SELECT col3 FROM tab3 WHERE (col0 > 117))) AND (col1 < 303.87) OR col1 = 218.35 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col4 < 813.50 AND col0 >= 561 AND (col4 >= 32.37 AND col0 IN (SELECT col3 FROM tab3 WHERE (col0 > 117))) AND (col1 < 303.87) OR col1 = 218.35)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_93 UNION SELECT pk, col0 FROM view_2_tab3_93
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-1600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col4 < 813.50 AND col0 >= 561 AND (col4 >= 32.37 AND col0 IN (SELECT col3 FROM tab3 WHERE (col0 > 117))) AND (col1 < 303.87) OR col1 = 218.35 ) AS tab3_93
----

query I rowsort label-1600-3
SELECT * FROM view_3_tab3_93
----

query I rowsort label-1600-3
SELECT pk FROM tab3 WHERE col4 < 813.50 AND col0 >= 561 AND (col4 >= 32.37 AND col0 IN (SELECT col3 FROM tab3 WHERE (col0 > 117))) AND (col1 < 303.87) OR col1 = 218.35
----

statement ok
DROP VIEW view_1_tab3_93

statement ok
DROP VIEW view_2_tab3_93

statement ok
DROP VIEW view_3_tab3_93

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab4_93 AS SELECT pk, col0 FROM tab4 WHERE col4 < 813.50 AND col0 >= 561 AND (col4 >= 32.37 AND col0 IN (SELECT col3 FROM tab4 WHERE (col0 > 117))) AND (col1 < 303.87) OR col1 = 218.35

statement ok
CREATE VIEW view_2_tab4_93 AS SELECT pk, col0 FROM tab4 WHERE NOT (col4 < 813.50 AND col0 >= 561 AND (col4 >= 32.37 AND col0 IN (SELECT col3 FROM tab4 WHERE (col0 > 117))) AND (col1 < 303.87) OR col1 = 218.35)

statement ok
CREATE VIEW view_3_tab4_93 AS SELECT pk FROM view_1_tab4_93

query II rowsort label-1600-1
SELECT pk, col0 FROM tab4 WHERE col4 < 813.50 AND col0 >= 561 AND (col4 >= 32.37 AND col0 IN (SELECT col3 FROM tab4 WHERE (col0 > 117))) AND (col1 < 303.87) OR col1 = 218.35
----

query II rowsort label-1600-2
SELECT pk, col0 FROM tab4 WHERE NOT (col4 < 813.50 AND col0 >= 561 AND (col4 >= 32.37 AND col0 IN (SELECT col3 FROM tab4 WHERE (col0 > 117))) AND (col1 < 303.87) OR col1 = 218.35)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-1600-1
SELECT pk, col0 FROM view_1_tab4_93
----

query II rowsort label-1600-2
SELECT pk, col0 FROM view_2_tab4_93
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col4 < 813.50 AND col0 >= 561 AND (col4 >= 32.37 AND col0 IN (SELECT col3 FROM tab4 WHERE (col0 > 117))) AND (col1 < 303.87) OR col1 = 218.35 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col4 < 813.50 AND col0 >= 561 AND (col4 >= 32.37 AND col0 IN (SELECT col3 FROM tab4 WHERE (col0 > 117))) AND (col1 < 303.87) OR col1 = 218.35)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_93 UNION ALL SELECT pk, col0 FROM view_2_tab4_93
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col4 < 813.50 AND col0 >= 561 AND (col4 >= 32.37 AND col0 IN (SELECT col3 FROM tab4 WHERE (col0 > 117))) AND (col1 < 303.87) OR col1 = 218.35 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col4 < 813.50 AND col0 >= 561 AND (col4 >= 32.37 AND col0 IN (SELECT col3 FROM tab4 WHERE (col0 > 117))) AND (col1 < 303.87) OR col1 = 218.35)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_93 UNION SELECT pk, col0 FROM view_2_tab4_93
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-1600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col4 < 813.50 AND col0 >= 561 AND (col4 >= 32.37 AND col0 IN (SELECT col3 FROM tab4 WHERE (col0 > 117))) AND (col1 < 303.87) OR col1 = 218.35 ) AS tab4_93
----

query I rowsort label-1600-3
SELECT * FROM view_3_tab4_93
----

query I rowsort label-1600-3
SELECT pk FROM tab4 WHERE col4 < 813.50 AND col0 >= 561 AND (col4 >= 32.37 AND col0 IN (SELECT col3 FROM tab4 WHERE (col0 > 117))) AND (col1 < 303.87) OR col1 = 218.35
----

statement ok
DROP VIEW view_1_tab4_93

statement ok
DROP VIEW view_2_tab4_93

statement ok
DROP VIEW view_3_tab4_93

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab0_94 AS SELECT pk, col0 FROM tab0 WHERE (col4 > 594.73)

statement ok
CREATE VIEW view_2_tab0_94 AS SELECT pk, col0 FROM tab0 WHERE NOT ((col4 > 594.73))

statement ok
CREATE VIEW view_3_tab0_94 AS SELECT pk FROM view_1_tab0_94

query II rowsort label-1700-1
SELECT pk, col0 FROM tab0 WHERE (col4 > 594.73)
----
88 values hashing to a386734bcf50d69f5751487d9016638b

query II rowsort label-1700-2
SELECT pk, col0 FROM tab0 WHERE NOT ((col4 > 594.73))
----
112 values hashing to ed178f239a3cf28186e8893983f8b1c7

query II rowsort label-1700-1
SELECT pk, col0 FROM view_1_tab0_94
----
88 values hashing to a386734bcf50d69f5751487d9016638b

query II rowsort label-1700-2
SELECT pk, col0 FROM view_2_tab0_94
----
112 values hashing to ed178f239a3cf28186e8893983f8b1c7

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col4 > 594.73) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT ((col4 > 594.73))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_94 UNION ALL SELECT pk, col0 FROM view_2_tab0_94
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col4 > 594.73) UNION SELECT pk, col0 FROM tab0 WHERE NOT ((col4 > 594.73))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_94 UNION SELECT pk, col0 FROM view_2_tab0_94
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-1700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE (col4 > 594.73) ) AS tab0_94
----
44 values hashing to 97899427adf8dd5eb55e8597a1de5b1e

query I rowsort label-1700-3
SELECT * FROM view_3_tab0_94
----
44 values hashing to 97899427adf8dd5eb55e8597a1de5b1e

query I rowsort label-1700-3
SELECT pk FROM tab0 WHERE (col4 > 594.73)
----
44 values hashing to 97899427adf8dd5eb55e8597a1de5b1e

statement ok
DROP VIEW view_1_tab0_94

statement ok
DROP VIEW view_2_tab0_94

statement ok
DROP VIEW view_3_tab0_94

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab1_94 AS SELECT pk, col0 FROM tab1 WHERE (col4 > 594.73)

statement ok
CREATE VIEW view_2_tab1_94 AS SELECT pk, col0 FROM tab1 WHERE NOT ((col4 > 594.73))

statement ok
CREATE VIEW view_3_tab1_94 AS SELECT pk FROM view_1_tab1_94

query II rowsort label-1700-1
SELECT pk, col0 FROM tab1 WHERE (col4 > 594.73)
----
88 values hashing to a386734bcf50d69f5751487d9016638b

query II rowsort label-1700-2
SELECT pk, col0 FROM tab1 WHERE NOT ((col4 > 594.73))
----
112 values hashing to ed178f239a3cf28186e8893983f8b1c7

query II rowsort label-1700-1
SELECT pk, col0 FROM view_1_tab1_94
----
88 values hashing to a386734bcf50d69f5751487d9016638b

query II rowsort label-1700-2
SELECT pk, col0 FROM view_2_tab1_94
----
112 values hashing to ed178f239a3cf28186e8893983f8b1c7

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col4 > 594.73) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT ((col4 > 594.73))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_94 UNION ALL SELECT pk, col0 FROM view_2_tab1_94
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col4 > 594.73) UNION SELECT pk, col0 FROM tab1 WHERE NOT ((col4 > 594.73))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_94 UNION SELECT pk, col0 FROM view_2_tab1_94
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-1700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE (col4 > 594.73) ) AS tab1_94
----
44 values hashing to 97899427adf8dd5eb55e8597a1de5b1e

query I rowsort label-1700-3
SELECT * FROM view_3_tab1_94
----
44 values hashing to 97899427adf8dd5eb55e8597a1de5b1e

query I rowsort label-1700-3
SELECT pk FROM tab1 WHERE (col4 > 594.73)
----
44 values hashing to 97899427adf8dd5eb55e8597a1de5b1e

statement ok
DROP VIEW view_1_tab1_94

statement ok
DROP VIEW view_2_tab1_94

statement ok
DROP VIEW view_3_tab1_94

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab2_94 AS SELECT pk, col0 FROM tab2 WHERE (col4 > 594.73)

statement ok
CREATE VIEW view_2_tab2_94 AS SELECT pk, col0 FROM tab2 WHERE NOT ((col4 > 594.73))

statement ok
CREATE VIEW view_3_tab2_94 AS SELECT pk FROM view_1_tab2_94

query II rowsort label-1700-1
SELECT pk, col0 FROM tab2 WHERE (col4 > 594.73)
----
88 values hashing to a386734bcf50d69f5751487d9016638b

query II rowsort label-1700-2
SELECT pk, col0 FROM tab2 WHERE NOT ((col4 > 594.73))
----
112 values hashing to ed178f239a3cf28186e8893983f8b1c7

query II rowsort label-1700-1
SELECT pk, col0 FROM view_1_tab2_94
----
88 values hashing to a386734bcf50d69f5751487d9016638b

query II rowsort label-1700-2
SELECT pk, col0 FROM view_2_tab2_94
----
112 values hashing to ed178f239a3cf28186e8893983f8b1c7

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col4 > 594.73) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT ((col4 > 594.73))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_94 UNION ALL SELECT pk, col0 FROM view_2_tab2_94
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col4 > 594.73) UNION SELECT pk, col0 FROM tab2 WHERE NOT ((col4 > 594.73))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_94 UNION SELECT pk, col0 FROM view_2_tab2_94
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-1700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE (col4 > 594.73) ) AS tab2_94
----
44 values hashing to 97899427adf8dd5eb55e8597a1de5b1e

query I rowsort label-1700-3
SELECT * FROM view_3_tab2_94
----
44 values hashing to 97899427adf8dd5eb55e8597a1de5b1e

query I rowsort label-1700-3
SELECT pk FROM tab2 WHERE (col4 > 594.73)
----
44 values hashing to 97899427adf8dd5eb55e8597a1de5b1e

statement ok
DROP VIEW view_1_tab2_94

statement ok
DROP VIEW view_2_tab2_94

statement ok
DROP VIEW view_3_tab2_94

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab3_94 AS SELECT pk, col0 FROM tab3 WHERE (col4 > 594.73)

statement ok
CREATE VIEW view_2_tab3_94 AS SELECT pk, col0 FROM tab3 WHERE NOT ((col4 > 594.73))

statement ok
CREATE VIEW view_3_tab3_94 AS SELECT pk FROM view_1_tab3_94

query II rowsort label-1700-1
SELECT pk, col0 FROM tab3 WHERE (col4 > 594.73)
----
88 values hashing to a386734bcf50d69f5751487d9016638b

query II rowsort label-1700-2
SELECT pk, col0 FROM tab3 WHERE NOT ((col4 > 594.73))
----
112 values hashing to ed178f239a3cf28186e8893983f8b1c7

query II rowsort label-1700-1
SELECT pk, col0 FROM view_1_tab3_94
----
88 values hashing to a386734bcf50d69f5751487d9016638b

query II rowsort label-1700-2
SELECT pk, col0 FROM view_2_tab3_94
----
112 values hashing to ed178f239a3cf28186e8893983f8b1c7

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col4 > 594.73) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT ((col4 > 594.73))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_94 UNION ALL SELECT pk, col0 FROM view_2_tab3_94
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col4 > 594.73) UNION SELECT pk, col0 FROM tab3 WHERE NOT ((col4 > 594.73))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_94 UNION SELECT pk, col0 FROM view_2_tab3_94
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-1700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE (col4 > 594.73) ) AS tab3_94
----
44 values hashing to 97899427adf8dd5eb55e8597a1de5b1e

query I rowsort label-1700-3
SELECT * FROM view_3_tab3_94
----
44 values hashing to 97899427adf8dd5eb55e8597a1de5b1e

query I rowsort label-1700-3
SELECT pk FROM tab3 WHERE (col4 > 594.73)
----
44 values hashing to 97899427adf8dd5eb55e8597a1de5b1e

statement ok
DROP VIEW view_1_tab3_94

statement ok
DROP VIEW view_2_tab3_94

statement ok
DROP VIEW view_3_tab3_94

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab4_94 AS SELECT pk, col0 FROM tab4 WHERE (col4 > 594.73)

statement ok
CREATE VIEW view_2_tab4_94 AS SELECT pk, col0 FROM tab4 WHERE NOT ((col4 > 594.73))

statement ok
CREATE VIEW view_3_tab4_94 AS SELECT pk FROM view_1_tab4_94

query II rowsort label-1700-1
SELECT pk, col0 FROM tab4 WHERE (col4 > 594.73)
----
88 values hashing to a386734bcf50d69f5751487d9016638b

query II rowsort label-1700-2
SELECT pk, col0 FROM tab4 WHERE NOT ((col4 > 594.73))
----
112 values hashing to ed178f239a3cf28186e8893983f8b1c7

query II rowsort label-1700-1
SELECT pk, col0 FROM view_1_tab4_94
----
88 values hashing to a386734bcf50d69f5751487d9016638b

query II rowsort label-1700-2
SELECT pk, col0 FROM view_2_tab4_94
----
112 values hashing to ed178f239a3cf28186e8893983f8b1c7

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col4 > 594.73) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT ((col4 > 594.73))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_94 UNION ALL SELECT pk, col0 FROM view_2_tab4_94
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col4 > 594.73) UNION SELECT pk, col0 FROM tab4 WHERE NOT ((col4 > 594.73))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_94 UNION SELECT pk, col0 FROM view_2_tab4_94
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-1700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE (col4 > 594.73) ) AS tab4_94
----
44 values hashing to 97899427adf8dd5eb55e8597a1de5b1e

query I rowsort label-1700-3
SELECT * FROM view_3_tab4_94
----
44 values hashing to 97899427adf8dd5eb55e8597a1de5b1e

query I rowsort label-1700-3
SELECT pk FROM tab4 WHERE (col4 > 594.73)
----
44 values hashing to 97899427adf8dd5eb55e8597a1de5b1e

statement ok
DROP VIEW view_1_tab4_94

statement ok
DROP VIEW view_2_tab4_94

statement ok
DROP VIEW view_3_tab4_94

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab0_95 AS SELECT pk, col0 FROM tab0 WHERE col4 <= 119.8

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

statement ok
CREATE VIEW view_3_tab0_95 AS SELECT pk FROM view_1_tab0_95

query II rowsort label-1800-1
SELECT pk, col0 FROM tab0 WHERE col4 <= 119.8
----
14 values hashing to e3f2e31f8cb8833d2e99a9b9c81522ae

query II rowsort label-1800-2
SELECT pk, col0 FROM tab0 WHERE NOT (col4 <= 119.8)
----
186 values hashing to d0ff031fa1b916c003109cd2791df404

query II rowsort label-1800-1
SELECT pk, col0 FROM view_1_tab0_95
----
14 values hashing to e3f2e31f8cb8833d2e99a9b9c81522ae

query II rowsort label-1800-2
SELECT pk, col0 FROM view_2_tab0_95
----
186 values hashing to d0ff031fa1b916c003109cd2791df404

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

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_95 UNION ALL SELECT pk, col0 FROM view_2_tab0_95
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

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

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_95 UNION SELECT pk, col0 FROM view_2_tab0_95
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-1800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col4 <= 119.8 ) AS tab0_95
----
14
60
61
66
81
89
91

query I rowsort label-1800-3
SELECT * FROM view_3_tab0_95
----
14
60
61
66
81
89
91

query I rowsort label-1800-3
SELECT pk FROM tab0 WHERE col4 <= 119.8
----
14
60
61
66
81
89
91

statement ok
DROP VIEW view_1_tab0_95

statement ok
DROP VIEW view_2_tab0_95

statement ok
DROP VIEW view_3_tab0_95

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab1_95 AS SELECT pk, col0 FROM tab1 WHERE col4 <= 119.8

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

statement ok
CREATE VIEW view_3_tab1_95 AS SELECT pk FROM view_1_tab1_95

query II rowsort label-1800-1
SELECT pk, col0 FROM tab1 WHERE col4 <= 119.8
----
14 values hashing to e3f2e31f8cb8833d2e99a9b9c81522ae

query II rowsort label-1800-2
SELECT pk, col0 FROM tab1 WHERE NOT (col4 <= 119.8)
----
186 values hashing to d0ff031fa1b916c003109cd2791df404

query II rowsort label-1800-1
SELECT pk, col0 FROM view_1_tab1_95
----
14 values hashing to e3f2e31f8cb8833d2e99a9b9c81522ae

query II rowsort label-1800-2
SELECT pk, col0 FROM view_2_tab1_95
----
186 values hashing to d0ff031fa1b916c003109cd2791df404

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

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_95 UNION ALL SELECT pk, col0 FROM view_2_tab1_95
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

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

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_95 UNION SELECT pk, col0 FROM view_2_tab1_95
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-1800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col4 <= 119.8 ) AS tab1_95
----
14
60
61
66
81
89
91

query I rowsort label-1800-3
SELECT * FROM view_3_tab1_95
----
14
60
61
66
81
89
91

query I rowsort label-1800-3
SELECT pk FROM tab1 WHERE col4 <= 119.8
----
14
60
61
66
81
89
91

statement ok
DROP VIEW view_1_tab1_95

statement ok
DROP VIEW view_2_tab1_95

statement ok
DROP VIEW view_3_tab1_95

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab2_95 AS SELECT pk, col0 FROM tab2 WHERE col4 <= 119.8

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

statement ok
CREATE VIEW view_3_tab2_95 AS SELECT pk FROM view_1_tab2_95

query II rowsort label-1800-1
SELECT pk, col0 FROM tab2 WHERE col4 <= 119.8
----
14 values hashing to e3f2e31f8cb8833d2e99a9b9c81522ae

query II rowsort label-1800-2
SELECT pk, col0 FROM tab2 WHERE NOT (col4 <= 119.8)
----
186 values hashing to d0ff031fa1b916c003109cd2791df404

query II rowsort label-1800-1
SELECT pk, col0 FROM view_1_tab2_95
----
14 values hashing to e3f2e31f8cb8833d2e99a9b9c81522ae

query II rowsort label-1800-2
SELECT pk, col0 FROM view_2_tab2_95
----
186 values hashing to d0ff031fa1b916c003109cd2791df404

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

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_95 UNION ALL SELECT pk, col0 FROM view_2_tab2_95
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

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

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_95 UNION SELECT pk, col0 FROM view_2_tab2_95
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-1800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col4 <= 119.8 ) AS tab2_95
----
14
60
61
66
81
89
91

query I rowsort label-1800-3
SELECT * FROM view_3_tab2_95
----
14
60
61
66
81
89
91

query I rowsort label-1800-3
SELECT pk FROM tab2 WHERE col4 <= 119.8
----
14
60
61
66
81
89
91

statement ok
DROP VIEW view_1_tab2_95

statement ok
DROP VIEW view_2_tab2_95

statement ok
DROP VIEW view_3_tab2_95

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab3_95 AS SELECT pk, col0 FROM tab3 WHERE col4 <= 119.8

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

statement ok
CREATE VIEW view_3_tab3_95 AS SELECT pk FROM view_1_tab3_95

query II rowsort label-1800-1
SELECT pk, col0 FROM tab3 WHERE col4 <= 119.8
----
14 values hashing to e3f2e31f8cb8833d2e99a9b9c81522ae

query II rowsort label-1800-2
SELECT pk, col0 FROM tab3 WHERE NOT (col4 <= 119.8)
----
186 values hashing to d0ff031fa1b916c003109cd2791df404

query II rowsort label-1800-1
SELECT pk, col0 FROM view_1_tab3_95
----
14 values hashing to e3f2e31f8cb8833d2e99a9b9c81522ae

query II rowsort label-1800-2
SELECT pk, col0 FROM view_2_tab3_95
----
186 values hashing to d0ff031fa1b916c003109cd2791df404

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

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_95 UNION ALL SELECT pk, col0 FROM view_2_tab3_95
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

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

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_95 UNION SELECT pk, col0 FROM view_2_tab3_95
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-1800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col4 <= 119.8 ) AS tab3_95
----
14
60
61
66
81
89
91

query I rowsort label-1800-3
SELECT * FROM view_3_tab3_95
----
14
60
61
66
81
89
91

query I rowsort label-1800-3
SELECT pk FROM tab3 WHERE col4 <= 119.8
----
14
60
61
66
81
89
91

statement ok
DROP VIEW view_1_tab3_95

statement ok
DROP VIEW view_2_tab3_95

statement ok
DROP VIEW view_3_tab3_95

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab4_95 AS SELECT pk, col0 FROM tab4 WHERE col4 <= 119.8

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

statement ok
CREATE VIEW view_3_tab4_95 AS SELECT pk FROM view_1_tab4_95

query II rowsort label-1800-1
SELECT pk, col0 FROM tab4 WHERE col4 <= 119.8
----
14 values hashing to e3f2e31f8cb8833d2e99a9b9c81522ae

query II rowsort label-1800-2
SELECT pk, col0 FROM tab4 WHERE NOT (col4 <= 119.8)
----
186 values hashing to d0ff031fa1b916c003109cd2791df404

query II rowsort label-1800-1
SELECT pk, col0 FROM view_1_tab4_95
----
14 values hashing to e3f2e31f8cb8833d2e99a9b9c81522ae

query II rowsort label-1800-2
SELECT pk, col0 FROM view_2_tab4_95
----
186 values hashing to d0ff031fa1b916c003109cd2791df404

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

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_95 UNION ALL SELECT pk, col0 FROM view_2_tab4_95
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

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

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_95 UNION SELECT pk, col0 FROM view_2_tab4_95
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-1800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col4 <= 119.8 ) AS tab4_95
----
14
60
61
66
81
89
91

query I rowsort label-1800-3
SELECT * FROM view_3_tab4_95
----
14
60
61
66
81
89
91

query I rowsort label-1800-3
SELECT pk FROM tab4 WHERE col4 <= 119.8
----
14
60
61
66
81
89
91

statement ok
DROP VIEW view_1_tab4_95

statement ok
DROP VIEW view_2_tab4_95

statement ok
DROP VIEW view_3_tab4_95

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab0_96 AS SELECT pk, col0 FROM tab0 WHERE col0 > 890

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

statement ok
CREATE VIEW view_3_tab0_96 AS SELECT pk FROM view_1_tab0_96

query II rowsort label-1900-1
SELECT pk, col0 FROM tab0 WHERE col0 > 890
----
20 values hashing to 319cec3ff0e0328001aaedfdbc3c2e17

query II rowsort label-1900-2
SELECT pk, col0 FROM tab0 WHERE NOT (col0 > 890)
----
180 values hashing to b26bb9c67ea1fcfa855e99740fa86078

query II rowsort label-1900-1
SELECT pk, col0 FROM view_1_tab0_96
----
20 values hashing to 319cec3ff0e0328001aaedfdbc3c2e17

query II rowsort label-1900-2
SELECT pk, col0 FROM view_2_tab0_96
----
180 values hashing to b26bb9c67ea1fcfa855e99740fa86078

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col0 > 890 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col0 > 890)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_96 UNION ALL SELECT pk, col0 FROM view_2_tab0_96
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col0 > 890 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col0 > 890)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_96 UNION SELECT pk, col0 FROM view_2_tab0_96
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-1900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col0 > 890 ) AS tab0_96
----
10 values hashing to 86f2cd8bf65b00633f344fa0732f6ea7

query I rowsort label-1900-3
SELECT * FROM view_3_tab0_96
----
10 values hashing to 86f2cd8bf65b00633f344fa0732f6ea7

query I rowsort label-1900-3
SELECT pk FROM tab0 WHERE col0 > 890
----
10 values hashing to 86f2cd8bf65b00633f344fa0732f6ea7

statement ok
DROP VIEW view_1_tab0_96

statement ok
DROP VIEW view_2_tab0_96

statement ok
DROP VIEW view_3_tab0_96

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab1_96 AS SELECT pk, col0 FROM tab1 WHERE col0 > 890

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

statement ok
CREATE VIEW view_3_tab1_96 AS SELECT pk FROM view_1_tab1_96

query II rowsort label-1900-1
SELECT pk, col0 FROM tab1 WHERE col0 > 890
----
20 values hashing to 319cec3ff0e0328001aaedfdbc3c2e17

query II rowsort label-1900-2
SELECT pk, col0 FROM tab1 WHERE NOT (col0 > 890)
----
180 values hashing to b26bb9c67ea1fcfa855e99740fa86078

query II rowsort label-1900-1
SELECT pk, col0 FROM view_1_tab1_96
----
20 values hashing to 319cec3ff0e0328001aaedfdbc3c2e17

query II rowsort label-1900-2
SELECT pk, col0 FROM view_2_tab1_96
----
180 values hashing to b26bb9c67ea1fcfa855e99740fa86078

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col0 > 890 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col0 > 890)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_96 UNION ALL SELECT pk, col0 FROM view_2_tab1_96
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col0 > 890 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col0 > 890)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_96 UNION SELECT pk, col0 FROM view_2_tab1_96
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-1900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col0 > 890 ) AS tab1_96
----
10 values hashing to 86f2cd8bf65b00633f344fa0732f6ea7

query I rowsort label-1900-3
SELECT * FROM view_3_tab1_96
----
10 values hashing to 86f2cd8bf65b00633f344fa0732f6ea7

query I rowsort label-1900-3
SELECT pk FROM tab1 WHERE col0 > 890
----
10 values hashing to 86f2cd8bf65b00633f344fa0732f6ea7

statement ok
DROP VIEW view_1_tab1_96

statement ok
DROP VIEW view_2_tab1_96

statement ok
DROP VIEW view_3_tab1_96

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab2_96 AS SELECT pk, col0 FROM tab2 WHERE col0 > 890

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

statement ok
CREATE VIEW view_3_tab2_96 AS SELECT pk FROM view_1_tab2_96

query II rowsort label-1900-1
SELECT pk, col0 FROM tab2 WHERE col0 > 890
----
20 values hashing to 319cec3ff0e0328001aaedfdbc3c2e17

query II rowsort label-1900-2
SELECT pk, col0 FROM tab2 WHERE NOT (col0 > 890)
----
180 values hashing to b26bb9c67ea1fcfa855e99740fa86078

query II rowsort label-1900-1
SELECT pk, col0 FROM view_1_tab2_96
----
20 values hashing to 319cec3ff0e0328001aaedfdbc3c2e17

query II rowsort label-1900-2
SELECT pk, col0 FROM view_2_tab2_96
----
180 values hashing to b26bb9c67ea1fcfa855e99740fa86078

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col0 > 890 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col0 > 890)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_96 UNION ALL SELECT pk, col0 FROM view_2_tab2_96
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col0 > 890 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col0 > 890)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_96 UNION SELECT pk, col0 FROM view_2_tab2_96
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-1900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col0 > 890 ) AS tab2_96
----
10 values hashing to 86f2cd8bf65b00633f344fa0732f6ea7

query I rowsort label-1900-3
SELECT * FROM view_3_tab2_96
----
10 values hashing to 86f2cd8bf65b00633f344fa0732f6ea7

query I rowsort label-1900-3
SELECT pk FROM tab2 WHERE col0 > 890
----
10 values hashing to 86f2cd8bf65b00633f344fa0732f6ea7

statement ok
DROP VIEW view_1_tab2_96

statement ok
DROP VIEW view_2_tab2_96

statement ok
DROP VIEW view_3_tab2_96

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab3_96 AS SELECT pk, col0 FROM tab3 WHERE col0 > 890

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

statement ok
CREATE VIEW view_3_tab3_96 AS SELECT pk FROM view_1_tab3_96

query II rowsort label-1900-1
SELECT pk, col0 FROM tab3 WHERE col0 > 890
----
20 values hashing to 319cec3ff0e0328001aaedfdbc3c2e17

query II rowsort label-1900-2
SELECT pk, col0 FROM tab3 WHERE NOT (col0 > 890)
----
180 values hashing to b26bb9c67ea1fcfa855e99740fa86078

query II rowsort label-1900-1
SELECT pk, col0 FROM view_1_tab3_96
----
20 values hashing to 319cec3ff0e0328001aaedfdbc3c2e17

query II rowsort label-1900-2
SELECT pk, col0 FROM view_2_tab3_96
----
180 values hashing to b26bb9c67ea1fcfa855e99740fa86078

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col0 > 890 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col0 > 890)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_96 UNION ALL SELECT pk, col0 FROM view_2_tab3_96
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col0 > 890 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col0 > 890)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_96 UNION SELECT pk, col0 FROM view_2_tab3_96
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-1900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col0 > 890 ) AS tab3_96
----
10 values hashing to 86f2cd8bf65b00633f344fa0732f6ea7

query I rowsort label-1900-3
SELECT * FROM view_3_tab3_96
----
10 values hashing to 86f2cd8bf65b00633f344fa0732f6ea7

query I rowsort label-1900-3
SELECT pk FROM tab3 WHERE col0 > 890
----
10 values hashing to 86f2cd8bf65b00633f344fa0732f6ea7

statement ok
DROP VIEW view_1_tab3_96

statement ok
DROP VIEW view_2_tab3_96

statement ok
DROP VIEW view_3_tab3_96

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab4_96 AS SELECT pk, col0 FROM tab4 WHERE col0 > 890

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

statement ok
CREATE VIEW view_3_tab4_96 AS SELECT pk FROM view_1_tab4_96

query II rowsort label-1900-1
SELECT pk, col0 FROM tab4 WHERE col0 > 890
----
20 values hashing to 319cec3ff0e0328001aaedfdbc3c2e17

query II rowsort label-1900-2
SELECT pk, col0 FROM tab4 WHERE NOT (col0 > 890)
----
180 values hashing to b26bb9c67ea1fcfa855e99740fa86078

query II rowsort label-1900-1
SELECT pk, col0 FROM view_1_tab4_96
----
20 values hashing to 319cec3ff0e0328001aaedfdbc3c2e17

query II rowsort label-1900-2
SELECT pk, col0 FROM view_2_tab4_96
----
180 values hashing to b26bb9c67ea1fcfa855e99740fa86078

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col0 > 890 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col0 > 890)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_96 UNION ALL SELECT pk, col0 FROM view_2_tab4_96
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col0 > 890 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col0 > 890)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_96 UNION SELECT pk, col0 FROM view_2_tab4_96
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-1900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col0 > 890 ) AS tab4_96
----
10 values hashing to 86f2cd8bf65b00633f344fa0732f6ea7

query I rowsort label-1900-3
SELECT * FROM view_3_tab4_96
----
10 values hashing to 86f2cd8bf65b00633f344fa0732f6ea7

query I rowsort label-1900-3
SELECT pk FROM tab4 WHERE col0 > 890
----
10 values hashing to 86f2cd8bf65b00633f344fa0732f6ea7

statement ok
DROP VIEW view_1_tab4_96

statement ok
DROP VIEW view_2_tab4_96

statement ok
DROP VIEW view_3_tab4_96

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab0_97 AS SELECT pk, col0 FROM tab0 WHERE ((col0 < 462 AND col1 < 533.61 AND (col4 >= 315.98) OR col0 > 582 AND (col0 > 553) OR col0 IS NULL OR (col1 = 86.21))) AND ((col3 = 244))

statement ok
CREATE VIEW view_2_tab0_97 AS SELECT pk, col0 FROM tab0 WHERE NOT (((col0 < 462 AND col1 < 533.61 AND (col4 >= 315.98) OR col0 > 582 AND (col0 > 553) OR col0 IS NULL OR (col1 = 86.21))) AND ((col3 = 244)))

statement ok
CREATE VIEW view_3_tab0_97 AS SELECT pk FROM view_1_tab0_97

query II rowsort label-2000-1
SELECT pk, col0 FROM tab0 WHERE ((col0 < 462 AND col1 < 533.61 AND (col4 >= 315.98) OR col0 > 582 AND (col0 > 553) OR col0 IS NULL OR (col1 = 86.21))) AND ((col3 = 244))
----

query II rowsort label-2000-2
SELECT pk, col0 FROM tab0 WHERE NOT (((col0 < 462 AND col1 < 533.61 AND (col4 >= 315.98) OR col0 > 582 AND (col0 > 553) OR col0 IS NULL OR (col1 = 86.21))) AND ((col3 = 244)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-2000-1
SELECT pk, col0 FROM view_1_tab0_97
----

query II rowsort label-2000-2
SELECT pk, col0 FROM view_2_tab0_97
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE ((col0 < 462 AND col1 < 533.61 AND (col4 >= 315.98) OR col0 > 582 AND (col0 > 553) OR col0 IS NULL OR (col1 = 86.21))) AND ((col3 = 244)) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (((col0 < 462 AND col1 < 533.61 AND (col4 >= 315.98) OR col0 > 582 AND (col0 > 553) OR col0 IS NULL OR (col1 = 86.21))) AND ((col3 = 244)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_97 UNION ALL SELECT pk, col0 FROM view_2_tab0_97
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE ((col0 < 462 AND col1 < 533.61 AND (col4 >= 315.98) OR col0 > 582 AND (col0 > 553) OR col0 IS NULL OR (col1 = 86.21))) AND ((col3 = 244)) UNION SELECT pk, col0 FROM tab0 WHERE NOT (((col0 < 462 AND col1 < 533.61 AND (col4 >= 315.98) OR col0 > 582 AND (col0 > 553) OR col0 IS NULL OR (col1 = 86.21))) AND ((col3 = 244)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_97 UNION SELECT pk, col0 FROM view_2_tab0_97
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-2000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE ((col0 < 462 AND col1 < 533.61 AND (col4 >= 315.98) OR col0 > 582 AND (col0 > 553) OR col0 IS NULL OR (col1 = 86.21))) AND ((col3 = 244)) ) AS tab0_97
----

query I rowsort label-2000-3
SELECT * FROM view_3_tab0_97
----

query I rowsort label-2000-3
SELECT pk FROM tab0 WHERE ((col0 < 462 AND col1 < 533.61 AND (col4 >= 315.98) OR col0 > 582 AND (col0 > 553) OR col0 IS NULL OR (col1 = 86.21))) AND ((col3 = 244))
----

statement ok
DROP VIEW view_1_tab0_97

statement ok
DROP VIEW view_2_tab0_97

statement ok
DROP VIEW view_3_tab0_97

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab1_97 AS SELECT pk, col0 FROM tab1 WHERE ((col0 < 462 AND col1 < 533.61 AND (col4 >= 315.98) OR col0 > 582 AND (col0 > 553) OR col0 IS NULL OR (col1 = 86.21))) AND ((col3 = 244))

statement ok
CREATE VIEW view_2_tab1_97 AS SELECT pk, col0 FROM tab1 WHERE NOT (((col0 < 462 AND col1 < 533.61 AND (col4 >= 315.98) OR col0 > 582 AND (col0 > 553) OR col0 IS NULL OR (col1 = 86.21))) AND ((col3 = 244)))

statement ok
CREATE VIEW view_3_tab1_97 AS SELECT pk FROM view_1_tab1_97

query II rowsort label-2000-1
SELECT pk, col0 FROM tab1 WHERE ((col0 < 462 AND col1 < 533.61 AND (col4 >= 315.98) OR col0 > 582 AND (col0 > 553) OR col0 IS NULL OR (col1 = 86.21))) AND ((col3 = 244))
----

query II rowsort label-2000-2
SELECT pk, col0 FROM tab1 WHERE NOT (((col0 < 462 AND col1 < 533.61 AND (col4 >= 315.98) OR col0 > 582 AND (col0 > 553) OR col0 IS NULL OR (col1 = 86.21))) AND ((col3 = 244)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-2000-1
SELECT pk, col0 FROM view_1_tab1_97
----

query II rowsort label-2000-2
SELECT pk, col0 FROM view_2_tab1_97
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE ((col0 < 462 AND col1 < 533.61 AND (col4 >= 315.98) OR col0 > 582 AND (col0 > 553) OR col0 IS NULL OR (col1 = 86.21))) AND ((col3 = 244)) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (((col0 < 462 AND col1 < 533.61 AND (col4 >= 315.98) OR col0 > 582 AND (col0 > 553) OR col0 IS NULL OR (col1 = 86.21))) AND ((col3 = 244)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_97 UNION ALL SELECT pk, col0 FROM view_2_tab1_97
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE ((col0 < 462 AND col1 < 533.61 AND (col4 >= 315.98) OR col0 > 582 AND (col0 > 553) OR col0 IS NULL OR (col1 = 86.21))) AND ((col3 = 244)) UNION SELECT pk, col0 FROM tab1 WHERE NOT (((col0 < 462 AND col1 < 533.61 AND (col4 >= 315.98) OR col0 > 582 AND (col0 > 553) OR col0 IS NULL OR (col1 = 86.21))) AND ((col3 = 244)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_97 UNION SELECT pk, col0 FROM view_2_tab1_97
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-2000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE ((col0 < 462 AND col1 < 533.61 AND (col4 >= 315.98) OR col0 > 582 AND (col0 > 553) OR col0 IS NULL OR (col1 = 86.21))) AND ((col3 = 244)) ) AS tab1_97
----

query I rowsort label-2000-3
SELECT * FROM view_3_tab1_97
----

query I rowsort label-2000-3
SELECT pk FROM tab1 WHERE ((col0 < 462 AND col1 < 533.61 AND (col4 >= 315.98) OR col0 > 582 AND (col0 > 553) OR col0 IS NULL OR (col1 = 86.21))) AND ((col3 = 244))
----

statement ok
DROP VIEW view_1_tab1_97

statement ok
DROP VIEW view_2_tab1_97

statement ok
DROP VIEW view_3_tab1_97

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab2_97 AS SELECT pk, col0 FROM tab2 WHERE ((col0 < 462 AND col1 < 533.61 AND (col4 >= 315.98) OR col0 > 582 AND (col0 > 553) OR col0 IS NULL OR (col1 = 86.21))) AND ((col3 = 244))

statement ok
CREATE VIEW view_2_tab2_97 AS SELECT pk, col0 FROM tab2 WHERE NOT (((col0 < 462 AND col1 < 533.61 AND (col4 >= 315.98) OR col0 > 582 AND (col0 > 553) OR col0 IS NULL OR (col1 = 86.21))) AND ((col3 = 244)))

statement ok
CREATE VIEW view_3_tab2_97 AS SELECT pk FROM view_1_tab2_97

query II rowsort label-2000-1
SELECT pk, col0 FROM tab2 WHERE ((col0 < 462 AND col1 < 533.61 AND (col4 >= 315.98) OR col0 > 582 AND (col0 > 553) OR col0 IS NULL OR (col1 = 86.21))) AND ((col3 = 244))
----

query II rowsort label-2000-2
SELECT pk, col0 FROM tab2 WHERE NOT (((col0 < 462 AND col1 < 533.61 AND (col4 >= 315.98) OR col0 > 582 AND (col0 > 553) OR col0 IS NULL OR (col1 = 86.21))) AND ((col3 = 244)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-2000-1
SELECT pk, col0 FROM view_1_tab2_97
----

query II rowsort label-2000-2
SELECT pk, col0 FROM view_2_tab2_97
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE ((col0 < 462 AND col1 < 533.61 AND (col4 >= 315.98) OR col0 > 582 AND (col0 > 553) OR col0 IS NULL OR (col1 = 86.21))) AND ((col3 = 244)) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (((col0 < 462 AND col1 < 533.61 AND (col4 >= 315.98) OR col0 > 582 AND (col0 > 553) OR col0 IS NULL OR (col1 = 86.21))) AND ((col3 = 244)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_97 UNION ALL SELECT pk, col0 FROM view_2_tab2_97
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE ((col0 < 462 AND col1 < 533.61 AND (col4 >= 315.98) OR col0 > 582 AND (col0 > 553) OR col0 IS NULL OR (col1 = 86.21))) AND ((col3 = 244)) UNION SELECT pk, col0 FROM tab2 WHERE NOT (((col0 < 462 AND col1 < 533.61 AND (col4 >= 315.98) OR col0 > 582 AND (col0 > 553) OR col0 IS NULL OR (col1 = 86.21))) AND ((col3 = 244)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_97 UNION SELECT pk, col0 FROM view_2_tab2_97
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-2000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE ((col0 < 462 AND col1 < 533.61 AND (col4 >= 315.98) OR col0 > 582 AND (col0 > 553) OR col0 IS NULL OR (col1 = 86.21))) AND ((col3 = 244)) ) AS tab2_97
----

query I rowsort label-2000-3
SELECT * FROM view_3_tab2_97
----

query I rowsort label-2000-3
SELECT pk FROM tab2 WHERE ((col0 < 462 AND col1 < 533.61 AND (col4 >= 315.98) OR col0 > 582 AND (col0 > 553) OR col0 IS NULL OR (col1 = 86.21))) AND ((col3 = 244))
----

statement ok
DROP VIEW view_1_tab2_97

statement ok
DROP VIEW view_2_tab2_97

statement ok
DROP VIEW view_3_tab2_97

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab3_97 AS SELECT pk, col0 FROM tab3 WHERE ((col0 < 462 AND col1 < 533.61 AND (col4 >= 315.98) OR col0 > 582 AND (col0 > 553) OR col0 IS NULL OR (col1 = 86.21))) AND ((col3 = 244))

statement ok
CREATE VIEW view_2_tab3_97 AS SELECT pk, col0 FROM tab3 WHERE NOT (((col0 < 462 AND col1 < 533.61 AND (col4 >= 315.98) OR col0 > 582 AND (col0 > 553) OR col0 IS NULL OR (col1 = 86.21))) AND ((col3 = 244)))

statement ok
CREATE VIEW view_3_tab3_97 AS SELECT pk FROM view_1_tab3_97

query II rowsort label-2000-1
SELECT pk, col0 FROM tab3 WHERE ((col0 < 462 AND col1 < 533.61 AND (col4 >= 315.98) OR col0 > 582 AND (col0 > 553) OR col0 IS NULL OR (col1 = 86.21))) AND ((col3 = 244))
----

query II rowsort label-2000-2
SELECT pk, col0 FROM tab3 WHERE NOT (((col0 < 462 AND col1 < 533.61 AND (col4 >= 315.98) OR col0 > 582 AND (col0 > 553) OR col0 IS NULL OR (col1 = 86.21))) AND ((col3 = 244)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-2000-1
SELECT pk, col0 FROM view_1_tab3_97
----

query II rowsort label-2000-2
SELECT pk, col0 FROM view_2_tab3_97
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE ((col0 < 462 AND col1 < 533.61 AND (col4 >= 315.98) OR col0 > 582 AND (col0 > 553) OR col0 IS NULL OR (col1 = 86.21))) AND ((col3 = 244)) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (((col0 < 462 AND col1 < 533.61 AND (col4 >= 315.98) OR col0 > 582 AND (col0 > 553) OR col0 IS NULL OR (col1 = 86.21))) AND ((col3 = 244)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_97 UNION ALL SELECT pk, col0 FROM view_2_tab3_97
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE ((col0 < 462 AND col1 < 533.61 AND (col4 >= 315.98) OR col0 > 582 AND (col0 > 553) OR col0 IS NULL OR (col1 = 86.21))) AND ((col3 = 244)) UNION SELECT pk, col0 FROM tab3 WHERE NOT (((col0 < 462 AND col1 < 533.61 AND (col4 >= 315.98) OR col0 > 582 AND (col0 > 553) OR col0 IS NULL OR (col1 = 86.21))) AND ((col3 = 244)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_97 UNION SELECT pk, col0 FROM view_2_tab3_97
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-2000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE ((col0 < 462 AND col1 < 533.61 AND (col4 >= 315.98) OR col0 > 582 AND (col0 > 553) OR col0 IS NULL OR (col1 = 86.21))) AND ((col3 = 244)) ) AS tab3_97
----

query I rowsort label-2000-3
SELECT * FROM view_3_tab3_97
----

query I rowsort label-2000-3
SELECT pk FROM tab3 WHERE ((col0 < 462 AND col1 < 533.61 AND (col4 >= 315.98) OR col0 > 582 AND (col0 > 553) OR col0 IS NULL OR (col1 = 86.21))) AND ((col3 = 244))
----

statement ok
DROP VIEW view_1_tab3_97

statement ok
DROP VIEW view_2_tab3_97

statement ok
DROP VIEW view_3_tab3_97

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab4_97 AS SELECT pk, col0 FROM tab4 WHERE ((col0 < 462 AND col1 < 533.61 AND (col4 >= 315.98) OR col0 > 582 AND (col0 > 553) OR col0 IS NULL OR (col1 = 86.21))) AND ((col3 = 244))

statement ok
CREATE VIEW view_2_tab4_97 AS SELECT pk, col0 FROM tab4 WHERE NOT (((col0 < 462 AND col1 < 533.61 AND (col4 >= 315.98) OR col0 > 582 AND (col0 > 553) OR col0 IS NULL OR (col1 = 86.21))) AND ((col3 = 244)))

statement ok
CREATE VIEW view_3_tab4_97 AS SELECT pk FROM view_1_tab4_97

query II rowsort label-2000-1
SELECT pk, col0 FROM tab4 WHERE ((col0 < 462 AND col1 < 533.61 AND (col4 >= 315.98) OR col0 > 582 AND (col0 > 553) OR col0 IS NULL OR (col1 = 86.21))) AND ((col3 = 244))
----

query II rowsort label-2000-2
SELECT pk, col0 FROM tab4 WHERE NOT (((col0 < 462 AND col1 < 533.61 AND (col4 >= 315.98) OR col0 > 582 AND (col0 > 553) OR col0 IS NULL OR (col1 = 86.21))) AND ((col3 = 244)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-2000-1
SELECT pk, col0 FROM view_1_tab4_97
----

query II rowsort label-2000-2
SELECT pk, col0 FROM view_2_tab4_97
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE ((col0 < 462 AND col1 < 533.61 AND (col4 >= 315.98) OR col0 > 582 AND (col0 > 553) OR col0 IS NULL OR (col1 = 86.21))) AND ((col3 = 244)) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (((col0 < 462 AND col1 < 533.61 AND (col4 >= 315.98) OR col0 > 582 AND (col0 > 553) OR col0 IS NULL OR (col1 = 86.21))) AND ((col3 = 244)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_97 UNION ALL SELECT pk, col0 FROM view_2_tab4_97
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE ((col0 < 462 AND col1 < 533.61 AND (col4 >= 315.98) OR col0 > 582 AND (col0 > 553) OR col0 IS NULL OR (col1 = 86.21))) AND ((col3 = 244)) UNION SELECT pk, col0 FROM tab4 WHERE NOT (((col0 < 462 AND col1 < 533.61 AND (col4 >= 315.98) OR col0 > 582 AND (col0 > 553) OR col0 IS NULL OR (col1 = 86.21))) AND ((col3 = 244)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_97 UNION SELECT pk, col0 FROM view_2_tab4_97
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-2000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE ((col0 < 462 AND col1 < 533.61 AND (col4 >= 315.98) OR col0 > 582 AND (col0 > 553) OR col0 IS NULL OR (col1 = 86.21))) AND ((col3 = 244)) ) AS tab4_97
----

query I rowsort label-2000-3
SELECT * FROM view_3_tab4_97
----

query I rowsort label-2000-3
SELECT pk FROM tab4 WHERE ((col0 < 462 AND col1 < 533.61 AND (col4 >= 315.98) OR col0 > 582 AND (col0 > 553) OR col0 IS NULL OR (col1 = 86.21))) AND ((col3 = 244))
----

statement ok
DROP VIEW view_1_tab4_97

statement ok
DROP VIEW view_2_tab4_97

statement ok
DROP VIEW view_3_tab4_97

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab0_98 AS SELECT pk, col0 FROM tab0 WHERE col0 IS NULL

statement ok
CREATE VIEW view_2_tab0_98 AS SELECT pk, col0 FROM tab0 WHERE NOT (col0 IS NULL)

statement ok
CREATE VIEW view_3_tab0_98 AS SELECT pk FROM view_1_tab0_98

query II rowsort label-2100-1
SELECT pk, col0 FROM tab0 WHERE col0 IS NULL
----

query II rowsort label-2100-2
SELECT pk, col0 FROM tab0 WHERE NOT (col0 IS NULL)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-2100-1
SELECT pk, col0 FROM view_1_tab0_98
----

query II rowsort label-2100-2
SELECT pk, col0 FROM view_2_tab0_98
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col0 IS NULL UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col0 IS NULL)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_98 UNION ALL SELECT pk, col0 FROM view_2_tab0_98
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col0 IS NULL UNION SELECT pk, col0 FROM tab0 WHERE NOT (col0 IS NULL)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_98 UNION SELECT pk, col0 FROM view_2_tab0_98
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-2100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col0 IS NULL ) AS tab0_98
----

query I rowsort label-2100-3
SELECT * FROM view_3_tab0_98
----

query I rowsort label-2100-3
SELECT pk FROM tab0 WHERE col0 IS NULL
----

statement ok
DROP VIEW view_1_tab0_98

statement ok
DROP VIEW view_2_tab0_98

statement ok
DROP VIEW view_3_tab0_98

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab1_98 AS SELECT pk, col0 FROM tab1 WHERE col0 IS NULL

statement ok
CREATE VIEW view_2_tab1_98 AS SELECT pk, col0 FROM tab1 WHERE NOT (col0 IS NULL)

statement ok
CREATE VIEW view_3_tab1_98 AS SELECT pk FROM view_1_tab1_98

query II rowsort label-2100-1
SELECT pk, col0 FROM tab1 WHERE col0 IS NULL
----

query II rowsort label-2100-2
SELECT pk, col0 FROM tab1 WHERE NOT (col0 IS NULL)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-2100-1
SELECT pk, col0 FROM view_1_tab1_98
----

query II rowsort label-2100-2
SELECT pk, col0 FROM view_2_tab1_98
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col0 IS NULL UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col0 IS NULL)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_98 UNION ALL SELECT pk, col0 FROM view_2_tab1_98
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col0 IS NULL UNION SELECT pk, col0 FROM tab1 WHERE NOT (col0 IS NULL)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_98 UNION SELECT pk, col0 FROM view_2_tab1_98
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-2100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col0 IS NULL ) AS tab1_98
----

query I rowsort label-2100-3
SELECT * FROM view_3_tab1_98
----

query I rowsort label-2100-3
SELECT pk FROM tab1 WHERE col0 IS NULL
----

statement ok
DROP VIEW view_1_tab1_98

statement ok
DROP VIEW view_2_tab1_98

statement ok
DROP VIEW view_3_tab1_98

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab2_98 AS SELECT pk, col0 FROM tab2 WHERE col0 IS NULL

statement ok
CREATE VIEW view_2_tab2_98 AS SELECT pk, col0 FROM tab2 WHERE NOT (col0 IS NULL)

statement ok
CREATE VIEW view_3_tab2_98 AS SELECT pk FROM view_1_tab2_98

query II rowsort label-2100-1
SELECT pk, col0 FROM tab2 WHERE col0 IS NULL
----

query II rowsort label-2100-2
SELECT pk, col0 FROM tab2 WHERE NOT (col0 IS NULL)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-2100-1
SELECT pk, col0 FROM view_1_tab2_98
----

query II rowsort label-2100-2
SELECT pk, col0 FROM view_2_tab2_98
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col0 IS NULL UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col0 IS NULL)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_98 UNION ALL SELECT pk, col0 FROM view_2_tab2_98
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col0 IS NULL UNION SELECT pk, col0 FROM tab2 WHERE NOT (col0 IS NULL)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_98 UNION SELECT pk, col0 FROM view_2_tab2_98
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-2100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col0 IS NULL ) AS tab2_98
----

query I rowsort label-2100-3
SELECT * FROM view_3_tab2_98
----

query I rowsort label-2100-3
SELECT pk FROM tab2 WHERE col0 IS NULL
----

statement ok
DROP VIEW view_1_tab2_98

statement ok
DROP VIEW view_2_tab2_98

statement ok
DROP VIEW view_3_tab2_98

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab3_98 AS SELECT pk, col0 FROM tab3 WHERE col0 IS NULL

statement ok
CREATE VIEW view_2_tab3_98 AS SELECT pk, col0 FROM tab3 WHERE NOT (col0 IS NULL)

statement ok
CREATE VIEW view_3_tab3_98 AS SELECT pk FROM view_1_tab3_98

query II rowsort label-2100-1
SELECT pk, col0 FROM tab3 WHERE col0 IS NULL
----

query II rowsort label-2100-2
SELECT pk, col0 FROM tab3 WHERE NOT (col0 IS NULL)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-2100-1
SELECT pk, col0 FROM view_1_tab3_98
----

query II rowsort label-2100-2
SELECT pk, col0 FROM view_2_tab3_98
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col0 IS NULL UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col0 IS NULL)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_98 UNION ALL SELECT pk, col0 FROM view_2_tab3_98
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col0 IS NULL UNION SELECT pk, col0 FROM tab3 WHERE NOT (col0 IS NULL)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_98 UNION SELECT pk, col0 FROM view_2_tab3_98
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-2100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col0 IS NULL ) AS tab3_98
----

query I rowsort label-2100-3
SELECT * FROM view_3_tab3_98
----

query I rowsort label-2100-3
SELECT pk FROM tab3 WHERE col0 IS NULL
----

statement ok
DROP VIEW view_1_tab3_98

statement ok
DROP VIEW view_2_tab3_98

statement ok
DROP VIEW view_3_tab3_98

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab4_98 AS SELECT pk, col0 FROM tab4 WHERE col0 IS NULL

statement ok
CREATE VIEW view_2_tab4_98 AS SELECT pk, col0 FROM tab4 WHERE NOT (col0 IS NULL)

statement ok
CREATE VIEW view_3_tab4_98 AS SELECT pk FROM view_1_tab4_98

query II rowsort label-2100-1
SELECT pk, col0 FROM tab4 WHERE col0 IS NULL
----

query II rowsort label-2100-2
SELECT pk, col0 FROM tab4 WHERE NOT (col0 IS NULL)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-2100-1
SELECT pk, col0 FROM view_1_tab4_98
----

query II rowsort label-2100-2
SELECT pk, col0 FROM view_2_tab4_98
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col0 IS NULL UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col0 IS NULL)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_98 UNION ALL SELECT pk, col0 FROM view_2_tab4_98
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col0 IS NULL UNION SELECT pk, col0 FROM tab4 WHERE NOT (col0 IS NULL)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_98 UNION SELECT pk, col0 FROM view_2_tab4_98
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-2100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col0 IS NULL ) AS tab4_98
----

query I rowsort label-2100-3
SELECT * FROM view_3_tab4_98
----

query I rowsort label-2100-3
SELECT pk FROM tab4 WHERE col0 IS NULL
----

statement ok
DROP VIEW view_1_tab4_98

statement ok
DROP VIEW view_2_tab4_98

statement ok
DROP VIEW view_3_tab4_98

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab0_99 AS SELECT pk, col0 FROM tab0 WHERE col4 <= 142.77 AND col4 = 64.41 AND col1 >= 487.86 AND (col4 IN (SELECT col1 FROM tab0 WHERE col4 = 521.70))

statement ok
CREATE VIEW view_2_tab0_99 AS SELECT pk, col0 FROM tab0 WHERE NOT (col4 <= 142.77 AND col4 = 64.41 AND col1 >= 487.86 AND (col4 IN (SELECT col1 FROM tab0 WHERE col4 = 521.70)))

statement ok
CREATE VIEW view_3_tab0_99 AS SELECT pk FROM view_1_tab0_99

query II rowsort label-2200-1
SELECT pk, col0 FROM tab0 WHERE col4 <= 142.77 AND col4 = 64.41 AND col1 >= 487.86 AND (col4 IN (SELECT col1 FROM tab0 WHERE col4 = 521.70))
----

query II rowsort label-2200-2
SELECT pk, col0 FROM tab0 WHERE NOT (col4 <= 142.77 AND col4 = 64.41 AND col1 >= 487.86 AND (col4 IN (SELECT col1 FROM tab0 WHERE col4 = 521.70)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-2200-1
SELECT pk, col0 FROM view_1_tab0_99
----

query II rowsort label-2200-2
SELECT pk, col0 FROM view_2_tab0_99
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col4 <= 142.77 AND col4 = 64.41 AND col1 >= 487.86 AND (col4 IN (SELECT col1 FROM tab0 WHERE col4 = 521.70)) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col4 <= 142.77 AND col4 = 64.41 AND col1 >= 487.86 AND (col4 IN (SELECT col1 FROM tab0 WHERE col4 = 521.70)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_99 UNION ALL SELECT pk, col0 FROM view_2_tab0_99
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col4 <= 142.77 AND col4 = 64.41 AND col1 >= 487.86 AND (col4 IN (SELECT col1 FROM tab0 WHERE col4 = 521.70)) UNION SELECT pk, col0 FROM tab0 WHERE NOT (col4 <= 142.77 AND col4 = 64.41 AND col1 >= 487.86 AND (col4 IN (SELECT col1 FROM tab0 WHERE col4 = 521.70)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_99 UNION SELECT pk, col0 FROM view_2_tab0_99
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-2200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col4 <= 142.77 AND col4 = 64.41 AND col1 >= 487.86 AND (col4 IN (SELECT col1 FROM tab0 WHERE col4 = 521.70)) ) AS tab0_99
----

query I rowsort label-2200-3
SELECT * FROM view_3_tab0_99
----

query I rowsort label-2200-3
SELECT pk FROM tab0 WHERE col4 <= 142.77 AND col4 = 64.41 AND col1 >= 487.86 AND (col4 IN (SELECT col1 FROM tab0 WHERE col4 = 521.70))
----

statement ok
DROP VIEW view_1_tab0_99

statement ok
DROP VIEW view_2_tab0_99

statement ok
DROP VIEW view_3_tab0_99

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab1_99 AS SELECT pk, col0 FROM tab1 WHERE col4 <= 142.77 AND col4 = 64.41 AND col1 >= 487.86 AND (col4 IN (SELECT col1 FROM tab1 WHERE col4 = 521.70))

statement ok
CREATE VIEW view_2_tab1_99 AS SELECT pk, col0 FROM tab1 WHERE NOT (col4 <= 142.77 AND col4 = 64.41 AND col1 >= 487.86 AND (col4 IN (SELECT col1 FROM tab1 WHERE col4 = 521.70)))

statement ok
CREATE VIEW view_3_tab1_99 AS SELECT pk FROM view_1_tab1_99

query II rowsort label-2200-1
SELECT pk, col0 FROM tab1 WHERE col4 <= 142.77 AND col4 = 64.41 AND col1 >= 487.86 AND (col4 IN (SELECT col1 FROM tab1 WHERE col4 = 521.70))
----

query II rowsort label-2200-2
SELECT pk, col0 FROM tab1 WHERE NOT (col4 <= 142.77 AND col4 = 64.41 AND col1 >= 487.86 AND (col4 IN (SELECT col1 FROM tab1 WHERE col4 = 521.70)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-2200-1
SELECT pk, col0 FROM view_1_tab1_99
----

query II rowsort label-2200-2
SELECT pk, col0 FROM view_2_tab1_99
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col4 <= 142.77 AND col4 = 64.41 AND col1 >= 487.86 AND (col4 IN (SELECT col1 FROM tab1 WHERE col4 = 521.70)) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col4 <= 142.77 AND col4 = 64.41 AND col1 >= 487.86 AND (col4 IN (SELECT col1 FROM tab1 WHERE col4 = 521.70)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_99 UNION ALL SELECT pk, col0 FROM view_2_tab1_99
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col4 <= 142.77 AND col4 = 64.41 AND col1 >= 487.86 AND (col4 IN (SELECT col1 FROM tab1 WHERE col4 = 521.70)) UNION SELECT pk, col0 FROM tab1 WHERE NOT (col4 <= 142.77 AND col4 = 64.41 AND col1 >= 487.86 AND (col4 IN (SELECT col1 FROM tab1 WHERE col4 = 521.70)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_99 UNION SELECT pk, col0 FROM view_2_tab1_99
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-2200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col4 <= 142.77 AND col4 = 64.41 AND col1 >= 487.86 AND (col4 IN (SELECT col1 FROM tab1 WHERE col4 = 521.70)) ) AS tab1_99
----

query I rowsort label-2200-3
SELECT * FROM view_3_tab1_99
----

query I rowsort label-2200-3
SELECT pk FROM tab1 WHERE col4 <= 142.77 AND col4 = 64.41 AND col1 >= 487.86 AND (col4 IN (SELECT col1 FROM tab1 WHERE col4 = 521.70))
----

statement ok
DROP VIEW view_1_tab1_99

statement ok
DROP VIEW view_2_tab1_99

statement ok
DROP VIEW view_3_tab1_99

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab2_99 AS SELECT pk, col0 FROM tab2 WHERE col4 <= 142.77 AND col4 = 64.41 AND col1 >= 487.86 AND (col4 IN (SELECT col1 FROM tab2 WHERE col4 = 521.70))

statement ok
CREATE VIEW view_2_tab2_99 AS SELECT pk, col0 FROM tab2 WHERE NOT (col4 <= 142.77 AND col4 = 64.41 AND col1 >= 487.86 AND (col4 IN (SELECT col1 FROM tab2 WHERE col4 = 521.70)))

statement ok
CREATE VIEW view_3_tab2_99 AS SELECT pk FROM view_1_tab2_99

query II rowsort label-2200-1
SELECT pk, col0 FROM tab2 WHERE col4 <= 142.77 AND col4 = 64.41 AND col1 >= 487.86 AND (col4 IN (SELECT col1 FROM tab2 WHERE col4 = 521.70))
----

query II rowsort label-2200-2
SELECT pk, col0 FROM tab2 WHERE NOT (col4 <= 142.77 AND col4 = 64.41 AND col1 >= 487.86 AND (col4 IN (SELECT col1 FROM tab2 WHERE col4 = 521.70)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-2200-1
SELECT pk, col0 FROM view_1_tab2_99
----

query II rowsort label-2200-2
SELECT pk, col0 FROM view_2_tab2_99
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col4 <= 142.77 AND col4 = 64.41 AND col1 >= 487.86 AND (col4 IN (SELECT col1 FROM tab2 WHERE col4 = 521.70)) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col4 <= 142.77 AND col4 = 64.41 AND col1 >= 487.86 AND (col4 IN (SELECT col1 FROM tab2 WHERE col4 = 521.70)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_99 UNION ALL SELECT pk, col0 FROM view_2_tab2_99
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col4 <= 142.77 AND col4 = 64.41 AND col1 >= 487.86 AND (col4 IN (SELECT col1 FROM tab2 WHERE col4 = 521.70)) UNION SELECT pk, col0 FROM tab2 WHERE NOT (col4 <= 142.77 AND col4 = 64.41 AND col1 >= 487.86 AND (col4 IN (SELECT col1 FROM tab2 WHERE col4 = 521.70)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_99 UNION SELECT pk, col0 FROM view_2_tab2_99
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-2200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col4 <= 142.77 AND col4 = 64.41 AND col1 >= 487.86 AND (col4 IN (SELECT col1 FROM tab2 WHERE col4 = 521.70)) ) AS tab2_99
----

query I rowsort label-2200-3
SELECT * FROM view_3_tab2_99
----

query I rowsort label-2200-3
SELECT pk FROM tab2 WHERE col4 <= 142.77 AND col4 = 64.41 AND col1 >= 487.86 AND (col4 IN (SELECT col1 FROM tab2 WHERE col4 = 521.70))
----

statement ok
DROP VIEW view_1_tab2_99

statement ok
DROP VIEW view_2_tab2_99

statement ok
DROP VIEW view_3_tab2_99

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab3_99 AS SELECT pk, col0 FROM tab3 WHERE col4 <= 142.77 AND col4 = 64.41 AND col1 >= 487.86 AND (col4 IN (SELECT col1 FROM tab3 WHERE col4 = 521.70))

statement ok
CREATE VIEW view_2_tab3_99 AS SELECT pk, col0 FROM tab3 WHERE NOT (col4 <= 142.77 AND col4 = 64.41 AND col1 >= 487.86 AND (col4 IN (SELECT col1 FROM tab3 WHERE col4 = 521.70)))

statement ok
CREATE VIEW view_3_tab3_99 AS SELECT pk FROM view_1_tab3_99

query II rowsort label-2200-1
SELECT pk, col0 FROM tab3 WHERE col4 <= 142.77 AND col4 = 64.41 AND col1 >= 487.86 AND (col4 IN (SELECT col1 FROM tab3 WHERE col4 = 521.70))
----

query II rowsort label-2200-2
SELECT pk, col0 FROM tab3 WHERE NOT (col4 <= 142.77 AND col4 = 64.41 AND col1 >= 487.86 AND (col4 IN (SELECT col1 FROM tab3 WHERE col4 = 521.70)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-2200-1
SELECT pk, col0 FROM view_1_tab3_99
----

query II rowsort label-2200-2
SELECT pk, col0 FROM view_2_tab3_99
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col4 <= 142.77 AND col4 = 64.41 AND col1 >= 487.86 AND (col4 IN (SELECT col1 FROM tab3 WHERE col4 = 521.70)) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col4 <= 142.77 AND col4 = 64.41 AND col1 >= 487.86 AND (col4 IN (SELECT col1 FROM tab3 WHERE col4 = 521.70)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_99 UNION ALL SELECT pk, col0 FROM view_2_tab3_99
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col4 <= 142.77 AND col4 = 64.41 AND col1 >= 487.86 AND (col4 IN (SELECT col1 FROM tab3 WHERE col4 = 521.70)) UNION SELECT pk, col0 FROM tab3 WHERE NOT (col4 <= 142.77 AND col4 = 64.41 AND col1 >= 487.86 AND (col4 IN (SELECT col1 FROM tab3 WHERE col4 = 521.70)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_99 UNION SELECT pk, col0 FROM view_2_tab3_99
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-2200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col4 <= 142.77 AND col4 = 64.41 AND col1 >= 487.86 AND (col4 IN (SELECT col1 FROM tab3 WHERE col4 = 521.70)) ) AS tab3_99
----

query I rowsort label-2200-3
SELECT * FROM view_3_tab3_99
----

query I rowsort label-2200-3
SELECT pk FROM tab3 WHERE col4 <= 142.77 AND col4 = 64.41 AND col1 >= 487.86 AND (col4 IN (SELECT col1 FROM tab3 WHERE col4 = 521.70))
----

statement ok
DROP VIEW view_1_tab3_99

statement ok
DROP VIEW view_2_tab3_99

statement ok
DROP VIEW view_3_tab3_99

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab4_99 AS SELECT pk, col0 FROM tab4 WHERE col4 <= 142.77 AND col4 = 64.41 AND col1 >= 487.86 AND (col4 IN (SELECT col1 FROM tab4 WHERE col4 = 521.70))

statement ok
CREATE VIEW view_2_tab4_99 AS SELECT pk, col0 FROM tab4 WHERE NOT (col4 <= 142.77 AND col4 = 64.41 AND col1 >= 487.86 AND (col4 IN (SELECT col1 FROM tab4 WHERE col4 = 521.70)))

statement ok
CREATE VIEW view_3_tab4_99 AS SELECT pk FROM view_1_tab4_99

query II rowsort label-2200-1
SELECT pk, col0 FROM tab4 WHERE col4 <= 142.77 AND col4 = 64.41 AND col1 >= 487.86 AND (col4 IN (SELECT col1 FROM tab4 WHERE col4 = 521.70))
----

query II rowsort label-2200-2
SELECT pk, col0 FROM tab4 WHERE NOT (col4 <= 142.77 AND col4 = 64.41 AND col1 >= 487.86 AND (col4 IN (SELECT col1 FROM tab4 WHERE col4 = 521.70)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-2200-1
SELECT pk, col0 FROM view_1_tab4_99
----

query II rowsort label-2200-2
SELECT pk, col0 FROM view_2_tab4_99
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col4 <= 142.77 AND col4 = 64.41 AND col1 >= 487.86 AND (col4 IN (SELECT col1 FROM tab4 WHERE col4 = 521.70)) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col4 <= 142.77 AND col4 = 64.41 AND col1 >= 487.86 AND (col4 IN (SELECT col1 FROM tab4 WHERE col4 = 521.70)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_99 UNION ALL SELECT pk, col0 FROM view_2_tab4_99
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col4 <= 142.77 AND col4 = 64.41 AND col1 >= 487.86 AND (col4 IN (SELECT col1 FROM tab4 WHERE col4 = 521.70)) UNION SELECT pk, col0 FROM tab4 WHERE NOT (col4 <= 142.77 AND col4 = 64.41 AND col1 >= 487.86 AND (col4 IN (SELECT col1 FROM tab4 WHERE col4 = 521.70)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_99 UNION SELECT pk, col0 FROM view_2_tab4_99
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-2200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col4 <= 142.77 AND col4 = 64.41 AND col1 >= 487.86 AND (col4 IN (SELECT col1 FROM tab4 WHERE col4 = 521.70)) ) AS tab4_99
----

query I rowsort label-2200-3
SELECT * FROM view_3_tab4_99
----

query I rowsort label-2200-3
SELECT pk FROM tab4 WHERE col4 <= 142.77 AND col4 = 64.41 AND col1 >= 487.86 AND (col4 IN (SELECT col1 FROM tab4 WHERE col4 = 521.70))
----

statement ok
DROP VIEW view_1_tab4_99

statement ok
DROP VIEW view_2_tab4_99

statement ok
DROP VIEW view_3_tab4_99

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab0_100 AS SELECT pk, col0 FROM tab0 WHERE col1 >= 922.41

statement ok
CREATE VIEW view_2_tab0_100 AS SELECT pk, col0 FROM tab0 WHERE NOT (col1 >= 922.41)

statement ok
CREATE VIEW view_3_tab0_100 AS SELECT pk FROM view_1_tab0_100

query II rowsort label-2300-1
SELECT pk, col0 FROM tab0 WHERE col1 >= 922.41
----
18 values hashing to a91a7ff49cfcb67538e6b429837b0aec

query II rowsort label-2300-2
SELECT pk, col0 FROM tab0 WHERE NOT (col1 >= 922.41)
----
182 values hashing to e838a0f2fa4cc9661f1913b758cca01f

query II rowsort label-2300-1
SELECT pk, col0 FROM view_1_tab0_100
----
18 values hashing to a91a7ff49cfcb67538e6b429837b0aec

query II rowsort label-2300-2
SELECT pk, col0 FROM view_2_tab0_100
----
182 values hashing to e838a0f2fa4cc9661f1913b758cca01f

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col1 >= 922.41 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col1 >= 922.41)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_100 UNION ALL SELECT pk, col0 FROM view_2_tab0_100
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col1 >= 922.41 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col1 >= 922.41)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_100 UNION SELECT pk, col0 FROM view_2_tab0_100
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-2300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col1 >= 922.41 ) AS tab0_100
----
9 values hashing to c67b78b3e1f8977787f19fde8e0446be

query I rowsort label-2300-3
SELECT * FROM view_3_tab0_100
----
9 values hashing to c67b78b3e1f8977787f19fde8e0446be

query I rowsort label-2300-3
SELECT pk FROM tab0 WHERE col1 >= 922.41
----
9 values hashing to c67b78b3e1f8977787f19fde8e0446be

statement ok
DROP VIEW view_1_tab0_100

statement ok
DROP VIEW view_2_tab0_100

statement ok
DROP VIEW view_3_tab0_100

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab1_100 AS SELECT pk, col0 FROM tab1 WHERE col1 >= 922.41

statement ok
CREATE VIEW view_2_tab1_100 AS SELECT pk, col0 FROM tab1 WHERE NOT (col1 >= 922.41)

statement ok
CREATE VIEW view_3_tab1_100 AS SELECT pk FROM view_1_tab1_100

query II rowsort label-2300-1
SELECT pk, col0 FROM tab1 WHERE col1 >= 922.41
----
18 values hashing to a91a7ff49cfcb67538e6b429837b0aec

query II rowsort label-2300-2
SELECT pk, col0 FROM tab1 WHERE NOT (col1 >= 922.41)
----
182 values hashing to e838a0f2fa4cc9661f1913b758cca01f

query II rowsort label-2300-1
SELECT pk, col0 FROM view_1_tab1_100
----
18 values hashing to a91a7ff49cfcb67538e6b429837b0aec

query II rowsort label-2300-2
SELECT pk, col0 FROM view_2_tab1_100
----
182 values hashing to e838a0f2fa4cc9661f1913b758cca01f

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col1 >= 922.41 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col1 >= 922.41)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_100 UNION ALL SELECT pk, col0 FROM view_2_tab1_100
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col1 >= 922.41 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col1 >= 922.41)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_100 UNION SELECT pk, col0 FROM view_2_tab1_100
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-2300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col1 >= 922.41 ) AS tab1_100
----
9 values hashing to c67b78b3e1f8977787f19fde8e0446be

query I rowsort label-2300-3
SELECT * FROM view_3_tab1_100
----
9 values hashing to c67b78b3e1f8977787f19fde8e0446be

query I rowsort label-2300-3
SELECT pk FROM tab1 WHERE col1 >= 922.41
----
9 values hashing to c67b78b3e1f8977787f19fde8e0446be

statement ok
DROP VIEW view_1_tab1_100

statement ok
DROP VIEW view_2_tab1_100

statement ok
DROP VIEW view_3_tab1_100

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab2_100 AS SELECT pk, col0 FROM tab2 WHERE col1 >= 922.41

statement ok
CREATE VIEW view_2_tab2_100 AS SELECT pk, col0 FROM tab2 WHERE NOT (col1 >= 922.41)

statement ok
CREATE VIEW view_3_tab2_100 AS SELECT pk FROM view_1_tab2_100

query II rowsort label-2300-1
SELECT pk, col0 FROM tab2 WHERE col1 >= 922.41
----
18 values hashing to a91a7ff49cfcb67538e6b429837b0aec

query II rowsort label-2300-2
SELECT pk, col0 FROM tab2 WHERE NOT (col1 >= 922.41)
----
182 values hashing to e838a0f2fa4cc9661f1913b758cca01f

query II rowsort label-2300-1
SELECT pk, col0 FROM view_1_tab2_100
----
18 values hashing to a91a7ff49cfcb67538e6b429837b0aec

query II rowsort label-2300-2
SELECT pk, col0 FROM view_2_tab2_100
----
182 values hashing to e838a0f2fa4cc9661f1913b758cca01f

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col1 >= 922.41 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col1 >= 922.41)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_100 UNION ALL SELECT pk, col0 FROM view_2_tab2_100
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col1 >= 922.41 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col1 >= 922.41)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_100 UNION SELECT pk, col0 FROM view_2_tab2_100
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-2300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col1 >= 922.41 ) AS tab2_100
----
9 values hashing to c67b78b3e1f8977787f19fde8e0446be

query I rowsort label-2300-3
SELECT * FROM view_3_tab2_100
----
9 values hashing to c67b78b3e1f8977787f19fde8e0446be

query I rowsort label-2300-3
SELECT pk FROM tab2 WHERE col1 >= 922.41
----
9 values hashing to c67b78b3e1f8977787f19fde8e0446be

statement ok
DROP VIEW view_1_tab2_100

statement ok
DROP VIEW view_2_tab2_100

statement ok
DROP VIEW view_3_tab2_100

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab3_100 AS SELECT pk, col0 FROM tab3 WHERE col1 >= 922.41

statement ok
CREATE VIEW view_2_tab3_100 AS SELECT pk, col0 FROM tab3 WHERE NOT (col1 >= 922.41)

statement ok
CREATE VIEW view_3_tab3_100 AS SELECT pk FROM view_1_tab3_100

query II rowsort label-2300-1
SELECT pk, col0 FROM tab3 WHERE col1 >= 922.41
----
18 values hashing to a91a7ff49cfcb67538e6b429837b0aec

query II rowsort label-2300-2
SELECT pk, col0 FROM tab3 WHERE NOT (col1 >= 922.41)
----
182 values hashing to e838a0f2fa4cc9661f1913b758cca01f

query II rowsort label-2300-1
SELECT pk, col0 FROM view_1_tab3_100
----
18 values hashing to a91a7ff49cfcb67538e6b429837b0aec

query II rowsort label-2300-2
SELECT pk, col0 FROM view_2_tab3_100
----
182 values hashing to e838a0f2fa4cc9661f1913b758cca01f

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col1 >= 922.41 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col1 >= 922.41)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_100 UNION ALL SELECT pk, col0 FROM view_2_tab3_100
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col1 >= 922.41 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col1 >= 922.41)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_100 UNION SELECT pk, col0 FROM view_2_tab3_100
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-2300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col1 >= 922.41 ) AS tab3_100
----
9 values hashing to c67b78b3e1f8977787f19fde8e0446be

query I rowsort label-2300-3
SELECT * FROM view_3_tab3_100
----
9 values hashing to c67b78b3e1f8977787f19fde8e0446be

query I rowsort label-2300-3
SELECT pk FROM tab3 WHERE col1 >= 922.41
----
9 values hashing to c67b78b3e1f8977787f19fde8e0446be

statement ok
DROP VIEW view_1_tab3_100

statement ok
DROP VIEW view_2_tab3_100

statement ok
DROP VIEW view_3_tab3_100

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab4_100 AS SELECT pk, col0 FROM tab4 WHERE col1 >= 922.41

statement ok
CREATE VIEW view_2_tab4_100 AS SELECT pk, col0 FROM tab4 WHERE NOT (col1 >= 922.41)

statement ok
CREATE VIEW view_3_tab4_100 AS SELECT pk FROM view_1_tab4_100

query II rowsort label-2300-1
SELECT pk, col0 FROM tab4 WHERE col1 >= 922.41
----
18 values hashing to a91a7ff49cfcb67538e6b429837b0aec

query II rowsort label-2300-2
SELECT pk, col0 FROM tab4 WHERE NOT (col1 >= 922.41)
----
182 values hashing to e838a0f2fa4cc9661f1913b758cca01f

query II rowsort label-2300-1
SELECT pk, col0 FROM view_1_tab4_100
----
18 values hashing to a91a7ff49cfcb67538e6b429837b0aec

query II rowsort label-2300-2
SELECT pk, col0 FROM view_2_tab4_100
----
182 values hashing to e838a0f2fa4cc9661f1913b758cca01f

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col1 >= 922.41 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col1 >= 922.41)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_100 UNION ALL SELECT pk, col0 FROM view_2_tab4_100
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col1 >= 922.41 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col1 >= 922.41)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_100 UNION SELECT pk, col0 FROM view_2_tab4_100
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-2300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col1 >= 922.41 ) AS tab4_100
----
9 values hashing to c67b78b3e1f8977787f19fde8e0446be

query I rowsort label-2300-3
SELECT * FROM view_3_tab4_100
----
9 values hashing to c67b78b3e1f8977787f19fde8e0446be

query I rowsort label-2300-3
SELECT pk FROM tab4 WHERE col1 >= 922.41
----
9 values hashing to c67b78b3e1f8977787f19fde8e0446be

statement ok
DROP VIEW view_1_tab4_100

statement ok
DROP VIEW view_2_tab4_100

statement ok
DROP VIEW view_3_tab4_100

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab0_101 AS SELECT pk, col0 FROM tab0 WHERE (col0 = 858)

statement ok
CREATE VIEW view_2_tab0_101 AS SELECT pk, col0 FROM tab0 WHERE NOT ((col0 = 858))

statement ok
CREATE VIEW view_3_tab0_101 AS SELECT pk FROM view_1_tab0_101

query II rowsort label-2400-1
SELECT pk, col0 FROM tab0 WHERE (col0 = 858)
----

query II rowsort label-2400-2
SELECT pk, col0 FROM tab0 WHERE NOT ((col0 = 858))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-2400-1
SELECT pk, col0 FROM view_1_tab0_101
----

query II rowsort label-2400-2
SELECT pk, col0 FROM view_2_tab0_101
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col0 = 858) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT ((col0 = 858))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_101 UNION ALL SELECT pk, col0 FROM view_2_tab0_101
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col0 = 858) UNION SELECT pk, col0 FROM tab0 WHERE NOT ((col0 = 858))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_101 UNION SELECT pk, col0 FROM view_2_tab0_101
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-2400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE (col0 = 858) ) AS tab0_101
----

query I rowsort label-2400-3
SELECT * FROM view_3_tab0_101
----

query I rowsort label-2400-3
SELECT pk FROM tab0 WHERE (col0 = 858)
----

statement ok
DROP VIEW view_1_tab0_101

statement ok
DROP VIEW view_2_tab0_101

statement ok
DROP VIEW view_3_tab0_101

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab1_101 AS SELECT pk, col0 FROM tab1 WHERE (col0 = 858)

statement ok
CREATE VIEW view_2_tab1_101 AS SELECT pk, col0 FROM tab1 WHERE NOT ((col0 = 858))

statement ok
CREATE VIEW view_3_tab1_101 AS SELECT pk FROM view_1_tab1_101

query II rowsort label-2400-1
SELECT pk, col0 FROM tab1 WHERE (col0 = 858)
----

query II rowsort label-2400-2
SELECT pk, col0 FROM tab1 WHERE NOT ((col0 = 858))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-2400-1
SELECT pk, col0 FROM view_1_tab1_101
----

query II rowsort label-2400-2
SELECT pk, col0 FROM view_2_tab1_101
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col0 = 858) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT ((col0 = 858))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_101 UNION ALL SELECT pk, col0 FROM view_2_tab1_101
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col0 = 858) UNION SELECT pk, col0 FROM tab1 WHERE NOT ((col0 = 858))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_101 UNION SELECT pk, col0 FROM view_2_tab1_101
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-2400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE (col0 = 858) ) AS tab1_101
----

query I rowsort label-2400-3
SELECT * FROM view_3_tab1_101
----

query I rowsort label-2400-3
SELECT pk FROM tab1 WHERE (col0 = 858)
----

statement ok
DROP VIEW view_1_tab1_101

statement ok
DROP VIEW view_2_tab1_101

statement ok
DROP VIEW view_3_tab1_101

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab2_101 AS SELECT pk, col0 FROM tab2 WHERE (col0 = 858)

statement ok
CREATE VIEW view_2_tab2_101 AS SELECT pk, col0 FROM tab2 WHERE NOT ((col0 = 858))

statement ok
CREATE VIEW view_3_tab2_101 AS SELECT pk FROM view_1_tab2_101

query II rowsort label-2400-1
SELECT pk, col0 FROM tab2 WHERE (col0 = 858)
----

query II rowsort label-2400-2
SELECT pk, col0 FROM tab2 WHERE NOT ((col0 = 858))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-2400-1
SELECT pk, col0 FROM view_1_tab2_101
----

query II rowsort label-2400-2
SELECT pk, col0 FROM view_2_tab2_101
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col0 = 858) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT ((col0 = 858))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_101 UNION ALL SELECT pk, col0 FROM view_2_tab2_101
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col0 = 858) UNION SELECT pk, col0 FROM tab2 WHERE NOT ((col0 = 858))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_101 UNION SELECT pk, col0 FROM view_2_tab2_101
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-2400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE (col0 = 858) ) AS tab2_101
----

query I rowsort label-2400-3
SELECT * FROM view_3_tab2_101
----

query I rowsort label-2400-3
SELECT pk FROM tab2 WHERE (col0 = 858)
----

statement ok
DROP VIEW view_1_tab2_101

statement ok
DROP VIEW view_2_tab2_101

statement ok
DROP VIEW view_3_tab2_101

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab3_101 AS SELECT pk, col0 FROM tab3 WHERE (col0 = 858)

statement ok
CREATE VIEW view_2_tab3_101 AS SELECT pk, col0 FROM tab3 WHERE NOT ((col0 = 858))

statement ok
CREATE VIEW view_3_tab3_101 AS SELECT pk FROM view_1_tab3_101

query II rowsort label-2400-1
SELECT pk, col0 FROM tab3 WHERE (col0 = 858)
----

query II rowsort label-2400-2
SELECT pk, col0 FROM tab3 WHERE NOT ((col0 = 858))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-2400-1
SELECT pk, col0 FROM view_1_tab3_101
----

query II rowsort label-2400-2
SELECT pk, col0 FROM view_2_tab3_101
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col0 = 858) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT ((col0 = 858))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_101 UNION ALL SELECT pk, col0 FROM view_2_tab3_101
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col0 = 858) UNION SELECT pk, col0 FROM tab3 WHERE NOT ((col0 = 858))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_101 UNION SELECT pk, col0 FROM view_2_tab3_101
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-2400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE (col0 = 858) ) AS tab3_101
----

query I rowsort label-2400-3
SELECT * FROM view_3_tab3_101
----

query I rowsort label-2400-3
SELECT pk FROM tab3 WHERE (col0 = 858)
----

statement ok
DROP VIEW view_1_tab3_101

statement ok
DROP VIEW view_2_tab3_101

statement ok
DROP VIEW view_3_tab3_101

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab4_101 AS SELECT pk, col0 FROM tab4 WHERE (col0 = 858)

statement ok
CREATE VIEW view_2_tab4_101 AS SELECT pk, col0 FROM tab4 WHERE NOT ((col0 = 858))

statement ok
CREATE VIEW view_3_tab4_101 AS SELECT pk FROM view_1_tab4_101

query II rowsort label-2400-1
SELECT pk, col0 FROM tab4 WHERE (col0 = 858)
----

query II rowsort label-2400-2
SELECT pk, col0 FROM tab4 WHERE NOT ((col0 = 858))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-2400-1
SELECT pk, col0 FROM view_1_tab4_101
----

query II rowsort label-2400-2
SELECT pk, col0 FROM view_2_tab4_101
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col0 = 858) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT ((col0 = 858))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_101 UNION ALL SELECT pk, col0 FROM view_2_tab4_101
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col0 = 858) UNION SELECT pk, col0 FROM tab4 WHERE NOT ((col0 = 858))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_101 UNION SELECT pk, col0 FROM view_2_tab4_101
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-2400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE (col0 = 858) ) AS tab4_101
----

query I rowsort label-2400-3
SELECT * FROM view_3_tab4_101
----

query I rowsort label-2400-3
SELECT pk FROM tab4 WHERE (col0 = 858)
----

statement ok
DROP VIEW view_1_tab4_101

statement ok
DROP VIEW view_2_tab4_101

statement ok
DROP VIEW view_3_tab4_101

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab0_102 AS SELECT pk, col0 FROM tab0 WHERE (col4 < 188.32)

statement ok
CREATE VIEW view_2_tab0_102 AS SELECT pk, col0 FROM tab0 WHERE NOT ((col4 < 188.32))

statement ok
CREATE VIEW view_3_tab0_102 AS SELECT pk FROM view_1_tab0_102

query II rowsort label-2500-1
SELECT pk, col0 FROM tab0 WHERE (col4 < 188.32)
----
24 values hashing to 0438ba65cc732046ded53a1ba07cb83b

query II rowsort label-2500-2
SELECT pk, col0 FROM tab0 WHERE NOT ((col4 < 188.32))
----
176 values hashing to b5f3e135d963c5461dceac7e41f2176c

query II rowsort label-2500-1
SELECT pk, col0 FROM view_1_tab0_102
----
24 values hashing to 0438ba65cc732046ded53a1ba07cb83b

query II rowsort label-2500-2
SELECT pk, col0 FROM view_2_tab0_102
----
176 values hashing to b5f3e135d963c5461dceac7e41f2176c

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col4 < 188.32) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT ((col4 < 188.32))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_102 UNION ALL SELECT pk, col0 FROM view_2_tab0_102
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col4 < 188.32) UNION SELECT pk, col0 FROM tab0 WHERE NOT ((col4 < 188.32))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_102 UNION SELECT pk, col0 FROM view_2_tab0_102
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-2500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE (col4 < 188.32) ) AS tab0_102
----
12 values hashing to 739b120412276ab962961f15c98b0703

query I rowsort label-2500-3
SELECT * FROM view_3_tab0_102
----
12 values hashing to 739b120412276ab962961f15c98b0703

query I rowsort label-2500-3
SELECT pk FROM tab0 WHERE (col4 < 188.32)
----
12 values hashing to 739b120412276ab962961f15c98b0703

statement ok
DROP VIEW view_1_tab0_102

statement ok
DROP VIEW view_2_tab0_102

statement ok
DROP VIEW view_3_tab0_102

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab1_102 AS SELECT pk, col0 FROM tab1 WHERE (col4 < 188.32)

statement ok
CREATE VIEW view_2_tab1_102 AS SELECT pk, col0 FROM tab1 WHERE NOT ((col4 < 188.32))

statement ok
CREATE VIEW view_3_tab1_102 AS SELECT pk FROM view_1_tab1_102

query II rowsort label-2500-1
SELECT pk, col0 FROM tab1 WHERE (col4 < 188.32)
----
24 values hashing to 0438ba65cc732046ded53a1ba07cb83b

query II rowsort label-2500-2
SELECT pk, col0 FROM tab1 WHERE NOT ((col4 < 188.32))
----
176 values hashing to b5f3e135d963c5461dceac7e41f2176c

query II rowsort label-2500-1
SELECT pk, col0 FROM view_1_tab1_102
----
24 values hashing to 0438ba65cc732046ded53a1ba07cb83b

query II rowsort label-2500-2
SELECT pk, col0 FROM view_2_tab1_102
----
176 values hashing to b5f3e135d963c5461dceac7e41f2176c

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col4 < 188.32) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT ((col4 < 188.32))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_102 UNION ALL SELECT pk, col0 FROM view_2_tab1_102
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col4 < 188.32) UNION SELECT pk, col0 FROM tab1 WHERE NOT ((col4 < 188.32))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_102 UNION SELECT pk, col0 FROM view_2_tab1_102
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-2500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE (col4 < 188.32) ) AS tab1_102
----
12 values hashing to 739b120412276ab962961f15c98b0703

query I rowsort label-2500-3
SELECT * FROM view_3_tab1_102
----
12 values hashing to 739b120412276ab962961f15c98b0703

query I rowsort label-2500-3
SELECT pk FROM tab1 WHERE (col4 < 188.32)
----
12 values hashing to 739b120412276ab962961f15c98b0703

statement ok
DROP VIEW view_1_tab1_102

statement ok
DROP VIEW view_2_tab1_102

statement ok
DROP VIEW view_3_tab1_102

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

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

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

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

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_102') DROP VIEW view_3_tab2_102

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_102

statement ok
CREATE VIEW view_1_tab2_102 AS SELECT pk, col0 FROM tab2 WHERE (col4 < 188.32)

statement ok
CREATE VIEW view_2_tab2_102 AS SELECT pk, col0 FROM tab2 WHERE NOT ((col4 < 188.32))

statement ok
CREATE VIEW view_3_tab2_102 AS SELECT pk FROM view_1_tab2_102

query II rowsort label-2500-1
SELECT pk, col0 FROM tab2 WHERE (col4 < 188.32)
----
24 values hashing to 0438ba65cc732046ded53a1ba07cb83b

query II rowsort label-2500-2
SELECT pk, col0 FROM tab2 WHERE NOT ((col4 < 188.32))
----
176 values hashing to b5f3e135d963c5461dceac7e41f2176c

query II rowsort label-2500-1
SELECT pk, col0 FROM view_1_tab2_102
----
24 values hashing to 0438ba65cc732046ded53a1ba07cb83b

query II rowsort label-2500-2
SELECT pk, col0 FROM view_2_tab2_102
----
176 values hashing to b5f3e135d963c5461dceac7e41f2176c

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col4 < 188.32) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT ((col4 < 188.32))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_102 UNION ALL SELECT pk, col0 FROM view_2_tab2_102
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col4 < 188.32) UNION SELECT pk, col0 FROM tab2 WHERE NOT ((col4 < 188.32))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_102 UNION SELECT pk, col0 FROM view_2_tab2_102
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-2500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE (col4 < 188.32) ) AS tab2_102
----
12 values hashing to 739b120412276ab962961f15c98b0703

query I rowsort label-2500-3
SELECT * FROM view_3_tab2_102
----
12 values hashing to 739b120412276ab962961f15c98b0703

query I rowsort label-2500-3
SELECT pk FROM tab2 WHERE (col4 < 188.32)
----
12 values hashing to 739b120412276ab962961f15c98b0703

statement ok
DROP VIEW view_1_tab2_102

statement ok
DROP VIEW view_2_tab2_102

statement ok
DROP VIEW view_3_tab2_102

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_102') DROP VIEW view_1_tab3_102

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_102

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_102') DROP VIEW view_2_tab3_102

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_102

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_102') DROP VIEW view_3_tab3_102

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_102

statement ok
CREATE VIEW view_1_tab3_102 AS SELECT pk, col0 FROM tab3 WHERE (col4 < 188.32)

statement ok
CREATE VIEW view_2_tab3_102 AS SELECT pk, col0 FROM tab3 WHERE NOT ((col4 < 188.32))

statement ok
CREATE VIEW view_3_tab3_102 AS SELECT pk FROM view_1_tab3_102

query II rowsort label-2500-1
SELECT pk, col0 FROM tab3 WHERE (col4 < 188.32)
----
24 values hashing to 0438ba65cc732046ded53a1ba07cb83b

query II rowsort label-2500-2
SELECT pk, col0 FROM tab3 WHERE NOT ((col4 < 188.32))
----
176 values hashing to b5f3e135d963c5461dceac7e41f2176c

query II rowsort label-2500-1
SELECT pk, col0 FROM view_1_tab3_102
----
24 values hashing to 0438ba65cc732046ded53a1ba07cb83b

query II rowsort label-2500-2
SELECT pk, col0 FROM view_2_tab3_102
----
176 values hashing to b5f3e135d963c5461dceac7e41f2176c

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col4 < 188.32) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT ((col4 < 188.32))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_102 UNION ALL SELECT pk, col0 FROM view_2_tab3_102
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col4 < 188.32) UNION SELECT pk, col0 FROM tab3 WHERE NOT ((col4 < 188.32))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_102 UNION SELECT pk, col0 FROM view_2_tab3_102
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-2500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE (col4 < 188.32) ) AS tab3_102
----
12 values hashing to 739b120412276ab962961f15c98b0703

query I rowsort label-2500-3
SELECT * FROM view_3_tab3_102
----
12 values hashing to 739b120412276ab962961f15c98b0703

query I rowsort label-2500-3
SELECT pk FROM tab3 WHERE (col4 < 188.32)
----
12 values hashing to 739b120412276ab962961f15c98b0703

statement ok
DROP VIEW view_1_tab3_102

statement ok
DROP VIEW view_2_tab3_102

statement ok
DROP VIEW view_3_tab3_102

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_102') DROP VIEW view_1_tab4_102

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_102

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_102') DROP VIEW view_2_tab4_102

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_102

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_102') DROP VIEW view_3_tab4_102

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_102

statement ok
CREATE VIEW view_1_tab4_102 AS SELECT pk, col0 FROM tab4 WHERE (col4 < 188.32)

statement ok
CREATE VIEW view_2_tab4_102 AS SELECT pk, col0 FROM tab4 WHERE NOT ((col4 < 188.32))

statement ok
CREATE VIEW view_3_tab4_102 AS SELECT pk FROM view_1_tab4_102

query II rowsort label-2500-1
SELECT pk, col0 FROM tab4 WHERE (col4 < 188.32)
----
24 values hashing to 0438ba65cc732046ded53a1ba07cb83b

query II rowsort label-2500-2
SELECT pk, col0 FROM tab4 WHERE NOT ((col4 < 188.32))
----
176 values hashing to b5f3e135d963c5461dceac7e41f2176c

query II rowsort label-2500-1
SELECT pk, col0 FROM view_1_tab4_102
----
24 values hashing to 0438ba65cc732046ded53a1ba07cb83b

query II rowsort label-2500-2
SELECT pk, col0 FROM view_2_tab4_102
----
176 values hashing to b5f3e135d963c5461dceac7e41f2176c

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col4 < 188.32) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT ((col4 < 188.32))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_102 UNION ALL SELECT pk, col0 FROM view_2_tab4_102
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col4 < 188.32) UNION SELECT pk, col0 FROM tab4 WHERE NOT ((col4 < 188.32))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_102 UNION SELECT pk, col0 FROM view_2_tab4_102
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-2500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE (col4 < 188.32) ) AS tab4_102
----
12 values hashing to 739b120412276ab962961f15c98b0703

query I rowsort label-2500-3
SELECT * FROM view_3_tab4_102
----
12 values hashing to 739b120412276ab962961f15c98b0703

query I rowsort label-2500-3
SELECT pk FROM tab4 WHERE (col4 < 188.32)
----
12 values hashing to 739b120412276ab962961f15c98b0703

statement ok
DROP VIEW view_1_tab4_102

statement ok
DROP VIEW view_2_tab4_102

statement ok
DROP VIEW view_3_tab4_102

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_103') DROP VIEW view_1_tab0_103

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_103

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_103') DROP VIEW view_2_tab0_103

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_103

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_103') DROP VIEW view_3_tab0_103

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_103

statement ok
CREATE VIEW view_1_tab0_103 AS SELECT pk, col0 FROM tab0 WHERE col0 <= 326 OR col4 <= 179.10

statement ok
CREATE VIEW view_2_tab0_103 AS SELECT pk, col0 FROM tab0 WHERE NOT (col0 <= 326 OR col4 <= 179.10)

statement ok
CREATE VIEW view_3_tab0_103 AS SELECT pk FROM view_1_tab0_103

query II rowsort label-2600-1
SELECT pk, col0 FROM tab0 WHERE col0 <= 326 OR col4 <= 179.10
----
78 values hashing to 705c37798a6fbf6d2302802698da12f4

query II rowsort label-2600-2
SELECT pk, col0 FROM tab0 WHERE NOT (col0 <= 326 OR col4 <= 179.10)
----
122 values hashing to 615f5ff543a5a0952b9b5addd8973fa0

query II rowsort label-2600-1
SELECT pk, col0 FROM view_1_tab0_103
----
78 values hashing to 705c37798a6fbf6d2302802698da12f4

query II rowsort label-2600-2
SELECT pk, col0 FROM view_2_tab0_103
----
122 values hashing to 615f5ff543a5a0952b9b5addd8973fa0

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col0 <= 326 OR col4 <= 179.10 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col0 <= 326 OR col4 <= 179.10)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_103 UNION ALL SELECT pk, col0 FROM view_2_tab0_103
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col0 <= 326 OR col4 <= 179.10 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col0 <= 326 OR col4 <= 179.10)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_103 UNION SELECT pk, col0 FROM view_2_tab0_103
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-2600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col0 <= 326 OR col4 <= 179.10 ) AS tab0_103
----
39 values hashing to a552913939e31430a1ce36ec5a1c45d0

query I rowsort label-2600-3
SELECT * FROM view_3_tab0_103
----
39 values hashing to a552913939e31430a1ce36ec5a1c45d0

query I rowsort label-2600-3
SELECT pk FROM tab0 WHERE col0 <= 326 OR col4 <= 179.10
----
39 values hashing to a552913939e31430a1ce36ec5a1c45d0

statement ok
DROP VIEW view_1_tab0_103

statement ok
DROP VIEW view_2_tab0_103

statement ok
DROP VIEW view_3_tab0_103

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_103') DROP VIEW view_1_tab1_103

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_103

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_103') DROP VIEW view_2_tab1_103

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_103

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_103') DROP VIEW view_3_tab1_103

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_103

statement ok
CREATE VIEW view_1_tab1_103 AS SELECT pk, col0 FROM tab1 WHERE col0 <= 326 OR col4 <= 179.10

statement ok
CREATE VIEW view_2_tab1_103 AS SELECT pk, col0 FROM tab1 WHERE NOT (col0 <= 326 OR col4 <= 179.10)

statement ok
CREATE VIEW view_3_tab1_103 AS SELECT pk FROM view_1_tab1_103

query II rowsort label-2600-1
SELECT pk, col0 FROM tab1 WHERE col0 <= 326 OR col4 <= 179.10
----
78 values hashing to 705c37798a6fbf6d2302802698da12f4

query II rowsort label-2600-2
SELECT pk, col0 FROM tab1 WHERE NOT (col0 <= 326 OR col4 <= 179.10)
----
122 values hashing to 615f5ff543a5a0952b9b5addd8973fa0

query II rowsort label-2600-1
SELECT pk, col0 FROM view_1_tab1_103
----
78 values hashing to 705c37798a6fbf6d2302802698da12f4

query II rowsort label-2600-2
SELECT pk, col0 FROM view_2_tab1_103
----
122 values hashing to 615f5ff543a5a0952b9b5addd8973fa0

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col0 <= 326 OR col4 <= 179.10 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col0 <= 326 OR col4 <= 179.10)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_103 UNION ALL SELECT pk, col0 FROM view_2_tab1_103
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col0 <= 326 OR col4 <= 179.10 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col0 <= 326 OR col4 <= 179.10)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_103 UNION SELECT pk, col0 FROM view_2_tab1_103
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-2600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col0 <= 326 OR col4 <= 179.10 ) AS tab1_103
----
39 values hashing to a552913939e31430a1ce36ec5a1c45d0

query I rowsort label-2600-3
SELECT * FROM view_3_tab1_103
----
39 values hashing to a552913939e31430a1ce36ec5a1c45d0

query I rowsort label-2600-3
SELECT pk FROM tab1 WHERE col0 <= 326 OR col4 <= 179.10
----
39 values hashing to a552913939e31430a1ce36ec5a1c45d0

statement ok
DROP VIEW view_1_tab1_103

statement ok
DROP VIEW view_2_tab1_103

statement ok
DROP VIEW view_3_tab1_103

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_103') DROP VIEW view_1_tab2_103

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_103

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_103') DROP VIEW view_2_tab2_103

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_103

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_103') DROP VIEW view_3_tab2_103

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_103

statement ok
CREATE VIEW view_1_tab2_103 AS SELECT pk, col0 FROM tab2 WHERE col0 <= 326 OR col4 <= 179.10

statement ok
CREATE VIEW view_2_tab2_103 AS SELECT pk, col0 FROM tab2 WHERE NOT (col0 <= 326 OR col4 <= 179.10)

statement ok
CREATE VIEW view_3_tab2_103 AS SELECT pk FROM view_1_tab2_103

query II rowsort label-2600-1
SELECT pk, col0 FROM tab2 WHERE col0 <= 326 OR col4 <= 179.10
----
78 values hashing to 705c37798a6fbf6d2302802698da12f4

query II rowsort label-2600-2
SELECT pk, col0 FROM tab2 WHERE NOT (col0 <= 326 OR col4 <= 179.10)
----
122 values hashing to 615f5ff543a5a0952b9b5addd8973fa0

query II rowsort label-2600-1
SELECT pk, col0 FROM view_1_tab2_103
----
78 values hashing to 705c37798a6fbf6d2302802698da12f4

query II rowsort label-2600-2
SELECT pk, col0 FROM view_2_tab2_103
----
122 values hashing to 615f5ff543a5a0952b9b5addd8973fa0

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col0 <= 326 OR col4 <= 179.10 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col0 <= 326 OR col4 <= 179.10)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_103 UNION ALL SELECT pk, col0 FROM view_2_tab2_103
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col0 <= 326 OR col4 <= 179.10 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col0 <= 326 OR col4 <= 179.10)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_103 UNION SELECT pk, col0 FROM view_2_tab2_103
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-2600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col0 <= 326 OR col4 <= 179.10 ) AS tab2_103
----
39 values hashing to a552913939e31430a1ce36ec5a1c45d0

query I rowsort label-2600-3
SELECT * FROM view_3_tab2_103
----
39 values hashing to a552913939e31430a1ce36ec5a1c45d0

query I rowsort label-2600-3
SELECT pk FROM tab2 WHERE col0 <= 326 OR col4 <= 179.10
----
39 values hashing to a552913939e31430a1ce36ec5a1c45d0

statement ok
DROP VIEW view_1_tab2_103

statement ok
DROP VIEW view_2_tab2_103

statement ok
DROP VIEW view_3_tab2_103

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_103') DROP VIEW view_1_tab3_103

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_103

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_103') DROP VIEW view_2_tab3_103

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_103

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_103') DROP VIEW view_3_tab3_103

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_103

statement ok
CREATE VIEW view_1_tab3_103 AS SELECT pk, col0 FROM tab3 WHERE col0 <= 326 OR col4 <= 179.10

statement ok
CREATE VIEW view_2_tab3_103 AS SELECT pk, col0 FROM tab3 WHERE NOT (col0 <= 326 OR col4 <= 179.10)

statement ok
CREATE VIEW view_3_tab3_103 AS SELECT pk FROM view_1_tab3_103

query II rowsort label-2600-1
SELECT pk, col0 FROM tab3 WHERE col0 <= 326 OR col4 <= 179.10
----
78 values hashing to 705c37798a6fbf6d2302802698da12f4

query II rowsort label-2600-2
SELECT pk, col0 FROM tab3 WHERE NOT (col0 <= 326 OR col4 <= 179.10)
----
122 values hashing to 615f5ff543a5a0952b9b5addd8973fa0

query II rowsort label-2600-1
SELECT pk, col0 FROM view_1_tab3_103
----
78 values hashing to 705c37798a6fbf6d2302802698da12f4

query II rowsort label-2600-2
SELECT pk, col0 FROM view_2_tab3_103
----
122 values hashing to 615f5ff543a5a0952b9b5addd8973fa0

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col0 <= 326 OR col4 <= 179.10 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col0 <= 326 OR col4 <= 179.10)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_103 UNION ALL SELECT pk, col0 FROM view_2_tab3_103
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col0 <= 326 OR col4 <= 179.10 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col0 <= 326 OR col4 <= 179.10)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_103 UNION SELECT pk, col0 FROM view_2_tab3_103
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-2600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col0 <= 326 OR col4 <= 179.10 ) AS tab3_103
----
39 values hashing to a552913939e31430a1ce36ec5a1c45d0

query I rowsort label-2600-3
SELECT * FROM view_3_tab3_103
----
39 values hashing to a552913939e31430a1ce36ec5a1c45d0

query I rowsort label-2600-3
SELECT pk FROM tab3 WHERE col0 <= 326 OR col4 <= 179.10
----
39 values hashing to a552913939e31430a1ce36ec5a1c45d0

statement ok
DROP VIEW view_1_tab3_103

statement ok
DROP VIEW view_2_tab3_103

statement ok
DROP VIEW view_3_tab3_103

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_103') DROP VIEW view_1_tab4_103

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_103

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_103') DROP VIEW view_2_tab4_103

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_103

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_103') DROP VIEW view_3_tab4_103

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_103

statement ok
CREATE VIEW view_1_tab4_103 AS SELECT pk, col0 FROM tab4 WHERE col0 <= 326 OR col4 <= 179.10

statement ok
CREATE VIEW view_2_tab4_103 AS SELECT pk, col0 FROM tab4 WHERE NOT (col0 <= 326 OR col4 <= 179.10)

statement ok
CREATE VIEW view_3_tab4_103 AS SELECT pk FROM view_1_tab4_103

query II rowsort label-2600-1
SELECT pk, col0 FROM tab4 WHERE col0 <= 326 OR col4 <= 179.10
----
78 values hashing to 705c37798a6fbf6d2302802698da12f4

query II rowsort label-2600-2
SELECT pk, col0 FROM tab4 WHERE NOT (col0 <= 326 OR col4 <= 179.10)
----
122 values hashing to 615f5ff543a5a0952b9b5addd8973fa0

query II rowsort label-2600-1
SELECT pk, col0 FROM view_1_tab4_103
----
78 values hashing to 705c37798a6fbf6d2302802698da12f4

query II rowsort label-2600-2
SELECT pk, col0 FROM view_2_tab4_103
----
122 values hashing to 615f5ff543a5a0952b9b5addd8973fa0

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col0 <= 326 OR col4 <= 179.10 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col0 <= 326 OR col4 <= 179.10)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_103 UNION ALL SELECT pk, col0 FROM view_2_tab4_103
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col0 <= 326 OR col4 <= 179.10 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col0 <= 326 OR col4 <= 179.10)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_103 UNION SELECT pk, col0 FROM view_2_tab4_103
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-2600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col0 <= 326 OR col4 <= 179.10 ) AS tab4_103
----
39 values hashing to a552913939e31430a1ce36ec5a1c45d0

query I rowsort label-2600-3
SELECT * FROM view_3_tab4_103
----
39 values hashing to a552913939e31430a1ce36ec5a1c45d0

query I rowsort label-2600-3
SELECT pk FROM tab4 WHERE col0 <= 326 OR col4 <= 179.10
----
39 values hashing to a552913939e31430a1ce36ec5a1c45d0

statement ok
DROP VIEW view_1_tab4_103

statement ok
DROP VIEW view_2_tab4_103

statement ok
DROP VIEW view_3_tab4_103

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_104') DROP VIEW view_1_tab0_104

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_104

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_104') DROP VIEW view_2_tab0_104

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_104

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_104') DROP VIEW view_3_tab0_104

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_104

statement ok
CREATE VIEW view_1_tab0_104 AS SELECT pk, col0 FROM tab0 WHERE (col3 <= 358)

statement ok
CREATE VIEW view_2_tab0_104 AS SELECT pk, col0 FROM tab0 WHERE NOT ((col3 <= 358))

statement ok
CREATE VIEW view_3_tab0_104 AS SELECT pk FROM view_1_tab0_104

query II rowsort label-2700-1
SELECT pk, col0 FROM tab0 WHERE (col3 <= 358)
----
56 values hashing to a860c4d5ecc696c92e59219174590b0f

query II rowsort label-2700-2
SELECT pk, col0 FROM tab0 WHERE NOT ((col3 <= 358))
----
144 values hashing to e7715871e94699457b3df157a5942c60

query II rowsort label-2700-1
SELECT pk, col0 FROM view_1_tab0_104
----
56 values hashing to a860c4d5ecc696c92e59219174590b0f

query II rowsort label-2700-2
SELECT pk, col0 FROM view_2_tab0_104
----
144 values hashing to e7715871e94699457b3df157a5942c60

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col3 <= 358) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT ((col3 <= 358))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_104 UNION ALL SELECT pk, col0 FROM view_2_tab0_104
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col3 <= 358) UNION SELECT pk, col0 FROM tab0 WHERE NOT ((col3 <= 358))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_104 UNION SELECT pk, col0 FROM view_2_tab0_104
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-2700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE (col3 <= 358) ) AS tab0_104
----
28 values hashing to 7c3ff06455f966a5d9476a288ad77110

query I rowsort label-2700-3
SELECT * FROM view_3_tab0_104
----
28 values hashing to 7c3ff06455f966a5d9476a288ad77110

query I rowsort label-2700-3
SELECT pk FROM tab0 WHERE (col3 <= 358)
----
28 values hashing to 7c3ff06455f966a5d9476a288ad77110

statement ok
DROP VIEW view_1_tab0_104

statement ok
DROP VIEW view_2_tab0_104

statement ok
DROP VIEW view_3_tab0_104

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_104') DROP VIEW view_1_tab1_104

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_104

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_104') DROP VIEW view_2_tab1_104

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_104

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_104') DROP VIEW view_3_tab1_104

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_104

statement ok
CREATE VIEW view_1_tab1_104 AS SELECT pk, col0 FROM tab1 WHERE (col3 <= 358)

statement ok
CREATE VIEW view_2_tab1_104 AS SELECT pk, col0 FROM tab1 WHERE NOT ((col3 <= 358))

statement ok
CREATE VIEW view_3_tab1_104 AS SELECT pk FROM view_1_tab1_104

query II rowsort label-2700-1
SELECT pk, col0 FROM tab1 WHERE (col3 <= 358)
----
56 values hashing to a860c4d5ecc696c92e59219174590b0f

query II rowsort label-2700-2
SELECT pk, col0 FROM tab1 WHERE NOT ((col3 <= 358))
----
144 values hashing to e7715871e94699457b3df157a5942c60

query II rowsort label-2700-1
SELECT pk, col0 FROM view_1_tab1_104
----
56 values hashing to a860c4d5ecc696c92e59219174590b0f

query II rowsort label-2700-2
SELECT pk, col0 FROM view_2_tab1_104
----
144 values hashing to e7715871e94699457b3df157a5942c60

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col3 <= 358) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT ((col3 <= 358))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_104 UNION ALL SELECT pk, col0 FROM view_2_tab1_104
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col3 <= 358) UNION SELECT pk, col0 FROM tab1 WHERE NOT ((col3 <= 358))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_104 UNION SELECT pk, col0 FROM view_2_tab1_104
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-2700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE (col3 <= 358) ) AS tab1_104
----
28 values hashing to 7c3ff06455f966a5d9476a288ad77110

query I rowsort label-2700-3
SELECT * FROM view_3_tab1_104
----
28 values hashing to 7c3ff06455f966a5d9476a288ad77110

query I rowsort label-2700-3
SELECT pk FROM tab1 WHERE (col3 <= 358)
----
28 values hashing to 7c3ff06455f966a5d9476a288ad77110

statement ok
DROP VIEW view_1_tab1_104

statement ok
DROP VIEW view_2_tab1_104

statement ok
DROP VIEW view_3_tab1_104

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_104') DROP VIEW view_1_tab2_104

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_104

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_104') DROP VIEW view_2_tab2_104

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_104

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_104') DROP VIEW view_3_tab2_104

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_104

statement ok
CREATE VIEW view_1_tab2_104 AS SELECT pk, col0 FROM tab2 WHERE (col3 <= 358)

statement ok
CREATE VIEW view_2_tab2_104 AS SELECT pk, col0 FROM tab2 WHERE NOT ((col3 <= 358))

statement ok
CREATE VIEW view_3_tab2_104 AS SELECT pk FROM view_1_tab2_104

query II rowsort label-2700-1
SELECT pk, col0 FROM tab2 WHERE (col3 <= 358)
----
56 values hashing to a860c4d5ecc696c92e59219174590b0f

query II rowsort label-2700-2
SELECT pk, col0 FROM tab2 WHERE NOT ((col3 <= 358))
----
144 values hashing to e7715871e94699457b3df157a5942c60

query II rowsort label-2700-1
SELECT pk, col0 FROM view_1_tab2_104
----
56 values hashing to a860c4d5ecc696c92e59219174590b0f

query II rowsort label-2700-2
SELECT pk, col0 FROM view_2_tab2_104
----
144 values hashing to e7715871e94699457b3df157a5942c60

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col3 <= 358) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT ((col3 <= 358))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_104 UNION ALL SELECT pk, col0 FROM view_2_tab2_104
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col3 <= 358) UNION SELECT pk, col0 FROM tab2 WHERE NOT ((col3 <= 358))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_104 UNION SELECT pk, col0 FROM view_2_tab2_104
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-2700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE (col3 <= 358) ) AS tab2_104
----
28 values hashing to 7c3ff06455f966a5d9476a288ad77110

query I rowsort label-2700-3
SELECT * FROM view_3_tab2_104
----
28 values hashing to 7c3ff06455f966a5d9476a288ad77110

query I rowsort label-2700-3
SELECT pk FROM tab2 WHERE (col3 <= 358)
----
28 values hashing to 7c3ff06455f966a5d9476a288ad77110

statement ok
DROP VIEW view_1_tab2_104

statement ok
DROP VIEW view_2_tab2_104

statement ok
DROP VIEW view_3_tab2_104

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_104') DROP VIEW view_1_tab3_104

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_104

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_104') DROP VIEW view_2_tab3_104

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_104

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_104') DROP VIEW view_3_tab3_104

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_104

statement ok
CREATE VIEW view_1_tab3_104 AS SELECT pk, col0 FROM tab3 WHERE (col3 <= 358)

statement ok
CREATE VIEW view_2_tab3_104 AS SELECT pk, col0 FROM tab3 WHERE NOT ((col3 <= 358))

statement ok
CREATE VIEW view_3_tab3_104 AS SELECT pk FROM view_1_tab3_104

query II rowsort label-2700-1
SELECT pk, col0 FROM tab3 WHERE (col3 <= 358)
----
56 values hashing to a860c4d5ecc696c92e59219174590b0f

query II rowsort label-2700-2
SELECT pk, col0 FROM tab3 WHERE NOT ((col3 <= 358))
----
144 values hashing to e7715871e94699457b3df157a5942c60

query II rowsort label-2700-1
SELECT pk, col0 FROM view_1_tab3_104
----
56 values hashing to a860c4d5ecc696c92e59219174590b0f

query II rowsort label-2700-2
SELECT pk, col0 FROM view_2_tab3_104
----
144 values hashing to e7715871e94699457b3df157a5942c60

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col3 <= 358) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT ((col3 <= 358))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_104 UNION ALL SELECT pk, col0 FROM view_2_tab3_104
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col3 <= 358) UNION SELECT pk, col0 FROM tab3 WHERE NOT ((col3 <= 358))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_104 UNION SELECT pk, col0 FROM view_2_tab3_104
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-2700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE (col3 <= 358) ) AS tab3_104
----
28 values hashing to 7c3ff06455f966a5d9476a288ad77110

query I rowsort label-2700-3
SELECT * FROM view_3_tab3_104
----
28 values hashing to 7c3ff06455f966a5d9476a288ad77110

query I rowsort label-2700-3
SELECT pk FROM tab3 WHERE (col3 <= 358)
----
28 values hashing to 7c3ff06455f966a5d9476a288ad77110

statement ok
DROP VIEW view_1_tab3_104

statement ok
DROP VIEW view_2_tab3_104

statement ok
DROP VIEW view_3_tab3_104

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_104') DROP VIEW view_1_tab4_104

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_104

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_104') DROP VIEW view_2_tab4_104

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_104

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_104') DROP VIEW view_3_tab4_104

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_104

statement ok
CREATE VIEW view_1_tab4_104 AS SELECT pk, col0 FROM tab4 WHERE (col3 <= 358)

statement ok
CREATE VIEW view_2_tab4_104 AS SELECT pk, col0 FROM tab4 WHERE NOT ((col3 <= 358))

statement ok
CREATE VIEW view_3_tab4_104 AS SELECT pk FROM view_1_tab4_104

query II rowsort label-2700-1
SELECT pk, col0 FROM tab4 WHERE (col3 <= 358)
----
56 values hashing to a860c4d5ecc696c92e59219174590b0f

query II rowsort label-2700-2
SELECT pk, col0 FROM tab4 WHERE NOT ((col3 <= 358))
----
144 values hashing to e7715871e94699457b3df157a5942c60

query II rowsort label-2700-1
SELECT pk, col0 FROM view_1_tab4_104
----
56 values hashing to a860c4d5ecc696c92e59219174590b0f

query II rowsort label-2700-2
SELECT pk, col0 FROM view_2_tab4_104
----
144 values hashing to e7715871e94699457b3df157a5942c60

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col3 <= 358) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT ((col3 <= 358))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_104 UNION ALL SELECT pk, col0 FROM view_2_tab4_104
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col3 <= 358) UNION SELECT pk, col0 FROM tab4 WHERE NOT ((col3 <= 358))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_104 UNION SELECT pk, col0 FROM view_2_tab4_104
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-2700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE (col3 <= 358) ) AS tab4_104
----
28 values hashing to 7c3ff06455f966a5d9476a288ad77110

query I rowsort label-2700-3
SELECT * FROM view_3_tab4_104
----
28 values hashing to 7c3ff06455f966a5d9476a288ad77110

query I rowsort label-2700-3
SELECT pk FROM tab4 WHERE (col3 <= 358)
----
28 values hashing to 7c3ff06455f966a5d9476a288ad77110

statement ok
DROP VIEW view_1_tab4_104

statement ok
DROP VIEW view_2_tab4_104

statement ok
DROP VIEW view_3_tab4_104

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_105') DROP VIEW view_1_tab0_105

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_105

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_105') DROP VIEW view_2_tab0_105

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_105

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_105') DROP VIEW view_3_tab0_105

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_105

statement ok
CREATE VIEW view_1_tab0_105 AS SELECT pk, col0 FROM tab0 WHERE (col3 > 370)

statement ok
CREATE VIEW view_2_tab0_105 AS SELECT pk, col0 FROM tab0 WHERE NOT ((col3 > 370))

statement ok
CREATE VIEW view_3_tab0_105 AS SELECT pk FROM view_1_tab0_105

query II rowsort label-2800-1
SELECT pk, col0 FROM tab0 WHERE (col3 > 370)
----
140 values hashing to 92aa1937b36b0c5886336811c2e7a322

query II rowsort label-2800-2
SELECT pk, col0 FROM tab0 WHERE NOT ((col3 > 370))
----
60 values hashing to 68acb623a6ceba1c2f880af9259091be

query II rowsort label-2800-1
SELECT pk, col0 FROM view_1_tab0_105
----
140 values hashing to 92aa1937b36b0c5886336811c2e7a322

query II rowsort label-2800-2
SELECT pk, col0 FROM view_2_tab0_105
----
60 values hashing to 68acb623a6ceba1c2f880af9259091be

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col3 > 370) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT ((col3 > 370))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_105 UNION ALL SELECT pk, col0 FROM view_2_tab0_105
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col3 > 370) UNION SELECT pk, col0 FROM tab0 WHERE NOT ((col3 > 370))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_105 UNION SELECT pk, col0 FROM view_2_tab0_105
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-2800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE (col3 > 370) ) AS tab0_105
----
70 values hashing to 1902449bfa79559a8d14647d720e1848

query I rowsort label-2800-3
SELECT * FROM view_3_tab0_105
----
70 values hashing to 1902449bfa79559a8d14647d720e1848

query I rowsort label-2800-3
SELECT pk FROM tab0 WHERE (col3 > 370)
----
70 values hashing to 1902449bfa79559a8d14647d720e1848

statement ok
DROP VIEW view_1_tab0_105

statement ok
DROP VIEW view_2_tab0_105

statement ok
DROP VIEW view_3_tab0_105

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_105') DROP VIEW view_1_tab1_105

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_105

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_105') DROP VIEW view_2_tab1_105

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_105

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_105') DROP VIEW view_3_tab1_105

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_105

statement ok
CREATE VIEW view_1_tab1_105 AS SELECT pk, col0 FROM tab1 WHERE (col3 > 370)

statement ok
CREATE VIEW view_2_tab1_105 AS SELECT pk, col0 FROM tab1 WHERE NOT ((col3 > 370))

statement ok
CREATE VIEW view_3_tab1_105 AS SELECT pk FROM view_1_tab1_105

query II rowsort label-2800-1
SELECT pk, col0 FROM tab1 WHERE (col3 > 370)
----
140 values hashing to 92aa1937b36b0c5886336811c2e7a322

query II rowsort label-2800-2
SELECT pk, col0 FROM tab1 WHERE NOT ((col3 > 370))
----
60 values hashing to 68acb623a6ceba1c2f880af9259091be

query II rowsort label-2800-1
SELECT pk, col0 FROM view_1_tab1_105
----
140 values hashing to 92aa1937b36b0c5886336811c2e7a322

query II rowsort label-2800-2
SELECT pk, col0 FROM view_2_tab1_105
----
60 values hashing to 68acb623a6ceba1c2f880af9259091be

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col3 > 370) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT ((col3 > 370))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_105 UNION ALL SELECT pk, col0 FROM view_2_tab1_105
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col3 > 370) UNION SELECT pk, col0 FROM tab1 WHERE NOT ((col3 > 370))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_105 UNION SELECT pk, col0 FROM view_2_tab1_105
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-2800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE (col3 > 370) ) AS tab1_105
----
70 values hashing to 1902449bfa79559a8d14647d720e1848

query I rowsort label-2800-3
SELECT * FROM view_3_tab1_105
----
70 values hashing to 1902449bfa79559a8d14647d720e1848

query I rowsort label-2800-3
SELECT pk FROM tab1 WHERE (col3 > 370)
----
70 values hashing to 1902449bfa79559a8d14647d720e1848

statement ok
DROP VIEW view_1_tab1_105

statement ok
DROP VIEW view_2_tab1_105

statement ok
DROP VIEW view_3_tab1_105

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_105') DROP VIEW view_1_tab2_105

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_105

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_105') DROP VIEW view_2_tab2_105

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_105

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_105') DROP VIEW view_3_tab2_105

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_105

statement ok
CREATE VIEW view_1_tab2_105 AS SELECT pk, col0 FROM tab2 WHERE (col3 > 370)

statement ok
CREATE VIEW view_2_tab2_105 AS SELECT pk, col0 FROM tab2 WHERE NOT ((col3 > 370))

statement ok
CREATE VIEW view_3_tab2_105 AS SELECT pk FROM view_1_tab2_105

query II rowsort label-2800-1
SELECT pk, col0 FROM tab2 WHERE (col3 > 370)
----
140 values hashing to 92aa1937b36b0c5886336811c2e7a322

query II rowsort label-2800-2
SELECT pk, col0 FROM tab2 WHERE NOT ((col3 > 370))
----
60 values hashing to 68acb623a6ceba1c2f880af9259091be

query II rowsort label-2800-1
SELECT pk, col0 FROM view_1_tab2_105
----
140 values hashing to 92aa1937b36b0c5886336811c2e7a322

query II rowsort label-2800-2
SELECT pk, col0 FROM view_2_tab2_105
----
60 values hashing to 68acb623a6ceba1c2f880af9259091be

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col3 > 370) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT ((col3 > 370))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_105 UNION ALL SELECT pk, col0 FROM view_2_tab2_105
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col3 > 370) UNION SELECT pk, col0 FROM tab2 WHERE NOT ((col3 > 370))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_105 UNION SELECT pk, col0 FROM view_2_tab2_105
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-2800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE (col3 > 370) ) AS tab2_105
----
70 values hashing to 1902449bfa79559a8d14647d720e1848

query I rowsort label-2800-3
SELECT * FROM view_3_tab2_105
----
70 values hashing to 1902449bfa79559a8d14647d720e1848

query I rowsort label-2800-3
SELECT pk FROM tab2 WHERE (col3 > 370)
----
70 values hashing to 1902449bfa79559a8d14647d720e1848

statement ok
DROP VIEW view_1_tab2_105

statement ok
DROP VIEW view_2_tab2_105

statement ok
DROP VIEW view_3_tab2_105

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_105') DROP VIEW view_1_tab3_105

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_105

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_105') DROP VIEW view_2_tab3_105

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_105

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_105') DROP VIEW view_3_tab3_105

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_105

statement ok
CREATE VIEW view_1_tab3_105 AS SELECT pk, col0 FROM tab3 WHERE (col3 > 370)

statement ok
CREATE VIEW view_2_tab3_105 AS SELECT pk, col0 FROM tab3 WHERE NOT ((col3 > 370))

statement ok
CREATE VIEW view_3_tab3_105 AS SELECT pk FROM view_1_tab3_105

query II rowsort label-2800-1
SELECT pk, col0 FROM tab3 WHERE (col3 > 370)
----
140 values hashing to 92aa1937b36b0c5886336811c2e7a322

query II rowsort label-2800-2
SELECT pk, col0 FROM tab3 WHERE NOT ((col3 > 370))
----
60 values hashing to 68acb623a6ceba1c2f880af9259091be

query II rowsort label-2800-1
SELECT pk, col0 FROM view_1_tab3_105
----
140 values hashing to 92aa1937b36b0c5886336811c2e7a322

query II rowsort label-2800-2
SELECT pk, col0 FROM view_2_tab3_105
----
60 values hashing to 68acb623a6ceba1c2f880af9259091be

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col3 > 370) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT ((col3 > 370))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_105 UNION ALL SELECT pk, col0 FROM view_2_tab3_105
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col3 > 370) UNION SELECT pk, col0 FROM tab3 WHERE NOT ((col3 > 370))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_105 UNION SELECT pk, col0 FROM view_2_tab3_105
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-2800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE (col3 > 370) ) AS tab3_105
----
70 values hashing to 1902449bfa79559a8d14647d720e1848

query I rowsort label-2800-3
SELECT * FROM view_3_tab3_105
----
70 values hashing to 1902449bfa79559a8d14647d720e1848

query I rowsort label-2800-3
SELECT pk FROM tab3 WHERE (col3 > 370)
----
70 values hashing to 1902449bfa79559a8d14647d720e1848

statement ok
DROP VIEW view_1_tab3_105

statement ok
DROP VIEW view_2_tab3_105

statement ok
DROP VIEW view_3_tab3_105

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_105') DROP VIEW view_1_tab4_105

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_105

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_105') DROP VIEW view_2_tab4_105

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_105

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_105') DROP VIEW view_3_tab4_105

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_105

statement ok
CREATE VIEW view_1_tab4_105 AS SELECT pk, col0 FROM tab4 WHERE (col3 > 370)

statement ok
CREATE VIEW view_2_tab4_105 AS SELECT pk, col0 FROM tab4 WHERE NOT ((col3 > 370))

statement ok
CREATE VIEW view_3_tab4_105 AS SELECT pk FROM view_1_tab4_105

query II rowsort label-2800-1
SELECT pk, col0 FROM tab4 WHERE (col3 > 370)
----
140 values hashing to 92aa1937b36b0c5886336811c2e7a322

query II rowsort label-2800-2
SELECT pk, col0 FROM tab4 WHERE NOT ((col3 > 370))
----
60 values hashing to 68acb623a6ceba1c2f880af9259091be

query II rowsort label-2800-1
SELECT pk, col0 FROM view_1_tab4_105
----
140 values hashing to 92aa1937b36b0c5886336811c2e7a322

query II rowsort label-2800-2
SELECT pk, col0 FROM view_2_tab4_105
----
60 values hashing to 68acb623a6ceba1c2f880af9259091be

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col3 > 370) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT ((col3 > 370))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_105 UNION ALL SELECT pk, col0 FROM view_2_tab4_105
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col3 > 370) UNION SELECT pk, col0 FROM tab4 WHERE NOT ((col3 > 370))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_105 UNION SELECT pk, col0 FROM view_2_tab4_105
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-2800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE (col3 > 370) ) AS tab4_105
----
70 values hashing to 1902449bfa79559a8d14647d720e1848

query I rowsort label-2800-3
SELECT * FROM view_3_tab4_105
----
70 values hashing to 1902449bfa79559a8d14647d720e1848

query I rowsort label-2800-3
SELECT pk FROM tab4 WHERE (col3 > 370)
----
70 values hashing to 1902449bfa79559a8d14647d720e1848

statement ok
DROP VIEW view_1_tab4_105

statement ok
DROP VIEW view_2_tab4_105

statement ok
DROP VIEW view_3_tab4_105

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_106') DROP VIEW view_1_tab0_106

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_106

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_106') DROP VIEW view_2_tab0_106

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_106

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_106') DROP VIEW view_3_tab0_106

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_106

statement ok
CREATE VIEW view_1_tab0_106 AS SELECT pk, col0 FROM tab0 WHERE (col3 <= 512)

statement ok
CREATE VIEW view_2_tab0_106 AS SELECT pk, col0 FROM tab0 WHERE NOT ((col3 <= 512))

statement ok
CREATE VIEW view_3_tab0_106 AS SELECT pk FROM view_1_tab0_106

query II rowsort label-2900-1
SELECT pk, col0 FROM tab0 WHERE (col3 <= 512)
----
92 values hashing to 6f8790e6501141ff9ce960175a32055e

query II rowsort label-2900-2
SELECT pk, col0 FROM tab0 WHERE NOT ((col3 <= 512))
----
108 values hashing to cea61603e5e1427d52ea37090e30fc88

query II rowsort label-2900-1
SELECT pk, col0 FROM view_1_tab0_106
----
92 values hashing to 6f8790e6501141ff9ce960175a32055e

query II rowsort label-2900-2
SELECT pk, col0 FROM view_2_tab0_106
----
108 values hashing to cea61603e5e1427d52ea37090e30fc88

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col3 <= 512) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT ((col3 <= 512))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_106 UNION ALL SELECT pk, col0 FROM view_2_tab0_106
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col3 <= 512) UNION SELECT pk, col0 FROM tab0 WHERE NOT ((col3 <= 512))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_106 UNION SELECT pk, col0 FROM view_2_tab0_106
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-2900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE (col3 <= 512) ) AS tab0_106
----
46 values hashing to f1faf4f09cdc4cdbdddf5c4414354847

query I rowsort label-2900-3
SELECT * FROM view_3_tab0_106
----
46 values hashing to f1faf4f09cdc4cdbdddf5c4414354847

query I rowsort label-2900-3
SELECT pk FROM tab0 WHERE (col3 <= 512)
----
46 values hashing to f1faf4f09cdc4cdbdddf5c4414354847

statement ok
DROP VIEW view_1_tab0_106

statement ok
DROP VIEW view_2_tab0_106

statement ok
DROP VIEW view_3_tab0_106

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_106') DROP VIEW view_1_tab1_106

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_106

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_106') DROP VIEW view_2_tab1_106

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_106

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_106') DROP VIEW view_3_tab1_106

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_106

statement ok
CREATE VIEW view_1_tab1_106 AS SELECT pk, col0 FROM tab1 WHERE (col3 <= 512)

statement ok
CREATE VIEW view_2_tab1_106 AS SELECT pk, col0 FROM tab1 WHERE NOT ((col3 <= 512))

statement ok
CREATE VIEW view_3_tab1_106 AS SELECT pk FROM view_1_tab1_106

query II rowsort label-2900-1
SELECT pk, col0 FROM tab1 WHERE (col3 <= 512)
----
92 values hashing to 6f8790e6501141ff9ce960175a32055e

query II rowsort label-2900-2
SELECT pk, col0 FROM tab1 WHERE NOT ((col3 <= 512))
----
108 values hashing to cea61603e5e1427d52ea37090e30fc88

query II rowsort label-2900-1
SELECT pk, col0 FROM view_1_tab1_106
----
92 values hashing to 6f8790e6501141ff9ce960175a32055e

query II rowsort label-2900-2
SELECT pk, col0 FROM view_2_tab1_106
----
108 values hashing to cea61603e5e1427d52ea37090e30fc88

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col3 <= 512) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT ((col3 <= 512))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_106 UNION ALL SELECT pk, col0 FROM view_2_tab1_106
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col3 <= 512) UNION SELECT pk, col0 FROM tab1 WHERE NOT ((col3 <= 512))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_106 UNION SELECT pk, col0 FROM view_2_tab1_106
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-2900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE (col3 <= 512) ) AS tab1_106
----
46 values hashing to f1faf4f09cdc4cdbdddf5c4414354847

query I rowsort label-2900-3
SELECT * FROM view_3_tab1_106
----
46 values hashing to f1faf4f09cdc4cdbdddf5c4414354847

query I rowsort label-2900-3
SELECT pk FROM tab1 WHERE (col3 <= 512)
----
46 values hashing to f1faf4f09cdc4cdbdddf5c4414354847

statement ok
DROP VIEW view_1_tab1_106

statement ok
DROP VIEW view_2_tab1_106

statement ok
DROP VIEW view_3_tab1_106

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_106') DROP VIEW view_1_tab2_106

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_106

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_106') DROP VIEW view_2_tab2_106

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_106

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_106') DROP VIEW view_3_tab2_106

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_106

statement ok
CREATE VIEW view_1_tab2_106 AS SELECT pk, col0 FROM tab2 WHERE (col3 <= 512)

statement ok
CREATE VIEW view_2_tab2_106 AS SELECT pk, col0 FROM tab2 WHERE NOT ((col3 <= 512))

statement ok
CREATE VIEW view_3_tab2_106 AS SELECT pk FROM view_1_tab2_106

query II rowsort label-2900-1
SELECT pk, col0 FROM tab2 WHERE (col3 <= 512)
----
92 values hashing to 6f8790e6501141ff9ce960175a32055e

query II rowsort label-2900-2
SELECT pk, col0 FROM tab2 WHERE NOT ((col3 <= 512))
----
108 values hashing to cea61603e5e1427d52ea37090e30fc88

query II rowsort label-2900-1
SELECT pk, col0 FROM view_1_tab2_106
----
92 values hashing to 6f8790e6501141ff9ce960175a32055e

query II rowsort label-2900-2
SELECT pk, col0 FROM view_2_tab2_106
----
108 values hashing to cea61603e5e1427d52ea37090e30fc88

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col3 <= 512) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT ((col3 <= 512))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_106 UNION ALL SELECT pk, col0 FROM view_2_tab2_106
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col3 <= 512) UNION SELECT pk, col0 FROM tab2 WHERE NOT ((col3 <= 512))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_106 UNION SELECT pk, col0 FROM view_2_tab2_106
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-2900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE (col3 <= 512) ) AS tab2_106
----
46 values hashing to f1faf4f09cdc4cdbdddf5c4414354847

query I rowsort label-2900-3
SELECT * FROM view_3_tab2_106
----
46 values hashing to f1faf4f09cdc4cdbdddf5c4414354847

query I rowsort label-2900-3
SELECT pk FROM tab2 WHERE (col3 <= 512)
----
46 values hashing to f1faf4f09cdc4cdbdddf5c4414354847

statement ok
DROP VIEW view_1_tab2_106

statement ok
DROP VIEW view_2_tab2_106

statement ok
DROP VIEW view_3_tab2_106

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_106') DROP VIEW view_1_tab3_106

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_106

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_106') DROP VIEW view_2_tab3_106

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_106

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_106') DROP VIEW view_3_tab3_106

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_106

statement ok
CREATE VIEW view_1_tab3_106 AS SELECT pk, col0 FROM tab3 WHERE (col3 <= 512)

statement ok
CREATE VIEW view_2_tab3_106 AS SELECT pk, col0 FROM tab3 WHERE NOT ((col3 <= 512))

statement ok
CREATE VIEW view_3_tab3_106 AS SELECT pk FROM view_1_tab3_106

query II rowsort label-2900-1
SELECT pk, col0 FROM tab3 WHERE (col3 <= 512)
----
92 values hashing to 6f8790e6501141ff9ce960175a32055e

query II rowsort label-2900-2
SELECT pk, col0 FROM tab3 WHERE NOT ((col3 <= 512))
----
108 values hashing to cea61603e5e1427d52ea37090e30fc88

query II rowsort label-2900-1
SELECT pk, col0 FROM view_1_tab3_106
----
92 values hashing to 6f8790e6501141ff9ce960175a32055e

query II rowsort label-2900-2
SELECT pk, col0 FROM view_2_tab3_106
----
108 values hashing to cea61603e5e1427d52ea37090e30fc88

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col3 <= 512) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT ((col3 <= 512))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_106 UNION ALL SELECT pk, col0 FROM view_2_tab3_106
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col3 <= 512) UNION SELECT pk, col0 FROM tab3 WHERE NOT ((col3 <= 512))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_106 UNION SELECT pk, col0 FROM view_2_tab3_106
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-2900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE (col3 <= 512) ) AS tab3_106
----
46 values hashing to f1faf4f09cdc4cdbdddf5c4414354847

query I rowsort label-2900-3
SELECT * FROM view_3_tab3_106
----
46 values hashing to f1faf4f09cdc4cdbdddf5c4414354847

query I rowsort label-2900-3
SELECT pk FROM tab3 WHERE (col3 <= 512)
----
46 values hashing to f1faf4f09cdc4cdbdddf5c4414354847

statement ok
DROP VIEW view_1_tab3_106

statement ok
DROP VIEW view_2_tab3_106

statement ok
DROP VIEW view_3_tab3_106

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_106') DROP VIEW view_1_tab4_106

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_106

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_106') DROP VIEW view_2_tab4_106

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_106

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_106') DROP VIEW view_3_tab4_106

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_106

statement ok
CREATE VIEW view_1_tab4_106 AS SELECT pk, col0 FROM tab4 WHERE (col3 <= 512)

statement ok
CREATE VIEW view_2_tab4_106 AS SELECT pk, col0 FROM tab4 WHERE NOT ((col3 <= 512))

statement ok
CREATE VIEW view_3_tab4_106 AS SELECT pk FROM view_1_tab4_106

query II rowsort label-2900-1
SELECT pk, col0 FROM tab4 WHERE (col3 <= 512)
----
92 values hashing to 6f8790e6501141ff9ce960175a32055e

query II rowsort label-2900-2
SELECT pk, col0 FROM tab4 WHERE NOT ((col3 <= 512))
----
108 values hashing to cea61603e5e1427d52ea37090e30fc88

query II rowsort label-2900-1
SELECT pk, col0 FROM view_1_tab4_106
----
92 values hashing to 6f8790e6501141ff9ce960175a32055e

query II rowsort label-2900-2
SELECT pk, col0 FROM view_2_tab4_106
----
108 values hashing to cea61603e5e1427d52ea37090e30fc88

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col3 <= 512) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT ((col3 <= 512))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_106 UNION ALL SELECT pk, col0 FROM view_2_tab4_106
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col3 <= 512) UNION SELECT pk, col0 FROM tab4 WHERE NOT ((col3 <= 512))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_106 UNION SELECT pk, col0 FROM view_2_tab4_106
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-2900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE (col3 <= 512) ) AS tab4_106
----
46 values hashing to f1faf4f09cdc4cdbdddf5c4414354847

query I rowsort label-2900-3
SELECT * FROM view_3_tab4_106
----
46 values hashing to f1faf4f09cdc4cdbdddf5c4414354847

query I rowsort label-2900-3
SELECT pk FROM tab4 WHERE (col3 <= 512)
----
46 values hashing to f1faf4f09cdc4cdbdddf5c4414354847

statement ok
DROP VIEW view_1_tab4_106

statement ok
DROP VIEW view_2_tab4_106

statement ok
DROP VIEW view_3_tab4_106

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_107') DROP VIEW view_1_tab0_107

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_107

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_107') DROP VIEW view_2_tab0_107

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_107

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_107') DROP VIEW view_3_tab0_107

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_107

statement ok
CREATE VIEW view_1_tab0_107 AS SELECT pk, col0 FROM tab0 WHERE (col3 < 404)

statement ok
CREATE VIEW view_2_tab0_107 AS SELECT pk, col0 FROM tab0 WHERE NOT ((col3 < 404))

statement ok
CREATE VIEW view_3_tab0_107 AS SELECT pk FROM view_1_tab0_107

query II rowsort label-3000-1
SELECT pk, col0 FROM tab0 WHERE (col3 < 404)
----
72 values hashing to a0c3fd500d1d41de3fa4fe63dc99e42c

query II rowsort label-3000-2
SELECT pk, col0 FROM tab0 WHERE NOT ((col3 < 404))
----
128 values hashing to b17a3d0bee8ce41db01a464c45bb30f9

query II rowsort label-3000-1
SELECT pk, col0 FROM view_1_tab0_107
----
72 values hashing to a0c3fd500d1d41de3fa4fe63dc99e42c

query II rowsort label-3000-2
SELECT pk, col0 FROM view_2_tab0_107
----
128 values hashing to b17a3d0bee8ce41db01a464c45bb30f9

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col3 < 404) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT ((col3 < 404))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_107 UNION ALL SELECT pk, col0 FROM view_2_tab0_107
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col3 < 404) UNION SELECT pk, col0 FROM tab0 WHERE NOT ((col3 < 404))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_107 UNION SELECT pk, col0 FROM view_2_tab0_107
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-3000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE (col3 < 404) ) AS tab0_107
----
36 values hashing to ab30dd380edf664856d7911c09f31c10

query I rowsort label-3000-3
SELECT * FROM view_3_tab0_107
----
36 values hashing to ab30dd380edf664856d7911c09f31c10

query I rowsort label-3000-3
SELECT pk FROM tab0 WHERE (col3 < 404)
----
36 values hashing to ab30dd380edf664856d7911c09f31c10

statement ok
DROP VIEW view_1_tab0_107

statement ok
DROP VIEW view_2_tab0_107

statement ok
DROP VIEW view_3_tab0_107

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_107') DROP VIEW view_1_tab1_107

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_107

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_107') DROP VIEW view_2_tab1_107

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_107

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_107') DROP VIEW view_3_tab1_107

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_107

statement ok
CREATE VIEW view_1_tab1_107 AS SELECT pk, col0 FROM tab1 WHERE (col3 < 404)

statement ok
CREATE VIEW view_2_tab1_107 AS SELECT pk, col0 FROM tab1 WHERE NOT ((col3 < 404))

statement ok
CREATE VIEW view_3_tab1_107 AS SELECT pk FROM view_1_tab1_107

query II rowsort label-3000-1
SELECT pk, col0 FROM tab1 WHERE (col3 < 404)
----
72 values hashing to a0c3fd500d1d41de3fa4fe63dc99e42c

query II rowsort label-3000-2
SELECT pk, col0 FROM tab1 WHERE NOT ((col3 < 404))
----
128 values hashing to b17a3d0bee8ce41db01a464c45bb30f9

query II rowsort label-3000-1
SELECT pk, col0 FROM view_1_tab1_107
----
72 values hashing to a0c3fd500d1d41de3fa4fe63dc99e42c

query II rowsort label-3000-2
SELECT pk, col0 FROM view_2_tab1_107
----
128 values hashing to b17a3d0bee8ce41db01a464c45bb30f9

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col3 < 404) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT ((col3 < 404))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_107 UNION ALL SELECT pk, col0 FROM view_2_tab1_107
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col3 < 404) UNION SELECT pk, col0 FROM tab1 WHERE NOT ((col3 < 404))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_107 UNION SELECT pk, col0 FROM view_2_tab1_107
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-3000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE (col3 < 404) ) AS tab1_107
----
36 values hashing to ab30dd380edf664856d7911c09f31c10

query I rowsort label-3000-3
SELECT * FROM view_3_tab1_107
----
36 values hashing to ab30dd380edf664856d7911c09f31c10

query I rowsort label-3000-3
SELECT pk FROM tab1 WHERE (col3 < 404)
----
36 values hashing to ab30dd380edf664856d7911c09f31c10

statement ok
DROP VIEW view_1_tab1_107

statement ok
DROP VIEW view_2_tab1_107

statement ok
DROP VIEW view_3_tab1_107

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_107') DROP VIEW view_1_tab2_107

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_107

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_107') DROP VIEW view_2_tab2_107

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_107

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_107') DROP VIEW view_3_tab2_107

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_107

statement ok
CREATE VIEW view_1_tab2_107 AS SELECT pk, col0 FROM tab2 WHERE (col3 < 404)

statement ok
CREATE VIEW view_2_tab2_107 AS SELECT pk, col0 FROM tab2 WHERE NOT ((col3 < 404))

statement ok
CREATE VIEW view_3_tab2_107 AS SELECT pk FROM view_1_tab2_107

query II rowsort label-3000-1
SELECT pk, col0 FROM tab2 WHERE (col3 < 404)
----
72 values hashing to a0c3fd500d1d41de3fa4fe63dc99e42c

query II rowsort label-3000-2
SELECT pk, col0 FROM tab2 WHERE NOT ((col3 < 404))
----
128 values hashing to b17a3d0bee8ce41db01a464c45bb30f9

query II rowsort label-3000-1
SELECT pk, col0 FROM view_1_tab2_107
----
72 values hashing to a0c3fd500d1d41de3fa4fe63dc99e42c

query II rowsort label-3000-2
SELECT pk, col0 FROM view_2_tab2_107
----
128 values hashing to b17a3d0bee8ce41db01a464c45bb30f9

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col3 < 404) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT ((col3 < 404))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_107 UNION ALL SELECT pk, col0 FROM view_2_tab2_107
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col3 < 404) UNION SELECT pk, col0 FROM tab2 WHERE NOT ((col3 < 404))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_107 UNION SELECT pk, col0 FROM view_2_tab2_107
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-3000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE (col3 < 404) ) AS tab2_107
----
36 values hashing to ab30dd380edf664856d7911c09f31c10

query I rowsort label-3000-3
SELECT * FROM view_3_tab2_107
----
36 values hashing to ab30dd380edf664856d7911c09f31c10

query I rowsort label-3000-3
SELECT pk FROM tab2 WHERE (col3 < 404)
----
36 values hashing to ab30dd380edf664856d7911c09f31c10

statement ok
DROP VIEW view_1_tab2_107

statement ok
DROP VIEW view_2_tab2_107

statement ok
DROP VIEW view_3_tab2_107

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_107') DROP VIEW view_1_tab3_107

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_107

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_107') DROP VIEW view_2_tab3_107

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_107

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_107') DROP VIEW view_3_tab3_107

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_107

statement ok
CREATE VIEW view_1_tab3_107 AS SELECT pk, col0 FROM tab3 WHERE (col3 < 404)

statement ok
CREATE VIEW view_2_tab3_107 AS SELECT pk, col0 FROM tab3 WHERE NOT ((col3 < 404))

statement ok
CREATE VIEW view_3_tab3_107 AS SELECT pk FROM view_1_tab3_107

query II rowsort label-3000-1
SELECT pk, col0 FROM tab3 WHERE (col3 < 404)
----
72 values hashing to a0c3fd500d1d41de3fa4fe63dc99e42c

query II rowsort label-3000-2
SELECT pk, col0 FROM tab3 WHERE NOT ((col3 < 404))
----
128 values hashing to b17a3d0bee8ce41db01a464c45bb30f9

query II rowsort label-3000-1
SELECT pk, col0 FROM view_1_tab3_107
----
72 values hashing to a0c3fd500d1d41de3fa4fe63dc99e42c

query II rowsort label-3000-2
SELECT pk, col0 FROM view_2_tab3_107
----
128 values hashing to b17a3d0bee8ce41db01a464c45bb30f9

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col3 < 404) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT ((col3 < 404))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_107 UNION ALL SELECT pk, col0 FROM view_2_tab3_107
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col3 < 404) UNION SELECT pk, col0 FROM tab3 WHERE NOT ((col3 < 404))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_107 UNION SELECT pk, col0 FROM view_2_tab3_107
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-3000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE (col3 < 404) ) AS tab3_107
----
36 values hashing to ab30dd380edf664856d7911c09f31c10

query I rowsort label-3000-3
SELECT * FROM view_3_tab3_107
----
36 values hashing to ab30dd380edf664856d7911c09f31c10

query I rowsort label-3000-3
SELECT pk FROM tab3 WHERE (col3 < 404)
----
36 values hashing to ab30dd380edf664856d7911c09f31c10

statement ok
DROP VIEW view_1_tab3_107

statement ok
DROP VIEW view_2_tab3_107

statement ok
DROP VIEW view_3_tab3_107

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_107') DROP VIEW view_1_tab4_107

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_107

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_107') DROP VIEW view_2_tab4_107

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_107

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_107') DROP VIEW view_3_tab4_107

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_107

statement ok
CREATE VIEW view_1_tab4_107 AS SELECT pk, col0 FROM tab4 WHERE (col3 < 404)

statement ok
CREATE VIEW view_2_tab4_107 AS SELECT pk, col0 FROM tab4 WHERE NOT ((col3 < 404))

statement ok
CREATE VIEW view_3_tab4_107 AS SELECT pk FROM view_1_tab4_107

query II rowsort label-3000-1
SELECT pk, col0 FROM tab4 WHERE (col3 < 404)
----
72 values hashing to a0c3fd500d1d41de3fa4fe63dc99e42c

query II rowsort label-3000-2
SELECT pk, col0 FROM tab4 WHERE NOT ((col3 < 404))
----
128 values hashing to b17a3d0bee8ce41db01a464c45bb30f9

query II rowsort label-3000-1
SELECT pk, col0 FROM view_1_tab4_107
----
72 values hashing to a0c3fd500d1d41de3fa4fe63dc99e42c

query II rowsort label-3000-2
SELECT pk, col0 FROM view_2_tab4_107
----
128 values hashing to b17a3d0bee8ce41db01a464c45bb30f9

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col3 < 404) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT ((col3 < 404))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_107 UNION ALL SELECT pk, col0 FROM view_2_tab4_107
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col3 < 404) UNION SELECT pk, col0 FROM tab4 WHERE NOT ((col3 < 404))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_107 UNION SELECT pk, col0 FROM view_2_tab4_107
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-3000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE (col3 < 404) ) AS tab4_107
----
36 values hashing to ab30dd380edf664856d7911c09f31c10

query I rowsort label-3000-3
SELECT * FROM view_3_tab4_107
----
36 values hashing to ab30dd380edf664856d7911c09f31c10

query I rowsort label-3000-3
SELECT pk FROM tab4 WHERE (col3 < 404)
----
36 values hashing to ab30dd380edf664856d7911c09f31c10

statement ok
DROP VIEW view_1_tab4_107

statement ok
DROP VIEW view_2_tab4_107

statement ok
DROP VIEW view_3_tab4_107

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_108') DROP VIEW view_1_tab0_108

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_108

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_108') DROP VIEW view_2_tab0_108

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_108

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_108') DROP VIEW view_3_tab0_108

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_108

statement ok
CREATE VIEW view_1_tab0_108 AS SELECT pk, col0 FROM tab0 WHERE (col1 IS NULL)

statement ok
CREATE VIEW view_2_tab0_108 AS SELECT pk, col0 FROM tab0 WHERE NOT ((col1 IS NULL))

statement ok
CREATE VIEW view_3_tab0_108 AS SELECT pk FROM view_1_tab0_108

query II rowsort label-3100-1
SELECT pk, col0 FROM tab0 WHERE (col1 IS NULL)
----

query II rowsort label-3100-2
SELECT pk, col0 FROM tab0 WHERE NOT ((col1 IS NULL))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-3100-1
SELECT pk, col0 FROM view_1_tab0_108
----

query II rowsort label-3100-2
SELECT pk, col0 FROM view_2_tab0_108
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col1 IS NULL) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT ((col1 IS NULL))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_108 UNION ALL SELECT pk, col0 FROM view_2_tab0_108
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col1 IS NULL) UNION SELECT pk, col0 FROM tab0 WHERE NOT ((col1 IS NULL))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_108 UNION SELECT pk, col0 FROM view_2_tab0_108
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-3100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE (col1 IS NULL) ) AS tab0_108
----

query I rowsort label-3100-3
SELECT * FROM view_3_tab0_108
----

query I rowsort label-3100-3
SELECT pk FROM tab0 WHERE (col1 IS NULL)
----

statement ok
DROP VIEW view_1_tab0_108

statement ok
DROP VIEW view_2_tab0_108

statement ok
DROP VIEW view_3_tab0_108

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_108') DROP VIEW view_1_tab1_108

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_108

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_108') DROP VIEW view_2_tab1_108

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_108

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_108') DROP VIEW view_3_tab1_108

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_108

statement ok
CREATE VIEW view_1_tab1_108 AS SELECT pk, col0 FROM tab1 WHERE (col1 IS NULL)

statement ok
CREATE VIEW view_2_tab1_108 AS SELECT pk, col0 FROM tab1 WHERE NOT ((col1 IS NULL))

statement ok
CREATE VIEW view_3_tab1_108 AS SELECT pk FROM view_1_tab1_108

query II rowsort label-3100-1
SELECT pk, col0 FROM tab1 WHERE (col1 IS NULL)
----

query II rowsort label-3100-2
SELECT pk, col0 FROM tab1 WHERE NOT ((col1 IS NULL))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-3100-1
SELECT pk, col0 FROM view_1_tab1_108
----

query II rowsort label-3100-2
SELECT pk, col0 FROM view_2_tab1_108
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col1 IS NULL) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT ((col1 IS NULL))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_108 UNION ALL SELECT pk, col0 FROM view_2_tab1_108
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col1 IS NULL) UNION SELECT pk, col0 FROM tab1 WHERE NOT ((col1 IS NULL))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_108 UNION SELECT pk, col0 FROM view_2_tab1_108
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-3100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE (col1 IS NULL) ) AS tab1_108
----

query I rowsort label-3100-3
SELECT * FROM view_3_tab1_108
----

query I rowsort label-3100-3
SELECT pk FROM tab1 WHERE (col1 IS NULL)
----

statement ok
DROP VIEW view_1_tab1_108

statement ok
DROP VIEW view_2_tab1_108

statement ok
DROP VIEW view_3_tab1_108

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_108') DROP VIEW view_1_tab2_108

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_108

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_108') DROP VIEW view_2_tab2_108

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_108

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_108') DROP VIEW view_3_tab2_108

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_108

statement ok
CREATE VIEW view_1_tab2_108 AS SELECT pk, col0 FROM tab2 WHERE (col1 IS NULL)

statement ok
CREATE VIEW view_2_tab2_108 AS SELECT pk, col0 FROM tab2 WHERE NOT ((col1 IS NULL))

statement ok
CREATE VIEW view_3_tab2_108 AS SELECT pk FROM view_1_tab2_108

query II rowsort label-3100-1
SELECT pk, col0 FROM tab2 WHERE (col1 IS NULL)
----

query II rowsort label-3100-2
SELECT pk, col0 FROM tab2 WHERE NOT ((col1 IS NULL))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-3100-1
SELECT pk, col0 FROM view_1_tab2_108
----

query II rowsort label-3100-2
SELECT pk, col0 FROM view_2_tab2_108
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col1 IS NULL) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT ((col1 IS NULL))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_108 UNION ALL SELECT pk, col0 FROM view_2_tab2_108
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col1 IS NULL) UNION SELECT pk, col0 FROM tab2 WHERE NOT ((col1 IS NULL))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_108 UNION SELECT pk, col0 FROM view_2_tab2_108
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-3100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE (col1 IS NULL) ) AS tab2_108
----

query I rowsort label-3100-3
SELECT * FROM view_3_tab2_108
----

query I rowsort label-3100-3
SELECT pk FROM tab2 WHERE (col1 IS NULL)
----

statement ok
DROP VIEW view_1_tab2_108

statement ok
DROP VIEW view_2_tab2_108

statement ok
DROP VIEW view_3_tab2_108

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_108') DROP VIEW view_1_tab3_108

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_108

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_108') DROP VIEW view_2_tab3_108

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_108

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_108') DROP VIEW view_3_tab3_108

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_108

statement ok
CREATE VIEW view_1_tab3_108 AS SELECT pk, col0 FROM tab3 WHERE (col1 IS NULL)

statement ok
CREATE VIEW view_2_tab3_108 AS SELECT pk, col0 FROM tab3 WHERE NOT ((col1 IS NULL))

statement ok
CREATE VIEW view_3_tab3_108 AS SELECT pk FROM view_1_tab3_108

query II rowsort label-3100-1
SELECT pk, col0 FROM tab3 WHERE (col1 IS NULL)
----

query II rowsort label-3100-2
SELECT pk, col0 FROM tab3 WHERE NOT ((col1 IS NULL))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-3100-1
SELECT pk, col0 FROM view_1_tab3_108
----

query II rowsort label-3100-2
SELECT pk, col0 FROM view_2_tab3_108
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col1 IS NULL) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT ((col1 IS NULL))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_108 UNION ALL SELECT pk, col0 FROM view_2_tab3_108
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col1 IS NULL) UNION SELECT pk, col0 FROM tab3 WHERE NOT ((col1 IS NULL))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_108 UNION SELECT pk, col0 FROM view_2_tab3_108
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-3100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE (col1 IS NULL) ) AS tab3_108
----

query I rowsort label-3100-3
SELECT * FROM view_3_tab3_108
----

query I rowsort label-3100-3
SELECT pk FROM tab3 WHERE (col1 IS NULL)
----

statement ok
DROP VIEW view_1_tab3_108

statement ok
DROP VIEW view_2_tab3_108

statement ok
DROP VIEW view_3_tab3_108

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_108') DROP VIEW view_1_tab4_108

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_108

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_108') DROP VIEW view_2_tab4_108

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_108

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_108') DROP VIEW view_3_tab4_108

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_108

statement ok
CREATE VIEW view_1_tab4_108 AS SELECT pk, col0 FROM tab4 WHERE (col1 IS NULL)

statement ok
CREATE VIEW view_2_tab4_108 AS SELECT pk, col0 FROM tab4 WHERE NOT ((col1 IS NULL))

statement ok
CREATE VIEW view_3_tab4_108 AS SELECT pk FROM view_1_tab4_108

query II rowsort label-3100-1
SELECT pk, col0 FROM tab4 WHERE (col1 IS NULL)
----

query II rowsort label-3100-2
SELECT pk, col0 FROM tab4 WHERE NOT ((col1 IS NULL))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-3100-1
SELECT pk, col0 FROM view_1_tab4_108
----

query II rowsort label-3100-2
SELECT pk, col0 FROM view_2_tab4_108
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col1 IS NULL) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT ((col1 IS NULL))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_108 UNION ALL SELECT pk, col0 FROM view_2_tab4_108
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col1 IS NULL) UNION SELECT pk, col0 FROM tab4 WHERE NOT ((col1 IS NULL))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_108 UNION SELECT pk, col0 FROM view_2_tab4_108
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-3100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE (col1 IS NULL) ) AS tab4_108
----

query I rowsort label-3100-3
SELECT * FROM view_3_tab4_108
----

query I rowsort label-3100-3
SELECT pk FROM tab4 WHERE (col1 IS NULL)
----

statement ok
DROP VIEW view_1_tab4_108

statement ok
DROP VIEW view_2_tab4_108

statement ok
DROP VIEW view_3_tab4_108

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_109') DROP VIEW view_1_tab0_109

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_109

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_109') DROP VIEW view_2_tab0_109

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_109

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_109') DROP VIEW view_3_tab0_109

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_109

statement ok
CREATE VIEW view_1_tab0_109 AS SELECT pk, col0 FROM tab0 WHERE col3 IN (719,781)

statement ok
CREATE VIEW view_2_tab0_109 AS SELECT pk, col0 FROM tab0 WHERE NOT (col3 IN (719,781))

statement ok
CREATE VIEW view_3_tab0_109 AS SELECT pk FROM view_1_tab0_109

query II rowsort label-3200-1
SELECT pk, col0 FROM tab0 WHERE col3 IN (719,781)
----

query II rowsort label-3200-2
SELECT pk, col0 FROM tab0 WHERE NOT (col3 IN (719,781))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-3200-1
SELECT pk, col0 FROM view_1_tab0_109
----

query II rowsort label-3200-2
SELECT pk, col0 FROM view_2_tab0_109
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 IN (719,781) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col3 IN (719,781))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_109 UNION ALL SELECT pk, col0 FROM view_2_tab0_109
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 IN (719,781) UNION SELECT pk, col0 FROM tab0 WHERE NOT (col3 IN (719,781))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_109 UNION SELECT pk, col0 FROM view_2_tab0_109
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-3200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col3 IN (719,781) ) AS tab0_109
----

query I rowsort label-3200-3
SELECT * FROM view_3_tab0_109
----

query I rowsort label-3200-3
SELECT pk FROM tab0 WHERE col3 IN (719,781)
----

statement ok
DROP VIEW view_1_tab0_109

statement ok
DROP VIEW view_2_tab0_109

statement ok
DROP VIEW view_3_tab0_109

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_109') DROP VIEW view_1_tab1_109

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_109

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_109') DROP VIEW view_2_tab1_109

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_109

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_109') DROP VIEW view_3_tab1_109

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_109

statement ok
CREATE VIEW view_1_tab1_109 AS SELECT pk, col0 FROM tab1 WHERE col3 IN (719,781)

statement ok
CREATE VIEW view_2_tab1_109 AS SELECT pk, col0 FROM tab1 WHERE NOT (col3 IN (719,781))

statement ok
CREATE VIEW view_3_tab1_109 AS SELECT pk FROM view_1_tab1_109

query II rowsort label-3200-1
SELECT pk, col0 FROM tab1 WHERE col3 IN (719,781)
----

query II rowsort label-3200-2
SELECT pk, col0 FROM tab1 WHERE NOT (col3 IN (719,781))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-3200-1
SELECT pk, col0 FROM view_1_tab1_109
----

query II rowsort label-3200-2
SELECT pk, col0 FROM view_2_tab1_109
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 IN (719,781) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col3 IN (719,781))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_109 UNION ALL SELECT pk, col0 FROM view_2_tab1_109
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 IN (719,781) UNION SELECT pk, col0 FROM tab1 WHERE NOT (col3 IN (719,781))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_109 UNION SELECT pk, col0 FROM view_2_tab1_109
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-3200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col3 IN (719,781) ) AS tab1_109
----

query I rowsort label-3200-3
SELECT * FROM view_3_tab1_109
----

query I rowsort label-3200-3
SELECT pk FROM tab1 WHERE col3 IN (719,781)
----

statement ok
DROP VIEW view_1_tab1_109

statement ok
DROP VIEW view_2_tab1_109

statement ok
DROP VIEW view_3_tab1_109

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_109') DROP VIEW view_1_tab2_109

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_109

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_109') DROP VIEW view_2_tab2_109

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_109

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_109') DROP VIEW view_3_tab2_109

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_109

statement ok
CREATE VIEW view_1_tab2_109 AS SELECT pk, col0 FROM tab2 WHERE col3 IN (719,781)

statement ok
CREATE VIEW view_2_tab2_109 AS SELECT pk, col0 FROM tab2 WHERE NOT (col3 IN (719,781))

statement ok
CREATE VIEW view_3_tab2_109 AS SELECT pk FROM view_1_tab2_109

query II rowsort label-3200-1
SELECT pk, col0 FROM tab2 WHERE col3 IN (719,781)
----

query II rowsort label-3200-2
SELECT pk, col0 FROM tab2 WHERE NOT (col3 IN (719,781))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-3200-1
SELECT pk, col0 FROM view_1_tab2_109
----

query II rowsort label-3200-2
SELECT pk, col0 FROM view_2_tab2_109
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 IN (719,781) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col3 IN (719,781))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_109 UNION ALL SELECT pk, col0 FROM view_2_tab2_109
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 IN (719,781) UNION SELECT pk, col0 FROM tab2 WHERE NOT (col3 IN (719,781))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_109 UNION SELECT pk, col0 FROM view_2_tab2_109
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-3200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col3 IN (719,781) ) AS tab2_109
----

query I rowsort label-3200-3
SELECT * FROM view_3_tab2_109
----

query I rowsort label-3200-3
SELECT pk FROM tab2 WHERE col3 IN (719,781)
----

statement ok
DROP VIEW view_1_tab2_109

statement ok
DROP VIEW view_2_tab2_109

statement ok
DROP VIEW view_3_tab2_109

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_109') DROP VIEW view_1_tab3_109

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_109

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_109') DROP VIEW view_2_tab3_109

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_109

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_109') DROP VIEW view_3_tab3_109

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_109

statement ok
CREATE VIEW view_1_tab3_109 AS SELECT pk, col0 FROM tab3 WHERE col3 IN (719,781)

statement ok
CREATE VIEW view_2_tab3_109 AS SELECT pk, col0 FROM tab3 WHERE NOT (col3 IN (719,781))

statement ok
CREATE VIEW view_3_tab3_109 AS SELECT pk FROM view_1_tab3_109

query II rowsort label-3200-1
SELECT pk, col0 FROM tab3 WHERE col3 IN (719,781)
----

query II rowsort label-3200-2
SELECT pk, col0 FROM tab3 WHERE NOT (col3 IN (719,781))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-3200-1
SELECT pk, col0 FROM view_1_tab3_109
----

query II rowsort label-3200-2
SELECT pk, col0 FROM view_2_tab3_109
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 IN (719,781) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col3 IN (719,781))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_109 UNION ALL SELECT pk, col0 FROM view_2_tab3_109
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 IN (719,781) UNION SELECT pk, col0 FROM tab3 WHERE NOT (col3 IN (719,781))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_109 UNION SELECT pk, col0 FROM view_2_tab3_109
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-3200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col3 IN (719,781) ) AS tab3_109
----

query I rowsort label-3200-3
SELECT * FROM view_3_tab3_109
----

query I rowsort label-3200-3
SELECT pk FROM tab3 WHERE col3 IN (719,781)
----

statement ok
DROP VIEW view_1_tab3_109

statement ok
DROP VIEW view_2_tab3_109

statement ok
DROP VIEW view_3_tab3_109

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_109') DROP VIEW view_1_tab4_109

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_109

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_109') DROP VIEW view_2_tab4_109

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_109

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_109') DROP VIEW view_3_tab4_109

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_109

statement ok
CREATE VIEW view_1_tab4_109 AS SELECT pk, col0 FROM tab4 WHERE col3 IN (719,781)

statement ok
CREATE VIEW view_2_tab4_109 AS SELECT pk, col0 FROM tab4 WHERE NOT (col3 IN (719,781))

statement ok
CREATE VIEW view_3_tab4_109 AS SELECT pk FROM view_1_tab4_109

query II rowsort label-3200-1
SELECT pk, col0 FROM tab4 WHERE col3 IN (719,781)
----

query II rowsort label-3200-2
SELECT pk, col0 FROM tab4 WHERE NOT (col3 IN (719,781))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-3200-1
SELECT pk, col0 FROM view_1_tab4_109
----

query II rowsort label-3200-2
SELECT pk, col0 FROM view_2_tab4_109
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 IN (719,781) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col3 IN (719,781))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_109 UNION ALL SELECT pk, col0 FROM view_2_tab4_109
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 IN (719,781) UNION SELECT pk, col0 FROM tab4 WHERE NOT (col3 IN (719,781))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_109 UNION SELECT pk, col0 FROM view_2_tab4_109
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-3200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col3 IN (719,781) ) AS tab4_109
----

query I rowsort label-3200-3
SELECT * FROM view_3_tab4_109
----

query I rowsort label-3200-3
SELECT pk FROM tab4 WHERE col3 IN (719,781)
----

statement ok
DROP VIEW view_1_tab4_109

statement ok
DROP VIEW view_2_tab4_109

statement ok
DROP VIEW view_3_tab4_109

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_110') DROP VIEW view_1_tab0_110

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_110

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_110') DROP VIEW view_2_tab0_110

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_110

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_110') DROP VIEW view_3_tab0_110

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_110

statement ok
CREATE VIEW view_1_tab0_110 AS SELECT pk, col0 FROM tab0 WHERE col0 > 241 OR col0 >= 539 AND (col4 < 975.45) AND col3 >= 543 AND col0 < 29

statement ok
CREATE VIEW view_2_tab0_110 AS SELECT pk, col0 FROM tab0 WHERE NOT (col0 > 241 OR col0 >= 539 AND (col4 < 975.45) AND col3 >= 543 AND col0 < 29)

statement ok
CREATE VIEW view_3_tab0_110 AS SELECT pk FROM view_1_tab0_110

query II rowsort label-3300-1
SELECT pk, col0 FROM tab0 WHERE col0 > 241 OR col0 >= 539 AND (col4 < 975.45) AND col3 >= 543 AND col0 < 29
----
152 values hashing to 91f7bc17e3586a4e3309c9948258eca3

query II rowsort label-3300-2
SELECT pk, col0 FROM tab0 WHERE NOT (col0 > 241 OR col0 >= 539 AND (col4 < 975.45) AND col3 >= 543 AND col0 < 29)
----
48 values hashing to c93d4ad33b91ee3569b85f59f7db8eda

query II rowsort label-3300-1
SELECT pk, col0 FROM view_1_tab0_110
----
152 values hashing to 91f7bc17e3586a4e3309c9948258eca3

query II rowsort label-3300-2
SELECT pk, col0 FROM view_2_tab0_110
----
48 values hashing to c93d4ad33b91ee3569b85f59f7db8eda

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col0 > 241 OR col0 >= 539 AND (col4 < 975.45) AND col3 >= 543 AND col0 < 29 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col0 > 241 OR col0 >= 539 AND (col4 < 975.45) AND col3 >= 543 AND col0 < 29)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_110 UNION ALL SELECT pk, col0 FROM view_2_tab0_110
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col0 > 241 OR col0 >= 539 AND (col4 < 975.45) AND col3 >= 543 AND col0 < 29 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col0 > 241 OR col0 >= 539 AND (col4 < 975.45) AND col3 >= 543 AND col0 < 29)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_110 UNION SELECT pk, col0 FROM view_2_tab0_110
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-3300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col0 > 241 OR col0 >= 539 AND (col4 < 975.45) AND col3 >= 543 AND col0 < 29 ) AS tab0_110
----
76 values hashing to 65591a833b5fb766298b2d75ea6bca50

query I rowsort label-3300-3
SELECT * FROM view_3_tab0_110
----
76 values hashing to 65591a833b5fb766298b2d75ea6bca50

query I rowsort label-3300-3
SELECT pk FROM tab0 WHERE col0 > 241 OR col0 >= 539 AND (col4 < 975.45) AND col3 >= 543 AND col0 < 29
----
76 values hashing to 65591a833b5fb766298b2d75ea6bca50

statement ok
DROP VIEW view_1_tab0_110

statement ok
DROP VIEW view_2_tab0_110

statement ok
DROP VIEW view_3_tab0_110

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_110') DROP VIEW view_1_tab1_110

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_110

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_110') DROP VIEW view_2_tab1_110

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_110

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_110') DROP VIEW view_3_tab1_110

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_110

statement ok
CREATE VIEW view_1_tab1_110 AS SELECT pk, col0 FROM tab1 WHERE col0 > 241 OR col0 >= 539 AND (col4 < 975.45) AND col3 >= 543 AND col0 < 29

statement ok
CREATE VIEW view_2_tab1_110 AS SELECT pk, col0 FROM tab1 WHERE NOT (col0 > 241 OR col0 >= 539 AND (col4 < 975.45) AND col3 >= 543 AND col0 < 29)

statement ok
CREATE VIEW view_3_tab1_110 AS SELECT pk FROM view_1_tab1_110

query II rowsort label-3300-1
SELECT pk, col0 FROM tab1 WHERE col0 > 241 OR col0 >= 539 AND (col4 < 975.45) AND col3 >= 543 AND col0 < 29
----
152 values hashing to 91f7bc17e3586a4e3309c9948258eca3

query II rowsort label-3300-2
SELECT pk, col0 FROM tab1 WHERE NOT (col0 > 241 OR col0 >= 539 AND (col4 < 975.45) AND col3 >= 543 AND col0 < 29)
----
48 values hashing to c93d4ad33b91ee3569b85f59f7db8eda

query II rowsort label-3300-1
SELECT pk, col0 FROM view_1_tab1_110
----
152 values hashing to 91f7bc17e3586a4e3309c9948258eca3

query II rowsort label-3300-2
SELECT pk, col0 FROM view_2_tab1_110
----
48 values hashing to c93d4ad33b91ee3569b85f59f7db8eda

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col0 > 241 OR col0 >= 539 AND (col4 < 975.45) AND col3 >= 543 AND col0 < 29 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col0 > 241 OR col0 >= 539 AND (col4 < 975.45) AND col3 >= 543 AND col0 < 29)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_110 UNION ALL SELECT pk, col0 FROM view_2_tab1_110
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col0 > 241 OR col0 >= 539 AND (col4 < 975.45) AND col3 >= 543 AND col0 < 29 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col0 > 241 OR col0 >= 539 AND (col4 < 975.45) AND col3 >= 543 AND col0 < 29)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_110 UNION SELECT pk, col0 FROM view_2_tab1_110
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-3300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col0 > 241 OR col0 >= 539 AND (col4 < 975.45) AND col3 >= 543 AND col0 < 29 ) AS tab1_110
----
76 values hashing to 65591a833b5fb766298b2d75ea6bca50

query I rowsort label-3300-3
SELECT * FROM view_3_tab1_110
----
76 values hashing to 65591a833b5fb766298b2d75ea6bca50

query I rowsort label-3300-3
SELECT pk FROM tab1 WHERE col0 > 241 OR col0 >= 539 AND (col4 < 975.45) AND col3 >= 543 AND col0 < 29
----
76 values hashing to 65591a833b5fb766298b2d75ea6bca50

statement ok
DROP VIEW view_1_tab1_110

statement ok
DROP VIEW view_2_tab1_110

statement ok
DROP VIEW view_3_tab1_110

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_110') DROP VIEW view_1_tab2_110

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_110

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_110') DROP VIEW view_2_tab2_110

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_110

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_110') DROP VIEW view_3_tab2_110

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_110

statement ok
CREATE VIEW view_1_tab2_110 AS SELECT pk, col0 FROM tab2 WHERE col0 > 241 OR col0 >= 539 AND (col4 < 975.45) AND col3 >= 543 AND col0 < 29

statement ok
CREATE VIEW view_2_tab2_110 AS SELECT pk, col0 FROM tab2 WHERE NOT (col0 > 241 OR col0 >= 539 AND (col4 < 975.45) AND col3 >= 543 AND col0 < 29)

statement ok
CREATE VIEW view_3_tab2_110 AS SELECT pk FROM view_1_tab2_110

query II rowsort label-3300-1
SELECT pk, col0 FROM tab2 WHERE col0 > 241 OR col0 >= 539 AND (col4 < 975.45) AND col3 >= 543 AND col0 < 29
----
152 values hashing to 91f7bc17e3586a4e3309c9948258eca3

query II rowsort label-3300-2
SELECT pk, col0 FROM tab2 WHERE NOT (col0 > 241 OR col0 >= 539 AND (col4 < 975.45) AND col3 >= 543 AND col0 < 29)
----
48 values hashing to c93d4ad33b91ee3569b85f59f7db8eda

query II rowsort label-3300-1
SELECT pk, col0 FROM view_1_tab2_110
----
152 values hashing to 91f7bc17e3586a4e3309c9948258eca3

query II rowsort label-3300-2
SELECT pk, col0 FROM view_2_tab2_110
----
48 values hashing to c93d4ad33b91ee3569b85f59f7db8eda

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col0 > 241 OR col0 >= 539 AND (col4 < 975.45) AND col3 >= 543 AND col0 < 29 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col0 > 241 OR col0 >= 539 AND (col4 < 975.45) AND col3 >= 543 AND col0 < 29)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_110 UNION ALL SELECT pk, col0 FROM view_2_tab2_110
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col0 > 241 OR col0 >= 539 AND (col4 < 975.45) AND col3 >= 543 AND col0 < 29 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col0 > 241 OR col0 >= 539 AND (col4 < 975.45) AND col3 >= 543 AND col0 < 29)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_110 UNION SELECT pk, col0 FROM view_2_tab2_110
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-3300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col0 > 241 OR col0 >= 539 AND (col4 < 975.45) AND col3 >= 543 AND col0 < 29 ) AS tab2_110
----
76 values hashing to 65591a833b5fb766298b2d75ea6bca50

query I rowsort label-3300-3
SELECT * FROM view_3_tab2_110
----
76 values hashing to 65591a833b5fb766298b2d75ea6bca50

query I rowsort label-3300-3
SELECT pk FROM tab2 WHERE col0 > 241 OR col0 >= 539 AND (col4 < 975.45) AND col3 >= 543 AND col0 < 29
----
76 values hashing to 65591a833b5fb766298b2d75ea6bca50

statement ok
DROP VIEW view_1_tab2_110

statement ok
DROP VIEW view_2_tab2_110

statement ok
DROP VIEW view_3_tab2_110

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_110') DROP VIEW view_1_tab3_110

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_110

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_110') DROP VIEW view_2_tab3_110

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_110

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_110') DROP VIEW view_3_tab3_110

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_110

statement ok
CREATE VIEW view_1_tab3_110 AS SELECT pk, col0 FROM tab3 WHERE col0 > 241 OR col0 >= 539 AND (col4 < 975.45) AND col3 >= 543 AND col0 < 29

statement ok
CREATE VIEW view_2_tab3_110 AS SELECT pk, col0 FROM tab3 WHERE NOT (col0 > 241 OR col0 >= 539 AND (col4 < 975.45) AND col3 >= 543 AND col0 < 29)

statement ok
CREATE VIEW view_3_tab3_110 AS SELECT pk FROM view_1_tab3_110

query II rowsort label-3300-1
SELECT pk, col0 FROM tab3 WHERE col0 > 241 OR col0 >= 539 AND (col4 < 975.45) AND col3 >= 543 AND col0 < 29
----
152 values hashing to 91f7bc17e3586a4e3309c9948258eca3

query II rowsort label-3300-2
SELECT pk, col0 FROM tab3 WHERE NOT (col0 > 241 OR col0 >= 539 AND (col4 < 975.45) AND col3 >= 543 AND col0 < 29)
----
48 values hashing to c93d4ad33b91ee3569b85f59f7db8eda

query II rowsort label-3300-1
SELECT pk, col0 FROM view_1_tab3_110
----
152 values hashing to 91f7bc17e3586a4e3309c9948258eca3

query II rowsort label-3300-2
SELECT pk, col0 FROM view_2_tab3_110
----
48 values hashing to c93d4ad33b91ee3569b85f59f7db8eda

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col0 > 241 OR col0 >= 539 AND (col4 < 975.45) AND col3 >= 543 AND col0 < 29 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col0 > 241 OR col0 >= 539 AND (col4 < 975.45) AND col3 >= 543 AND col0 < 29)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_110 UNION ALL SELECT pk, col0 FROM view_2_tab3_110
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col0 > 241 OR col0 >= 539 AND (col4 < 975.45) AND col3 >= 543 AND col0 < 29 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col0 > 241 OR col0 >= 539 AND (col4 < 975.45) AND col3 >= 543 AND col0 < 29)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_110 UNION SELECT pk, col0 FROM view_2_tab3_110
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-3300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col0 > 241 OR col0 >= 539 AND (col4 < 975.45) AND col3 >= 543 AND col0 < 29 ) AS tab3_110
----
76 values hashing to 65591a833b5fb766298b2d75ea6bca50

query I rowsort label-3300-3
SELECT * FROM view_3_tab3_110
----
76 values hashing to 65591a833b5fb766298b2d75ea6bca50

query I rowsort label-3300-3
SELECT pk FROM tab3 WHERE col0 > 241 OR col0 >= 539 AND (col4 < 975.45) AND col3 >= 543 AND col0 < 29
----
76 values hashing to 65591a833b5fb766298b2d75ea6bca50

statement ok
DROP VIEW view_1_tab3_110

statement ok
DROP VIEW view_2_tab3_110

statement ok
DROP VIEW view_3_tab3_110

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_110') DROP VIEW view_1_tab4_110

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_110

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_110') DROP VIEW view_2_tab4_110

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_110

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_110') DROP VIEW view_3_tab4_110

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_110

statement ok
CREATE VIEW view_1_tab4_110 AS SELECT pk, col0 FROM tab4 WHERE col0 > 241 OR col0 >= 539 AND (col4 < 975.45) AND col3 >= 543 AND col0 < 29

statement ok
CREATE VIEW view_2_tab4_110 AS SELECT pk, col0 FROM tab4 WHERE NOT (col0 > 241 OR col0 >= 539 AND (col4 < 975.45) AND col3 >= 543 AND col0 < 29)

statement ok
CREATE VIEW view_3_tab4_110 AS SELECT pk FROM view_1_tab4_110

query II rowsort label-3300-1
SELECT pk, col0 FROM tab4 WHERE col0 > 241 OR col0 >= 539 AND (col4 < 975.45) AND col3 >= 543 AND col0 < 29
----
152 values hashing to 91f7bc17e3586a4e3309c9948258eca3

query II rowsort label-3300-2
SELECT pk, col0 FROM tab4 WHERE NOT (col0 > 241 OR col0 >= 539 AND (col4 < 975.45) AND col3 >= 543 AND col0 < 29)
----
48 values hashing to c93d4ad33b91ee3569b85f59f7db8eda

query II rowsort label-3300-1
SELECT pk, col0 FROM view_1_tab4_110
----
152 values hashing to 91f7bc17e3586a4e3309c9948258eca3

query II rowsort label-3300-2
SELECT pk, col0 FROM view_2_tab4_110
----
48 values hashing to c93d4ad33b91ee3569b85f59f7db8eda

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col0 > 241 OR col0 >= 539 AND (col4 < 975.45) AND col3 >= 543 AND col0 < 29 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col0 > 241 OR col0 >= 539 AND (col4 < 975.45) AND col3 >= 543 AND col0 < 29)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_110 UNION ALL SELECT pk, col0 FROM view_2_tab4_110
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col0 > 241 OR col0 >= 539 AND (col4 < 975.45) AND col3 >= 543 AND col0 < 29 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col0 > 241 OR col0 >= 539 AND (col4 < 975.45) AND col3 >= 543 AND col0 < 29)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_110 UNION SELECT pk, col0 FROM view_2_tab4_110
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-3300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col0 > 241 OR col0 >= 539 AND (col4 < 975.45) AND col3 >= 543 AND col0 < 29 ) AS tab4_110
----
76 values hashing to 65591a833b5fb766298b2d75ea6bca50

query I rowsort label-3300-3
SELECT * FROM view_3_tab4_110
----
76 values hashing to 65591a833b5fb766298b2d75ea6bca50

query I rowsort label-3300-3
SELECT pk FROM tab4 WHERE col0 > 241 OR col0 >= 539 AND (col4 < 975.45) AND col3 >= 543 AND col0 < 29
----
76 values hashing to 65591a833b5fb766298b2d75ea6bca50

statement ok
DROP VIEW view_1_tab4_110

statement ok
DROP VIEW view_2_tab4_110

statement ok
DROP VIEW view_3_tab4_110

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_111') DROP VIEW view_1_tab0_111

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_111

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_111') DROP VIEW view_2_tab0_111

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_111

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_111') DROP VIEW view_3_tab0_111

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_111

statement ok
CREATE VIEW view_1_tab0_111 AS SELECT pk, col0 FROM tab0 WHERE (col0 > 743)

statement ok
CREATE VIEW view_2_tab0_111 AS SELECT pk, col0 FROM tab0 WHERE NOT ((col0 > 743))

statement ok
CREATE VIEW view_3_tab0_111 AS SELECT pk FROM view_1_tab0_111

query II rowsort label-3400-1
SELECT pk, col0 FROM tab0 WHERE (col0 > 743)
----
46 values hashing to e196ea722343a69f70092e6dff4bff17

query II rowsort label-3400-2
SELECT pk, col0 FROM tab0 WHERE NOT ((col0 > 743))
----
154 values hashing to 51f0e84bec94044b1157494c333842c1

query II rowsort label-3400-1
SELECT pk, col0 FROM view_1_tab0_111
----
46 values hashing to e196ea722343a69f70092e6dff4bff17

query II rowsort label-3400-2
SELECT pk, col0 FROM view_2_tab0_111
----
154 values hashing to 51f0e84bec94044b1157494c333842c1

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col0 > 743) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT ((col0 > 743))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_111 UNION ALL SELECT pk, col0 FROM view_2_tab0_111
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col0 > 743) UNION SELECT pk, col0 FROM tab0 WHERE NOT ((col0 > 743))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_111 UNION SELECT pk, col0 FROM view_2_tab0_111
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-3400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE (col0 > 743) ) AS tab0_111
----
23 values hashing to 7851cf1c1a2901b56d646c71f8ebf7d6

query I rowsort label-3400-3
SELECT * FROM view_3_tab0_111
----
23 values hashing to 7851cf1c1a2901b56d646c71f8ebf7d6

query I rowsort label-3400-3
SELECT pk FROM tab0 WHERE (col0 > 743)
----
23 values hashing to 7851cf1c1a2901b56d646c71f8ebf7d6

statement ok
DROP VIEW view_1_tab0_111

statement ok
DROP VIEW view_2_tab0_111

statement ok
DROP VIEW view_3_tab0_111

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_111') DROP VIEW view_1_tab1_111

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_111

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_111') DROP VIEW view_2_tab1_111

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_111

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_111') DROP VIEW view_3_tab1_111

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_111

statement ok
CREATE VIEW view_1_tab1_111 AS SELECT pk, col0 FROM tab1 WHERE (col0 > 743)

statement ok
CREATE VIEW view_2_tab1_111 AS SELECT pk, col0 FROM tab1 WHERE NOT ((col0 > 743))

statement ok
CREATE VIEW view_3_tab1_111 AS SELECT pk FROM view_1_tab1_111

query II rowsort label-3400-1
SELECT pk, col0 FROM tab1 WHERE (col0 > 743)
----
46 values hashing to e196ea722343a69f70092e6dff4bff17

query II rowsort label-3400-2
SELECT pk, col0 FROM tab1 WHERE NOT ((col0 > 743))
----
154 values hashing to 51f0e84bec94044b1157494c333842c1

query II rowsort label-3400-1
SELECT pk, col0 FROM view_1_tab1_111
----
46 values hashing to e196ea722343a69f70092e6dff4bff17

query II rowsort label-3400-2
SELECT pk, col0 FROM view_2_tab1_111
----
154 values hashing to 51f0e84bec94044b1157494c333842c1

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col0 > 743) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT ((col0 > 743))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_111 UNION ALL SELECT pk, col0 FROM view_2_tab1_111
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col0 > 743) UNION SELECT pk, col0 FROM tab1 WHERE NOT ((col0 > 743))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_111 UNION SELECT pk, col0 FROM view_2_tab1_111
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-3400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE (col0 > 743) ) AS tab1_111
----
23 values hashing to 7851cf1c1a2901b56d646c71f8ebf7d6

query I rowsort label-3400-3
SELECT * FROM view_3_tab1_111
----
23 values hashing to 7851cf1c1a2901b56d646c71f8ebf7d6

query I rowsort label-3400-3
SELECT pk FROM tab1 WHERE (col0 > 743)
----
23 values hashing to 7851cf1c1a2901b56d646c71f8ebf7d6

statement ok
DROP VIEW view_1_tab1_111

statement ok
DROP VIEW view_2_tab1_111

statement ok
DROP VIEW view_3_tab1_111

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_111') DROP VIEW view_1_tab2_111

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_111

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_111') DROP VIEW view_2_tab2_111

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_111

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_111') DROP VIEW view_3_tab2_111

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_111

statement ok
CREATE VIEW view_1_tab2_111 AS SELECT pk, col0 FROM tab2 WHERE (col0 > 743)

statement ok
CREATE VIEW view_2_tab2_111 AS SELECT pk, col0 FROM tab2 WHERE NOT ((col0 > 743))

statement ok
CREATE VIEW view_3_tab2_111 AS SELECT pk FROM view_1_tab2_111

query II rowsort label-3400-1
SELECT pk, col0 FROM tab2 WHERE (col0 > 743)
----
46 values hashing to e196ea722343a69f70092e6dff4bff17

query II rowsort label-3400-2
SELECT pk, col0 FROM tab2 WHERE NOT ((col0 > 743))
----
154 values hashing to 51f0e84bec94044b1157494c333842c1

query II rowsort label-3400-1
SELECT pk, col0 FROM view_1_tab2_111
----
46 values hashing to e196ea722343a69f70092e6dff4bff17

query II rowsort label-3400-2
SELECT pk, col0 FROM view_2_tab2_111
----
154 values hashing to 51f0e84bec94044b1157494c333842c1

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col0 > 743) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT ((col0 > 743))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_111 UNION ALL SELECT pk, col0 FROM view_2_tab2_111
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col0 > 743) UNION SELECT pk, col0 FROM tab2 WHERE NOT ((col0 > 743))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_111 UNION SELECT pk, col0 FROM view_2_tab2_111
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-3400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE (col0 > 743) ) AS tab2_111
----
23 values hashing to 7851cf1c1a2901b56d646c71f8ebf7d6

query I rowsort label-3400-3
SELECT * FROM view_3_tab2_111
----
23 values hashing to 7851cf1c1a2901b56d646c71f8ebf7d6

query I rowsort label-3400-3
SELECT pk FROM tab2 WHERE (col0 > 743)
----
23 values hashing to 7851cf1c1a2901b56d646c71f8ebf7d6

statement ok
DROP VIEW view_1_tab2_111

statement ok
DROP VIEW view_2_tab2_111

statement ok
DROP VIEW view_3_tab2_111

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_111') DROP VIEW view_1_tab3_111

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_111

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_111') DROP VIEW view_2_tab3_111

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_111

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_111') DROP VIEW view_3_tab3_111

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_111

statement ok
CREATE VIEW view_1_tab3_111 AS SELECT pk, col0 FROM tab3 WHERE (col0 > 743)

statement ok
CREATE VIEW view_2_tab3_111 AS SELECT pk, col0 FROM tab3 WHERE NOT ((col0 > 743))

statement ok
CREATE VIEW view_3_tab3_111 AS SELECT pk FROM view_1_tab3_111

query II rowsort label-3400-1
SELECT pk, col0 FROM tab3 WHERE (col0 > 743)
----
46 values hashing to e196ea722343a69f70092e6dff4bff17

query II rowsort label-3400-2
SELECT pk, col0 FROM tab3 WHERE NOT ((col0 > 743))
----
154 values hashing to 51f0e84bec94044b1157494c333842c1

query II rowsort label-3400-1
SELECT pk, col0 FROM view_1_tab3_111
----
46 values hashing to e196ea722343a69f70092e6dff4bff17

query II rowsort label-3400-2
SELECT pk, col0 FROM view_2_tab3_111
----
154 values hashing to 51f0e84bec94044b1157494c333842c1

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col0 > 743) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT ((col0 > 743))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_111 UNION ALL SELECT pk, col0 FROM view_2_tab3_111
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col0 > 743) UNION SELECT pk, col0 FROM tab3 WHERE NOT ((col0 > 743))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_111 UNION SELECT pk, col0 FROM view_2_tab3_111
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-3400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE (col0 > 743) ) AS tab3_111
----
23 values hashing to 7851cf1c1a2901b56d646c71f8ebf7d6

query I rowsort label-3400-3
SELECT * FROM view_3_tab3_111
----
23 values hashing to 7851cf1c1a2901b56d646c71f8ebf7d6

query I rowsort label-3400-3
SELECT pk FROM tab3 WHERE (col0 > 743)
----
23 values hashing to 7851cf1c1a2901b56d646c71f8ebf7d6

statement ok
DROP VIEW view_1_tab3_111

statement ok
DROP VIEW view_2_tab3_111

statement ok
DROP VIEW view_3_tab3_111

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_111') DROP VIEW view_1_tab4_111

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_111

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_111') DROP VIEW view_2_tab4_111

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_111

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_111') DROP VIEW view_3_tab4_111

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_111

statement ok
CREATE VIEW view_1_tab4_111 AS SELECT pk, col0 FROM tab4 WHERE (col0 > 743)

statement ok
CREATE VIEW view_2_tab4_111 AS SELECT pk, col0 FROM tab4 WHERE NOT ((col0 > 743))

statement ok
CREATE VIEW view_3_tab4_111 AS SELECT pk FROM view_1_tab4_111

query II rowsort label-3400-1
SELECT pk, col0 FROM tab4 WHERE (col0 > 743)
----
46 values hashing to e196ea722343a69f70092e6dff4bff17

query II rowsort label-3400-2
SELECT pk, col0 FROM tab4 WHERE NOT ((col0 > 743))
----
154 values hashing to 51f0e84bec94044b1157494c333842c1

query II rowsort label-3400-1
SELECT pk, col0 FROM view_1_tab4_111
----
46 values hashing to e196ea722343a69f70092e6dff4bff17

query II rowsort label-3400-2
SELECT pk, col0 FROM view_2_tab4_111
----
154 values hashing to 51f0e84bec94044b1157494c333842c1

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col0 > 743) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT ((col0 > 743))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_111 UNION ALL SELECT pk, col0 FROM view_2_tab4_111
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col0 > 743) UNION SELECT pk, col0 FROM tab4 WHERE NOT ((col0 > 743))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_111 UNION SELECT pk, col0 FROM view_2_tab4_111
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-3400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE (col0 > 743) ) AS tab4_111
----
23 values hashing to 7851cf1c1a2901b56d646c71f8ebf7d6

query I rowsort label-3400-3
SELECT * FROM view_3_tab4_111
----
23 values hashing to 7851cf1c1a2901b56d646c71f8ebf7d6

query I rowsort label-3400-3
SELECT pk FROM tab4 WHERE (col0 > 743)
----
23 values hashing to 7851cf1c1a2901b56d646c71f8ebf7d6

statement ok
DROP VIEW view_1_tab4_111

statement ok
DROP VIEW view_2_tab4_111

statement ok
DROP VIEW view_3_tab4_111

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_112') DROP VIEW view_1_tab0_112

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_112

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_112') DROP VIEW view_2_tab0_112

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_112

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_112') DROP VIEW view_3_tab0_112

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_112

statement ok
CREATE VIEW view_1_tab0_112 AS SELECT pk, col0 FROM tab0 WHERE (col0 IN (90,830,168,405,662) AND ((col0 > 840)) OR col3 > 985 OR ((col3 BETWEEN 794 AND 802) AND col0 = 488 OR col0 > 74) OR col4 <= 292.98 AND col3 > 425 AND ((col3 = 498) AND col3 IS NULL) AND (col3 > 689))

statement ok
CREATE VIEW view_2_tab0_112 AS SELECT pk, col0 FROM tab0 WHERE NOT ((col0 IN (90,830,168,405,662) AND ((col0 > 840)) OR col3 > 985 OR ((col3 BETWEEN 794 AND 802) AND col0 = 488 OR col0 > 74) OR col4 <= 292.98 AND col3 > 425 AND ((col3 = 498) AND col3 IS NULL) AND (col3 > 689)))

statement ok
CREATE VIEW view_3_tab0_112 AS SELECT pk FROM view_1_tab0_112

query II rowsort label-3500-1
SELECT pk, col0 FROM tab0 WHERE (col0 IN (90,830,168,405,662) AND ((col0 > 840)) OR col3 > 985 OR ((col3 BETWEEN 794 AND 802) AND col0 = 488 OR col0 > 74) OR col4 <= 292.98 AND col3 > 425 AND ((col3 = 498) AND col3 IS NULL) AND (col3 > 689))
----
188 values hashing to 051aecaf4b9a5dc278999c6721bfa5c8

query II rowsort label-3500-2
SELECT pk, col0 FROM tab0 WHERE NOT ((col0 IN (90,830,168,405,662) AND ((col0 > 840)) OR col3 > 985 OR ((col3 BETWEEN 794 AND 802) AND col0 = 488 OR col0 > 74) OR col4 <= 292.98 AND col3 > 425 AND ((col3 = 498) AND col3 IS NULL) AND (col3 > 689)))
----
12 values hashing to aa892f2c32c8241807c59a9bfc7732da

query II rowsort label-3500-1
SELECT pk, col0 FROM view_1_tab0_112
----
188 values hashing to 051aecaf4b9a5dc278999c6721bfa5c8

query II rowsort label-3500-2
SELECT pk, col0 FROM view_2_tab0_112
----
12 values hashing to aa892f2c32c8241807c59a9bfc7732da

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col0 IN (90,830,168,405,662) AND ((col0 > 840)) OR col3 > 985 OR ((col3 BETWEEN 794 AND 802) AND col0 = 488 OR col0 > 74) OR col4 <= 292.98 AND col3 > 425 AND ((col3 = 498) AND col3 IS NULL) AND (col3 > 689)) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT ((col0 IN (90,830,168,405,662) AND ((col0 > 840)) OR col3 > 985 OR ((col3 BETWEEN 794 AND 802) AND col0 = 488 OR col0 > 74) OR col4 <= 292.98 AND col3 > 425 AND ((col3 = 498) AND col3 IS NULL) AND (col3 > 689)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_112 UNION ALL SELECT pk, col0 FROM view_2_tab0_112
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col0 IN (90,830,168,405,662) AND ((col0 > 840)) OR col3 > 985 OR ((col3 BETWEEN 794 AND 802) AND col0 = 488 OR col0 > 74) OR col4 <= 292.98 AND col3 > 425 AND ((col3 = 498) AND col3 IS NULL) AND (col3 > 689)) UNION SELECT pk, col0 FROM tab0 WHERE NOT ((col0 IN (90,830,168,405,662) AND ((col0 > 840)) OR col3 > 985 OR ((col3 BETWEEN 794 AND 802) AND col0 = 488 OR col0 > 74) OR col4 <= 292.98 AND col3 > 425 AND ((col3 = 498) AND col3 IS NULL) AND (col3 > 689)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_112 UNION SELECT pk, col0 FROM view_2_tab0_112
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-3500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE (col0 IN (90,830,168,405,662) AND ((col0 > 840)) OR col3 > 985 OR ((col3 BETWEEN 794 AND 802) AND col0 = 488 OR col0 > 74) OR col4 <= 292.98 AND col3 > 425 AND ((col3 = 498) AND col3 IS NULL) AND (col3 > 689)) ) AS tab0_112
----
94 values hashing to 79f1ee446fbfdadb2f5f7bae0ecf4205

query I rowsort label-3500-3
SELECT * FROM view_3_tab0_112
----
94 values hashing to 79f1ee446fbfdadb2f5f7bae0ecf4205

query I rowsort label-3500-3
SELECT pk FROM tab0 WHERE (col0 IN (90,830,168,405,662) AND ((col0 > 840)) OR col3 > 985 OR ((col3 BETWEEN 794 AND 802) AND col0 = 488 OR col0 > 74) OR col4 <= 292.98 AND col3 > 425 AND ((col3 = 498) AND col3 IS NULL) AND (col3 > 689))
----
94 values hashing to 79f1ee446fbfdadb2f5f7bae0ecf4205

statement ok
DROP VIEW view_1_tab0_112

statement ok
DROP VIEW view_2_tab0_112

statement ok
DROP VIEW view_3_tab0_112

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_112') DROP VIEW view_1_tab1_112

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_112

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_112') DROP VIEW view_2_tab1_112

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_112

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_112') DROP VIEW view_3_tab1_112

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_112

statement ok
CREATE VIEW view_1_tab1_112 AS SELECT pk, col0 FROM tab1 WHERE (col0 IN (90,830,168,405,662) AND ((col0 > 840)) OR col3 > 985 OR ((col3 BETWEEN 794 AND 802) AND col0 = 488 OR col0 > 74) OR col4 <= 292.98 AND col3 > 425 AND ((col3 = 498) AND col3 IS NULL) AND (col3 > 689))

statement ok
CREATE VIEW view_2_tab1_112 AS SELECT pk, col0 FROM tab1 WHERE NOT ((col0 IN (90,830,168,405,662) AND ((col0 > 840)) OR col3 > 985 OR ((col3 BETWEEN 794 AND 802) AND col0 = 488 OR col0 > 74) OR col4 <= 292.98 AND col3 > 425 AND ((col3 = 498) AND col3 IS NULL) AND (col3 > 689)))

statement ok
CREATE VIEW view_3_tab1_112 AS SELECT pk FROM view_1_tab1_112

query II rowsort label-3500-1
SELECT pk, col0 FROM tab1 WHERE (col0 IN (90,830,168,405,662) AND ((col0 > 840)) OR col3 > 985 OR ((col3 BETWEEN 794 AND 802) AND col0 = 488 OR col0 > 74) OR col4 <= 292.98 AND col3 > 425 AND ((col3 = 498) AND col3 IS NULL) AND (col3 > 689))
----
188 values hashing to 051aecaf4b9a5dc278999c6721bfa5c8

query II rowsort label-3500-2
SELECT pk, col0 FROM tab1 WHERE NOT ((col0 IN (90,830,168,405,662) AND ((col0 > 840)) OR col3 > 985 OR ((col3 BETWEEN 794 AND 802) AND col0 = 488 OR col0 > 74) OR col4 <= 292.98 AND col3 > 425 AND ((col3 = 498) AND col3 IS NULL) AND (col3 > 689)))
----
12 values hashing to aa892f2c32c8241807c59a9bfc7732da

query II rowsort label-3500-1
SELECT pk, col0 FROM view_1_tab1_112
----
188 values hashing to 051aecaf4b9a5dc278999c6721bfa5c8

query II rowsort label-3500-2
SELECT pk, col0 FROM view_2_tab1_112
----
12 values hashing to aa892f2c32c8241807c59a9bfc7732da

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col0 IN (90,830,168,405,662) AND ((col0 > 840)) OR col3 > 985 OR ((col3 BETWEEN 794 AND 802) AND col0 = 488 OR col0 > 74) OR col4 <= 292.98 AND col3 > 425 AND ((col3 = 498) AND col3 IS NULL) AND (col3 > 689)) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT ((col0 IN (90,830,168,405,662) AND ((col0 > 840)) OR col3 > 985 OR ((col3 BETWEEN 794 AND 802) AND col0 = 488 OR col0 > 74) OR col4 <= 292.98 AND col3 > 425 AND ((col3 = 498) AND col3 IS NULL) AND (col3 > 689)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_112 UNION ALL SELECT pk, col0 FROM view_2_tab1_112
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col0 IN (90,830,168,405,662) AND ((col0 > 840)) OR col3 > 985 OR ((col3 BETWEEN 794 AND 802) AND col0 = 488 OR col0 > 74) OR col4 <= 292.98 AND col3 > 425 AND ((col3 = 498) AND col3 IS NULL) AND (col3 > 689)) UNION SELECT pk, col0 FROM tab1 WHERE NOT ((col0 IN (90,830,168,405,662) AND ((col0 > 840)) OR col3 > 985 OR ((col3 BETWEEN 794 AND 802) AND col0 = 488 OR col0 > 74) OR col4 <= 292.98 AND col3 > 425 AND ((col3 = 498) AND col3 IS NULL) AND (col3 > 689)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_112 UNION SELECT pk, col0 FROM view_2_tab1_112
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-3500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE (col0 IN (90,830,168,405,662) AND ((col0 > 840)) OR col3 > 985 OR ((col3 BETWEEN 794 AND 802) AND col0 = 488 OR col0 > 74) OR col4 <= 292.98 AND col3 > 425 AND ((col3 = 498) AND col3 IS NULL) AND (col3 > 689)) ) AS tab1_112
----
94 values hashing to 79f1ee446fbfdadb2f5f7bae0ecf4205

query I rowsort label-3500-3
SELECT * FROM view_3_tab1_112
----
94 values hashing to 79f1ee446fbfdadb2f5f7bae0ecf4205

query I rowsort label-3500-3
SELECT pk FROM tab1 WHERE (col0 IN (90,830,168,405,662) AND ((col0 > 840)) OR col3 > 985 OR ((col3 BETWEEN 794 AND 802) AND col0 = 488 OR col0 > 74) OR col4 <= 292.98 AND col3 > 425 AND ((col3 = 498) AND col3 IS NULL) AND (col3 > 689))
----
94 values hashing to 79f1ee446fbfdadb2f5f7bae0ecf4205

statement ok
DROP VIEW view_1_tab1_112

statement ok
DROP VIEW view_2_tab1_112

statement ok
DROP VIEW view_3_tab1_112

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_112') DROP VIEW view_1_tab2_112

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_112

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_112') DROP VIEW view_2_tab2_112

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_112

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_112') DROP VIEW view_3_tab2_112

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_112

statement ok
CREATE VIEW view_1_tab2_112 AS SELECT pk, col0 FROM tab2 WHERE (col0 IN (90,830,168,405,662) AND ((col0 > 840)) OR col3 > 985 OR ((col3 BETWEEN 794 AND 802) AND col0 = 488 OR col0 > 74) OR col4 <= 292.98 AND col3 > 425 AND ((col3 = 498) AND col3 IS NULL) AND (col3 > 689))

statement ok
CREATE VIEW view_2_tab2_112 AS SELECT pk, col0 FROM tab2 WHERE NOT ((col0 IN (90,830,168,405,662) AND ((col0 > 840)) OR col3 > 985 OR ((col3 BETWEEN 794 AND 802) AND col0 = 488 OR col0 > 74) OR col4 <= 292.98 AND col3 > 425 AND ((col3 = 498) AND col3 IS NULL) AND (col3 > 689)))

statement ok
CREATE VIEW view_3_tab2_112 AS SELECT pk FROM view_1_tab2_112

query II rowsort label-3500-1
SELECT pk, col0 FROM tab2 WHERE (col0 IN (90,830,168,405,662) AND ((col0 > 840)) OR col3 > 985 OR ((col3 BETWEEN 794 AND 802) AND col0 = 488 OR col0 > 74) OR col4 <= 292.98 AND col3 > 425 AND ((col3 = 498) AND col3 IS NULL) AND (col3 > 689))
----
188 values hashing to 051aecaf4b9a5dc278999c6721bfa5c8

query II rowsort label-3500-2
SELECT pk, col0 FROM tab2 WHERE NOT ((col0 IN (90,830,168,405,662) AND ((col0 > 840)) OR col3 > 985 OR ((col3 BETWEEN 794 AND 802) AND col0 = 488 OR col0 > 74) OR col4 <= 292.98 AND col3 > 425 AND ((col3 = 498) AND col3 IS NULL) AND (col3 > 689)))
----
12 values hashing to aa892f2c32c8241807c59a9bfc7732da

query II rowsort label-3500-1
SELECT pk, col0 FROM view_1_tab2_112
----
188 values hashing to 051aecaf4b9a5dc278999c6721bfa5c8

query II rowsort label-3500-2
SELECT pk, col0 FROM view_2_tab2_112
----
12 values hashing to aa892f2c32c8241807c59a9bfc7732da

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col0 IN (90,830,168,405,662) AND ((col0 > 840)) OR col3 > 985 OR ((col3 BETWEEN 794 AND 802) AND col0 = 488 OR col0 > 74) OR col4 <= 292.98 AND col3 > 425 AND ((col3 = 498) AND col3 IS NULL) AND (col3 > 689)) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT ((col0 IN (90,830,168,405,662) AND ((col0 > 840)) OR col3 > 985 OR ((col3 BETWEEN 794 AND 802) AND col0 = 488 OR col0 > 74) OR col4 <= 292.98 AND col3 > 425 AND ((col3 = 498) AND col3 IS NULL) AND (col3 > 689)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_112 UNION ALL SELECT pk, col0 FROM view_2_tab2_112
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col0 IN (90,830,168,405,662) AND ((col0 > 840)) OR col3 > 985 OR ((col3 BETWEEN 794 AND 802) AND col0 = 488 OR col0 > 74) OR col4 <= 292.98 AND col3 > 425 AND ((col3 = 498) AND col3 IS NULL) AND (col3 > 689)) UNION SELECT pk, col0 FROM tab2 WHERE NOT ((col0 IN (90,830,168,405,662) AND ((col0 > 840)) OR col3 > 985 OR ((col3 BETWEEN 794 AND 802) AND col0 = 488 OR col0 > 74) OR col4 <= 292.98 AND col3 > 425 AND ((col3 = 498) AND col3 IS NULL) AND (col3 > 689)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_112 UNION SELECT pk, col0 FROM view_2_tab2_112
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-3500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE (col0 IN (90,830,168,405,662) AND ((col0 > 840)) OR col3 > 985 OR ((col3 BETWEEN 794 AND 802) AND col0 = 488 OR col0 > 74) OR col4 <= 292.98 AND col3 > 425 AND ((col3 = 498) AND col3 IS NULL) AND (col3 > 689)) ) AS tab2_112
----
94 values hashing to 79f1ee446fbfdadb2f5f7bae0ecf4205

query I rowsort label-3500-3
SELECT * FROM view_3_tab2_112
----
94 values hashing to 79f1ee446fbfdadb2f5f7bae0ecf4205

query I rowsort label-3500-3
SELECT pk FROM tab2 WHERE (col0 IN (90,830,168,405,662) AND ((col0 > 840)) OR col3 > 985 OR ((col3 BETWEEN 794 AND 802) AND col0 = 488 OR col0 > 74) OR col4 <= 292.98 AND col3 > 425 AND ((col3 = 498) AND col3 IS NULL) AND (col3 > 689))
----
94 values hashing to 79f1ee446fbfdadb2f5f7bae0ecf4205

statement ok
DROP VIEW view_1_tab2_112

statement ok
DROP VIEW view_2_tab2_112

statement ok
DROP VIEW view_3_tab2_112

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_112') DROP VIEW view_1_tab3_112

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_112

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_112') DROP VIEW view_2_tab3_112

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_112

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_112') DROP VIEW view_3_tab3_112

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_112

statement ok
CREATE VIEW view_1_tab3_112 AS SELECT pk, col0 FROM tab3 WHERE (col0 IN (90,830,168,405,662) AND ((col0 > 840)) OR col3 > 985 OR ((col3 BETWEEN 794 AND 802) AND col0 = 488 OR col0 > 74) OR col4 <= 292.98 AND col3 > 425 AND ((col3 = 498) AND col3 IS NULL) AND (col3 > 689))

statement ok
CREATE VIEW view_2_tab3_112 AS SELECT pk, col0 FROM tab3 WHERE NOT ((col0 IN (90,830,168,405,662) AND ((col0 > 840)) OR col3 > 985 OR ((col3 BETWEEN 794 AND 802) AND col0 = 488 OR col0 > 74) OR col4 <= 292.98 AND col3 > 425 AND ((col3 = 498) AND col3 IS NULL) AND (col3 > 689)))

statement ok
CREATE VIEW view_3_tab3_112 AS SELECT pk FROM view_1_tab3_112

query II rowsort label-3500-1
SELECT pk, col0 FROM tab3 WHERE (col0 IN (90,830,168,405,662) AND ((col0 > 840)) OR col3 > 985 OR ((col3 BETWEEN 794 AND 802) AND col0 = 488 OR col0 > 74) OR col4 <= 292.98 AND col3 > 425 AND ((col3 = 498) AND col3 IS NULL) AND (col3 > 689))
----
188 values hashing to 051aecaf4b9a5dc278999c6721bfa5c8

query II rowsort label-3500-2
SELECT pk, col0 FROM tab3 WHERE NOT ((col0 IN (90,830,168,405,662) AND ((col0 > 840)) OR col3 > 985 OR ((col3 BETWEEN 794 AND 802) AND col0 = 488 OR col0 > 74) OR col4 <= 292.98 AND col3 > 425 AND ((col3 = 498) AND col3 IS NULL) AND (col3 > 689)))
----
12 values hashing to aa892f2c32c8241807c59a9bfc7732da

query II rowsort label-3500-1
SELECT pk, col0 FROM view_1_tab3_112
----
188 values hashing to 051aecaf4b9a5dc278999c6721bfa5c8

query II rowsort label-3500-2
SELECT pk, col0 FROM view_2_tab3_112
----
12 values hashing to aa892f2c32c8241807c59a9bfc7732da

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col0 IN (90,830,168,405,662) AND ((col0 > 840)) OR col3 > 985 OR ((col3 BETWEEN 794 AND 802) AND col0 = 488 OR col0 > 74) OR col4 <= 292.98 AND col3 > 425 AND ((col3 = 498) AND col3 IS NULL) AND (col3 > 689)) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT ((col0 IN (90,830,168,405,662) AND ((col0 > 840)) OR col3 > 985 OR ((col3 BETWEEN 794 AND 802) AND col0 = 488 OR col0 > 74) OR col4 <= 292.98 AND col3 > 425 AND ((col3 = 498) AND col3 IS NULL) AND (col3 > 689)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_112 UNION ALL SELECT pk, col0 FROM view_2_tab3_112
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col0 IN (90,830,168,405,662) AND ((col0 > 840)) OR col3 > 985 OR ((col3 BETWEEN 794 AND 802) AND col0 = 488 OR col0 > 74) OR col4 <= 292.98 AND col3 > 425 AND ((col3 = 498) AND col3 IS NULL) AND (col3 > 689)) UNION SELECT pk, col0 FROM tab3 WHERE NOT ((col0 IN (90,830,168,405,662) AND ((col0 > 840)) OR col3 > 985 OR ((col3 BETWEEN 794 AND 802) AND col0 = 488 OR col0 > 74) OR col4 <= 292.98 AND col3 > 425 AND ((col3 = 498) AND col3 IS NULL) AND (col3 > 689)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_112 UNION SELECT pk, col0 FROM view_2_tab3_112
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-3500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE (col0 IN (90,830,168,405,662) AND ((col0 > 840)) OR col3 > 985 OR ((col3 BETWEEN 794 AND 802) AND col0 = 488 OR col0 > 74) OR col4 <= 292.98 AND col3 > 425 AND ((col3 = 498) AND col3 IS NULL) AND (col3 > 689)) ) AS tab3_112
----
94 values hashing to 79f1ee446fbfdadb2f5f7bae0ecf4205

query I rowsort label-3500-3
SELECT * FROM view_3_tab3_112
----
94 values hashing to 79f1ee446fbfdadb2f5f7bae0ecf4205

query I rowsort label-3500-3
SELECT pk FROM tab3 WHERE (col0 IN (90,830,168,405,662) AND ((col0 > 840)) OR col3 > 985 OR ((col3 BETWEEN 794 AND 802) AND col0 = 488 OR col0 > 74) OR col4 <= 292.98 AND col3 > 425 AND ((col3 = 498) AND col3 IS NULL) AND (col3 > 689))
----
94 values hashing to 79f1ee446fbfdadb2f5f7bae0ecf4205

statement ok
DROP VIEW view_1_tab3_112

statement ok
DROP VIEW view_2_tab3_112

statement ok
DROP VIEW view_3_tab3_112

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_112') DROP VIEW view_1_tab4_112

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_112

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_112') DROP VIEW view_2_tab4_112

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_112

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_112') DROP VIEW view_3_tab4_112

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_112

statement ok
CREATE VIEW view_1_tab4_112 AS SELECT pk, col0 FROM tab4 WHERE (col0 IN (90,830,168,405,662) AND ((col0 > 840)) OR col3 > 985 OR ((col3 BETWEEN 794 AND 802) AND col0 = 488 OR col0 > 74) OR col4 <= 292.98 AND col3 > 425 AND ((col3 = 498) AND col3 IS NULL) AND (col3 > 689))

statement ok
CREATE VIEW view_2_tab4_112 AS SELECT pk, col0 FROM tab4 WHERE NOT ((col0 IN (90,830,168,405,662) AND ((col0 > 840)) OR col3 > 985 OR ((col3 BETWEEN 794 AND 802) AND col0 = 488 OR col0 > 74) OR col4 <= 292.98 AND col3 > 425 AND ((col3 = 498) AND col3 IS NULL) AND (col3 > 689)))

statement ok
CREATE VIEW view_3_tab4_112 AS SELECT pk FROM view_1_tab4_112

query II rowsort label-3500-1
SELECT pk, col0 FROM tab4 WHERE (col0 IN (90,830,168,405,662) AND ((col0 > 840)) OR col3 > 985 OR ((col3 BETWEEN 794 AND 802) AND col0 = 488 OR col0 > 74) OR col4 <= 292.98 AND col3 > 425 AND ((col3 = 498) AND col3 IS NULL) AND (col3 > 689))
----
188 values hashing to 051aecaf4b9a5dc278999c6721bfa5c8

query II rowsort label-3500-2
SELECT pk, col0 FROM tab4 WHERE NOT ((col0 IN (90,830,168,405,662) AND ((col0 > 840)) OR col3 > 985 OR ((col3 BETWEEN 794 AND 802) AND col0 = 488 OR col0 > 74) OR col4 <= 292.98 AND col3 > 425 AND ((col3 = 498) AND col3 IS NULL) AND (col3 > 689)))
----
12 values hashing to aa892f2c32c8241807c59a9bfc7732da

query II rowsort label-3500-1
SELECT pk, col0 FROM view_1_tab4_112
----
188 values hashing to 051aecaf4b9a5dc278999c6721bfa5c8

query II rowsort label-3500-2
SELECT pk, col0 FROM view_2_tab4_112
----
12 values hashing to aa892f2c32c8241807c59a9bfc7732da

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col0 IN (90,830,168,405,662) AND ((col0 > 840)) OR col3 > 985 OR ((col3 BETWEEN 794 AND 802) AND col0 = 488 OR col0 > 74) OR col4 <= 292.98 AND col3 > 425 AND ((col3 = 498) AND col3 IS NULL) AND (col3 > 689)) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT ((col0 IN (90,830,168,405,662) AND ((col0 > 840)) OR col3 > 985 OR ((col3 BETWEEN 794 AND 802) AND col0 = 488 OR col0 > 74) OR col4 <= 292.98 AND col3 > 425 AND ((col3 = 498) AND col3 IS NULL) AND (col3 > 689)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_112 UNION ALL SELECT pk, col0 FROM view_2_tab4_112
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col0 IN (90,830,168,405,662) AND ((col0 > 840)) OR col3 > 985 OR ((col3 BETWEEN 794 AND 802) AND col0 = 488 OR col0 > 74) OR col4 <= 292.98 AND col3 > 425 AND ((col3 = 498) AND col3 IS NULL) AND (col3 > 689)) UNION SELECT pk, col0 FROM tab4 WHERE NOT ((col0 IN (90,830,168,405,662) AND ((col0 > 840)) OR col3 > 985 OR ((col3 BETWEEN 794 AND 802) AND col0 = 488 OR col0 > 74) OR col4 <= 292.98 AND col3 > 425 AND ((col3 = 498) AND col3 IS NULL) AND (col3 > 689)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_112 UNION SELECT pk, col0 FROM view_2_tab4_112
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-3500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE (col0 IN (90,830,168,405,662) AND ((col0 > 840)) OR col3 > 985 OR ((col3 BETWEEN 794 AND 802) AND col0 = 488 OR col0 > 74) OR col4 <= 292.98 AND col3 > 425 AND ((col3 = 498) AND col3 IS NULL) AND (col3 > 689)) ) AS tab4_112
----
94 values hashing to 79f1ee446fbfdadb2f5f7bae0ecf4205

query I rowsort label-3500-3
SELECT * FROM view_3_tab4_112
----
94 values hashing to 79f1ee446fbfdadb2f5f7bae0ecf4205

query I rowsort label-3500-3
SELECT pk FROM tab4 WHERE (col0 IN (90,830,168,405,662) AND ((col0 > 840)) OR col3 > 985 OR ((col3 BETWEEN 794 AND 802) AND col0 = 488 OR col0 > 74) OR col4 <= 292.98 AND col3 > 425 AND ((col3 = 498) AND col3 IS NULL) AND (col3 > 689))
----
94 values hashing to 79f1ee446fbfdadb2f5f7bae0ecf4205

statement ok
DROP VIEW view_1_tab4_112

statement ok
DROP VIEW view_2_tab4_112

statement ok
DROP VIEW view_3_tab4_112

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_113') DROP VIEW view_1_tab0_113

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_113

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_113') DROP VIEW view_2_tab0_113

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_113

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_113') DROP VIEW view_3_tab0_113

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_113

statement ok
CREATE VIEW view_1_tab0_113 AS SELECT pk, col0 FROM tab0 WHERE col1 < 482.39

statement ok
CREATE VIEW view_2_tab0_113 AS SELECT pk, col0 FROM tab0 WHERE NOT (col1 < 482.39)

statement ok
CREATE VIEW view_3_tab0_113 AS SELECT pk FROM view_1_tab0_113

query II rowsort label-3600-1
SELECT pk, col0 FROM tab0 WHERE col1 < 482.39
----
88 values hashing to 6085343a5ed00fae6dbe87330fb7e70f

query II rowsort label-3600-2
SELECT pk, col0 FROM tab0 WHERE NOT (col1 < 482.39)
----
112 values hashing to 7f33cb2d5587861ebd462712d39908e1

query II rowsort label-3600-1
SELECT pk, col0 FROM view_1_tab0_113
----
88 values hashing to 6085343a5ed00fae6dbe87330fb7e70f

query II rowsort label-3600-2
SELECT pk, col0 FROM view_2_tab0_113
----
112 values hashing to 7f33cb2d5587861ebd462712d39908e1

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col1 < 482.39 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col1 < 482.39)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_113 UNION ALL SELECT pk, col0 FROM view_2_tab0_113
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col1 < 482.39 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col1 < 482.39)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_113 UNION SELECT pk, col0 FROM view_2_tab0_113
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-3600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col1 < 482.39 ) AS tab0_113
----
44 values hashing to 2428bd479c766e78ae64346283b669ea

query I rowsort label-3600-3
SELECT * FROM view_3_tab0_113
----
44 values hashing to 2428bd479c766e78ae64346283b669ea

query I rowsort label-3600-3
SELECT pk FROM tab0 WHERE col1 < 482.39
----
44 values hashing to 2428bd479c766e78ae64346283b669ea

statement ok
DROP VIEW view_1_tab0_113

statement ok
DROP VIEW view_2_tab0_113

statement ok
DROP VIEW view_3_tab0_113

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_113') DROP VIEW view_1_tab1_113

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_113

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_113') DROP VIEW view_2_tab1_113

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_113

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_113') DROP VIEW view_3_tab1_113

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_113

statement ok
CREATE VIEW view_1_tab1_113 AS SELECT pk, col0 FROM tab1 WHERE col1 < 482.39

statement ok
CREATE VIEW view_2_tab1_113 AS SELECT pk, col0 FROM tab1 WHERE NOT (col1 < 482.39)

statement ok
CREATE VIEW view_3_tab1_113 AS SELECT pk FROM view_1_tab1_113

query II rowsort label-3600-1
SELECT pk, col0 FROM tab1 WHERE col1 < 482.39
----
88 values hashing to 6085343a5ed00fae6dbe87330fb7e70f

query II rowsort label-3600-2
SELECT pk, col0 FROM tab1 WHERE NOT (col1 < 482.39)
----
112 values hashing to 7f33cb2d5587861ebd462712d39908e1

query II rowsort label-3600-1
SELECT pk, col0 FROM view_1_tab1_113
----
88 values hashing to 6085343a5ed00fae6dbe87330fb7e70f

query II rowsort label-3600-2
SELECT pk, col0 FROM view_2_tab1_113
----
112 values hashing to 7f33cb2d5587861ebd462712d39908e1

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col1 < 482.39 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col1 < 482.39)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_113 UNION ALL SELECT pk, col0 FROM view_2_tab1_113
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col1 < 482.39 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col1 < 482.39)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_113 UNION SELECT pk, col0 FROM view_2_tab1_113
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-3600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col1 < 482.39 ) AS tab1_113
----
44 values hashing to 2428bd479c766e78ae64346283b669ea

query I rowsort label-3600-3
SELECT * FROM view_3_tab1_113
----
44 values hashing to 2428bd479c766e78ae64346283b669ea

query I rowsort label-3600-3
SELECT pk FROM tab1 WHERE col1 < 482.39
----
44 values hashing to 2428bd479c766e78ae64346283b669ea

statement ok
DROP VIEW view_1_tab1_113

statement ok
DROP VIEW view_2_tab1_113

statement ok
DROP VIEW view_3_tab1_113

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_113') DROP VIEW view_1_tab2_113

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_113

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_113') DROP VIEW view_2_tab2_113

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_113

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_113') DROP VIEW view_3_tab2_113

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_113

statement ok
CREATE VIEW view_1_tab2_113 AS SELECT pk, col0 FROM tab2 WHERE col1 < 482.39

statement ok
CREATE VIEW view_2_tab2_113 AS SELECT pk, col0 FROM tab2 WHERE NOT (col1 < 482.39)

statement ok
CREATE VIEW view_3_tab2_113 AS SELECT pk FROM view_1_tab2_113

query II rowsort label-3600-1
SELECT pk, col0 FROM tab2 WHERE col1 < 482.39
----
88 values hashing to 6085343a5ed00fae6dbe87330fb7e70f

query II rowsort label-3600-2
SELECT pk, col0 FROM tab2 WHERE NOT (col1 < 482.39)
----
112 values hashing to 7f33cb2d5587861ebd462712d39908e1

query II rowsort label-3600-1
SELECT pk, col0 FROM view_1_tab2_113
----
88 values hashing to 6085343a5ed00fae6dbe87330fb7e70f

query II rowsort label-3600-2
SELECT pk, col0 FROM view_2_tab2_113
----
112 values hashing to 7f33cb2d5587861ebd462712d39908e1

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col1 < 482.39 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col1 < 482.39)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_113 UNION ALL SELECT pk, col0 FROM view_2_tab2_113
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col1 < 482.39 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col1 < 482.39)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_113 UNION SELECT pk, col0 FROM view_2_tab2_113
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-3600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col1 < 482.39 ) AS tab2_113
----
44 values hashing to 2428bd479c766e78ae64346283b669ea

query I rowsort label-3600-3
SELECT * FROM view_3_tab2_113
----
44 values hashing to 2428bd479c766e78ae64346283b669ea

query I rowsort label-3600-3
SELECT pk FROM tab2 WHERE col1 < 482.39
----
44 values hashing to 2428bd479c766e78ae64346283b669ea

statement ok
DROP VIEW view_1_tab2_113

statement ok
DROP VIEW view_2_tab2_113

statement ok
DROP VIEW view_3_tab2_113

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_113') DROP VIEW view_1_tab3_113

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_113

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_113') DROP VIEW view_2_tab3_113

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_113

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_113') DROP VIEW view_3_tab3_113

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_113

statement ok
CREATE VIEW view_1_tab3_113 AS SELECT pk, col0 FROM tab3 WHERE col1 < 482.39

statement ok
CREATE VIEW view_2_tab3_113 AS SELECT pk, col0 FROM tab3 WHERE NOT (col1 < 482.39)

statement ok
CREATE VIEW view_3_tab3_113 AS SELECT pk FROM view_1_tab3_113

query II rowsort label-3600-1
SELECT pk, col0 FROM tab3 WHERE col1 < 482.39
----
88 values hashing to 6085343a5ed00fae6dbe87330fb7e70f

query II rowsort label-3600-2
SELECT pk, col0 FROM tab3 WHERE NOT (col1 < 482.39)
----
112 values hashing to 7f33cb2d5587861ebd462712d39908e1

query II rowsort label-3600-1
SELECT pk, col0 FROM view_1_tab3_113
----
88 values hashing to 6085343a5ed00fae6dbe87330fb7e70f

query II rowsort label-3600-2
SELECT pk, col0 FROM view_2_tab3_113
----
112 values hashing to 7f33cb2d5587861ebd462712d39908e1

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col1 < 482.39 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col1 < 482.39)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_113 UNION ALL SELECT pk, col0 FROM view_2_tab3_113
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col1 < 482.39 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col1 < 482.39)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_113 UNION SELECT pk, col0 FROM view_2_tab3_113
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-3600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col1 < 482.39 ) AS tab3_113
----
44 values hashing to 2428bd479c766e78ae64346283b669ea

query I rowsort label-3600-3
SELECT * FROM view_3_tab3_113
----
44 values hashing to 2428bd479c766e78ae64346283b669ea

query I rowsort label-3600-3
SELECT pk FROM tab3 WHERE col1 < 482.39
----
44 values hashing to 2428bd479c766e78ae64346283b669ea

statement ok
DROP VIEW view_1_tab3_113

statement ok
DROP VIEW view_2_tab3_113

statement ok
DROP VIEW view_3_tab3_113

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_113') DROP VIEW view_1_tab4_113

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_113

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_113') DROP VIEW view_2_tab4_113

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_113

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_113') DROP VIEW view_3_tab4_113

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_113

statement ok
CREATE VIEW view_1_tab4_113 AS SELECT pk, col0 FROM tab4 WHERE col1 < 482.39

statement ok
CREATE VIEW view_2_tab4_113 AS SELECT pk, col0 FROM tab4 WHERE NOT (col1 < 482.39)

statement ok
CREATE VIEW view_3_tab4_113 AS SELECT pk FROM view_1_tab4_113

query II rowsort label-3600-1
SELECT pk, col0 FROM tab4 WHERE col1 < 482.39
----
88 values hashing to 6085343a5ed00fae6dbe87330fb7e70f

query II rowsort label-3600-2
SELECT pk, col0 FROM tab4 WHERE NOT (col1 < 482.39)
----
112 values hashing to 7f33cb2d5587861ebd462712d39908e1

query II rowsort label-3600-1
SELECT pk, col0 FROM view_1_tab4_113
----
88 values hashing to 6085343a5ed00fae6dbe87330fb7e70f

query II rowsort label-3600-2
SELECT pk, col0 FROM view_2_tab4_113
----
112 values hashing to 7f33cb2d5587861ebd462712d39908e1

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col1 < 482.39 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col1 < 482.39)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_113 UNION ALL SELECT pk, col0 FROM view_2_tab4_113
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col1 < 482.39 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col1 < 482.39)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_113 UNION SELECT pk, col0 FROM view_2_tab4_113
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-3600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col1 < 482.39 ) AS tab4_113
----
44 values hashing to 2428bd479c766e78ae64346283b669ea

query I rowsort label-3600-3
SELECT * FROM view_3_tab4_113
----
44 values hashing to 2428bd479c766e78ae64346283b669ea

query I rowsort label-3600-3
SELECT pk FROM tab4 WHERE col1 < 482.39
----
44 values hashing to 2428bd479c766e78ae64346283b669ea

statement ok
DROP VIEW view_1_tab4_113

statement ok
DROP VIEW view_2_tab4_113

statement ok
DROP VIEW view_3_tab4_113

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_114') DROP VIEW view_1_tab0_114

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_114

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_114') DROP VIEW view_2_tab0_114

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_114

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_114') DROP VIEW view_3_tab0_114

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_114

statement ok
CREATE VIEW view_1_tab0_114 AS SELECT pk, col0 FROM tab0 WHERE col0 <= 850 OR col3 > 609 AND col3 <= 569

statement ok
CREATE VIEW view_2_tab0_114 AS SELECT pk, col0 FROM tab0 WHERE NOT (col0 <= 850 OR col3 > 609 AND col3 <= 569)

statement ok
CREATE VIEW view_3_tab0_114 AS SELECT pk FROM view_1_tab0_114

query II rowsort label-3700-1
SELECT pk, col0 FROM tab0 WHERE col0 <= 850 OR col3 > 609 AND col3 <= 569
----
172 values hashing to f754cec91bb1334b2597dd0d7f445a39

query II rowsort label-3700-2
SELECT pk, col0 FROM tab0 WHERE NOT (col0 <= 850 OR col3 > 609 AND col3 <= 569)
----
28 values hashing to c7325a750103cb62678d81d5b550b4b1

query II rowsort label-3700-1
SELECT pk, col0 FROM view_1_tab0_114
----
172 values hashing to f754cec91bb1334b2597dd0d7f445a39

query II rowsort label-3700-2
SELECT pk, col0 FROM view_2_tab0_114
----
28 values hashing to c7325a750103cb62678d81d5b550b4b1

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col0 <= 850 OR col3 > 609 AND col3 <= 569 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col0 <= 850 OR col3 > 609 AND col3 <= 569)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_114 UNION ALL SELECT pk, col0 FROM view_2_tab0_114
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col0 <= 850 OR col3 > 609 AND col3 <= 569 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col0 <= 850 OR col3 > 609 AND col3 <= 569)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_114 UNION SELECT pk, col0 FROM view_2_tab0_114
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-3700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col0 <= 850 OR col3 > 609 AND col3 <= 569 ) AS tab0_114
----
86 values hashing to 7e6d83ef58a9970a4a61bdd6dd3ad1e1

query I rowsort label-3700-3
SELECT * FROM view_3_tab0_114
----
86 values hashing to 7e6d83ef58a9970a4a61bdd6dd3ad1e1

query I rowsort label-3700-3
SELECT pk FROM tab0 WHERE col0 <= 850 OR col3 > 609 AND col3 <= 569
----
86 values hashing to 7e6d83ef58a9970a4a61bdd6dd3ad1e1

statement ok
DROP VIEW view_1_tab0_114

statement ok
DROP VIEW view_2_tab0_114

statement ok
DROP VIEW view_3_tab0_114

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_114') DROP VIEW view_1_tab1_114

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_114

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_114') DROP VIEW view_2_tab1_114

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_114

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_114') DROP VIEW view_3_tab1_114

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_114

statement ok
CREATE VIEW view_1_tab1_114 AS SELECT pk, col0 FROM tab1 WHERE col0 <= 850 OR col3 > 609 AND col3 <= 569

statement ok
CREATE VIEW view_2_tab1_114 AS SELECT pk, col0 FROM tab1 WHERE NOT (col0 <= 850 OR col3 > 609 AND col3 <= 569)

statement ok
CREATE VIEW view_3_tab1_114 AS SELECT pk FROM view_1_tab1_114

query II rowsort label-3700-1
SELECT pk, col0 FROM tab1 WHERE col0 <= 850 OR col3 > 609 AND col3 <= 569
----
172 values hashing to f754cec91bb1334b2597dd0d7f445a39

query II rowsort label-3700-2
SELECT pk, col0 FROM tab1 WHERE NOT (col0 <= 850 OR col3 > 609 AND col3 <= 569)
----
28 values hashing to c7325a750103cb62678d81d5b550b4b1

query II rowsort label-3700-1
SELECT pk, col0 FROM view_1_tab1_114
----
172 values hashing to f754cec91bb1334b2597dd0d7f445a39

query II rowsort label-3700-2
SELECT pk, col0 FROM view_2_tab1_114
----
28 values hashing to c7325a750103cb62678d81d5b550b4b1

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col0 <= 850 OR col3 > 609 AND col3 <= 569 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col0 <= 850 OR col3 > 609 AND col3 <= 569)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_114 UNION ALL SELECT pk, col0 FROM view_2_tab1_114
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col0 <= 850 OR col3 > 609 AND col3 <= 569 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col0 <= 850 OR col3 > 609 AND col3 <= 569)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_114 UNION SELECT pk, col0 FROM view_2_tab1_114
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-3700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col0 <= 850 OR col3 > 609 AND col3 <= 569 ) AS tab1_114
----
86 values hashing to 7e6d83ef58a9970a4a61bdd6dd3ad1e1

query I rowsort label-3700-3
SELECT * FROM view_3_tab1_114
----
86 values hashing to 7e6d83ef58a9970a4a61bdd6dd3ad1e1

query I rowsort label-3700-3
SELECT pk FROM tab1 WHERE col0 <= 850 OR col3 > 609 AND col3 <= 569
----
86 values hashing to 7e6d83ef58a9970a4a61bdd6dd3ad1e1

statement ok
DROP VIEW view_1_tab1_114

statement ok
DROP VIEW view_2_tab1_114

statement ok
DROP VIEW view_3_tab1_114

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_114') DROP VIEW view_1_tab2_114

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_114

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_114') DROP VIEW view_2_tab2_114

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_114

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_114') DROP VIEW view_3_tab2_114

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_114

statement ok
CREATE VIEW view_1_tab2_114 AS SELECT pk, col0 FROM tab2 WHERE col0 <= 850 OR col3 > 609 AND col3 <= 569

statement ok
CREATE VIEW view_2_tab2_114 AS SELECT pk, col0 FROM tab2 WHERE NOT (col0 <= 850 OR col3 > 609 AND col3 <= 569)

statement ok
CREATE VIEW view_3_tab2_114 AS SELECT pk FROM view_1_tab2_114

query II rowsort label-3700-1
SELECT pk, col0 FROM tab2 WHERE col0 <= 850 OR col3 > 609 AND col3 <= 569
----
172 values hashing to f754cec91bb1334b2597dd0d7f445a39

query II rowsort label-3700-2
SELECT pk, col0 FROM tab2 WHERE NOT (col0 <= 850 OR col3 > 609 AND col3 <= 569)
----
28 values hashing to c7325a750103cb62678d81d5b550b4b1

query II rowsort label-3700-1
SELECT pk, col0 FROM view_1_tab2_114
----
172 values hashing to f754cec91bb1334b2597dd0d7f445a39

query II rowsort label-3700-2
SELECT pk, col0 FROM view_2_tab2_114
----
28 values hashing to c7325a750103cb62678d81d5b550b4b1

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col0 <= 850 OR col3 > 609 AND col3 <= 569 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col0 <= 850 OR col3 > 609 AND col3 <= 569)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_114 UNION ALL SELECT pk, col0 FROM view_2_tab2_114
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col0 <= 850 OR col3 > 609 AND col3 <= 569 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col0 <= 850 OR col3 > 609 AND col3 <= 569)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_114 UNION SELECT pk, col0 FROM view_2_tab2_114
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-3700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col0 <= 850 OR col3 > 609 AND col3 <= 569 ) AS tab2_114
----
86 values hashing to 7e6d83ef58a9970a4a61bdd6dd3ad1e1

query I rowsort label-3700-3
SELECT * FROM view_3_tab2_114
----
86 values hashing to 7e6d83ef58a9970a4a61bdd6dd3ad1e1

query I rowsort label-3700-3
SELECT pk FROM tab2 WHERE col0 <= 850 OR col3 > 609 AND col3 <= 569
----
86 values hashing to 7e6d83ef58a9970a4a61bdd6dd3ad1e1

statement ok
DROP VIEW view_1_tab2_114

statement ok
DROP VIEW view_2_tab2_114

statement ok
DROP VIEW view_3_tab2_114

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_114') DROP VIEW view_1_tab3_114

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_114

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_114') DROP VIEW view_2_tab3_114

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_114

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_114') DROP VIEW view_3_tab3_114

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_114

statement ok
CREATE VIEW view_1_tab3_114 AS SELECT pk, col0 FROM tab3 WHERE col0 <= 850 OR col3 > 609 AND col3 <= 569

statement ok
CREATE VIEW view_2_tab3_114 AS SELECT pk, col0 FROM tab3 WHERE NOT (col0 <= 850 OR col3 > 609 AND col3 <= 569)

statement ok
CREATE VIEW view_3_tab3_114 AS SELECT pk FROM view_1_tab3_114

query II rowsort label-3700-1
SELECT pk, col0 FROM tab3 WHERE col0 <= 850 OR col3 > 609 AND col3 <= 569
----
172 values hashing to f754cec91bb1334b2597dd0d7f445a39

query II rowsort label-3700-2
SELECT pk, col0 FROM tab3 WHERE NOT (col0 <= 850 OR col3 > 609 AND col3 <= 569)
----
28 values hashing to c7325a750103cb62678d81d5b550b4b1

query II rowsort label-3700-1
SELECT pk, col0 FROM view_1_tab3_114
----
172 values hashing to f754cec91bb1334b2597dd0d7f445a39

query II rowsort label-3700-2
SELECT pk, col0 FROM view_2_tab3_114
----
28 values hashing to c7325a750103cb62678d81d5b550b4b1

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col0 <= 850 OR col3 > 609 AND col3 <= 569 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col0 <= 850 OR col3 > 609 AND col3 <= 569)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_114 UNION ALL SELECT pk, col0 FROM view_2_tab3_114
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col0 <= 850 OR col3 > 609 AND col3 <= 569 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col0 <= 850 OR col3 > 609 AND col3 <= 569)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_114 UNION SELECT pk, col0 FROM view_2_tab3_114
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-3700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col0 <= 850 OR col3 > 609 AND col3 <= 569 ) AS tab3_114
----
86 values hashing to 7e6d83ef58a9970a4a61bdd6dd3ad1e1

query I rowsort label-3700-3
SELECT * FROM view_3_tab3_114
----
86 values hashing to 7e6d83ef58a9970a4a61bdd6dd3ad1e1

query I rowsort label-3700-3
SELECT pk FROM tab3 WHERE col0 <= 850 OR col3 > 609 AND col3 <= 569
----
86 values hashing to 7e6d83ef58a9970a4a61bdd6dd3ad1e1

statement ok
DROP VIEW view_1_tab3_114

statement ok
DROP VIEW view_2_tab3_114

statement ok
DROP VIEW view_3_tab3_114

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_114') DROP VIEW view_1_tab4_114

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_114

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_114') DROP VIEW view_2_tab4_114

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_114

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_114') DROP VIEW view_3_tab4_114

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_114

statement ok
CREATE VIEW view_1_tab4_114 AS SELECT pk, col0 FROM tab4 WHERE col0 <= 850 OR col3 > 609 AND col3 <= 569

statement ok
CREATE VIEW view_2_tab4_114 AS SELECT pk, col0 FROM tab4 WHERE NOT (col0 <= 850 OR col3 > 609 AND col3 <= 569)

statement ok
CREATE VIEW view_3_tab4_114 AS SELECT pk FROM view_1_tab4_114

query II rowsort label-3700-1
SELECT pk, col0 FROM tab4 WHERE col0 <= 850 OR col3 > 609 AND col3 <= 569
----
172 values hashing to f754cec91bb1334b2597dd0d7f445a39

query II rowsort label-3700-2
SELECT pk, col0 FROM tab4 WHERE NOT (col0 <= 850 OR col3 > 609 AND col3 <= 569)
----
28 values hashing to c7325a750103cb62678d81d5b550b4b1

query II rowsort label-3700-1
SELECT pk, col0 FROM view_1_tab4_114
----
172 values hashing to f754cec91bb1334b2597dd0d7f445a39

query II rowsort label-3700-2
SELECT pk, col0 FROM view_2_tab4_114
----
28 values hashing to c7325a750103cb62678d81d5b550b4b1

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col0 <= 850 OR col3 > 609 AND col3 <= 569 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col0 <= 850 OR col3 > 609 AND col3 <= 569)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_114 UNION ALL SELECT pk, col0 FROM view_2_tab4_114
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col0 <= 850 OR col3 > 609 AND col3 <= 569 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col0 <= 850 OR col3 > 609 AND col3 <= 569)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_114 UNION SELECT pk, col0 FROM view_2_tab4_114
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-3700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col0 <= 850 OR col3 > 609 AND col3 <= 569 ) AS tab4_114
----
86 values hashing to 7e6d83ef58a9970a4a61bdd6dd3ad1e1

query I rowsort label-3700-3
SELECT * FROM view_3_tab4_114
----
86 values hashing to 7e6d83ef58a9970a4a61bdd6dd3ad1e1

query I rowsort label-3700-3
SELECT pk FROM tab4 WHERE col0 <= 850 OR col3 > 609 AND col3 <= 569
----
86 values hashing to 7e6d83ef58a9970a4a61bdd6dd3ad1e1

statement ok
DROP VIEW view_1_tab4_114

statement ok
DROP VIEW view_2_tab4_114

statement ok
DROP VIEW view_3_tab4_114

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_115') DROP VIEW view_1_tab0_115

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_115

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_115') DROP VIEW view_2_tab0_115

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_115

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_115') DROP VIEW view_3_tab0_115

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_115

statement ok
CREATE VIEW view_1_tab0_115 AS SELECT pk, col0 FROM tab0 WHERE (col3 < 709) OR (col0 < 335) AND (col4 >= 411.50) AND col0 > 726 OR col1 < 749.88 AND col4 BETWEEN 235.4 AND 516.56 AND (col0 >= 887 AND col0 <= 558 AND col3 < 683 AND ((col0 = 842)) OR col3 >= 991) AND col4 < 339.35 AND col4 < 957.20 OR col4 = 877.99 OR col3 <= 692 OR col4 > 804.41 OR col1 < 594.48 OR col3 = 520 AND ((((((col4 >= 36.72) OR col0 >= 280 AND col4 <= 637.38 OR col3 >= 884 AND (((col0 < 613 AND col1 = 176.22))))) OR (col3 > 163)))) AND col0 < 268 OR col3 > 966 AND col1 < 668.27 OR col4 <= 54.30

statement ok
CREATE VIEW view_2_tab0_115 AS SELECT pk, col0 FROM tab0 WHERE NOT ((col3 < 709) OR (col0 < 335) AND (col4 >= 411.50) AND col0 > 726 OR col1 < 749.88 AND col4 BETWEEN 235.4 AND 516.56 AND (col0 >= 887 AND col0 <= 558 AND col3 < 683 AND ((col0 = 842)) OR col3 >= 991) AND col4 < 339.35 AND col4 < 957.20 OR col4 = 877.99 OR col3 <= 692 OR col4 > 804.41 OR col1 < 594.48 OR col3 = 520 AND ((((((col4 >= 36.72) OR col0 >= 280 AND col4 <= 637.38 OR col3 >= 884 AND (((col0 < 613 AND col1 = 176.22))))) OR (col3 > 163)))) AND col0 < 268 OR col3 > 966 AND col1 < 668.27 OR col4 <= 54.30)

statement ok
CREATE VIEW view_3_tab0_115 AS SELECT pk FROM view_1_tab0_115

query II rowsort label-3800-1
SELECT pk, col0 FROM tab0 WHERE (col3 < 709) OR (col0 < 335) AND (col4 >= 411.50) AND col0 > 726 OR col1 < 749.88 AND col4 BETWEEN 235.4 AND 516.56 AND (col0 >= 887 AND col0 <= 558 AND col3 < 683 AND ((col0 = 842)) OR col3 >= 991) AND col4 < 339.35 AND col4 < 957.20 OR col4 = 877.99 OR col3 <= 692 OR col4 > 804.41 OR col1 < 594.48 OR col3 = 520 AND ((((((col4 >= 36.72) OR col0 >= 280 AND col4 <= 637.38 OR col3 >= 884 AND (((col0 < 613 AND col1 = 176.22))))) OR (col3 > 163)))) AND col0 < 268 OR col3 > 966 AND col1 < 668.27 OR col4 <= 54.30
----
180 values hashing to cd4c8318b7d0e484f01a18c7021d1b1f

query II rowsort label-3800-2
SELECT pk, col0 FROM tab0 WHERE NOT ((col3 < 709) OR (col0 < 335) AND (col4 >= 411.50) AND col0 > 726 OR col1 < 749.88 AND col4 BETWEEN 235.4 AND 516.56 AND (col0 >= 887 AND col0 <= 558 AND col3 < 683 AND ((col0 = 842)) OR col3 >= 991) AND col4 < 339.35 AND col4 < 957.20 OR col4 = 877.99 OR col3 <= 692 OR col4 > 804.41 OR col1 < 594.48 OR col3 = 520 AND ((((((col4 >= 36.72) OR col0 >= 280 AND col4 <= 637.38 OR col3 >= 884 AND (((col0 < 613 AND col1 = 176.22))))) OR (col3 > 163)))) AND col0 < 268 OR col3 > 966 AND col1 < 668.27 OR col4 <= 54.30)
----
20 values hashing to d8732b9e1ca3541b773a6b1f0823b245

query II rowsort label-3800-1
SELECT pk, col0 FROM view_1_tab0_115
----
180 values hashing to cd4c8318b7d0e484f01a18c7021d1b1f

query II rowsort label-3800-2
SELECT pk, col0 FROM view_2_tab0_115
----
20 values hashing to d8732b9e1ca3541b773a6b1f0823b245

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col3 < 709) OR (col0 < 335) AND (col4 >= 411.50) AND col0 > 726 OR col1 < 749.88 AND col4 BETWEEN 235.4 AND 516.56 AND (col0 >= 887 AND col0 <= 558 AND col3 < 683 AND ((col0 = 842)) OR col3 >= 991) AND col4 < 339.35 AND col4 < 957.20 OR col4 = 877.99 OR col3 <= 692 OR col4 > 804.41 OR col1 < 594.48 OR col3 = 520 AND ((((((col4 >= 36.72) OR col0 >= 280 AND col4 <= 637.38 OR col3 >= 884 AND (((col0 < 613 AND col1 = 176.22))))) OR (col3 > 163)))) AND col0 < 268 OR col3 > 966 AND col1 < 668.27 OR col4 <= 54.30 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT ((col3 < 709) OR (col0 < 335) AND (col4 >= 411.50) AND col0 > 726 OR col1 < 749.88 AND col4 BETWEEN 235.4 AND 516.56 AND (col0 >= 887 AND col0 <= 558 AND col3 < 683 AND ((col0 = 842)) OR col3 >= 991) AND col4 < 339.35 AND col4 < 957.20 OR col4 = 877.99 OR col3 <= 692 OR col4 > 804.41 OR col1 < 594.48 OR col3 = 520 AND ((((((col4 >= 36.72) OR col0 >= 280 AND col4 <= 637.38 OR col3 >= 884 AND (((col0 < 613 AND col1 = 176.22))))) OR (col3 > 163)))) AND col0 < 268 OR col3 > 966 AND col1 < 668.27 OR col4 <= 54.30)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_115 UNION ALL SELECT pk, col0 FROM view_2_tab0_115
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col3 < 709) OR (col0 < 335) AND (col4 >= 411.50) AND col0 > 726 OR col1 < 749.88 AND col4 BETWEEN 235.4 AND 516.56 AND (col0 >= 887 AND col0 <= 558 AND col3 < 683 AND ((col0 = 842)) OR col3 >= 991) AND col4 < 339.35 AND col4 < 957.20 OR col4 = 877.99 OR col3 <= 692 OR col4 > 804.41 OR col1 < 594.48 OR col3 = 520 AND ((((((col4 >= 36.72) OR col0 >= 280 AND col4 <= 637.38 OR col3 >= 884 AND (((col0 < 613 AND col1 = 176.22))))) OR (col3 > 163)))) AND col0 < 268 OR col3 > 966 AND col1 < 668.27 OR col4 <= 54.30 UNION SELECT pk, col0 FROM tab0 WHERE NOT ((col3 < 709) OR (col0 < 335) AND (col4 >= 411.50) AND col0 > 726 OR col1 < 749.88 AND col4 BETWEEN 235.4 AND 516.56 AND (col0 >= 887 AND col0 <= 558 AND col3 < 683 AND ((col0 = 842)) OR col3 >= 991) AND col4 < 339.35 AND col4 < 957.20 OR col4 = 877.99 OR col3 <= 692 OR col4 > 804.41 OR col1 < 594.48 OR col3 = 520 AND ((((((col4 >= 36.72) OR col0 >= 280 AND col4 <= 637.38 OR col3 >= 884 AND (((col0 < 613 AND col1 = 176.22))))) OR (col3 > 163)))) AND col0 < 268 OR col3 > 966 AND col1 < 668.27 OR col4 <= 54.30)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_115 UNION SELECT pk, col0 FROM view_2_tab0_115
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-3800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE (col3 < 709) OR (col0 < 335) AND (col4 >= 411.50) AND col0 > 726 OR col1 < 749.88 AND col4 BETWEEN 235.4 AND 516.56 AND (col0 >= 887 AND col0 <= 558 AND col3 < 683 AND ((col0 = 842)) OR col3 >= 991) AND col4 < 339.35 AND col4 < 957.20 OR col4 = 877.99 OR col3 <= 692 OR col4 > 804.41 OR col1 < 594.48 OR col3 = 520 AND ((((((col4 >= 36.72) OR col0 >= 280 AND col4 <= 637.38 OR col3 >= 884 AND (((col0 < 613 AND col1 = 176.22))))) OR (col3 > 163)))) AND col0 < 268 OR col3 > 966 AND col1 < 668.27 OR col4 <= 54.30 ) AS tab0_115
----
90 values hashing to fcea6b0a3aa954baf30fe063840c3d61

query I rowsort label-3800-3
SELECT * FROM view_3_tab0_115
----
90 values hashing to fcea6b0a3aa954baf30fe063840c3d61

query I rowsort label-3800-3
SELECT pk FROM tab0 WHERE (col3 < 709) OR (col0 < 335) AND (col4 >= 411.50) AND col0 > 726 OR col1 < 749.88 AND col4 BETWEEN 235.4 AND 516.56 AND (col0 >= 887 AND col0 <= 558 AND col3 < 683 AND ((col0 = 842)) OR col3 >= 991) AND col4 < 339.35 AND col4 < 957.20 OR col4 = 877.99 OR col3 <= 692 OR col4 > 804.41 OR col1 < 594.48 OR col3 = 520 AND ((((((col4 >= 36.72) OR col0 >= 280 AND col4 <= 637.38 OR col3 >= 884 AND (((col0 < 613 AND col1 = 176.22))))) OR (col3 > 163)))) AND col0 < 268 OR col3 > 966 AND col1 < 668.27 OR col4 <= 54.30
----
90 values hashing to fcea6b0a3aa954baf30fe063840c3d61

statement ok
DROP VIEW view_1_tab0_115

statement ok
DROP VIEW view_2_tab0_115

statement ok
DROP VIEW view_3_tab0_115

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_115') DROP VIEW view_1_tab1_115

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_115

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_115') DROP VIEW view_2_tab1_115

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_115

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_115') DROP VIEW view_3_tab1_115

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_115

statement ok
CREATE VIEW view_1_tab1_115 AS SELECT pk, col0 FROM tab1 WHERE (col3 < 709) OR (col0 < 335) AND (col4 >= 411.50) AND col0 > 726 OR col1 < 749.88 AND col4 BETWEEN 235.4 AND 516.56 AND (col0 >= 887 AND col0 <= 558 AND col3 < 683 AND ((col0 = 842)) OR col3 >= 991) AND col4 < 339.35 AND col4 < 957.20 OR col4 = 877.99 OR col3 <= 692 OR col4 > 804.41 OR col1 < 594.48 OR col3 = 520 AND ((((((col4 >= 36.72) OR col0 >= 280 AND col4 <= 637.38 OR col3 >= 884 AND (((col0 < 613 AND col1 = 176.22))))) OR (col3 > 163)))) AND col0 < 268 OR col3 > 966 AND col1 < 668.27 OR col4 <= 54.30

statement ok
CREATE VIEW view_2_tab1_115 AS SELECT pk, col0 FROM tab1 WHERE NOT ((col3 < 709) OR (col0 < 335) AND (col4 >= 411.50) AND col0 > 726 OR col1 < 749.88 AND col4 BETWEEN 235.4 AND 516.56 AND (col0 >= 887 AND col0 <= 558 AND col3 < 683 AND ((col0 = 842)) OR col3 >= 991) AND col4 < 339.35 AND col4 < 957.20 OR col4 = 877.99 OR col3 <= 692 OR col4 > 804.41 OR col1 < 594.48 OR col3 = 520 AND ((((((col4 >= 36.72) OR col0 >= 280 AND col4 <= 637.38 OR col3 >= 884 AND (((col0 < 613 AND col1 = 176.22))))) OR (col3 > 163)))) AND col0 < 268 OR col3 > 966 AND col1 < 668.27 OR col4 <= 54.30)

statement ok
CREATE VIEW view_3_tab1_115 AS SELECT pk FROM view_1_tab1_115

query II rowsort label-3800-1
SELECT pk, col0 FROM tab1 WHERE (col3 < 709) OR (col0 < 335) AND (col4 >= 411.50) AND col0 > 726 OR col1 < 749.88 AND col4 BETWEEN 235.4 AND 516.56 AND (col0 >= 887 AND col0 <= 558 AND col3 < 683 AND ((col0 = 842)) OR col3 >= 991) AND col4 < 339.35 AND col4 < 957.20 OR col4 = 877.99 OR col3 <= 692 OR col4 > 804.41 OR col1 < 594.48 OR col3 = 520 AND ((((((col4 >= 36.72) OR col0 >= 280 AND col4 <= 637.38 OR col3 >= 884 AND (((col0 < 613 AND col1 = 176.22))))) OR (col3 > 163)))) AND col0 < 268 OR col3 > 966 AND col1 < 668.27 OR col4 <= 54.30
----
180 values hashing to cd4c8318b7d0e484f01a18c7021d1b1f

query II rowsort label-3800-2
SELECT pk, col0 FROM tab1 WHERE NOT ((col3 < 709) OR (col0 < 335) AND (col4 >= 411.50) AND col0 > 726 OR col1 < 749.88 AND col4 BETWEEN 235.4 AND 516.56 AND (col0 >= 887 AND col0 <= 558 AND col3 < 683 AND ((col0 = 842)) OR col3 >= 991) AND col4 < 339.35 AND col4 < 957.20 OR col4 = 877.99 OR col3 <= 692 OR col4 > 804.41 OR col1 < 594.48 OR col3 = 520 AND ((((((col4 >= 36.72) OR col0 >= 280 AND col4 <= 637.38 OR col3 >= 884 AND (((col0 < 613 AND col1 = 176.22))))) OR (col3 > 163)))) AND col0 < 268 OR col3 > 966 AND col1 < 668.27 OR col4 <= 54.30)
----
20 values hashing to d8732b9e1ca3541b773a6b1f0823b245

query II rowsort label-3800-1
SELECT pk, col0 FROM view_1_tab1_115
----
180 values hashing to cd4c8318b7d0e484f01a18c7021d1b1f

query II rowsort label-3800-2
SELECT pk, col0 FROM view_2_tab1_115
----
20 values hashing to d8732b9e1ca3541b773a6b1f0823b245

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col3 < 709) OR (col0 < 335) AND (col4 >= 411.50) AND col0 > 726 OR col1 < 749.88 AND col4 BETWEEN 235.4 AND 516.56 AND (col0 >= 887 AND col0 <= 558 AND col3 < 683 AND ((col0 = 842)) OR col3 >= 991) AND col4 < 339.35 AND col4 < 957.20 OR col4 = 877.99 OR col3 <= 692 OR col4 > 804.41 OR col1 < 594.48 OR col3 = 520 AND ((((((col4 >= 36.72) OR col0 >= 280 AND col4 <= 637.38 OR col3 >= 884 AND (((col0 < 613 AND col1 = 176.22))))) OR (col3 > 163)))) AND col0 < 268 OR col3 > 966 AND col1 < 668.27 OR col4 <= 54.30 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT ((col3 < 709) OR (col0 < 335) AND (col4 >= 411.50) AND col0 > 726 OR col1 < 749.88 AND col4 BETWEEN 235.4 AND 516.56 AND (col0 >= 887 AND col0 <= 558 AND col3 < 683 AND ((col0 = 842)) OR col3 >= 991) AND col4 < 339.35 AND col4 < 957.20 OR col4 = 877.99 OR col3 <= 692 OR col4 > 804.41 OR col1 < 594.48 OR col3 = 520 AND ((((((col4 >= 36.72) OR col0 >= 280 AND col4 <= 637.38 OR col3 >= 884 AND (((col0 < 613 AND col1 = 176.22))))) OR (col3 > 163)))) AND col0 < 268 OR col3 > 966 AND col1 < 668.27 OR col4 <= 54.30)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_115 UNION ALL SELECT pk, col0 FROM view_2_tab1_115
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col3 < 709) OR (col0 < 335) AND (col4 >= 411.50) AND col0 > 726 OR col1 < 749.88 AND col4 BETWEEN 235.4 AND 516.56 AND (col0 >= 887 AND col0 <= 558 AND col3 < 683 AND ((col0 = 842)) OR col3 >= 991) AND col4 < 339.35 AND col4 < 957.20 OR col4 = 877.99 OR col3 <= 692 OR col4 > 804.41 OR col1 < 594.48 OR col3 = 520 AND ((((((col4 >= 36.72) OR col0 >= 280 AND col4 <= 637.38 OR col3 >= 884 AND (((col0 < 613 AND col1 = 176.22))))) OR (col3 > 163)))) AND col0 < 268 OR col3 > 966 AND col1 < 668.27 OR col4 <= 54.30 UNION SELECT pk, col0 FROM tab1 WHERE NOT ((col3 < 709) OR (col0 < 335) AND (col4 >= 411.50) AND col0 > 726 OR col1 < 749.88 AND col4 BETWEEN 235.4 AND 516.56 AND (col0 >= 887 AND col0 <= 558 AND col3 < 683 AND ((col0 = 842)) OR col3 >= 991) AND col4 < 339.35 AND col4 < 957.20 OR col4 = 877.99 OR col3 <= 692 OR col4 > 804.41 OR col1 < 594.48 OR col3 = 520 AND ((((((col4 >= 36.72) OR col0 >= 280 AND col4 <= 637.38 OR col3 >= 884 AND (((col0 < 613 AND col1 = 176.22))))) OR (col3 > 163)))) AND col0 < 268 OR col3 > 966 AND col1 < 668.27 OR col4 <= 54.30)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_115 UNION SELECT pk, col0 FROM view_2_tab1_115
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-3800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE (col3 < 709) OR (col0 < 335) AND (col4 >= 411.50) AND col0 > 726 OR col1 < 749.88 AND col4 BETWEEN 235.4 AND 516.56 AND (col0 >= 887 AND col0 <= 558 AND col3 < 683 AND ((col0 = 842)) OR col3 >= 991) AND col4 < 339.35 AND col4 < 957.20 OR col4 = 877.99 OR col3 <= 692 OR col4 > 804.41 OR col1 < 594.48 OR col3 = 520 AND ((((((col4 >= 36.72) OR col0 >= 280 AND col4 <= 637.38 OR col3 >= 884 AND (((col0 < 613 AND col1 = 176.22))))) OR (col3 > 163)))) AND col0 < 268 OR col3 > 966 AND col1 < 668.27 OR col4 <= 54.30 ) AS tab1_115
----
90 values hashing to fcea6b0a3aa954baf30fe063840c3d61

query I rowsort label-3800-3
SELECT * FROM view_3_tab1_115
----
90 values hashing to fcea6b0a3aa954baf30fe063840c3d61

query I rowsort label-3800-3
SELECT pk FROM tab1 WHERE (col3 < 709) OR (col0 < 335) AND (col4 >= 411.50) AND col0 > 726 OR col1 < 749.88 AND col4 BETWEEN 235.4 AND 516.56 AND (col0 >= 887 AND col0 <= 558 AND col3 < 683 AND ((col0 = 842)) OR col3 >= 991) AND col4 < 339.35 AND col4 < 957.20 OR col4 = 877.99 OR col3 <= 692 OR col4 > 804.41 OR col1 < 594.48 OR col3 = 520 AND ((((((col4 >= 36.72) OR col0 >= 280 AND col4 <= 637.38 OR col3 >= 884 AND (((col0 < 613 AND col1 = 176.22))))) OR (col3 > 163)))) AND col0 < 268 OR col3 > 966 AND col1 < 668.27 OR col4 <= 54.30
----
90 values hashing to fcea6b0a3aa954baf30fe063840c3d61

statement ok
DROP VIEW view_1_tab1_115

statement ok
DROP VIEW view_2_tab1_115

statement ok
DROP VIEW view_3_tab1_115

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_115') DROP VIEW view_1_tab2_115

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_115

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_115') DROP VIEW view_2_tab2_115

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_115

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_115') DROP VIEW view_3_tab2_115

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_115

statement ok
CREATE VIEW view_1_tab2_115 AS SELECT pk, col0 FROM tab2 WHERE (col3 < 709) OR (col0 < 335) AND (col4 >= 411.50) AND col0 > 726 OR col1 < 749.88 AND col4 BETWEEN 235.4 AND 516.56 AND (col0 >= 887 AND col0 <= 558 AND col3 < 683 AND ((col0 = 842)) OR col3 >= 991) AND col4 < 339.35 AND col4 < 957.20 OR col4 = 877.99 OR col3 <= 692 OR col4 > 804.41 OR col1 < 594.48 OR col3 = 520 AND ((((((col4 >= 36.72) OR col0 >= 280 AND col4 <= 637.38 OR col3 >= 884 AND (((col0 < 613 AND col1 = 176.22))))) OR (col3 > 163)))) AND col0 < 268 OR col3 > 966 AND col1 < 668.27 OR col4 <= 54.30

statement ok
CREATE VIEW view_2_tab2_115 AS SELECT pk, col0 FROM tab2 WHERE NOT ((col3 < 709) OR (col0 < 335) AND (col4 >= 411.50) AND col0 > 726 OR col1 < 749.88 AND col4 BETWEEN 235.4 AND 516.56 AND (col0 >= 887 AND col0 <= 558 AND col3 < 683 AND ((col0 = 842)) OR col3 >= 991) AND col4 < 339.35 AND col4 < 957.20 OR col4 = 877.99 OR col3 <= 692 OR col4 > 804.41 OR col1 < 594.48 OR col3 = 520 AND ((((((col4 >= 36.72) OR col0 >= 280 AND col4 <= 637.38 OR col3 >= 884 AND (((col0 < 613 AND col1 = 176.22))))) OR (col3 > 163)))) AND col0 < 268 OR col3 > 966 AND col1 < 668.27 OR col4 <= 54.30)

statement ok
CREATE VIEW view_3_tab2_115 AS SELECT pk FROM view_1_tab2_115

query II rowsort label-3800-1
SELECT pk, col0 FROM tab2 WHERE (col3 < 709) OR (col0 < 335) AND (col4 >= 411.50) AND col0 > 726 OR col1 < 749.88 AND col4 BETWEEN 235.4 AND 516.56 AND (col0 >= 887 AND col0 <= 558 AND col3 < 683 AND ((col0 = 842)) OR col3 >= 991) AND col4 < 339.35 AND col4 < 957.20 OR col4 = 877.99 OR col3 <= 692 OR col4 > 804.41 OR col1 < 594.48 OR col3 = 520 AND ((((((col4 >= 36.72) OR col0 >= 280 AND col4 <= 637.38 OR col3 >= 884 AND (((col0 < 613 AND col1 = 176.22))))) OR (col3 > 163)))) AND col0 < 268 OR col3 > 966 AND col1 < 668.27 OR col4 <= 54.30
----
180 values hashing to cd4c8318b7d0e484f01a18c7021d1b1f

query II rowsort label-3800-2
SELECT pk, col0 FROM tab2 WHERE NOT ((col3 < 709) OR (col0 < 335) AND (col4 >= 411.50) AND col0 > 726 OR col1 < 749.88 AND col4 BETWEEN 235.4 AND 516.56 AND (col0 >= 887 AND col0 <= 558 AND col3 < 683 AND ((col0 = 842)) OR col3 >= 991) AND col4 < 339.35 AND col4 < 957.20 OR col4 = 877.99 OR col3 <= 692 OR col4 > 804.41 OR col1 < 594.48 OR col3 = 520 AND ((((((col4 >= 36.72) OR col0 >= 280 AND col4 <= 637.38 OR col3 >= 884 AND (((col0 < 613 AND col1 = 176.22))))) OR (col3 > 163)))) AND col0 < 268 OR col3 > 966 AND col1 < 668.27 OR col4 <= 54.30)
----
20 values hashing to d8732b9e1ca3541b773a6b1f0823b245

query II rowsort label-3800-1
SELECT pk, col0 FROM view_1_tab2_115
----
180 values hashing to cd4c8318b7d0e484f01a18c7021d1b1f

query II rowsort label-3800-2
SELECT pk, col0 FROM view_2_tab2_115
----
20 values hashing to d8732b9e1ca3541b773a6b1f0823b245

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col3 < 709) OR (col0 < 335) AND (col4 >= 411.50) AND col0 > 726 OR col1 < 749.88 AND col4 BETWEEN 235.4 AND 516.56 AND (col0 >= 887 AND col0 <= 558 AND col3 < 683 AND ((col0 = 842)) OR col3 >= 991) AND col4 < 339.35 AND col4 < 957.20 OR col4 = 877.99 OR col3 <= 692 OR col4 > 804.41 OR col1 < 594.48 OR col3 = 520 AND ((((((col4 >= 36.72) OR col0 >= 280 AND col4 <= 637.38 OR col3 >= 884 AND (((col0 < 613 AND col1 = 176.22))))) OR (col3 > 163)))) AND col0 < 268 OR col3 > 966 AND col1 < 668.27 OR col4 <= 54.30 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT ((col3 < 709) OR (col0 < 335) AND (col4 >= 411.50) AND col0 > 726 OR col1 < 749.88 AND col4 BETWEEN 235.4 AND 516.56 AND (col0 >= 887 AND col0 <= 558 AND col3 < 683 AND ((col0 = 842)) OR col3 >= 991) AND col4 < 339.35 AND col4 < 957.20 OR col4 = 877.99 OR col3 <= 692 OR col4 > 804.41 OR col1 < 594.48 OR col3 = 520 AND ((((((col4 >= 36.72) OR col0 >= 280 AND col4 <= 637.38 OR col3 >= 884 AND (((col0 < 613 AND col1 = 176.22))))) OR (col3 > 163)))) AND col0 < 268 OR col3 > 966 AND col1 < 668.27 OR col4 <= 54.30)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_115 UNION ALL SELECT pk, col0 FROM view_2_tab2_115
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col3 < 709) OR (col0 < 335) AND (col4 >= 411.50) AND col0 > 726 OR col1 < 749.88 AND col4 BETWEEN 235.4 AND 516.56 AND (col0 >= 887 AND col0 <= 558 AND col3 < 683 AND ((col0 = 842)) OR col3 >= 991) AND col4 < 339.35 AND col4 < 957.20 OR col4 = 877.99 OR col3 <= 692 OR col4 > 804.41 OR col1 < 594.48 OR col3 = 520 AND ((((((col4 >= 36.72) OR col0 >= 280 AND col4 <= 637.38 OR col3 >= 884 AND (((col0 < 613 AND col1 = 176.22))))) OR (col3 > 163)))) AND col0 < 268 OR col3 > 966 AND col1 < 668.27 OR col4 <= 54.30 UNION SELECT pk, col0 FROM tab2 WHERE NOT ((col3 < 709) OR (col0 < 335) AND (col4 >= 411.50) AND col0 > 726 OR col1 < 749.88 AND col4 BETWEEN 235.4 AND 516.56 AND (col0 >= 887 AND col0 <= 558 AND col3 < 683 AND ((col0 = 842)) OR col3 >= 991) AND col4 < 339.35 AND col4 < 957.20 OR col4 = 877.99 OR col3 <= 692 OR col4 > 804.41 OR col1 < 594.48 OR col3 = 520 AND ((((((col4 >= 36.72) OR col0 >= 280 AND col4 <= 637.38 OR col3 >= 884 AND (((col0 < 613 AND col1 = 176.22))))) OR (col3 > 163)))) AND col0 < 268 OR col3 > 966 AND col1 < 668.27 OR col4 <= 54.30)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_115 UNION SELECT pk, col0 FROM view_2_tab2_115
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-3800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE (col3 < 709) OR (col0 < 335) AND (col4 >= 411.50) AND col0 > 726 OR col1 < 749.88 AND col4 BETWEEN 235.4 AND 516.56 AND (col0 >= 887 AND col0 <= 558 AND col3 < 683 AND ((col0 = 842)) OR col3 >= 991) AND col4 < 339.35 AND col4 < 957.20 OR col4 = 877.99 OR col3 <= 692 OR col4 > 804.41 OR col1 < 594.48 OR col3 = 520 AND ((((((col4 >= 36.72) OR col0 >= 280 AND col4 <= 637.38 OR col3 >= 884 AND (((col0 < 613 AND col1 = 176.22))))) OR (col3 > 163)))) AND col0 < 268 OR col3 > 966 AND col1 < 668.27 OR col4 <= 54.30 ) AS tab2_115
----
90 values hashing to fcea6b0a3aa954baf30fe063840c3d61

query I rowsort label-3800-3
SELECT * FROM view_3_tab2_115
----
90 values hashing to fcea6b0a3aa954baf30fe063840c3d61

query I rowsort label-3800-3
SELECT pk FROM tab2 WHERE (col3 < 709) OR (col0 < 335) AND (col4 >= 411.50) AND col0 > 726 OR col1 < 749.88 AND col4 BETWEEN 235.4 AND 516.56 AND (col0 >= 887 AND col0 <= 558 AND col3 < 683 AND ((col0 = 842)) OR col3 >= 991) AND col4 < 339.35 AND col4 < 957.20 OR col4 = 877.99 OR col3 <= 692 OR col4 > 804.41 OR col1 < 594.48 OR col3 = 520 AND ((((((col4 >= 36.72) OR col0 >= 280 AND col4 <= 637.38 OR col3 >= 884 AND (((col0 < 613 AND col1 = 176.22))))) OR (col3 > 163)))) AND col0 < 268 OR col3 > 966 AND col1 < 668.27 OR col4 <= 54.30
----
90 values hashing to fcea6b0a3aa954baf30fe063840c3d61

statement ok
DROP VIEW view_1_tab2_115

statement ok
DROP VIEW view_2_tab2_115

statement ok
DROP VIEW view_3_tab2_115

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_115') DROP VIEW view_1_tab3_115

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_115

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_115') DROP VIEW view_2_tab3_115

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_115

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_115') DROP VIEW view_3_tab3_115

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_115

statement ok
CREATE VIEW view_1_tab3_115 AS SELECT pk, col0 FROM tab3 WHERE (col3 < 709) OR (col0 < 335) AND (col4 >= 411.50) AND col0 > 726 OR col1 < 749.88 AND col4 BETWEEN 235.4 AND 516.56 AND (col0 >= 887 AND col0 <= 558 AND col3 < 683 AND ((col0 = 842)) OR col3 >= 991) AND col4 < 339.35 AND col4 < 957.20 OR col4 = 877.99 OR col3 <= 692 OR col4 > 804.41 OR col1 < 594.48 OR col3 = 520 AND ((((((col4 >= 36.72) OR col0 >= 280 AND col4 <= 637.38 OR col3 >= 884 AND (((col0 < 613 AND col1 = 176.22))))) OR (col3 > 163)))) AND col0 < 268 OR col3 > 966 AND col1 < 668.27 OR col4 <= 54.30

statement ok
CREATE VIEW view_2_tab3_115 AS SELECT pk, col0 FROM tab3 WHERE NOT ((col3 < 709) OR (col0 < 335) AND (col4 >= 411.50) AND col0 > 726 OR col1 < 749.88 AND col4 BETWEEN 235.4 AND 516.56 AND (col0 >= 887 AND col0 <= 558 AND col3 < 683 AND ((col0 = 842)) OR col3 >= 991) AND col4 < 339.35 AND col4 < 957.20 OR col4 = 877.99 OR col3 <= 692 OR col4 > 804.41 OR col1 < 594.48 OR col3 = 520 AND ((((((col4 >= 36.72) OR col0 >= 280 AND col4 <= 637.38 OR col3 >= 884 AND (((col0 < 613 AND col1 = 176.22))))) OR (col3 > 163)))) AND col0 < 268 OR col3 > 966 AND col1 < 668.27 OR col4 <= 54.30)

statement ok
CREATE VIEW view_3_tab3_115 AS SELECT pk FROM view_1_tab3_115

query II rowsort label-3800-1
SELECT pk, col0 FROM tab3 WHERE (col3 < 709) OR (col0 < 335) AND (col4 >= 411.50) AND col0 > 726 OR col1 < 749.88 AND col4 BETWEEN 235.4 AND 516.56 AND (col0 >= 887 AND col0 <= 558 AND col3 < 683 AND ((col0 = 842)) OR col3 >= 991) AND col4 < 339.35 AND col4 < 957.20 OR col4 = 877.99 OR col3 <= 692 OR col4 > 804.41 OR col1 < 594.48 OR col3 = 520 AND ((((((col4 >= 36.72) OR col0 >= 280 AND col4 <= 637.38 OR col3 >= 884 AND (((col0 < 613 AND col1 = 176.22))))) OR (col3 > 163)))) AND col0 < 268 OR col3 > 966 AND col1 < 668.27 OR col4 <= 54.30
----
180 values hashing to cd4c8318b7d0e484f01a18c7021d1b1f

query II rowsort label-3800-2
SELECT pk, col0 FROM tab3 WHERE NOT ((col3 < 709) OR (col0 < 335) AND (col4 >= 411.50) AND col0 > 726 OR col1 < 749.88 AND col4 BETWEEN 235.4 AND 516.56 AND (col0 >= 887 AND col0 <= 558 AND col3 < 683 AND ((col0 = 842)) OR col3 >= 991) AND col4 < 339.35 AND col4 < 957.20 OR col4 = 877.99 OR col3 <= 692 OR col4 > 804.41 OR col1 < 594.48 OR col3 = 520 AND ((((((col4 >= 36.72) OR col0 >= 280 AND col4 <= 637.38 OR col3 >= 884 AND (((col0 < 613 AND col1 = 176.22))))) OR (col3 > 163)))) AND col0 < 268 OR col3 > 966 AND col1 < 668.27 OR col4 <= 54.30)
----
20 values hashing to d8732b9e1ca3541b773a6b1f0823b245

query II rowsort label-3800-1
SELECT pk, col0 FROM view_1_tab3_115
----
180 values hashing to cd4c8318b7d0e484f01a18c7021d1b1f

query II rowsort label-3800-2
SELECT pk, col0 FROM view_2_tab3_115
----
20 values hashing to d8732b9e1ca3541b773a6b1f0823b245

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col3 < 709) OR (col0 < 335) AND (col4 >= 411.50) AND col0 > 726 OR col1 < 749.88 AND col4 BETWEEN 235.4 AND 516.56 AND (col0 >= 887 AND col0 <= 558 AND col3 < 683 AND ((col0 = 842)) OR col3 >= 991) AND col4 < 339.35 AND col4 < 957.20 OR col4 = 877.99 OR col3 <= 692 OR col4 > 804.41 OR col1 < 594.48 OR col3 = 520 AND ((((((col4 >= 36.72) OR col0 >= 280 AND col4 <= 637.38 OR col3 >= 884 AND (((col0 < 613 AND col1 = 176.22))))) OR (col3 > 163)))) AND col0 < 268 OR col3 > 966 AND col1 < 668.27 OR col4 <= 54.30 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT ((col3 < 709) OR (col0 < 335) AND (col4 >= 411.50) AND col0 > 726 OR col1 < 749.88 AND col4 BETWEEN 235.4 AND 516.56 AND (col0 >= 887 AND col0 <= 558 AND col3 < 683 AND ((col0 = 842)) OR col3 >= 991) AND col4 < 339.35 AND col4 < 957.20 OR col4 = 877.99 OR col3 <= 692 OR col4 > 804.41 OR col1 < 594.48 OR col3 = 520 AND ((((((col4 >= 36.72) OR col0 >= 280 AND col4 <= 637.38 OR col3 >= 884 AND (((col0 < 613 AND col1 = 176.22))))) OR (col3 > 163)))) AND col0 < 268 OR col3 > 966 AND col1 < 668.27 OR col4 <= 54.30)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_115 UNION ALL SELECT pk, col0 FROM view_2_tab3_115
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col3 < 709) OR (col0 < 335) AND (col4 >= 411.50) AND col0 > 726 OR col1 < 749.88 AND col4 BETWEEN 235.4 AND 516.56 AND (col0 >= 887 AND col0 <= 558 AND col3 < 683 AND ((col0 = 842)) OR col3 >= 991) AND col4 < 339.35 AND col4 < 957.20 OR col4 = 877.99 OR col3 <= 692 OR col4 > 804.41 OR col1 < 594.48 OR col3 = 520 AND ((((((col4 >= 36.72) OR col0 >= 280 AND col4 <= 637.38 OR col3 >= 884 AND (((col0 < 613 AND col1 = 176.22))))) OR (col3 > 163)))) AND col0 < 268 OR col3 > 966 AND col1 < 668.27 OR col4 <= 54.30 UNION SELECT pk, col0 FROM tab3 WHERE NOT ((col3 < 709) OR (col0 < 335) AND (col4 >= 411.50) AND col0 > 726 OR col1 < 749.88 AND col4 BETWEEN 235.4 AND 516.56 AND (col0 >= 887 AND col0 <= 558 AND col3 < 683 AND ((col0 = 842)) OR col3 >= 991) AND col4 < 339.35 AND col4 < 957.20 OR col4 = 877.99 OR col3 <= 692 OR col4 > 804.41 OR col1 < 594.48 OR col3 = 520 AND ((((((col4 >= 36.72) OR col0 >= 280 AND col4 <= 637.38 OR col3 >= 884 AND (((col0 < 613 AND col1 = 176.22))))) OR (col3 > 163)))) AND col0 < 268 OR col3 > 966 AND col1 < 668.27 OR col4 <= 54.30)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_115 UNION SELECT pk, col0 FROM view_2_tab3_115
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-3800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE (col3 < 709) OR (col0 < 335) AND (col4 >= 411.50) AND col0 > 726 OR col1 < 749.88 AND col4 BETWEEN 235.4 AND 516.56 AND (col0 >= 887 AND col0 <= 558 AND col3 < 683 AND ((col0 = 842)) OR col3 >= 991) AND col4 < 339.35 AND col4 < 957.20 OR col4 = 877.99 OR col3 <= 692 OR col4 > 804.41 OR col1 < 594.48 OR col3 = 520 AND ((((((col4 >= 36.72) OR col0 >= 280 AND col4 <= 637.38 OR col3 >= 884 AND (((col0 < 613 AND col1 = 176.22))))) OR (col3 > 163)))) AND col0 < 268 OR col3 > 966 AND col1 < 668.27 OR col4 <= 54.30 ) AS tab3_115
----
90 values hashing to fcea6b0a3aa954baf30fe063840c3d61

query I rowsort label-3800-3
SELECT * FROM view_3_tab3_115
----
90 values hashing to fcea6b0a3aa954baf30fe063840c3d61

query I rowsort label-3800-3
SELECT pk FROM tab3 WHERE (col3 < 709) OR (col0 < 335) AND (col4 >= 411.50) AND col0 > 726 OR col1 < 749.88 AND col4 BETWEEN 235.4 AND 516.56 AND (col0 >= 887 AND col0 <= 558 AND col3 < 683 AND ((col0 = 842)) OR col3 >= 991) AND col4 < 339.35 AND col4 < 957.20 OR col4 = 877.99 OR col3 <= 692 OR col4 > 804.41 OR col1 < 594.48 OR col3 = 520 AND ((((((col4 >= 36.72) OR col0 >= 280 AND col4 <= 637.38 OR col3 >= 884 AND (((col0 < 613 AND col1 = 176.22))))) OR (col3 > 163)))) AND col0 < 268 OR col3 > 966 AND col1 < 668.27 OR col4 <= 54.30
----
90 values hashing to fcea6b0a3aa954baf30fe063840c3d61

statement ok
DROP VIEW view_1_tab3_115

statement ok
DROP VIEW view_2_tab3_115

statement ok
DROP VIEW view_3_tab3_115

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_115') DROP VIEW view_1_tab4_115

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_115

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_115') DROP VIEW view_2_tab4_115

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_115

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_115') DROP VIEW view_3_tab4_115

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_115

statement ok
CREATE VIEW view_1_tab4_115 AS SELECT pk, col0 FROM tab4 WHERE (col3 < 709) OR (col0 < 335) AND (col4 >= 411.50) AND col0 > 726 OR col1 < 749.88 AND col4 BETWEEN 235.4 AND 516.56 AND (col0 >= 887 AND col0 <= 558 AND col3 < 683 AND ((col0 = 842)) OR col3 >= 991) AND col4 < 339.35 AND col4 < 957.20 OR col4 = 877.99 OR col3 <= 692 OR col4 > 804.41 OR col1 < 594.48 OR col3 = 520 AND ((((((col4 >= 36.72) OR col0 >= 280 AND col4 <= 637.38 OR col3 >= 884 AND (((col0 < 613 AND col1 = 176.22))))) OR (col3 > 163)))) AND col0 < 268 OR col3 > 966 AND col1 < 668.27 OR col4 <= 54.30

statement ok
CREATE VIEW view_2_tab4_115 AS SELECT pk, col0 FROM tab4 WHERE NOT ((col3 < 709) OR (col0 < 335) AND (col4 >= 411.50) AND col0 > 726 OR col1 < 749.88 AND col4 BETWEEN 235.4 AND 516.56 AND (col0 >= 887 AND col0 <= 558 AND col3 < 683 AND ((col0 = 842)) OR col3 >= 991) AND col4 < 339.35 AND col4 < 957.20 OR col4 = 877.99 OR col3 <= 692 OR col4 > 804.41 OR col1 < 594.48 OR col3 = 520 AND ((((((col4 >= 36.72) OR col0 >= 280 AND col4 <= 637.38 OR col3 >= 884 AND (((col0 < 613 AND col1 = 176.22))))) OR (col3 > 163)))) AND col0 < 268 OR col3 > 966 AND col1 < 668.27 OR col4 <= 54.30)

statement ok
CREATE VIEW view_3_tab4_115 AS SELECT pk FROM view_1_tab4_115

query II rowsort label-3800-1
SELECT pk, col0 FROM tab4 WHERE (col3 < 709) OR (col0 < 335) AND (col4 >= 411.50) AND col0 > 726 OR col1 < 749.88 AND col4 BETWEEN 235.4 AND 516.56 AND (col0 >= 887 AND col0 <= 558 AND col3 < 683 AND ((col0 = 842)) OR col3 >= 991) AND col4 < 339.35 AND col4 < 957.20 OR col4 = 877.99 OR col3 <= 692 OR col4 > 804.41 OR col1 < 594.48 OR col3 = 520 AND ((((((col4 >= 36.72) OR col0 >= 280 AND col4 <= 637.38 OR col3 >= 884 AND (((col0 < 613 AND col1 = 176.22))))) OR (col3 > 163)))) AND col0 < 268 OR col3 > 966 AND col1 < 668.27 OR col4 <= 54.30
----
180 values hashing to cd4c8318b7d0e484f01a18c7021d1b1f

query II rowsort label-3800-2
SELECT pk, col0 FROM tab4 WHERE NOT ((col3 < 709) OR (col0 < 335) AND (col4 >= 411.50) AND col0 > 726 OR col1 < 749.88 AND col4 BETWEEN 235.4 AND 516.56 AND (col0 >= 887 AND col0 <= 558 AND col3 < 683 AND ((col0 = 842)) OR col3 >= 991) AND col4 < 339.35 AND col4 < 957.20 OR col4 = 877.99 OR col3 <= 692 OR col4 > 804.41 OR col1 < 594.48 OR col3 = 520 AND ((((((col4 >= 36.72) OR col0 >= 280 AND col4 <= 637.38 OR col3 >= 884 AND (((col0 < 613 AND col1 = 176.22))))) OR (col3 > 163)))) AND col0 < 268 OR col3 > 966 AND col1 < 668.27 OR col4 <= 54.30)
----
20 values hashing to d8732b9e1ca3541b773a6b1f0823b245

query II rowsort label-3800-1
SELECT pk, col0 FROM view_1_tab4_115
----
180 values hashing to cd4c8318b7d0e484f01a18c7021d1b1f

query II rowsort label-3800-2
SELECT pk, col0 FROM view_2_tab4_115
----
20 values hashing to d8732b9e1ca3541b773a6b1f0823b245

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col3 < 709) OR (col0 < 335) AND (col4 >= 411.50) AND col0 > 726 OR col1 < 749.88 AND col4 BETWEEN 235.4 AND 516.56 AND (col0 >= 887 AND col0 <= 558 AND col3 < 683 AND ((col0 = 842)) OR col3 >= 991) AND col4 < 339.35 AND col4 < 957.20 OR col4 = 877.99 OR col3 <= 692 OR col4 > 804.41 OR col1 < 594.48 OR col3 = 520 AND ((((((col4 >= 36.72) OR col0 >= 280 AND col4 <= 637.38 OR col3 >= 884 AND (((col0 < 613 AND col1 = 176.22))))) OR (col3 > 163)))) AND col0 < 268 OR col3 > 966 AND col1 < 668.27 OR col4 <= 54.30 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT ((col3 < 709) OR (col0 < 335) AND (col4 >= 411.50) AND col0 > 726 OR col1 < 749.88 AND col4 BETWEEN 235.4 AND 516.56 AND (col0 >= 887 AND col0 <= 558 AND col3 < 683 AND ((col0 = 842)) OR col3 >= 991) AND col4 < 339.35 AND col4 < 957.20 OR col4 = 877.99 OR col3 <= 692 OR col4 > 804.41 OR col1 < 594.48 OR col3 = 520 AND ((((((col4 >= 36.72) OR col0 >= 280 AND col4 <= 637.38 OR col3 >= 884 AND (((col0 < 613 AND col1 = 176.22))))) OR (col3 > 163)))) AND col0 < 268 OR col3 > 966 AND col1 < 668.27 OR col4 <= 54.30)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_115 UNION ALL SELECT pk, col0 FROM view_2_tab4_115
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col3 < 709) OR (col0 < 335) AND (col4 >= 411.50) AND col0 > 726 OR col1 < 749.88 AND col4 BETWEEN 235.4 AND 516.56 AND (col0 >= 887 AND col0 <= 558 AND col3 < 683 AND ((col0 = 842)) OR col3 >= 991) AND col4 < 339.35 AND col4 < 957.20 OR col4 = 877.99 OR col3 <= 692 OR col4 > 804.41 OR col1 < 594.48 OR col3 = 520 AND ((((((col4 >= 36.72) OR col0 >= 280 AND col4 <= 637.38 OR col3 >= 884 AND (((col0 < 613 AND col1 = 176.22))))) OR (col3 > 163)))) AND col0 < 268 OR col3 > 966 AND col1 < 668.27 OR col4 <= 54.30 UNION SELECT pk, col0 FROM tab4 WHERE NOT ((col3 < 709) OR (col0 < 335) AND (col4 >= 411.50) AND col0 > 726 OR col1 < 749.88 AND col4 BETWEEN 235.4 AND 516.56 AND (col0 >= 887 AND col0 <= 558 AND col3 < 683 AND ((col0 = 842)) OR col3 >= 991) AND col4 < 339.35 AND col4 < 957.20 OR col4 = 877.99 OR col3 <= 692 OR col4 > 804.41 OR col1 < 594.48 OR col3 = 520 AND ((((((col4 >= 36.72) OR col0 >= 280 AND col4 <= 637.38 OR col3 >= 884 AND (((col0 < 613 AND col1 = 176.22))))) OR (col3 > 163)))) AND col0 < 268 OR col3 > 966 AND col1 < 668.27 OR col4 <= 54.30)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_115 UNION SELECT pk, col0 FROM view_2_tab4_115
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-3800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE (col3 < 709) OR (col0 < 335) AND (col4 >= 411.50) AND col0 > 726 OR col1 < 749.88 AND col4 BETWEEN 235.4 AND 516.56 AND (col0 >= 887 AND col0 <= 558 AND col3 < 683 AND ((col0 = 842)) OR col3 >= 991) AND col4 < 339.35 AND col4 < 957.20 OR col4 = 877.99 OR col3 <= 692 OR col4 > 804.41 OR col1 < 594.48 OR col3 = 520 AND ((((((col4 >= 36.72) OR col0 >= 280 AND col4 <= 637.38 OR col3 >= 884 AND (((col0 < 613 AND col1 = 176.22))))) OR (col3 > 163)))) AND col0 < 268 OR col3 > 966 AND col1 < 668.27 OR col4 <= 54.30 ) AS tab4_115
----
90 values hashing to fcea6b0a3aa954baf30fe063840c3d61

query I rowsort label-3800-3
SELECT * FROM view_3_tab4_115
----
90 values hashing to fcea6b0a3aa954baf30fe063840c3d61

query I rowsort label-3800-3
SELECT pk FROM tab4 WHERE (col3 < 709) OR (col0 < 335) AND (col4 >= 411.50) AND col0 > 726 OR col1 < 749.88 AND col4 BETWEEN 235.4 AND 516.56 AND (col0 >= 887 AND col0 <= 558 AND col3 < 683 AND ((col0 = 842)) OR col3 >= 991) AND col4 < 339.35 AND col4 < 957.20 OR col4 = 877.99 OR col3 <= 692 OR col4 > 804.41 OR col1 < 594.48 OR col3 = 520 AND ((((((col4 >= 36.72) OR col0 >= 280 AND col4 <= 637.38 OR col3 >= 884 AND (((col0 < 613 AND col1 = 176.22))))) OR (col3 > 163)))) AND col0 < 268 OR col3 > 966 AND col1 < 668.27 OR col4 <= 54.30
----
90 values hashing to fcea6b0a3aa954baf30fe063840c3d61

statement ok
DROP VIEW view_1_tab4_115

statement ok
DROP VIEW view_2_tab4_115

statement ok
DROP VIEW view_3_tab4_115

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_116') DROP VIEW view_1_tab0_116

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_116

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_116') DROP VIEW view_2_tab0_116

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_116

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_116') DROP VIEW view_3_tab0_116

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_116

statement ok
CREATE VIEW view_1_tab0_116 AS SELECT pk, col0 FROM tab0 WHERE col0 > 143

statement ok
CREATE VIEW view_2_tab0_116 AS SELECT pk, col0 FROM tab0 WHERE NOT (col0 > 143)

statement ok
CREATE VIEW view_3_tab0_116 AS SELECT pk FROM view_1_tab0_116

query II rowsort label-3900-1
SELECT pk, col0 FROM tab0 WHERE col0 > 143
----
174 values hashing to cf3e22bc48b210c05cb362b332d88d23

query II rowsort label-3900-2
SELECT pk, col0 FROM tab0 WHERE NOT (col0 > 143)
----
26 values hashing to 858e8e415bd2191864441313eb4a2d48

query II rowsort label-3900-1
SELECT pk, col0 FROM view_1_tab0_116
----
174 values hashing to cf3e22bc48b210c05cb362b332d88d23

query II rowsort label-3900-2
SELECT pk, col0 FROM view_2_tab0_116
----
26 values hashing to 858e8e415bd2191864441313eb4a2d48

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col0 > 143 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col0 > 143)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_116 UNION ALL SELECT pk, col0 FROM view_2_tab0_116
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col0 > 143 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col0 > 143)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_116 UNION SELECT pk, col0 FROM view_2_tab0_116
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-3900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col0 > 143 ) AS tab0_116
----
87 values hashing to f4d20c2c69dd9e7170050ac55a814aa8

query I rowsort label-3900-3
SELECT * FROM view_3_tab0_116
----
87 values hashing to f4d20c2c69dd9e7170050ac55a814aa8

query I rowsort label-3900-3
SELECT pk FROM tab0 WHERE col0 > 143
----
87 values hashing to f4d20c2c69dd9e7170050ac55a814aa8

statement ok
DROP VIEW view_1_tab0_116

statement ok
DROP VIEW view_2_tab0_116

statement ok
DROP VIEW view_3_tab0_116

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_116') DROP VIEW view_1_tab1_116

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_116

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_116') DROP VIEW view_2_tab1_116

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_116

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_116') DROP VIEW view_3_tab1_116

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_116

statement ok
CREATE VIEW view_1_tab1_116 AS SELECT pk, col0 FROM tab1 WHERE col0 > 143

statement ok
CREATE VIEW view_2_tab1_116 AS SELECT pk, col0 FROM tab1 WHERE NOT (col0 > 143)

statement ok
CREATE VIEW view_3_tab1_116 AS SELECT pk FROM view_1_tab1_116

query II rowsort label-3900-1
SELECT pk, col0 FROM tab1 WHERE col0 > 143
----
174 values hashing to cf3e22bc48b210c05cb362b332d88d23

query II rowsort label-3900-2
SELECT pk, col0 FROM tab1 WHERE NOT (col0 > 143)
----
26 values hashing to 858e8e415bd2191864441313eb4a2d48

query II rowsort label-3900-1
SELECT pk, col0 FROM view_1_tab1_116
----
174 values hashing to cf3e22bc48b210c05cb362b332d88d23

query II rowsort label-3900-2
SELECT pk, col0 FROM view_2_tab1_116
----
26 values hashing to 858e8e415bd2191864441313eb4a2d48

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col0 > 143 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col0 > 143)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_116 UNION ALL SELECT pk, col0 FROM view_2_tab1_116
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col0 > 143 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col0 > 143)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_116 UNION SELECT pk, col0 FROM view_2_tab1_116
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-3900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col0 > 143 ) AS tab1_116
----
87 values hashing to f4d20c2c69dd9e7170050ac55a814aa8

query I rowsort label-3900-3
SELECT * FROM view_3_tab1_116
----
87 values hashing to f4d20c2c69dd9e7170050ac55a814aa8

query I rowsort label-3900-3
SELECT pk FROM tab1 WHERE col0 > 143
----
87 values hashing to f4d20c2c69dd9e7170050ac55a814aa8

statement ok
DROP VIEW view_1_tab1_116

statement ok
DROP VIEW view_2_tab1_116

statement ok
DROP VIEW view_3_tab1_116

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_116') DROP VIEW view_1_tab2_116

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_116

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_116') DROP VIEW view_2_tab2_116

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_116

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_116') DROP VIEW view_3_tab2_116

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_116

statement ok
CREATE VIEW view_1_tab2_116 AS SELECT pk, col0 FROM tab2 WHERE col0 > 143

statement ok
CREATE VIEW view_2_tab2_116 AS SELECT pk, col0 FROM tab2 WHERE NOT (col0 > 143)

statement ok
CREATE VIEW view_3_tab2_116 AS SELECT pk FROM view_1_tab2_116

query II rowsort label-3900-1
SELECT pk, col0 FROM tab2 WHERE col0 > 143
----
174 values hashing to cf3e22bc48b210c05cb362b332d88d23

query II rowsort label-3900-2
SELECT pk, col0 FROM tab2 WHERE NOT (col0 > 143)
----
26 values hashing to 858e8e415bd2191864441313eb4a2d48

query II rowsort label-3900-1
SELECT pk, col0 FROM view_1_tab2_116
----
174 values hashing to cf3e22bc48b210c05cb362b332d88d23

query II rowsort label-3900-2
SELECT pk, col0 FROM view_2_tab2_116
----
26 values hashing to 858e8e415bd2191864441313eb4a2d48

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col0 > 143 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col0 > 143)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_116 UNION ALL SELECT pk, col0 FROM view_2_tab2_116
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col0 > 143 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col0 > 143)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_116 UNION SELECT pk, col0 FROM view_2_tab2_116
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-3900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col0 > 143 ) AS tab2_116
----
87 values hashing to f4d20c2c69dd9e7170050ac55a814aa8

query I rowsort label-3900-3
SELECT * FROM view_3_tab2_116
----
87 values hashing to f4d20c2c69dd9e7170050ac55a814aa8

query I rowsort label-3900-3
SELECT pk FROM tab2 WHERE col0 > 143
----
87 values hashing to f4d20c2c69dd9e7170050ac55a814aa8

statement ok
DROP VIEW view_1_tab2_116

statement ok
DROP VIEW view_2_tab2_116

statement ok
DROP VIEW view_3_tab2_116

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_116') DROP VIEW view_1_tab3_116

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_116

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_116') DROP VIEW view_2_tab3_116

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_116

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_116') DROP VIEW view_3_tab3_116

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_116

statement ok
CREATE VIEW view_1_tab3_116 AS SELECT pk, col0 FROM tab3 WHERE col0 > 143

statement ok
CREATE VIEW view_2_tab3_116 AS SELECT pk, col0 FROM tab3 WHERE NOT (col0 > 143)

statement ok
CREATE VIEW view_3_tab3_116 AS SELECT pk FROM view_1_tab3_116

query II rowsort label-3900-1
SELECT pk, col0 FROM tab3 WHERE col0 > 143
----
174 values hashing to cf3e22bc48b210c05cb362b332d88d23

query II rowsort label-3900-2
SELECT pk, col0 FROM tab3 WHERE NOT (col0 > 143)
----
26 values hashing to 858e8e415bd2191864441313eb4a2d48

query II rowsort label-3900-1
SELECT pk, col0 FROM view_1_tab3_116
----
174 values hashing to cf3e22bc48b210c05cb362b332d88d23

query II rowsort label-3900-2
SELECT pk, col0 FROM view_2_tab3_116
----
26 values hashing to 858e8e415bd2191864441313eb4a2d48

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col0 > 143 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col0 > 143)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_116 UNION ALL SELECT pk, col0 FROM view_2_tab3_116
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col0 > 143 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col0 > 143)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_116 UNION SELECT pk, col0 FROM view_2_tab3_116
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-3900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col0 > 143 ) AS tab3_116
----
87 values hashing to f4d20c2c69dd9e7170050ac55a814aa8

query I rowsort label-3900-3
SELECT * FROM view_3_tab3_116
----
87 values hashing to f4d20c2c69dd9e7170050ac55a814aa8

query I rowsort label-3900-3
SELECT pk FROM tab3 WHERE col0 > 143
----
87 values hashing to f4d20c2c69dd9e7170050ac55a814aa8

statement ok
DROP VIEW view_1_tab3_116

statement ok
DROP VIEW view_2_tab3_116

statement ok
DROP VIEW view_3_tab3_116

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_116') DROP VIEW view_1_tab4_116

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_116

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_116') DROP VIEW view_2_tab4_116

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_116

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_116') DROP VIEW view_3_tab4_116

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_116

statement ok
CREATE VIEW view_1_tab4_116 AS SELECT pk, col0 FROM tab4 WHERE col0 > 143

statement ok
CREATE VIEW view_2_tab4_116 AS SELECT pk, col0 FROM tab4 WHERE NOT (col0 > 143)

statement ok
CREATE VIEW view_3_tab4_116 AS SELECT pk FROM view_1_tab4_116

query II rowsort label-3900-1
SELECT pk, col0 FROM tab4 WHERE col0 > 143
----
174 values hashing to cf3e22bc48b210c05cb362b332d88d23

query II rowsort label-3900-2
SELECT pk, col0 FROM tab4 WHERE NOT (col0 > 143)
----
26 values hashing to 858e8e415bd2191864441313eb4a2d48

query II rowsort label-3900-1
SELECT pk, col0 FROM view_1_tab4_116
----
174 values hashing to cf3e22bc48b210c05cb362b332d88d23

query II rowsort label-3900-2
SELECT pk, col0 FROM view_2_tab4_116
----
26 values hashing to 858e8e415bd2191864441313eb4a2d48

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col0 > 143 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col0 > 143)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_116 UNION ALL SELECT pk, col0 FROM view_2_tab4_116
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col0 > 143 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col0 > 143)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_116 UNION SELECT pk, col0 FROM view_2_tab4_116
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-3900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col0 > 143 ) AS tab4_116
----
87 values hashing to f4d20c2c69dd9e7170050ac55a814aa8

query I rowsort label-3900-3
SELECT * FROM view_3_tab4_116
----
87 values hashing to f4d20c2c69dd9e7170050ac55a814aa8

query I rowsort label-3900-3
SELECT pk FROM tab4 WHERE col0 > 143
----
87 values hashing to f4d20c2c69dd9e7170050ac55a814aa8

statement ok
DROP VIEW view_1_tab4_116

statement ok
DROP VIEW view_2_tab4_116

statement ok
DROP VIEW view_3_tab4_116

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_117') DROP VIEW view_1_tab0_117

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_117

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_117') DROP VIEW view_2_tab0_117

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_117

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_117') DROP VIEW view_3_tab0_117

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_117

statement ok
CREATE VIEW view_1_tab0_117 AS SELECT pk, col0 FROM tab0 WHERE ((col3 < 151))

statement ok
CREATE VIEW view_2_tab0_117 AS SELECT pk, col0 FROM tab0 WHERE NOT (((col3 < 151)))

statement ok
CREATE VIEW view_3_tab0_117 AS SELECT pk FROM view_1_tab0_117

query II rowsort label-4000-1
SELECT pk, col0 FROM tab0 WHERE ((col3 < 151))
----
22 values hashing to 9658639e50b61bb8d34d6478f44b5849

query II rowsort label-4000-2
SELECT pk, col0 FROM tab0 WHERE NOT (((col3 < 151)))
----
178 values hashing to 1092f8735a5251bae7b6bdb5d2ac2054

query II rowsort label-4000-1
SELECT pk, col0 FROM view_1_tab0_117
----
22 values hashing to 9658639e50b61bb8d34d6478f44b5849

query II rowsort label-4000-2
SELECT pk, col0 FROM view_2_tab0_117
----
178 values hashing to 1092f8735a5251bae7b6bdb5d2ac2054

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE ((col3 < 151)) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (((col3 < 151)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_117 UNION ALL SELECT pk, col0 FROM view_2_tab0_117
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE ((col3 < 151)) UNION SELECT pk, col0 FROM tab0 WHERE NOT (((col3 < 151)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_117 UNION SELECT pk, col0 FROM view_2_tab0_117
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-4000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE ((col3 < 151)) ) AS tab0_117
----
11 values hashing to 159c582f33b030d95ac693c9cb0828a4

query I rowsort label-4000-3
SELECT * FROM view_3_tab0_117
----
11 values hashing to 159c582f33b030d95ac693c9cb0828a4

query I rowsort label-4000-3
SELECT pk FROM tab0 WHERE ((col3 < 151))
----
11 values hashing to 159c582f33b030d95ac693c9cb0828a4

statement ok
DROP VIEW view_1_tab0_117

statement ok
DROP VIEW view_2_tab0_117

statement ok
DROP VIEW view_3_tab0_117

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_117') DROP VIEW view_1_tab1_117

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_117

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_117') DROP VIEW view_2_tab1_117

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_117

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_117') DROP VIEW view_3_tab1_117

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_117

statement ok
CREATE VIEW view_1_tab1_117 AS SELECT pk, col0 FROM tab1 WHERE ((col3 < 151))

statement ok
CREATE VIEW view_2_tab1_117 AS SELECT pk, col0 FROM tab1 WHERE NOT (((col3 < 151)))

statement ok
CREATE VIEW view_3_tab1_117 AS SELECT pk FROM view_1_tab1_117

query II rowsort label-4000-1
SELECT pk, col0 FROM tab1 WHERE ((col3 < 151))
----
22 values hashing to 9658639e50b61bb8d34d6478f44b5849

query II rowsort label-4000-2
SELECT pk, col0 FROM tab1 WHERE NOT (((col3 < 151)))
----
178 values hashing to 1092f8735a5251bae7b6bdb5d2ac2054

query II rowsort label-4000-1
SELECT pk, col0 FROM view_1_tab1_117
----
22 values hashing to 9658639e50b61bb8d34d6478f44b5849

query II rowsort label-4000-2
SELECT pk, col0 FROM view_2_tab1_117
----
178 values hashing to 1092f8735a5251bae7b6bdb5d2ac2054

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE ((col3 < 151)) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (((col3 < 151)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_117 UNION ALL SELECT pk, col0 FROM view_2_tab1_117
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE ((col3 < 151)) UNION SELECT pk, col0 FROM tab1 WHERE NOT (((col3 < 151)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_117 UNION SELECT pk, col0 FROM view_2_tab1_117
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-4000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE ((col3 < 151)) ) AS tab1_117
----
11 values hashing to 159c582f33b030d95ac693c9cb0828a4

query I rowsort label-4000-3
SELECT * FROM view_3_tab1_117
----
11 values hashing to 159c582f33b030d95ac693c9cb0828a4

query I rowsort label-4000-3
SELECT pk FROM tab1 WHERE ((col3 < 151))
----
11 values hashing to 159c582f33b030d95ac693c9cb0828a4

statement ok
DROP VIEW view_1_tab1_117

statement ok
DROP VIEW view_2_tab1_117

statement ok
DROP VIEW view_3_tab1_117

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_117') DROP VIEW view_1_tab2_117

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_117

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_117') DROP VIEW view_2_tab2_117

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_117

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_117') DROP VIEW view_3_tab2_117

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_117

statement ok
CREATE VIEW view_1_tab2_117 AS SELECT pk, col0 FROM tab2 WHERE ((col3 < 151))

statement ok
CREATE VIEW view_2_tab2_117 AS SELECT pk, col0 FROM tab2 WHERE NOT (((col3 < 151)))

statement ok
CREATE VIEW view_3_tab2_117 AS SELECT pk FROM view_1_tab2_117

query II rowsort label-4000-1
SELECT pk, col0 FROM tab2 WHERE ((col3 < 151))
----
22 values hashing to 9658639e50b61bb8d34d6478f44b5849

query II rowsort label-4000-2
SELECT pk, col0 FROM tab2 WHERE NOT (((col3 < 151)))
----
178 values hashing to 1092f8735a5251bae7b6bdb5d2ac2054

query II rowsort label-4000-1
SELECT pk, col0 FROM view_1_tab2_117
----
22 values hashing to 9658639e50b61bb8d34d6478f44b5849

query II rowsort label-4000-2
SELECT pk, col0 FROM view_2_tab2_117
----
178 values hashing to 1092f8735a5251bae7b6bdb5d2ac2054

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE ((col3 < 151)) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (((col3 < 151)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_117 UNION ALL SELECT pk, col0 FROM view_2_tab2_117
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE ((col3 < 151)) UNION SELECT pk, col0 FROM tab2 WHERE NOT (((col3 < 151)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_117 UNION SELECT pk, col0 FROM view_2_tab2_117
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-4000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE ((col3 < 151)) ) AS tab2_117
----
11 values hashing to 159c582f33b030d95ac693c9cb0828a4

query I rowsort label-4000-3
SELECT * FROM view_3_tab2_117
----
11 values hashing to 159c582f33b030d95ac693c9cb0828a4

query I rowsort label-4000-3
SELECT pk FROM tab2 WHERE ((col3 < 151))
----
11 values hashing to 159c582f33b030d95ac693c9cb0828a4

statement ok
DROP VIEW view_1_tab2_117

statement ok
DROP VIEW view_2_tab2_117

statement ok
DROP VIEW view_3_tab2_117

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_117') DROP VIEW view_1_tab3_117

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_117

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_117') DROP VIEW view_2_tab3_117

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_117

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_117') DROP VIEW view_3_tab3_117

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_117

statement ok
CREATE VIEW view_1_tab3_117 AS SELECT pk, col0 FROM tab3 WHERE ((col3 < 151))

statement ok
CREATE VIEW view_2_tab3_117 AS SELECT pk, col0 FROM tab3 WHERE NOT (((col3 < 151)))

statement ok
CREATE VIEW view_3_tab3_117 AS SELECT pk FROM view_1_tab3_117

query II rowsort label-4000-1
SELECT pk, col0 FROM tab3 WHERE ((col3 < 151))
----
22 values hashing to 9658639e50b61bb8d34d6478f44b5849

query II rowsort label-4000-2
SELECT pk, col0 FROM tab3 WHERE NOT (((col3 < 151)))
----
178 values hashing to 1092f8735a5251bae7b6bdb5d2ac2054

query II rowsort label-4000-1
SELECT pk, col0 FROM view_1_tab3_117
----
22 values hashing to 9658639e50b61bb8d34d6478f44b5849

query II rowsort label-4000-2
SELECT pk, col0 FROM view_2_tab3_117
----
178 values hashing to 1092f8735a5251bae7b6bdb5d2ac2054

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE ((col3 < 151)) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (((col3 < 151)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_117 UNION ALL SELECT pk, col0 FROM view_2_tab3_117
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE ((col3 < 151)) UNION SELECT pk, col0 FROM tab3 WHERE NOT (((col3 < 151)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_117 UNION SELECT pk, col0 FROM view_2_tab3_117
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-4000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE ((col3 < 151)) ) AS tab3_117
----
11 values hashing to 159c582f33b030d95ac693c9cb0828a4

query I rowsort label-4000-3
SELECT * FROM view_3_tab3_117
----
11 values hashing to 159c582f33b030d95ac693c9cb0828a4

query I rowsort label-4000-3
SELECT pk FROM tab3 WHERE ((col3 < 151))
----
11 values hashing to 159c582f33b030d95ac693c9cb0828a4

statement ok
DROP VIEW view_1_tab3_117

statement ok
DROP VIEW view_2_tab3_117

statement ok
DROP VIEW view_3_tab3_117

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_117') DROP VIEW view_1_tab4_117

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_117

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_117') DROP VIEW view_2_tab4_117

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_117

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_117') DROP VIEW view_3_tab4_117

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_117

statement ok
CREATE VIEW view_1_tab4_117 AS SELECT pk, col0 FROM tab4 WHERE ((col3 < 151))

statement ok
CREATE VIEW view_2_tab4_117 AS SELECT pk, col0 FROM tab4 WHERE NOT (((col3 < 151)))

statement ok
CREATE VIEW view_3_tab4_117 AS SELECT pk FROM view_1_tab4_117

query II rowsort label-4000-1
SELECT pk, col0 FROM tab4 WHERE ((col3 < 151))
----
22 values hashing to 9658639e50b61bb8d34d6478f44b5849

query II rowsort label-4000-2
SELECT pk, col0 FROM tab4 WHERE NOT (((col3 < 151)))
----
178 values hashing to 1092f8735a5251bae7b6bdb5d2ac2054

query II rowsort label-4000-1
SELECT pk, col0 FROM view_1_tab4_117
----
22 values hashing to 9658639e50b61bb8d34d6478f44b5849

query II rowsort label-4000-2
SELECT pk, col0 FROM view_2_tab4_117
----
178 values hashing to 1092f8735a5251bae7b6bdb5d2ac2054

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE ((col3 < 151)) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (((col3 < 151)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_117 UNION ALL SELECT pk, col0 FROM view_2_tab4_117
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE ((col3 < 151)) UNION SELECT pk, col0 FROM tab4 WHERE NOT (((col3 < 151)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_117 UNION SELECT pk, col0 FROM view_2_tab4_117
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-4000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE ((col3 < 151)) ) AS tab4_117
----
11 values hashing to 159c582f33b030d95ac693c9cb0828a4

query I rowsort label-4000-3
SELECT * FROM view_3_tab4_117
----
11 values hashing to 159c582f33b030d95ac693c9cb0828a4

query I rowsort label-4000-3
SELECT pk FROM tab4 WHERE ((col3 < 151))
----
11 values hashing to 159c582f33b030d95ac693c9cb0828a4

statement ok
DROP VIEW view_1_tab4_117

statement ok
DROP VIEW view_2_tab4_117

statement ok
DROP VIEW view_3_tab4_117

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_118') DROP VIEW view_1_tab0_118

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_118

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_118') DROP VIEW view_2_tab0_118

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_118

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_118') DROP VIEW view_3_tab0_118

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_118

statement ok
CREATE VIEW view_1_tab0_118 AS SELECT pk, col0 FROM tab0 WHERE col0 > 697

statement ok
CREATE VIEW view_2_tab0_118 AS SELECT pk, col0 FROM tab0 WHERE NOT (col0 > 697)

statement ok
CREATE VIEW view_3_tab0_118 AS SELECT pk FROM view_1_tab0_118

query II rowsort label-4100-1
SELECT pk, col0 FROM tab0 WHERE col0 > 697
----
56 values hashing to 5c0b4a582993227d85d3e08ee6ec74a8

query II rowsort label-4100-2
SELECT pk, col0 FROM tab0 WHERE NOT (col0 > 697)
----
144 values hashing to 83a2ee58560aadc8903989c9fce21339

query II rowsort label-4100-1
SELECT pk, col0 FROM view_1_tab0_118
----
56 values hashing to 5c0b4a582993227d85d3e08ee6ec74a8

query II rowsort label-4100-2
SELECT pk, col0 FROM view_2_tab0_118
----
144 values hashing to 83a2ee58560aadc8903989c9fce21339

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col0 > 697 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col0 > 697)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_118 UNION ALL SELECT pk, col0 FROM view_2_tab0_118
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col0 > 697 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col0 > 697)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_118 UNION SELECT pk, col0 FROM view_2_tab0_118
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-4100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col0 > 697 ) AS tab0_118
----
28 values hashing to 1158411ddea503b1dcf1da18d695826d

query I rowsort label-4100-3
SELECT * FROM view_3_tab0_118
----
28 values hashing to 1158411ddea503b1dcf1da18d695826d

query I rowsort label-4100-3
SELECT pk FROM tab0 WHERE col0 > 697
----
28 values hashing to 1158411ddea503b1dcf1da18d695826d

statement ok
DROP VIEW view_1_tab0_118

statement ok
DROP VIEW view_2_tab0_118

statement ok
DROP VIEW view_3_tab0_118

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_118') DROP VIEW view_1_tab1_118

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_118

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_118') DROP VIEW view_2_tab1_118

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_118

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_118') DROP VIEW view_3_tab1_118

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_118

statement ok
CREATE VIEW view_1_tab1_118 AS SELECT pk, col0 FROM tab1 WHERE col0 > 697

statement ok
CREATE VIEW view_2_tab1_118 AS SELECT pk, col0 FROM tab1 WHERE NOT (col0 > 697)

statement ok
CREATE VIEW view_3_tab1_118 AS SELECT pk FROM view_1_tab1_118

query II rowsort label-4100-1
SELECT pk, col0 FROM tab1 WHERE col0 > 697
----
56 values hashing to 5c0b4a582993227d85d3e08ee6ec74a8

query II rowsort label-4100-2
SELECT pk, col0 FROM tab1 WHERE NOT (col0 > 697)
----
144 values hashing to 83a2ee58560aadc8903989c9fce21339

query II rowsort label-4100-1
SELECT pk, col0 FROM view_1_tab1_118
----
56 values hashing to 5c0b4a582993227d85d3e08ee6ec74a8

query II rowsort label-4100-2
SELECT pk, col0 FROM view_2_tab1_118
----
144 values hashing to 83a2ee58560aadc8903989c9fce21339

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col0 > 697 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col0 > 697)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_118 UNION ALL SELECT pk, col0 FROM view_2_tab1_118
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col0 > 697 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col0 > 697)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_118 UNION SELECT pk, col0 FROM view_2_tab1_118
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-4100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col0 > 697 ) AS tab1_118
----
28 values hashing to 1158411ddea503b1dcf1da18d695826d

query I rowsort label-4100-3
SELECT * FROM view_3_tab1_118
----
28 values hashing to 1158411ddea503b1dcf1da18d695826d

query I rowsort label-4100-3
SELECT pk FROM tab1 WHERE col0 > 697
----
28 values hashing to 1158411ddea503b1dcf1da18d695826d

statement ok
DROP VIEW view_1_tab1_118

statement ok
DROP VIEW view_2_tab1_118

statement ok
DROP VIEW view_3_tab1_118

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_118') DROP VIEW view_1_tab2_118

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_118

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_118') DROP VIEW view_2_tab2_118

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_118

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_118') DROP VIEW view_3_tab2_118

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_118

statement ok
CREATE VIEW view_1_tab2_118 AS SELECT pk, col0 FROM tab2 WHERE col0 > 697

statement ok
CREATE VIEW view_2_tab2_118 AS SELECT pk, col0 FROM tab2 WHERE NOT (col0 > 697)

statement ok
CREATE VIEW view_3_tab2_118 AS SELECT pk FROM view_1_tab2_118

query II rowsort label-4100-1
SELECT pk, col0 FROM tab2 WHERE col0 > 697
----
56 values hashing to 5c0b4a582993227d85d3e08ee6ec74a8

query II rowsort label-4100-2
SELECT pk, col0 FROM tab2 WHERE NOT (col0 > 697)
----
144 values hashing to 83a2ee58560aadc8903989c9fce21339

query II rowsort label-4100-1
SELECT pk, col0 FROM view_1_tab2_118
----
56 values hashing to 5c0b4a582993227d85d3e08ee6ec74a8

query II rowsort label-4100-2
SELECT pk, col0 FROM view_2_tab2_118
----
144 values hashing to 83a2ee58560aadc8903989c9fce21339

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col0 > 697 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col0 > 697)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_118 UNION ALL SELECT pk, col0 FROM view_2_tab2_118
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col0 > 697 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col0 > 697)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_118 UNION SELECT pk, col0 FROM view_2_tab2_118
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-4100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col0 > 697 ) AS tab2_118
----
28 values hashing to 1158411ddea503b1dcf1da18d695826d

query I rowsort label-4100-3
SELECT * FROM view_3_tab2_118
----
28 values hashing to 1158411ddea503b1dcf1da18d695826d

query I rowsort label-4100-3
SELECT pk FROM tab2 WHERE col0 > 697
----
28 values hashing to 1158411ddea503b1dcf1da18d695826d

statement ok
DROP VIEW view_1_tab2_118

statement ok
DROP VIEW view_2_tab2_118

statement ok
DROP VIEW view_3_tab2_118

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_118') DROP VIEW view_1_tab3_118

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_118

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_118') DROP VIEW view_2_tab3_118

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_118

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_118') DROP VIEW view_3_tab3_118

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_118

statement ok
CREATE VIEW view_1_tab3_118 AS SELECT pk, col0 FROM tab3 WHERE col0 > 697

statement ok
CREATE VIEW view_2_tab3_118 AS SELECT pk, col0 FROM tab3 WHERE NOT (col0 > 697)

statement ok
CREATE VIEW view_3_tab3_118 AS SELECT pk FROM view_1_tab3_118

query II rowsort label-4100-1
SELECT pk, col0 FROM tab3 WHERE col0 > 697
----
56 values hashing to 5c0b4a582993227d85d3e08ee6ec74a8

query II rowsort label-4100-2
SELECT pk, col0 FROM tab3 WHERE NOT (col0 > 697)
----
144 values hashing to 83a2ee58560aadc8903989c9fce21339

query II rowsort label-4100-1
SELECT pk, col0 FROM view_1_tab3_118
----
56 values hashing to 5c0b4a582993227d85d3e08ee6ec74a8

query II rowsort label-4100-2
SELECT pk, col0 FROM view_2_tab3_118
----
144 values hashing to 83a2ee58560aadc8903989c9fce21339

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col0 > 697 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col0 > 697)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_118 UNION ALL SELECT pk, col0 FROM view_2_tab3_118
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col0 > 697 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col0 > 697)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_118 UNION SELECT pk, col0 FROM view_2_tab3_118
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-4100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col0 > 697 ) AS tab3_118
----
28 values hashing to 1158411ddea503b1dcf1da18d695826d

query I rowsort label-4100-3
SELECT * FROM view_3_tab3_118
----
28 values hashing to 1158411ddea503b1dcf1da18d695826d

query I rowsort label-4100-3
SELECT pk FROM tab3 WHERE col0 > 697
----
28 values hashing to 1158411ddea503b1dcf1da18d695826d

statement ok
DROP VIEW view_1_tab3_118

statement ok
DROP VIEW view_2_tab3_118

statement ok
DROP VIEW view_3_tab3_118

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_118') DROP VIEW view_1_tab4_118

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_118

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_118') DROP VIEW view_2_tab4_118

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_118

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_118') DROP VIEW view_3_tab4_118

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_118

statement ok
CREATE VIEW view_1_tab4_118 AS SELECT pk, col0 FROM tab4 WHERE col0 > 697

statement ok
CREATE VIEW view_2_tab4_118 AS SELECT pk, col0 FROM tab4 WHERE NOT (col0 > 697)

statement ok
CREATE VIEW view_3_tab4_118 AS SELECT pk FROM view_1_tab4_118

query II rowsort label-4100-1
SELECT pk, col0 FROM tab4 WHERE col0 > 697
----
56 values hashing to 5c0b4a582993227d85d3e08ee6ec74a8

query II rowsort label-4100-2
SELECT pk, col0 FROM tab4 WHERE NOT (col0 > 697)
----
144 values hashing to 83a2ee58560aadc8903989c9fce21339

query II rowsort label-4100-1
SELECT pk, col0 FROM view_1_tab4_118
----
56 values hashing to 5c0b4a582993227d85d3e08ee6ec74a8

query II rowsort label-4100-2
SELECT pk, col0 FROM view_2_tab4_118
----
144 values hashing to 83a2ee58560aadc8903989c9fce21339

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col0 > 697 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col0 > 697)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_118 UNION ALL SELECT pk, col0 FROM view_2_tab4_118
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col0 > 697 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col0 > 697)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_118 UNION SELECT pk, col0 FROM view_2_tab4_118
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-4100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col0 > 697 ) AS tab4_118
----
28 values hashing to 1158411ddea503b1dcf1da18d695826d

query I rowsort label-4100-3
SELECT * FROM view_3_tab4_118
----
28 values hashing to 1158411ddea503b1dcf1da18d695826d

query I rowsort label-4100-3
SELECT pk FROM tab4 WHERE col0 > 697
----
28 values hashing to 1158411ddea503b1dcf1da18d695826d

statement ok
DROP VIEW view_1_tab4_118

statement ok
DROP VIEW view_2_tab4_118

statement ok
DROP VIEW view_3_tab4_118

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_119') DROP VIEW view_1_tab0_119

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_119

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_119') DROP VIEW view_2_tab0_119

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_119

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_119') DROP VIEW view_3_tab0_119

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_119

statement ok
CREATE VIEW view_1_tab0_119 AS SELECT pk, col0 FROM tab0 WHERE (col3 < 731 OR (col0 > 218 AND col0 > 858 AND col3 > 697 AND col1 IN (103.75,858.78) AND ((col0 <= 629))))

statement ok
CREATE VIEW view_2_tab0_119 AS SELECT pk, col0 FROM tab0 WHERE NOT ((col3 < 731 OR (col0 > 218 AND col0 > 858 AND col3 > 697 AND col1 IN (103.75,858.78) AND ((col0 <= 629)))))

statement ok
CREATE VIEW view_3_tab0_119 AS SELECT pk FROM view_1_tab0_119

query II rowsort label-4200-1
SELECT pk, col0 FROM tab0 WHERE (col3 < 731 OR (col0 > 218 AND col0 > 858 AND col3 > 697 AND col1 IN (103.75,858.78) AND ((col0 <= 629))))
----
154 values hashing to e4d4a5f89d58d74513d992b0e161f804

query II rowsort label-4200-2
SELECT pk, col0 FROM tab0 WHERE NOT ((col3 < 731 OR (col0 > 218 AND col0 > 858 AND col3 > 697 AND col1 IN (103.75,858.78) AND ((col0 <= 629)))))
----
46 values hashing to 4fa30ec8ba0014064a089419681c93a4

query II rowsort label-4200-1
SELECT pk, col0 FROM view_1_tab0_119
----
154 values hashing to e4d4a5f89d58d74513d992b0e161f804

query II rowsort label-4200-2
SELECT pk, col0 FROM view_2_tab0_119
----
46 values hashing to 4fa30ec8ba0014064a089419681c93a4

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col3 < 731 OR (col0 > 218 AND col0 > 858 AND col3 > 697 AND col1 IN (103.75,858.78) AND ((col0 <= 629)))) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT ((col3 < 731 OR (col0 > 218 AND col0 > 858 AND col3 > 697 AND col1 IN (103.75,858.78) AND ((col0 <= 629)))))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_119 UNION ALL SELECT pk, col0 FROM view_2_tab0_119
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col3 < 731 OR (col0 > 218 AND col0 > 858 AND col3 > 697 AND col1 IN (103.75,858.78) AND ((col0 <= 629)))) UNION SELECT pk, col0 FROM tab0 WHERE NOT ((col3 < 731 OR (col0 > 218 AND col0 > 858 AND col3 > 697 AND col1 IN (103.75,858.78) AND ((col0 <= 629)))))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_119 UNION SELECT pk, col0 FROM view_2_tab0_119
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-4200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE (col3 < 731 OR (col0 > 218 AND col0 > 858 AND col3 > 697 AND col1 IN (103.75,858.78) AND ((col0 <= 629)))) ) AS tab0_119
----
77 values hashing to d40f878ba822143dafeedb997ca66916

query I rowsort label-4200-3
SELECT * FROM view_3_tab0_119
----
77 values hashing to d40f878ba822143dafeedb997ca66916

query I rowsort label-4200-3
SELECT pk FROM tab0 WHERE (col3 < 731 OR (col0 > 218 AND col0 > 858 AND col3 > 697 AND col1 IN (103.75,858.78) AND ((col0 <= 629))))
----
77 values hashing to d40f878ba822143dafeedb997ca66916

statement ok
DROP VIEW view_1_tab0_119

statement ok
DROP VIEW view_2_tab0_119

statement ok
DROP VIEW view_3_tab0_119

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_119') DROP VIEW view_1_tab1_119

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_119

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_119') DROP VIEW view_2_tab1_119

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_119

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_119') DROP VIEW view_3_tab1_119

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_119

statement ok
CREATE VIEW view_1_tab1_119 AS SELECT pk, col0 FROM tab1 WHERE (col3 < 731 OR (col0 > 218 AND col0 > 858 AND col3 > 697 AND col1 IN (103.75,858.78) AND ((col0 <= 629))))

statement ok
CREATE VIEW view_2_tab1_119 AS SELECT pk, col0 FROM tab1 WHERE NOT ((col3 < 731 OR (col0 > 218 AND col0 > 858 AND col3 > 697 AND col1 IN (103.75,858.78) AND ((col0 <= 629)))))

statement ok
CREATE VIEW view_3_tab1_119 AS SELECT pk FROM view_1_tab1_119

query II rowsort label-4200-1
SELECT pk, col0 FROM tab1 WHERE (col3 < 731 OR (col0 > 218 AND col0 > 858 AND col3 > 697 AND col1 IN (103.75,858.78) AND ((col0 <= 629))))
----
154 values hashing to e4d4a5f89d58d74513d992b0e161f804

query II rowsort label-4200-2
SELECT pk, col0 FROM tab1 WHERE NOT ((col3 < 731 OR (col0 > 218 AND col0 > 858 AND col3 > 697 AND col1 IN (103.75,858.78) AND ((col0 <= 629)))))
----
46 values hashing to 4fa30ec8ba0014064a089419681c93a4

query II rowsort label-4200-1
SELECT pk, col0 FROM view_1_tab1_119
----
154 values hashing to e4d4a5f89d58d74513d992b0e161f804

query II rowsort label-4200-2
SELECT pk, col0 FROM view_2_tab1_119
----
46 values hashing to 4fa30ec8ba0014064a089419681c93a4

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col3 < 731 OR (col0 > 218 AND col0 > 858 AND col3 > 697 AND col1 IN (103.75,858.78) AND ((col0 <= 629)))) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT ((col3 < 731 OR (col0 > 218 AND col0 > 858 AND col3 > 697 AND col1 IN (103.75,858.78) AND ((col0 <= 629)))))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_119 UNION ALL SELECT pk, col0 FROM view_2_tab1_119
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col3 < 731 OR (col0 > 218 AND col0 > 858 AND col3 > 697 AND col1 IN (103.75,858.78) AND ((col0 <= 629)))) UNION SELECT pk, col0 FROM tab1 WHERE NOT ((col3 < 731 OR (col0 > 218 AND col0 > 858 AND col3 > 697 AND col1 IN (103.75,858.78) AND ((col0 <= 629)))))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_119 UNION SELECT pk, col0 FROM view_2_tab1_119
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-4200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE (col3 < 731 OR (col0 > 218 AND col0 > 858 AND col3 > 697 AND col1 IN (103.75,858.78) AND ((col0 <= 629)))) ) AS tab1_119
----
77 values hashing to d40f878ba822143dafeedb997ca66916

query I rowsort label-4200-3
SELECT * FROM view_3_tab1_119
----
77 values hashing to d40f878ba822143dafeedb997ca66916

query I rowsort label-4200-3
SELECT pk FROM tab1 WHERE (col3 < 731 OR (col0 > 218 AND col0 > 858 AND col3 > 697 AND col1 IN (103.75,858.78) AND ((col0 <= 629))))
----
77 values hashing to d40f878ba822143dafeedb997ca66916

statement ok
DROP VIEW view_1_tab1_119

statement ok
DROP VIEW view_2_tab1_119

statement ok
DROP VIEW view_3_tab1_119

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_119') DROP VIEW view_1_tab2_119

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_119

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_119') DROP VIEW view_2_tab2_119

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_119

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_119') DROP VIEW view_3_tab2_119

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_119

statement ok
CREATE VIEW view_1_tab2_119 AS SELECT pk, col0 FROM tab2 WHERE (col3 < 731 OR (col0 > 218 AND col0 > 858 AND col3 > 697 AND col1 IN (103.75,858.78) AND ((col0 <= 629))))

statement ok
CREATE VIEW view_2_tab2_119 AS SELECT pk, col0 FROM tab2 WHERE NOT ((col3 < 731 OR (col0 > 218 AND col0 > 858 AND col3 > 697 AND col1 IN (103.75,858.78) AND ((col0 <= 629)))))

statement ok
CREATE VIEW view_3_tab2_119 AS SELECT pk FROM view_1_tab2_119

query II rowsort label-4200-1
SELECT pk, col0 FROM tab2 WHERE (col3 < 731 OR (col0 > 218 AND col0 > 858 AND col3 > 697 AND col1 IN (103.75,858.78) AND ((col0 <= 629))))
----
154 values hashing to e4d4a5f89d58d74513d992b0e161f804

query II rowsort label-4200-2
SELECT pk, col0 FROM tab2 WHERE NOT ((col3 < 731 OR (col0 > 218 AND col0 > 858 AND col3 > 697 AND col1 IN (103.75,858.78) AND ((col0 <= 629)))))
----
46 values hashing to 4fa30ec8ba0014064a089419681c93a4

query II rowsort label-4200-1
SELECT pk, col0 FROM view_1_tab2_119
----
154 values hashing to e4d4a5f89d58d74513d992b0e161f804

query II rowsort label-4200-2
SELECT pk, col0 FROM view_2_tab2_119
----
46 values hashing to 4fa30ec8ba0014064a089419681c93a4

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col3 < 731 OR (col0 > 218 AND col0 > 858 AND col3 > 697 AND col1 IN (103.75,858.78) AND ((col0 <= 629)))) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT ((col3 < 731 OR (col0 > 218 AND col0 > 858 AND col3 > 697 AND col1 IN (103.75,858.78) AND ((col0 <= 629)))))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_119 UNION ALL SELECT pk, col0 FROM view_2_tab2_119
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col3 < 731 OR (col0 > 218 AND col0 > 858 AND col3 > 697 AND col1 IN (103.75,858.78) AND ((col0 <= 629)))) UNION SELECT pk, col0 FROM tab2 WHERE NOT ((col3 < 731 OR (col0 > 218 AND col0 > 858 AND col3 > 697 AND col1 IN (103.75,858.78) AND ((col0 <= 629)))))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_119 UNION SELECT pk, col0 FROM view_2_tab2_119
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-4200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE (col3 < 731 OR (col0 > 218 AND col0 > 858 AND col3 > 697 AND col1 IN (103.75,858.78) AND ((col0 <= 629)))) ) AS tab2_119
----
77 values hashing to d40f878ba822143dafeedb997ca66916

query I rowsort label-4200-3
SELECT * FROM view_3_tab2_119
----
77 values hashing to d40f878ba822143dafeedb997ca66916

query I rowsort label-4200-3
SELECT pk FROM tab2 WHERE (col3 < 731 OR (col0 > 218 AND col0 > 858 AND col3 > 697 AND col1 IN (103.75,858.78) AND ((col0 <= 629))))
----
77 values hashing to d40f878ba822143dafeedb997ca66916

statement ok
DROP VIEW view_1_tab2_119

statement ok
DROP VIEW view_2_tab2_119

statement ok
DROP VIEW view_3_tab2_119

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_119') DROP VIEW view_1_tab3_119

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_119

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_119') DROP VIEW view_2_tab3_119

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_119

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_119') DROP VIEW view_3_tab3_119

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_119

statement ok
CREATE VIEW view_1_tab3_119 AS SELECT pk, col0 FROM tab3 WHERE (col3 < 731 OR (col0 > 218 AND col0 > 858 AND col3 > 697 AND col1 IN (103.75,858.78) AND ((col0 <= 629))))

statement ok
CREATE VIEW view_2_tab3_119 AS SELECT pk, col0 FROM tab3 WHERE NOT ((col3 < 731 OR (col0 > 218 AND col0 > 858 AND col3 > 697 AND col1 IN (103.75,858.78) AND ((col0 <= 629)))))

statement ok
CREATE VIEW view_3_tab3_119 AS SELECT pk FROM view_1_tab3_119

query II rowsort label-4200-1
SELECT pk, col0 FROM tab3 WHERE (col3 < 731 OR (col0 > 218 AND col0 > 858 AND col3 > 697 AND col1 IN (103.75,858.78) AND ((col0 <= 629))))
----
154 values hashing to e4d4a5f89d58d74513d992b0e161f804

query II rowsort label-4200-2
SELECT pk, col0 FROM tab3 WHERE NOT ((col3 < 731 OR (col0 > 218 AND col0 > 858 AND col3 > 697 AND col1 IN (103.75,858.78) AND ((col0 <= 629)))))
----
46 values hashing to 4fa30ec8ba0014064a089419681c93a4

query II rowsort label-4200-1
SELECT pk, col0 FROM view_1_tab3_119
----
154 values hashing to e4d4a5f89d58d74513d992b0e161f804

query II rowsort label-4200-2
SELECT pk, col0 FROM view_2_tab3_119
----
46 values hashing to 4fa30ec8ba0014064a089419681c93a4

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col3 < 731 OR (col0 > 218 AND col0 > 858 AND col3 > 697 AND col1 IN (103.75,858.78) AND ((col0 <= 629)))) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT ((col3 < 731 OR (col0 > 218 AND col0 > 858 AND col3 > 697 AND col1 IN (103.75,858.78) AND ((col0 <= 629)))))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_119 UNION ALL SELECT pk, col0 FROM view_2_tab3_119
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col3 < 731 OR (col0 > 218 AND col0 > 858 AND col3 > 697 AND col1 IN (103.75,858.78) AND ((col0 <= 629)))) UNION SELECT pk, col0 FROM tab3 WHERE NOT ((col3 < 731 OR (col0 > 218 AND col0 > 858 AND col3 > 697 AND col1 IN (103.75,858.78) AND ((col0 <= 629)))))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_119 UNION SELECT pk, col0 FROM view_2_tab3_119
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-4200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE (col3 < 731 OR (col0 > 218 AND col0 > 858 AND col3 > 697 AND col1 IN (103.75,858.78) AND ((col0 <= 629)))) ) AS tab3_119
----
77 values hashing to d40f878ba822143dafeedb997ca66916

query I rowsort label-4200-3
SELECT * FROM view_3_tab3_119
----
77 values hashing to d40f878ba822143dafeedb997ca66916

query I rowsort label-4200-3
SELECT pk FROM tab3 WHERE (col3 < 731 OR (col0 > 218 AND col0 > 858 AND col3 > 697 AND col1 IN (103.75,858.78) AND ((col0 <= 629))))
----
77 values hashing to d40f878ba822143dafeedb997ca66916

statement ok
DROP VIEW view_1_tab3_119

statement ok
DROP VIEW view_2_tab3_119

statement ok
DROP VIEW view_3_tab3_119

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_119') DROP VIEW view_1_tab4_119

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_119

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_119') DROP VIEW view_2_tab4_119

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_119

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_119') DROP VIEW view_3_tab4_119

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_119

statement ok
CREATE VIEW view_1_tab4_119 AS SELECT pk, col0 FROM tab4 WHERE (col3 < 731 OR (col0 > 218 AND col0 > 858 AND col3 > 697 AND col1 IN (103.75,858.78) AND ((col0 <= 629))))

statement ok
CREATE VIEW view_2_tab4_119 AS SELECT pk, col0 FROM tab4 WHERE NOT ((col3 < 731 OR (col0 > 218 AND col0 > 858 AND col3 > 697 AND col1 IN (103.75,858.78) AND ((col0 <= 629)))))

statement ok
CREATE VIEW view_3_tab4_119 AS SELECT pk FROM view_1_tab4_119

query II rowsort label-4200-1
SELECT pk, col0 FROM tab4 WHERE (col3 < 731 OR (col0 > 218 AND col0 > 858 AND col3 > 697 AND col1 IN (103.75,858.78) AND ((col0 <= 629))))
----
154 values hashing to e4d4a5f89d58d74513d992b0e161f804

query II rowsort label-4200-2
SELECT pk, col0 FROM tab4 WHERE NOT ((col3 < 731 OR (col0 > 218 AND col0 > 858 AND col3 > 697 AND col1 IN (103.75,858.78) AND ((col0 <= 629)))))
----
46 values hashing to 4fa30ec8ba0014064a089419681c93a4

query II rowsort label-4200-1
SELECT pk, col0 FROM view_1_tab4_119
----
154 values hashing to e4d4a5f89d58d74513d992b0e161f804

query II rowsort label-4200-2
SELECT pk, col0 FROM view_2_tab4_119
----
46 values hashing to 4fa30ec8ba0014064a089419681c93a4

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col3 < 731 OR (col0 > 218 AND col0 > 858 AND col3 > 697 AND col1 IN (103.75,858.78) AND ((col0 <= 629)))) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT ((col3 < 731 OR (col0 > 218 AND col0 > 858 AND col3 > 697 AND col1 IN (103.75,858.78) AND ((col0 <= 629)))))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_119 UNION ALL SELECT pk, col0 FROM view_2_tab4_119
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col3 < 731 OR (col0 > 218 AND col0 > 858 AND col3 > 697 AND col1 IN (103.75,858.78) AND ((col0 <= 629)))) UNION SELECT pk, col0 FROM tab4 WHERE NOT ((col3 < 731 OR (col0 > 218 AND col0 > 858 AND col3 > 697 AND col1 IN (103.75,858.78) AND ((col0 <= 629)))))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_119 UNION SELECT pk, col0 FROM view_2_tab4_119
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-4200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE (col3 < 731 OR (col0 > 218 AND col0 > 858 AND col3 > 697 AND col1 IN (103.75,858.78) AND ((col0 <= 629)))) ) AS tab4_119
----
77 values hashing to d40f878ba822143dafeedb997ca66916

query I rowsort label-4200-3
SELECT * FROM view_3_tab4_119
----
77 values hashing to d40f878ba822143dafeedb997ca66916

query I rowsort label-4200-3
SELECT pk FROM tab4 WHERE (col3 < 731 OR (col0 > 218 AND col0 > 858 AND col3 > 697 AND col1 IN (103.75,858.78) AND ((col0 <= 629))))
----
77 values hashing to d40f878ba822143dafeedb997ca66916

statement ok
DROP VIEW view_1_tab4_119

statement ok
DROP VIEW view_2_tab4_119

statement ok
DROP VIEW view_3_tab4_119

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_120') DROP VIEW view_1_tab0_120

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_120

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_120') DROP VIEW view_2_tab0_120

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_120

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_120') DROP VIEW view_3_tab0_120

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_120

statement ok
CREATE VIEW view_1_tab0_120 AS SELECT pk, col0 FROM tab0 WHERE col0 > 556 OR col0 IN (910,813) AND col0 IS NULL AND (col3 < 122) OR (col0 <= 28 OR ((col0 IS NULL AND (col3 < 173)))) OR ((col1 < 16.8)) AND (col3 < 648) OR col3 > 696 OR col4 <= 275.34 AND col3 < 121 AND ((((col0 > 87))) AND col4 > 277.56) AND col0 >= 235

statement ok
CREATE VIEW view_2_tab0_120 AS SELECT pk, col0 FROM tab0 WHERE NOT (col0 > 556 OR col0 IN (910,813) AND col0 IS NULL AND (col3 < 122) OR (col0 <= 28 OR ((col0 IS NULL AND (col3 < 173)))) OR ((col1 < 16.8)) AND (col3 < 648) OR col3 > 696 OR col4 <= 275.34 AND col3 < 121 AND ((((col0 > 87))) AND col4 > 277.56) AND col0 >= 235)

statement ok
CREATE VIEW view_3_tab0_120 AS SELECT pk FROM view_1_tab0_120

query II rowsort label-4300-1
SELECT pk, col0 FROM tab0 WHERE col0 > 556 OR col0 IN (910,813) AND col0 IS NULL AND (col3 < 122) OR (col0 <= 28 OR ((col0 IS NULL AND (col3 < 173)))) OR ((col1 < 16.8)) AND (col3 < 648) OR col3 > 696 OR col4 <= 275.34 AND col3 < 121 AND ((((col0 > 87))) AND col4 > 277.56) AND col0 >= 235
----
122 values hashing to fb51f7af10e8b214d8bee6e96565e471

query II rowsort label-4300-2
SELECT pk, col0 FROM tab0 WHERE NOT (col0 > 556 OR col0 IN (910,813) AND col0 IS NULL AND (col3 < 122) OR (col0 <= 28 OR ((col0 IS NULL AND (col3 < 173)))) OR ((col1 < 16.8)) AND (col3 < 648) OR col3 > 696 OR col4 <= 275.34 AND col3 < 121 AND ((((col0 > 87))) AND col4 > 277.56) AND col0 >= 235)
----
78 values hashing to f6d8e74e55abb43b55aef4b1ec43d2eb

query II rowsort label-4300-1
SELECT pk, col0 FROM view_1_tab0_120
----
122 values hashing to fb51f7af10e8b214d8bee6e96565e471

query II rowsort label-4300-2
SELECT pk, col0 FROM view_2_tab0_120
----
78 values hashing to f6d8e74e55abb43b55aef4b1ec43d2eb

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col0 > 556 OR col0 IN (910,813) AND col0 IS NULL AND (col3 < 122) OR (col0 <= 28 OR ((col0 IS NULL AND (col3 < 173)))) OR ((col1 < 16.8)) AND (col3 < 648) OR col3 > 696 OR col4 <= 275.34 AND col3 < 121 AND ((((col0 > 87))) AND col4 > 277.56) AND col0 >= 235 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col0 > 556 OR col0 IN (910,813) AND col0 IS NULL AND (col3 < 122) OR (col0 <= 28 OR ((col0 IS NULL AND (col3 < 173)))) OR ((col1 < 16.8)) AND (col3 < 648) OR col3 > 696 OR col4 <= 275.34 AND col3 < 121 AND ((((col0 > 87))) AND col4 > 277.56) AND col0 >= 235)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_120 UNION ALL SELECT pk, col0 FROM view_2_tab0_120
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col0 > 556 OR col0 IN (910,813) AND col0 IS NULL AND (col3 < 122) OR (col0 <= 28 OR ((col0 IS NULL AND (col3 < 173)))) OR ((col1 < 16.8)) AND (col3 < 648) OR col3 > 696 OR col4 <= 275.34 AND col3 < 121 AND ((((col0 > 87))) AND col4 > 277.56) AND col0 >= 235 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col0 > 556 OR col0 IN (910,813) AND col0 IS NULL AND (col3 < 122) OR (col0 <= 28 OR ((col0 IS NULL AND (col3 < 173)))) OR ((col1 < 16.8)) AND (col3 < 648) OR col3 > 696 OR col4 <= 275.34 AND col3 < 121 AND ((((col0 > 87))) AND col4 > 277.56) AND col0 >= 235)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_120 UNION SELECT pk, col0 FROM view_2_tab0_120
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-4300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col0 > 556 OR col0 IN (910,813) AND col0 IS NULL AND (col3 < 122) OR (col0 <= 28 OR ((col0 IS NULL AND (col3 < 173)))) OR ((col1 < 16.8)) AND (col3 < 648) OR col3 > 696 OR col4 <= 275.34 AND col3 < 121 AND ((((col0 > 87))) AND col4 > 277.56) AND col0 >= 235 ) AS tab0_120
----
61 values hashing to 12f835fc26533ad56f69059c549b8f91

query I rowsort label-4300-3
SELECT * FROM view_3_tab0_120
----
61 values hashing to 12f835fc26533ad56f69059c549b8f91

query I rowsort label-4300-3
SELECT pk FROM tab0 WHERE col0 > 556 OR col0 IN (910,813) AND col0 IS NULL AND (col3 < 122) OR (col0 <= 28 OR ((col0 IS NULL AND (col3 < 173)))) OR ((col1 < 16.8)) AND (col3 < 648) OR col3 > 696 OR col4 <= 275.34 AND col3 < 121 AND ((((col0 > 87))) AND col4 > 277.56) AND col0 >= 235
----
61 values hashing to 12f835fc26533ad56f69059c549b8f91

statement ok
DROP VIEW view_1_tab0_120

statement ok
DROP VIEW view_2_tab0_120

statement ok
DROP VIEW view_3_tab0_120

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_120') DROP VIEW view_1_tab1_120

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_120

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_120') DROP VIEW view_2_tab1_120

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_120

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_120') DROP VIEW view_3_tab1_120

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_120

statement ok
CREATE VIEW view_1_tab1_120 AS SELECT pk, col0 FROM tab1 WHERE col0 > 556 OR col0 IN (910,813) AND col0 IS NULL AND (col3 < 122) OR (col0 <= 28 OR ((col0 IS NULL AND (col3 < 173)))) OR ((col1 < 16.8)) AND (col3 < 648) OR col3 > 696 OR col4 <= 275.34 AND col3 < 121 AND ((((col0 > 87))) AND col4 > 277.56) AND col0 >= 235

statement ok
CREATE VIEW view_2_tab1_120 AS SELECT pk, col0 FROM tab1 WHERE NOT (col0 > 556 OR col0 IN (910,813) AND col0 IS NULL AND (col3 < 122) OR (col0 <= 28 OR ((col0 IS NULL AND (col3 < 173)))) OR ((col1 < 16.8)) AND (col3 < 648) OR col3 > 696 OR col4 <= 275.34 AND col3 < 121 AND ((((col0 > 87))) AND col4 > 277.56) AND col0 >= 235)

statement ok
CREATE VIEW view_3_tab1_120 AS SELECT pk FROM view_1_tab1_120

query II rowsort label-4300-1
SELECT pk, col0 FROM tab1 WHERE col0 > 556 OR col0 IN (910,813) AND col0 IS NULL AND (col3 < 122) OR (col0 <= 28 OR ((col0 IS NULL AND (col3 < 173)))) OR ((col1 < 16.8)) AND (col3 < 648) OR col3 > 696 OR col4 <= 275.34 AND col3 < 121 AND ((((col0 > 87))) AND col4 > 277.56) AND col0 >= 235
----
122 values hashing to fb51f7af10e8b214d8bee6e96565e471

query II rowsort label-4300-2
SELECT pk, col0 FROM tab1 WHERE NOT (col0 > 556 OR col0 IN (910,813) AND col0 IS NULL AND (col3 < 122) OR (col0 <= 28 OR ((col0 IS NULL AND (col3 < 173)))) OR ((col1 < 16.8)) AND (col3 < 648) OR col3 > 696 OR col4 <= 275.34 AND col3 < 121 AND ((((col0 > 87))) AND col4 > 277.56) AND col0 >= 235)
----
78 values hashing to f6d8e74e55abb43b55aef4b1ec43d2eb

query II rowsort label-4300-1
SELECT pk, col0 FROM view_1_tab1_120
----
122 values hashing to fb51f7af10e8b214d8bee6e96565e471

query II rowsort label-4300-2
SELECT pk, col0 FROM view_2_tab1_120
----
78 values hashing to f6d8e74e55abb43b55aef4b1ec43d2eb

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col0 > 556 OR col0 IN (910,813) AND col0 IS NULL AND (col3 < 122) OR (col0 <= 28 OR ((col0 IS NULL AND (col3 < 173)))) OR ((col1 < 16.8)) AND (col3 < 648) OR col3 > 696 OR col4 <= 275.34 AND col3 < 121 AND ((((col0 > 87))) AND col4 > 277.56) AND col0 >= 235 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col0 > 556 OR col0 IN (910,813) AND col0 IS NULL AND (col3 < 122) OR (col0 <= 28 OR ((col0 IS NULL AND (col3 < 173)))) OR ((col1 < 16.8)) AND (col3 < 648) OR col3 > 696 OR col4 <= 275.34 AND col3 < 121 AND ((((col0 > 87))) AND col4 > 277.56) AND col0 >= 235)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_120 UNION ALL SELECT pk, col0 FROM view_2_tab1_120
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col0 > 556 OR col0 IN (910,813) AND col0 IS NULL AND (col3 < 122) OR (col0 <= 28 OR ((col0 IS NULL AND (col3 < 173)))) OR ((col1 < 16.8)) AND (col3 < 648) OR col3 > 696 OR col4 <= 275.34 AND col3 < 121 AND ((((col0 > 87))) AND col4 > 277.56) AND col0 >= 235 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col0 > 556 OR col0 IN (910,813) AND col0 IS NULL AND (col3 < 122) OR (col0 <= 28 OR ((col0 IS NULL AND (col3 < 173)))) OR ((col1 < 16.8)) AND (col3 < 648) OR col3 > 696 OR col4 <= 275.34 AND col3 < 121 AND ((((col0 > 87))) AND col4 > 277.56) AND col0 >= 235)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_120 UNION SELECT pk, col0 FROM view_2_tab1_120
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-4300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col0 > 556 OR col0 IN (910,813) AND col0 IS NULL AND (col3 < 122) OR (col0 <= 28 OR ((col0 IS NULL AND (col3 < 173)))) OR ((col1 < 16.8)) AND (col3 < 648) OR col3 > 696 OR col4 <= 275.34 AND col3 < 121 AND ((((col0 > 87))) AND col4 > 277.56) AND col0 >= 235 ) AS tab1_120
----
61 values hashing to 12f835fc26533ad56f69059c549b8f91

query I rowsort label-4300-3
SELECT * FROM view_3_tab1_120
----
61 values hashing to 12f835fc26533ad56f69059c549b8f91

query I rowsort label-4300-3
SELECT pk FROM tab1 WHERE col0 > 556 OR col0 IN (910,813) AND col0 IS NULL AND (col3 < 122) OR (col0 <= 28 OR ((col0 IS NULL AND (col3 < 173)))) OR ((col1 < 16.8)) AND (col3 < 648) OR col3 > 696 OR col4 <= 275.34 AND col3 < 121 AND ((((col0 > 87))) AND col4 > 277.56) AND col0 >= 235
----
61 values hashing to 12f835fc26533ad56f69059c549b8f91

statement ok
DROP VIEW view_1_tab1_120

statement ok
DROP VIEW view_2_tab1_120

statement ok
DROP VIEW view_3_tab1_120

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_120') DROP VIEW view_1_tab2_120

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_120

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_120') DROP VIEW view_2_tab2_120

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_120

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_120') DROP VIEW view_3_tab2_120

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_120

statement ok
CREATE VIEW view_1_tab2_120 AS SELECT pk, col0 FROM tab2 WHERE col0 > 556 OR col0 IN (910,813) AND col0 IS NULL AND (col3 < 122) OR (col0 <= 28 OR ((col0 IS NULL AND (col3 < 173)))) OR ((col1 < 16.8)) AND (col3 < 648) OR col3 > 696 OR col4 <= 275.34 AND col3 < 121 AND ((((col0 > 87))) AND col4 > 277.56) AND col0 >= 235

statement ok
CREATE VIEW view_2_tab2_120 AS SELECT pk, col0 FROM tab2 WHERE NOT (col0 > 556 OR col0 IN (910,813) AND col0 IS NULL AND (col3 < 122) OR (col0 <= 28 OR ((col0 IS NULL AND (col3 < 173)))) OR ((col1 < 16.8)) AND (col3 < 648) OR col3 > 696 OR col4 <= 275.34 AND col3 < 121 AND ((((col0 > 87))) AND col4 > 277.56) AND col0 >= 235)

statement ok
CREATE VIEW view_3_tab2_120 AS SELECT pk FROM view_1_tab2_120

query II rowsort label-4300-1
SELECT pk, col0 FROM tab2 WHERE col0 > 556 OR col0 IN (910,813) AND col0 IS NULL AND (col3 < 122) OR (col0 <= 28 OR ((col0 IS NULL AND (col3 < 173)))) OR ((col1 < 16.8)) AND (col3 < 648) OR col3 > 696 OR col4 <= 275.34 AND col3 < 121 AND ((((col0 > 87))) AND col4 > 277.56) AND col0 >= 235
----
122 values hashing to fb51f7af10e8b214d8bee6e96565e471

query II rowsort label-4300-2
SELECT pk, col0 FROM tab2 WHERE NOT (col0 > 556 OR col0 IN (910,813) AND col0 IS NULL AND (col3 < 122) OR (col0 <= 28 OR ((col0 IS NULL AND (col3 < 173)))) OR ((col1 < 16.8)) AND (col3 < 648) OR col3 > 696 OR col4 <= 275.34 AND col3 < 121 AND ((((col0 > 87))) AND col4 > 277.56) AND col0 >= 235)
----
78 values hashing to f6d8e74e55abb43b55aef4b1ec43d2eb

query II rowsort label-4300-1
SELECT pk, col0 FROM view_1_tab2_120
----
122 values hashing to fb51f7af10e8b214d8bee6e96565e471

query II rowsort label-4300-2
SELECT pk, col0 FROM view_2_tab2_120
----
78 values hashing to f6d8e74e55abb43b55aef4b1ec43d2eb

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col0 > 556 OR col0 IN (910,813) AND col0 IS NULL AND (col3 < 122) OR (col0 <= 28 OR ((col0 IS NULL AND (col3 < 173)))) OR ((col1 < 16.8)) AND (col3 < 648) OR col3 > 696 OR col4 <= 275.34 AND col3 < 121 AND ((((col0 > 87))) AND col4 > 277.56) AND col0 >= 235 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col0 > 556 OR col0 IN (910,813) AND col0 IS NULL AND (col3 < 122) OR (col0 <= 28 OR ((col0 IS NULL AND (col3 < 173)))) OR ((col1 < 16.8)) AND (col3 < 648) OR col3 > 696 OR col4 <= 275.34 AND col3 < 121 AND ((((col0 > 87))) AND col4 > 277.56) AND col0 >= 235)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_120 UNION ALL SELECT pk, col0 FROM view_2_tab2_120
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col0 > 556 OR col0 IN (910,813) AND col0 IS NULL AND (col3 < 122) OR (col0 <= 28 OR ((col0 IS NULL AND (col3 < 173)))) OR ((col1 < 16.8)) AND (col3 < 648) OR col3 > 696 OR col4 <= 275.34 AND col3 < 121 AND ((((col0 > 87))) AND col4 > 277.56) AND col0 >= 235 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col0 > 556 OR col0 IN (910,813) AND col0 IS NULL AND (col3 < 122) OR (col0 <= 28 OR ((col0 IS NULL AND (col3 < 173)))) OR ((col1 < 16.8)) AND (col3 < 648) OR col3 > 696 OR col4 <= 275.34 AND col3 < 121 AND ((((col0 > 87))) AND col4 > 277.56) AND col0 >= 235)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_120 UNION SELECT pk, col0 FROM view_2_tab2_120
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-4300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col0 > 556 OR col0 IN (910,813) AND col0 IS NULL AND (col3 < 122) OR (col0 <= 28 OR ((col0 IS NULL AND (col3 < 173)))) OR ((col1 < 16.8)) AND (col3 < 648) OR col3 > 696 OR col4 <= 275.34 AND col3 < 121 AND ((((col0 > 87))) AND col4 > 277.56) AND col0 >= 235 ) AS tab2_120
----
61 values hashing to 12f835fc26533ad56f69059c549b8f91

query I rowsort label-4300-3
SELECT * FROM view_3_tab2_120
----
61 values hashing to 12f835fc26533ad56f69059c549b8f91

query I rowsort label-4300-3
SELECT pk FROM tab2 WHERE col0 > 556 OR col0 IN (910,813) AND col0 IS NULL AND (col3 < 122) OR (col0 <= 28 OR ((col0 IS NULL AND (col3 < 173)))) OR ((col1 < 16.8)) AND (col3 < 648) OR col3 > 696 OR col4 <= 275.34 AND col3 < 121 AND ((((col0 > 87))) AND col4 > 277.56) AND col0 >= 235
----
61 values hashing to 12f835fc26533ad56f69059c549b8f91

statement ok
DROP VIEW view_1_tab2_120

statement ok
DROP VIEW view_2_tab2_120

statement ok
DROP VIEW view_3_tab2_120

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_120') DROP VIEW view_1_tab3_120

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_120

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_120') DROP VIEW view_2_tab3_120

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_120

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_120') DROP VIEW view_3_tab3_120

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_120

statement ok
CREATE VIEW view_1_tab3_120 AS SELECT pk, col0 FROM tab3 WHERE col0 > 556 OR col0 IN (910,813) AND col0 IS NULL AND (col3 < 122) OR (col0 <= 28 OR ((col0 IS NULL AND (col3 < 173)))) OR ((col1 < 16.8)) AND (col3 < 648) OR col3 > 696 OR col4 <= 275.34 AND col3 < 121 AND ((((col0 > 87))) AND col4 > 277.56) AND col0 >= 235

statement ok
CREATE VIEW view_2_tab3_120 AS SELECT pk, col0 FROM tab3 WHERE NOT (col0 > 556 OR col0 IN (910,813) AND col0 IS NULL AND (col3 < 122) OR (col0 <= 28 OR ((col0 IS NULL AND (col3 < 173)))) OR ((col1 < 16.8)) AND (col3 < 648) OR col3 > 696 OR col4 <= 275.34 AND col3 < 121 AND ((((col0 > 87))) AND col4 > 277.56) AND col0 >= 235)

statement ok
CREATE VIEW view_3_tab3_120 AS SELECT pk FROM view_1_tab3_120

query II rowsort label-4300-1
SELECT pk, col0 FROM tab3 WHERE col0 > 556 OR col0 IN (910,813) AND col0 IS NULL AND (col3 < 122) OR (col0 <= 28 OR ((col0 IS NULL AND (col3 < 173)))) OR ((col1 < 16.8)) AND (col3 < 648) OR col3 > 696 OR col4 <= 275.34 AND col3 < 121 AND ((((col0 > 87))) AND col4 > 277.56) AND col0 >= 235
----
122 values hashing to fb51f7af10e8b214d8bee6e96565e471

query II rowsort label-4300-2
SELECT pk, col0 FROM tab3 WHERE NOT (col0 > 556 OR col0 IN (910,813) AND col0 IS NULL AND (col3 < 122) OR (col0 <= 28 OR ((col0 IS NULL AND (col3 < 173)))) OR ((col1 < 16.8)) AND (col3 < 648) OR col3 > 696 OR col4 <= 275.34 AND col3 < 121 AND ((((col0 > 87))) AND col4 > 277.56) AND col0 >= 235)
----
78 values hashing to f6d8e74e55abb43b55aef4b1ec43d2eb

query II rowsort label-4300-1
SELECT pk, col0 FROM view_1_tab3_120
----
122 values hashing to fb51f7af10e8b214d8bee6e96565e471

query II rowsort label-4300-2
SELECT pk, col0 FROM view_2_tab3_120
----
78 values hashing to f6d8e74e55abb43b55aef4b1ec43d2eb

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col0 > 556 OR col0 IN (910,813) AND col0 IS NULL AND (col3 < 122) OR (col0 <= 28 OR ((col0 IS NULL AND (col3 < 173)))) OR ((col1 < 16.8)) AND (col3 < 648) OR col3 > 696 OR col4 <= 275.34 AND col3 < 121 AND ((((col0 > 87))) AND col4 > 277.56) AND col0 >= 235 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col0 > 556 OR col0 IN (910,813) AND col0 IS NULL AND (col3 < 122) OR (col0 <= 28 OR ((col0 IS NULL AND (col3 < 173)))) OR ((col1 < 16.8)) AND (col3 < 648) OR col3 > 696 OR col4 <= 275.34 AND col3 < 121 AND ((((col0 > 87))) AND col4 > 277.56) AND col0 >= 235)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_120 UNION ALL SELECT pk, col0 FROM view_2_tab3_120
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col0 > 556 OR col0 IN (910,813) AND col0 IS NULL AND (col3 < 122) OR (col0 <= 28 OR ((col0 IS NULL AND (col3 < 173)))) OR ((col1 < 16.8)) AND (col3 < 648) OR col3 > 696 OR col4 <= 275.34 AND col3 < 121 AND ((((col0 > 87))) AND col4 > 277.56) AND col0 >= 235 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col0 > 556 OR col0 IN (910,813) AND col0 IS NULL AND (col3 < 122) OR (col0 <= 28 OR ((col0 IS NULL AND (col3 < 173)))) OR ((col1 < 16.8)) AND (col3 < 648) OR col3 > 696 OR col4 <= 275.34 AND col3 < 121 AND ((((col0 > 87))) AND col4 > 277.56) AND col0 >= 235)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_120 UNION SELECT pk, col0 FROM view_2_tab3_120
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-4300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col0 > 556 OR col0 IN (910,813) AND col0 IS NULL AND (col3 < 122) OR (col0 <= 28 OR ((col0 IS NULL AND (col3 < 173)))) OR ((col1 < 16.8)) AND (col3 < 648) OR col3 > 696 OR col4 <= 275.34 AND col3 < 121 AND ((((col0 > 87))) AND col4 > 277.56) AND col0 >= 235 ) AS tab3_120
----
61 values hashing to 12f835fc26533ad56f69059c549b8f91

query I rowsort label-4300-3
SELECT * FROM view_3_tab3_120
----
61 values hashing to 12f835fc26533ad56f69059c549b8f91

query I rowsort label-4300-3
SELECT pk FROM tab3 WHERE col0 > 556 OR col0 IN (910,813) AND col0 IS NULL AND (col3 < 122) OR (col0 <= 28 OR ((col0 IS NULL AND (col3 < 173)))) OR ((col1 < 16.8)) AND (col3 < 648) OR col3 > 696 OR col4 <= 275.34 AND col3 < 121 AND ((((col0 > 87))) AND col4 > 277.56) AND col0 >= 235
----
61 values hashing to 12f835fc26533ad56f69059c549b8f91

statement ok
DROP VIEW view_1_tab3_120

statement ok
DROP VIEW view_2_tab3_120

statement ok
DROP VIEW view_3_tab3_120

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_120') DROP VIEW view_1_tab4_120

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_120

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_120') DROP VIEW view_2_tab4_120

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_120

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_120') DROP VIEW view_3_tab4_120

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_120

statement ok
CREATE VIEW view_1_tab4_120 AS SELECT pk, col0 FROM tab4 WHERE col0 > 556 OR col0 IN (910,813) AND col0 IS NULL AND (col3 < 122) OR (col0 <= 28 OR ((col0 IS NULL AND (col3 < 173)))) OR ((col1 < 16.8)) AND (col3 < 648) OR col3 > 696 OR col4 <= 275.34 AND col3 < 121 AND ((((col0 > 87))) AND col4 > 277.56) AND col0 >= 235

statement ok
CREATE VIEW view_2_tab4_120 AS SELECT pk, col0 FROM tab4 WHERE NOT (col0 > 556 OR col0 IN (910,813) AND col0 IS NULL AND (col3 < 122) OR (col0 <= 28 OR ((col0 IS NULL AND (col3 < 173)))) OR ((col1 < 16.8)) AND (col3 < 648) OR col3 > 696 OR col4 <= 275.34 AND col3 < 121 AND ((((col0 > 87))) AND col4 > 277.56) AND col0 >= 235)

statement ok
CREATE VIEW view_3_tab4_120 AS SELECT pk FROM view_1_tab4_120

query II rowsort label-4300-1
SELECT pk, col0 FROM tab4 WHERE col0 > 556 OR col0 IN (910,813) AND col0 IS NULL AND (col3 < 122) OR (col0 <= 28 OR ((col0 IS NULL AND (col3 < 173)))) OR ((col1 < 16.8)) AND (col3 < 648) OR col3 > 696 OR col4 <= 275.34 AND col3 < 121 AND ((((col0 > 87))) AND col4 > 277.56) AND col0 >= 235
----
122 values hashing to fb51f7af10e8b214d8bee6e96565e471

query II rowsort label-4300-2
SELECT pk, col0 FROM tab4 WHERE NOT (col0 > 556 OR col0 IN (910,813) AND col0 IS NULL AND (col3 < 122) OR (col0 <= 28 OR ((col0 IS NULL AND (col3 < 173)))) OR ((col1 < 16.8)) AND (col3 < 648) OR col3 > 696 OR col4 <= 275.34 AND col3 < 121 AND ((((col0 > 87))) AND col4 > 277.56) AND col0 >= 235)
----
78 values hashing to f6d8e74e55abb43b55aef4b1ec43d2eb

query II rowsort label-4300-1
SELECT pk, col0 FROM view_1_tab4_120
----
122 values hashing to fb51f7af10e8b214d8bee6e96565e471

query II rowsort label-4300-2
SELECT pk, col0 FROM view_2_tab4_120
----
78 values hashing to f6d8e74e55abb43b55aef4b1ec43d2eb

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col0 > 556 OR col0 IN (910,813) AND col0 IS NULL AND (col3 < 122) OR (col0 <= 28 OR ((col0 IS NULL AND (col3 < 173)))) OR ((col1 < 16.8)) AND (col3 < 648) OR col3 > 696 OR col4 <= 275.34 AND col3 < 121 AND ((((col0 > 87))) AND col4 > 277.56) AND col0 >= 235 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col0 > 556 OR col0 IN (910,813) AND col0 IS NULL AND (col3 < 122) OR (col0 <= 28 OR ((col0 IS NULL AND (col3 < 173)))) OR ((col1 < 16.8)) AND (col3 < 648) OR col3 > 696 OR col4 <= 275.34 AND col3 < 121 AND ((((col0 > 87))) AND col4 > 277.56) AND col0 >= 235)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_120 UNION ALL SELECT pk, col0 FROM view_2_tab4_120
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col0 > 556 OR col0 IN (910,813) AND col0 IS NULL AND (col3 < 122) OR (col0 <= 28 OR ((col0 IS NULL AND (col3 < 173)))) OR ((col1 < 16.8)) AND (col3 < 648) OR col3 > 696 OR col4 <= 275.34 AND col3 < 121 AND ((((col0 > 87))) AND col4 > 277.56) AND col0 >= 235 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col0 > 556 OR col0 IN (910,813) AND col0 IS NULL AND (col3 < 122) OR (col0 <= 28 OR ((col0 IS NULL AND (col3 < 173)))) OR ((col1 < 16.8)) AND (col3 < 648) OR col3 > 696 OR col4 <= 275.34 AND col3 < 121 AND ((((col0 > 87))) AND col4 > 277.56) AND col0 >= 235)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_120 UNION SELECT pk, col0 FROM view_2_tab4_120
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-4300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col0 > 556 OR col0 IN (910,813) AND col0 IS NULL AND (col3 < 122) OR (col0 <= 28 OR ((col0 IS NULL AND (col3 < 173)))) OR ((col1 < 16.8)) AND (col3 < 648) OR col3 > 696 OR col4 <= 275.34 AND col3 < 121 AND ((((col0 > 87))) AND col4 > 277.56) AND col0 >= 235 ) AS tab4_120
----
61 values hashing to 12f835fc26533ad56f69059c549b8f91

query I rowsort label-4300-3
SELECT * FROM view_3_tab4_120
----
61 values hashing to 12f835fc26533ad56f69059c549b8f91

query I rowsort label-4300-3
SELECT pk FROM tab4 WHERE col0 > 556 OR col0 IN (910,813) AND col0 IS NULL AND (col3 < 122) OR (col0 <= 28 OR ((col0 IS NULL AND (col3 < 173)))) OR ((col1 < 16.8)) AND (col3 < 648) OR col3 > 696 OR col4 <= 275.34 AND col3 < 121 AND ((((col0 > 87))) AND col4 > 277.56) AND col0 >= 235
----
61 values hashing to 12f835fc26533ad56f69059c549b8f91

statement ok
DROP VIEW view_1_tab4_120

statement ok
DROP VIEW view_2_tab4_120

statement ok
DROP VIEW view_3_tab4_120

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_121') DROP VIEW view_1_tab0_121

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_121

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_121') DROP VIEW view_2_tab0_121

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_121

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_121') DROP VIEW view_3_tab0_121

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_121

statement ok
CREATE VIEW view_1_tab0_121 AS SELECT pk, col0 FROM tab0 WHERE col1 >= 211.12

statement ok
CREATE VIEW view_2_tab0_121 AS SELECT pk, col0 FROM tab0 WHERE NOT (col1 >= 211.12)

statement ok
CREATE VIEW view_3_tab0_121 AS SELECT pk FROM view_1_tab0_121

query II rowsort label-4400-1
SELECT pk, col0 FROM tab0 WHERE col1 >= 211.12
----
160 values hashing to 3edf81edb6f1985053bb5f443c5b9dbf

query II rowsort label-4400-2
SELECT pk, col0 FROM tab0 WHERE NOT (col1 >= 211.12)
----
40 values hashing to 0ca73421e1628fc42fb0e1342ee4462d

query II rowsort label-4400-1
SELECT pk, col0 FROM view_1_tab0_121
----
160 values hashing to 3edf81edb6f1985053bb5f443c5b9dbf

query II rowsort label-4400-2
SELECT pk, col0 FROM view_2_tab0_121
----
40 values hashing to 0ca73421e1628fc42fb0e1342ee4462d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col1 >= 211.12 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col1 >= 211.12)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_121 UNION ALL SELECT pk, col0 FROM view_2_tab0_121
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col1 >= 211.12 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col1 >= 211.12)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_121 UNION SELECT pk, col0 FROM view_2_tab0_121
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-4400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col1 >= 211.12 ) AS tab0_121
----
80 values hashing to 889d0d0ea1e1ac27a86b998a9a37a24f

query I rowsort label-4400-3
SELECT * FROM view_3_tab0_121
----
80 values hashing to 889d0d0ea1e1ac27a86b998a9a37a24f

query I rowsort label-4400-3
SELECT pk FROM tab0 WHERE col1 >= 211.12
----
80 values hashing to 889d0d0ea1e1ac27a86b998a9a37a24f

statement ok
DROP VIEW view_1_tab0_121

statement ok
DROP VIEW view_2_tab0_121

statement ok
DROP VIEW view_3_tab0_121

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_121') DROP VIEW view_1_tab1_121

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_121

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_121') DROP VIEW view_2_tab1_121

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_121

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_121') DROP VIEW view_3_tab1_121

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_121

statement ok
CREATE VIEW view_1_tab1_121 AS SELECT pk, col0 FROM tab1 WHERE col1 >= 211.12

statement ok
CREATE VIEW view_2_tab1_121 AS SELECT pk, col0 FROM tab1 WHERE NOT (col1 >= 211.12)

statement ok
CREATE VIEW view_3_tab1_121 AS SELECT pk FROM view_1_tab1_121

query II rowsort label-4400-1
SELECT pk, col0 FROM tab1 WHERE col1 >= 211.12
----
160 values hashing to 3edf81edb6f1985053bb5f443c5b9dbf

query II rowsort label-4400-2
SELECT pk, col0 FROM tab1 WHERE NOT (col1 >= 211.12)
----
40 values hashing to 0ca73421e1628fc42fb0e1342ee4462d

query II rowsort label-4400-1
SELECT pk, col0 FROM view_1_tab1_121
----
160 values hashing to 3edf81edb6f1985053bb5f443c5b9dbf

query II rowsort label-4400-2
SELECT pk, col0 FROM view_2_tab1_121
----
40 values hashing to 0ca73421e1628fc42fb0e1342ee4462d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col1 >= 211.12 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col1 >= 211.12)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_121 UNION ALL SELECT pk, col0 FROM view_2_tab1_121
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col1 >= 211.12 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col1 >= 211.12)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_121 UNION SELECT pk, col0 FROM view_2_tab1_121
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-4400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col1 >= 211.12 ) AS tab1_121
----
80 values hashing to 889d0d0ea1e1ac27a86b998a9a37a24f

query I rowsort label-4400-3
SELECT * FROM view_3_tab1_121
----
80 values hashing to 889d0d0ea1e1ac27a86b998a9a37a24f

query I rowsort label-4400-3
SELECT pk FROM tab1 WHERE col1 >= 211.12
----
80 values hashing to 889d0d0ea1e1ac27a86b998a9a37a24f

statement ok
DROP VIEW view_1_tab1_121

statement ok
DROP VIEW view_2_tab1_121

statement ok
DROP VIEW view_3_tab1_121

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_121') DROP VIEW view_1_tab2_121

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_121

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_121') DROP VIEW view_2_tab2_121

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_121

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_121') DROP VIEW view_3_tab2_121

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_121

statement ok
CREATE VIEW view_1_tab2_121 AS SELECT pk, col0 FROM tab2 WHERE col1 >= 211.12

statement ok
CREATE VIEW view_2_tab2_121 AS SELECT pk, col0 FROM tab2 WHERE NOT (col1 >= 211.12)

statement ok
CREATE VIEW view_3_tab2_121 AS SELECT pk FROM view_1_tab2_121

query II rowsort label-4400-1
SELECT pk, col0 FROM tab2 WHERE col1 >= 211.12
----
160 values hashing to 3edf81edb6f1985053bb5f443c5b9dbf

query II rowsort label-4400-2
SELECT pk, col0 FROM tab2 WHERE NOT (col1 >= 211.12)
----
40 values hashing to 0ca73421e1628fc42fb0e1342ee4462d

query II rowsort label-4400-1
SELECT pk, col0 FROM view_1_tab2_121
----
160 values hashing to 3edf81edb6f1985053bb5f443c5b9dbf

query II rowsort label-4400-2
SELECT pk, col0 FROM view_2_tab2_121
----
40 values hashing to 0ca73421e1628fc42fb0e1342ee4462d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col1 >= 211.12 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col1 >= 211.12)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_121 UNION ALL SELECT pk, col0 FROM view_2_tab2_121
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col1 >= 211.12 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col1 >= 211.12)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_121 UNION SELECT pk, col0 FROM view_2_tab2_121
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-4400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col1 >= 211.12 ) AS tab2_121
----
80 values hashing to 889d0d0ea1e1ac27a86b998a9a37a24f

query I rowsort label-4400-3
SELECT * FROM view_3_tab2_121
----
80 values hashing to 889d0d0ea1e1ac27a86b998a9a37a24f

query I rowsort label-4400-3
SELECT pk FROM tab2 WHERE col1 >= 211.12
----
80 values hashing to 889d0d0ea1e1ac27a86b998a9a37a24f

statement ok
DROP VIEW view_1_tab2_121

statement ok
DROP VIEW view_2_tab2_121

statement ok
DROP VIEW view_3_tab2_121

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_121') DROP VIEW view_1_tab3_121

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_121

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_121') DROP VIEW view_2_tab3_121

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_121

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_121') DROP VIEW view_3_tab3_121

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_121

statement ok
CREATE VIEW view_1_tab3_121 AS SELECT pk, col0 FROM tab3 WHERE col1 >= 211.12

statement ok
CREATE VIEW view_2_tab3_121 AS SELECT pk, col0 FROM tab3 WHERE NOT (col1 >= 211.12)

statement ok
CREATE VIEW view_3_tab3_121 AS SELECT pk FROM view_1_tab3_121

query II rowsort label-4400-1
SELECT pk, col0 FROM tab3 WHERE col1 >= 211.12
----
160 values hashing to 3edf81edb6f1985053bb5f443c5b9dbf

query II rowsort label-4400-2
SELECT pk, col0 FROM tab3 WHERE NOT (col1 >= 211.12)
----
40 values hashing to 0ca73421e1628fc42fb0e1342ee4462d

query II rowsort label-4400-1
SELECT pk, col0 FROM view_1_tab3_121
----
160 values hashing to 3edf81edb6f1985053bb5f443c5b9dbf

query II rowsort label-4400-2
SELECT pk, col0 FROM view_2_tab3_121
----
40 values hashing to 0ca73421e1628fc42fb0e1342ee4462d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col1 >= 211.12 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col1 >= 211.12)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_121 UNION ALL SELECT pk, col0 FROM view_2_tab3_121
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col1 >= 211.12 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col1 >= 211.12)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_121 UNION SELECT pk, col0 FROM view_2_tab3_121
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-4400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col1 >= 211.12 ) AS tab3_121
----
80 values hashing to 889d0d0ea1e1ac27a86b998a9a37a24f

query I rowsort label-4400-3
SELECT * FROM view_3_tab3_121
----
80 values hashing to 889d0d0ea1e1ac27a86b998a9a37a24f

query I rowsort label-4400-3
SELECT pk FROM tab3 WHERE col1 >= 211.12
----
80 values hashing to 889d0d0ea1e1ac27a86b998a9a37a24f

statement ok
DROP VIEW view_1_tab3_121

statement ok
DROP VIEW view_2_tab3_121

statement ok
DROP VIEW view_3_tab3_121

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_121') DROP VIEW view_1_tab4_121

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_121

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_121') DROP VIEW view_2_tab4_121

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_121

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_121') DROP VIEW view_3_tab4_121

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_121

statement ok
CREATE VIEW view_1_tab4_121 AS SELECT pk, col0 FROM tab4 WHERE col1 >= 211.12

statement ok
CREATE VIEW view_2_tab4_121 AS SELECT pk, col0 FROM tab4 WHERE NOT (col1 >= 211.12)

statement ok
CREATE VIEW view_3_tab4_121 AS SELECT pk FROM view_1_tab4_121

query II rowsort label-4400-1
SELECT pk, col0 FROM tab4 WHERE col1 >= 211.12
----
160 values hashing to 3edf81edb6f1985053bb5f443c5b9dbf

query II rowsort label-4400-2
SELECT pk, col0 FROM tab4 WHERE NOT (col1 >= 211.12)
----
40 values hashing to 0ca73421e1628fc42fb0e1342ee4462d

query II rowsort label-4400-1
SELECT pk, col0 FROM view_1_tab4_121
----
160 values hashing to 3edf81edb6f1985053bb5f443c5b9dbf

query II rowsort label-4400-2
SELECT pk, col0 FROM view_2_tab4_121
----
40 values hashing to 0ca73421e1628fc42fb0e1342ee4462d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col1 >= 211.12 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col1 >= 211.12)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_121 UNION ALL SELECT pk, col0 FROM view_2_tab4_121
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col1 >= 211.12 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col1 >= 211.12)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_121 UNION SELECT pk, col0 FROM view_2_tab4_121
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-4400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col1 >= 211.12 ) AS tab4_121
----
80 values hashing to 889d0d0ea1e1ac27a86b998a9a37a24f

query I rowsort label-4400-3
SELECT * FROM view_3_tab4_121
----
80 values hashing to 889d0d0ea1e1ac27a86b998a9a37a24f

query I rowsort label-4400-3
SELECT pk FROM tab4 WHERE col1 >= 211.12
----
80 values hashing to 889d0d0ea1e1ac27a86b998a9a37a24f

statement ok
DROP VIEW view_1_tab4_121

statement ok
DROP VIEW view_2_tab4_121

statement ok
DROP VIEW view_3_tab4_121

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_122') DROP VIEW view_1_tab0_122

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_122

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_122') DROP VIEW view_2_tab0_122

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_122

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_122') DROP VIEW view_3_tab0_122

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_122

statement ok
CREATE VIEW view_1_tab0_122 AS SELECT pk, col0 FROM tab0 WHERE col3 < 635

statement ok
CREATE VIEW view_2_tab0_122 AS SELECT pk, col0 FROM tab0 WHERE NOT (col3 < 635)

statement ok
CREATE VIEW view_3_tab0_122 AS SELECT pk FROM view_1_tab0_122

query II rowsort label-4500-1
SELECT pk, col0 FROM tab0 WHERE col3 < 635
----
124 values hashing to 8b37905c6757dfb8f95d1c8ec427827f

query II rowsort label-4500-2
SELECT pk, col0 FROM tab0 WHERE NOT (col3 < 635)
----
76 values hashing to bc945d300cb6f7e1221ad1b136c50ed8

query II rowsort label-4500-1
SELECT pk, col0 FROM view_1_tab0_122
----
124 values hashing to 8b37905c6757dfb8f95d1c8ec427827f

query II rowsort label-4500-2
SELECT pk, col0 FROM view_2_tab0_122
----
76 values hashing to bc945d300cb6f7e1221ad1b136c50ed8

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 < 635 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col3 < 635)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_122 UNION ALL SELECT pk, col0 FROM view_2_tab0_122
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 < 635 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col3 < 635)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_122 UNION SELECT pk, col0 FROM view_2_tab0_122
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-4500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col3 < 635 ) AS tab0_122
----
62 values hashing to ddc442c3953a99cb16dabc0e52a2b09f

query I rowsort label-4500-3
SELECT * FROM view_3_tab0_122
----
62 values hashing to ddc442c3953a99cb16dabc0e52a2b09f

query I rowsort label-4500-3
SELECT pk FROM tab0 WHERE col3 < 635
----
62 values hashing to ddc442c3953a99cb16dabc0e52a2b09f

statement ok
DROP VIEW view_1_tab0_122

statement ok
DROP VIEW view_2_tab0_122

statement ok
DROP VIEW view_3_tab0_122

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_122') DROP VIEW view_1_tab1_122

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_122

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_122') DROP VIEW view_2_tab1_122

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_122

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_122') DROP VIEW view_3_tab1_122

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_122

statement ok
CREATE VIEW view_1_tab1_122 AS SELECT pk, col0 FROM tab1 WHERE col3 < 635

statement ok
CREATE VIEW view_2_tab1_122 AS SELECT pk, col0 FROM tab1 WHERE NOT (col3 < 635)

statement ok
CREATE VIEW view_3_tab1_122 AS SELECT pk FROM view_1_tab1_122

query II rowsort label-4500-1
SELECT pk, col0 FROM tab1 WHERE col3 < 635
----
124 values hashing to 8b37905c6757dfb8f95d1c8ec427827f

query II rowsort label-4500-2
SELECT pk, col0 FROM tab1 WHERE NOT (col3 < 635)
----
76 values hashing to bc945d300cb6f7e1221ad1b136c50ed8

query II rowsort label-4500-1
SELECT pk, col0 FROM view_1_tab1_122
----
124 values hashing to 8b37905c6757dfb8f95d1c8ec427827f

query II rowsort label-4500-2
SELECT pk, col0 FROM view_2_tab1_122
----
76 values hashing to bc945d300cb6f7e1221ad1b136c50ed8

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 < 635 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col3 < 635)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_122 UNION ALL SELECT pk, col0 FROM view_2_tab1_122
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 < 635 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col3 < 635)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_122 UNION SELECT pk, col0 FROM view_2_tab1_122
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-4500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col3 < 635 ) AS tab1_122
----
62 values hashing to ddc442c3953a99cb16dabc0e52a2b09f

query I rowsort label-4500-3
SELECT * FROM view_3_tab1_122
----
62 values hashing to ddc442c3953a99cb16dabc0e52a2b09f

query I rowsort label-4500-3
SELECT pk FROM tab1 WHERE col3 < 635
----
62 values hashing to ddc442c3953a99cb16dabc0e52a2b09f

statement ok
DROP VIEW view_1_tab1_122

statement ok
DROP VIEW view_2_tab1_122

statement ok
DROP VIEW view_3_tab1_122

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_122') DROP VIEW view_1_tab2_122

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_122

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_122') DROP VIEW view_2_tab2_122

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_122

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_122') DROP VIEW view_3_tab2_122

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_122

statement ok
CREATE VIEW view_1_tab2_122 AS SELECT pk, col0 FROM tab2 WHERE col3 < 635

statement ok
CREATE VIEW view_2_tab2_122 AS SELECT pk, col0 FROM tab2 WHERE NOT (col3 < 635)

statement ok
CREATE VIEW view_3_tab2_122 AS SELECT pk FROM view_1_tab2_122

query II rowsort label-4500-1
SELECT pk, col0 FROM tab2 WHERE col3 < 635
----
124 values hashing to 8b37905c6757dfb8f95d1c8ec427827f

query II rowsort label-4500-2
SELECT pk, col0 FROM tab2 WHERE NOT (col3 < 635)
----
76 values hashing to bc945d300cb6f7e1221ad1b136c50ed8

query II rowsort label-4500-1
SELECT pk, col0 FROM view_1_tab2_122
----
124 values hashing to 8b37905c6757dfb8f95d1c8ec427827f

query II rowsort label-4500-2
SELECT pk, col0 FROM view_2_tab2_122
----
76 values hashing to bc945d300cb6f7e1221ad1b136c50ed8

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 < 635 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col3 < 635)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_122 UNION ALL SELECT pk, col0 FROM view_2_tab2_122
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 < 635 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col3 < 635)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_122 UNION SELECT pk, col0 FROM view_2_tab2_122
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-4500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col3 < 635 ) AS tab2_122
----
62 values hashing to ddc442c3953a99cb16dabc0e52a2b09f

query I rowsort label-4500-3
SELECT * FROM view_3_tab2_122
----
62 values hashing to ddc442c3953a99cb16dabc0e52a2b09f

query I rowsort label-4500-3
SELECT pk FROM tab2 WHERE col3 < 635
----
62 values hashing to ddc442c3953a99cb16dabc0e52a2b09f

statement ok
DROP VIEW view_1_tab2_122

statement ok
DROP VIEW view_2_tab2_122

statement ok
DROP VIEW view_3_tab2_122

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_122') DROP VIEW view_1_tab3_122

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_122

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_122') DROP VIEW view_2_tab3_122

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_122

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_122') DROP VIEW view_3_tab3_122

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_122

statement ok
CREATE VIEW view_1_tab3_122 AS SELECT pk, col0 FROM tab3 WHERE col3 < 635

statement ok
CREATE VIEW view_2_tab3_122 AS SELECT pk, col0 FROM tab3 WHERE NOT (col3 < 635)

statement ok
CREATE VIEW view_3_tab3_122 AS SELECT pk FROM view_1_tab3_122

query II rowsort label-4500-1
SELECT pk, col0 FROM tab3 WHERE col3 < 635
----
124 values hashing to 8b37905c6757dfb8f95d1c8ec427827f

query II rowsort label-4500-2
SELECT pk, col0 FROM tab3 WHERE NOT (col3 < 635)
----
76 values hashing to bc945d300cb6f7e1221ad1b136c50ed8

query II rowsort label-4500-1
SELECT pk, col0 FROM view_1_tab3_122
----
124 values hashing to 8b37905c6757dfb8f95d1c8ec427827f

query II rowsort label-4500-2
SELECT pk, col0 FROM view_2_tab3_122
----
76 values hashing to bc945d300cb6f7e1221ad1b136c50ed8

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 < 635 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col3 < 635)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_122 UNION ALL SELECT pk, col0 FROM view_2_tab3_122
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 < 635 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col3 < 635)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_122 UNION SELECT pk, col0 FROM view_2_tab3_122
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-4500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col3 < 635 ) AS tab3_122
----
62 values hashing to ddc442c3953a99cb16dabc0e52a2b09f

query I rowsort label-4500-3
SELECT * FROM view_3_tab3_122
----
62 values hashing to ddc442c3953a99cb16dabc0e52a2b09f

query I rowsort label-4500-3
SELECT pk FROM tab3 WHERE col3 < 635
----
62 values hashing to ddc442c3953a99cb16dabc0e52a2b09f

statement ok
DROP VIEW view_1_tab3_122

statement ok
DROP VIEW view_2_tab3_122

statement ok
DROP VIEW view_3_tab3_122

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_122') DROP VIEW view_1_tab4_122

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_122

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_122') DROP VIEW view_2_tab4_122

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_122

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_122') DROP VIEW view_3_tab4_122

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_122

statement ok
CREATE VIEW view_1_tab4_122 AS SELECT pk, col0 FROM tab4 WHERE col3 < 635

statement ok
CREATE VIEW view_2_tab4_122 AS SELECT pk, col0 FROM tab4 WHERE NOT (col3 < 635)

statement ok
CREATE VIEW view_3_tab4_122 AS SELECT pk FROM view_1_tab4_122

query II rowsort label-4500-1
SELECT pk, col0 FROM tab4 WHERE col3 < 635
----
124 values hashing to 8b37905c6757dfb8f95d1c8ec427827f

query II rowsort label-4500-2
SELECT pk, col0 FROM tab4 WHERE NOT (col3 < 635)
----
76 values hashing to bc945d300cb6f7e1221ad1b136c50ed8

query II rowsort label-4500-1
SELECT pk, col0 FROM view_1_tab4_122
----
124 values hashing to 8b37905c6757dfb8f95d1c8ec427827f

query II rowsort label-4500-2
SELECT pk, col0 FROM view_2_tab4_122
----
76 values hashing to bc945d300cb6f7e1221ad1b136c50ed8

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 < 635 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col3 < 635)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_122 UNION ALL SELECT pk, col0 FROM view_2_tab4_122
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 < 635 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col3 < 635)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_122 UNION SELECT pk, col0 FROM view_2_tab4_122
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-4500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col3 < 635 ) AS tab4_122
----
62 values hashing to ddc442c3953a99cb16dabc0e52a2b09f

query I rowsort label-4500-3
SELECT * FROM view_3_tab4_122
----
62 values hashing to ddc442c3953a99cb16dabc0e52a2b09f

query I rowsort label-4500-3
SELECT pk FROM tab4 WHERE col3 < 635
----
62 values hashing to ddc442c3953a99cb16dabc0e52a2b09f

statement ok
DROP VIEW view_1_tab4_122

statement ok
DROP VIEW view_2_tab4_122

statement ok
DROP VIEW view_3_tab4_122

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_123') DROP VIEW view_1_tab0_123

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_123

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_123') DROP VIEW view_2_tab0_123

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_123

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_123') DROP VIEW view_3_tab0_123

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_123

statement ok
CREATE VIEW view_1_tab0_123 AS SELECT pk, col0 FROM tab0 WHERE col3 >= 582

statement ok
CREATE VIEW view_2_tab0_123 AS SELECT pk, col0 FROM tab0 WHERE NOT (col3 >= 582)

statement ok
CREATE VIEW view_3_tab0_123 AS SELECT pk FROM view_1_tab0_123

query II rowsort label-4600-1
SELECT pk, col0 FROM tab0 WHERE col3 >= 582
----
94 values hashing to f216af288afaa75a1f537bff091bf5f7

query II rowsort label-4600-2
SELECT pk, col0 FROM tab0 WHERE NOT (col3 >= 582)
----
106 values hashing to dfcd153730eef83579bfa03d929c4471

query II rowsort label-4600-1
SELECT pk, col0 FROM view_1_tab0_123
----
94 values hashing to f216af288afaa75a1f537bff091bf5f7

query II rowsort label-4600-2
SELECT pk, col0 FROM view_2_tab0_123
----
106 values hashing to dfcd153730eef83579bfa03d929c4471

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 >= 582 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col3 >= 582)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_123 UNION ALL SELECT pk, col0 FROM view_2_tab0_123
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 >= 582 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col3 >= 582)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_123 UNION SELECT pk, col0 FROM view_2_tab0_123
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-4600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col3 >= 582 ) AS tab0_123
----
47 values hashing to 6fad0d011ae6ef61ebc63fc1a2be6e2c

query I rowsort label-4600-3
SELECT * FROM view_3_tab0_123
----
47 values hashing to 6fad0d011ae6ef61ebc63fc1a2be6e2c

query I rowsort label-4600-3
SELECT pk FROM tab0 WHERE col3 >= 582
----
47 values hashing to 6fad0d011ae6ef61ebc63fc1a2be6e2c

statement ok
DROP VIEW view_1_tab0_123

statement ok
DROP VIEW view_2_tab0_123

statement ok
DROP VIEW view_3_tab0_123

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_123') DROP VIEW view_1_tab1_123

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_123

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_123') DROP VIEW view_2_tab1_123

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_123

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_123') DROP VIEW view_3_tab1_123

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_123

statement ok
CREATE VIEW view_1_tab1_123 AS SELECT pk, col0 FROM tab1 WHERE col3 >= 582

statement ok
CREATE VIEW view_2_tab1_123 AS SELECT pk, col0 FROM tab1 WHERE NOT (col3 >= 582)

statement ok
CREATE VIEW view_3_tab1_123 AS SELECT pk FROM view_1_tab1_123

query II rowsort label-4600-1
SELECT pk, col0 FROM tab1 WHERE col3 >= 582
----
94 values hashing to f216af288afaa75a1f537bff091bf5f7

query II rowsort label-4600-2
SELECT pk, col0 FROM tab1 WHERE NOT (col3 >= 582)
----
106 values hashing to dfcd153730eef83579bfa03d929c4471

query II rowsort label-4600-1
SELECT pk, col0 FROM view_1_tab1_123
----
94 values hashing to f216af288afaa75a1f537bff091bf5f7

query II rowsort label-4600-2
SELECT pk, col0 FROM view_2_tab1_123
----
106 values hashing to dfcd153730eef83579bfa03d929c4471

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 >= 582 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col3 >= 582)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_123 UNION ALL SELECT pk, col0 FROM view_2_tab1_123
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 >= 582 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col3 >= 582)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_123 UNION SELECT pk, col0 FROM view_2_tab1_123
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-4600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col3 >= 582 ) AS tab1_123
----
47 values hashing to 6fad0d011ae6ef61ebc63fc1a2be6e2c

query I rowsort label-4600-3
SELECT * FROM view_3_tab1_123
----
47 values hashing to 6fad0d011ae6ef61ebc63fc1a2be6e2c

query I rowsort label-4600-3
SELECT pk FROM tab1 WHERE col3 >= 582
----
47 values hashing to 6fad0d011ae6ef61ebc63fc1a2be6e2c

statement ok
DROP VIEW view_1_tab1_123

statement ok
DROP VIEW view_2_tab1_123

statement ok
DROP VIEW view_3_tab1_123

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_123') DROP VIEW view_1_tab2_123

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_123

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_123') DROP VIEW view_2_tab2_123

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_123

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_123') DROP VIEW view_3_tab2_123

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_123

statement ok
CREATE VIEW view_1_tab2_123 AS SELECT pk, col0 FROM tab2 WHERE col3 >= 582

statement ok
CREATE VIEW view_2_tab2_123 AS SELECT pk, col0 FROM tab2 WHERE NOT (col3 >= 582)

statement ok
CREATE VIEW view_3_tab2_123 AS SELECT pk FROM view_1_tab2_123

query II rowsort label-4600-1
SELECT pk, col0 FROM tab2 WHERE col3 >= 582
----
94 values hashing to f216af288afaa75a1f537bff091bf5f7

query II rowsort label-4600-2
SELECT pk, col0 FROM tab2 WHERE NOT (col3 >= 582)
----
106 values hashing to dfcd153730eef83579bfa03d929c4471

query II rowsort label-4600-1
SELECT pk, col0 FROM view_1_tab2_123
----
94 values hashing to f216af288afaa75a1f537bff091bf5f7

query II rowsort label-4600-2
SELECT pk, col0 FROM view_2_tab2_123
----
106 values hashing to dfcd153730eef83579bfa03d929c4471

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 >= 582 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col3 >= 582)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_123 UNION ALL SELECT pk, col0 FROM view_2_tab2_123
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 >= 582 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col3 >= 582)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_123 UNION SELECT pk, col0 FROM view_2_tab2_123
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-4600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col3 >= 582 ) AS tab2_123
----
47 values hashing to 6fad0d011ae6ef61ebc63fc1a2be6e2c

query I rowsort label-4600-3
SELECT * FROM view_3_tab2_123
----
47 values hashing to 6fad0d011ae6ef61ebc63fc1a2be6e2c

query I rowsort label-4600-3
SELECT pk FROM tab2 WHERE col3 >= 582
----
47 values hashing to 6fad0d011ae6ef61ebc63fc1a2be6e2c

statement ok
DROP VIEW view_1_tab2_123

statement ok
DROP VIEW view_2_tab2_123

statement ok
DROP VIEW view_3_tab2_123

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_123') DROP VIEW view_1_tab3_123

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_123

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_123') DROP VIEW view_2_tab3_123

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_123

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_123') DROP VIEW view_3_tab3_123

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_123

statement ok
CREATE VIEW view_1_tab3_123 AS SELECT pk, col0 FROM tab3 WHERE col3 >= 582

statement ok
CREATE VIEW view_2_tab3_123 AS SELECT pk, col0 FROM tab3 WHERE NOT (col3 >= 582)

statement ok
CREATE VIEW view_3_tab3_123 AS SELECT pk FROM view_1_tab3_123

query II rowsort label-4600-1
SELECT pk, col0 FROM tab3 WHERE col3 >= 582
----
94 values hashing to f216af288afaa75a1f537bff091bf5f7

query II rowsort label-4600-2
SELECT pk, col0 FROM tab3 WHERE NOT (col3 >= 582)
----
106 values hashing to dfcd153730eef83579bfa03d929c4471

query II rowsort label-4600-1
SELECT pk, col0 FROM view_1_tab3_123
----
94 values hashing to f216af288afaa75a1f537bff091bf5f7

query II rowsort label-4600-2
SELECT pk, col0 FROM view_2_tab3_123
----
106 values hashing to dfcd153730eef83579bfa03d929c4471

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 >= 582 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col3 >= 582)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_123 UNION ALL SELECT pk, col0 FROM view_2_tab3_123
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 >= 582 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col3 >= 582)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_123 UNION SELECT pk, col0 FROM view_2_tab3_123
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-4600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col3 >= 582 ) AS tab3_123
----
47 values hashing to 6fad0d011ae6ef61ebc63fc1a2be6e2c

query I rowsort label-4600-3
SELECT * FROM view_3_tab3_123
----
47 values hashing to 6fad0d011ae6ef61ebc63fc1a2be6e2c

query I rowsort label-4600-3
SELECT pk FROM tab3 WHERE col3 >= 582
----
47 values hashing to 6fad0d011ae6ef61ebc63fc1a2be6e2c

statement ok
DROP VIEW view_1_tab3_123

statement ok
DROP VIEW view_2_tab3_123

statement ok
DROP VIEW view_3_tab3_123

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_123') DROP VIEW view_1_tab4_123

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_123

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_123') DROP VIEW view_2_tab4_123

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_123

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_123') DROP VIEW view_3_tab4_123

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_123

statement ok
CREATE VIEW view_1_tab4_123 AS SELECT pk, col0 FROM tab4 WHERE col3 >= 582

statement ok
CREATE VIEW view_2_tab4_123 AS SELECT pk, col0 FROM tab4 WHERE NOT (col3 >= 582)

statement ok
CREATE VIEW view_3_tab4_123 AS SELECT pk FROM view_1_tab4_123

query II rowsort label-4600-1
SELECT pk, col0 FROM tab4 WHERE col3 >= 582
----
94 values hashing to f216af288afaa75a1f537bff091bf5f7

query II rowsort label-4600-2
SELECT pk, col0 FROM tab4 WHERE NOT (col3 >= 582)
----
106 values hashing to dfcd153730eef83579bfa03d929c4471

query II rowsort label-4600-1
SELECT pk, col0 FROM view_1_tab4_123
----
94 values hashing to f216af288afaa75a1f537bff091bf5f7

query II rowsort label-4600-2
SELECT pk, col0 FROM view_2_tab4_123
----
106 values hashing to dfcd153730eef83579bfa03d929c4471

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 >= 582 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col3 >= 582)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_123 UNION ALL SELECT pk, col0 FROM view_2_tab4_123
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 >= 582 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col3 >= 582)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_123 UNION SELECT pk, col0 FROM view_2_tab4_123
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-4600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col3 >= 582 ) AS tab4_123
----
47 values hashing to 6fad0d011ae6ef61ebc63fc1a2be6e2c

query I rowsort label-4600-3
SELECT * FROM view_3_tab4_123
----
47 values hashing to 6fad0d011ae6ef61ebc63fc1a2be6e2c

query I rowsort label-4600-3
SELECT pk FROM tab4 WHERE col3 >= 582
----
47 values hashing to 6fad0d011ae6ef61ebc63fc1a2be6e2c

statement ok
DROP VIEW view_1_tab4_123

statement ok
DROP VIEW view_2_tab4_123

statement ok
DROP VIEW view_3_tab4_123

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_124') DROP VIEW view_1_tab0_124

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_124

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_124') DROP VIEW view_2_tab0_124

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_124

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_124') DROP VIEW view_3_tab0_124

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_124

statement ok
CREATE VIEW view_1_tab0_124 AS SELECT pk, col0 FROM tab0 WHERE (col0 > 82)

statement ok
CREATE VIEW view_2_tab0_124 AS SELECT pk, col0 FROM tab0 WHERE NOT ((col0 > 82))

statement ok
CREATE VIEW view_3_tab0_124 AS SELECT pk FROM view_1_tab0_124

query II rowsort label-4700-1
SELECT pk, col0 FROM tab0 WHERE (col0 > 82)
----
182 values hashing to cdbd0ccbbba5009937ab52e972754f3d

query II rowsort label-4700-2
SELECT pk, col0 FROM tab0 WHERE NOT ((col0 > 82))
----
18 values hashing to 30ad7f7ffd2f9899e9e95ac2fb07dc5a

query II rowsort label-4700-1
SELECT pk, col0 FROM view_1_tab0_124
----
182 values hashing to cdbd0ccbbba5009937ab52e972754f3d

query II rowsort label-4700-2
SELECT pk, col0 FROM view_2_tab0_124
----
18 values hashing to 30ad7f7ffd2f9899e9e95ac2fb07dc5a

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col0 > 82) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT ((col0 > 82))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_124 UNION ALL SELECT pk, col0 FROM view_2_tab0_124
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col0 > 82) UNION SELECT pk, col0 FROM tab0 WHERE NOT ((col0 > 82))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_124 UNION SELECT pk, col0 FROM view_2_tab0_124
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-4700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE (col0 > 82) ) AS tab0_124
----
91 values hashing to cde23c08f0754e0a76c4654d4e83426d

query I rowsort label-4700-3
SELECT * FROM view_3_tab0_124
----
91 values hashing to cde23c08f0754e0a76c4654d4e83426d

query I rowsort label-4700-3
SELECT pk FROM tab0 WHERE (col0 > 82)
----
91 values hashing to cde23c08f0754e0a76c4654d4e83426d

statement ok
DROP VIEW view_1_tab0_124

statement ok
DROP VIEW view_2_tab0_124

statement ok
DROP VIEW view_3_tab0_124

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_124') DROP VIEW view_1_tab1_124

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_124

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_124') DROP VIEW view_2_tab1_124

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_124

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_124') DROP VIEW view_3_tab1_124

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_124

statement ok
CREATE VIEW view_1_tab1_124 AS SELECT pk, col0 FROM tab1 WHERE (col0 > 82)

statement ok
CREATE VIEW view_2_tab1_124 AS SELECT pk, col0 FROM tab1 WHERE NOT ((col0 > 82))

statement ok
CREATE VIEW view_3_tab1_124 AS SELECT pk FROM view_1_tab1_124

query II rowsort label-4700-1
SELECT pk, col0 FROM tab1 WHERE (col0 > 82)
----
182 values hashing to cdbd0ccbbba5009937ab52e972754f3d

query II rowsort label-4700-2
SELECT pk, col0 FROM tab1 WHERE NOT ((col0 > 82))
----
18 values hashing to 30ad7f7ffd2f9899e9e95ac2fb07dc5a

query II rowsort label-4700-1
SELECT pk, col0 FROM view_1_tab1_124
----
182 values hashing to cdbd0ccbbba5009937ab52e972754f3d

query II rowsort label-4700-2
SELECT pk, col0 FROM view_2_tab1_124
----
18 values hashing to 30ad7f7ffd2f9899e9e95ac2fb07dc5a

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col0 > 82) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT ((col0 > 82))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_124 UNION ALL SELECT pk, col0 FROM view_2_tab1_124
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col0 > 82) UNION SELECT pk, col0 FROM tab1 WHERE NOT ((col0 > 82))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_124 UNION SELECT pk, col0 FROM view_2_tab1_124
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-4700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE (col0 > 82) ) AS tab1_124
----
91 values hashing to cde23c08f0754e0a76c4654d4e83426d

query I rowsort label-4700-3
SELECT * FROM view_3_tab1_124
----
91 values hashing to cde23c08f0754e0a76c4654d4e83426d

query I rowsort label-4700-3
SELECT pk FROM tab1 WHERE (col0 > 82)
----
91 values hashing to cde23c08f0754e0a76c4654d4e83426d

statement ok
DROP VIEW view_1_tab1_124

statement ok
DROP VIEW view_2_tab1_124

statement ok
DROP VIEW view_3_tab1_124

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_124') DROP VIEW view_1_tab2_124

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_124

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_124') DROP VIEW view_2_tab2_124

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_124

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_124') DROP VIEW view_3_tab2_124

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_124

statement ok
CREATE VIEW view_1_tab2_124 AS SELECT pk, col0 FROM tab2 WHERE (col0 > 82)

statement ok
CREATE VIEW view_2_tab2_124 AS SELECT pk, col0 FROM tab2 WHERE NOT ((col0 > 82))

statement ok
CREATE VIEW view_3_tab2_124 AS SELECT pk FROM view_1_tab2_124

query II rowsort label-4700-1
SELECT pk, col0 FROM tab2 WHERE (col0 > 82)
----
182 values hashing to cdbd0ccbbba5009937ab52e972754f3d

query II rowsort label-4700-2
SELECT pk, col0 FROM tab2 WHERE NOT ((col0 > 82))
----
18 values hashing to 30ad7f7ffd2f9899e9e95ac2fb07dc5a

query II rowsort label-4700-1
SELECT pk, col0 FROM view_1_tab2_124
----
182 values hashing to cdbd0ccbbba5009937ab52e972754f3d

query II rowsort label-4700-2
SELECT pk, col0 FROM view_2_tab2_124
----
18 values hashing to 30ad7f7ffd2f9899e9e95ac2fb07dc5a

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col0 > 82) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT ((col0 > 82))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_124 UNION ALL SELECT pk, col0 FROM view_2_tab2_124
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col0 > 82) UNION SELECT pk, col0 FROM tab2 WHERE NOT ((col0 > 82))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_124 UNION SELECT pk, col0 FROM view_2_tab2_124
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-4700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE (col0 > 82) ) AS tab2_124
----
91 values hashing to cde23c08f0754e0a76c4654d4e83426d

query I rowsort label-4700-3
SELECT * FROM view_3_tab2_124
----
91 values hashing to cde23c08f0754e0a76c4654d4e83426d

query I rowsort label-4700-3
SELECT pk FROM tab2 WHERE (col0 > 82)
----
91 values hashing to cde23c08f0754e0a76c4654d4e83426d

statement ok
DROP VIEW view_1_tab2_124

statement ok
DROP VIEW view_2_tab2_124

statement ok
DROP VIEW view_3_tab2_124

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_124') DROP VIEW view_1_tab3_124

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_124

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_124') DROP VIEW view_2_tab3_124

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_124

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_124') DROP VIEW view_3_tab3_124

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_124

statement ok
CREATE VIEW view_1_tab3_124 AS SELECT pk, col0 FROM tab3 WHERE (col0 > 82)

statement ok
CREATE VIEW view_2_tab3_124 AS SELECT pk, col0 FROM tab3 WHERE NOT ((col0 > 82))

statement ok
CREATE VIEW view_3_tab3_124 AS SELECT pk FROM view_1_tab3_124

query II rowsort label-4700-1
SELECT pk, col0 FROM tab3 WHERE (col0 > 82)
----
182 values hashing to cdbd0ccbbba5009937ab52e972754f3d

query II rowsort label-4700-2
SELECT pk, col0 FROM tab3 WHERE NOT ((col0 > 82))
----
18 values hashing to 30ad7f7ffd2f9899e9e95ac2fb07dc5a

query II rowsort label-4700-1
SELECT pk, col0 FROM view_1_tab3_124
----
182 values hashing to cdbd0ccbbba5009937ab52e972754f3d

query II rowsort label-4700-2
SELECT pk, col0 FROM view_2_tab3_124
----
18 values hashing to 30ad7f7ffd2f9899e9e95ac2fb07dc5a

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col0 > 82) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT ((col0 > 82))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_124 UNION ALL SELECT pk, col0 FROM view_2_tab3_124
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col0 > 82) UNION SELECT pk, col0 FROM tab3 WHERE NOT ((col0 > 82))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_124 UNION SELECT pk, col0 FROM view_2_tab3_124
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-4700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE (col0 > 82) ) AS tab3_124
----
91 values hashing to cde23c08f0754e0a76c4654d4e83426d

query I rowsort label-4700-3
SELECT * FROM view_3_tab3_124
----
91 values hashing to cde23c08f0754e0a76c4654d4e83426d

query I rowsort label-4700-3
SELECT pk FROM tab3 WHERE (col0 > 82)
----
91 values hashing to cde23c08f0754e0a76c4654d4e83426d

statement ok
DROP VIEW view_1_tab3_124

statement ok
DROP VIEW view_2_tab3_124

statement ok
DROP VIEW view_3_tab3_124

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_124') DROP VIEW view_1_tab4_124

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_124

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_124') DROP VIEW view_2_tab4_124

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_124

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_124') DROP VIEW view_3_tab4_124

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_124

statement ok
CREATE VIEW view_1_tab4_124 AS SELECT pk, col0 FROM tab4 WHERE (col0 > 82)

statement ok
CREATE VIEW view_2_tab4_124 AS SELECT pk, col0 FROM tab4 WHERE NOT ((col0 > 82))

statement ok
CREATE VIEW view_3_tab4_124 AS SELECT pk FROM view_1_tab4_124

query II rowsort label-4700-1
SELECT pk, col0 FROM tab4 WHERE (col0 > 82)
----
182 values hashing to cdbd0ccbbba5009937ab52e972754f3d

query II rowsort label-4700-2
SELECT pk, col0 FROM tab4 WHERE NOT ((col0 > 82))
----
18 values hashing to 30ad7f7ffd2f9899e9e95ac2fb07dc5a

query II rowsort label-4700-1
SELECT pk, col0 FROM view_1_tab4_124
----
182 values hashing to cdbd0ccbbba5009937ab52e972754f3d

query II rowsort label-4700-2
SELECT pk, col0 FROM view_2_tab4_124
----
18 values hashing to 30ad7f7ffd2f9899e9e95ac2fb07dc5a

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col0 > 82) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT ((col0 > 82))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_124 UNION ALL SELECT pk, col0 FROM view_2_tab4_124
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col0 > 82) UNION SELECT pk, col0 FROM tab4 WHERE NOT ((col0 > 82))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_124 UNION SELECT pk, col0 FROM view_2_tab4_124
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-4700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE (col0 > 82) ) AS tab4_124
----
91 values hashing to cde23c08f0754e0a76c4654d4e83426d

query I rowsort label-4700-3
SELECT * FROM view_3_tab4_124
----
91 values hashing to cde23c08f0754e0a76c4654d4e83426d

query I rowsort label-4700-3
SELECT pk FROM tab4 WHERE (col0 > 82)
----
91 values hashing to cde23c08f0754e0a76c4654d4e83426d

statement ok
DROP VIEW view_1_tab4_124

statement ok
DROP VIEW view_2_tab4_124

statement ok
DROP VIEW view_3_tab4_124

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_125') DROP VIEW view_1_tab0_125

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_125

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_125') DROP VIEW view_2_tab0_125

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_125

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_125') DROP VIEW view_3_tab0_125

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_125

statement ok
CREATE VIEW view_1_tab0_125 AS SELECT pk, col0 FROM tab0 WHERE (col3 < 661)

statement ok
CREATE VIEW view_2_tab0_125 AS SELECT pk, col0 FROM tab0 WHERE NOT ((col3 < 661))

statement ok
CREATE VIEW view_3_tab0_125 AS SELECT pk FROM view_1_tab0_125

query II rowsort label-4800-1
SELECT pk, col0 FROM tab0 WHERE (col3 < 661)
----
132 values hashing to 40dc2e7024eaa3fd3c7890cc669feaf0

query II rowsort label-4800-2
SELECT pk, col0 FROM tab0 WHERE NOT ((col3 < 661))
----
68 values hashing to 6f78c4ca7cafd2933ac03f16393a6674

query II rowsort label-4800-1
SELECT pk, col0 FROM view_1_tab0_125
----
132 values hashing to 40dc2e7024eaa3fd3c7890cc669feaf0

query II rowsort label-4800-2
SELECT pk, col0 FROM view_2_tab0_125
----
68 values hashing to 6f78c4ca7cafd2933ac03f16393a6674

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col3 < 661) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT ((col3 < 661))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_125 UNION ALL SELECT pk, col0 FROM view_2_tab0_125
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col3 < 661) UNION SELECT pk, col0 FROM tab0 WHERE NOT ((col3 < 661))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_125 UNION SELECT pk, col0 FROM view_2_tab0_125
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-4800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE (col3 < 661) ) AS tab0_125
----
66 values hashing to 13d047cfaa6cf14db03589091965336e

query I rowsort label-4800-3
SELECT * FROM view_3_tab0_125
----
66 values hashing to 13d047cfaa6cf14db03589091965336e

query I rowsort label-4800-3
SELECT pk FROM tab0 WHERE (col3 < 661)
----
66 values hashing to 13d047cfaa6cf14db03589091965336e

statement ok
DROP VIEW view_1_tab0_125

statement ok
DROP VIEW view_2_tab0_125

statement ok
DROP VIEW view_3_tab0_125

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_125') DROP VIEW view_1_tab1_125

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_125

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_125') DROP VIEW view_2_tab1_125

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_125

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_125') DROP VIEW view_3_tab1_125

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_125

statement ok
CREATE VIEW view_1_tab1_125 AS SELECT pk, col0 FROM tab1 WHERE (col3 < 661)

statement ok
CREATE VIEW view_2_tab1_125 AS SELECT pk, col0 FROM tab1 WHERE NOT ((col3 < 661))

statement ok
CREATE VIEW view_3_tab1_125 AS SELECT pk FROM view_1_tab1_125

query II rowsort label-4800-1
SELECT pk, col0 FROM tab1 WHERE (col3 < 661)
----
132 values hashing to 40dc2e7024eaa3fd3c7890cc669feaf0

query II rowsort label-4800-2
SELECT pk, col0 FROM tab1 WHERE NOT ((col3 < 661))
----
68 values hashing to 6f78c4ca7cafd2933ac03f16393a6674

query II rowsort label-4800-1
SELECT pk, col0 FROM view_1_tab1_125
----
132 values hashing to 40dc2e7024eaa3fd3c7890cc669feaf0

query II rowsort label-4800-2
SELECT pk, col0 FROM view_2_tab1_125
----
68 values hashing to 6f78c4ca7cafd2933ac03f16393a6674

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col3 < 661) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT ((col3 < 661))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_125 UNION ALL SELECT pk, col0 FROM view_2_tab1_125
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col3 < 661) UNION SELECT pk, col0 FROM tab1 WHERE NOT ((col3 < 661))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_125 UNION SELECT pk, col0 FROM view_2_tab1_125
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-4800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE (col3 < 661) ) AS tab1_125
----
66 values hashing to 13d047cfaa6cf14db03589091965336e

query I rowsort label-4800-3
SELECT * FROM view_3_tab1_125
----
66 values hashing to 13d047cfaa6cf14db03589091965336e

query I rowsort label-4800-3
SELECT pk FROM tab1 WHERE (col3 < 661)
----
66 values hashing to 13d047cfaa6cf14db03589091965336e

statement ok
DROP VIEW view_1_tab1_125

statement ok
DROP VIEW view_2_tab1_125

statement ok
DROP VIEW view_3_tab1_125

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_125') DROP VIEW view_1_tab2_125

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_125

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_125') DROP VIEW view_2_tab2_125

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_125

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_125') DROP VIEW view_3_tab2_125

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_125

statement ok
CREATE VIEW view_1_tab2_125 AS SELECT pk, col0 FROM tab2 WHERE (col3 < 661)

statement ok
CREATE VIEW view_2_tab2_125 AS SELECT pk, col0 FROM tab2 WHERE NOT ((col3 < 661))

statement ok
CREATE VIEW view_3_tab2_125 AS SELECT pk FROM view_1_tab2_125

query II rowsort label-4800-1
SELECT pk, col0 FROM tab2 WHERE (col3 < 661)
----
132 values hashing to 40dc2e7024eaa3fd3c7890cc669feaf0

query II rowsort label-4800-2
SELECT pk, col0 FROM tab2 WHERE NOT ((col3 < 661))
----
68 values hashing to 6f78c4ca7cafd2933ac03f16393a6674

query II rowsort label-4800-1
SELECT pk, col0 FROM view_1_tab2_125
----
132 values hashing to 40dc2e7024eaa3fd3c7890cc669feaf0

query II rowsort label-4800-2
SELECT pk, col0 FROM view_2_tab2_125
----
68 values hashing to 6f78c4ca7cafd2933ac03f16393a6674

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col3 < 661) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT ((col3 < 661))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_125 UNION ALL SELECT pk, col0 FROM view_2_tab2_125
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col3 < 661) UNION SELECT pk, col0 FROM tab2 WHERE NOT ((col3 < 661))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_125 UNION SELECT pk, col0 FROM view_2_tab2_125
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-4800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE (col3 < 661) ) AS tab2_125
----
66 values hashing to 13d047cfaa6cf14db03589091965336e

query I rowsort label-4800-3
SELECT * FROM view_3_tab2_125
----
66 values hashing to 13d047cfaa6cf14db03589091965336e

query I rowsort label-4800-3
SELECT pk FROM tab2 WHERE (col3 < 661)
----
66 values hashing to 13d047cfaa6cf14db03589091965336e

statement ok
DROP VIEW view_1_tab2_125

statement ok
DROP VIEW view_2_tab2_125

statement ok
DROP VIEW view_3_tab2_125

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_125') DROP VIEW view_1_tab3_125

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_125

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_125') DROP VIEW view_2_tab3_125

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_125

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_125') DROP VIEW view_3_tab3_125

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_125

statement ok
CREATE VIEW view_1_tab3_125 AS SELECT pk, col0 FROM tab3 WHERE (col3 < 661)

statement ok
CREATE VIEW view_2_tab3_125 AS SELECT pk, col0 FROM tab3 WHERE NOT ((col3 < 661))

statement ok
CREATE VIEW view_3_tab3_125 AS SELECT pk FROM view_1_tab3_125

query II rowsort label-4800-1
SELECT pk, col0 FROM tab3 WHERE (col3 < 661)
----
132 values hashing to 40dc2e7024eaa3fd3c7890cc669feaf0

query II rowsort label-4800-2
SELECT pk, col0 FROM tab3 WHERE NOT ((col3 < 661))
----
68 values hashing to 6f78c4ca7cafd2933ac03f16393a6674

query II rowsort label-4800-1
SELECT pk, col0 FROM view_1_tab3_125
----
132 values hashing to 40dc2e7024eaa3fd3c7890cc669feaf0

query II rowsort label-4800-2
SELECT pk, col0 FROM view_2_tab3_125
----
68 values hashing to 6f78c4ca7cafd2933ac03f16393a6674

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col3 < 661) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT ((col3 < 661))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_125 UNION ALL SELECT pk, col0 FROM view_2_tab3_125
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col3 < 661) UNION SELECT pk, col0 FROM tab3 WHERE NOT ((col3 < 661))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_125 UNION SELECT pk, col0 FROM view_2_tab3_125
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-4800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE (col3 < 661) ) AS tab3_125
----
66 values hashing to 13d047cfaa6cf14db03589091965336e

query I rowsort label-4800-3
SELECT * FROM view_3_tab3_125
----
66 values hashing to 13d047cfaa6cf14db03589091965336e

query I rowsort label-4800-3
SELECT pk FROM tab3 WHERE (col3 < 661)
----
66 values hashing to 13d047cfaa6cf14db03589091965336e

statement ok
DROP VIEW view_1_tab3_125

statement ok
DROP VIEW view_2_tab3_125

statement ok
DROP VIEW view_3_tab3_125

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_125') DROP VIEW view_1_tab4_125

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_125

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_125') DROP VIEW view_2_tab4_125

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_125

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_125') DROP VIEW view_3_tab4_125

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_125

statement ok
CREATE VIEW view_1_tab4_125 AS SELECT pk, col0 FROM tab4 WHERE (col3 < 661)

statement ok
CREATE VIEW view_2_tab4_125 AS SELECT pk, col0 FROM tab4 WHERE NOT ((col3 < 661))

statement ok
CREATE VIEW view_3_tab4_125 AS SELECT pk FROM view_1_tab4_125

query II rowsort label-4800-1
SELECT pk, col0 FROM tab4 WHERE (col3 < 661)
----
132 values hashing to 40dc2e7024eaa3fd3c7890cc669feaf0

query II rowsort label-4800-2
SELECT pk, col0 FROM tab4 WHERE NOT ((col3 < 661))
----
68 values hashing to 6f78c4ca7cafd2933ac03f16393a6674

query II rowsort label-4800-1
SELECT pk, col0 FROM view_1_tab4_125
----
132 values hashing to 40dc2e7024eaa3fd3c7890cc669feaf0

query II rowsort label-4800-2
SELECT pk, col0 FROM view_2_tab4_125
----
68 values hashing to 6f78c4ca7cafd2933ac03f16393a6674

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col3 < 661) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT ((col3 < 661))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_125 UNION ALL SELECT pk, col0 FROM view_2_tab4_125
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col3 < 661) UNION SELECT pk, col0 FROM tab4 WHERE NOT ((col3 < 661))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_125 UNION SELECT pk, col0 FROM view_2_tab4_125
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-4800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE (col3 < 661) ) AS tab4_125
----
66 values hashing to 13d047cfaa6cf14db03589091965336e

query I rowsort label-4800-3
SELECT * FROM view_3_tab4_125
----
66 values hashing to 13d047cfaa6cf14db03589091965336e

query I rowsort label-4800-3
SELECT pk FROM tab4 WHERE (col3 < 661)
----
66 values hashing to 13d047cfaa6cf14db03589091965336e

statement ok
DROP VIEW view_1_tab4_125

statement ok
DROP VIEW view_2_tab4_125

statement ok
DROP VIEW view_3_tab4_125

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_126') DROP VIEW view_1_tab0_126

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_126

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_126') DROP VIEW view_2_tab0_126

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_126

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_126') DROP VIEW view_3_tab0_126

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_126

statement ok
CREATE VIEW view_1_tab0_126 AS SELECT pk, col0 FROM tab0 WHERE (((col0 > 575))) OR col4 > 776.46 AND col1 <= 716.71 AND (col1 > 157.35 AND col0 < 422)

statement ok
CREATE VIEW view_2_tab0_126 AS SELECT pk, col0 FROM tab0 WHERE NOT ((((col0 > 575))) OR col4 > 776.46 AND col1 <= 716.71 AND (col1 > 157.35 AND col0 < 422))

statement ok
CREATE VIEW view_3_tab0_126 AS SELECT pk FROM view_1_tab0_126

query II rowsort label-4900-1
SELECT pk, col0 FROM tab0 WHERE (((col0 > 575))) OR col4 > 776.46 AND col1 <= 716.71 AND (col1 > 157.35 AND col0 < 422)
----
86 values hashing to 44771f71d382492a197208a6b818a52f

query II rowsort label-4900-2
SELECT pk, col0 FROM tab0 WHERE NOT ((((col0 > 575))) OR col4 > 776.46 AND col1 <= 716.71 AND (col1 > 157.35 AND col0 < 422))
----
114 values hashing to e6d47eb68536b9f5db5e5b4bfff7f6f8

query II rowsort label-4900-1
SELECT pk, col0 FROM view_1_tab0_126
----
86 values hashing to 44771f71d382492a197208a6b818a52f

query II rowsort label-4900-2
SELECT pk, col0 FROM view_2_tab0_126
----
114 values hashing to e6d47eb68536b9f5db5e5b4bfff7f6f8

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (((col0 > 575))) OR col4 > 776.46 AND col1 <= 716.71 AND (col1 > 157.35 AND col0 < 422) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT ((((col0 > 575))) OR col4 > 776.46 AND col1 <= 716.71 AND (col1 > 157.35 AND col0 < 422))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_126 UNION ALL SELECT pk, col0 FROM view_2_tab0_126
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (((col0 > 575))) OR col4 > 776.46 AND col1 <= 716.71 AND (col1 > 157.35 AND col0 < 422) UNION SELECT pk, col0 FROM tab0 WHERE NOT ((((col0 > 575))) OR col4 > 776.46 AND col1 <= 716.71 AND (col1 > 157.35 AND col0 < 422))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_126 UNION SELECT pk, col0 FROM view_2_tab0_126
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-4900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE (((col0 > 575))) OR col4 > 776.46 AND col1 <= 716.71 AND (col1 > 157.35 AND col0 < 422) ) AS tab0_126
----
43 values hashing to 597e8911b174a59bc5afc80faa81641c

query I rowsort label-4900-3
SELECT * FROM view_3_tab0_126
----
43 values hashing to 597e8911b174a59bc5afc80faa81641c

query I rowsort label-4900-3
SELECT pk FROM tab0 WHERE (((col0 > 575))) OR col4 > 776.46 AND col1 <= 716.71 AND (col1 > 157.35 AND col0 < 422)
----
43 values hashing to 597e8911b174a59bc5afc80faa81641c

statement ok
DROP VIEW view_1_tab0_126

statement ok
DROP VIEW view_2_tab0_126

statement ok
DROP VIEW view_3_tab0_126

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_126') DROP VIEW view_1_tab1_126

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_126

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_126') DROP VIEW view_2_tab1_126

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_126

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_126') DROP VIEW view_3_tab1_126

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_126

statement ok
CREATE VIEW view_1_tab1_126 AS SELECT pk, col0 FROM tab1 WHERE (((col0 > 575))) OR col4 > 776.46 AND col1 <= 716.71 AND (col1 > 157.35 AND col0 < 422)

statement ok
CREATE VIEW view_2_tab1_126 AS SELECT pk, col0 FROM tab1 WHERE NOT ((((col0 > 575))) OR col4 > 776.46 AND col1 <= 716.71 AND (col1 > 157.35 AND col0 < 422))

statement ok
CREATE VIEW view_3_tab1_126 AS SELECT pk FROM view_1_tab1_126

query II rowsort label-4900-1
SELECT pk, col0 FROM tab1 WHERE (((col0 > 575))) OR col4 > 776.46 AND col1 <= 716.71 AND (col1 > 157.35 AND col0 < 422)
----
86 values hashing to 44771f71d382492a197208a6b818a52f

query II rowsort label-4900-2
SELECT pk, col0 FROM tab1 WHERE NOT ((((col0 > 575))) OR col4 > 776.46 AND col1 <= 716.71 AND (col1 > 157.35 AND col0 < 422))
----
114 values hashing to e6d47eb68536b9f5db5e5b4bfff7f6f8

query II rowsort label-4900-1
SELECT pk, col0 FROM view_1_tab1_126
----
86 values hashing to 44771f71d382492a197208a6b818a52f

query II rowsort label-4900-2
SELECT pk, col0 FROM view_2_tab1_126
----
114 values hashing to e6d47eb68536b9f5db5e5b4bfff7f6f8

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (((col0 > 575))) OR col4 > 776.46 AND col1 <= 716.71 AND (col1 > 157.35 AND col0 < 422) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT ((((col0 > 575))) OR col4 > 776.46 AND col1 <= 716.71 AND (col1 > 157.35 AND col0 < 422))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_126 UNION ALL SELECT pk, col0 FROM view_2_tab1_126
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (((col0 > 575))) OR col4 > 776.46 AND col1 <= 716.71 AND (col1 > 157.35 AND col0 < 422) UNION SELECT pk, col0 FROM tab1 WHERE NOT ((((col0 > 575))) OR col4 > 776.46 AND col1 <= 716.71 AND (col1 > 157.35 AND col0 < 422))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_126 UNION SELECT pk, col0 FROM view_2_tab1_126
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-4900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE (((col0 > 575))) OR col4 > 776.46 AND col1 <= 716.71 AND (col1 > 157.35 AND col0 < 422) ) AS tab1_126
----
43 values hashing to 597e8911b174a59bc5afc80faa81641c

query I rowsort label-4900-3
SELECT * FROM view_3_tab1_126
----
43 values hashing to 597e8911b174a59bc5afc80faa81641c

query I rowsort label-4900-3
SELECT pk FROM tab1 WHERE (((col0 > 575))) OR col4 > 776.46 AND col1 <= 716.71 AND (col1 > 157.35 AND col0 < 422)
----
43 values hashing to 597e8911b174a59bc5afc80faa81641c

statement ok
DROP VIEW view_1_tab1_126

statement ok
DROP VIEW view_2_tab1_126

statement ok
DROP VIEW view_3_tab1_126

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_126') DROP VIEW view_1_tab2_126

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_126

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_126') DROP VIEW view_2_tab2_126

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_126

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_126') DROP VIEW view_3_tab2_126

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_126

statement ok
CREATE VIEW view_1_tab2_126 AS SELECT pk, col0 FROM tab2 WHERE (((col0 > 575))) OR col4 > 776.46 AND col1 <= 716.71 AND (col1 > 157.35 AND col0 < 422)

statement ok
CREATE VIEW view_2_tab2_126 AS SELECT pk, col0 FROM tab2 WHERE NOT ((((col0 > 575))) OR col4 > 776.46 AND col1 <= 716.71 AND (col1 > 157.35 AND col0 < 422))

statement ok
CREATE VIEW view_3_tab2_126 AS SELECT pk FROM view_1_tab2_126

query II rowsort label-4900-1
SELECT pk, col0 FROM tab2 WHERE (((col0 > 575))) OR col4 > 776.46 AND col1 <= 716.71 AND (col1 > 157.35 AND col0 < 422)
----
86 values hashing to 44771f71d382492a197208a6b818a52f

query II rowsort label-4900-2
SELECT pk, col0 FROM tab2 WHERE NOT ((((col0 > 575))) OR col4 > 776.46 AND col1 <= 716.71 AND (col1 > 157.35 AND col0 < 422))
----
114 values hashing to e6d47eb68536b9f5db5e5b4bfff7f6f8

query II rowsort label-4900-1
SELECT pk, col0 FROM view_1_tab2_126
----
86 values hashing to 44771f71d382492a197208a6b818a52f

query II rowsort label-4900-2
SELECT pk, col0 FROM view_2_tab2_126
----
114 values hashing to e6d47eb68536b9f5db5e5b4bfff7f6f8

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (((col0 > 575))) OR col4 > 776.46 AND col1 <= 716.71 AND (col1 > 157.35 AND col0 < 422) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT ((((col0 > 575))) OR col4 > 776.46 AND col1 <= 716.71 AND (col1 > 157.35 AND col0 < 422))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_126 UNION ALL SELECT pk, col0 FROM view_2_tab2_126
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (((col0 > 575))) OR col4 > 776.46 AND col1 <= 716.71 AND (col1 > 157.35 AND col0 < 422) UNION SELECT pk, col0 FROM tab2 WHERE NOT ((((col0 > 575))) OR col4 > 776.46 AND col1 <= 716.71 AND (col1 > 157.35 AND col0 < 422))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_126 UNION SELECT pk, col0 FROM view_2_tab2_126
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-4900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE (((col0 > 575))) OR col4 > 776.46 AND col1 <= 716.71 AND (col1 > 157.35 AND col0 < 422) ) AS tab2_126
----
43 values hashing to 597e8911b174a59bc5afc80faa81641c

query I rowsort label-4900-3
SELECT * FROM view_3_tab2_126
----
43 values hashing to 597e8911b174a59bc5afc80faa81641c

query I rowsort label-4900-3
SELECT pk FROM tab2 WHERE (((col0 > 575))) OR col4 > 776.46 AND col1 <= 716.71 AND (col1 > 157.35 AND col0 < 422)
----
43 values hashing to 597e8911b174a59bc5afc80faa81641c

statement ok
DROP VIEW view_1_tab2_126

statement ok
DROP VIEW view_2_tab2_126

statement ok
DROP VIEW view_3_tab2_126

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_126') DROP VIEW view_1_tab3_126

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_126

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_126') DROP VIEW view_2_tab3_126

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_126

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_126') DROP VIEW view_3_tab3_126

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_126

statement ok
CREATE VIEW view_1_tab3_126 AS SELECT pk, col0 FROM tab3 WHERE (((col0 > 575))) OR col4 > 776.46 AND col1 <= 716.71 AND (col1 > 157.35 AND col0 < 422)

statement ok
CREATE VIEW view_2_tab3_126 AS SELECT pk, col0 FROM tab3 WHERE NOT ((((col0 > 575))) OR col4 > 776.46 AND col1 <= 716.71 AND (col1 > 157.35 AND col0 < 422))

statement ok
CREATE VIEW view_3_tab3_126 AS SELECT pk FROM view_1_tab3_126

query II rowsort label-4900-1
SELECT pk, col0 FROM tab3 WHERE (((col0 > 575))) OR col4 > 776.46 AND col1 <= 716.71 AND (col1 > 157.35 AND col0 < 422)
----
86 values hashing to 44771f71d382492a197208a6b818a52f

query II rowsort label-4900-2
SELECT pk, col0 FROM tab3 WHERE NOT ((((col0 > 575))) OR col4 > 776.46 AND col1 <= 716.71 AND (col1 > 157.35 AND col0 < 422))
----
114 values hashing to e6d47eb68536b9f5db5e5b4bfff7f6f8

query II rowsort label-4900-1
SELECT pk, col0 FROM view_1_tab3_126
----
86 values hashing to 44771f71d382492a197208a6b818a52f

query II rowsort label-4900-2
SELECT pk, col0 FROM view_2_tab3_126
----
114 values hashing to e6d47eb68536b9f5db5e5b4bfff7f6f8

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (((col0 > 575))) OR col4 > 776.46 AND col1 <= 716.71 AND (col1 > 157.35 AND col0 < 422) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT ((((col0 > 575))) OR col4 > 776.46 AND col1 <= 716.71 AND (col1 > 157.35 AND col0 < 422))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_126 UNION ALL SELECT pk, col0 FROM view_2_tab3_126
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (((col0 > 575))) OR col4 > 776.46 AND col1 <= 716.71 AND (col1 > 157.35 AND col0 < 422) UNION SELECT pk, col0 FROM tab3 WHERE NOT ((((col0 > 575))) OR col4 > 776.46 AND col1 <= 716.71 AND (col1 > 157.35 AND col0 < 422))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_126 UNION SELECT pk, col0 FROM view_2_tab3_126
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-4900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE (((col0 > 575))) OR col4 > 776.46 AND col1 <= 716.71 AND (col1 > 157.35 AND col0 < 422) ) AS tab3_126
----
43 values hashing to 597e8911b174a59bc5afc80faa81641c

query I rowsort label-4900-3
SELECT * FROM view_3_tab3_126
----
43 values hashing to 597e8911b174a59bc5afc80faa81641c

query I rowsort label-4900-3
SELECT pk FROM tab3 WHERE (((col0 > 575))) OR col4 > 776.46 AND col1 <= 716.71 AND (col1 > 157.35 AND col0 < 422)
----
43 values hashing to 597e8911b174a59bc5afc80faa81641c

statement ok
DROP VIEW view_1_tab3_126

statement ok
DROP VIEW view_2_tab3_126

statement ok
DROP VIEW view_3_tab3_126

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_126') DROP VIEW view_1_tab4_126

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_126

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_126') DROP VIEW view_2_tab4_126

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_126

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_126') DROP VIEW view_3_tab4_126

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_126

statement ok
CREATE VIEW view_1_tab4_126 AS SELECT pk, col0 FROM tab4 WHERE (((col0 > 575))) OR col4 > 776.46 AND col1 <= 716.71 AND (col1 > 157.35 AND col0 < 422)

statement ok
CREATE VIEW view_2_tab4_126 AS SELECT pk, col0 FROM tab4 WHERE NOT ((((col0 > 575))) OR col4 > 776.46 AND col1 <= 716.71 AND (col1 > 157.35 AND col0 < 422))

statement ok
CREATE VIEW view_3_tab4_126 AS SELECT pk FROM view_1_tab4_126

query II rowsort label-4900-1
SELECT pk, col0 FROM tab4 WHERE (((col0 > 575))) OR col4 > 776.46 AND col1 <= 716.71 AND (col1 > 157.35 AND col0 < 422)
----
86 values hashing to 44771f71d382492a197208a6b818a52f

query II rowsort label-4900-2
SELECT pk, col0 FROM tab4 WHERE NOT ((((col0 > 575))) OR col4 > 776.46 AND col1 <= 716.71 AND (col1 > 157.35 AND col0 < 422))
----
114 values hashing to e6d47eb68536b9f5db5e5b4bfff7f6f8

query II rowsort label-4900-1
SELECT pk, col0 FROM view_1_tab4_126
----
86 values hashing to 44771f71d382492a197208a6b818a52f

query II rowsort label-4900-2
SELECT pk, col0 FROM view_2_tab4_126
----
114 values hashing to e6d47eb68536b9f5db5e5b4bfff7f6f8

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (((col0 > 575))) OR col4 > 776.46 AND col1 <= 716.71 AND (col1 > 157.35 AND col0 < 422) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT ((((col0 > 575))) OR col4 > 776.46 AND col1 <= 716.71 AND (col1 > 157.35 AND col0 < 422))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_126 UNION ALL SELECT pk, col0 FROM view_2_tab4_126
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (((col0 > 575))) OR col4 > 776.46 AND col1 <= 716.71 AND (col1 > 157.35 AND col0 < 422) UNION SELECT pk, col0 FROM tab4 WHERE NOT ((((col0 > 575))) OR col4 > 776.46 AND col1 <= 716.71 AND (col1 > 157.35 AND col0 < 422))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_126 UNION SELECT pk, col0 FROM view_2_tab4_126
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-4900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE (((col0 > 575))) OR col4 > 776.46 AND col1 <= 716.71 AND (col1 > 157.35 AND col0 < 422) ) AS tab4_126
----
43 values hashing to 597e8911b174a59bc5afc80faa81641c

query I rowsort label-4900-3
SELECT * FROM view_3_tab4_126
----
43 values hashing to 597e8911b174a59bc5afc80faa81641c

query I rowsort label-4900-3
SELECT pk FROM tab4 WHERE (((col0 > 575))) OR col4 > 776.46 AND col1 <= 716.71 AND (col1 > 157.35 AND col0 < 422)
----
43 values hashing to 597e8911b174a59bc5afc80faa81641c

statement ok
DROP VIEW view_1_tab4_126

statement ok
DROP VIEW view_2_tab4_126

statement ok
DROP VIEW view_3_tab4_126

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_127') DROP VIEW view_1_tab0_127

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_127

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_127') DROP VIEW view_2_tab0_127

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_127

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_127') DROP VIEW view_3_tab0_127

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_127

statement ok
CREATE VIEW view_1_tab0_127 AS SELECT pk, col0 FROM tab0 WHERE col1 = 349.5 OR (col0 >= 101 AND col3 > 11 AND (col1 >= 837.93 AND col3 >= 293 OR col0 = 569) OR col0 < 386 AND col1 BETWEEN 417.39 AND 161.86 OR ((col1 >= 209.24)) AND (col3 < 413))

statement ok
CREATE VIEW view_2_tab0_127 AS SELECT pk, col0 FROM tab0 WHERE NOT (col1 = 349.5 OR (col0 >= 101 AND col3 > 11 AND (col1 >= 837.93 AND col3 >= 293 OR col0 = 569) OR col0 < 386 AND col1 BETWEEN 417.39 AND 161.86 OR ((col1 >= 209.24)) AND (col3 < 413)))

statement ok
CREATE VIEW view_3_tab0_127 AS SELECT pk FROM view_1_tab0_127

query II rowsort label-5000-1
SELECT pk, col0 FROM tab0 WHERE col1 = 349.5 OR (col0 >= 101 AND col3 > 11 AND (col1 >= 837.93 AND col3 >= 293 OR col0 = 569) OR col0 < 386 AND col1 BETWEEN 417.39 AND 161.86 OR ((col1 >= 209.24)) AND (col3 < 413))
----
84 values hashing to 33b10083d195e21fe07ec8f60d1cce4d

query II rowsort label-5000-2
SELECT pk, col0 FROM tab0 WHERE NOT (col1 = 349.5 OR (col0 >= 101 AND col3 > 11 AND (col1 >= 837.93 AND col3 >= 293 OR col0 = 569) OR col0 < 386 AND col1 BETWEEN 417.39 AND 161.86 OR ((col1 >= 209.24)) AND (col3 < 413)))
----
116 values hashing to 94ca88b233e5b7a9efacadcf3c1992fd

query II rowsort label-5000-1
SELECT pk, col0 FROM view_1_tab0_127
----
84 values hashing to 33b10083d195e21fe07ec8f60d1cce4d

query II rowsort label-5000-2
SELECT pk, col0 FROM view_2_tab0_127
----
116 values hashing to 94ca88b233e5b7a9efacadcf3c1992fd

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col1 = 349.5 OR (col0 >= 101 AND col3 > 11 AND (col1 >= 837.93 AND col3 >= 293 OR col0 = 569) OR col0 < 386 AND col1 BETWEEN 417.39 AND 161.86 OR ((col1 >= 209.24)) AND (col3 < 413)) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col1 = 349.5 OR (col0 >= 101 AND col3 > 11 AND (col1 >= 837.93 AND col3 >= 293 OR col0 = 569) OR col0 < 386 AND col1 BETWEEN 417.39 AND 161.86 OR ((col1 >= 209.24)) AND (col3 < 413)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_127 UNION ALL SELECT pk, col0 FROM view_2_tab0_127
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col1 = 349.5 OR (col0 >= 101 AND col3 > 11 AND (col1 >= 837.93 AND col3 >= 293 OR col0 = 569) OR col0 < 386 AND col1 BETWEEN 417.39 AND 161.86 OR ((col1 >= 209.24)) AND (col3 < 413)) UNION SELECT pk, col0 FROM tab0 WHERE NOT (col1 = 349.5 OR (col0 >= 101 AND col3 > 11 AND (col1 >= 837.93 AND col3 >= 293 OR col0 = 569) OR col0 < 386 AND col1 BETWEEN 417.39 AND 161.86 OR ((col1 >= 209.24)) AND (col3 < 413)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_127 UNION SELECT pk, col0 FROM view_2_tab0_127
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-5000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col1 = 349.5 OR (col0 >= 101 AND col3 > 11 AND (col1 >= 837.93 AND col3 >= 293 OR col0 = 569) OR col0 < 386 AND col1 BETWEEN 417.39 AND 161.86 OR ((col1 >= 209.24)) AND (col3 < 413)) ) AS tab0_127
----
42 values hashing to 7384eaeb71de8c039b40ba47c69e49a8

query I rowsort label-5000-3
SELECT * FROM view_3_tab0_127
----
42 values hashing to 7384eaeb71de8c039b40ba47c69e49a8

query I rowsort label-5000-3
SELECT pk FROM tab0 WHERE col1 = 349.5 OR (col0 >= 101 AND col3 > 11 AND (col1 >= 837.93 AND col3 >= 293 OR col0 = 569) OR col0 < 386 AND col1 BETWEEN 417.39 AND 161.86 OR ((col1 >= 209.24)) AND (col3 < 413))
----
42 values hashing to 7384eaeb71de8c039b40ba47c69e49a8

statement ok
DROP VIEW view_1_tab0_127

statement ok
DROP VIEW view_2_tab0_127

statement ok
DROP VIEW view_3_tab0_127

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_127') DROP VIEW view_1_tab1_127

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_127

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_127') DROP VIEW view_2_tab1_127

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_127

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_127') DROP VIEW view_3_tab1_127

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_127

statement ok
CREATE VIEW view_1_tab1_127 AS SELECT pk, col0 FROM tab1 WHERE col1 = 349.5 OR (col0 >= 101 AND col3 > 11 AND (col1 >= 837.93 AND col3 >= 293 OR col0 = 569) OR col0 < 386 AND col1 BETWEEN 417.39 AND 161.86 OR ((col1 >= 209.24)) AND (col3 < 413))

statement ok
CREATE VIEW view_2_tab1_127 AS SELECT pk, col0 FROM tab1 WHERE NOT (col1 = 349.5 OR (col0 >= 101 AND col3 > 11 AND (col1 >= 837.93 AND col3 >= 293 OR col0 = 569) OR col0 < 386 AND col1 BETWEEN 417.39 AND 161.86 OR ((col1 >= 209.24)) AND (col3 < 413)))

statement ok
CREATE VIEW view_3_tab1_127 AS SELECT pk FROM view_1_tab1_127

query II rowsort label-5000-1
SELECT pk, col0 FROM tab1 WHERE col1 = 349.5 OR (col0 >= 101 AND col3 > 11 AND (col1 >= 837.93 AND col3 >= 293 OR col0 = 569) OR col0 < 386 AND col1 BETWEEN 417.39 AND 161.86 OR ((col1 >= 209.24)) AND (col3 < 413))
----
84 values hashing to 33b10083d195e21fe07ec8f60d1cce4d

query II rowsort label-5000-2
SELECT pk, col0 FROM tab1 WHERE NOT (col1 = 349.5 OR (col0 >= 101 AND col3 > 11 AND (col1 >= 837.93 AND col3 >= 293 OR col0 = 569) OR col0 < 386 AND col1 BETWEEN 417.39 AND 161.86 OR ((col1 >= 209.24)) AND (col3 < 413)))
----
116 values hashing to 94ca88b233e5b7a9efacadcf3c1992fd

query II rowsort label-5000-1
SELECT pk, col0 FROM view_1_tab1_127
----
84 values hashing to 33b10083d195e21fe07ec8f60d1cce4d

query II rowsort label-5000-2
SELECT pk, col0 FROM view_2_tab1_127
----
116 values hashing to 94ca88b233e5b7a9efacadcf3c1992fd

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col1 = 349.5 OR (col0 >= 101 AND col3 > 11 AND (col1 >= 837.93 AND col3 >= 293 OR col0 = 569) OR col0 < 386 AND col1 BETWEEN 417.39 AND 161.86 OR ((col1 >= 209.24)) AND (col3 < 413)) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col1 = 349.5 OR (col0 >= 101 AND col3 > 11 AND (col1 >= 837.93 AND col3 >= 293 OR col0 = 569) OR col0 < 386 AND col1 BETWEEN 417.39 AND 161.86 OR ((col1 >= 209.24)) AND (col3 < 413)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_127 UNION ALL SELECT pk, col0 FROM view_2_tab1_127
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col1 = 349.5 OR (col0 >= 101 AND col3 > 11 AND (col1 >= 837.93 AND col3 >= 293 OR col0 = 569) OR col0 < 386 AND col1 BETWEEN 417.39 AND 161.86 OR ((col1 >= 209.24)) AND (col3 < 413)) UNION SELECT pk, col0 FROM tab1 WHERE NOT (col1 = 349.5 OR (col0 >= 101 AND col3 > 11 AND (col1 >= 837.93 AND col3 >= 293 OR col0 = 569) OR col0 < 386 AND col1 BETWEEN 417.39 AND 161.86 OR ((col1 >= 209.24)) AND (col3 < 413)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_127 UNION SELECT pk, col0 FROM view_2_tab1_127
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-5000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col1 = 349.5 OR (col0 >= 101 AND col3 > 11 AND (col1 >= 837.93 AND col3 >= 293 OR col0 = 569) OR col0 < 386 AND col1 BETWEEN 417.39 AND 161.86 OR ((col1 >= 209.24)) AND (col3 < 413)) ) AS tab1_127
----
42 values hashing to 7384eaeb71de8c039b40ba47c69e49a8

query I rowsort label-5000-3
SELECT * FROM view_3_tab1_127
----
42 values hashing to 7384eaeb71de8c039b40ba47c69e49a8

query I rowsort label-5000-3
SELECT pk FROM tab1 WHERE col1 = 349.5 OR (col0 >= 101 AND col3 > 11 AND (col1 >= 837.93 AND col3 >= 293 OR col0 = 569) OR col0 < 386 AND col1 BETWEEN 417.39 AND 161.86 OR ((col1 >= 209.24)) AND (col3 < 413))
----
42 values hashing to 7384eaeb71de8c039b40ba47c69e49a8

statement ok
DROP VIEW view_1_tab1_127

statement ok
DROP VIEW view_2_tab1_127

statement ok
DROP VIEW view_3_tab1_127

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_127') DROP VIEW view_1_tab2_127

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_127

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_127') DROP VIEW view_2_tab2_127

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_127

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_127') DROP VIEW view_3_tab2_127

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_127

statement ok
CREATE VIEW view_1_tab2_127 AS SELECT pk, col0 FROM tab2 WHERE col1 = 349.5 OR (col0 >= 101 AND col3 > 11 AND (col1 >= 837.93 AND col3 >= 293 OR col0 = 569) OR col0 < 386 AND col1 BETWEEN 417.39 AND 161.86 OR ((col1 >= 209.24)) AND (col3 < 413))

statement ok
CREATE VIEW view_2_tab2_127 AS SELECT pk, col0 FROM tab2 WHERE NOT (col1 = 349.5 OR (col0 >= 101 AND col3 > 11 AND (col1 >= 837.93 AND col3 >= 293 OR col0 = 569) OR col0 < 386 AND col1 BETWEEN 417.39 AND 161.86 OR ((col1 >= 209.24)) AND (col3 < 413)))

statement ok
CREATE VIEW view_3_tab2_127 AS SELECT pk FROM view_1_tab2_127

query II rowsort label-5000-1
SELECT pk, col0 FROM tab2 WHERE col1 = 349.5 OR (col0 >= 101 AND col3 > 11 AND (col1 >= 837.93 AND col3 >= 293 OR col0 = 569) OR col0 < 386 AND col1 BETWEEN 417.39 AND 161.86 OR ((col1 >= 209.24)) AND (col3 < 413))
----
84 values hashing to 33b10083d195e21fe07ec8f60d1cce4d

query II rowsort label-5000-2
SELECT pk, col0 FROM tab2 WHERE NOT (col1 = 349.5 OR (col0 >= 101 AND col3 > 11 AND (col1 >= 837.93 AND col3 >= 293 OR col0 = 569) OR col0 < 386 AND col1 BETWEEN 417.39 AND 161.86 OR ((col1 >= 209.24)) AND (col3 < 413)))
----
116 values hashing to 94ca88b233e5b7a9efacadcf3c1992fd

query II rowsort label-5000-1
SELECT pk, col0 FROM view_1_tab2_127
----
84 values hashing to 33b10083d195e21fe07ec8f60d1cce4d

query II rowsort label-5000-2
SELECT pk, col0 FROM view_2_tab2_127
----
116 values hashing to 94ca88b233e5b7a9efacadcf3c1992fd

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col1 = 349.5 OR (col0 >= 101 AND col3 > 11 AND (col1 >= 837.93 AND col3 >= 293 OR col0 = 569) OR col0 < 386 AND col1 BETWEEN 417.39 AND 161.86 OR ((col1 >= 209.24)) AND (col3 < 413)) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col1 = 349.5 OR (col0 >= 101 AND col3 > 11 AND (col1 >= 837.93 AND col3 >= 293 OR col0 = 569) OR col0 < 386 AND col1 BETWEEN 417.39 AND 161.86 OR ((col1 >= 209.24)) AND (col3 < 413)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_127 UNION ALL SELECT pk, col0 FROM view_2_tab2_127
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col1 = 349.5 OR (col0 >= 101 AND col3 > 11 AND (col1 >= 837.93 AND col3 >= 293 OR col0 = 569) OR col0 < 386 AND col1 BETWEEN 417.39 AND 161.86 OR ((col1 >= 209.24)) AND (col3 < 413)) UNION SELECT pk, col0 FROM tab2 WHERE NOT (col1 = 349.5 OR (col0 >= 101 AND col3 > 11 AND (col1 >= 837.93 AND col3 >= 293 OR col0 = 569) OR col0 < 386 AND col1 BETWEEN 417.39 AND 161.86 OR ((col1 >= 209.24)) AND (col3 < 413)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_127 UNION SELECT pk, col0 FROM view_2_tab2_127
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-5000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col1 = 349.5 OR (col0 >= 101 AND col3 > 11 AND (col1 >= 837.93 AND col3 >= 293 OR col0 = 569) OR col0 < 386 AND col1 BETWEEN 417.39 AND 161.86 OR ((col1 >= 209.24)) AND (col3 < 413)) ) AS tab2_127
----
42 values hashing to 7384eaeb71de8c039b40ba47c69e49a8

query I rowsort label-5000-3
SELECT * FROM view_3_tab2_127
----
42 values hashing to 7384eaeb71de8c039b40ba47c69e49a8

query I rowsort label-5000-3
SELECT pk FROM tab2 WHERE col1 = 349.5 OR (col0 >= 101 AND col3 > 11 AND (col1 >= 837.93 AND col3 >= 293 OR col0 = 569) OR col0 < 386 AND col1 BETWEEN 417.39 AND 161.86 OR ((col1 >= 209.24)) AND (col3 < 413))
----
42 values hashing to 7384eaeb71de8c039b40ba47c69e49a8

statement ok
DROP VIEW view_1_tab2_127

statement ok
DROP VIEW view_2_tab2_127

statement ok
DROP VIEW view_3_tab2_127

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_127') DROP VIEW view_1_tab3_127

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_127

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_127') DROP VIEW view_2_tab3_127

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_127

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_127') DROP VIEW view_3_tab3_127

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_127

statement ok
CREATE VIEW view_1_tab3_127 AS SELECT pk, col0 FROM tab3 WHERE col1 = 349.5 OR (col0 >= 101 AND col3 > 11 AND (col1 >= 837.93 AND col3 >= 293 OR col0 = 569) OR col0 < 386 AND col1 BETWEEN 417.39 AND 161.86 OR ((col1 >= 209.24)) AND (col3 < 413))

statement ok
CREATE VIEW view_2_tab3_127 AS SELECT pk, col0 FROM tab3 WHERE NOT (col1 = 349.5 OR (col0 >= 101 AND col3 > 11 AND (col1 >= 837.93 AND col3 >= 293 OR col0 = 569) OR col0 < 386 AND col1 BETWEEN 417.39 AND 161.86 OR ((col1 >= 209.24)) AND (col3 < 413)))

statement ok
CREATE VIEW view_3_tab3_127 AS SELECT pk FROM view_1_tab3_127

query II rowsort label-5000-1
SELECT pk, col0 FROM tab3 WHERE col1 = 349.5 OR (col0 >= 101 AND col3 > 11 AND (col1 >= 837.93 AND col3 >= 293 OR col0 = 569) OR col0 < 386 AND col1 BETWEEN 417.39 AND 161.86 OR ((col1 >= 209.24)) AND (col3 < 413))
----
84 values hashing to 33b10083d195e21fe07ec8f60d1cce4d

query II rowsort label-5000-2
SELECT pk, col0 FROM tab3 WHERE NOT (col1 = 349.5 OR (col0 >= 101 AND col3 > 11 AND (col1 >= 837.93 AND col3 >= 293 OR col0 = 569) OR col0 < 386 AND col1 BETWEEN 417.39 AND 161.86 OR ((col1 >= 209.24)) AND (col3 < 413)))
----
116 values hashing to 94ca88b233e5b7a9efacadcf3c1992fd

query II rowsort label-5000-1
SELECT pk, col0 FROM view_1_tab3_127
----
84 values hashing to 33b10083d195e21fe07ec8f60d1cce4d

query II rowsort label-5000-2
SELECT pk, col0 FROM view_2_tab3_127
----
116 values hashing to 94ca88b233e5b7a9efacadcf3c1992fd

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col1 = 349.5 OR (col0 >= 101 AND col3 > 11 AND (col1 >= 837.93 AND col3 >= 293 OR col0 = 569) OR col0 < 386 AND col1 BETWEEN 417.39 AND 161.86 OR ((col1 >= 209.24)) AND (col3 < 413)) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col1 = 349.5 OR (col0 >= 101 AND col3 > 11 AND (col1 >= 837.93 AND col3 >= 293 OR col0 = 569) OR col0 < 386 AND col1 BETWEEN 417.39 AND 161.86 OR ((col1 >= 209.24)) AND (col3 < 413)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_127 UNION ALL SELECT pk, col0 FROM view_2_tab3_127
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col1 = 349.5 OR (col0 >= 101 AND col3 > 11 AND (col1 >= 837.93 AND col3 >= 293 OR col0 = 569) OR col0 < 386 AND col1 BETWEEN 417.39 AND 161.86 OR ((col1 >= 209.24)) AND (col3 < 413)) UNION SELECT pk, col0 FROM tab3 WHERE NOT (col1 = 349.5 OR (col0 >= 101 AND col3 > 11 AND (col1 >= 837.93 AND col3 >= 293 OR col0 = 569) OR col0 < 386 AND col1 BETWEEN 417.39 AND 161.86 OR ((col1 >= 209.24)) AND (col3 < 413)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_127 UNION SELECT pk, col0 FROM view_2_tab3_127
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-5000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col1 = 349.5 OR (col0 >= 101 AND col3 > 11 AND (col1 >= 837.93 AND col3 >= 293 OR col0 = 569) OR col0 < 386 AND col1 BETWEEN 417.39 AND 161.86 OR ((col1 >= 209.24)) AND (col3 < 413)) ) AS tab3_127
----
42 values hashing to 7384eaeb71de8c039b40ba47c69e49a8

query I rowsort label-5000-3
SELECT * FROM view_3_tab3_127
----
42 values hashing to 7384eaeb71de8c039b40ba47c69e49a8

query I rowsort label-5000-3
SELECT pk FROM tab3 WHERE col1 = 349.5 OR (col0 >= 101 AND col3 > 11 AND (col1 >= 837.93 AND col3 >= 293 OR col0 = 569) OR col0 < 386 AND col1 BETWEEN 417.39 AND 161.86 OR ((col1 >= 209.24)) AND (col3 < 413))
----
42 values hashing to 7384eaeb71de8c039b40ba47c69e49a8

statement ok
DROP VIEW view_1_tab3_127

statement ok
DROP VIEW view_2_tab3_127

statement ok
DROP VIEW view_3_tab3_127

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_127') DROP VIEW view_1_tab4_127

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_127

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_127') DROP VIEW view_2_tab4_127

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_127

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_127') DROP VIEW view_3_tab4_127

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_127

statement ok
CREATE VIEW view_1_tab4_127 AS SELECT pk, col0 FROM tab4 WHERE col1 = 349.5 OR (col0 >= 101 AND col3 > 11 AND (col1 >= 837.93 AND col3 >= 293 OR col0 = 569) OR col0 < 386 AND col1 BETWEEN 417.39 AND 161.86 OR ((col1 >= 209.24)) AND (col3 < 413))

statement ok
CREATE VIEW view_2_tab4_127 AS SELECT pk, col0 FROM tab4 WHERE NOT (col1 = 349.5 OR (col0 >= 101 AND col3 > 11 AND (col1 >= 837.93 AND col3 >= 293 OR col0 = 569) OR col0 < 386 AND col1 BETWEEN 417.39 AND 161.86 OR ((col1 >= 209.24)) AND (col3 < 413)))

statement ok
CREATE VIEW view_3_tab4_127 AS SELECT pk FROM view_1_tab4_127

query II rowsort label-5000-1
SELECT pk, col0 FROM tab4 WHERE col1 = 349.5 OR (col0 >= 101 AND col3 > 11 AND (col1 >= 837.93 AND col3 >= 293 OR col0 = 569) OR col0 < 386 AND col1 BETWEEN 417.39 AND 161.86 OR ((col1 >= 209.24)) AND (col3 < 413))
----
84 values hashing to 33b10083d195e21fe07ec8f60d1cce4d

query II rowsort label-5000-2
SELECT pk, col0 FROM tab4 WHERE NOT (col1 = 349.5 OR (col0 >= 101 AND col3 > 11 AND (col1 >= 837.93 AND col3 >= 293 OR col0 = 569) OR col0 < 386 AND col1 BETWEEN 417.39 AND 161.86 OR ((col1 >= 209.24)) AND (col3 < 413)))
----
116 values hashing to 94ca88b233e5b7a9efacadcf3c1992fd

query II rowsort label-5000-1
SELECT pk, col0 FROM view_1_tab4_127
----
84 values hashing to 33b10083d195e21fe07ec8f60d1cce4d

query II rowsort label-5000-2
SELECT pk, col0 FROM view_2_tab4_127
----
116 values hashing to 94ca88b233e5b7a9efacadcf3c1992fd

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col1 = 349.5 OR (col0 >= 101 AND col3 > 11 AND (col1 >= 837.93 AND col3 >= 293 OR col0 = 569) OR col0 < 386 AND col1 BETWEEN 417.39 AND 161.86 OR ((col1 >= 209.24)) AND (col3 < 413)) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col1 = 349.5 OR (col0 >= 101 AND col3 > 11 AND (col1 >= 837.93 AND col3 >= 293 OR col0 = 569) OR col0 < 386 AND col1 BETWEEN 417.39 AND 161.86 OR ((col1 >= 209.24)) AND (col3 < 413)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_127 UNION ALL SELECT pk, col0 FROM view_2_tab4_127
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col1 = 349.5 OR (col0 >= 101 AND col3 > 11 AND (col1 >= 837.93 AND col3 >= 293 OR col0 = 569) OR col0 < 386 AND col1 BETWEEN 417.39 AND 161.86 OR ((col1 >= 209.24)) AND (col3 < 413)) UNION SELECT pk, col0 FROM tab4 WHERE NOT (col1 = 349.5 OR (col0 >= 101 AND col3 > 11 AND (col1 >= 837.93 AND col3 >= 293 OR col0 = 569) OR col0 < 386 AND col1 BETWEEN 417.39 AND 161.86 OR ((col1 >= 209.24)) AND (col3 < 413)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_127 UNION SELECT pk, col0 FROM view_2_tab4_127
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-5000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col1 = 349.5 OR (col0 >= 101 AND col3 > 11 AND (col1 >= 837.93 AND col3 >= 293 OR col0 = 569) OR col0 < 386 AND col1 BETWEEN 417.39 AND 161.86 OR ((col1 >= 209.24)) AND (col3 < 413)) ) AS tab4_127
----
42 values hashing to 7384eaeb71de8c039b40ba47c69e49a8

query I rowsort label-5000-3
SELECT * FROM view_3_tab4_127
----
42 values hashing to 7384eaeb71de8c039b40ba47c69e49a8

query I rowsort label-5000-3
SELECT pk FROM tab4 WHERE col1 = 349.5 OR (col0 >= 101 AND col3 > 11 AND (col1 >= 837.93 AND col3 >= 293 OR col0 = 569) OR col0 < 386 AND col1 BETWEEN 417.39 AND 161.86 OR ((col1 >= 209.24)) AND (col3 < 413))
----
42 values hashing to 7384eaeb71de8c039b40ba47c69e49a8

statement ok
DROP VIEW view_1_tab4_127

statement ok
DROP VIEW view_2_tab4_127

statement ok
DROP VIEW view_3_tab4_127

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_128') DROP VIEW view_1_tab0_128

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_128

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_128') DROP VIEW view_2_tab0_128

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_128

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_128') DROP VIEW view_3_tab0_128

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_128

statement ok
CREATE VIEW view_1_tab0_128 AS SELECT pk, col0 FROM tab0 WHERE col1 IN (251.46,161.18,26.98,725.14,623.64) OR col3 = 515 OR (((((col4 IN (221.81))) AND col0 IN (SELECT col3 FROM tab0 WHERE col0 > 586 AND col0 > 228) OR (col0 < 38 AND (((col4 < 838.64 AND col0 > 439)) AND (col3 < 291) AND (col3 <= 13) AND (col1 <= 626.80) AND col0 >= 362) OR ((col3 > 95)) AND ((col4 >= 853.52) AND col0 IS NULL)) OR col3 >= 995 OR col0 IN (999,823,762,729,912,303) OR col4 <= 360.43 AND col0 <= 161 OR col0 > 882)))

statement ok
CREATE VIEW view_2_tab0_128 AS SELECT pk, col0 FROM tab0 WHERE NOT (col1 IN (251.46,161.18,26.98,725.14,623.64) OR col3 = 515 OR (((((col4 IN (221.81))) AND col0 IN (SELECT col3 FROM tab0 WHERE col0 > 586 AND col0 > 228) OR (col0 < 38 AND (((col4 < 838.64 AND col0 > 439)) AND (col3 < 291) AND (col3 <= 13) AND (col1 <= 626.80) AND col0 >= 362) OR ((col3 > 95)) AND ((col4 >= 853.52) AND col0 IS NULL)) OR col3 >= 995 OR col0 IN (999,823,762,729,912,303) OR col4 <= 360.43 AND col0 <= 161 OR col0 > 882))))

statement ok
CREATE VIEW view_3_tab0_128 AS SELECT pk FROM view_1_tab0_128

query II rowsort label-5100-1
SELECT pk, col0 FROM tab0 WHERE col1 IN (251.46,161.18,26.98,725.14,623.64) OR col3 = 515 OR (((((col4 IN (221.81))) AND col0 IN (SELECT col3 FROM tab0 WHERE col0 > 586 AND col0 > 228) OR (col0 < 38 AND (((col4 < 838.64 AND col0 > 439)) AND (col3 < 291) AND (col3 <= 13) AND (col1 <= 626.80) AND col0 >= 362) OR ((col3 > 95)) AND ((col4 >= 853.52) AND col0 IS NULL)) OR col3 >= 995 OR col0 IN (999,823,762,729,912,303) OR col4 <= 360.43 AND col0 <= 161 OR col0 > 882)))
----
42 values hashing to e9b56a1e3345c116f85cc3499d1a2815

query II rowsort label-5100-2
SELECT pk, col0 FROM tab0 WHERE NOT (col1 IN (251.46,161.18,26.98,725.14,623.64) OR col3 = 515 OR (((((col4 IN (221.81))) AND col0 IN (SELECT col3 FROM tab0 WHERE col0 > 586 AND col0 > 228) OR (col0 < 38 AND (((col4 < 838.64 AND col0 > 439)) AND (col3 < 291) AND (col3 <= 13) AND (col1 <= 626.80) AND col0 >= 362) OR ((col3 > 95)) AND ((col4 >= 853.52) AND col0 IS NULL)) OR col3 >= 995 OR col0 IN (999,823,762,729,912,303) OR col4 <= 360.43 AND col0 <= 161 OR col0 > 882))))
----
158 values hashing to d4ee46d9859408b0466959b46ed14537

query II rowsort label-5100-1
SELECT pk, col0 FROM view_1_tab0_128
----
42 values hashing to e9b56a1e3345c116f85cc3499d1a2815

query II rowsort label-5100-2
SELECT pk, col0 FROM view_2_tab0_128
----
158 values hashing to d4ee46d9859408b0466959b46ed14537

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col1 IN (251.46,161.18,26.98,725.14,623.64) OR col3 = 515 OR (((((col4 IN (221.81))) AND col0 IN (SELECT col3 FROM tab0 WHERE col0 > 586 AND col0 > 228) OR (col0 < 38 AND (((col4 < 838.64 AND col0 > 439)) AND (col3 < 291) AND (col3 <= 13) AND (col1 <= 626.80) AND col0 >= 362) OR ((col3 > 95)) AND ((col4 >= 853.52) AND col0 IS NULL)) OR col3 >= 995 OR col0 IN (999,823,762,729,912,303) OR col4 <= 360.43 AND col0 <= 161 OR col0 > 882))) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col1 IN (251.46,161.18,26.98,725.14,623.64) OR col3 = 515 OR (((((col4 IN (221.81))) AND col0 IN (SELECT col3 FROM tab0 WHERE col0 > 586 AND col0 > 228) OR (col0 < 38 AND (((col4 < 838.64 AND col0 > 439)) AND (col3 < 291) AND (col3 <= 13) AND (col1 <= 626.80) AND col0 >= 362) OR ((col3 > 95)) AND ((col4 >= 853.52) AND col0 IS NULL)) OR col3 >= 995 OR col0 IN (999,823,762,729,912,303) OR col4 <= 360.43 AND col0 <= 161 OR col0 > 882))))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_128 UNION ALL SELECT pk, col0 FROM view_2_tab0_128
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col1 IN (251.46,161.18,26.98,725.14,623.64) OR col3 = 515 OR (((((col4 IN (221.81))) AND col0 IN (SELECT col3 FROM tab0 WHERE col0 > 586 AND col0 > 228) OR (col0 < 38 AND (((col4 < 838.64 AND col0 > 439)) AND (col3 < 291) AND (col3 <= 13) AND (col1 <= 626.80) AND col0 >= 362) OR ((col3 > 95)) AND ((col4 >= 853.52) AND col0 IS NULL)) OR col3 >= 995 OR col0 IN (999,823,762,729,912,303) OR col4 <= 360.43 AND col0 <= 161 OR col0 > 882))) UNION SELECT pk, col0 FROM tab0 WHERE NOT (col1 IN (251.46,161.18,26.98,725.14,623.64) OR col3 = 515 OR (((((col4 IN (221.81))) AND col0 IN (SELECT col3 FROM tab0 WHERE col0 > 586 AND col0 > 228) OR (col0 < 38 AND (((col4 < 838.64 AND col0 > 439)) AND (col3 < 291) AND (col3 <= 13) AND (col1 <= 626.80) AND col0 >= 362) OR ((col3 > 95)) AND ((col4 >= 853.52) AND col0 IS NULL)) OR col3 >= 995 OR col0 IN (999,823,762,729,912,303) OR col4 <= 360.43 AND col0 <= 161 OR col0 > 882))))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_128 UNION SELECT pk, col0 FROM view_2_tab0_128
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-5100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col1 IN (251.46,161.18,26.98,725.14,623.64) OR col3 = 515 OR (((((col4 IN (221.81))) AND col0 IN (SELECT col3 FROM tab0 WHERE col0 > 586 AND col0 > 228) OR (col0 < 38 AND (((col4 < 838.64 AND col0 > 439)) AND (col3 < 291) AND (col3 <= 13) AND (col1 <= 626.80) AND col0 >= 362) OR ((col3 > 95)) AND ((col4 >= 853.52) AND col0 IS NULL)) OR col3 >= 995 OR col0 IN (999,823,762,729,912,303) OR col4 <= 360.43 AND col0 <= 161 OR col0 > 882))) ) AS tab0_128
----
21 values hashing to 751f31a580ac0598030bf541f659ff8f

query I rowsort label-5100-3
SELECT * FROM view_3_tab0_128
----
21 values hashing to 751f31a580ac0598030bf541f659ff8f

query I rowsort label-5100-3
SELECT pk FROM tab0 WHERE col1 IN (251.46,161.18,26.98,725.14,623.64) OR col3 = 515 OR (((((col4 IN (221.81))) AND col0 IN (SELECT col3 FROM tab0 WHERE col0 > 586 AND col0 > 228) OR (col0 < 38 AND (((col4 < 838.64 AND col0 > 439)) AND (col3 < 291) AND (col3 <= 13) AND (col1 <= 626.80) AND col0 >= 362) OR ((col3 > 95)) AND ((col4 >= 853.52) AND col0 IS NULL)) OR col3 >= 995 OR col0 IN (999,823,762,729,912,303) OR col4 <= 360.43 AND col0 <= 161 OR col0 > 882)))
----
21 values hashing to 751f31a580ac0598030bf541f659ff8f

statement ok
DROP VIEW view_1_tab0_128

statement ok
DROP VIEW view_2_tab0_128

statement ok
DROP VIEW view_3_tab0_128

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_128') DROP VIEW view_1_tab1_128

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_128

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_128') DROP VIEW view_2_tab1_128

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_128

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_128') DROP VIEW view_3_tab1_128

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_128

statement ok
CREATE VIEW view_1_tab1_128 AS SELECT pk, col0 FROM tab1 WHERE col1 IN (251.46,161.18,26.98,725.14,623.64) OR col3 = 515 OR (((((col4 IN (221.81))) AND col0 IN (SELECT col3 FROM tab1 WHERE col0 > 586 AND col0 > 228) OR (col0 < 38 AND (((col4 < 838.64 AND col0 > 439)) AND (col3 < 291) AND (col3 <= 13) AND (col1 <= 626.80) AND col0 >= 362) OR ((col3 > 95)) AND ((col4 >= 853.52) AND col0 IS NULL)) OR col3 >= 995 OR col0 IN (999,823,762,729,912,303) OR col4 <= 360.43 AND col0 <= 161 OR col0 > 882)))

statement ok
CREATE VIEW view_2_tab1_128 AS SELECT pk, col0 FROM tab1 WHERE NOT (col1 IN (251.46,161.18,26.98,725.14,623.64) OR col3 = 515 OR (((((col4 IN (221.81))) AND col0 IN (SELECT col3 FROM tab1 WHERE col0 > 586 AND col0 > 228) OR (col0 < 38 AND (((col4 < 838.64 AND col0 > 439)) AND (col3 < 291) AND (col3 <= 13) AND (col1 <= 626.80) AND col0 >= 362) OR ((col3 > 95)) AND ((col4 >= 853.52) AND col0 IS NULL)) OR col3 >= 995 OR col0 IN (999,823,762,729,912,303) OR col4 <= 360.43 AND col0 <= 161 OR col0 > 882))))

statement ok
CREATE VIEW view_3_tab1_128 AS SELECT pk FROM view_1_tab1_128

query II rowsort label-5100-1
SELECT pk, col0 FROM tab1 WHERE col1 IN (251.46,161.18,26.98,725.14,623.64) OR col3 = 515 OR (((((col4 IN (221.81))) AND col0 IN (SELECT col3 FROM tab1 WHERE col0 > 586 AND col0 > 228) OR (col0 < 38 AND (((col4 < 838.64 AND col0 > 439)) AND (col3 < 291) AND (col3 <= 13) AND (col1 <= 626.80) AND col0 >= 362) OR ((col3 > 95)) AND ((col4 >= 853.52) AND col0 IS NULL)) OR col3 >= 995 OR col0 IN (999,823,762,729,912,303) OR col4 <= 360.43 AND col0 <= 161 OR col0 > 882)))
----
42 values hashing to e9b56a1e3345c116f85cc3499d1a2815

query II rowsort label-5100-2
SELECT pk, col0 FROM tab1 WHERE NOT (col1 IN (251.46,161.18,26.98,725.14,623.64) OR col3 = 515 OR (((((col4 IN (221.81))) AND col0 IN (SELECT col3 FROM tab1 WHERE col0 > 586 AND col0 > 228) OR (col0 < 38 AND (((col4 < 838.64 AND col0 > 439)) AND (col3 < 291) AND (col3 <= 13) AND (col1 <= 626.80) AND col0 >= 362) OR ((col3 > 95)) AND ((col4 >= 853.52) AND col0 IS NULL)) OR col3 >= 995 OR col0 IN (999,823,762,729,912,303) OR col4 <= 360.43 AND col0 <= 161 OR col0 > 882))))
----
158 values hashing to d4ee46d9859408b0466959b46ed14537

query II rowsort label-5100-1
SELECT pk, col0 FROM view_1_tab1_128
----
42 values hashing to e9b56a1e3345c116f85cc3499d1a2815

query II rowsort label-5100-2
SELECT pk, col0 FROM view_2_tab1_128
----
158 values hashing to d4ee46d9859408b0466959b46ed14537

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col1 IN (251.46,161.18,26.98,725.14,623.64) OR col3 = 515 OR (((((col4 IN (221.81))) AND col0 IN (SELECT col3 FROM tab1 WHERE col0 > 586 AND col0 > 228) OR (col0 < 38 AND (((col4 < 838.64 AND col0 > 439)) AND (col3 < 291) AND (col3 <= 13) AND (col1 <= 626.80) AND col0 >= 362) OR ((col3 > 95)) AND ((col4 >= 853.52) AND col0 IS NULL)) OR col3 >= 995 OR col0 IN (999,823,762,729,912,303) OR col4 <= 360.43 AND col0 <= 161 OR col0 > 882))) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col1 IN (251.46,161.18,26.98,725.14,623.64) OR col3 = 515 OR (((((col4 IN (221.81))) AND col0 IN (SELECT col3 FROM tab1 WHERE col0 > 586 AND col0 > 228) OR (col0 < 38 AND (((col4 < 838.64 AND col0 > 439)) AND (col3 < 291) AND (col3 <= 13) AND (col1 <= 626.80) AND col0 >= 362) OR ((col3 > 95)) AND ((col4 >= 853.52) AND col0 IS NULL)) OR col3 >= 995 OR col0 IN (999,823,762,729,912,303) OR col4 <= 360.43 AND col0 <= 161 OR col0 > 882))))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_128 UNION ALL SELECT pk, col0 FROM view_2_tab1_128
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col1 IN (251.46,161.18,26.98,725.14,623.64) OR col3 = 515 OR (((((col4 IN (221.81))) AND col0 IN (SELECT col3 FROM tab1 WHERE col0 > 586 AND col0 > 228) OR (col0 < 38 AND (((col4 < 838.64 AND col0 > 439)) AND (col3 < 291) AND (col3 <= 13) AND (col1 <= 626.80) AND col0 >= 362) OR ((col3 > 95)) AND ((col4 >= 853.52) AND col0 IS NULL)) OR col3 >= 995 OR col0 IN (999,823,762,729,912,303) OR col4 <= 360.43 AND col0 <= 161 OR col0 > 882))) UNION SELECT pk, col0 FROM tab1 WHERE NOT (col1 IN (251.46,161.18,26.98,725.14,623.64) OR col3 = 515 OR (((((col4 IN (221.81))) AND col0 IN (SELECT col3 FROM tab1 WHERE col0 > 586 AND col0 > 228) OR (col0 < 38 AND (((col4 < 838.64 AND col0 > 439)) AND (col3 < 291) AND (col3 <= 13) AND (col1 <= 626.80) AND col0 >= 362) OR ((col3 > 95)) AND ((col4 >= 853.52) AND col0 IS NULL)) OR col3 >= 995 OR col0 IN (999,823,762,729,912,303) OR col4 <= 360.43 AND col0 <= 161 OR col0 > 882))))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_128 UNION SELECT pk, col0 FROM view_2_tab1_128
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-5100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col1 IN (251.46,161.18,26.98,725.14,623.64) OR col3 = 515 OR (((((col4 IN (221.81))) AND col0 IN (SELECT col3 FROM tab1 WHERE col0 > 586 AND col0 > 228) OR (col0 < 38 AND (((col4 < 838.64 AND col0 > 439)) AND (col3 < 291) AND (col3 <= 13) AND (col1 <= 626.80) AND col0 >= 362) OR ((col3 > 95)) AND ((col4 >= 853.52) AND col0 IS NULL)) OR col3 >= 995 OR col0 IN (999,823,762,729,912,303) OR col4 <= 360.43 AND col0 <= 161 OR col0 > 882))) ) AS tab1_128
----
21 values hashing to 751f31a580ac0598030bf541f659ff8f

query I rowsort label-5100-3
SELECT * FROM view_3_tab1_128
----
21 values hashing to 751f31a580ac0598030bf541f659ff8f

query I rowsort label-5100-3
SELECT pk FROM tab1 WHERE col1 IN (251.46,161.18,26.98,725.14,623.64) OR col3 = 515 OR (((((col4 IN (221.81))) AND col0 IN (SELECT col3 FROM tab1 WHERE col0 > 586 AND col0 > 228) OR (col0 < 38 AND (((col4 < 838.64 AND col0 > 439)) AND (col3 < 291) AND (col3 <= 13) AND (col1 <= 626.80) AND col0 >= 362) OR ((col3 > 95)) AND ((col4 >= 853.52) AND col0 IS NULL)) OR col3 >= 995 OR col0 IN (999,823,762,729,912,303) OR col4 <= 360.43 AND col0 <= 161 OR col0 > 882)))
----
21 values hashing to 751f31a580ac0598030bf541f659ff8f

statement ok
DROP VIEW view_1_tab1_128

statement ok
DROP VIEW view_2_tab1_128

statement ok
DROP VIEW view_3_tab1_128

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_128') DROP VIEW view_1_tab2_128

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_128

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_128') DROP VIEW view_2_tab2_128

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_128

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_128') DROP VIEW view_3_tab2_128

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_128

statement ok
CREATE VIEW view_1_tab2_128 AS SELECT pk, col0 FROM tab2 WHERE col1 IN (251.46,161.18,26.98,725.14,623.64) OR col3 = 515 OR (((((col4 IN (221.81))) AND col0 IN (SELECT col3 FROM tab2 WHERE col0 > 586 AND col0 > 228) OR (col0 < 38 AND (((col4 < 838.64 AND col0 > 439)) AND (col3 < 291) AND (col3 <= 13) AND (col1 <= 626.80) AND col0 >= 362) OR ((col3 > 95)) AND ((col4 >= 853.52) AND col0 IS NULL)) OR col3 >= 995 OR col0 IN (999,823,762,729,912,303) OR col4 <= 360.43 AND col0 <= 161 OR col0 > 882)))

statement ok
CREATE VIEW view_2_tab2_128 AS SELECT pk, col0 FROM tab2 WHERE NOT (col1 IN (251.46,161.18,26.98,725.14,623.64) OR col3 = 515 OR (((((col4 IN (221.81))) AND col0 IN (SELECT col3 FROM tab2 WHERE col0 > 586 AND col0 > 228) OR (col0 < 38 AND (((col4 < 838.64 AND col0 > 439)) AND (col3 < 291) AND (col3 <= 13) AND (col1 <= 626.80) AND col0 >= 362) OR ((col3 > 95)) AND ((col4 >= 853.52) AND col0 IS NULL)) OR col3 >= 995 OR col0 IN (999,823,762,729,912,303) OR col4 <= 360.43 AND col0 <= 161 OR col0 > 882))))

statement ok
CREATE VIEW view_3_tab2_128 AS SELECT pk FROM view_1_tab2_128

query II rowsort label-5100-1
SELECT pk, col0 FROM tab2 WHERE col1 IN (251.46,161.18,26.98,725.14,623.64) OR col3 = 515 OR (((((col4 IN (221.81))) AND col0 IN (SELECT col3 FROM tab2 WHERE col0 > 586 AND col0 > 228) OR (col0 < 38 AND (((col4 < 838.64 AND col0 > 439)) AND (col3 < 291) AND (col3 <= 13) AND (col1 <= 626.80) AND col0 >= 362) OR ((col3 > 95)) AND ((col4 >= 853.52) AND col0 IS NULL)) OR col3 >= 995 OR col0 IN (999,823,762,729,912,303) OR col4 <= 360.43 AND col0 <= 161 OR col0 > 882)))
----
42 values hashing to e9b56a1e3345c116f85cc3499d1a2815

query II rowsort label-5100-2
SELECT pk, col0 FROM tab2 WHERE NOT (col1 IN (251.46,161.18,26.98,725.14,623.64) OR col3 = 515 OR (((((col4 IN (221.81))) AND col0 IN (SELECT col3 FROM tab2 WHERE col0 > 586 AND col0 > 228) OR (col0 < 38 AND (((col4 < 838.64 AND col0 > 439)) AND (col3 < 291) AND (col3 <= 13) AND (col1 <= 626.80) AND col0 >= 362) OR ((col3 > 95)) AND ((col4 >= 853.52) AND col0 IS NULL)) OR col3 >= 995 OR col0 IN (999,823,762,729,912,303) OR col4 <= 360.43 AND col0 <= 161 OR col0 > 882))))
----
158 values hashing to d4ee46d9859408b0466959b46ed14537

query II rowsort label-5100-1
SELECT pk, col0 FROM view_1_tab2_128
----
42 values hashing to e9b56a1e3345c116f85cc3499d1a2815

query II rowsort label-5100-2
SELECT pk, col0 FROM view_2_tab2_128
----
158 values hashing to d4ee46d9859408b0466959b46ed14537

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col1 IN (251.46,161.18,26.98,725.14,623.64) OR col3 = 515 OR (((((col4 IN (221.81))) AND col0 IN (SELECT col3 FROM tab2 WHERE col0 > 586 AND col0 > 228) OR (col0 < 38 AND (((col4 < 838.64 AND col0 > 439)) AND (col3 < 291) AND (col3 <= 13) AND (col1 <= 626.80) AND col0 >= 362) OR ((col3 > 95)) AND ((col4 >= 853.52) AND col0 IS NULL)) OR col3 >= 995 OR col0 IN (999,823,762,729,912,303) OR col4 <= 360.43 AND col0 <= 161 OR col0 > 882))) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col1 IN (251.46,161.18,26.98,725.14,623.64) OR col3 = 515 OR (((((col4 IN (221.81))) AND col0 IN (SELECT col3 FROM tab2 WHERE col0 > 586 AND col0 > 228) OR (col0 < 38 AND (((col4 < 838.64 AND col0 > 439)) AND (col3 < 291) AND (col3 <= 13) AND (col1 <= 626.80) AND col0 >= 362) OR ((col3 > 95)) AND ((col4 >= 853.52) AND col0 IS NULL)) OR col3 >= 995 OR col0 IN (999,823,762,729,912,303) OR col4 <= 360.43 AND col0 <= 161 OR col0 > 882))))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_128 UNION ALL SELECT pk, col0 FROM view_2_tab2_128
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col1 IN (251.46,161.18,26.98,725.14,623.64) OR col3 = 515 OR (((((col4 IN (221.81))) AND col0 IN (SELECT col3 FROM tab2 WHERE col0 > 586 AND col0 > 228) OR (col0 < 38 AND (((col4 < 838.64 AND col0 > 439)) AND (col3 < 291) AND (col3 <= 13) AND (col1 <= 626.80) AND col0 >= 362) OR ((col3 > 95)) AND ((col4 >= 853.52) AND col0 IS NULL)) OR col3 >= 995 OR col0 IN (999,823,762,729,912,303) OR col4 <= 360.43 AND col0 <= 161 OR col0 > 882))) UNION SELECT pk, col0 FROM tab2 WHERE NOT (col1 IN (251.46,161.18,26.98,725.14,623.64) OR col3 = 515 OR (((((col4 IN (221.81))) AND col0 IN (SELECT col3 FROM tab2 WHERE col0 > 586 AND col0 > 228) OR (col0 < 38 AND (((col4 < 838.64 AND col0 > 439)) AND (col3 < 291) AND (col3 <= 13) AND (col1 <= 626.80) AND col0 >= 362) OR ((col3 > 95)) AND ((col4 >= 853.52) AND col0 IS NULL)) OR col3 >= 995 OR col0 IN (999,823,762,729,912,303) OR col4 <= 360.43 AND col0 <= 161 OR col0 > 882))))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_128 UNION SELECT pk, col0 FROM view_2_tab2_128
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-5100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col1 IN (251.46,161.18,26.98,725.14,623.64) OR col3 = 515 OR (((((col4 IN (221.81))) AND col0 IN (SELECT col3 FROM tab2 WHERE col0 > 586 AND col0 > 228) OR (col0 < 38 AND (((col4 < 838.64 AND col0 > 439)) AND (col3 < 291) AND (col3 <= 13) AND (col1 <= 626.80) AND col0 >= 362) OR ((col3 > 95)) AND ((col4 >= 853.52) AND col0 IS NULL)) OR col3 >= 995 OR col0 IN (999,823,762,729,912,303) OR col4 <= 360.43 AND col0 <= 161 OR col0 > 882))) ) AS tab2_128
----
21 values hashing to 751f31a580ac0598030bf541f659ff8f

query I rowsort label-5100-3
SELECT * FROM view_3_tab2_128
----
21 values hashing to 751f31a580ac0598030bf541f659ff8f

query I rowsort label-5100-3
SELECT pk FROM tab2 WHERE col1 IN (251.46,161.18,26.98,725.14,623.64) OR col3 = 515 OR (((((col4 IN (221.81))) AND col0 IN (SELECT col3 FROM tab2 WHERE col0 > 586 AND col0 > 228) OR (col0 < 38 AND (((col4 < 838.64 AND col0 > 439)) AND (col3 < 291) AND (col3 <= 13) AND (col1 <= 626.80) AND col0 >= 362) OR ((col3 > 95)) AND ((col4 >= 853.52) AND col0 IS NULL)) OR col3 >= 995 OR col0 IN (999,823,762,729,912,303) OR col4 <= 360.43 AND col0 <= 161 OR col0 > 882)))
----
21 values hashing to 751f31a580ac0598030bf541f659ff8f

statement ok
DROP VIEW view_1_tab2_128

statement ok
DROP VIEW view_2_tab2_128

statement ok
DROP VIEW view_3_tab2_128

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_128') DROP VIEW view_1_tab3_128

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_128

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_128') DROP VIEW view_2_tab3_128

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_128

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_128') DROP VIEW view_3_tab3_128

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_128

statement ok
CREATE VIEW view_1_tab3_128 AS SELECT pk, col0 FROM tab3 WHERE col1 IN (251.46,161.18,26.98,725.14,623.64) OR col3 = 515 OR (((((col4 IN (221.81))) AND col0 IN (SELECT col3 FROM tab3 WHERE col0 > 586 AND col0 > 228) OR (col0 < 38 AND (((col4 < 838.64 AND col0 > 439)) AND (col3 < 291) AND (col3 <= 13) AND (col1 <= 626.80) AND col0 >= 362) OR ((col3 > 95)) AND ((col4 >= 853.52) AND col0 IS NULL)) OR col3 >= 995 OR col0 IN (999,823,762,729,912,303) OR col4 <= 360.43 AND col0 <= 161 OR col0 > 882)))

statement ok
CREATE VIEW view_2_tab3_128 AS SELECT pk, col0 FROM tab3 WHERE NOT (col1 IN (251.46,161.18,26.98,725.14,623.64) OR col3 = 515 OR (((((col4 IN (221.81))) AND col0 IN (SELECT col3 FROM tab3 WHERE col0 > 586 AND col0 > 228) OR (col0 < 38 AND (((col4 < 838.64 AND col0 > 439)) AND (col3 < 291) AND (col3 <= 13) AND (col1 <= 626.80) AND col0 >= 362) OR ((col3 > 95)) AND ((col4 >= 853.52) AND col0 IS NULL)) OR col3 >= 995 OR col0 IN (999,823,762,729,912,303) OR col4 <= 360.43 AND col0 <= 161 OR col0 > 882))))

statement ok
CREATE VIEW view_3_tab3_128 AS SELECT pk FROM view_1_tab3_128

query II rowsort label-5100-1
SELECT pk, col0 FROM tab3 WHERE col1 IN (251.46,161.18,26.98,725.14,623.64) OR col3 = 515 OR (((((col4 IN (221.81))) AND col0 IN (SELECT col3 FROM tab3 WHERE col0 > 586 AND col0 > 228) OR (col0 < 38 AND (((col4 < 838.64 AND col0 > 439)) AND (col3 < 291) AND (col3 <= 13) AND (col1 <= 626.80) AND col0 >= 362) OR ((col3 > 95)) AND ((col4 >= 853.52) AND col0 IS NULL)) OR col3 >= 995 OR col0 IN (999,823,762,729,912,303) OR col4 <= 360.43 AND col0 <= 161 OR col0 > 882)))
----
42 values hashing to e9b56a1e3345c116f85cc3499d1a2815

query II rowsort label-5100-2
SELECT pk, col0 FROM tab3 WHERE NOT (col1 IN (251.46,161.18,26.98,725.14,623.64) OR col3 = 515 OR (((((col4 IN (221.81))) AND col0 IN (SELECT col3 FROM tab3 WHERE col0 > 586 AND col0 > 228) OR (col0 < 38 AND (((col4 < 838.64 AND col0 > 439)) AND (col3 < 291) AND (col3 <= 13) AND (col1 <= 626.80) AND col0 >= 362) OR ((col3 > 95)) AND ((col4 >= 853.52) AND col0 IS NULL)) OR col3 >= 995 OR col0 IN (999,823,762,729,912,303) OR col4 <= 360.43 AND col0 <= 161 OR col0 > 882))))
----
158 values hashing to d4ee46d9859408b0466959b46ed14537

query II rowsort label-5100-1
SELECT pk, col0 FROM view_1_tab3_128
----
42 values hashing to e9b56a1e3345c116f85cc3499d1a2815

query II rowsort label-5100-2
SELECT pk, col0 FROM view_2_tab3_128
----
158 values hashing to d4ee46d9859408b0466959b46ed14537

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col1 IN (251.46,161.18,26.98,725.14,623.64) OR col3 = 515 OR (((((col4 IN (221.81))) AND col0 IN (SELECT col3 FROM tab3 WHERE col0 > 586 AND col0 > 228) OR (col0 < 38 AND (((col4 < 838.64 AND col0 > 439)) AND (col3 < 291) AND (col3 <= 13) AND (col1 <= 626.80) AND col0 >= 362) OR ((col3 > 95)) AND ((col4 >= 853.52) AND col0 IS NULL)) OR col3 >= 995 OR col0 IN (999,823,762,729,912,303) OR col4 <= 360.43 AND col0 <= 161 OR col0 > 882))) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col1 IN (251.46,161.18,26.98,725.14,623.64) OR col3 = 515 OR (((((col4 IN (221.81))) AND col0 IN (SELECT col3 FROM tab3 WHERE col0 > 586 AND col0 > 228) OR (col0 < 38 AND (((col4 < 838.64 AND col0 > 439)) AND (col3 < 291) AND (col3 <= 13) AND (col1 <= 626.80) AND col0 >= 362) OR ((col3 > 95)) AND ((col4 >= 853.52) AND col0 IS NULL)) OR col3 >= 995 OR col0 IN (999,823,762,729,912,303) OR col4 <= 360.43 AND col0 <= 161 OR col0 > 882))))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_128 UNION ALL SELECT pk, col0 FROM view_2_tab3_128
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col1 IN (251.46,161.18,26.98,725.14,623.64) OR col3 = 515 OR (((((col4 IN (221.81))) AND col0 IN (SELECT col3 FROM tab3 WHERE col0 > 586 AND col0 > 228) OR (col0 < 38 AND (((col4 < 838.64 AND col0 > 439)) AND (col3 < 291) AND (col3 <= 13) AND (col1 <= 626.80) AND col0 >= 362) OR ((col3 > 95)) AND ((col4 >= 853.52) AND col0 IS NULL)) OR col3 >= 995 OR col0 IN (999,823,762,729,912,303) OR col4 <= 360.43 AND col0 <= 161 OR col0 > 882))) UNION SELECT pk, col0 FROM tab3 WHERE NOT (col1 IN (251.46,161.18,26.98,725.14,623.64) OR col3 = 515 OR (((((col4 IN (221.81))) AND col0 IN (SELECT col3 FROM tab3 WHERE col0 > 586 AND col0 > 228) OR (col0 < 38 AND (((col4 < 838.64 AND col0 > 439)) AND (col3 < 291) AND (col3 <= 13) AND (col1 <= 626.80) AND col0 >= 362) OR ((col3 > 95)) AND ((col4 >= 853.52) AND col0 IS NULL)) OR col3 >= 995 OR col0 IN (999,823,762,729,912,303) OR col4 <= 360.43 AND col0 <= 161 OR col0 > 882))))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_128 UNION SELECT pk, col0 FROM view_2_tab3_128
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-5100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col1 IN (251.46,161.18,26.98,725.14,623.64) OR col3 = 515 OR (((((col4 IN (221.81))) AND col0 IN (SELECT col3 FROM tab3 WHERE col0 > 586 AND col0 > 228) OR (col0 < 38 AND (((col4 < 838.64 AND col0 > 439)) AND (col3 < 291) AND (col3 <= 13) AND (col1 <= 626.80) AND col0 >= 362) OR ((col3 > 95)) AND ((col4 >= 853.52) AND col0 IS NULL)) OR col3 >= 995 OR col0 IN (999,823,762,729,912,303) OR col4 <= 360.43 AND col0 <= 161 OR col0 > 882))) ) AS tab3_128
----
21 values hashing to 751f31a580ac0598030bf541f659ff8f

query I rowsort label-5100-3
SELECT * FROM view_3_tab3_128
----
21 values hashing to 751f31a580ac0598030bf541f659ff8f

query I rowsort label-5100-3
SELECT pk FROM tab3 WHERE col1 IN (251.46,161.18,26.98,725.14,623.64) OR col3 = 515 OR (((((col4 IN (221.81))) AND col0 IN (SELECT col3 FROM tab3 WHERE col0 > 586 AND col0 > 228) OR (col0 < 38 AND (((col4 < 838.64 AND col0 > 439)) AND (col3 < 291) AND (col3 <= 13) AND (col1 <= 626.80) AND col0 >= 362) OR ((col3 > 95)) AND ((col4 >= 853.52) AND col0 IS NULL)) OR col3 >= 995 OR col0 IN (999,823,762,729,912,303) OR col4 <= 360.43 AND col0 <= 161 OR col0 > 882)))
----
21 values hashing to 751f31a580ac0598030bf541f659ff8f

statement ok
DROP VIEW view_1_tab3_128

statement ok
DROP VIEW view_2_tab3_128

statement ok
DROP VIEW view_3_tab3_128

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_128') DROP VIEW view_1_tab4_128

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_128

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_128') DROP VIEW view_2_tab4_128

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_128

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_128') DROP VIEW view_3_tab4_128

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_128

statement ok
CREATE VIEW view_1_tab4_128 AS SELECT pk, col0 FROM tab4 WHERE col1 IN (251.46,161.18,26.98,725.14,623.64) OR col3 = 515 OR (((((col4 IN (221.81))) AND col0 IN (SELECT col3 FROM tab4 WHERE col0 > 586 AND col0 > 228) OR (col0 < 38 AND (((col4 < 838.64 AND col0 > 439)) AND (col3 < 291) AND (col3 <= 13) AND (col1 <= 626.80) AND col0 >= 362) OR ((col3 > 95)) AND ((col4 >= 853.52) AND col0 IS NULL)) OR col3 >= 995 OR col0 IN (999,823,762,729,912,303) OR col4 <= 360.43 AND col0 <= 161 OR col0 > 882)))

statement ok
CREATE VIEW view_2_tab4_128 AS SELECT pk, col0 FROM tab4 WHERE NOT (col1 IN (251.46,161.18,26.98,725.14,623.64) OR col3 = 515 OR (((((col4 IN (221.81))) AND col0 IN (SELECT col3 FROM tab4 WHERE col0 > 586 AND col0 > 228) OR (col0 < 38 AND (((col4 < 838.64 AND col0 > 439)) AND (col3 < 291) AND (col3 <= 13) AND (col1 <= 626.80) AND col0 >= 362) OR ((col3 > 95)) AND ((col4 >= 853.52) AND col0 IS NULL)) OR col3 >= 995 OR col0 IN (999,823,762,729,912,303) OR col4 <= 360.43 AND col0 <= 161 OR col0 > 882))))

statement ok
CREATE VIEW view_3_tab4_128 AS SELECT pk FROM view_1_tab4_128

query II rowsort label-5100-1
SELECT pk, col0 FROM tab4 WHERE col1 IN (251.46,161.18,26.98,725.14,623.64) OR col3 = 515 OR (((((col4 IN (221.81))) AND col0 IN (SELECT col3 FROM tab4 WHERE col0 > 586 AND col0 > 228) OR (col0 < 38 AND (((col4 < 838.64 AND col0 > 439)) AND (col3 < 291) AND (col3 <= 13) AND (col1 <= 626.80) AND col0 >= 362) OR ((col3 > 95)) AND ((col4 >= 853.52) AND col0 IS NULL)) OR col3 >= 995 OR col0 IN (999,823,762,729,912,303) OR col4 <= 360.43 AND col0 <= 161 OR col0 > 882)))
----
42 values hashing to e9b56a1e3345c116f85cc3499d1a2815

query II rowsort label-5100-2
SELECT pk, col0 FROM tab4 WHERE NOT (col1 IN (251.46,161.18,26.98,725.14,623.64) OR col3 = 515 OR (((((col4 IN (221.81))) AND col0 IN (SELECT col3 FROM tab4 WHERE col0 > 586 AND col0 > 228) OR (col0 < 38 AND (((col4 < 838.64 AND col0 > 439)) AND (col3 < 291) AND (col3 <= 13) AND (col1 <= 626.80) AND col0 >= 362) OR ((col3 > 95)) AND ((col4 >= 853.52) AND col0 IS NULL)) OR col3 >= 995 OR col0 IN (999,823,762,729,912,303) OR col4 <= 360.43 AND col0 <= 161 OR col0 > 882))))
----
158 values hashing to d4ee46d9859408b0466959b46ed14537

query II rowsort label-5100-1
SELECT pk, col0 FROM view_1_tab4_128
----
42 values hashing to e9b56a1e3345c116f85cc3499d1a2815

query II rowsort label-5100-2
SELECT pk, col0 FROM view_2_tab4_128
----
158 values hashing to d4ee46d9859408b0466959b46ed14537

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col1 IN (251.46,161.18,26.98,725.14,623.64) OR col3 = 515 OR (((((col4 IN (221.81))) AND col0 IN (SELECT col3 FROM tab4 WHERE col0 > 586 AND col0 > 228) OR (col0 < 38 AND (((col4 < 838.64 AND col0 > 439)) AND (col3 < 291) AND (col3 <= 13) AND (col1 <= 626.80) AND col0 >= 362) OR ((col3 > 95)) AND ((col4 >= 853.52) AND col0 IS NULL)) OR col3 >= 995 OR col0 IN (999,823,762,729,912,303) OR col4 <= 360.43 AND col0 <= 161 OR col0 > 882))) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col1 IN (251.46,161.18,26.98,725.14,623.64) OR col3 = 515 OR (((((col4 IN (221.81))) AND col0 IN (SELECT col3 FROM tab4 WHERE col0 > 586 AND col0 > 228) OR (col0 < 38 AND (((col4 < 838.64 AND col0 > 439)) AND (col3 < 291) AND (col3 <= 13) AND (col1 <= 626.80) AND col0 >= 362) OR ((col3 > 95)) AND ((col4 >= 853.52) AND col0 IS NULL)) OR col3 >= 995 OR col0 IN (999,823,762,729,912,303) OR col4 <= 360.43 AND col0 <= 161 OR col0 > 882))))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_128 UNION ALL SELECT pk, col0 FROM view_2_tab4_128
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col1 IN (251.46,161.18,26.98,725.14,623.64) OR col3 = 515 OR (((((col4 IN (221.81))) AND col0 IN (SELECT col3 FROM tab4 WHERE col0 > 586 AND col0 > 228) OR (col0 < 38 AND (((col4 < 838.64 AND col0 > 439)) AND (col3 < 291) AND (col3 <= 13) AND (col1 <= 626.80) AND col0 >= 362) OR ((col3 > 95)) AND ((col4 >= 853.52) AND col0 IS NULL)) OR col3 >= 995 OR col0 IN (999,823,762,729,912,303) OR col4 <= 360.43 AND col0 <= 161 OR col0 > 882))) UNION SELECT pk, col0 FROM tab4 WHERE NOT (col1 IN (251.46,161.18,26.98,725.14,623.64) OR col3 = 515 OR (((((col4 IN (221.81))) AND col0 IN (SELECT col3 FROM tab4 WHERE col0 > 586 AND col0 > 228) OR (col0 < 38 AND (((col4 < 838.64 AND col0 > 439)) AND (col3 < 291) AND (col3 <= 13) AND (col1 <= 626.80) AND col0 >= 362) OR ((col3 > 95)) AND ((col4 >= 853.52) AND col0 IS NULL)) OR col3 >= 995 OR col0 IN (999,823,762,729,912,303) OR col4 <= 360.43 AND col0 <= 161 OR col0 > 882))))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_128 UNION SELECT pk, col0 FROM view_2_tab4_128
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-5100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col1 IN (251.46,161.18,26.98,725.14,623.64) OR col3 = 515 OR (((((col4 IN (221.81))) AND col0 IN (SELECT col3 FROM tab4 WHERE col0 > 586 AND col0 > 228) OR (col0 < 38 AND (((col4 < 838.64 AND col0 > 439)) AND (col3 < 291) AND (col3 <= 13) AND (col1 <= 626.80) AND col0 >= 362) OR ((col3 > 95)) AND ((col4 >= 853.52) AND col0 IS NULL)) OR col3 >= 995 OR col0 IN (999,823,762,729,912,303) OR col4 <= 360.43 AND col0 <= 161 OR col0 > 882))) ) AS tab4_128
----
21 values hashing to 751f31a580ac0598030bf541f659ff8f

query I rowsort label-5100-3
SELECT * FROM view_3_tab4_128
----
21 values hashing to 751f31a580ac0598030bf541f659ff8f

query I rowsort label-5100-3
SELECT pk FROM tab4 WHERE col1 IN (251.46,161.18,26.98,725.14,623.64) OR col3 = 515 OR (((((col4 IN (221.81))) AND col0 IN (SELECT col3 FROM tab4 WHERE col0 > 586 AND col0 > 228) OR (col0 < 38 AND (((col4 < 838.64 AND col0 > 439)) AND (col3 < 291) AND (col3 <= 13) AND (col1 <= 626.80) AND col0 >= 362) OR ((col3 > 95)) AND ((col4 >= 853.52) AND col0 IS NULL)) OR col3 >= 995 OR col0 IN (999,823,762,729,912,303) OR col4 <= 360.43 AND col0 <= 161 OR col0 > 882)))
----
21 values hashing to 751f31a580ac0598030bf541f659ff8f

statement ok
DROP VIEW view_1_tab4_128

statement ok
DROP VIEW view_2_tab4_128

statement ok
DROP VIEW view_3_tab4_128

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_129') DROP VIEW view_1_tab0_129

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_129

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_129') DROP VIEW view_2_tab0_129

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_129

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_129') DROP VIEW view_3_tab0_129

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_129

statement ok
CREATE VIEW view_1_tab0_129 AS SELECT pk, col0 FROM tab0 WHERE ((col0 IS NULL AND (col4 >= 979.17)))

statement ok
CREATE VIEW view_2_tab0_129 AS SELECT pk, col0 FROM tab0 WHERE NOT (((col0 IS NULL AND (col4 >= 979.17))))

statement ok
CREATE VIEW view_3_tab0_129 AS SELECT pk FROM view_1_tab0_129

query II rowsort label-5200-1
SELECT pk, col0 FROM tab0 WHERE ((col0 IS NULL AND (col4 >= 979.17)))
----

query II rowsort label-5200-2
SELECT pk, col0 FROM tab0 WHERE NOT (((col0 IS NULL AND (col4 >= 979.17))))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-5200-1
SELECT pk, col0 FROM view_1_tab0_129
----

query II rowsort label-5200-2
SELECT pk, col0 FROM view_2_tab0_129
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE ((col0 IS NULL AND (col4 >= 979.17))) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (((col0 IS NULL AND (col4 >= 979.17))))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_129 UNION ALL SELECT pk, col0 FROM view_2_tab0_129
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE ((col0 IS NULL AND (col4 >= 979.17))) UNION SELECT pk, col0 FROM tab0 WHERE NOT (((col0 IS NULL AND (col4 >= 979.17))))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_129 UNION SELECT pk, col0 FROM view_2_tab0_129
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-5200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE ((col0 IS NULL AND (col4 >= 979.17))) ) AS tab0_129
----

query I rowsort label-5200-3
SELECT * FROM view_3_tab0_129
----

query I rowsort label-5200-3
SELECT pk FROM tab0 WHERE ((col0 IS NULL AND (col4 >= 979.17)))
----

statement ok
DROP VIEW view_1_tab0_129

statement ok
DROP VIEW view_2_tab0_129

statement ok
DROP VIEW view_3_tab0_129

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_129') DROP VIEW view_1_tab1_129

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_129

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_129') DROP VIEW view_2_tab1_129

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_129

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_129') DROP VIEW view_3_tab1_129

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_129

statement ok
CREATE VIEW view_1_tab1_129 AS SELECT pk, col0 FROM tab1 WHERE ((col0 IS NULL AND (col4 >= 979.17)))

statement ok
CREATE VIEW view_2_tab1_129 AS SELECT pk, col0 FROM tab1 WHERE NOT (((col0 IS NULL AND (col4 >= 979.17))))

statement ok
CREATE VIEW view_3_tab1_129 AS SELECT pk FROM view_1_tab1_129

query II rowsort label-5200-1
SELECT pk, col0 FROM tab1 WHERE ((col0 IS NULL AND (col4 >= 979.17)))
----

query II rowsort label-5200-2
SELECT pk, col0 FROM tab1 WHERE NOT (((col0 IS NULL AND (col4 >= 979.17))))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-5200-1
SELECT pk, col0 FROM view_1_tab1_129
----

query II rowsort label-5200-2
SELECT pk, col0 FROM view_2_tab1_129
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE ((col0 IS NULL AND (col4 >= 979.17))) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (((col0 IS NULL AND (col4 >= 979.17))))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_129 UNION ALL SELECT pk, col0 FROM view_2_tab1_129
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE ((col0 IS NULL AND (col4 >= 979.17))) UNION SELECT pk, col0 FROM tab1 WHERE NOT (((col0 IS NULL AND (col4 >= 979.17))))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_129 UNION SELECT pk, col0 FROM view_2_tab1_129
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-5200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE ((col0 IS NULL AND (col4 >= 979.17))) ) AS tab1_129
----

query I rowsort label-5200-3
SELECT * FROM view_3_tab1_129
----

query I rowsort label-5200-3
SELECT pk FROM tab1 WHERE ((col0 IS NULL AND (col4 >= 979.17)))
----

statement ok
DROP VIEW view_1_tab1_129

statement ok
DROP VIEW view_2_tab1_129

statement ok
DROP VIEW view_3_tab1_129

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_129') DROP VIEW view_1_tab2_129

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_129

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_129') DROP VIEW view_2_tab2_129

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_129

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_129') DROP VIEW view_3_tab2_129

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_129

statement ok
CREATE VIEW view_1_tab2_129 AS SELECT pk, col0 FROM tab2 WHERE ((col0 IS NULL AND (col4 >= 979.17)))

statement ok
CREATE VIEW view_2_tab2_129 AS SELECT pk, col0 FROM tab2 WHERE NOT (((col0 IS NULL AND (col4 >= 979.17))))

statement ok
CREATE VIEW view_3_tab2_129 AS SELECT pk FROM view_1_tab2_129

query II rowsort label-5200-1
SELECT pk, col0 FROM tab2 WHERE ((col0 IS NULL AND (col4 >= 979.17)))
----

query II rowsort label-5200-2
SELECT pk, col0 FROM tab2 WHERE NOT (((col0 IS NULL AND (col4 >= 979.17))))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-5200-1
SELECT pk, col0 FROM view_1_tab2_129
----

query II rowsort label-5200-2
SELECT pk, col0 FROM view_2_tab2_129
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE ((col0 IS NULL AND (col4 >= 979.17))) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (((col0 IS NULL AND (col4 >= 979.17))))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_129 UNION ALL SELECT pk, col0 FROM view_2_tab2_129
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE ((col0 IS NULL AND (col4 >= 979.17))) UNION SELECT pk, col0 FROM tab2 WHERE NOT (((col0 IS NULL AND (col4 >= 979.17))))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_129 UNION SELECT pk, col0 FROM view_2_tab2_129
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-5200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE ((col0 IS NULL AND (col4 >= 979.17))) ) AS tab2_129
----

query I rowsort label-5200-3
SELECT * FROM view_3_tab2_129
----

query I rowsort label-5200-3
SELECT pk FROM tab2 WHERE ((col0 IS NULL AND (col4 >= 979.17)))
----

statement ok
DROP VIEW view_1_tab2_129

statement ok
DROP VIEW view_2_tab2_129

statement ok
DROP VIEW view_3_tab2_129

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_129') DROP VIEW view_1_tab3_129

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_129

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_129') DROP VIEW view_2_tab3_129

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_129

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_129') DROP VIEW view_3_tab3_129

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_129

statement ok
CREATE VIEW view_1_tab3_129 AS SELECT pk, col0 FROM tab3 WHERE ((col0 IS NULL AND (col4 >= 979.17)))

statement ok
CREATE VIEW view_2_tab3_129 AS SELECT pk, col0 FROM tab3 WHERE NOT (((col0 IS NULL AND (col4 >= 979.17))))

statement ok
CREATE VIEW view_3_tab3_129 AS SELECT pk FROM view_1_tab3_129

query II rowsort label-5200-1
SELECT pk, col0 FROM tab3 WHERE ((col0 IS NULL AND (col4 >= 979.17)))
----

query II rowsort label-5200-2
SELECT pk, col0 FROM tab3 WHERE NOT (((col0 IS NULL AND (col4 >= 979.17))))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-5200-1
SELECT pk, col0 FROM view_1_tab3_129
----

query II rowsort label-5200-2
SELECT pk, col0 FROM view_2_tab3_129
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE ((col0 IS NULL AND (col4 >= 979.17))) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (((col0 IS NULL AND (col4 >= 979.17))))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_129 UNION ALL SELECT pk, col0 FROM view_2_tab3_129
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE ((col0 IS NULL AND (col4 >= 979.17))) UNION SELECT pk, col0 FROM tab3 WHERE NOT (((col0 IS NULL AND (col4 >= 979.17))))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_129 UNION SELECT pk, col0 FROM view_2_tab3_129
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-5200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE ((col0 IS NULL AND (col4 >= 979.17))) ) AS tab3_129
----

query I rowsort label-5200-3
SELECT * FROM view_3_tab3_129
----

query I rowsort label-5200-3
SELECT pk FROM tab3 WHERE ((col0 IS NULL AND (col4 >= 979.17)))
----

statement ok
DROP VIEW view_1_tab3_129

statement ok
DROP VIEW view_2_tab3_129

statement ok
DROP VIEW view_3_tab3_129

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_129') DROP VIEW view_1_tab4_129

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_129

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_129') DROP VIEW view_2_tab4_129

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_129

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_129') DROP VIEW view_3_tab4_129

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_129

statement ok
CREATE VIEW view_1_tab4_129 AS SELECT pk, col0 FROM tab4 WHERE ((col0 IS NULL AND (col4 >= 979.17)))

statement ok
CREATE VIEW view_2_tab4_129 AS SELECT pk, col0 FROM tab4 WHERE NOT (((col0 IS NULL AND (col4 >= 979.17))))

statement ok
CREATE VIEW view_3_tab4_129 AS SELECT pk FROM view_1_tab4_129

query II rowsort label-5200-1
SELECT pk, col0 FROM tab4 WHERE ((col0 IS NULL AND (col4 >= 979.17)))
----

query II rowsort label-5200-2
SELECT pk, col0 FROM tab4 WHERE NOT (((col0 IS NULL AND (col4 >= 979.17))))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-5200-1
SELECT pk, col0 FROM view_1_tab4_129
----

query II rowsort label-5200-2
SELECT pk, col0 FROM view_2_tab4_129
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE ((col0 IS NULL AND (col4 >= 979.17))) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (((col0 IS NULL AND (col4 >= 979.17))))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_129 UNION ALL SELECT pk, col0 FROM view_2_tab4_129
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE ((col0 IS NULL AND (col4 >= 979.17))) UNION SELECT pk, col0 FROM tab4 WHERE NOT (((col0 IS NULL AND (col4 >= 979.17))))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_129 UNION SELECT pk, col0 FROM view_2_tab4_129
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-5200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE ((col0 IS NULL AND (col4 >= 979.17))) ) AS tab4_129
----

query I rowsort label-5200-3
SELECT * FROM view_3_tab4_129
----

query I rowsort label-5200-3
SELECT pk FROM tab4 WHERE ((col0 IS NULL AND (col4 >= 979.17)))
----

statement ok
DROP VIEW view_1_tab4_129

statement ok
DROP VIEW view_2_tab4_129

statement ok
DROP VIEW view_3_tab4_129

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_130') DROP VIEW view_1_tab0_130

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_130

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_130') DROP VIEW view_2_tab0_130

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_130

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_130') DROP VIEW view_3_tab0_130

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_130

statement ok
CREATE VIEW view_1_tab0_130 AS SELECT pk, col0 FROM tab0 WHERE (col4 = 874.67) AND col1 < 834.73

statement ok
CREATE VIEW view_2_tab0_130 AS SELECT pk, col0 FROM tab0 WHERE NOT ((col4 = 874.67) AND col1 < 834.73)

statement ok
CREATE VIEW view_3_tab0_130 AS SELECT pk FROM view_1_tab0_130

query II rowsort label-5300-1
SELECT pk, col0 FROM tab0 WHERE (col4 = 874.67) AND col1 < 834.73
----

query II rowsort label-5300-2
SELECT pk, col0 FROM tab0 WHERE NOT ((col4 = 874.67) AND col1 < 834.73)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-5300-1
SELECT pk, col0 FROM view_1_tab0_130
----

query II rowsort label-5300-2
SELECT pk, col0 FROM view_2_tab0_130
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col4 = 874.67) AND col1 < 834.73 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT ((col4 = 874.67) AND col1 < 834.73)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_130 UNION ALL SELECT pk, col0 FROM view_2_tab0_130
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col4 = 874.67) AND col1 < 834.73 UNION SELECT pk, col0 FROM tab0 WHERE NOT ((col4 = 874.67) AND col1 < 834.73)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_130 UNION SELECT pk, col0 FROM view_2_tab0_130
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-5300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE (col4 = 874.67) AND col1 < 834.73 ) AS tab0_130
----

query I rowsort label-5300-3
SELECT * FROM view_3_tab0_130
----

query I rowsort label-5300-3
SELECT pk FROM tab0 WHERE (col4 = 874.67) AND col1 < 834.73
----

statement ok
DROP VIEW view_1_tab0_130

statement ok
DROP VIEW view_2_tab0_130

statement ok
DROP VIEW view_3_tab0_130

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_130') DROP VIEW view_1_tab1_130

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_130

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_130') DROP VIEW view_2_tab1_130

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_130

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_130') DROP VIEW view_3_tab1_130

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_130

statement ok
CREATE VIEW view_1_tab1_130 AS SELECT pk, col0 FROM tab1 WHERE (col4 = 874.67) AND col1 < 834.73

statement ok
CREATE VIEW view_2_tab1_130 AS SELECT pk, col0 FROM tab1 WHERE NOT ((col4 = 874.67) AND col1 < 834.73)

statement ok
CREATE VIEW view_3_tab1_130 AS SELECT pk FROM view_1_tab1_130

query II rowsort label-5300-1
SELECT pk, col0 FROM tab1 WHERE (col4 = 874.67) AND col1 < 834.73
----

query II rowsort label-5300-2
SELECT pk, col0 FROM tab1 WHERE NOT ((col4 = 874.67) AND col1 < 834.73)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-5300-1
SELECT pk, col0 FROM view_1_tab1_130
----

query II rowsort label-5300-2
SELECT pk, col0 FROM view_2_tab1_130
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col4 = 874.67) AND col1 < 834.73 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT ((col4 = 874.67) AND col1 < 834.73)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_130 UNION ALL SELECT pk, col0 FROM view_2_tab1_130
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col4 = 874.67) AND col1 < 834.73 UNION SELECT pk, col0 FROM tab1 WHERE NOT ((col4 = 874.67) AND col1 < 834.73)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_130 UNION SELECT pk, col0 FROM view_2_tab1_130
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-5300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE (col4 = 874.67) AND col1 < 834.73 ) AS tab1_130
----

query I rowsort label-5300-3
SELECT * FROM view_3_tab1_130
----

query I rowsort label-5300-3
SELECT pk FROM tab1 WHERE (col4 = 874.67) AND col1 < 834.73
----

statement ok
DROP VIEW view_1_tab1_130

statement ok
DROP VIEW view_2_tab1_130

statement ok
DROP VIEW view_3_tab1_130

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_130') DROP VIEW view_1_tab2_130

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_130

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_130') DROP VIEW view_2_tab2_130

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_130

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_130') DROP VIEW view_3_tab2_130

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_130

statement ok
CREATE VIEW view_1_tab2_130 AS SELECT pk, col0 FROM tab2 WHERE (col4 = 874.67) AND col1 < 834.73

statement ok
CREATE VIEW view_2_tab2_130 AS SELECT pk, col0 FROM tab2 WHERE NOT ((col4 = 874.67) AND col1 < 834.73)

statement ok
CREATE VIEW view_3_tab2_130 AS SELECT pk FROM view_1_tab2_130

query II rowsort label-5300-1
SELECT pk, col0 FROM tab2 WHERE (col4 = 874.67) AND col1 < 834.73
----

query II rowsort label-5300-2
SELECT pk, col0 FROM tab2 WHERE NOT ((col4 = 874.67) AND col1 < 834.73)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-5300-1
SELECT pk, col0 FROM view_1_tab2_130
----

query II rowsort label-5300-2
SELECT pk, col0 FROM view_2_tab2_130
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col4 = 874.67) AND col1 < 834.73 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT ((col4 = 874.67) AND col1 < 834.73)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_130 UNION ALL SELECT pk, col0 FROM view_2_tab2_130
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col4 = 874.67) AND col1 < 834.73 UNION SELECT pk, col0 FROM tab2 WHERE NOT ((col4 = 874.67) AND col1 < 834.73)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_130 UNION SELECT pk, col0 FROM view_2_tab2_130
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-5300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE (col4 = 874.67) AND col1 < 834.73 ) AS tab2_130
----

query I rowsort label-5300-3
SELECT * FROM view_3_tab2_130
----

query I rowsort label-5300-3
SELECT pk FROM tab2 WHERE (col4 = 874.67) AND col1 < 834.73
----

statement ok
DROP VIEW view_1_tab2_130

statement ok
DROP VIEW view_2_tab2_130

statement ok
DROP VIEW view_3_tab2_130

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_130') DROP VIEW view_1_tab3_130

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_130

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_130') DROP VIEW view_2_tab3_130

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_130

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_130') DROP VIEW view_3_tab3_130

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_130

statement ok
CREATE VIEW view_1_tab3_130 AS SELECT pk, col0 FROM tab3 WHERE (col4 = 874.67) AND col1 < 834.73

statement ok
CREATE VIEW view_2_tab3_130 AS SELECT pk, col0 FROM tab3 WHERE NOT ((col4 = 874.67) AND col1 < 834.73)

statement ok
CREATE VIEW view_3_tab3_130 AS SELECT pk FROM view_1_tab3_130

query II rowsort label-5300-1
SELECT pk, col0 FROM tab3 WHERE (col4 = 874.67) AND col1 < 834.73
----

query II rowsort label-5300-2
SELECT pk, col0 FROM tab3 WHERE NOT ((col4 = 874.67) AND col1 < 834.73)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-5300-1
SELECT pk, col0 FROM view_1_tab3_130
----

query II rowsort label-5300-2
SELECT pk, col0 FROM view_2_tab3_130
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col4 = 874.67) AND col1 < 834.73 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT ((col4 = 874.67) AND col1 < 834.73)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_130 UNION ALL SELECT pk, col0 FROM view_2_tab3_130
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col4 = 874.67) AND col1 < 834.73 UNION SELECT pk, col0 FROM tab3 WHERE NOT ((col4 = 874.67) AND col1 < 834.73)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_130 UNION SELECT pk, col0 FROM view_2_tab3_130
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-5300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE (col4 = 874.67) AND col1 < 834.73 ) AS tab3_130
----

query I rowsort label-5300-3
SELECT * FROM view_3_tab3_130
----

query I rowsort label-5300-3
SELECT pk FROM tab3 WHERE (col4 = 874.67) AND col1 < 834.73
----

statement ok
DROP VIEW view_1_tab3_130

statement ok
DROP VIEW view_2_tab3_130

statement ok
DROP VIEW view_3_tab3_130

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_130') DROP VIEW view_1_tab4_130

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_130

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_130') DROP VIEW view_2_tab4_130

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_130

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_130') DROP VIEW view_3_tab4_130

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_130

statement ok
CREATE VIEW view_1_tab4_130 AS SELECT pk, col0 FROM tab4 WHERE (col4 = 874.67) AND col1 < 834.73

statement ok
CREATE VIEW view_2_tab4_130 AS SELECT pk, col0 FROM tab4 WHERE NOT ((col4 = 874.67) AND col1 < 834.73)

statement ok
CREATE VIEW view_3_tab4_130 AS SELECT pk FROM view_1_tab4_130

query II rowsort label-5300-1
SELECT pk, col0 FROM tab4 WHERE (col4 = 874.67) AND col1 < 834.73
----

query II rowsort label-5300-2
SELECT pk, col0 FROM tab4 WHERE NOT ((col4 = 874.67) AND col1 < 834.73)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-5300-1
SELECT pk, col0 FROM view_1_tab4_130
----

query II rowsort label-5300-2
SELECT pk, col0 FROM view_2_tab4_130
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col4 = 874.67) AND col1 < 834.73 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT ((col4 = 874.67) AND col1 < 834.73)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_130 UNION ALL SELECT pk, col0 FROM view_2_tab4_130
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col4 = 874.67) AND col1 < 834.73 UNION SELECT pk, col0 FROM tab4 WHERE NOT ((col4 = 874.67) AND col1 < 834.73)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_130 UNION SELECT pk, col0 FROM view_2_tab4_130
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-5300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE (col4 = 874.67) AND col1 < 834.73 ) AS tab4_130
----

query I rowsort label-5300-3
SELECT * FROM view_3_tab4_130
----

query I rowsort label-5300-3
SELECT pk FROM tab4 WHERE (col4 = 874.67) AND col1 < 834.73
----

statement ok
DROP VIEW view_1_tab4_130

statement ok
DROP VIEW view_2_tab4_130

statement ok
DROP VIEW view_3_tab4_130

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_131') DROP VIEW view_1_tab0_131

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_131

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_131') DROP VIEW view_2_tab0_131

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_131

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_131') DROP VIEW view_3_tab0_131

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_131

statement ok
CREATE VIEW view_1_tab0_131 AS SELECT pk, col0 FROM tab0 WHERE col4 >= 637.76 AND col4 IS NULL OR (((col1 BETWEEN 85.24 AND 451.54) AND col3 <= 217))

statement ok
CREATE VIEW view_2_tab0_131 AS SELECT pk, col0 FROM tab0 WHERE NOT (col4 >= 637.76 AND col4 IS NULL OR (((col1 BETWEEN 85.24 AND 451.54) AND col3 <= 217)))

statement ok
CREATE VIEW view_3_tab0_131 AS SELECT pk FROM view_1_tab0_131

query II rowsort label-5400-1
SELECT pk, col0 FROM tab0 WHERE col4 >= 637.76 AND col4 IS NULL OR (((col1 BETWEEN 85.24 AND 451.54) AND col3 <= 217))
----
40
619

query II rowsort label-5400-2
SELECT pk, col0 FROM tab0 WHERE NOT (col4 >= 637.76 AND col4 IS NULL OR (((col1 BETWEEN 85.24 AND 451.54) AND col3 <= 217)))
----
198 values hashing to aad252da709ac3adb3adae55300526e1

query II rowsort label-5400-1
SELECT pk, col0 FROM view_1_tab0_131
----
40
619

query II rowsort label-5400-2
SELECT pk, col0 FROM view_2_tab0_131
----
198 values hashing to aad252da709ac3adb3adae55300526e1

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col4 >= 637.76 AND col4 IS NULL OR (((col1 BETWEEN 85.24 AND 451.54) AND col3 <= 217)) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col4 >= 637.76 AND col4 IS NULL OR (((col1 BETWEEN 85.24 AND 451.54) AND col3 <= 217)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_131 UNION ALL SELECT pk, col0 FROM view_2_tab0_131
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col4 >= 637.76 AND col4 IS NULL OR (((col1 BETWEEN 85.24 AND 451.54) AND col3 <= 217)) UNION SELECT pk, col0 FROM tab0 WHERE NOT (col4 >= 637.76 AND col4 IS NULL OR (((col1 BETWEEN 85.24 AND 451.54) AND col3 <= 217)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_131 UNION SELECT pk, col0 FROM view_2_tab0_131
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-5400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col4 >= 637.76 AND col4 IS NULL OR (((col1 BETWEEN 85.24 AND 451.54) AND col3 <= 217)) ) AS tab0_131
----
40

query I rowsort label-5400-3
SELECT * FROM view_3_tab0_131
----
40

query I rowsort label-5400-3
SELECT pk FROM tab0 WHERE col4 >= 637.76 AND col4 IS NULL OR (((col1 BETWEEN 85.24 AND 451.54) AND col3 <= 217))
----
40

statement ok
DROP VIEW view_1_tab0_131

statement ok
DROP VIEW view_2_tab0_131

statement ok
DROP VIEW view_3_tab0_131

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_131') DROP VIEW view_1_tab1_131

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_131

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_131') DROP VIEW view_2_tab1_131

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_131

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_131') DROP VIEW view_3_tab1_131

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_131

statement ok
CREATE VIEW view_1_tab1_131 AS SELECT pk, col0 FROM tab1 WHERE col4 >= 637.76 AND col4 IS NULL OR (((col1 BETWEEN 85.24 AND 451.54) AND col3 <= 217))

statement ok
CREATE VIEW view_2_tab1_131 AS SELECT pk, col0 FROM tab1 WHERE NOT (col4 >= 637.76 AND col4 IS NULL OR (((col1 BETWEEN 85.24 AND 451.54) AND col3 <= 217)))

statement ok
CREATE VIEW view_3_tab1_131 AS SELECT pk FROM view_1_tab1_131

query II rowsort label-5400-1
SELECT pk, col0 FROM tab1 WHERE col4 >= 637.76 AND col4 IS NULL OR (((col1 BETWEEN 85.24 AND 451.54) AND col3 <= 217))
----
40
619

query II rowsort label-5400-2
SELECT pk, col0 FROM tab1 WHERE NOT (col4 >= 637.76 AND col4 IS NULL OR (((col1 BETWEEN 85.24 AND 451.54) AND col3 <= 217)))
----
198 values hashing to aad252da709ac3adb3adae55300526e1

query II rowsort label-5400-1
SELECT pk, col0 FROM view_1_tab1_131
----
40
619

query II rowsort label-5400-2
SELECT pk, col0 FROM view_2_tab1_131
----
198 values hashing to aad252da709ac3adb3adae55300526e1

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col4 >= 637.76 AND col4 IS NULL OR (((col1 BETWEEN 85.24 AND 451.54) AND col3 <= 217)) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col4 >= 637.76 AND col4 IS NULL OR (((col1 BETWEEN 85.24 AND 451.54) AND col3 <= 217)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_131 UNION ALL SELECT pk, col0 FROM view_2_tab1_131
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col4 >= 637.76 AND col4 IS NULL OR (((col1 BETWEEN 85.24 AND 451.54) AND col3 <= 217)) UNION SELECT pk, col0 FROM tab1 WHERE NOT (col4 >= 637.76 AND col4 IS NULL OR (((col1 BETWEEN 85.24 AND 451.54) AND col3 <= 217)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_131 UNION SELECT pk, col0 FROM view_2_tab1_131
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-5400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col4 >= 637.76 AND col4 IS NULL OR (((col1 BETWEEN 85.24 AND 451.54) AND col3 <= 217)) ) AS tab1_131
----
40

query I rowsort label-5400-3
SELECT * FROM view_3_tab1_131
----
40

query I rowsort label-5400-3
SELECT pk FROM tab1 WHERE col4 >= 637.76 AND col4 IS NULL OR (((col1 BETWEEN 85.24 AND 451.54) AND col3 <= 217))
----
40

statement ok
DROP VIEW view_1_tab1_131

statement ok
DROP VIEW view_2_tab1_131

statement ok
DROP VIEW view_3_tab1_131

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_131') DROP VIEW view_1_tab2_131

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_131

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_131') DROP VIEW view_2_tab2_131

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_131

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_131') DROP VIEW view_3_tab2_131

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_131

statement ok
CREATE VIEW view_1_tab2_131 AS SELECT pk, col0 FROM tab2 WHERE col4 >= 637.76 AND col4 IS NULL OR (((col1 BETWEEN 85.24 AND 451.54) AND col3 <= 217))

statement ok
CREATE VIEW view_2_tab2_131 AS SELECT pk, col0 FROM tab2 WHERE NOT (col4 >= 637.76 AND col4 IS NULL OR (((col1 BETWEEN 85.24 AND 451.54) AND col3 <= 217)))

statement ok
CREATE VIEW view_3_tab2_131 AS SELECT pk FROM view_1_tab2_131

query II rowsort label-5400-1
SELECT pk, col0 FROM tab2 WHERE col4 >= 637.76 AND col4 IS NULL OR (((col1 BETWEEN 85.24 AND 451.54) AND col3 <= 217))
----
40
619

query II rowsort label-5400-2
SELECT pk, col0 FROM tab2 WHERE NOT (col4 >= 637.76 AND col4 IS NULL OR (((col1 BETWEEN 85.24 AND 451.54) AND col3 <= 217)))
----
198 values hashing to aad252da709ac3adb3adae55300526e1

query II rowsort label-5400-1
SELECT pk, col0 FROM view_1_tab2_131
----
40
619

query II rowsort label-5400-2
SELECT pk, col0 FROM view_2_tab2_131
----
198 values hashing to aad252da709ac3adb3adae55300526e1

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col4 >= 637.76 AND col4 IS NULL OR (((col1 BETWEEN 85.24 AND 451.54) AND col3 <= 217)) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col4 >= 637.76 AND col4 IS NULL OR (((col1 BETWEEN 85.24 AND 451.54) AND col3 <= 217)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_131 UNION ALL SELECT pk, col0 FROM view_2_tab2_131
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col4 >= 637.76 AND col4 IS NULL OR (((col1 BETWEEN 85.24 AND 451.54) AND col3 <= 217)) UNION SELECT pk, col0 FROM tab2 WHERE NOT (col4 >= 637.76 AND col4 IS NULL OR (((col1 BETWEEN 85.24 AND 451.54) AND col3 <= 217)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_131 UNION SELECT pk, col0 FROM view_2_tab2_131
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-5400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col4 >= 637.76 AND col4 IS NULL OR (((col1 BETWEEN 85.24 AND 451.54) AND col3 <= 217)) ) AS tab2_131
----
40

query I rowsort label-5400-3
SELECT * FROM view_3_tab2_131
----
40

query I rowsort label-5400-3
SELECT pk FROM tab2 WHERE col4 >= 637.76 AND col4 IS NULL OR (((col1 BETWEEN 85.24 AND 451.54) AND col3 <= 217))
----
40

statement ok
DROP VIEW view_1_tab2_131

statement ok
DROP VIEW view_2_tab2_131

statement ok
DROP VIEW view_3_tab2_131

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_131') DROP VIEW view_1_tab3_131

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_131

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_131') DROP VIEW view_2_tab3_131

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_131

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_131') DROP VIEW view_3_tab3_131

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_131

statement ok
CREATE VIEW view_1_tab3_131 AS SELECT pk, col0 FROM tab3 WHERE col4 >= 637.76 AND col4 IS NULL OR (((col1 BETWEEN 85.24 AND 451.54) AND col3 <= 217))

statement ok
CREATE VIEW view_2_tab3_131 AS SELECT pk, col0 FROM tab3 WHERE NOT (col4 >= 637.76 AND col4 IS NULL OR (((col1 BETWEEN 85.24 AND 451.54) AND col3 <= 217)))

statement ok
CREATE VIEW view_3_tab3_131 AS SELECT pk FROM view_1_tab3_131

query II rowsort label-5400-1
SELECT pk, col0 FROM tab3 WHERE col4 >= 637.76 AND col4 IS NULL OR (((col1 BETWEEN 85.24 AND 451.54) AND col3 <= 217))
----
40
619

query II rowsort label-5400-2
SELECT pk, col0 FROM tab3 WHERE NOT (col4 >= 637.76 AND col4 IS NULL OR (((col1 BETWEEN 85.24 AND 451.54) AND col3 <= 217)))
----
198 values hashing to aad252da709ac3adb3adae55300526e1

query II rowsort label-5400-1
SELECT pk, col0 FROM view_1_tab3_131
----
40
619

query II rowsort label-5400-2
SELECT pk, col0 FROM view_2_tab3_131
----
198 values hashing to aad252da709ac3adb3adae55300526e1

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col4 >= 637.76 AND col4 IS NULL OR (((col1 BETWEEN 85.24 AND 451.54) AND col3 <= 217)) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col4 >= 637.76 AND col4 IS NULL OR (((col1 BETWEEN 85.24 AND 451.54) AND col3 <= 217)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_131 UNION ALL SELECT pk, col0 FROM view_2_tab3_131
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col4 >= 637.76 AND col4 IS NULL OR (((col1 BETWEEN 85.24 AND 451.54) AND col3 <= 217)) UNION SELECT pk, col0 FROM tab3 WHERE NOT (col4 >= 637.76 AND col4 IS NULL OR (((col1 BETWEEN 85.24 AND 451.54) AND col3 <= 217)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_131 UNION SELECT pk, col0 FROM view_2_tab3_131
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-5400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col4 >= 637.76 AND col4 IS NULL OR (((col1 BETWEEN 85.24 AND 451.54) AND col3 <= 217)) ) AS tab3_131
----
40

query I rowsort label-5400-3
SELECT * FROM view_3_tab3_131
----
40

query I rowsort label-5400-3
SELECT pk FROM tab3 WHERE col4 >= 637.76 AND col4 IS NULL OR (((col1 BETWEEN 85.24 AND 451.54) AND col3 <= 217))
----
40

statement ok
DROP VIEW view_1_tab3_131

statement ok
DROP VIEW view_2_tab3_131

statement ok
DROP VIEW view_3_tab3_131

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_131') DROP VIEW view_1_tab4_131

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_131

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_131') DROP VIEW view_2_tab4_131

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_131

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_131') DROP VIEW view_3_tab4_131

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_131

statement ok
CREATE VIEW view_1_tab4_131 AS SELECT pk, col0 FROM tab4 WHERE col4 >= 637.76 AND col4 IS NULL OR (((col1 BETWEEN 85.24 AND 451.54) AND col3 <= 217))

statement ok
CREATE VIEW view_2_tab4_131 AS SELECT pk, col0 FROM tab4 WHERE NOT (col4 >= 637.76 AND col4 IS NULL OR (((col1 BETWEEN 85.24 AND 451.54) AND col3 <= 217)))

statement ok
CREATE VIEW view_3_tab4_131 AS SELECT pk FROM view_1_tab4_131

query II rowsort label-5400-1
SELECT pk, col0 FROM tab4 WHERE col4 >= 637.76 AND col4 IS NULL OR (((col1 BETWEEN 85.24 AND 451.54) AND col3 <= 217))
----
40
619

query II rowsort label-5400-2
SELECT pk, col0 FROM tab4 WHERE NOT (col4 >= 637.76 AND col4 IS NULL OR (((col1 BETWEEN 85.24 AND 451.54) AND col3 <= 217)))
----
198 values hashing to aad252da709ac3adb3adae55300526e1

query II rowsort label-5400-1
SELECT pk, col0 FROM view_1_tab4_131
----
40
619

query II rowsort label-5400-2
SELECT pk, col0 FROM view_2_tab4_131
----
198 values hashing to aad252da709ac3adb3adae55300526e1

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col4 >= 637.76 AND col4 IS NULL OR (((col1 BETWEEN 85.24 AND 451.54) AND col3 <= 217)) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col4 >= 637.76 AND col4 IS NULL OR (((col1 BETWEEN 85.24 AND 451.54) AND col3 <= 217)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_131 UNION ALL SELECT pk, col0 FROM view_2_tab4_131
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col4 >= 637.76 AND col4 IS NULL OR (((col1 BETWEEN 85.24 AND 451.54) AND col3 <= 217)) UNION SELECT pk, col0 FROM tab4 WHERE NOT (col4 >= 637.76 AND col4 IS NULL OR (((col1 BETWEEN 85.24 AND 451.54) AND col3 <= 217)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_131 UNION SELECT pk, col0 FROM view_2_tab4_131
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-5400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col4 >= 637.76 AND col4 IS NULL OR (((col1 BETWEEN 85.24 AND 451.54) AND col3 <= 217)) ) AS tab4_131
----
40

query I rowsort label-5400-3
SELECT * FROM view_3_tab4_131
----
40

query I rowsort label-5400-3
SELECT pk FROM tab4 WHERE col4 >= 637.76 AND col4 IS NULL OR (((col1 BETWEEN 85.24 AND 451.54) AND col3 <= 217))
----
40

statement ok
DROP VIEW view_1_tab4_131

statement ok
DROP VIEW view_2_tab4_131

statement ok
DROP VIEW view_3_tab4_131

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_132') DROP VIEW view_1_tab0_132

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_132

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_132') DROP VIEW view_2_tab0_132

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_132

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_132') DROP VIEW view_3_tab0_132

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_132

statement ok
CREATE VIEW view_1_tab0_132 AS SELECT pk, col0 FROM tab0 WHERE col0 > 595

statement ok
CREATE VIEW view_2_tab0_132 AS SELECT pk, col0 FROM tab0 WHERE NOT (col0 > 595)

statement ok
CREATE VIEW view_3_tab0_132 AS SELECT pk FROM view_1_tab0_132

query II rowsort label-5500-1
SELECT pk, col0 FROM tab0 WHERE col0 > 595
----
78 values hashing to c2759fed2a8faf8c2bbb63d2743b9428

query II rowsort label-5500-2
SELECT pk, col0 FROM tab0 WHERE NOT (col0 > 595)
----
122 values hashing to 81454595bc29f19ec43daaba88c9f817

query II rowsort label-5500-1
SELECT pk, col0 FROM view_1_tab0_132
----
78 values hashing to c2759fed2a8faf8c2bbb63d2743b9428

query II rowsort label-5500-2
SELECT pk, col0 FROM view_2_tab0_132
----
122 values hashing to 81454595bc29f19ec43daaba88c9f817

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col0 > 595 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col0 > 595)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_132 UNION ALL SELECT pk, col0 FROM view_2_tab0_132
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col0 > 595 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col0 > 595)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_132 UNION SELECT pk, col0 FROM view_2_tab0_132
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-5500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col0 > 595 ) AS tab0_132
----
39 values hashing to f0ea3cb18fb878f5cfd132fa1288f943

query I rowsort label-5500-3
SELECT * FROM view_3_tab0_132
----
39 values hashing to f0ea3cb18fb878f5cfd132fa1288f943

query I rowsort label-5500-3
SELECT pk FROM tab0 WHERE col0 > 595
----
39 values hashing to f0ea3cb18fb878f5cfd132fa1288f943

statement ok
DROP VIEW view_1_tab0_132

statement ok
DROP VIEW view_2_tab0_132

statement ok
DROP VIEW view_3_tab0_132

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_132') DROP VIEW view_1_tab1_132

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_132

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_132') DROP VIEW view_2_tab1_132

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_132

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_132') DROP VIEW view_3_tab1_132

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_132

statement ok
CREATE VIEW view_1_tab1_132 AS SELECT pk, col0 FROM tab1 WHERE col0 > 595

statement ok
CREATE VIEW view_2_tab1_132 AS SELECT pk, col0 FROM tab1 WHERE NOT (col0 > 595)

statement ok
CREATE VIEW view_3_tab1_132 AS SELECT pk FROM view_1_tab1_132

query II rowsort label-5500-1
SELECT pk, col0 FROM tab1 WHERE col0 > 595
----
78 values hashing to c2759fed2a8faf8c2bbb63d2743b9428

query II rowsort label-5500-2
SELECT pk, col0 FROM tab1 WHERE NOT (col0 > 595)
----
122 values hashing to 81454595bc29f19ec43daaba88c9f817

query II rowsort label-5500-1
SELECT pk, col0 FROM view_1_tab1_132
----
78 values hashing to c2759fed2a8faf8c2bbb63d2743b9428

query II rowsort label-5500-2
SELECT pk, col0 FROM view_2_tab1_132
----
122 values hashing to 81454595bc29f19ec43daaba88c9f817

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col0 > 595 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col0 > 595)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_132 UNION ALL SELECT pk, col0 FROM view_2_tab1_132
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col0 > 595 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col0 > 595)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_132 UNION SELECT pk, col0 FROM view_2_tab1_132
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-5500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col0 > 595 ) AS tab1_132
----
39 values hashing to f0ea3cb18fb878f5cfd132fa1288f943

query I rowsort label-5500-3
SELECT * FROM view_3_tab1_132
----
39 values hashing to f0ea3cb18fb878f5cfd132fa1288f943

query I rowsort label-5500-3
SELECT pk FROM tab1 WHERE col0 > 595
----
39 values hashing to f0ea3cb18fb878f5cfd132fa1288f943

statement ok
DROP VIEW view_1_tab1_132

statement ok
DROP VIEW view_2_tab1_132

statement ok
DROP VIEW view_3_tab1_132

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_132') DROP VIEW view_1_tab2_132

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_132

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_132') DROP VIEW view_2_tab2_132

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_132

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_132') DROP VIEW view_3_tab2_132

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_132

statement ok
CREATE VIEW view_1_tab2_132 AS SELECT pk, col0 FROM tab2 WHERE col0 > 595

statement ok
CREATE VIEW view_2_tab2_132 AS SELECT pk, col0 FROM tab2 WHERE NOT (col0 > 595)

statement ok
CREATE VIEW view_3_tab2_132 AS SELECT pk FROM view_1_tab2_132

query II rowsort label-5500-1
SELECT pk, col0 FROM tab2 WHERE col0 > 595
----
78 values hashing to c2759fed2a8faf8c2bbb63d2743b9428

query II rowsort label-5500-2
SELECT pk, col0 FROM tab2 WHERE NOT (col0 > 595)
----
122 values hashing to 81454595bc29f19ec43daaba88c9f817

query II rowsort label-5500-1
SELECT pk, col0 FROM view_1_tab2_132
----
78 values hashing to c2759fed2a8faf8c2bbb63d2743b9428

query II rowsort label-5500-2
SELECT pk, col0 FROM view_2_tab2_132
----
122 values hashing to 81454595bc29f19ec43daaba88c9f817

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col0 > 595 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col0 > 595)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_132 UNION ALL SELECT pk, col0 FROM view_2_tab2_132
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col0 > 595 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col0 > 595)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_132 UNION SELECT pk, col0 FROM view_2_tab2_132
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-5500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col0 > 595 ) AS tab2_132
----
39 values hashing to f0ea3cb18fb878f5cfd132fa1288f943

query I rowsort label-5500-3
SELECT * FROM view_3_tab2_132
----
39 values hashing to f0ea3cb18fb878f5cfd132fa1288f943

query I rowsort label-5500-3
SELECT pk FROM tab2 WHERE col0 > 595
----
39 values hashing to f0ea3cb18fb878f5cfd132fa1288f943

statement ok
DROP VIEW view_1_tab2_132

statement ok
DROP VIEW view_2_tab2_132

statement ok
DROP VIEW view_3_tab2_132

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_132') DROP VIEW view_1_tab3_132

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_132

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_132') DROP VIEW view_2_tab3_132

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_132

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_132') DROP VIEW view_3_tab3_132

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_132

statement ok
CREATE VIEW view_1_tab3_132 AS SELECT pk, col0 FROM tab3 WHERE col0 > 595

statement ok
CREATE VIEW view_2_tab3_132 AS SELECT pk, col0 FROM tab3 WHERE NOT (col0 > 595)

statement ok
CREATE VIEW view_3_tab3_132 AS SELECT pk FROM view_1_tab3_132

query II rowsort label-5500-1
SELECT pk, col0 FROM tab3 WHERE col0 > 595
----
78 values hashing to c2759fed2a8faf8c2bbb63d2743b9428

query II rowsort label-5500-2
SELECT pk, col0 FROM tab3 WHERE NOT (col0 > 595)
----
122 values hashing to 81454595bc29f19ec43daaba88c9f817

query II rowsort label-5500-1
SELECT pk, col0 FROM view_1_tab3_132
----
78 values hashing to c2759fed2a8faf8c2bbb63d2743b9428

query II rowsort label-5500-2
SELECT pk, col0 FROM view_2_tab3_132
----
122 values hashing to 81454595bc29f19ec43daaba88c9f817

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col0 > 595 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col0 > 595)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_132 UNION ALL SELECT pk, col0 FROM view_2_tab3_132
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col0 > 595 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col0 > 595)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_132 UNION SELECT pk, col0 FROM view_2_tab3_132
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-5500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col0 > 595 ) AS tab3_132
----
39 values hashing to f0ea3cb18fb878f5cfd132fa1288f943

query I rowsort label-5500-3
SELECT * FROM view_3_tab3_132
----
39 values hashing to f0ea3cb18fb878f5cfd132fa1288f943

query I rowsort label-5500-3
SELECT pk FROM tab3 WHERE col0 > 595
----
39 values hashing to f0ea3cb18fb878f5cfd132fa1288f943

statement ok
DROP VIEW view_1_tab3_132

statement ok
DROP VIEW view_2_tab3_132

statement ok
DROP VIEW view_3_tab3_132

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_132') DROP VIEW view_1_tab4_132

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_132

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_132') DROP VIEW view_2_tab4_132

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_132

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_132') DROP VIEW view_3_tab4_132

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_132

statement ok
CREATE VIEW view_1_tab4_132 AS SELECT pk, col0 FROM tab4 WHERE col0 > 595

statement ok
CREATE VIEW view_2_tab4_132 AS SELECT pk, col0 FROM tab4 WHERE NOT (col0 > 595)

statement ok
CREATE VIEW view_3_tab4_132 AS SELECT pk FROM view_1_tab4_132

query II rowsort label-5500-1
SELECT pk, col0 FROM tab4 WHERE col0 > 595
----
78 values hashing to c2759fed2a8faf8c2bbb63d2743b9428

query II rowsort label-5500-2
SELECT pk, col0 FROM tab4 WHERE NOT (col0 > 595)
----
122 values hashing to 81454595bc29f19ec43daaba88c9f817

query II rowsort label-5500-1
SELECT pk, col0 FROM view_1_tab4_132
----
78 values hashing to c2759fed2a8faf8c2bbb63d2743b9428

query II rowsort label-5500-2
SELECT pk, col0 FROM view_2_tab4_132
----
122 values hashing to 81454595bc29f19ec43daaba88c9f817

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col0 > 595 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col0 > 595)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_132 UNION ALL SELECT pk, col0 FROM view_2_tab4_132
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col0 > 595 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col0 > 595)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_132 UNION SELECT pk, col0 FROM view_2_tab4_132
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-5500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col0 > 595 ) AS tab4_132
----
39 values hashing to f0ea3cb18fb878f5cfd132fa1288f943

query I rowsort label-5500-3
SELECT * FROM view_3_tab4_132
----
39 values hashing to f0ea3cb18fb878f5cfd132fa1288f943

query I rowsort label-5500-3
SELECT pk FROM tab4 WHERE col0 > 595
----
39 values hashing to f0ea3cb18fb878f5cfd132fa1288f943

statement ok
DROP VIEW view_1_tab4_132

statement ok
DROP VIEW view_2_tab4_132

statement ok
DROP VIEW view_3_tab4_132

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_133') DROP VIEW view_1_tab0_133

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_133

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_133') DROP VIEW view_2_tab0_133

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_133

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_133') DROP VIEW view_3_tab0_133

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_133

statement ok
CREATE VIEW view_1_tab0_133 AS SELECT pk, col0 FROM tab0 WHERE col3 IS NULL

statement ok
CREATE VIEW view_2_tab0_133 AS SELECT pk, col0 FROM tab0 WHERE NOT (col3 IS NULL)

statement ok
CREATE VIEW view_3_tab0_133 AS SELECT pk FROM view_1_tab0_133

query II rowsort label-5600-1
SELECT pk, col0 FROM tab0 WHERE col3 IS NULL
----

query II rowsort label-5600-2
SELECT pk, col0 FROM tab0 WHERE NOT (col3 IS NULL)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-5600-1
SELECT pk, col0 FROM view_1_tab0_133
----

query II rowsort label-5600-2
SELECT pk, col0 FROM view_2_tab0_133
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 IS NULL UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col3 IS NULL)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_133 UNION ALL SELECT pk, col0 FROM view_2_tab0_133
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 IS NULL UNION SELECT pk, col0 FROM tab0 WHERE NOT (col3 IS NULL)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_133 UNION SELECT pk, col0 FROM view_2_tab0_133
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-5600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col3 IS NULL ) AS tab0_133
----

query I rowsort label-5600-3
SELECT * FROM view_3_tab0_133
----

query I rowsort label-5600-3
SELECT pk FROM tab0 WHERE col3 IS NULL
----

statement ok
DROP VIEW view_1_tab0_133

statement ok
DROP VIEW view_2_tab0_133

statement ok
DROP VIEW view_3_tab0_133

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_133') DROP VIEW view_1_tab1_133

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_133

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_133') DROP VIEW view_2_tab1_133

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_133

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_133') DROP VIEW view_3_tab1_133

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_133

statement ok
CREATE VIEW view_1_tab1_133 AS SELECT pk, col0 FROM tab1 WHERE col3 IS NULL

statement ok
CREATE VIEW view_2_tab1_133 AS SELECT pk, col0 FROM tab1 WHERE NOT (col3 IS NULL)

statement ok
CREATE VIEW view_3_tab1_133 AS SELECT pk FROM view_1_tab1_133

query II rowsort label-5600-1
SELECT pk, col0 FROM tab1 WHERE col3 IS NULL
----

query II rowsort label-5600-2
SELECT pk, col0 FROM tab1 WHERE NOT (col3 IS NULL)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-5600-1
SELECT pk, col0 FROM view_1_tab1_133
----

query II rowsort label-5600-2
SELECT pk, col0 FROM view_2_tab1_133
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 IS NULL UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col3 IS NULL)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_133 UNION ALL SELECT pk, col0 FROM view_2_tab1_133
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 IS NULL UNION SELECT pk, col0 FROM tab1 WHERE NOT (col3 IS NULL)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_133 UNION SELECT pk, col0 FROM view_2_tab1_133
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-5600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col3 IS NULL ) AS tab1_133
----

query I rowsort label-5600-3
SELECT * FROM view_3_tab1_133
----

query I rowsort label-5600-3
SELECT pk FROM tab1 WHERE col3 IS NULL
----

statement ok
DROP VIEW view_1_tab1_133

statement ok
DROP VIEW view_2_tab1_133

statement ok
DROP VIEW view_3_tab1_133

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_133') DROP VIEW view_1_tab2_133

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_133

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_133') DROP VIEW view_2_tab2_133

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_133

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_133') DROP VIEW view_3_tab2_133

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_133

statement ok
CREATE VIEW view_1_tab2_133 AS SELECT pk, col0 FROM tab2 WHERE col3 IS NULL

statement ok
CREATE VIEW view_2_tab2_133 AS SELECT pk, col0 FROM tab2 WHERE NOT (col3 IS NULL)

statement ok
CREATE VIEW view_3_tab2_133 AS SELECT pk FROM view_1_tab2_133

query II rowsort label-5600-1
SELECT pk, col0 FROM tab2 WHERE col3 IS NULL
----

query II rowsort label-5600-2
SELECT pk, col0 FROM tab2 WHERE NOT (col3 IS NULL)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-5600-1
SELECT pk, col0 FROM view_1_tab2_133
----

query II rowsort label-5600-2
SELECT pk, col0 FROM view_2_tab2_133
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 IS NULL UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col3 IS NULL)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_133 UNION ALL SELECT pk, col0 FROM view_2_tab2_133
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 IS NULL UNION SELECT pk, col0 FROM tab2 WHERE NOT (col3 IS NULL)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_133 UNION SELECT pk, col0 FROM view_2_tab2_133
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-5600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col3 IS NULL ) AS tab2_133
----

query I rowsort label-5600-3
SELECT * FROM view_3_tab2_133
----

query I rowsort label-5600-3
SELECT pk FROM tab2 WHERE col3 IS NULL
----

statement ok
DROP VIEW view_1_tab2_133

statement ok
DROP VIEW view_2_tab2_133

statement ok
DROP VIEW view_3_tab2_133

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_133') DROP VIEW view_1_tab3_133

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_133

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_133') DROP VIEW view_2_tab3_133

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_133

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_133') DROP VIEW view_3_tab3_133

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_133

statement ok
CREATE VIEW view_1_tab3_133 AS SELECT pk, col0 FROM tab3 WHERE col3 IS NULL

statement ok
CREATE VIEW view_2_tab3_133 AS SELECT pk, col0 FROM tab3 WHERE NOT (col3 IS NULL)

statement ok
CREATE VIEW view_3_tab3_133 AS SELECT pk FROM view_1_tab3_133

query II rowsort label-5600-1
SELECT pk, col0 FROM tab3 WHERE col3 IS NULL
----

query II rowsort label-5600-2
SELECT pk, col0 FROM tab3 WHERE NOT (col3 IS NULL)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-5600-1
SELECT pk, col0 FROM view_1_tab3_133
----

query II rowsort label-5600-2
SELECT pk, col0 FROM view_2_tab3_133
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 IS NULL UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col3 IS NULL)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_133 UNION ALL SELECT pk, col0 FROM view_2_tab3_133
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 IS NULL UNION SELECT pk, col0 FROM tab3 WHERE NOT (col3 IS NULL)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_133 UNION SELECT pk, col0 FROM view_2_tab3_133
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-5600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col3 IS NULL ) AS tab3_133
----

query I rowsort label-5600-3
SELECT * FROM view_3_tab3_133
----

query I rowsort label-5600-3
SELECT pk FROM tab3 WHERE col3 IS NULL
----

statement ok
DROP VIEW view_1_tab3_133

statement ok
DROP VIEW view_2_tab3_133

statement ok
DROP VIEW view_3_tab3_133

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_133') DROP VIEW view_1_tab4_133

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_133

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_133') DROP VIEW view_2_tab4_133

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_133

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_133') DROP VIEW view_3_tab4_133

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_133

statement ok
CREATE VIEW view_1_tab4_133 AS SELECT pk, col0 FROM tab4 WHERE col3 IS NULL

statement ok
CREATE VIEW view_2_tab4_133 AS SELECT pk, col0 FROM tab4 WHERE NOT (col3 IS NULL)

statement ok
CREATE VIEW view_3_tab4_133 AS SELECT pk FROM view_1_tab4_133

query II rowsort label-5600-1
SELECT pk, col0 FROM tab4 WHERE col3 IS NULL
----

query II rowsort label-5600-2
SELECT pk, col0 FROM tab4 WHERE NOT (col3 IS NULL)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-5600-1
SELECT pk, col0 FROM view_1_tab4_133
----

query II rowsort label-5600-2
SELECT pk, col0 FROM view_2_tab4_133
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 IS NULL UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col3 IS NULL)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_133 UNION ALL SELECT pk, col0 FROM view_2_tab4_133
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 IS NULL UNION SELECT pk, col0 FROM tab4 WHERE NOT (col3 IS NULL)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_133 UNION SELECT pk, col0 FROM view_2_tab4_133
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-5600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col3 IS NULL ) AS tab4_133
----

query I rowsort label-5600-3
SELECT * FROM view_3_tab4_133
----

query I rowsort label-5600-3
SELECT pk FROM tab4 WHERE col3 IS NULL
----

statement ok
DROP VIEW view_1_tab4_133

statement ok
DROP VIEW view_2_tab4_133

statement ok
DROP VIEW view_3_tab4_133

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_134') DROP VIEW view_1_tab0_134

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_134

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_134') DROP VIEW view_2_tab0_134

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_134

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_134') DROP VIEW view_3_tab0_134

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_134

statement ok
CREATE VIEW view_1_tab0_134 AS SELECT pk, col0 FROM tab0 WHERE (col3 > 574)

statement ok
CREATE VIEW view_2_tab0_134 AS SELECT pk, col0 FROM tab0 WHERE NOT ((col3 > 574))

statement ok
CREATE VIEW view_3_tab0_134 AS SELECT pk FROM view_1_tab0_134

query II rowsort label-5700-1
SELECT pk, col0 FROM tab0 WHERE (col3 > 574)
----
96 values hashing to 52861fd04ba748b3bbe52945ea6ee4a2

query II rowsort label-5700-2
SELECT pk, col0 FROM tab0 WHERE NOT ((col3 > 574))
----
104 values hashing to 2a51bb9614b6c98c291b400b400336fa

query II rowsort label-5700-1
SELECT pk, col0 FROM view_1_tab0_134
----
96 values hashing to 52861fd04ba748b3bbe52945ea6ee4a2

query II rowsort label-5700-2
SELECT pk, col0 FROM view_2_tab0_134
----
104 values hashing to 2a51bb9614b6c98c291b400b400336fa

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col3 > 574) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT ((col3 > 574))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_134 UNION ALL SELECT pk, col0 FROM view_2_tab0_134
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col3 > 574) UNION SELECT pk, col0 FROM tab0 WHERE NOT ((col3 > 574))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_134 UNION SELECT pk, col0 FROM view_2_tab0_134
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-5700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE (col3 > 574) ) AS tab0_134
----
48 values hashing to 152eb0d70273f5c70a9e5eaa4e52f3ee

query I rowsort label-5700-3
SELECT * FROM view_3_tab0_134
----
48 values hashing to 152eb0d70273f5c70a9e5eaa4e52f3ee

query I rowsort label-5700-3
SELECT pk FROM tab0 WHERE (col3 > 574)
----
48 values hashing to 152eb0d70273f5c70a9e5eaa4e52f3ee

statement ok
DROP VIEW view_1_tab0_134

statement ok
DROP VIEW view_2_tab0_134

statement ok
DROP VIEW view_3_tab0_134

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_134') DROP VIEW view_1_tab1_134

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_134

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_134') DROP VIEW view_2_tab1_134

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_134

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_134') DROP VIEW view_3_tab1_134

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_134

statement ok
CREATE VIEW view_1_tab1_134 AS SELECT pk, col0 FROM tab1 WHERE (col3 > 574)

statement ok
CREATE VIEW view_2_tab1_134 AS SELECT pk, col0 FROM tab1 WHERE NOT ((col3 > 574))

statement ok
CREATE VIEW view_3_tab1_134 AS SELECT pk FROM view_1_tab1_134

query II rowsort label-5700-1
SELECT pk, col0 FROM tab1 WHERE (col3 > 574)
----
96 values hashing to 52861fd04ba748b3bbe52945ea6ee4a2

query II rowsort label-5700-2
SELECT pk, col0 FROM tab1 WHERE NOT ((col3 > 574))
----
104 values hashing to 2a51bb9614b6c98c291b400b400336fa

query II rowsort label-5700-1
SELECT pk, col0 FROM view_1_tab1_134
----
96 values hashing to 52861fd04ba748b3bbe52945ea6ee4a2

query II rowsort label-5700-2
SELECT pk, col0 FROM view_2_tab1_134
----
104 values hashing to 2a51bb9614b6c98c291b400b400336fa

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col3 > 574) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT ((col3 > 574))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_134 UNION ALL SELECT pk, col0 FROM view_2_tab1_134
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col3 > 574) UNION SELECT pk, col0 FROM tab1 WHERE NOT ((col3 > 574))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_134 UNION SELECT pk, col0 FROM view_2_tab1_134
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-5700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE (col3 > 574) ) AS tab1_134
----
48 values hashing to 152eb0d70273f5c70a9e5eaa4e52f3ee

query I rowsort label-5700-3
SELECT * FROM view_3_tab1_134
----
48 values hashing to 152eb0d70273f5c70a9e5eaa4e52f3ee

query I rowsort label-5700-3
SELECT pk FROM tab1 WHERE (col3 > 574)
----
48 values hashing to 152eb0d70273f5c70a9e5eaa4e52f3ee

statement ok
DROP VIEW view_1_tab1_134

statement ok
DROP VIEW view_2_tab1_134

statement ok
DROP VIEW view_3_tab1_134

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_134') DROP VIEW view_1_tab2_134

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_134

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_134') DROP VIEW view_2_tab2_134

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_134

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_134') DROP VIEW view_3_tab2_134

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_134

statement ok
CREATE VIEW view_1_tab2_134 AS SELECT pk, col0 FROM tab2 WHERE (col3 > 574)

statement ok
CREATE VIEW view_2_tab2_134 AS SELECT pk, col0 FROM tab2 WHERE NOT ((col3 > 574))

statement ok
CREATE VIEW view_3_tab2_134 AS SELECT pk FROM view_1_tab2_134

query II rowsort label-5700-1
SELECT pk, col0 FROM tab2 WHERE (col3 > 574)
----
96 values hashing to 52861fd04ba748b3bbe52945ea6ee4a2

query II rowsort label-5700-2
SELECT pk, col0 FROM tab2 WHERE NOT ((col3 > 574))
----
104 values hashing to 2a51bb9614b6c98c291b400b400336fa

query II rowsort label-5700-1
SELECT pk, col0 FROM view_1_tab2_134
----
96 values hashing to 52861fd04ba748b3bbe52945ea6ee4a2

query II rowsort label-5700-2
SELECT pk, col0 FROM view_2_tab2_134
----
104 values hashing to 2a51bb9614b6c98c291b400b400336fa

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col3 > 574) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT ((col3 > 574))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_134 UNION ALL SELECT pk, col0 FROM view_2_tab2_134
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col3 > 574) UNION SELECT pk, col0 FROM tab2 WHERE NOT ((col3 > 574))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_134 UNION SELECT pk, col0 FROM view_2_tab2_134
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-5700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE (col3 > 574) ) AS tab2_134
----
48 values hashing to 152eb0d70273f5c70a9e5eaa4e52f3ee

query I rowsort label-5700-3
SELECT * FROM view_3_tab2_134
----
48 values hashing to 152eb0d70273f5c70a9e5eaa4e52f3ee

query I rowsort label-5700-3
SELECT pk FROM tab2 WHERE (col3 > 574)
----
48 values hashing to 152eb0d70273f5c70a9e5eaa4e52f3ee

statement ok
DROP VIEW view_1_tab2_134

statement ok
DROP VIEW view_2_tab2_134

statement ok
DROP VIEW view_3_tab2_134

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_134') DROP VIEW view_1_tab3_134

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_134

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_134') DROP VIEW view_2_tab3_134

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_134

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_134') DROP VIEW view_3_tab3_134

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_134

statement ok
CREATE VIEW view_1_tab3_134 AS SELECT pk, col0 FROM tab3 WHERE (col3 > 574)

statement ok
CREATE VIEW view_2_tab3_134 AS SELECT pk, col0 FROM tab3 WHERE NOT ((col3 > 574))

statement ok
CREATE VIEW view_3_tab3_134 AS SELECT pk FROM view_1_tab3_134

query II rowsort label-5700-1
SELECT pk, col0 FROM tab3 WHERE (col3 > 574)
----
96 values hashing to 52861fd04ba748b3bbe52945ea6ee4a2

query II rowsort label-5700-2
SELECT pk, col0 FROM tab3 WHERE NOT ((col3 > 574))
----
104 values hashing to 2a51bb9614b6c98c291b400b400336fa

query II rowsort label-5700-1
SELECT pk, col0 FROM view_1_tab3_134
----
96 values hashing to 52861fd04ba748b3bbe52945ea6ee4a2

query II rowsort label-5700-2
SELECT pk, col0 FROM view_2_tab3_134
----
104 values hashing to 2a51bb9614b6c98c291b400b400336fa

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col3 > 574) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT ((col3 > 574))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_134 UNION ALL SELECT pk, col0 FROM view_2_tab3_134
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col3 > 574) UNION SELECT pk, col0 FROM tab3 WHERE NOT ((col3 > 574))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_134 UNION SELECT pk, col0 FROM view_2_tab3_134
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-5700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE (col3 > 574) ) AS tab3_134
----
48 values hashing to 152eb0d70273f5c70a9e5eaa4e52f3ee

query I rowsort label-5700-3
SELECT * FROM view_3_tab3_134
----
48 values hashing to 152eb0d70273f5c70a9e5eaa4e52f3ee

query I rowsort label-5700-3
SELECT pk FROM tab3 WHERE (col3 > 574)
----
48 values hashing to 152eb0d70273f5c70a9e5eaa4e52f3ee

statement ok
DROP VIEW view_1_tab3_134

statement ok
DROP VIEW view_2_tab3_134

statement ok
DROP VIEW view_3_tab3_134

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_134') DROP VIEW view_1_tab4_134

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_134

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_134') DROP VIEW view_2_tab4_134

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_134

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_134') DROP VIEW view_3_tab4_134

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_134

statement ok
CREATE VIEW view_1_tab4_134 AS SELECT pk, col0 FROM tab4 WHERE (col3 > 574)

statement ok
CREATE VIEW view_2_tab4_134 AS SELECT pk, col0 FROM tab4 WHERE NOT ((col3 > 574))

statement ok
CREATE VIEW view_3_tab4_134 AS SELECT pk FROM view_1_tab4_134

query II rowsort label-5700-1
SELECT pk, col0 FROM tab4 WHERE (col3 > 574)
----
96 values hashing to 52861fd04ba748b3bbe52945ea6ee4a2

query II rowsort label-5700-2
SELECT pk, col0 FROM tab4 WHERE NOT ((col3 > 574))
----
104 values hashing to 2a51bb9614b6c98c291b400b400336fa

query II rowsort label-5700-1
SELECT pk, col0 FROM view_1_tab4_134
----
96 values hashing to 52861fd04ba748b3bbe52945ea6ee4a2

query II rowsort label-5700-2
SELECT pk, col0 FROM view_2_tab4_134
----
104 values hashing to 2a51bb9614b6c98c291b400b400336fa

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col3 > 574) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT ((col3 > 574))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_134 UNION ALL SELECT pk, col0 FROM view_2_tab4_134
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col3 > 574) UNION SELECT pk, col0 FROM tab4 WHERE NOT ((col3 > 574))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_134 UNION SELECT pk, col0 FROM view_2_tab4_134
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-5700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE (col3 > 574) ) AS tab4_134
----
48 values hashing to 152eb0d70273f5c70a9e5eaa4e52f3ee

query I rowsort label-5700-3
SELECT * FROM view_3_tab4_134
----
48 values hashing to 152eb0d70273f5c70a9e5eaa4e52f3ee

query I rowsort label-5700-3
SELECT pk FROM tab4 WHERE (col3 > 574)
----
48 values hashing to 152eb0d70273f5c70a9e5eaa4e52f3ee

statement ok
DROP VIEW view_1_tab4_134

statement ok
DROP VIEW view_2_tab4_134

statement ok
DROP VIEW view_3_tab4_134

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_135') DROP VIEW view_1_tab0_135

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_135

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_135') DROP VIEW view_2_tab0_135

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_135

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_135') DROP VIEW view_3_tab0_135

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_135

statement ok
CREATE VIEW view_1_tab0_135 AS SELECT pk, col0 FROM tab0 WHERE (col3 > 453)

statement ok
CREATE VIEW view_2_tab0_135 AS SELECT pk, col0 FROM tab0 WHERE NOT ((col3 > 453))

statement ok
CREATE VIEW view_3_tab0_135 AS SELECT pk FROM view_1_tab0_135

query II rowsort label-5800-1
SELECT pk, col0 FROM tab0 WHERE (col3 > 453)
----
118 values hashing to 04f68bea1a64e509d7537df819dc4c14

query II rowsort label-5800-2
SELECT pk, col0 FROM tab0 WHERE NOT ((col3 > 453))
----
82 values hashing to f9ccf1c44be8f266c34f757e5ba34f0f

query II rowsort label-5800-1
SELECT pk, col0 FROM view_1_tab0_135
----
118 values hashing to 04f68bea1a64e509d7537df819dc4c14

query II rowsort label-5800-2
SELECT pk, col0 FROM view_2_tab0_135
----
82 values hashing to f9ccf1c44be8f266c34f757e5ba34f0f

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col3 > 453) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT ((col3 > 453))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_135 UNION ALL SELECT pk, col0 FROM view_2_tab0_135
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col3 > 453) UNION SELECT pk, col0 FROM tab0 WHERE NOT ((col3 > 453))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_135 UNION SELECT pk, col0 FROM view_2_tab0_135
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-5800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE (col3 > 453) ) AS tab0_135
----
59 values hashing to 19d9d5b645ffe211c4985a187267dd59

query I rowsort label-5800-3
SELECT * FROM view_3_tab0_135
----
59 values hashing to 19d9d5b645ffe211c4985a187267dd59

query I rowsort label-5800-3
SELECT pk FROM tab0 WHERE (col3 > 453)
----
59 values hashing to 19d9d5b645ffe211c4985a187267dd59

statement ok
DROP VIEW view_1_tab0_135

statement ok
DROP VIEW view_2_tab0_135

statement ok
DROP VIEW view_3_tab0_135

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_135') DROP VIEW view_1_tab1_135

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_135

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_135') DROP VIEW view_2_tab1_135

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_135

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_135') DROP VIEW view_3_tab1_135

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_135

statement ok
CREATE VIEW view_1_tab1_135 AS SELECT pk, col0 FROM tab1 WHERE (col3 > 453)

statement ok
CREATE VIEW view_2_tab1_135 AS SELECT pk, col0 FROM tab1 WHERE NOT ((col3 > 453))

statement ok
CREATE VIEW view_3_tab1_135 AS SELECT pk FROM view_1_tab1_135

query II rowsort label-5800-1
SELECT pk, col0 FROM tab1 WHERE (col3 > 453)
----
118 values hashing to 04f68bea1a64e509d7537df819dc4c14

query II rowsort label-5800-2
SELECT pk, col0 FROM tab1 WHERE NOT ((col3 > 453))
----
82 values hashing to f9ccf1c44be8f266c34f757e5ba34f0f

query II rowsort label-5800-1
SELECT pk, col0 FROM view_1_tab1_135
----
118 values hashing to 04f68bea1a64e509d7537df819dc4c14

query II rowsort label-5800-2
SELECT pk, col0 FROM view_2_tab1_135
----
82 values hashing to f9ccf1c44be8f266c34f757e5ba34f0f

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col3 > 453) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT ((col3 > 453))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_135 UNION ALL SELECT pk, col0 FROM view_2_tab1_135
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col3 > 453) UNION SELECT pk, col0 FROM tab1 WHERE NOT ((col3 > 453))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_135 UNION SELECT pk, col0 FROM view_2_tab1_135
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-5800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE (col3 > 453) ) AS tab1_135
----
59 values hashing to 19d9d5b645ffe211c4985a187267dd59

query I rowsort label-5800-3
SELECT * FROM view_3_tab1_135
----
59 values hashing to 19d9d5b645ffe211c4985a187267dd59

query I rowsort label-5800-3
SELECT pk FROM tab1 WHERE (col3 > 453)
----
59 values hashing to 19d9d5b645ffe211c4985a187267dd59

statement ok
DROP VIEW view_1_tab1_135

statement ok
DROP VIEW view_2_tab1_135

statement ok
DROP VIEW view_3_tab1_135

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_135') DROP VIEW view_1_tab2_135

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_135

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_135') DROP VIEW view_2_tab2_135

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_135

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_135') DROP VIEW view_3_tab2_135

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_135

statement ok
CREATE VIEW view_1_tab2_135 AS SELECT pk, col0 FROM tab2 WHERE (col3 > 453)

statement ok
CREATE VIEW view_2_tab2_135 AS SELECT pk, col0 FROM tab2 WHERE NOT ((col3 > 453))

statement ok
CREATE VIEW view_3_tab2_135 AS SELECT pk FROM view_1_tab2_135

query II rowsort label-5800-1
SELECT pk, col0 FROM tab2 WHERE (col3 > 453)
----
118 values hashing to 04f68bea1a64e509d7537df819dc4c14

query II rowsort label-5800-2
SELECT pk, col0 FROM tab2 WHERE NOT ((col3 > 453))
----
82 values hashing to f9ccf1c44be8f266c34f757e5ba34f0f

query II rowsort label-5800-1
SELECT pk, col0 FROM view_1_tab2_135
----
118 values hashing to 04f68bea1a64e509d7537df819dc4c14

query II rowsort label-5800-2
SELECT pk, col0 FROM view_2_tab2_135
----
82 values hashing to f9ccf1c44be8f266c34f757e5ba34f0f

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col3 > 453) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT ((col3 > 453))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_135 UNION ALL SELECT pk, col0 FROM view_2_tab2_135
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col3 > 453) UNION SELECT pk, col0 FROM tab2 WHERE NOT ((col3 > 453))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_135 UNION SELECT pk, col0 FROM view_2_tab2_135
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-5800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE (col3 > 453) ) AS tab2_135
----
59 values hashing to 19d9d5b645ffe211c4985a187267dd59

query I rowsort label-5800-3
SELECT * FROM view_3_tab2_135
----
59 values hashing to 19d9d5b645ffe211c4985a187267dd59

query I rowsort label-5800-3
SELECT pk FROM tab2 WHERE (col3 > 453)
----
59 values hashing to 19d9d5b645ffe211c4985a187267dd59

statement ok
DROP VIEW view_1_tab2_135

statement ok
DROP VIEW view_2_tab2_135

statement ok
DROP VIEW view_3_tab2_135

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_135') DROP VIEW view_1_tab3_135

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_135

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_135') DROP VIEW view_2_tab3_135

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_135

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_135') DROP VIEW view_3_tab3_135

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_135

statement ok
CREATE VIEW view_1_tab3_135 AS SELECT pk, col0 FROM tab3 WHERE (col3 > 453)

statement ok
CREATE VIEW view_2_tab3_135 AS SELECT pk, col0 FROM tab3 WHERE NOT ((col3 > 453))

statement ok
CREATE VIEW view_3_tab3_135 AS SELECT pk FROM view_1_tab3_135

query II rowsort label-5800-1
SELECT pk, col0 FROM tab3 WHERE (col3 > 453)
----
118 values hashing to 04f68bea1a64e509d7537df819dc4c14

query II rowsort label-5800-2
SELECT pk, col0 FROM tab3 WHERE NOT ((col3 > 453))
----
82 values hashing to f9ccf1c44be8f266c34f757e5ba34f0f

query II rowsort label-5800-1
SELECT pk, col0 FROM view_1_tab3_135
----
118 values hashing to 04f68bea1a64e509d7537df819dc4c14

query II rowsort label-5800-2
SELECT pk, col0 FROM view_2_tab3_135
----
82 values hashing to f9ccf1c44be8f266c34f757e5ba34f0f

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col3 > 453) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT ((col3 > 453))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_135 UNION ALL SELECT pk, col0 FROM view_2_tab3_135
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col3 > 453) UNION SELECT pk, col0 FROM tab3 WHERE NOT ((col3 > 453))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_135 UNION SELECT pk, col0 FROM view_2_tab3_135
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-5800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE (col3 > 453) ) AS tab3_135
----
59 values hashing to 19d9d5b645ffe211c4985a187267dd59

query I rowsort label-5800-3
SELECT * FROM view_3_tab3_135
----
59 values hashing to 19d9d5b645ffe211c4985a187267dd59

query I rowsort label-5800-3
SELECT pk FROM tab3 WHERE (col3 > 453)
----
59 values hashing to 19d9d5b645ffe211c4985a187267dd59

statement ok
DROP VIEW view_1_tab3_135

statement ok
DROP VIEW view_2_tab3_135

statement ok
DROP VIEW view_3_tab3_135

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_135') DROP VIEW view_1_tab4_135

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_135

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_135') DROP VIEW view_2_tab4_135

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_135

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_135') DROP VIEW view_3_tab4_135

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_135

statement ok
CREATE VIEW view_1_tab4_135 AS SELECT pk, col0 FROM tab4 WHERE (col3 > 453)

statement ok
CREATE VIEW view_2_tab4_135 AS SELECT pk, col0 FROM tab4 WHERE NOT ((col3 > 453))

statement ok
CREATE VIEW view_3_tab4_135 AS SELECT pk FROM view_1_tab4_135

query II rowsort label-5800-1
SELECT pk, col0 FROM tab4 WHERE (col3 > 453)
----
118 values hashing to 04f68bea1a64e509d7537df819dc4c14

query II rowsort label-5800-2
SELECT pk, col0 FROM tab4 WHERE NOT ((col3 > 453))
----
82 values hashing to f9ccf1c44be8f266c34f757e5ba34f0f

query II rowsort label-5800-1
SELECT pk, col0 FROM view_1_tab4_135
----
118 values hashing to 04f68bea1a64e509d7537df819dc4c14

query II rowsort label-5800-2
SELECT pk, col0 FROM view_2_tab4_135
----
82 values hashing to f9ccf1c44be8f266c34f757e5ba34f0f

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col3 > 453) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT ((col3 > 453))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_135 UNION ALL SELECT pk, col0 FROM view_2_tab4_135
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col3 > 453) UNION SELECT pk, col0 FROM tab4 WHERE NOT ((col3 > 453))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_135 UNION SELECT pk, col0 FROM view_2_tab4_135
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-5800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE (col3 > 453) ) AS tab4_135
----
59 values hashing to 19d9d5b645ffe211c4985a187267dd59

query I rowsort label-5800-3
SELECT * FROM view_3_tab4_135
----
59 values hashing to 19d9d5b645ffe211c4985a187267dd59

query I rowsort label-5800-3
SELECT pk FROM tab4 WHERE (col3 > 453)
----
59 values hashing to 19d9d5b645ffe211c4985a187267dd59

statement ok
DROP VIEW view_1_tab4_135

statement ok
DROP VIEW view_2_tab4_135

statement ok
DROP VIEW view_3_tab4_135

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_136') DROP VIEW view_1_tab0_136

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_136

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_136') DROP VIEW view_2_tab0_136

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_136

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_136') DROP VIEW view_3_tab0_136

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_136

statement ok
CREATE VIEW view_1_tab0_136 AS SELECT pk, col0 FROM tab0 WHERE ((col0 <= 556))

statement ok
CREATE VIEW view_2_tab0_136 AS SELECT pk, col0 FROM tab0 WHERE NOT (((col0 <= 556)))

statement ok
CREATE VIEW view_3_tab0_136 AS SELECT pk FROM view_1_tab0_136

query II rowsort label-5900-1
SELECT pk, col0 FROM tab0 WHERE ((col0 <= 556))
----
116 values hashing to 7af780de4c572937fafeacf9067203c0

query II rowsort label-5900-2
SELECT pk, col0 FROM tab0 WHERE NOT (((col0 <= 556)))
----
84 values hashing to 068aa9020a493440c6b8a86459d0dce8

query II rowsort label-5900-1
SELECT pk, col0 FROM view_1_tab0_136
----
116 values hashing to 7af780de4c572937fafeacf9067203c0

query II rowsort label-5900-2
SELECT pk, col0 FROM view_2_tab0_136
----
84 values hashing to 068aa9020a493440c6b8a86459d0dce8

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE ((col0 <= 556)) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (((col0 <= 556)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_136 UNION ALL SELECT pk, col0 FROM view_2_tab0_136
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE ((col0 <= 556)) UNION SELECT pk, col0 FROM tab0 WHERE NOT (((col0 <= 556)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_136 UNION SELECT pk, col0 FROM view_2_tab0_136
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-5900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE ((col0 <= 556)) ) AS tab0_136
----
58 values hashing to 386da58aefba7186e06ef3b796020158

query I rowsort label-5900-3
SELECT * FROM view_3_tab0_136
----
58 values hashing to 386da58aefba7186e06ef3b796020158

query I rowsort label-5900-3
SELECT pk FROM tab0 WHERE ((col0 <= 556))
----
58 values hashing to 386da58aefba7186e06ef3b796020158

statement ok
DROP VIEW view_1_tab0_136

statement ok
DROP VIEW view_2_tab0_136

statement ok
DROP VIEW view_3_tab0_136

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_136') DROP VIEW view_1_tab1_136

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_136

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_136') DROP VIEW view_2_tab1_136

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_136

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_136') DROP VIEW view_3_tab1_136

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_136

statement ok
CREATE VIEW view_1_tab1_136 AS SELECT pk, col0 FROM tab1 WHERE ((col0 <= 556))

statement ok
CREATE VIEW view_2_tab1_136 AS SELECT pk, col0 FROM tab1 WHERE NOT (((col0 <= 556)))

statement ok
CREATE VIEW view_3_tab1_136 AS SELECT pk FROM view_1_tab1_136

query II rowsort label-5900-1
SELECT pk, col0 FROM tab1 WHERE ((col0 <= 556))
----
116 values hashing to 7af780de4c572937fafeacf9067203c0

query II rowsort label-5900-2
SELECT pk, col0 FROM tab1 WHERE NOT (((col0 <= 556)))
----
84 values hashing to 068aa9020a493440c6b8a86459d0dce8

query II rowsort label-5900-1
SELECT pk, col0 FROM view_1_tab1_136
----
116 values hashing to 7af780de4c572937fafeacf9067203c0

query II rowsort label-5900-2
SELECT pk, col0 FROM view_2_tab1_136
----
84 values hashing to 068aa9020a493440c6b8a86459d0dce8

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE ((col0 <= 556)) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (((col0 <= 556)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_136 UNION ALL SELECT pk, col0 FROM view_2_tab1_136
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE ((col0 <= 556)) UNION SELECT pk, col0 FROM tab1 WHERE NOT (((col0 <= 556)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_136 UNION SELECT pk, col0 FROM view_2_tab1_136
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-5900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE ((col0 <= 556)) ) AS tab1_136
----
58 values hashing to 386da58aefba7186e06ef3b796020158

query I rowsort label-5900-3
SELECT * FROM view_3_tab1_136
----
58 values hashing to 386da58aefba7186e06ef3b796020158

query I rowsort label-5900-3
SELECT pk FROM tab1 WHERE ((col0 <= 556))
----
58 values hashing to 386da58aefba7186e06ef3b796020158

statement ok
DROP VIEW view_1_tab1_136

statement ok
DROP VIEW view_2_tab1_136

statement ok
DROP VIEW view_3_tab1_136

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_136') DROP VIEW view_1_tab2_136

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_136

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_136') DROP VIEW view_2_tab2_136

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_136

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_136') DROP VIEW view_3_tab2_136

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_136

statement ok
CREATE VIEW view_1_tab2_136 AS SELECT pk, col0 FROM tab2 WHERE ((col0 <= 556))

statement ok
CREATE VIEW view_2_tab2_136 AS SELECT pk, col0 FROM tab2 WHERE NOT (((col0 <= 556)))

statement ok
CREATE VIEW view_3_tab2_136 AS SELECT pk FROM view_1_tab2_136

query II rowsort label-5900-1
SELECT pk, col0 FROM tab2 WHERE ((col0 <= 556))
----
116 values hashing to 7af780de4c572937fafeacf9067203c0

query II rowsort label-5900-2
SELECT pk, col0 FROM tab2 WHERE NOT (((col0 <= 556)))
----
84 values hashing to 068aa9020a493440c6b8a86459d0dce8

query II rowsort label-5900-1
SELECT pk, col0 FROM view_1_tab2_136
----
116 values hashing to 7af780de4c572937fafeacf9067203c0

query II rowsort label-5900-2
SELECT pk, col0 FROM view_2_tab2_136
----
84 values hashing to 068aa9020a493440c6b8a86459d0dce8

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE ((col0 <= 556)) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (((col0 <= 556)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_136 UNION ALL SELECT pk, col0 FROM view_2_tab2_136
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE ((col0 <= 556)) UNION SELECT pk, col0 FROM tab2 WHERE NOT (((col0 <= 556)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_136 UNION SELECT pk, col0 FROM view_2_tab2_136
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-5900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE ((col0 <= 556)) ) AS tab2_136
----
58 values hashing to 386da58aefba7186e06ef3b796020158

query I rowsort label-5900-3
SELECT * FROM view_3_tab2_136
----
58 values hashing to 386da58aefba7186e06ef3b796020158

query I rowsort label-5900-3
SELECT pk FROM tab2 WHERE ((col0 <= 556))
----
58 values hashing to 386da58aefba7186e06ef3b796020158

statement ok
DROP VIEW view_1_tab2_136

statement ok
DROP VIEW view_2_tab2_136

statement ok
DROP VIEW view_3_tab2_136

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_136') DROP VIEW view_1_tab3_136

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_136

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_136') DROP VIEW view_2_tab3_136

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_136

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_136') DROP VIEW view_3_tab3_136

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_136

statement ok
CREATE VIEW view_1_tab3_136 AS SELECT pk, col0 FROM tab3 WHERE ((col0 <= 556))

statement ok
CREATE VIEW view_2_tab3_136 AS SELECT pk, col0 FROM tab3 WHERE NOT (((col0 <= 556)))

statement ok
CREATE VIEW view_3_tab3_136 AS SELECT pk FROM view_1_tab3_136

query II rowsort label-5900-1
SELECT pk, col0 FROM tab3 WHERE ((col0 <= 556))
----
116 values hashing to 7af780de4c572937fafeacf9067203c0

query II rowsort label-5900-2
SELECT pk, col0 FROM tab3 WHERE NOT (((col0 <= 556)))
----
84 values hashing to 068aa9020a493440c6b8a86459d0dce8

query II rowsort label-5900-1
SELECT pk, col0 FROM view_1_tab3_136
----
116 values hashing to 7af780de4c572937fafeacf9067203c0

query II rowsort label-5900-2
SELECT pk, col0 FROM view_2_tab3_136
----
84 values hashing to 068aa9020a493440c6b8a86459d0dce8

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE ((col0 <= 556)) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (((col0 <= 556)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_136 UNION ALL SELECT pk, col0 FROM view_2_tab3_136
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE ((col0 <= 556)) UNION SELECT pk, col0 FROM tab3 WHERE NOT (((col0 <= 556)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_136 UNION SELECT pk, col0 FROM view_2_tab3_136
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-5900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE ((col0 <= 556)) ) AS tab3_136
----
58 values hashing to 386da58aefba7186e06ef3b796020158

query I rowsort label-5900-3
SELECT * FROM view_3_tab3_136
----
58 values hashing to 386da58aefba7186e06ef3b796020158

query I rowsort label-5900-3
SELECT pk FROM tab3 WHERE ((col0 <= 556))
----
58 values hashing to 386da58aefba7186e06ef3b796020158

statement ok
DROP VIEW view_1_tab3_136

statement ok
DROP VIEW view_2_tab3_136

statement ok
DROP VIEW view_3_tab3_136

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_136') DROP VIEW view_1_tab4_136

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_136

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_136') DROP VIEW view_2_tab4_136

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_136

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_136') DROP VIEW view_3_tab4_136

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_136

statement ok
CREATE VIEW view_1_tab4_136 AS SELECT pk, col0 FROM tab4 WHERE ((col0 <= 556))

statement ok
CREATE VIEW view_2_tab4_136 AS SELECT pk, col0 FROM tab4 WHERE NOT (((col0 <= 556)))

statement ok
CREATE VIEW view_3_tab4_136 AS SELECT pk FROM view_1_tab4_136

query II rowsort label-5900-1
SELECT pk, col0 FROM tab4 WHERE ((col0 <= 556))
----
116 values hashing to 7af780de4c572937fafeacf9067203c0

query II rowsort label-5900-2
SELECT pk, col0 FROM tab4 WHERE NOT (((col0 <= 556)))
----
84 values hashing to 068aa9020a493440c6b8a86459d0dce8

query II rowsort label-5900-1
SELECT pk, col0 FROM view_1_tab4_136
----
116 values hashing to 7af780de4c572937fafeacf9067203c0

query II rowsort label-5900-2
SELECT pk, col0 FROM view_2_tab4_136
----
84 values hashing to 068aa9020a493440c6b8a86459d0dce8

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE ((col0 <= 556)) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (((col0 <= 556)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_136 UNION ALL SELECT pk, col0 FROM view_2_tab4_136
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE ((col0 <= 556)) UNION SELECT pk, col0 FROM tab4 WHERE NOT (((col0 <= 556)))
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_136 UNION SELECT pk, col0 FROM view_2_tab4_136
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-5900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE ((col0 <= 556)) ) AS tab4_136
----
58 values hashing to 386da58aefba7186e06ef3b796020158

query I rowsort label-5900-3
SELECT * FROM view_3_tab4_136
----
58 values hashing to 386da58aefba7186e06ef3b796020158

query I rowsort label-5900-3
SELECT pk FROM tab4 WHERE ((col0 <= 556))
----
58 values hashing to 386da58aefba7186e06ef3b796020158

statement ok
DROP VIEW view_1_tab4_136

statement ok
DROP VIEW view_2_tab4_136

statement ok
DROP VIEW view_3_tab4_136

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_137') DROP VIEW view_1_tab0_137

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_137

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_137') DROP VIEW view_2_tab0_137

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_137

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_137') DROP VIEW view_3_tab0_137

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_137

statement ok
CREATE VIEW view_1_tab0_137 AS SELECT pk, col0 FROM tab0 WHERE ((((col0 < 272 OR col4 > 825.1 OR col0 < 851) OR ((col0 >= 274 AND col4 = 221.59)) AND col0 < 394))) AND col1 IS NULL

statement ok
CREATE VIEW view_2_tab0_137 AS SELECT pk, col0 FROM tab0 WHERE NOT (((((col0 < 272 OR col4 > 825.1 OR col0 < 851) OR ((col0 >= 274 AND col4 = 221.59)) AND col0 < 394))) AND col1 IS NULL)

statement ok
CREATE VIEW view_3_tab0_137 AS SELECT pk FROM view_1_tab0_137

query II rowsort label-6000-1
SELECT pk, col0 FROM tab0 WHERE ((((col0 < 272 OR col4 > 825.1 OR col0 < 851) OR ((col0 >= 274 AND col4 = 221.59)) AND col0 < 394))) AND col1 IS NULL
----

query II rowsort label-6000-2
SELECT pk, col0 FROM tab0 WHERE NOT (((((col0 < 272 OR col4 > 825.1 OR col0 < 851) OR ((col0 >= 274 AND col4 = 221.59)) AND col0 < 394))) AND col1 IS NULL)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-6000-1
SELECT pk, col0 FROM view_1_tab0_137
----

query II rowsort label-6000-2
SELECT pk, col0 FROM view_2_tab0_137
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE ((((col0 < 272 OR col4 > 825.1 OR col0 < 851) OR ((col0 >= 274 AND col4 = 221.59)) AND col0 < 394))) AND col1 IS NULL UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (((((col0 < 272 OR col4 > 825.1 OR col0 < 851) OR ((col0 >= 274 AND col4 = 221.59)) AND col0 < 394))) AND col1 IS NULL)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_137 UNION ALL SELECT pk, col0 FROM view_2_tab0_137
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE ((((col0 < 272 OR col4 > 825.1 OR col0 < 851) OR ((col0 >= 274 AND col4 = 221.59)) AND col0 < 394))) AND col1 IS NULL UNION SELECT pk, col0 FROM tab0 WHERE NOT (((((col0 < 272 OR col4 > 825.1 OR col0 < 851) OR ((col0 >= 274 AND col4 = 221.59)) AND col0 < 394))) AND col1 IS NULL)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_137 UNION SELECT pk, col0 FROM view_2_tab0_137
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-6000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE ((((col0 < 272 OR col4 > 825.1 OR col0 < 851) OR ((col0 >= 274 AND col4 = 221.59)) AND col0 < 394))) AND col1 IS NULL ) AS tab0_137
----

query I rowsort label-6000-3
SELECT * FROM view_3_tab0_137
----

query I rowsort label-6000-3
SELECT pk FROM tab0 WHERE ((((col0 < 272 OR col4 > 825.1 OR col0 < 851) OR ((col0 >= 274 AND col4 = 221.59)) AND col0 < 394))) AND col1 IS NULL
----

statement ok
DROP VIEW view_1_tab0_137

statement ok
DROP VIEW view_2_tab0_137

statement ok
DROP VIEW view_3_tab0_137

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_137') DROP VIEW view_1_tab1_137

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_137

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_137') DROP VIEW view_2_tab1_137

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_137

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_137') DROP VIEW view_3_tab1_137

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_137

statement ok
CREATE VIEW view_1_tab1_137 AS SELECT pk, col0 FROM tab1 WHERE ((((col0 < 272 OR col4 > 825.1 OR col0 < 851) OR ((col0 >= 274 AND col4 = 221.59)) AND col0 < 394))) AND col1 IS NULL

statement ok
CREATE VIEW view_2_tab1_137 AS SELECT pk, col0 FROM tab1 WHERE NOT (((((col0 < 272 OR col4 > 825.1 OR col0 < 851) OR ((col0 >= 274 AND col4 = 221.59)) AND col0 < 394))) AND col1 IS NULL)

statement ok
CREATE VIEW view_3_tab1_137 AS SELECT pk FROM view_1_tab1_137

query II rowsort label-6000-1
SELECT pk, col0 FROM tab1 WHERE ((((col0 < 272 OR col4 > 825.1 OR col0 < 851) OR ((col0 >= 274 AND col4 = 221.59)) AND col0 < 394))) AND col1 IS NULL
----

query II rowsort label-6000-2
SELECT pk, col0 FROM tab1 WHERE NOT (((((col0 < 272 OR col4 > 825.1 OR col0 < 851) OR ((col0 >= 274 AND col4 = 221.59)) AND col0 < 394))) AND col1 IS NULL)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-6000-1
SELECT pk, col0 FROM view_1_tab1_137
----

query II rowsort label-6000-2
SELECT pk, col0 FROM view_2_tab1_137
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE ((((col0 < 272 OR col4 > 825.1 OR col0 < 851) OR ((col0 >= 274 AND col4 = 221.59)) AND col0 < 394))) AND col1 IS NULL UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (((((col0 < 272 OR col4 > 825.1 OR col0 < 851) OR ((col0 >= 274 AND col4 = 221.59)) AND col0 < 394))) AND col1 IS NULL)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_137 UNION ALL SELECT pk, col0 FROM view_2_tab1_137
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE ((((col0 < 272 OR col4 > 825.1 OR col0 < 851) OR ((col0 >= 274 AND col4 = 221.59)) AND col0 < 394))) AND col1 IS NULL UNION SELECT pk, col0 FROM tab1 WHERE NOT (((((col0 < 272 OR col4 > 825.1 OR col0 < 851) OR ((col0 >= 274 AND col4 = 221.59)) AND col0 < 394))) AND col1 IS NULL)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_137 UNION SELECT pk, col0 FROM view_2_tab1_137
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-6000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE ((((col0 < 272 OR col4 > 825.1 OR col0 < 851) OR ((col0 >= 274 AND col4 = 221.59)) AND col0 < 394))) AND col1 IS NULL ) AS tab1_137
----

query I rowsort label-6000-3
SELECT * FROM view_3_tab1_137
----

query I rowsort label-6000-3
SELECT pk FROM tab1 WHERE ((((col0 < 272 OR col4 > 825.1 OR col0 < 851) OR ((col0 >= 274 AND col4 = 221.59)) AND col0 < 394))) AND col1 IS NULL
----

statement ok
DROP VIEW view_1_tab1_137

statement ok
DROP VIEW view_2_tab1_137

statement ok
DROP VIEW view_3_tab1_137

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_137') DROP VIEW view_1_tab2_137

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_137

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_137') DROP VIEW view_2_tab2_137

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_137

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_137') DROP VIEW view_3_tab2_137

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_137

statement ok
CREATE VIEW view_1_tab2_137 AS SELECT pk, col0 FROM tab2 WHERE ((((col0 < 272 OR col4 > 825.1 OR col0 < 851) OR ((col0 >= 274 AND col4 = 221.59)) AND col0 < 394))) AND col1 IS NULL

statement ok
CREATE VIEW view_2_tab2_137 AS SELECT pk, col0 FROM tab2 WHERE NOT (((((col0 < 272 OR col4 > 825.1 OR col0 < 851) OR ((col0 >= 274 AND col4 = 221.59)) AND col0 < 394))) AND col1 IS NULL)

statement ok
CREATE VIEW view_3_tab2_137 AS SELECT pk FROM view_1_tab2_137

query II rowsort label-6000-1
SELECT pk, col0 FROM tab2 WHERE ((((col0 < 272 OR col4 > 825.1 OR col0 < 851) OR ((col0 >= 274 AND col4 = 221.59)) AND col0 < 394))) AND col1 IS NULL
----

query II rowsort label-6000-2
SELECT pk, col0 FROM tab2 WHERE NOT (((((col0 < 272 OR col4 > 825.1 OR col0 < 851) OR ((col0 >= 274 AND col4 = 221.59)) AND col0 < 394))) AND col1 IS NULL)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-6000-1
SELECT pk, col0 FROM view_1_tab2_137
----

query II rowsort label-6000-2
SELECT pk, col0 FROM view_2_tab2_137
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE ((((col0 < 272 OR col4 > 825.1 OR col0 < 851) OR ((col0 >= 274 AND col4 = 221.59)) AND col0 < 394))) AND col1 IS NULL UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (((((col0 < 272 OR col4 > 825.1 OR col0 < 851) OR ((col0 >= 274 AND col4 = 221.59)) AND col0 < 394))) AND col1 IS NULL)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_137 UNION ALL SELECT pk, col0 FROM view_2_tab2_137
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE ((((col0 < 272 OR col4 > 825.1 OR col0 < 851) OR ((col0 >= 274 AND col4 = 221.59)) AND col0 < 394))) AND col1 IS NULL UNION SELECT pk, col0 FROM tab2 WHERE NOT (((((col0 < 272 OR col4 > 825.1 OR col0 < 851) OR ((col0 >= 274 AND col4 = 221.59)) AND col0 < 394))) AND col1 IS NULL)
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_137 UNION SELECT pk, col0 FROM view_2_tab2_137
----
200 values hashing to 53a5cadcdd11d71be2cb8161ad490035

query I rowsort label-6000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE ((((col0 < 272 OR col4 > 825.1 OR col0 < 851) OR ((col0 >= 274 AND col4 = 221.59)) AND col0 < 394))) AND col1 IS NULL ) AS tab2_137
----

query I rowsort label-6000-3
SELECT * FROM view_3_tab2_137
----

query I rowsort label-6000-3
SELECT pk FROM tab2 WHERE ((((col0 < 272 OR col4 > 825.1 OR col0 < 851) OR ((col0 >= 274 AND col4 = 221.59)) AND col0 < 394))) AND col1 IS NULL
----

statement ok
DROP VIEW view_1_tab2_137

statement ok
DROP VIEW view_2_tab2_137

statement ok
DROP VIEW view_3_tab2_137

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_137') DROP VIEW view_1_tab3_137

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_137

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_137') DROP VIEW view_2_tab3_137

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_137

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME