sqllogictest
Artifact Content
Not logged in

Artifact 6d0e20b0c3f9c20df5c2e851ed3bc054b1a387cf:


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,9595,9689.48,'wuxjs',2659,7537.72,'ftpqc')

statement ok
INSERT INTO tab0 VALUES(1,144,6221.61,'pafzb',5693,9074.86,'ratcb')

statement ok
INSERT INTO tab0 VALUES(2,4814,5082.13,'kylkd',8825,7044.55,'mmxui')

statement ok
INSERT INTO tab0 VALUES(3,54,5987.41,'hywkd',8279,1834.95,'jqtgf')

statement ok
INSERT INTO tab0 VALUES(4,8427,311.32,'vxhne',9517,6119.56,'awpkn')

statement ok
INSERT INTO tab0 VALUES(5,4858,2339.85,'evanp',3491,6106.78,'jajgu')

statement ok
INSERT INTO tab0 VALUES(6,2888,516.76,'gncdy',2891,2791.59,'oasom')

statement ok
INSERT INTO tab0 VALUES(7,917,8697.16,'wding',8394,3202.18,'hmfly')

statement ok
INSERT INTO tab0 VALUES(8,8463,7397.19,'typda',4917,1654.53,'shlyo')

statement ok
INSERT INTO tab0 VALUES(9,2403,5043.59,'vssbk',7863,996.6,'tlctb')

statement ok
INSERT INTO tab0 VALUES(10,3231,9220.38,'fptxi',9376,3862.27,'biesk')

statement ok
INSERT INTO tab0 VALUES(11,1301,7923.43,'lqdhq',4586,3922.34,'grzqb')

statement ok
INSERT INTO tab0 VALUES(12,3082,810.14,'mgrmg',7862,7132.75,'aajqc')

statement ok
INSERT INTO tab0 VALUES(13,7408,445.0,'afuac',9062,2981.95,'ehwbg')

statement ok
INSERT INTO tab0 VALUES(14,1722,3557.29,'jwoin',9782,5744.93,'yotyd')

statement ok
INSERT INTO tab0 VALUES(15,8334,2280.65,'uczkf',9606,5732.89,'wocpi')

statement ok
INSERT INTO tab0 VALUES(16,665,5412.71,'mtxlj',2356,541.82,'clbjl')

statement ok
INSERT INTO tab0 VALUES(17,9501,9660.75,'uggiw',2343,6300.16,'lezfj')

statement ok
INSERT INTO tab0 VALUES(18,9241,891.28,'jkfkj',615,8926.43,'qkjhh')

statement ok
INSERT INTO tab0 VALUES(19,4145,5381.71,'dvfbj',1210,5370.82,'dydox')

statement ok
INSERT INTO tab0 VALUES(20,4589,1068.94,'nsfim',7403,4868.83,'pmtnl')

statement ok
INSERT INTO tab0 VALUES(21,3312,8800.99,'qjrmj',7958,191.93,'wcgtw')

statement ok
INSERT INTO tab0 VALUES(22,1665,3584.64,'ivuuc',3378,8896.12,'banmz')

statement ok
INSERT INTO tab0 VALUES(23,5863,5838.5,'fpoya',2151,4575.60,'rcfjo')

statement ok
INSERT INTO tab0 VALUES(24,3234,2640.37,'bdyyb',7008,8103.41,'upcal')

statement ok
INSERT INTO tab0 VALUES(25,8470,8978.40,'ooakt',1163,8894.98,'hraqt')

statement ok
INSERT INTO tab0 VALUES(26,9875,9001.16,'whymn',4574,6143.85,'rccpu')

statement ok
INSERT INTO tab0 VALUES(27,5617,7266.57,'iphgo',184,84.23,'mwwfn')

statement ok
INSERT INTO tab0 VALUES(28,9978,9992.5,'xhbpd',173,3233.63,'isiei')

statement ok
INSERT INTO tab0 VALUES(29,9602,6309.13,'chvns',2212,1644.54,'yycjl')

statement ok
INSERT INTO tab0 VALUES(30,9748,9504.13,'djvbx',5709,6154.98,'kwqhv')

statement ok
INSERT INTO tab0 VALUES(31,536,8277.69,'foesx',8061,3636.16,'fnfwl')

statement ok
INSERT INTO tab0 VALUES(32,3200,7987.51,'mbxdh',903,8247.13,'kheyk')

statement ok
INSERT INTO tab0 VALUES(33,6340,1904.87,'epcvi',6357,2682.35,'tlwzy')

statement ok
INSERT INTO tab0 VALUES(34,2164,2457.34,'tecqc',3285,9418.36,'tybsr')

statement ok
INSERT INTO tab0 VALUES(35,2749,2485.33,'dummm',3537,1969.39,'xwvpq')

statement ok
INSERT INTO tab0 VALUES(36,6280,6489.79,'rvjxn',8201,6134.98,'seurn')

statement ok
INSERT INTO tab0 VALUES(37,3310,1878.77,'ixkti',3853,1246.62,'ygcas')

statement ok
INSERT INTO tab0 VALUES(38,3002,223.8,'vkwuh',8807,1424.34,'oovlk')

statement ok
INSERT INTO tab0 VALUES(39,9384,8503.91,'vzzge',9366,6822.39,'bgudt')

statement ok
INSERT INTO tab0 VALUES(40,7596,360.44,'vmwrj',6072,4880.81,'lxxfb')

statement ok
INSERT INTO tab0 VALUES(41,143,7344.50,'ohrfv',9953,1573.9,'jxelt')

statement ok
INSERT INTO tab0 VALUES(42,3141,165.14,'acvnh',8778,2658.78,'iiwrq')

statement ok
INSERT INTO tab0 VALUES(43,2571,9945.33,'nkzhk',3302,4933.13,'ulrub')

statement ok
INSERT INTO tab0 VALUES(44,527,9464.50,'vjhuw',3520,7476.70,'gisau')

statement ok
INSERT INTO tab0 VALUES(45,1466,4414.22,'kfnrn',4913,2902.98,'imwtm')

statement ok
INSERT INTO tab0 VALUES(46,8459,4647.83,'lxbmk',4703,8611.3,'znqam')

statement ok
INSERT INTO tab0 VALUES(47,9439,5423.2,'zvefc',8099,8040.11,'runhf')

statement ok
INSERT INTO tab0 VALUES(48,3452,8664.50,'bjaco',4548,1908.27,'jxyyd')

statement ok
INSERT INTO tab0 VALUES(49,6910,4203.60,'vqxdn',3985,9471.3,'qnozx')

statement ok
INSERT INTO tab0 VALUES(50,9836,1031.91,'sxgsl',3085,9770.95,'ztdqn')

statement ok
INSERT INTO tab0 VALUES(51,2116,8551.89,'mkwgq',1510,2881.29,'ubzxn')

statement ok
INSERT INTO tab0 VALUES(52,9750,7824.49,'jwywm',8160,1165.62,'lpvkx')

statement ok
INSERT INTO tab0 VALUES(53,1102,2824.81,'icjyo',7424,519.46,'qbarm')

statement ok
INSERT INTO tab0 VALUES(54,3150,1682.70,'yuntq',5429,1623.89,'ggudw')

statement ok
INSERT INTO tab0 VALUES(55,7731,7942.35,'tzvcx',6290,1195.16,'qockq')

statement ok
INSERT INTO tab0 VALUES(56,7800,1807.1,'frmzd',8360,3236.36,'suzfl')

statement ok
INSERT INTO tab0 VALUES(57,3673,1389.52,'ypwds',483,283.1,'csruf')

statement ok
INSERT INTO tab0 VALUES(58,9280,3962.97,'uqntt',8237,4659.69,'eqnqc')

statement ok
INSERT INTO tab0 VALUES(59,8413,7210.34,'bthzj',192,9720.69,'iclau')

statement ok
INSERT INTO tab0 VALUES(60,980,475.11,'jfnsp',4153,1109.58,'wlrvp')

statement ok
INSERT INTO tab0 VALUES(61,9250,6012.88,'doacr',3417,8003.89,'jmgwm')

statement ok
INSERT INTO tab0 VALUES(62,4105,235.2,'kcked',3015,4366.73,'udwuh')

statement ok
INSERT INTO tab0 VALUES(63,1292,4967.25,'dlcox',5970,194.36,'kzcot')

statement ok
INSERT INTO tab0 VALUES(64,7670,8693.31,'hikxj',9542,2771.89,'azqbt')

statement ok
INSERT INTO tab0 VALUES(65,7462,7807.57,'xbtvq',1478,7916.85,'hzdwj')

statement ok
INSERT INTO tab0 VALUES(66,8504,7864.64,'igufo',6265,1231.84,'mlssb')

statement ok
INSERT INTO tab0 VALUES(67,8495,4828.0,'gilax',1379,9356.15,'xbrfr')

statement ok
INSERT INTO tab0 VALUES(68,1248,6324.67,'ukbxm',3530,1213.39,'yizjr')

statement ok
INSERT INTO tab0 VALUES(69,2939,2887.75,'uorte',4922,9261.10,'cfejh')

statement ok
INSERT INTO tab0 VALUES(70,8356,9212.12,'uswjg',9493,745.38,'esncn')

statement ok
INSERT INTO tab0 VALUES(71,7153,5405.2,'dedci',9171,8943.54,'mpfui')

statement ok
INSERT INTO tab0 VALUES(72,94,8230.72,'hhxmm',123,4420.69,'uympu')

statement ok
INSERT INTO tab0 VALUES(73,5309,2364.8,'uasun',9002,6276.37,'rtqif')

statement ok
INSERT INTO tab0 VALUES(74,4541,1643.25,'ipfsb',9201,3394.21,'jqgaf')

statement ok
INSERT INTO tab0 VALUES(75,9393,312.22,'cekzn',7102,5695.51,'dkinx')

statement ok
INSERT INTO tab0 VALUES(76,7586,4276.51,'rjuzk',8323,5383.88,'hsidx')

statement ok
INSERT INTO tab0 VALUES(77,9202,2353.74,'jzkki',3972,8199.90,'hqkhq')

statement ok
INSERT INTO tab0 VALUES(78,2935,7519.32,'dpzvg',6894,4667.68,'yjkeh')

statement ok
INSERT INTO tab0 VALUES(79,2345,8161.1,'vcbjl',7925,1348.53,'lucfd')

statement ok
INSERT INTO tab0 VALUES(80,2104,9324.57,'hndgt',2135,2088.59,'ocgwj')

statement ok
INSERT INTO tab0 VALUES(81,4246,3966.39,'olvos',5086,9268.41,'ulugm')

statement ok
INSERT INTO tab0 VALUES(82,4420,4205.13,'utwuo',9076,5052.64,'iqwpi')

statement ok
INSERT INTO tab0 VALUES(83,8138,2566.31,'pfjkm',9393,2643.59,'lobbf')

statement ok
INSERT INTO tab0 VALUES(84,7025,3238.95,'acvop',562,7526.90,'iakfz')

statement ok
INSERT INTO tab0 VALUES(85,5070,3317.20,'vwlsj',2597,8722.14,'mgpsg')

statement ok
INSERT INTO tab0 VALUES(86,4873,4063.97,'lszei',7250,39.45,'opdal')

statement ok
INSERT INTO tab0 VALUES(87,3900,2141.53,'dfbwn',4261,1316.16,'taiwx')

statement ok
INSERT INTO tab0 VALUES(88,730,881.18,'gzhum',7609,9683.42,'vynze')

statement ok
INSERT INTO tab0 VALUES(89,1303,1520.82,'gghul',1760,799.80,'dpfsy')

statement ok
INSERT INTO tab0 VALUES(90,5174,4456.62,'spybi',7921,113.96,'yyeoe')

statement ok
INSERT INTO tab0 VALUES(91,1761,498.60,'tjkxa',283,4107.22,'kzmxl')

statement ok
INSERT INTO tab0 VALUES(92,6596,2116.32,'wnifk',2279,1548.25,'rtvqt')

statement ok
INSERT INTO tab0 VALUES(93,7573,4686.43,'gdwfo',2829,4738.63,'dnlsz')

statement ok
INSERT INTO tab0 VALUES(94,1201,7749.37,'tayau',2591,765.52,'nvkur')

statement ok
INSERT INTO tab0 VALUES(95,8849,6252.92,'ekfgv',212,2753.25,'yupxm')

statement ok
INSERT INTO tab0 VALUES(96,3003,1806.89,'gpksx',8576,1110.0,'cxzab')

statement ok
INSERT INTO tab0 VALUES(97,3511,3930.70,'wlfzy',1058,4776.36,'hppti')

statement ok
INSERT INTO tab0 VALUES(98,3833,1303.3,'dcocp',7767,2483.99,'syuxn')

statement ok
INSERT INTO tab0 VALUES(99,7294,3015.42,'pqtbk',1803,3993.24,'megdh')

statement ok
INSERT INTO tab0 VALUES(100,3330,9816.95,'fpkna',5505,1355.78,'thfnz')

statement ok
INSERT INTO tab0 VALUES(101,3745,5365.79,'psvnf',6699,152.21,'wwnjn')

statement ok
INSERT INTO tab0 VALUES(102,8950,7484.87,'blawy',4950,754.71,'lnunu')

statement ok
INSERT INTO tab0 VALUES(103,4223,9401.51,'wssaq',7809,9565.64,'omnip')

statement ok
INSERT INTO tab0 VALUES(104,5956,1008.3,'fjsoh',7069,274.17,'wkfbu')

statement ok
INSERT INTO tab0 VALUES(105,7903,105.36,'lxttn',5008,5104.92,'rynmm')

statement ok
INSERT INTO tab0 VALUES(106,7429,3652.69,'cfxlq',645,6068.56,'dejuc')

statement ok
INSERT INTO tab0 VALUES(107,1767,9022.11,'exlky',5985,6207.46,'gnzuo')

statement ok
INSERT INTO tab0 VALUES(108,4259,5245.17,'cgebt',2272,853.30,'defyj')

statement ok
INSERT INTO tab0 VALUES(109,614,4262.58,'xomen',6239,8871.71,'cumsr')

statement ok
INSERT INTO tab0 VALUES(110,5151,2174.79,'kzjjz',6356,3911.87,'tczho')

statement ok
INSERT INTO tab0 VALUES(111,7054,493.62,'harvf',9083,5658.15,'bptgz')

statement ok
INSERT INTO tab0 VALUES(112,6619,7391.91,'fehxy',5117,1083.76,'szxdb')

statement ok
INSERT INTO tab0 VALUES(113,1508,8949.12,'zrark',5644,5691.31,'xarac')

statement ok
INSERT INTO tab0 VALUES(114,2994,410.94,'pxbst',8587,4773.50,'saogs')

statement ok
INSERT INTO tab0 VALUES(115,2212,7426.98,'lfsow',4859,4656.71,'dmjaa')

statement ok
INSERT INTO tab0 VALUES(116,6415,7308.30,'mmwkw',4610,3950.65,'hunzs')

statement ok
INSERT INTO tab0 VALUES(117,5213,281.14,'erytv',3479,4801.95,'krzwf')

statement ok
INSERT INTO tab0 VALUES(118,6836,725.45,'uocbf',8842,4142.80,'zcofs')

statement ok
INSERT INTO tab0 VALUES(119,4372,8434.58,'lhgfv',6065,4939.61,'aoxul')

statement ok
INSERT INTO tab0 VALUES(120,2024,9862.88,'gahjb',4753,7443.58,'casjr')

statement ok
INSERT INTO tab0 VALUES(121,1359,9370.31,'mpfix',4996,441.35,'kisjy')

statement ok
INSERT INTO tab0 VALUES(122,7557,482.10,'pcemd',3624,2506.64,'zzzjc')

statement ok
INSERT INTO tab0 VALUES(123,5661,7132.36,'mmqbm',457,3245.83,'tozvk')

statement ok
INSERT INTO tab0 VALUES(124,6827,4913.68,'kfncp',4551,4550.65,'upsru')

statement ok
INSERT INTO tab0 VALUES(125,4574,2329.80,'lyjwi',450,1849.76,'gbryw')

statement ok
INSERT INTO tab0 VALUES(126,1036,2044.19,'fdjnw',4438,5354.35,'qwgia')

statement ok
INSERT INTO tab0 VALUES(127,3208,2132.72,'imous',787,1313.85,'xwrys')

statement ok
INSERT INTO tab0 VALUES(128,9201,7327.25,'jwxmy',8007,3260.47,'ozfvk')

statement ok
INSERT INTO tab0 VALUES(129,4487,273.27,'zslhg',5095,3262.88,'tifqv')

statement ok
INSERT INTO tab0 VALUES(130,8151,2775.51,'etkhd',7788,3173.80,'lmhfb')

statement ok
INSERT INTO tab0 VALUES(131,9144,7047.59,'gqjnz',4811,5881.65,'oeoin')

statement ok
INSERT INTO tab0 VALUES(132,2527,6965.63,'ykiuf',4125,6560.14,'ccldj')

statement ok
INSERT INTO tab0 VALUES(133,5727,9313.88,'skxcj',9185,3919.96,'fheyk')

statement ok
INSERT INTO tab0 VALUES(134,4782,5037.34,'sqjig',5177,1452.34,'hyqsh')

statement ok
INSERT INTO tab0 VALUES(135,596,492.37,'zpube',5280,8688.70,'hxrvp')

statement ok
INSERT INTO tab0 VALUES(136,5183,8692.36,'nqfww',6911,2440.27,'qjcoa')

statement ok
INSERT INTO tab0 VALUES(137,7922,565.31,'nzvdt',7973,8059.73,'kmvxn')

statement ok
INSERT INTO tab0 VALUES(138,1807,6195.48,'jwxtz',3109,680.82,'qzexh')

statement ok
INSERT INTO tab0 VALUES(139,9692,6078.99,'tqbos',9950,6471.98,'cuqqc')

statement ok
INSERT INTO tab0 VALUES(140,547,2371.48,'aalaz',5366,3887.94,'usjmf')

statement ok
INSERT INTO tab0 VALUES(141,5703,140.72,'zyryd',1713,4920.40,'tyczq')

statement ok
INSERT INTO tab0 VALUES(142,5106,8610.22,'hbdcq',3088,6344.60,'ktjmf')

statement ok
INSERT INTO tab0 VALUES(143,3564,2420.86,'kmarm',1575,969.97,'qennu')

statement ok
INSERT INTO tab0 VALUES(144,6999,2864.54,'uikbc',3495,8890.78,'uozsh')

statement ok
INSERT INTO tab0 VALUES(145,8697,9151.78,'chnlq',5661,8740.71,'yfggt')

statement ok
INSERT INTO tab0 VALUES(146,5556,9648.34,'cjuly',1619,8933.52,'byenq')

statement ok
INSERT INTO tab0 VALUES(147,4338,3130.89,'clwqw',7908,8919.66,'wwxtx')

statement ok
INSERT INTO tab0 VALUES(148,7918,36.56,'szzif',303,437.88,'hwdsb')

statement ok
INSERT INTO tab0 VALUES(149,1534,3714.64,'inwcx',68,8757.89,'kjdeh')

statement ok
INSERT INTO tab0 VALUES(150,9038,1670.15,'zixjg',204,3934.95,'nscrq')

statement ok
INSERT INTO tab0 VALUES(151,9145,6823.50,'pfkev',1703,2062.52,'ldwce')

statement ok
INSERT INTO tab0 VALUES(152,1683,8750.10,'evprw',9792,6516.85,'obniy')

statement ok
INSERT INTO tab0 VALUES(153,3843,4940.98,'rprve',189,9209.67,'wyctg')

statement ok
INSERT INTO tab0 VALUES(154,6430,2040.43,'mefyh',5349,1838.74,'fuabv')

statement ok
INSERT INTO tab0 VALUES(155,112,7110.62,'faxlu',714,7134.52,'kvaut')

statement ok
INSERT INTO tab0 VALUES(156,1671,8868.20,'ahcjd',968,116.79,'fbiys')

statement ok
INSERT INTO tab0 VALUES(157,251,8942.97,'rcoba',6279,9335.27,'rbynd')

statement ok
INSERT INTO tab0 VALUES(158,3610,3122.48,'tlusj',8556,8131.23,'diljh')

statement ok
INSERT INTO tab0 VALUES(159,4370,2606.64,'qrdep',7696,5874.15,'hfjqk')

statement ok
INSERT INTO tab0 VALUES(160,6263,5254.39,'qdxhm',7833,9224.30,'miilt')

statement ok
INSERT INTO tab0 VALUES(161,390,6835.27,'ixluq',3591,3374.42,'rfzmw')

statement ok
INSERT INTO tab0 VALUES(162,1459,2279.8,'mghvh',6330,3302.29,'rahsq')

statement ok
INSERT INTO tab0 VALUES(163,4046,6924.50,'diinr',401,5021.38,'edowi')

statement ok
INSERT INTO tab0 VALUES(164,8838,7772.72,'yvxrz',9392,6830.49,'atrgx')

statement ok
INSERT INTO tab0 VALUES(165,8886,4731.4,'dqxlq',2378,563.35,'dlcdy')

statement ok
INSERT INTO tab0 VALUES(166,5854,1873.52,'shxth',174,2839.26,'uabry')

statement ok
INSERT INTO tab0 VALUES(167,6270,8677.60,'luhey',1584,6311.70,'rwrgh')

statement ok
INSERT INTO tab0 VALUES(168,7773,1284.73,'gfnle',9648,921.96,'btcen')

statement ok
INSERT INTO tab0 VALUES(169,5369,3744.95,'beyyg',7895,5140.80,'wkpni')

statement ok
INSERT INTO tab0 VALUES(170,7675,9269.60,'cpfqe',6593,7230.0,'wbrlv')

statement ok
INSERT INTO tab0 VALUES(171,3170,1478.87,'whhku',8999,6485.8,'tggam')

statement ok
INSERT INTO tab0 VALUES(172,6449,5654.45,'nqpvc',7606,4485.82,'giusl')

statement ok
INSERT INTO tab0 VALUES(173,4469,9987.17,'rbbuc',396,6345.98,'fbhdm')

statement ok
INSERT INTO tab0 VALUES(174,2800,6829.61,'uvjaf',7091,1965.87,'yhprj')

statement ok
INSERT INTO tab0 VALUES(175,1876,3941.71,'dpbwe',5400,7280.99,'bpkyp')

statement ok
INSERT INTO tab0 VALUES(176,3244,5746.44,'bznsg',7269,5512.66,'uwkqz')

statement ok
INSERT INTO tab0 VALUES(177,5813,4574.37,'xhhxj',5135,8415.63,'zznzk')

statement ok
INSERT INTO tab0 VALUES(178,2109,1918.33,'jdbzg',8171,7530.72,'kjtld')

statement ok
INSERT INTO tab0 VALUES(179,4516,9679.5,'mxxsl',8540,5434.43,'qqrhx')

statement ok
INSERT INTO tab0 VALUES(180,1536,1422.73,'tpglr',7641,6988.60,'jhgja')

statement ok
INSERT INTO tab0 VALUES(181,4031,3616.70,'hjesr',2365,588.98,'mgcon')

statement ok
INSERT INTO tab0 VALUES(182,1480,6897.7,'abkdm',1337,9415.89,'enrkh')

statement ok
INSERT INTO tab0 VALUES(183,8220,7305.30,'rzoso',1174,2686.87,'atewc')

statement ok
INSERT INTO tab0 VALUES(184,9705,7545.86,'zkcty',2727,6903.23,'fbyvx')

statement ok
INSERT INTO tab0 VALUES(185,8753,8229.84,'vgree',7341,7103.74,'okkww')

statement ok
INSERT INTO tab0 VALUES(186,1792,9131.60,'iubmt',3094,8107.25,'sjgrj')

statement ok
INSERT INTO tab0 VALUES(187,5115,433.37,'ybhbx',1054,5774.28,'itmvk')

statement ok
INSERT INTO tab0 VALUES(188,1130,3980.87,'qsaaa',1530,8245.66,'yctjm')

statement ok
INSERT INTO tab0 VALUES(189,4606,4525.95,'amjuo',316,7198.17,'mngmv')

statement ok
INSERT INTO tab0 VALUES(190,8924,982.23,'lxcqh',4944,9096.15,'zeyyn')

statement ok
INSERT INTO tab0 VALUES(191,2333,7675.69,'bxxkj',937,6436.14,'bxrao')

statement ok
INSERT INTO tab0 VALUES(192,4190,5589.31,'ckkbm',8054,9002.49,'vvjxc')

statement ok
INSERT INTO tab0 VALUES(193,1219,3617.70,'wafkz',6544,5112.97,'beyil')

statement ok
INSERT INTO tab0 VALUES(194,3756,9815.74,'zogqy',3392,2868.44,'jpsih')

statement ok
INSERT INTO tab0 VALUES(195,1999,2646.16,'htryk',8574,1411.44,'iairt')

statement ok
INSERT INTO tab0 VALUES(196,2263,2236.21,'gxcfk',1303,2162.82,'mfyuo')

statement ok
INSERT INTO tab0 VALUES(197,3222,1619.25,'xjuoc',6280,82.38,'qjize')

statement ok
INSERT INTO tab0 VALUES(198,2165,7991.42,'bipcz',9943,4914.47,'wtbku')

statement ok
INSERT INTO tab0 VALUES(199,1245,3957.21,'ijhkw',6721,2436.65,'rknos')

statement ok
INSERT INTO tab0 VALUES(200,3728,8783.12,'kangf',5281,5714.27,'epgxg')

statement ok
INSERT INTO tab0 VALUES(201,243,9644.28,'bnbeb',4776,6347.13,'artky')

statement ok
INSERT INTO tab0 VALUES(202,5031,2875.7,'hjvcd',1099,5719.11,'wkwkq')

statement ok
INSERT INTO tab0 VALUES(203,2199,5224.75,'myczf',3131,6251.75,'exwys')

statement ok
INSERT INTO tab0 VALUES(204,1965,5095.7,'ndpob',8991,2646.93,'malqa')

statement ok
INSERT INTO tab0 VALUES(205,6911,3805.93,'xzoqm',2287,3146.45,'odzdh')

statement ok
INSERT INTO tab0 VALUES(206,8233,6831.97,'whbdt',8364,774.69,'jrqwx')

statement ok
INSERT INTO tab0 VALUES(207,1990,5058.19,'ngvki',557,4593.22,'kujoj')

statement ok
INSERT INTO tab0 VALUES(208,5352,6034.62,'ydqxj',6438,946.40,'swgwf')

statement ok
INSERT INTO tab0 VALUES(209,2856,5216.89,'ksizp',4067,4715.6,'zjled')

statement ok
INSERT INTO tab0 VALUES(210,2650,7220.92,'jfyjo',8244,567.8,'thhzf')

statement ok
INSERT INTO tab0 VALUES(211,2745,7073.46,'qotuq',6755,4200.3,'kwrqa')

statement ok
INSERT INTO tab0 VALUES(212,7268,1464.79,'ojqqg',6626,3603.79,'mbxaq')

statement ok
INSERT INTO tab0 VALUES(213,2706,9989.32,'cgwpb',370,295.20,'rjwby')

statement ok
INSERT INTO tab0 VALUES(214,4160,6406.20,'xspiw',2241,584.63,'zkijq')

statement ok
INSERT INTO tab0 VALUES(215,1596,9883.96,'pprwz',4477,6812.67,'tlwah')

statement ok
INSERT INTO tab0 VALUES(216,6092,6248.14,'ssxof',3558,8604.71,'aabyr')

statement ok
INSERT INTO tab0 VALUES(217,6090,9238.88,'yofmz',6450,4123.58,'ltrtt')

statement ok
INSERT INTO tab0 VALUES(218,3643,1753.61,'dzscm',6859,1317.19,'mtret')

statement ok
INSERT INTO tab0 VALUES(219,671,7101.62,'rouww',1479,9165.11,'nimxl')

statement ok
INSERT INTO tab0 VALUES(220,5203,249.69,'injbh',6238,8938.25,'zsybe')

statement ok
INSERT INTO tab0 VALUES(221,7636,9077.74,'levaa',2561,5437.45,'pnpuy')

statement ok
INSERT INTO tab0 VALUES(222,6977,5625.45,'fpjfq',3602,8250.12,'fkuar')

statement ok
INSERT INTO tab0 VALUES(223,7097,7339.85,'qgxmd',511,2999.84,'gwpcf')

statement ok
INSERT INTO tab0 VALUES(224,2980,8331.0,'sskwa',8671,2593.3,'pogel')

statement ok
INSERT INTO tab0 VALUES(225,6975,619.57,'qaufj',3955,8476.53,'xgbeo')

statement ok
INSERT INTO tab0 VALUES(226,5042,5383.49,'rrgue',8975,1874.26,'pdpba')

statement ok
INSERT INTO tab0 VALUES(227,3005,4212.57,'rxiwf',9331,5053.82,'zuvvu')

statement ok
INSERT INTO tab0 VALUES(228,2802,357.10,'vpxjk',9860,2559.13,'nmftj')

statement ok
INSERT INTO tab0 VALUES(229,8734,9976.53,'zromr',888,2477.5,'tzwka')

statement ok
INSERT INTO tab0 VALUES(230,3715,3392.4,'tvnki',4481,7677.98,'pdqxw')

statement ok
INSERT INTO tab0 VALUES(231,5523,6333.18,'pgtta',691,7062.55,'jmgvx')

statement ok
INSERT INTO tab0 VALUES(232,3047,1189.54,'zbiia',3809,6823.18,'yxnrg')

statement ok
INSERT INTO tab0 VALUES(233,2543,8263.28,'nbfuc',8614,1680.73,'xhini')

statement ok
INSERT INTO tab0 VALUES(234,3877,7014.87,'zftcx',6624,6147.13,'qausu')

statement ok
INSERT INTO tab0 VALUES(235,6780,7314.62,'qomiz',2345,5767.0,'kslkt')

statement ok
INSERT INTO tab0 VALUES(236,7095,693.35,'cnmdw',9522,8371.26,'oujga')

statement ok
INSERT INTO tab0 VALUES(237,3031,1592.0,'srgog',7386,5322.80,'sggay')

statement ok
INSERT INTO tab0 VALUES(238,1406,8614.29,'olele',6908,2772.5,'qzncx')

statement ok
INSERT INTO tab0 VALUES(239,3905,5769.29,'nnigy',7048,2906.64,'rtmid')

statement ok
INSERT INTO tab0 VALUES(240,3325,3730.7,'nutom',1003,5194.99,'pomly')

statement ok
INSERT INTO tab0 VALUES(241,9826,1077.35,'qortj',2458,7642.0,'yjaxw')

statement ok
INSERT INTO tab0 VALUES(242,7181,5554.9,'cpjoy',1837,8041.61,'btuev')

statement ok
INSERT INTO tab0 VALUES(243,9027,5312.11,'olmuj',2553,5217.45,'fmyue')

statement ok
INSERT INTO tab0 VALUES(244,5116,164.76,'egdzy',7255,281.47,'rdbqw')

statement ok
INSERT INTO tab0 VALUES(245,7558,2831.50,'sezuc',4084,7878.55,'ztlrn')

statement ok
INSERT INTO tab0 VALUES(246,7080,198.55,'rimyl',2915,7442.16,'wmbqq')

statement ok
INSERT INTO tab0 VALUES(247,9275,4555.50,'lasqd',1613,4438.92,'qewqr')

statement ok
INSERT INTO tab0 VALUES(248,844,4858.94,'jtxet',2284,1618.30,'ayuqe')

statement ok
INSERT INTO tab0 VALUES(249,5853,7968.11,'zogrn',7518,269.19,'oyvjx')

statement ok
INSERT INTO tab0 VALUES(250,1983,9908.47,'ytetn',6645,1463.54,'mwhpx')

statement ok
INSERT INTO tab0 VALUES(251,6777,7113.37,'lojyr',1984,7307.2,'zpxbu')

statement ok
INSERT INTO tab0 VALUES(252,3891,7676.67,'asblx',5092,2194.58,'jxwxs')

statement ok
INSERT INTO tab0 VALUES(253,9344,2600.34,'xdyvj',3013,4052.13,'azall')

statement ok
INSERT INTO tab0 VALUES(254,7769,7049.13,'blomk',4532,5592.12,'ubyqu')

statement ok
INSERT INTO tab0 VALUES(255,8663,1598.13,'isdkw',6418,5563.23,'uddvh')

statement ok
INSERT INTO tab0 VALUES(256,2635,3480.47,'nzxrz',9683,9998.92,'vmbiu')

statement ok
INSERT INTO tab0 VALUES(257,7658,7840.87,'oydeu',5825,3465.10,'gkjze')

statement ok
INSERT INTO tab0 VALUES(258,5317,8983.33,'qpigy',3079,318.75,'htyzu')

statement ok
INSERT INTO tab0 VALUES(259,7062,1623.72,'juigd',2670,5944.53,'enbgj')

statement ok
INSERT INTO tab0 VALUES(260,455,2135.39,'sxjda',5062,8018.43,'cpnfh')

statement ok
INSERT INTO tab0 VALUES(261,5423,9804.86,'jmhfk',6206,7749.35,'lirlo')

statement ok
INSERT INTO tab0 VALUES(262,505,8074.37,'uupqj',3790,1129.78,'yduec')

statement ok
INSERT INTO tab0 VALUES(263,9102,5802.53,'gnrek',3494,189.40,'rcvat')

statement ok
INSERT INTO tab0 VALUES(264,5731,8504.98,'zjvrn',5233,4242.69,'krynn')

statement ok
INSERT INTO tab0 VALUES(265,2270,9602.98,'kskvk',9411,1139.59,'mhhwn')

statement ok
INSERT INTO tab0 VALUES(266,4212,1685.2,'edarm',3170,8513.7,'cxjlg')

statement ok
INSERT INTO tab0 VALUES(267,6912,7750.49,'gdmib',6643,5035.82,'jralr')

statement ok
INSERT INTO tab0 VALUES(268,1840,2448.27,'ftfpo',9198,1659.83,'lrpqj')

statement ok
INSERT INTO tab0 VALUES(269,2827,3349.38,'decml',5694,2875.5,'sibto')

statement ok
INSERT INTO tab0 VALUES(270,2318,2179.58,'wgsyn',2723,7959.96,'uffij')

statement ok
INSERT INTO tab0 VALUES(271,7622,6075.1,'eknma',4872,2221.26,'uorhv')

statement ok
INSERT INTO tab0 VALUES(272,7162,8833.81,'uyxtp',963,8256.44,'kzcjd')

statement ok
INSERT INTO tab0 VALUES(273,6722,2159.75,'nuher',306,7195.46,'wzhcq')

statement ok
INSERT INTO tab0 VALUES(274,5700,6921.85,'nhioj',8951,9954.31,'ktfba')

statement ok
INSERT INTO tab0 VALUES(275,3360,4395.1,'foaur',5934,8485.70,'bnktm')

statement ok
INSERT INTO tab0 VALUES(276,5075,7520.63,'ogtlt',9530,7022.63,'xnses')

statement ok
INSERT INTO tab0 VALUES(277,8584,2143.24,'ddnht',3505,3338.5,'ijukg')

statement ok
INSERT INTO tab0 VALUES(278,239,8271.11,'hwaaf',3359,9988.48,'xrwei')

statement ok
INSERT INTO tab0 VALUES(279,1255,1322.91,'ditzz',2583,5565.62,'rygqh')

statement ok
INSERT INTO tab0 VALUES(280,3959,3375.28,'yoemm',8905,5945.99,'fudyl')

statement ok
INSERT INTO tab0 VALUES(281,8044,4416.52,'yevuv',543,5541.55,'wzxsi')

statement ok
INSERT INTO tab0 VALUES(282,6813,3595.16,'tblmw',2451,8548.32,'stdwx')

statement ok
INSERT INTO tab0 VALUES(283,3436,470.61,'fzafh',2573,200.1,'snwgn')

statement ok
INSERT INTO tab0 VALUES(284,7192,6259.79,'uhcfx',8091,8014.64,'arpzd')

statement ok
INSERT INTO tab0 VALUES(285,9728,5091.75,'mjtdp',1674,3042.19,'vxmmj')

statement ok
INSERT INTO tab0 VALUES(286,1302,5256.28,'bnsmq',7731,1123.18,'tbluv')

statement ok
INSERT INTO tab0 VALUES(287,7031,451.54,'egoen',8659,4128.33,'urggw')

statement ok
INSERT INTO tab0 VALUES(288,3154,1036.72,'mgwmm',1091,1217.17,'lqtgd')

statement ok
INSERT INTO tab0 VALUES(289,3267,5281.61,'rtghf',2152,81.69,'asvuj')

statement ok
INSERT INTO tab0 VALUES(290,4581,616.26,'vimbg',5703,8200.91,'njtaq')

statement ok
INSERT INTO tab0 VALUES(291,4171,4879.62,'hjrcd',8593,4088.57,'xdazp')

statement ok
INSERT INTO tab0 VALUES(292,5223,7570.9,'wvkng',6910,8541.70,'govdi')

statement ok
INSERT INTO tab0 VALUES(293,3290,1100.25,'cvwrg',2231,5895.29,'slvcs')

statement ok
INSERT INTO tab0 VALUES(294,2534,2039.41,'fewub',7870,5269.88,'xunfn')

statement ok
INSERT INTO tab0 VALUES(295,1984,2367.25,'hccrz',5130,1817.20,'rghdj')

statement ok
INSERT INTO tab0 VALUES(296,1778,724.46,'jycgu',9552,7976.82,'oxnma')

statement ok
INSERT INTO tab0 VALUES(297,9424,3661.35,'toqgz',7165,4724.71,'uqslm')

statement ok
INSERT INTO tab0 VALUES(298,6036,6889.50,'vcovv',737,2817.92,'iaroa')

statement ok
INSERT INTO tab0 VALUES(299,2597,6528.36,'ksccm',6024,4053.21,'dvoal')

statement ok
INSERT INTO tab0 VALUES(300,6199,361.85,'wxvyc',8020,2510.63,'dpbrc')

statement ok
INSERT INTO tab0 VALUES(301,6299,9076.7,'ckblz',7207,5804.18,'ojkib')

statement ok
INSERT INTO tab0 VALUES(302,969,7527.84,'uurqv',5807,6334.41,'vhtpg')

statement ok
INSERT INTO tab0 VALUES(303,3142,5976.35,'lwlbo',4028,2536.8,'wdzkn')

statement ok
INSERT INTO tab0 VALUES(304,6863,1343.82,'soals',6318,131.75,'dbcqw')

statement ok
INSERT INTO tab0 VALUES(305,3545,8460.8,'dlegm',7613,3375.42,'tfftl')

statement ok
INSERT INTO tab0 VALUES(306,8210,1319.20,'siwjv',9585,6306.18,'sfqnu')

statement ok
INSERT INTO tab0 VALUES(307,5745,4324.16,'qwkup',6898,4003.77,'xacnw')

statement ok
INSERT INTO tab0 VALUES(308,7150,3534.41,'tjmbr',3451,3827.27,'fgxsf')

statement ok
INSERT INTO tab0 VALUES(309,5789,7925.53,'kdlbb',8634,6673.68,'ufxgd')

statement ok
INSERT INTO tab0 VALUES(310,3638,627.89,'tihod',3574,8223.60,'aauzt')

statement ok
INSERT INTO tab0 VALUES(311,7537,184.18,'tmtxn',7385,193.77,'vtacd')

statement ok
INSERT INTO tab0 VALUES(312,5439,1799.14,'ldspm',3422,1586.79,'ppeul')

statement ok
INSERT INTO tab0 VALUES(313,2661,8585.11,'xlyvy',5527,9938.68,'kwxub')

statement ok
INSERT INTO tab0 VALUES(314,8132,2814.69,'nynhm',4278,2572.51,'ekebs')

statement ok
INSERT INTO tab0 VALUES(315,646,7172.35,'zxurt',3245,7844.6,'tdhmo')

statement ok
INSERT INTO tab0 VALUES(316,5108,6000.8,'pfokg',5235,6397.43,'zabhk')

statement ok
INSERT INTO tab0 VALUES(317,8789,6553.97,'cxeat',8543,2409.64,'zizxs')

statement ok
INSERT INTO tab0 VALUES(318,7572,245.89,'dtudg',3201,4842.27,'cmglu')

statement ok
INSERT INTO tab0 VALUES(319,2201,3899.7,'dxfue',7232,8694.12,'dnzix')

statement ok
INSERT INTO tab0 VALUES(320,4538,1000.75,'pnjhl',2894,6248.78,'nyibm')

statement ok
INSERT INTO tab0 VALUES(321,3804,2943.78,'amdpq',2937,8323.29,'gcmpb')

statement ok
INSERT INTO tab0 VALUES(322,2835,282.29,'gxrdd',6847,5521.74,'fzzfo')

statement ok
INSERT INTO tab0 VALUES(323,4331,3979.26,'mrjle',7098,9482.93,'dstzk')

statement ok
INSERT INTO tab0 VALUES(324,7105,6663.19,'ikcoc',5404,4129.95,'yidnm')

statement ok
INSERT INTO tab0 VALUES(325,2332,3867.71,'esjzh',8964,6919.86,'pgfko')

statement ok
INSERT INTO tab0 VALUES(326,9802,5286.17,'zziyl',6720,98.26,'mbvbd')

statement ok
INSERT INTO tab0 VALUES(327,4166,6026.34,'rbyht',5599,1945.95,'hzper')

statement ok
INSERT INTO tab0 VALUES(328,1190,7852.96,'ftdct',6766,8024.54,'kofmu')

statement ok
INSERT INTO tab0 VALUES(329,4004,439.41,'nnxcv',1877,2434.9,'vjohf')

statement ok
INSERT INTO tab0 VALUES(330,9350,2624.33,'ydlnz',9324,9061.70,'ilsbc')

statement ok
INSERT INTO tab0 VALUES(331,3834,3653.22,'bfgpf',488,2823.18,'rdceb')

statement ok
INSERT INTO tab0 VALUES(332,172,4429.9,'bxiem',5987,925.66,'qpulf')

statement ok
INSERT INTO tab0 VALUES(333,3449,8772.7,'qmfly',1930,4108.19,'fkhum')

statement ok
INSERT INTO tab0 VALUES(334,7359,4657.6,'hzcna',6163,7897.40,'sgcxo')

statement ok
INSERT INTO tab0 VALUES(335,462,5471.32,'jybzn',4518,3852.9,'unkse')

statement ok
INSERT INTO tab0 VALUES(336,2428,1260.11,'hsdqu',7070,819.91,'uxnfc')

statement ok
INSERT INTO tab0 VALUES(337,294,9981.34,'lnizu',4377,6179.90,'pbuyh')

statement ok
INSERT INTO tab0 VALUES(338,4708,8751.15,'przai',3740,7096.22,'bfyrc')

statement ok
INSERT INTO tab0 VALUES(339,6181,5096.55,'vlqsb',5445,1773.66,'uxbbi')

statement ok
INSERT INTO tab0 VALUES(340,1339,8206.8,'tqjtr',9017,695.39,'oipei')

statement ok
INSERT INTO tab0 VALUES(341,9170,176.39,'meuca',9472,7884.45,'igwfe')

statement ok
INSERT INTO tab0 VALUES(342,7276,7265.88,'btfnf',3559,2146.51,'hntbv')

statement ok
INSERT INTO tab0 VALUES(343,8121,1141.34,'fmtlt',6021,8322.37,'epcze')

statement ok
INSERT INTO tab0 VALUES(344,5283,131.53,'vlmls',5835,8540.70,'djvgf')

statement ok
INSERT INTO tab0 VALUES(345,9706,473.89,'ukptu',2468,3462.56,'eqvpb')

statement ok
INSERT INTO tab0 VALUES(346,5940,7566.6,'gjkel',2125,3534.12,'xukdi')

statement ok
INSERT INTO tab0 VALUES(347,8408,7218.59,'uhqka',4001,239.20,'aletz')

statement ok
INSERT INTO tab0 VALUES(348,7639,6898.51,'knjyy',6525,7344.95,'gyhup')

statement ok
INSERT INTO tab0 VALUES(349,6527,6984.0,'ushkt',3620,2152.47,'lgnrl')

statement ok
INSERT INTO tab0 VALUES(350,6582,2016.97,'ieumh',942,6750.41,'uhkps')

statement ok
INSERT INTO tab0 VALUES(351,4173,1942.72,'gpcht',2138,9262.62,'yricl')

statement ok
INSERT INTO tab0 VALUES(352,6785,3371.55,'wujcw',5093,5094.75,'amurv')

statement ok
INSERT INTO tab0 VALUES(353,9267,823.38,'odvac',8181,8191.90,'zqhkh')

statement ok
INSERT INTO tab0 VALUES(354,78,7978.40,'xgxoo',6512,2281.24,'kproo')

statement ok
INSERT INTO tab0 VALUES(355,7544,8924.65,'xsjgi',8187,2127.61,'xeeiu')

statement ok
INSERT INTO tab0 VALUES(356,6101,9413.70,'cpkgo',544,4778.19,'fymiu')

statement ok
INSERT INTO tab0 VALUES(357,2552,8103.22,'ncual',6406,818.8,'bvyhb')

statement ok
INSERT INTO tab0 VALUES(358,2309,7815.65,'cgzzn',341,5615.94,'rzsqy')

statement ok
INSERT INTO tab0 VALUES(359,5650,6780.80,'mihas',4901,575.65,'pgtds')

statement ok
INSERT INTO tab0 VALUES(360,3966,9887.49,'luxfm',6877,4385.88,'yrbpu')

statement ok
INSERT INTO tab0 VALUES(361,6012,9937.16,'trejy',3548,4271.73,'okvjt')

statement ok
INSERT INTO tab0 VALUES(362,4153,8891.50,'ogpuy',8932,7242.39,'bckzn')

statement ok
INSERT INTO tab0 VALUES(363,621,9121.8,'gsauh',34,1343.73,'zqqwm')

statement ok
INSERT INTO tab0 VALUES(364,3759,4656.97,'uusht',3100,6904.92,'ystxr')

statement ok
INSERT INTO tab0 VALUES(365,4275,2439.38,'thnnh',9861,7789.10,'tltdu')

statement ok
INSERT INTO tab0 VALUES(366,1489,3570.24,'kxype',3789,2649.93,'ldhfi')

statement ok
INSERT INTO tab0 VALUES(367,9584,4561.90,'yokgy',6341,6170.31,'qsyev')

statement ok
INSERT INTO tab0 VALUES(368,3858,8584.68,'njgiw',3216,321.92,'jkhcv')

statement ok
INSERT INTO tab0 VALUES(369,6971,6721.54,'lzujq',599,5609.90,'lmbpe')

statement ok
INSERT INTO tab0 VALUES(370,5196,9213.68,'ghqlx',1415,2325.42,'jtgmz')

statement ok
INSERT INTO tab0 VALUES(371,4670,6714.19,'uesqd',1576,1794.39,'rffkx')

statement ok
INSERT INTO tab0 VALUES(372,7643,1534.66,'nzjqv',6229,7627.99,'zsvpb')

statement ok
INSERT INTO tab0 VALUES(373,8728,8897.81,'kfnkq',6017,6971.36,'yopgj')

statement ok
INSERT INTO tab0 VALUES(374,1152,8186.9,'fcvym',3315,1757.21,'rdukp')

statement ok
INSERT INTO tab0 VALUES(375,3006,4192.36,'phrps',8489,9953.42,'qnohl')

statement ok
INSERT INTO tab0 VALUES(376,3491,8370.45,'dmnaf',6143,6808.71,'xccgs')

statement ok
INSERT INTO tab0 VALUES(377,9176,81.85,'pzupk',1367,6112.22,'dhrej')

statement ok
INSERT INTO tab0 VALUES(378,238,7850.27,'zjdcr',5993,1435.15,'wzvdu')

statement ok
INSERT INTO tab0 VALUES(379,6723,610.32,'pdojd',4839,7385.41,'pkocs')

statement ok
INSERT INTO tab0 VALUES(380,4783,8953.10,'hfnwa',1961,854.20,'vlhmq')

statement ok
INSERT INTO tab0 VALUES(381,2942,6385.83,'ovajr',6904,2270.69,'gqcup')

statement ok
INSERT INTO tab0 VALUES(382,8331,569.51,'pusnt',953,6846.59,'wmwho')

statement ok
INSERT INTO tab0 VALUES(383,2946,4579.49,'nleph',3377,5829.81,'cdhol')

statement ok
INSERT INTO tab0 VALUES(384,9897,8149.13,'icwxv',7688,7752.7,'zgddf')

statement ok
INSERT INTO tab0 VALUES(385,9657,8925.42,'hrhqo',7882,9685.52,'dggeb')

statement ok
INSERT INTO tab0 VALUES(386,6311,3707.60,'tlghn',4698,8479.40,'cgvap')

statement ok
INSERT INTO tab0 VALUES(387,3808,9714.79,'qmtno',1858,2023.62,'fpiyu')

statement ok
INSERT INTO tab0 VALUES(388,2213,5820.60,'dkjnq',2327,491.40,'ajvpf')

statement ok
INSERT INTO tab0 VALUES(389,3948,3809.79,'gbcwt',4555,7593.93,'cdyuf')

statement ok
INSERT INTO tab0 VALUES(390,56,9627.84,'oyvzg',8732,1821.92,'moezy')

statement ok
INSERT INTO tab0 VALUES(391,6437,4628.63,'rzbvx',3036,7705.30,'nbtbm')

statement ok
INSERT INTO tab0 VALUES(392,107,6830.5,'cckoy',9883,7060.82,'dgbub')

statement ok
INSERT INTO tab0 VALUES(393,5446,2155.59,'lzmbi',2176,234.64,'zwmrb')

statement ok
INSERT INTO tab0 VALUES(394,445,5691.0,'qkcqs',9560,7362.1,'nbvgf')

statement ok
INSERT INTO tab0 VALUES(395,2961,2934.93,'yekss',4664,9614.85,'bhdcu')

statement ok
INSERT INTO tab0 VALUES(396,6961,1040.51,'bnygw',9358,445.42,'bwaco')

statement ok
INSERT INTO tab0 VALUES(397,8778,75.99,'kxypb',1000,6847.89,'cmtia')

statement ok
INSERT INTO tab0 VALUES(398,3358,4264.40,'cmgwf',8685,590.1,'cxhnn')

statement ok
INSERT INTO tab0 VALUES(399,509,3246.11,'dvmxw',9497,9488.73,'krovk')

statement ok
INSERT INTO tab0 VALUES(400,1153,3316.53,'lnjnx',4758,8637.80,'xqljb')

statement ok
INSERT INTO tab0 VALUES(401,3574,8681.67,'dvnlz',6281,1666.40,'fnatc')

statement ok
INSERT INTO tab0 VALUES(402,9673,2709.80,'pgwsn',2611,1992.79,'runxl')

statement ok
INSERT INTO tab0 VALUES(403,1210,9176.8,'neqnu',5288,4065.93,'qyqoo')

statement ok
INSERT INTO tab0 VALUES(404,6060,3520.14,'cnmpb',5087,4622.7,'llozk')

statement ok
INSERT INTO tab0 VALUES(405,4463,4088.78,'dhraw',8270,3935.40,'rcdlt')

statement ok
INSERT INTO tab0 VALUES(406,5269,3388.51,'gjduy',2842,7057.70,'exxac')

statement ok
INSERT INTO tab0 VALUES(407,2193,9338.25,'wzpij',4791,5083.92,'hmkay')

statement ok
INSERT INTO tab0 VALUES(408,64,6516.90,'khujx',4346,6390.83,'uuawz')

statement ok
INSERT INTO tab0 VALUES(409,1073,7409.0,'kgmjv',2225,7887.63,'htlmy')

statement ok
INSERT INTO tab0 VALUES(410,1025,3666.32,'ryqcf',5882,6274.59,'cymza')

statement ok
INSERT INTO tab0 VALUES(411,5587,7345.55,'klpnc',5760,9282.69,'lalmv')

statement ok
INSERT INTO tab0 VALUES(412,6542,2166.84,'fhcdl',1542,6928.19,'sobjo')

statement ok
INSERT INTO tab0 VALUES(413,8034,4756.48,'kekvm',8397,2765.30,'knthe')

statement ok
INSERT INTO tab0 VALUES(414,2820,5905.52,'appgq',3234,5130.82,'hbrnj')

statement ok
INSERT INTO tab0 VALUES(415,8521,1811.38,'xjmtu',950,8398.70,'rxwrx')

statement ok
INSERT INTO tab0 VALUES(416,3873,5335.49,'yjvtg',678,4225.74,'iejko')

statement ok
INSERT INTO tab0 VALUES(417,4973,7244.90,'fdnkb',2042,2804.16,'tzkyj')

statement ok
INSERT INTO tab0 VALUES(418,1532,7469.90,'wkqjb',1404,4115.23,'gykrs')

statement ok
INSERT INTO tab0 VALUES(419,3124,6349.68,'pymhw',8113,9170.95,'axfxj')

statement ok
INSERT INTO tab0 VALUES(420,5437,5884.91,'mwxmh',757,1268.60,'jqeju')

statement ok
INSERT INTO tab0 VALUES(421,6521,985.41,'gnine',3413,7244.41,'tegxb')

statement ok
INSERT INTO tab0 VALUES(422,3041,720.74,'kbvyq',1894,8715.19,'xuecd')

statement ok
INSERT INTO tab0 VALUES(423,6525,9572.84,'gyith',4,3337.90,'ckqwz')

statement ok
INSERT INTO tab0 VALUES(424,9612,8679.63,'errde',5784,6048.36,'ahebo')

statement ok
INSERT INTO tab0 VALUES(425,2307,7092.70,'plvdz',7763,323.81,'dqpfd')

statement ok
INSERT INTO tab0 VALUES(426,8226,3023.85,'fqxbh',1209,9421.54,'sgyyg')

statement ok
INSERT INTO tab0 VALUES(427,852,5093.79,'dpjjl',4378,7637.54,'xdqwy')

statement ok
INSERT INTO tab0 VALUES(428,9777,3581.70,'webdw',4762,1551.14,'ydozu')

statement ok
INSERT INTO tab0 VALUES(429,6958,1680.92,'rhose',5347,1278.57,'hmhje')

statement ok
INSERT INTO tab0 VALUES(430,2966,6741.51,'ltyif',852,1719.64,'podwe')

statement ok
INSERT INTO tab0 VALUES(431,3235,1525.94,'yrhwf',3986,3807.35,'blhrz')

statement ok
INSERT INTO tab0 VALUES(432,4310,5455.65,'aelfy',1696,5766.53,'joayu')

statement ok
INSERT INTO tab0 VALUES(433,104,5861.73,'odndw',1419,4349.41,'yfpja')

statement ok
INSERT INTO tab0 VALUES(434,8139,9237.52,'snqve',7327,6098.34,'ziszm')

statement ok
INSERT INTO tab0 VALUES(435,5802,2483.21,'zjkkz',6584,8588.30,'pdgni')

statement ok
INSERT INTO tab0 VALUES(436,6592,4163.53,'ldtsl',5589,1681.63,'ymuik')

statement ok
INSERT INTO tab0 VALUES(437,6374,5749.31,'skfyt',6232,8773.58,'mxltg')

statement ok
INSERT INTO tab0 VALUES(438,9624,2873.15,'dpcbo',2139,8046.99,'vvcxg')

statement ok
INSERT INTO tab0 VALUES(439,5682,6579.2,'zmlrt',4925,3716.87,'bmoer')

statement ok
INSERT INTO tab0 VALUES(440,5001,4569.88,'nwhmw',445,7284.5,'xkpbz')

statement ok
INSERT INTO tab0 VALUES(441,5397,2456.33,'ddsaz',5040,8789.80,'rccnu')

statement ok
INSERT INTO tab0 VALUES(442,8301,5014.22,'jczeb',1791,8052.46,'oqitc')

statement ok
INSERT INTO tab0 VALUES(443,5004,7427.27,'fgtxw',6764,5929.5,'oiuxh')

statement ok
INSERT INTO tab0 VALUES(444,2915,6536.73,'etavg',5269,5566.90,'xfpmj')

statement ok
INSERT INTO tab0 VALUES(445,1802,2097.93,'ivmvf',8098,3635.30,'wxldd')

statement ok
INSERT INTO tab0 VALUES(446,47,8023.0,'npksz',7786,1604.9,'caugc')

statement ok
INSERT INTO tab0 VALUES(447,898,3638.40,'kjauf',4855,6968.30,'qyamv')

statement ok
INSERT INTO tab0 VALUES(448,8714,4927.63,'tqiod',4063,4510.77,'dinnx')

statement ok
INSERT INTO tab0 VALUES(449,5217,5783.80,'imoio',660,7550.80,'wvtrf')

statement ok
INSERT INTO tab0 VALUES(450,5743,9263.28,'ffbsc',6630,9190.73,'yqmlw')

statement ok
INSERT INTO tab0 VALUES(451,5492,8828.31,'vdnmg',6950,3568.61,'jewdo')

statement ok
INSERT INTO tab0 VALUES(452,5776,9606.62,'cycap',5832,7109.78,'hsool')

statement ok
INSERT INTO tab0 VALUES(453,271,9630.10,'pomyt',2978,9771.54,'zywqn')

statement ok
INSERT INTO tab0 VALUES(454,1267,1096.37,'oqbvt',9826,6298.75,'zquzn')

statement ok
INSERT INTO tab0 VALUES(455,5914,1610.41,'fgbtx',5805,7470.45,'ihipe')

statement ok
INSERT INTO tab0 VALUES(456,2481,5436.25,'qmsac',4580,1349.52,'ptkli')

statement ok
INSERT INTO tab0 VALUES(457,6594,4750.50,'ebfqx',307,4537.24,'aucza')

statement ok
INSERT INTO tab0 VALUES(458,7497,888.4,'gxabq',3878,3417.99,'rstbp')

statement ok
INSERT INTO tab0 VALUES(459,4295,5596.64,'vzxtm',9173,5410.81,'odcfy')

statement ok
INSERT INTO tab0 VALUES(460,2207,2281.54,'grbws',9312,220.9,'rliok')

statement ok
INSERT INTO tab0 VALUES(461,8815,7256.15,'nmivs',2902,1087.13,'hljhf')

statement ok
INSERT INTO tab0 VALUES(462,314,1001.59,'jsdzc',289,6036.80,'ycugg')

statement ok
INSERT INTO tab0 VALUES(463,7762,9400.39,'kcuez',9807,9128.17,'paern')

statement ok
INSERT INTO tab0 VALUES(464,3333,5001.5,'giokz',4029,1708.11,'tezva')

statement ok
INSERT INTO tab0 VALUES(465,6561,8261.73,'quunh',6015,3657.94,'qmxma')

statement ok
INSERT INTO tab0 VALUES(466,594,8796.82,'ndzsx',5564,4642.5,'hkwrb')

statement ok
INSERT INTO tab0 VALUES(467,8445,6635.59,'fuzfu',5463,5361.50,'osdhe')

statement ok
INSERT INTO tab0 VALUES(468,9238,3463.82,'pxczx',7737,8803.67,'owoqa')

statement ok
INSERT INTO tab0 VALUES(469,4462,3879.41,'boedh',9901,1488.90,'jxoey')

statement ok
INSERT INTO tab0 VALUES(470,4219,6640.1,'wtuui',1206,4723.8,'owkbc')

statement ok
INSERT INTO tab0 VALUES(471,3473,5914.65,'awhpv',8893,5849.27,'zncuq')

statement ok
INSERT INTO tab0 VALUES(472,8302,2529.38,'pebja',4440,9493.38,'ezuvt')

statement ok
INSERT INTO tab0 VALUES(473,2148,5223.84,'usmpx',9814,8817.74,'hishy')

statement ok
INSERT INTO tab0 VALUES(474,2066,1895.95,'audie',3720,6768.74,'gdjlz')

statement ok
INSERT INTO tab0 VALUES(475,4974,852.50,'bmynm',7852,7328.48,'zhqkb')

statement ok
INSERT INTO tab0 VALUES(476,3902,2063.77,'eoixk',3141,6766.34,'klwvb')

statement ok
INSERT INTO tab0 VALUES(477,4247,8407.20,'iueju',6007,4882.68,'stejn')

statement ok
INSERT INTO tab0 VALUES(478,14,6923.93,'ctevs',4609,6265.40,'hkgmu')

statement ok
INSERT INTO tab0 VALUES(479,77,60.54,'bmtqq',5094,1539.59,'ahuyf')

statement ok
INSERT INTO tab0 VALUES(480,4418,6927.55,'sxiko',7844,8609.16,'jrnmh')

statement ok
INSERT INTO tab0 VALUES(481,387,4543.14,'qtjkc',3735,3923.46,'luflp')

statement ok
INSERT INTO tab0 VALUES(482,8943,9089.76,'tvoks',377,3703.90,'cizjd')

statement ok
INSERT INTO tab0 VALUES(483,911,7153.69,'iayft',8371,5218.59,'gifqi')

statement ok
INSERT INTO tab0 VALUES(484,3229,6985.74,'aqxfm',7554,8013.94,'uqyfg')

statement ok
INSERT INTO tab0 VALUES(485,5198,9745.85,'gcmdm',3251,5174.30,'ultzq')

statement ok
INSERT INTO tab0 VALUES(486,4731,755.70,'cqlqm',2529,4570.60,'rdzrc')

statement ok
INSERT INTO tab0 VALUES(487,4607,743.36,'oxgwr',439,103.95,'ftyhc')

statement ok
INSERT INTO tab0 VALUES(488,8715,7100.89,'oomdu',6273,2965.27,'vsvwj')

statement ok
INSERT INTO tab0 VALUES(489,8309,5127.98,'evpnc',9810,2878.93,'phbar')

statement ok
INSERT INTO tab0 VALUES(490,8257,9284.57,'uhlpu',7567,9353.35,'jmhnh')

statement ok
INSERT INTO tab0 VALUES(491,3291,4443.48,'ajbvx',9052,2934.66,'yincu')

statement ok
INSERT INTO tab0 VALUES(492,4251,7135.4,'dbyml',3006,6452.28,'fwjwk')

statement ok
INSERT INTO tab0 VALUES(493,4348,6801.69,'xkfaq',3665,6271.58,'ekzbe')

statement ok
INSERT INTO tab0 VALUES(494,5400,7041.64,'xjsvy',6997,3542.51,'fnhqu')

statement ok
INSERT INTO tab0 VALUES(495,4092,6869.46,'ndavg',6962,5449.19,'bjcwb')

statement ok
INSERT INTO tab0 VALUES(496,8221,1954.73,'ezrdz',1758,6464.55,'cmicu')

statement ok
INSERT INTO tab0 VALUES(497,2944,5880.67,'lxjoe',69,9592.98,'ijvca')

statement ok
INSERT INTO tab0 VALUES(498,7039,1390.71,'baxlr',7321,7624.93,'oaybf')

statement ok
INSERT INTO tab0 VALUES(499,9140,1631.22,'fllae',1925,4386.51,'psgwd')

statement ok
INSERT INTO tab0 VALUES(500,3999,1421.1,'ntpim',1531,5989.20,'epvxh')

statement ok
INSERT INTO tab0 VALUES(501,8729,8479.6,'htnpm',9278,2079.36,'jdmru')

statement ok
INSERT INTO tab0 VALUES(502,9053,4689.8,'lwdzi',44,7088.95,'kbtmq')

statement ok
INSERT INTO tab0 VALUES(503,5565,7346.16,'ybcdp',6694,1483.12,'cqzuu')

statement ok
INSERT INTO tab0 VALUES(504,9967,397.41,'pfbzl',6331,3015.82,'rnqeh')

statement ok
INSERT INTO tab0 VALUES(505,1326,5710.54,'lytcp',6545,7970.44,'cjguj')

statement ok
INSERT INTO tab0 VALUES(506,2320,4307.52,'racnq',1670,2423.45,'ejpzr')

statement ok
INSERT INTO tab0 VALUES(507,5494,7622.22,'xfhjx',9022,3478.98,'qyyyf')

statement ok
INSERT INTO tab0 VALUES(508,9504,8747.97,'ftaix',5158,530.52,'fgyjq')

statement ok
INSERT INTO tab0 VALUES(509,5368,3687.27,'jaolh',2124,6504.46,'wcyyh')

statement ok
INSERT INTO tab0 VALUES(510,2721,2605.34,'vdwqw',3702,9115.76,'vdagk')

statement ok
INSERT INTO tab0 VALUES(511,6057,1076.79,'wrsjz',1664,2110.58,'vyfcc')

statement ok
INSERT INTO tab0 VALUES(512,987,1334.24,'vfugl',2020,6522.90,'bglgq')

statement ok
INSERT INTO tab0 VALUES(513,484,3522.92,'exyqq',1268,1919.13,'lvwem')

statement ok
INSERT INTO tab0 VALUES(514,1132,6947.32,'ohdkx',2645,7655.74,'ubxkl')

statement ok
INSERT INTO tab0 VALUES(515,9383,1321.81,'brrjh',2374,4117.90,'rlims')

statement ok
INSERT INTO tab0 VALUES(516,7797,8021.26,'gyiaa',5920,3981.8,'vjiif')

statement ok
INSERT INTO tab0 VALUES(517,1304,1330.66,'gdldj',4233,3453.70,'fryyl')

statement ok
INSERT INTO tab0 VALUES(518,3435,9695.76,'zcakx',2,3529.75,'ygtcv')

statement ok
INSERT INTO tab0 VALUES(519,2600,6970.68,'hxybs',3906,1238.40,'ttjxt')

statement ok
INSERT INTO tab0 VALUES(520,8312,3671.56,'wwzme',861,893.64,'tcjkq')

statement ok
INSERT INTO tab0 VALUES(521,7450,8223.14,'qtbwo',6270,5344.89,'xekhd')

statement ok
INSERT INTO tab0 VALUES(522,506,8213.44,'urest',2278,7227.64,'vmmkg')

statement ok
INSERT INTO tab0 VALUES(523,7837,1636.32,'tsurq',4013,210.8,'drzol')

statement ok
INSERT INTO tab0 VALUES(524,5910,8148.19,'phrza',5847,248.69,'oirwu')

statement ok
INSERT INTO tab0 VALUES(525,3558,316.55,'wdhgy',7636,6831.92,'wjdsa')

statement ok
INSERT INTO tab0 VALUES(526,8227,4865.65,'astwr',975,4236.76,'hwpat')

statement ok
INSERT INTO tab0 VALUES(527,2223,3932.16,'gtywz',5450,2773.40,'koegn')

statement ok
INSERT INTO tab0 VALUES(528,8971,6315.69,'tduiz',4882,33.85,'jnbra')

statement ok
INSERT INTO tab0 VALUES(529,9255,8720.53,'ykfgq',3582,2153.54,'yvmfc')

statement ok
INSERT INTO tab0 VALUES(530,7473,7013.20,'jfjzm',2599,5045.97,'wcabx')

statement ok
INSERT INTO tab0 VALUES(531,7888,7472.9,'zhsve',5971,5661.36,'qdofe')

statement ok
INSERT INTO tab0 VALUES(532,874,8035.10,'gufve',6970,3238.20,'wppce')

statement ok
INSERT INTO tab0 VALUES(533,9169,9549.27,'hyhjh',4364,546.95,'lqfiu')

statement ok
INSERT INTO tab0 VALUES(534,4126,7021.36,'xxepl',8653,5142.62,'kkeew')

statement ok
INSERT INTO tab0 VALUES(535,1959,869.54,'scwhc',8327,618.42,'iugfe')

statement ok
INSERT INTO tab0 VALUES(536,9997,8172.97,'mbiic',6116,7850.36,'haddo')

statement ok
INSERT INTO tab0 VALUES(537,2930,3917.42,'zvpmc',5236,6250.90,'dhrbc')

statement ok
INSERT INTO tab0 VALUES(538,9064,2252.94,'hwvuj',5640,5016.57,'jkble')

statement ok
INSERT INTO tab0 VALUES(539,6567,7737.43,'tkrke',275,4379.57,'pgtor')

statement ok
INSERT INTO tab0 VALUES(540,9719,6589.32,'iibdu',1322,6857.43,'irtcb')

statement ok
INSERT INTO tab0 VALUES(541,5167,7937.15,'nnpbr',6449,8503.61,'jxtxm')

statement ok
INSERT INTO tab0 VALUES(542,8166,5070.21,'qrmdm',5066,154.16,'thdoy')

statement ok
INSERT INTO tab0 VALUES(543,8839,6687.17,'uzwyi',4569,8683.28,'zwexl')

statement ok
INSERT INTO tab0 VALUES(544,8421,8150.71,'cmubu',6592,8248.0,'dzgwa')

statement ok
INSERT INTO tab0 VALUES(545,5507,2722.13,'wzhbf',3260,1543.82,'yasxy')

statement ok
INSERT INTO tab0 VALUES(546,2311,2837.98,'onttp',3433,1045.25,'yuiqu')

statement ok
INSERT INTO tab0 VALUES(547,906,1335.68,'batax',8961,268.53,'pldqr')

statement ok
INSERT INTO tab0 VALUES(548,9479,2714.18,'txjld',932,5011.20,'lytxg')

statement ok
INSERT INTO tab0 VALUES(549,8581,4385.52,'othxj',5922,4608.74,'eqknx')

statement ok
INSERT INTO tab0 VALUES(550,7377,7918.52,'gzuda',2246,3177.19,'wbchu')

statement ok
INSERT INTO tab0 VALUES(551,9895,292.37,'kgbjx',6207,873.80,'yhrkd')

statement ok
INSERT INTO tab0 VALUES(552,1273,5150.26,'pkgdi',8344,5135.61,'jyaze')

statement ok
INSERT INTO tab0 VALUES(553,4017,4040.99,'ovnph',9689,1937.11,'xkeuj')

statement ok
INSERT INTO tab0 VALUES(554,4244,7674.65,'gefkn',8008,7039.85,'atkro')

statement ok
INSERT INTO tab0 VALUES(555,7935,7173.16,'zacfr',4058,7236.7,'cfkoz')

statement ok
INSERT INTO tab0 VALUES(556,7183,5318.99,'olhjl',7834,1607.34,'rxgpo')

statement ok
INSERT INTO tab0 VALUES(557,6445,7800.71,'lrnnq',4814,2768.15,'liwfu')

statement ok
INSERT INTO tab0 VALUES(558,8791,4470.63,'tsfcj',2224,8119.56,'hctld')

statement ok
INSERT INTO tab0 VALUES(559,2156,591.47,'pypfd',5271,1095.82,'rnjuz')

statement ok
INSERT INTO tab0 VALUES(560,5586,8083.93,'zuxbz',3402,2416.0,'ogeot')

statement ok
INSERT INTO tab0 VALUES(561,5493,6778.33,'dhiqo',6553,1339.60,'oytue')

statement ok
INSERT INTO tab0 VALUES(562,1896,5670.27,'jtkij',1397,6905.19,'dsase')

statement ok
INSERT INTO tab0 VALUES(563,4686,4158.21,'mjwos',7598,9188.3,'rzdji')

statement ok
INSERT INTO tab0 VALUES(564,9862,3307.10,'uxymz',4055,551.69,'qzxhr')

statement ok
INSERT INTO tab0 VALUES(565,5788,7088.4,'dfmkt',5157,6889.68,'pjscy')

statement ok
INSERT INTO tab0 VALUES(566,9440,3635.86,'exxqt',7032,8885.9,'mwrdu')

statement ok
INSERT INTO tab0 VALUES(567,2655,6490.79,'kaqah',3793,3254.17,'szvcu')

statement ok
INSERT INTO tab0 VALUES(568,8391,5854.5,'ipwmz',3796,3999.1,'dlgqp')

statement ok
INSERT INTO tab0 VALUES(569,6962,9843.48,'njyui',5883,3656.13,'jcbbc')

statement ok
INSERT INTO tab0 VALUES(570,2297,5729.19,'wgkdk',5631,4547.11,'vesum')

statement ok
INSERT INTO tab0 VALUES(571,8191,1196.14,'pcerg',1611,31.22,'vgaen')

statement ok
INSERT INTO tab0 VALUES(572,4549,5587.83,'lgmib',1630,5748.6,'tqiaj')

statement ok
INSERT INTO tab0 VALUES(573,3642,1156.84,'shgfy',8982,877.16,'ffpfc')

statement ok
INSERT INTO tab0 VALUES(574,6351,4317.55,'olbim',8700,9381.60,'avojl')

statement ok
INSERT INTO tab0 VALUES(575,8423,6893.67,'vjgip',3806,1257.67,'oculg')

statement ok
INSERT INTO tab0 VALUES(576,6718,7369.96,'otgxr',1560,3788.46,'rzyij')

statement ok
INSERT INTO tab0 VALUES(577,5458,2140.77,'uzlqu',9710,2792.51,'xhspx')

statement ok
INSERT INTO tab0 VALUES(578,2479,6760.72,'voljw',2742,3874.42,'pnezf')

statement ok
INSERT INTO tab0 VALUES(579,5480,7193.30,'jbedq',8131,3670.48,'aksbg')

statement ok
INSERT INTO tab0 VALUES(580,8275,1065.50,'nlbnw',2590,1106.30,'pjfxl')

statement ok
INSERT INTO tab0 VALUES(581,7038,8909.44,'examn',8320,8639.41,'tjfra')

statement ok
INSERT INTO tab0 VALUES(582,6560,5422.1,'vhsuu',9260,3514.93,'klagy')

statement ok
INSERT INTO tab0 VALUES(583,6492,709.44,'xyrui',7339,9010.15,'tkvwf')

statement ok
INSERT INTO tab0 VALUES(584,7599,1535.98,'tfgzf',8723,5690.18,'rfwry')

statement ok
INSERT INTO tab0 VALUES(585,8012,2576.52,'ybzsh',65,2656.59,'qzknj')

statement ok
INSERT INTO tab0 VALUES(586,9472,7667.19,'fsoqb',4759,8790.97,'yhbje')

statement ok
INSERT INTO tab0 VALUES(587,3585,1055.0,'shamb',9186,4013.64,'vxucj')

statement ok
INSERT INTO tab0 VALUES(588,8070,8645.45,'cluqt',8965,531.22,'qncar')

statement ok
INSERT INTO tab0 VALUES(589,3008,9254.18,'ozxut',5201,4081.26,'ugdom')

statement ok
INSERT INTO tab0 VALUES(590,7096,5858.58,'clcnz',744,5190.90,'desxz')

statement ok
INSERT INTO tab0 VALUES(591,3892,6844.41,'puzxt',6424,419.44,'vhqmk')

statement ok
INSERT INTO tab0 VALUES(592,8066,7258.44,'xyzhy',7317,3613.1,'rsrua')

statement ok
INSERT INTO tab0 VALUES(593,1656,57.7,'aptqa',8981,7152.18,'cqsxh')

statement ok
INSERT INTO tab0 VALUES(594,309,7358.94,'cpzmh',3716,3203.57,'kwyaa')

statement ok
INSERT INTO tab0 VALUES(595,9537,1689.57,'trvhv',6809,4965.52,'tgyip')

statement ok
INSERT INTO tab0 VALUES(596,966,7236.0,'cevgx',2785,7927.66,'lrsku')

statement ok
INSERT INTO tab0 VALUES(597,8583,1098.37,'vmbtv',1659,1108.55,'vhayg')

statement ok
INSERT INTO tab0 VALUES(598,4990,4531.58,'iuidg',5181,8316.34,'smgjk')

statement ok
INSERT INTO tab0 VALUES(599,7653,4204.92,'ztiie',3093,9391.37,'gfujp')

statement ok
INSERT INTO tab0 VALUES(600,5149,3443.67,'bxpid',9373,1461.76,'dwatj')

statement ok
INSERT INTO tab0 VALUES(601,3419,3489.74,'zovai',8488,187.11,'vtiuj')

statement ok
INSERT INTO tab0 VALUES(602,2019,4739.28,'levns',1643,1017.6,'msoaq')

statement ok
INSERT INTO tab0 VALUES(603,367,8001.35,'mftff',3031,433.95,'ixuwr')

statement ok
INSERT INTO tab0 VALUES(604,3994,5743.48,'pphxq',6084,7203.43,'mfreo')

statement ok
INSERT INTO tab0 VALUES(605,794,3345.34,'ajpxd',9723,3628.9,'janxc')

statement ok
INSERT INTO tab0 VALUES(606,7275,346.35,'ojogy',4605,6796.9,'rtisx')

statement ok
INSERT INTO tab0 VALUES(607,4809,1694.30,'avwpv',9377,9831.76,'oqzpo')

statement ok
INSERT INTO tab0 VALUES(608,5880,8998.99,'eagta',6923,3141.27,'qdnpt')

statement ok
INSERT INTO tab0 VALUES(609,335,1779.85,'xwjjk',617,5668.22,'hrxhk')

statement ok
INSERT INTO tab0 VALUES(610,1636,8715.56,'hleir',570,6141.27,'thmmt')

statement ok
INSERT INTO tab0 VALUES(611,3107,8896.66,'wwysl',9884,4323.77,'agzul')

statement ok
INSERT INTO tab0 VALUES(612,4185,3072.23,'qqjgf',892,2264.38,'hpqku')

statement ok
INSERT INTO tab0 VALUES(613,6672,4903.43,'dorvv',1425,5546.72,'yuhmu')

statement ok
INSERT INTO tab0 VALUES(614,981,2210.21,'ubwjg',1045,4539.96,'onnag')

statement ok
INSERT INTO tab0 VALUES(615,2390,8221.87,'uzthy',7305,5647.45,'gawga')

statement ok
INSERT INTO tab0 VALUES(616,7290,2828.73,'ihadv',1997,2560.37,'rzvlz')

statement ok
INSERT INTO tab0 VALUES(617,9433,3832.74,'tlngo',7400,7500.33,'byame')

statement ok
INSERT INTO tab0 VALUES(618,6189,8193.8,'rhgll',2531,2479.1,'qcjlc')

statement ok
INSERT INTO tab0 VALUES(619,4787,3282.83,'znnmu',9397,542.78,'jueep')

statement ok
INSERT INTO tab0 VALUES(620,8571,8130.56,'didux',9241,7016.33,'kgfde')

statement ok
INSERT INTO tab0 VALUES(621,3249,4678.96,'gbldf',8796,769.27,'adyvb')

statement ok
INSERT INTO tab0 VALUES(622,3139,9028.48,'bvldm',6533,5450.78,'venjh')

statement ok
INSERT INTO tab0 VALUES(623,7427,2692.97,'gebzv',8911,744.26,'wvaju')

statement ok
INSERT INTO tab0 VALUES(624,6410,3840.23,'mqcax',6628,3623.87,'swojt')

statement ok
INSERT INTO tab0 VALUES(625,7746,8555.74,'pilia',867,9591.27,'qzjlk')

statement ok
INSERT INTO tab0 VALUES(626,2710,2079.20,'otdmg',9555,3939.13,'rnwzl')

statement ok
INSERT INTO tab0 VALUES(627,2439,64.19,'ufqan',3603,2994.84,'wzzcx')

statement ok
INSERT INTO tab0 VALUES(628,4183,9822.80,'foudy',3161,5366.10,'hsbno')

statement ok
INSERT INTO tab0 VALUES(629,7555,1577.25,'huajp',3868,3204.55,'emcys')

statement ok
INSERT INTO tab0 VALUES(630,781,9709.51,'irlcy',3101,3435.39,'bfxwr')

statement ok
INSERT INTO tab0 VALUES(631,6952,4013.91,'liagu',6226,9029.1,'ymdcq')

statement ok
INSERT INTO tab0 VALUES(632,272,940.81,'szqzm',2845,236.62,'ifklx')

statement ok
INSERT INTO tab0 VALUES(633,2304,4855.17,'kkfdc',3051,5845.86,'mgogy')

statement ok
INSERT INTO tab0 VALUES(634,8231,9280.22,'asaaj',3675,4426.44,'lapep')

statement ok
INSERT INTO tab0 VALUES(635,3095,8151.6,'jvlxy',4533,5587.76,'cfbqf')

statement ok
INSERT INTO tab0 VALUES(636,8052,7056.29,'vhlwp',4684,1221.53,'niuoq')

statement ok
INSERT INTO tab0 VALUES(637,6622,4504.65,'jsoce',8672,6754.41,'xhmyn')

statement ok
INSERT INTO tab0 VALUES(638,939,3157.61,'rmzvu',2780,2400.62,'sckog')

statement ok
INSERT INTO tab0 VALUES(639,7996,1089.4,'jkssz',1280,4407.55,'ymvli')

statement ok
INSERT INTO tab0 VALUES(640,5906,3034.79,'zisqv',2681,6307.44,'anzsd')

statement ok
INSERT INTO tab0 VALUES(641,139,1637.36,'fqbga',5982,169.94,'eegzl')

statement ok
INSERT INTO tab0 VALUES(642,9782,8702.48,'adzpb',6920,7846.78,'jcgdh')

statement ok
INSERT INTO tab0 VALUES(643,3785,6444.77,'rjbuh',4219,2227.37,'naave')

statement ok
INSERT INTO tab0 VALUES(644,7210,8737.35,'amhoe',5841,8486.44,'oqcif')

statement ok
INSERT INTO tab0 VALUES(645,7482,2368.47,'ltfyg',5238,5329.67,'rzqxf')

statement ok
INSERT INTO tab0 VALUES(646,642,8279.12,'cgexj',7600,6253.28,'ifpnu')

statement ok
INSERT INTO tab0 VALUES(647,7590,2829.68,'bjhwu',6104,786.69,'kftoo')

statement ok
INSERT INTO tab0 VALUES(648,344,9029.52,'ipnnf',8167,5742.15,'iexhg')

statement ok
INSERT INTO tab0 VALUES(649,8282,7808.64,'aabfb',1692,6472.33,'fgbst')

statement ok
INSERT INTO tab0 VALUES(650,4395,9251.31,'pzfvp',1323,8108.97,'bekxi')

statement ok
INSERT INTO tab0 VALUES(651,1541,3853.66,'ttqev',4690,6820.50,'qvovq')

statement ok
INSERT INTO tab0 VALUES(652,8687,3772.32,'tcjux',8663,1066.67,'zbpzb')

statement ok
INSERT INTO tab0 VALUES(653,7166,4072.4,'nxdmc',5600,2833.16,'cahxo')

statement ok
INSERT INTO tab0 VALUES(654,6922,3981.36,'pxfyy',9594,8898.21,'lcdwz')

statement ok
INSERT INTO tab0 VALUES(655,2766,8135.15,'newjj',2731,2070.27,'venle')

statement ok
INSERT INTO tab0 VALUES(656,618,7830.30,'tufgw',1334,2446.59,'sswha')

statement ok
INSERT INTO tab0 VALUES(657,3764,2273.34,'wlkrn',2213,8655.87,'cxqnp')

statement ok
INSERT INTO tab0 VALUES(658,9101,9833.4,'tfwhg',8915,9114.85,'yrsok')

statement ok
INSERT INTO tab0 VALUES(659,3394,9285.5,'pyhrv',7980,3273.98,'acgrj')

statement ok
INSERT INTO tab0 VALUES(660,9515,1066.51,'cbxec',5182,2869.3,'fbxoy')

statement ok
INSERT INTO tab0 VALUES(661,2704,8525.70,'qdkgz',1785,3174.70,'pxaaj')

statement ok
INSERT INTO tab0 VALUES(662,6812,9169.66,'elgmt',792,4243.24,'ndrqr')

statement ok
INSERT INTO tab0 VALUES(663,554,5916.78,'ttruc',3191,2168.11,'uvugx')

statement ok
INSERT INTO tab0 VALUES(664,3758,8344.48,'guwjc',4213,325.59,'snlse')

statement ok
INSERT INTO tab0 VALUES(665,3616,3942.79,'txeeq',9573,628.37,'jprmu')

statement ok
INSERT INTO tab0 VALUES(666,932,9354.99,'ntaoh',1727,4774.23,'pcwfj')

statement ok
INSERT INTO tab0 VALUES(667,6375,1644.26,'gxfwo',6119,5492.64,'dgulb')

statement ok
INSERT INTO tab0 VALUES(668,6725,9526.25,'cjafy',7429,7802.36,'wbrcp')

statement ok
INSERT INTO tab0 VALUES(669,1128,4633.77,'uifwd',5829,256.12,'tbmii')

statement ok
INSERT INTO tab0 VALUES(670,7341,2750.34,'xuicc',3225,6193.19,'cuvxp')

statement ok
INSERT INTO tab0 VALUES(671,7986,5079.91,'vctrd',9516,4984.4,'spgzn')

statement ok
INSERT INTO tab0 VALUES(672,6796,9477.38,'xprmd',8835,3287.96,'wbirn')

statement ok
INSERT INTO tab0 VALUES(673,4869,1715.31,'sjohr',5806,6297.67,'nutra')

statement ok
INSERT INTO tab0 VALUES(674,6918,6722.50,'ypwey',1790,8991.96,'nxlxy')

statement ok
INSERT INTO tab0 VALUES(675,7515,9836.63,'sonig',1137,7382.30,'otueo')

statement ok
INSERT INTO tab0 VALUES(676,7349,8059.89,'rxvnt',7435,9772.49,'knotu')

statement ok
INSERT INTO tab0 VALUES(677,9469,1301.57,'amrww',9760,7988.26,'axiyh')

statement ok
INSERT INTO tab0 VALUES(678,5541,3630.75,'twske',8926,8656.89,'sogum')

statement ok
INSERT INTO tab0 VALUES(679,2092,4529.85,'schpv',3736,4425.89,'eymuv')

statement ok
INSERT INTO tab0 VALUES(680,6763,136.32,'seueh',7233,5238.55,'rvdgu')

statement ok
INSERT INTO tab0 VALUES(681,4556,4503.23,'tsqpw',2943,9567.60,'cxnec')

statement ok
INSERT INTO tab0 VALUES(682,4091,841.88,'zsnuo',1136,5673.85,'fmdtw')

statement ok
INSERT INTO tab0 VALUES(683,3846,2770.49,'axiqf',5067,2851.80,'sbxao')

statement ok
INSERT INTO tab0 VALUES(684,8417,5571.73,'xsmsu',7231,2679.24,'iyfni')

statement ok
INSERT INTO tab0 VALUES(685,4760,7435.44,'iozwk',5610,275.93,'zxewz')

statement ok
INSERT INTO tab0 VALUES(686,8446,715.20,'tslyi',9924,5535.18,'xwoje')

statement ok
INSERT INTO tab0 VALUES(687,9906,3172.95,'ktkdj',7884,4397.49,'sidsn')

statement ok
INSERT INTO tab0 VALUES(688,690,9226.65,'qlhzu',1435,83.17,'qgnnt')

statement ok
INSERT INTO tab0 VALUES(689,9707,1211.88,'wzqro',3016,4346.98,'olqbv')

statement ok
INSERT INTO tab0 VALUES(690,9482,618.48,'rzdxi',1795,8727.74,'fjnuy')

statement ok
INSERT INTO tab0 VALUES(691,2400,9349.15,'exuis',9940,5805.95,'eqtax')

statement ok
INSERT INTO tab0 VALUES(692,6963,967.12,'urdhi',8849,436.44,'fsgoy')

statement ok
INSERT INTO tab0 VALUES(693,4029,1943.71,'tmela',5411,1021.97,'cosgd')

statement ok
INSERT INTO tab0 VALUES(694,3081,2912.2,'xeshu',8253,739.88,'cemrj')

statement ok
INSERT INTO tab0 VALUES(695,8457,9915.52,'zagxc',3990,8807.66,'tfvuk')

statement ok
INSERT INTO tab0 VALUES(696,5609,5655.68,'tjjny',3476,1728.66,'hudof')

statement ok
INSERT INTO tab0 VALUES(697,7354,746.59,'bbqdy',8052,4538.64,'mvskx')

statement ok
INSERT INTO tab0 VALUES(698,122,4960.61,'bkvdn',5800,2059.45,'ayidy')

statement ok
INSERT INTO tab0 VALUES(699,206,8482.96,'elcbz',7787,147.59,'mxzhh')

statement ok
INSERT INTO tab0 VALUES(700,12,3154.37,'juyxq',4320,6947.92,'niixk')

statement ok
INSERT INTO tab0 VALUES(701,4311,3731.69,'hgnez',1193,4135.21,'yhnco')

statement ok
INSERT INTO tab0 VALUES(702,6483,9126.54,'ghqbu',5942,8174.81,'wxovv')

statement ok
INSERT INTO tab0 VALUES(703,4776,3663.89,'kwalf',4085,1561.23,'xahfg')

statement ok
INSERT INTO tab0 VALUES(704,8550,8328.74,'bweiy',5385,4082.84,'dwolx')

statement ok
INSERT INTO tab0 VALUES(705,4527,2012.69,'kyumi',88,4050.42,'inlid')

statement ok
INSERT INTO tab0 VALUES(706,3043,2773.61,'cxuck',5183,9573.81,'dscvq')

statement ok
INSERT INTO tab0 VALUES(707,4297,9073.24,'anhih',639,9788.56,'cjhvn')

statement ok
INSERT INTO tab0 VALUES(708,4602,1039.82,'qzzdy',5675,6118.51,'ugbpm')

statement ok
INSERT INTO tab0 VALUES(709,2633,1704.73,'ytbpp',4989,3523.48,'zohoa')

statement ok
INSERT INTO tab0 VALUES(710,5681,8264.9,'tykur',5022,1745.80,'tomwk')

statement ok
INSERT INTO tab0 VALUES(711,5896,3324.40,'tetjb',202,6565.4,'qgbyu')

statement ok
INSERT INTO tab0 VALUES(712,6546,6151.16,'nzubd',9193,1047.55,'ryngo')

statement ok
INSERT INTO tab0 VALUES(713,8258,3918.50,'xpgjy',1152,6790.13,'rykwg')

statement ok
INSERT INTO tab0 VALUES(714,5276,2963.79,'wmchh',1969,5178.65,'dcozt')

statement ok
INSERT INTO tab0 VALUES(715,1704,30.31,'ubpuy',527,8632.66,'olfui')

statement ok
INSERT INTO tab0 VALUES(716,7761,3527.80,'pfmmo',4945,1856.4,'nxduz')

statement ok
INSERT INTO tab0 VALUES(717,6030,4769.15,'tzyib',8829,3090.59,'suqsh')

statement ok
INSERT INTO tab0 VALUES(718,7706,9232.0,'neccq',7526,5360.69,'fnwxt')

statement ok
INSERT INTO tab0 VALUES(719,8847,7804.37,'yyqgv',4370,7726.90,'lhvdv')

statement ok
INSERT INTO tab0 VALUES(720,6627,8031.27,'fpkfs',6933,6533.60,'mnpca')

statement ok
INSERT INTO tab0 VALUES(721,5578,5369.35,'nxeic',3275,6662.61,'zphcb')

statement ok
INSERT INTO tab0 VALUES(722,3851,4436.51,'ibyik',8196,2779.80,'lohrb')

statement ok
INSERT INTO tab0 VALUES(723,9457,259.50,'mbdyd',9483,585.74,'jpmfn')

statement ok
INSERT INTO tab0 VALUES(724,6522,9525.63,'hlmps',4161,8066.33,'gsdnp')

statement ok
INSERT INTO tab0 VALUES(725,1533,1832.27,'sxjxr',4744,6744.39,'sleoc')

statement ok
INSERT INTO tab0 VALUES(726,9590,937.60,'mvwoz',5484,2924.31,'uijzs')

statement ok
INSERT INTO tab0 VALUES(727,661,6008.13,'cdvqu',8621,8948.66,'xqguc')

statement ok
INSERT INTO tab0 VALUES(728,5824,2874.40,'erdka',634,4444.84,'azlzz')

statement ok
INSERT INTO tab0 VALUES(729,3519,5270.58,'ixqza',8490,7573.68,'uxrci')

statement ok
INSERT INTO tab0 VALUES(730,5803,6098.6,'npmvb',5893,6282.8,'rozyj')

statement ok
INSERT INTO tab0 VALUES(731,4590,8665.16,'blalf',9538,9554.62,'cgsev')

statement ok
INSERT INTO tab0 VALUES(732,7914,7939.64,'sqfar',5356,8657.22,'mfswc')

statement ok
INSERT INTO tab0 VALUES(733,6169,1800.43,'wllzs',4766,8389.70,'mapgf')

statement ok
INSERT INTO tab0 VALUES(734,8364,2284.20,'rzxsy',928,8343.47,'akpfa')

statement ok
INSERT INTO tab0 VALUES(735,8369,6843.0,'esmch',4988,4140.12,'mtxck')

statement ok
INSERT INTO tab0 VALUES(736,1169,9585.88,'iedfg',2330,8689.8,'vvsbh')

statement ok
INSERT INTO tab0 VALUES(737,9111,2530.50,'imvwz',8827,3430.17,'pihzu')

statement ok
INSERT INTO tab0 VALUES(738,8157,6857.80,'mbuhl',7092,9595.33,'hnfxj')

statement ok
INSERT INTO tab0 VALUES(739,4130,4155.59,'pelvk',2724,9445.14,'exmub')

statement ok
INSERT INTO tab0 VALUES(740,8969,7677.16,'xruit',559,7531.52,'suoxi')

statement ok
INSERT INTO tab0 VALUES(741,6974,3577.95,'foibl',927,1933.34,'mynvl')

statement ok
INSERT INTO tab0 VALUES(742,1059,2180.15,'dmhev',5889,5524.1,'jegrm')

statement ok
INSERT INTO tab0 VALUES(743,9002,9215.32,'eprhm',5500,7207.14,'sbnam')

statement ok
INSERT INTO tab0 VALUES(744,9693,7074.2,'tbofs',4049,3170.15,'knajp')

statement ok
INSERT INTO tab0 VALUES(745,9386,6053.45,'npxoh',6319,8138.92,'yisuf')

statement ok
INSERT INTO tab0 VALUES(746,7950,5617.5,'fjajw',3823,6621.36,'uyrqx')

statement ok
INSERT INTO tab0 VALUES(747,5113,5636.13,'cfmrz',1070,4164.10,'eancy')

statement ok
INSERT INTO tab0 VALUES(748,6719,7640.52,'vpidd',1804,8596.7,'nyhtz')

statement ok
INSERT INTO tab0 VALUES(749,978,6072.16,'tecud',5256,1282.14,'hqpjn')

statement ok
INSERT INTO tab0 VALUES(750,4707,9531.77,'wiemw',2398,8374.75,'kcylu')

statement ok
INSERT INTO tab0 VALUES(751,9591,2031.41,'dtprs',2189,2055.52,'cbrsc')

statement ok
INSERT INTO tab0 VALUES(752,8428,4242.17,'mgmyq',7825,1796.89,'gmbzu')

statement ok
INSERT INTO tab0 VALUES(753,1376,4746.76,'xgzrd',2994,5604.74,'ijpqj')

statement ok
INSERT INTO tab0 VALUES(754,2210,1286.12,'smjpp',8118,1269.2,'shafs')

statement ok
INSERT INTO tab0 VALUES(755,4567,2013.10,'omioe',6609,7617.36,'pzleg')

statement ok
INSERT INTO tab0 VALUES(756,8196,6740.4,'oizze',1119,5760.70,'ibnlw')

statement ok
INSERT INTO tab0 VALUES(757,5211,8190.40,'nizra',9786,342.94,'kpmzf')

statement ok
INSERT INTO tab0 VALUES(758,6338,3244.39,'xlsgi',2486,797.53,'qriou')

statement ok
INSERT INTO tab0 VALUES(759,7168,4196.61,'cckyf',7086,2590.10,'fdzfb')

statement ok
INSERT INTO tab0 VALUES(760,4403,9999.65,'mtdbi',5689,8474.12,'ydkao')

statement ok
INSERT INTO tab0 VALUES(761,2111,7515.75,'njetw',886,9735.48,'hwona')

statement ok
INSERT INTO tab0 VALUES(762,7970,2769.36,'ajxow',2008,7445.13,'oyvro')

statement ok
INSERT INTO tab0 VALUES(763,9524,2193.85,'zycbh',1372,3712.73,'zhwdt')

statement ok
INSERT INTO tab0 VALUES(764,429,3881.6,'cvwmc',538,2927.24,'trxbs')

statement ok
INSERT INTO tab0 VALUES(765,6705,8837.98,'nxbij',6547,3020.57,'igtth')

statement ok
INSERT INTO tab0 VALUES(766,2984,2224.33,'fvbbm',8185,6701.17,'nhaee')

statement ok
INSERT INTO tab0 VALUES(767,8764,4617.23,'areph',2223,2720.72,'mueqb')

statement ok
INSERT INTO tab0 VALUES(768,4652,3250.79,'ulpca',9670,7108.67,'yasmr')

statement ok
INSERT INTO tab0 VALUES(769,8622,3267.75,'kxrkr',2025,4435.94,'ihhqy')

statement ok
INSERT INTO tab0 VALUES(770,2261,8973.9,'dzvvz',7524,9054.51,'xkudf')

statement ok
INSERT INTO tab0 VALUES(771,7016,5083.68,'loxup',7391,6353.4,'uklaf')

statement ok
INSERT INTO tab0 VALUES(772,451,7969.90,'lafed',2090,4005.51,'fecsh')

statement ok
INSERT INTO tab0 VALUES(773,2492,6920.23,'twmjm',7572,3220.83,'pbcsm')

statement ok
INSERT INTO tab0 VALUES(774,1677,5378.93,'wkimq',1526,9992.50,'qlqht')

statement ok
INSERT INTO tab0 VALUES(775,1409,2200.61,'zjcgd',9631,6349.18,'llvax')

statement ok
INSERT INTO tab0 VALUES(776,6205,2902.92,'kjbpa',1801,1606.36,'unrox')

statement ok
INSERT INTO tab0 VALUES(777,7942,908.9,'ouoew',8442,3614.97,'yckzx')

statement ok
INSERT INTO tab0 VALUES(778,2113,8804.64,'bggaf',6697,3.0,'ecnrk')

statement ok
INSERT INTO tab0 VALUES(779,4073,9586.94,'xhygi',6696,9447.12,'otvyk')

statement ok
INSERT INTO tab0 VALUES(780,5292,7911.89,'pwbrq',7808,2900.34,'hbskj')

statement ok
INSERT INTO tab0 VALUES(781,9603,1344.49,'hekhp',4891,4851.58,'sldyq')

statement ok
INSERT INTO tab0 VALUES(782,9447,1613.51,'vdrba',4540,4576.35,'moxah')

statement ok
INSERT INTO tab0 VALUES(783,2136,5852.8,'ychmc',1340,7386.34,'rppmj')

statement ok
INSERT INTO tab0 VALUES(784,6093,7860.36,'jkpfn',4114,5875.4,'zdwfb')

statement ok
INSERT INTO tab0 VALUES(785,7100,9343.10,'zabrs',2170,1173.39,'rsoqr')

statement ok
INSERT INTO tab0 VALUES(786,4558,1168.33,'veiru',1561,4198.42,'ynrjy')

statement ok
INSERT INTO tab0 VALUES(787,7728,4612.95,'kbjdu',1318,6901.80,'vuqyb')

statement ok
INSERT INTO tab0 VALUES(788,1985,2613.36,'qionu',9722,3517.56,'mskit')

statement ok
INSERT INTO tab0 VALUES(789,5067,1017.8,'cuzsz',535,1818.63,'eynom')

statement ok
INSERT INTO tab0 VALUES(790,3326,9834.40,'ezgkw',9259,4359.55,'odjkn')

statement ok
INSERT INTO tab0 VALUES(791,7976,4479.96,'zxxwj',9384,9733.0,'qqcbf')

statement ok
INSERT INTO tab0 VALUES(792,1347,7031.44,'sokmw',8638,3817.51,'ahzpv')

statement ok
INSERT INTO tab0 VALUES(793,3129,7480.10,'rnglm',5239,1022.3,'arjsz')

statement ok
INSERT INTO tab0 VALUES(794,6628,4972.50,'lreja',4142,5547.60,'sbxhp')

statement ok
INSERT INTO tab0 VALUES(795,5010,9066.4,'ywfxf',3290,2620.91,'dzodz')

statement ok
INSERT INTO tab0 VALUES(796,7559,980.63,'nkyiw',9865,9763.99,'hrvld')

statement ok
INSERT INTO tab0 VALUES(797,5917,4844.33,'fqigx',6536,8026.82,'oyypt')

statement ok
INSERT INTO tab0 VALUES(798,345,8947.92,'wxecm',7713,3247.92,'kospg')

statement ok
INSERT INTO tab0 VALUES(799,5960,6986.58,'ascyg',5791,7300.1,'wcawe')

statement ok
INSERT INTO tab0 VALUES(800,8999,9322.49,'ktoyh',7406,9342.62,'mkqub')

statement ok
INSERT INTO tab0 VALUES(801,3060,4224.43,'sfgck',9680,7067.72,'nimgr')

statement ok
INSERT INTO tab0 VALUES(802,5353,9122.47,'zsysc',6476,7952.37,'agunc')

statement ok
INSERT INTO tab0 VALUES(803,2953,1853.53,'nqtfw',4642,512.27,'xudoy')

statement ok
INSERT INTO tab0 VALUES(804,9047,1920.4,'gygre',266,5544.48,'hjpyj')

statement ok
INSERT INTO tab0 VALUES(805,9186,1732.57,'rsokq',4926,7383.97,'hxyef')

statement ok
INSERT INTO tab0 VALUES(806,7534,7859.42,'yupsd',1934,5148.29,'nipqf')

statement ok
INSERT INTO tab0 VALUES(807,3118,2282.28,'elzja',2595,3992.18,'wjzzb')

statement ok
INSERT INTO tab0 VALUES(808,6080,3639.84,'mxhgb',2449,6356.18,'vamul')

statement ok
INSERT INTO tab0 VALUES(809,3923,8483.41,'bdhet',7525,3213.29,'rfojk')

statement ok
INSERT INTO tab0 VALUES(810,7765,2523.57,'jgugj',592,5323.55,'imbdf')

statement ok
INSERT INTO tab0 VALUES(811,8586,1881.75,'fiapb',7405,4481.71,'tqcir')

statement ok
INSERT INTO tab0 VALUES(812,3479,4339.91,'xaqcy',2958,4767.83,'xfkud')

statement ok
INSERT INTO tab0 VALUES(813,1903,587.12,'kywvl',7734,3795.91,'yhfjr')

statement ok
INSERT INTO tab0 VALUES(814,1926,5476.21,'krqvb',3953,3966.50,'kxqpf')

statement ok
INSERT INTO tab0 VALUES(815,6484,9270.37,'kcrqx',1825,3717.35,'dyqlp')

statement ok
INSERT INTO tab0 VALUES(816,9622,8886.81,'ybrzk',5797,8764.4,'qmduu')

statement ok
INSERT INTO tab0 VALUES(817,2751,9160.37,'tekhv',805,3367.56,'zsfda')

statement ok
INSERT INTO tab0 VALUES(818,895,4082.13,'rfvob',8522,1565.98,'eghet')

statement ok
INSERT INTO tab0 VALUES(819,8941,8056.4,'zxfrz',3611,8435.7,'cacnz')

statement ok
INSERT INTO tab0 VALUES(820,7889,7142.58,'mmhfm',9971,1337.89,'ssvdg')

statement ok
INSERT INTO tab0 VALUES(821,1099,314.32,'nhkbo',6993,1168.46,'bnkfx')

statement ok
INSERT INTO tab0 VALUES(822,552,705.62,'hmmao',5802,3609.36,'psmoz')

statement ok
INSERT INTO tab0 VALUES(823,3086,6856.19,'sokjf',5514,377.35,'gfojo')

statement ok
INSERT INTO tab0 VALUES(824,6655,3971.74,'wcxqr',9484,473.1,'iifuw')

statement ok
INSERT INTO tab0 VALUES(825,6575,5164.64,'uhvaw',1551,1436.36,'zicpg')

statement ok
INSERT INTO tab0 VALUES(826,1775,2707.47,'xofgl',2297,586.48,'dzeul')

statement ok
INSERT INTO tab0 VALUES(827,1049,9283.72,'whmzy',5290,6280.16,'ojrep')

statement ok
INSERT INTO tab0 VALUES(828,9303,9239.36,'ziioa',3338,9161.48,'ehnbm')

statement ok
INSERT INTO tab0 VALUES(829,3807,9823.49,'argri',4733,3408.46,'cddvp')

statement ok
INSERT INTO tab0 VALUES(830,443,2451.98,'pdfvx',9511,7982.71,'qftph')

statement ok
INSERT INTO tab0 VALUES(831,9958,3950.6,'ewfde',5695,7882.0,'qsmut')

statement ok
INSERT INTO tab0 VALUES(832,4211,7801.96,'eabvb',5538,5390.92,'malwl')

statement ok
INSERT INTO tab0 VALUES(833,2424,5401.55,'fmqyd',1794,1324.52,'emwwx')

statement ok
INSERT INTO tab0 VALUES(834,7435,7302.94,'bhcwt',3948,6289.89,'qdhab')

statement ok
INSERT INTO tab0 VALUES(835,1942,4469.12,'wmxcf',4475,1921.82,'ocokh')

statement ok
INSERT INTO tab0 VALUES(836,4757,9529.59,'knxuu',5088,2147.43,'wkepo')

statement ok
INSERT INTO tab0 VALUES(837,7057,8014.97,'wcogy',2987,4422.74,'pmchp')

statement ok
INSERT INTO tab0 VALUES(838,8630,9621.62,'jqaxi',7112,992.37,'zwduw')

statement ok
INSERT INTO tab0 VALUES(839,4129,9455.31,'txhob',4392,137.13,'xvavx')

statement ok
INSERT INTO tab0 VALUES(840,9320,9282.78,'zthev',5992,7419.61,'pykdg')

statement ok
INSERT INTO tab0 VALUES(841,7332,8776.42,'aqapx',3566,6940.87,'crdar')

statement ok
INSERT INTO tab0 VALUES(842,4907,6774.84,'ehqai',5507,2582.2,'fehyj')

statement ok
INSERT INTO tab0 VALUES(843,8650,2521.56,'ajrqb',3197,9266.88,'rsjhv')

statement ok
INSERT INTO tab0 VALUES(844,1280,6925.59,'uadkd',7253,4197.56,'hnjwh')

statement ok
INSERT INTO tab0 VALUES(845,7880,3799.7,'dnmkr',3785,8115.12,'bcvqq')

statement ok
INSERT INTO tab0 VALUES(846,2145,1122.87,'oxaub',637,6545.18,'fdffo')

statement ok
INSERT INTO tab0 VALUES(847,2634,2283.28,'mqude',3643,1048.56,'nbtou')

statement ok
INSERT INTO tab0 VALUES(848,9016,7319.55,'ffufh',2877,469.89,'fotrb')

statement ok
INSERT INTO tab0 VALUES(849,8329,4197.58,'ftbpl',8898,2188.23,'ghodk')

statement ok
INSERT INTO tab0 VALUES(850,1222,29.52,'goxgj',9005,3371.71,'knwqd')

statement ok
INSERT INTO tab0 VALUES(851,8205,2344.38,'izyet',3486,2220.16,'krtxz')

statement ok
INSERT INTO tab0 VALUES(852,5905,329.70,'dtdzh',1865,9221.71,'zbtyk')

statement ok
INSERT INTO tab0 VALUES(853,3309,6081.12,'uvfrv',9158,8395.43,'ajbzm')

statement ok
INSERT INTO tab0 VALUES(854,8018,5859.6,'gxjbl',2115,8549.96,'ulryc')

statement ok
INSERT INTO tab0 VALUES(855,2498,1328.28,'jbvmt',5478,4522.14,'zvkbe')

statement ok
INSERT INTO tab0 VALUES(856,327,819.58,'ylqor',8224,8443.61,'ujcor')

statement ok
INSERT INTO tab0 VALUES(857,2447,568.36,'vtynz',9820,975.44,'dvtgv')

statement ok
INSERT INTO tab0 VALUES(858,3411,5974.29,'hacee',6473,2563.79,'trqfc')

statement ok
INSERT INTO tab0 VALUES(859,7640,2845.90,'veugn',7374,4690.49,'gkihn')

statement ok
INSERT INTO tab0 VALUES(860,5662,8650.24,'mrden',956,1124.70,'jmzws')

statement ok
INSERT INTO tab0 VALUES(861,373,3768.47,'wauqq',1138,9166.50,'zukkx')

statement ok
INSERT INTO tab0 VALUES(862,3281,2738.51,'lofgt',3580,906.54,'ghdbf')

statement ok
INSERT INTO tab0 VALUES(863,758,5508.65,'lcofa',1927,4464.68,'vqojv')

statement ok
INSERT INTO tab0 VALUES(864,286,8688.21,'dhash',4064,5251.58,'xudvv')

statement ok
INSERT INTO tab0 VALUES(865,6716,6797.10,'xpuyw',8366,7208.32,'htkmr')

statement ok
INSERT INTO tab0 VALUES(866,8506,3514.49,'jrijz',9942,4064.8,'safrb')

statement ok
INSERT INTO tab0 VALUES(867,3982,2930.45,'makmr',6892,582.70,'tisof')

statement ok
INSERT INTO tab0 VALUES(868,7581,794.54,'vsenb',6555,3812.36,'bgstx')

statement ok
INSERT INTO tab0 VALUES(869,6104,5766.42,'kalxj',1756,4337.15,'lunzq')

statement ok
INSERT INTO tab0 VALUES(870,4966,666.55,'dxrae',7061,7525.75,'cbgrs')

statement ok
INSERT INTO tab0 VALUES(871,4442,3725.72,'srcvi',5023,4782.2,'pwxqm')

statement ok
INSERT INTO tab0 VALUES(872,5925,9835.76,'wubji',2430,4796.63,'ahmph')

statement ok
INSERT INTO tab0 VALUES(873,8168,1790.11,'khtlh',6564,4792.71,'gmcxt')

statement ok
INSERT INTO tab0 VALUES(874,3538,1557.45,'lkujb',1443,1779.41,'wcgeu')

statement ok
INSERT INTO tab0 VALUES(875,4266,1506.37,'jjyll',4071,3802.62,'kzquv')

statement ok
INSERT INTO tab0 VALUES(876,8696,5666.92,'exmof',694,1191.52,'nworv')

statement ok
INSERT INTO tab0 VALUES(877,7535,981.32,'kvgai',3044,7811.22,'zwaum')

statement ok
INSERT INTO tab0 VALUES(878,102,8550.50,'juwyz',4591,2313.41,'xhqvj')

statement ok
INSERT INTO tab0 VALUES(879,583,4885.81,'fuqzx',6794,9382.98,'taawy')

statement ok
INSERT INTO tab0 VALUES(880,4273,3159.56,'dwwzd',5351,986.60,'sitxv')

statement ok
INSERT INTO tab0 VALUES(881,3835,4452.72,'jszpo',6448,7634.42,'mmopv')

statement ok
INSERT INTO tab0 VALUES(882,5538,9008.49,'nfous',3008,9616.61,'qhktb')

statement ok
INSERT INTO tab0 VALUES(883,5522,7477.97,'mgmrc',944,8257.8,'ttqbc')

statement ok
INSERT INTO tab0 VALUES(884,6037,2173.72,'oddyf',5405,7168.0,'hresf')

statement ok
INSERT INTO tab0 VALUES(885,1694,8318.48,'wjkos',7033,3497.53,'blnwf')

statement ok
INSERT INTO tab0 VALUES(886,5723,5295.71,'cgznn',8200,9175.36,'ciypx')

statement ok
INSERT INTO tab0 VALUES(887,6212,7895.25,'xkgfz',9274,2167.39,'wnpez')

statement ok
INSERT INTO tab0 VALUES(888,2364,7573.95,'xmqfy',4860,7727.31,'ljpxf')

statement ok
INSERT INTO tab0 VALUES(889,745,3691.27,'vwpyx',48,9640.29,'nfiqq')

statement ok
INSERT INTO tab0 VALUES(890,1537,4773.95,'rbufe',6669,1479.51,'qchmo')

statement ok
INSERT INTO tab0 VALUES(891,4781,9752.58,'uofuy',9540,7852.89,'gcllv')

statement ok
INSERT INTO tab0 VALUES(892,6634,9221.27,'ajhej',2719,5650.64,'wgfxu')

statement ok
INSERT INTO tab0 VALUES(893,5616,6685.25,'vpadv',5751,5301.91,'fytjo')

statement ok
INSERT INTO tab0 VALUES(894,8858,9807.49,'kfdkz',9919,2017.42,'gtvcd')

statement ok
INSERT INTO tab0 VALUES(895,8359,1661.37,'wkdcw',4494,7048.7,'kvgqi')

statement ok
INSERT INTO tab0 VALUES(896,7226,1982.24,'gpmqa',2988,8925.59,'tuspf')

statement ok
INSERT INTO tab0 VALUES(897,5934,8413.8,'urtdq',9395,4717.14,'xdccz')

statement ok
INSERT INTO tab0 VALUES(898,8567,7759.14,'xvqes',4455,1277.94,'iyome')

statement ok
INSERT INTO tab0 VALUES(899,9075,7237.54,'jggie',1892,6494.91,'mnqat')

statement ok
INSERT INTO tab0 VALUES(900,7520,5717.89,'nocwx',4667,543.27,'uyhjj')

statement ok
INSERT INTO tab0 VALUES(901,6329,4988.94,'hmgiy',1234,7127.20,'xwghi')

statement ok
INSERT INTO tab0 VALUES(902,6540,993.18,'hpmcr',1781,4747.42,'vxyjt')

statement ok
INSERT INTO tab0 VALUES(903,4057,5089.50,'bvjfu',4485,7928.87,'ylqiu')

statement ok
INSERT INTO tab0 VALUES(904,5893,5291.76,'edntp',1764,8487.27,'ddrcp')

statement ok
INSERT INTO tab0 VALUES(905,6431,7523.48,'gcorz',6521,6770.81,'crnap')

statement ok
INSERT INTO tab0 VALUES(906,3658,6872.40,'eoghq',8399,2915.72,'ghwuo')

statement ok
INSERT INTO tab0 VALUES(907,5434,8835.17,'fityd',29,8089.94,'xkwwr')

statement ok
INSERT INTO tab0 VALUES(908,5726,566.91,'crsqc',3281,5749.70,'ohbes')

statement ok
INSERT INTO tab0 VALUES(909,866,2133.88,'gyfri',5511,2884.20,'tqsug')

statement ok
INSERT INTO tab0 VALUES(910,5799,7760.10,'tkdgv',5815,1270.19,'lhwmp')

statement ok
INSERT INTO tab0 VALUES(911,336,7086.96,'ooeeb',1278,8716.59,'ytjic')

statement ok
INSERT INTO tab0 VALUES(912,5396,6407.85,'sbygz',3222,317.17,'dvdmc')

statement ok
INSERT INTO tab0 VALUES(913,9265,9928.80,'gceff',3457,9706.12,'rhfoh')

statement ok
INSERT INTO tab0 VALUES(914,3844,1019.6,'oetdd',532,298.68,'wpwnn')

statement ok
INSERT INTO tab0 VALUES(915,890,3455.80,'iswda',5986,6544.82,'cgubi')

statement ok
INSERT INTO tab0 VALUES(916,8283,2675.65,'uqfzg',591,5179.78,'rrdkp')

statement ok
INSERT INTO tab0 VALUES(917,6257,7025.40,'tzatg',613,6476.77,'etuxd')

statement ok
INSERT INTO tab0 VALUES(918,3667,9013.58,'uoglt',4054,5491.55,'njhnk')

statement ok
INSERT INTO tab0 VALUES(919,4227,6557.9,'ipqny',6905,3314.8,'xfdsa')

statement ok
INSERT INTO tab0 VALUES(920,2764,4235.84,'viwql',9394,8324.13,'hhtvn')

statement ok
INSERT INTO tab0 VALUES(921,1471,4535.36,'upuhp',2234,7431.89,'cmvtt')

statement ok
INSERT INTO tab0 VALUES(922,6152,9105.45,'bqhgn',2885,7334.66,'thdsw')

statement ok
INSERT INTO tab0 VALUES(923,2474,3.75,'tjsne',1789,5764.37,'nmarm')

statement ok
INSERT INTO tab0 VALUES(924,2221,950.45,'plvop',8628,2739.32,'rpfdt')

statement ok
INSERT INTO tab0 VALUES(925,9535,8572.84,'vmxey',8572,1811.72,'tpcrr')

statement ok
INSERT INTO tab0 VALUES(926,7175,3658.95,'mazfr',8529,1318.34,'powpy')

statement ok
INSERT INTO tab0 VALUES(927,2762,2409.21,'kwxvq',3395,5632.16,'kinpi')

statement ok
INSERT INTO tab0 VALUES(928,5032,7683.4,'owlnf',2305,6413.96,'aaefq')

statement ok
INSERT INTO tab0 VALUES(929,79,250.50,'wpllk',4883,3853.97,'yqzrv')

statement ok
INSERT INTO tab0 VALUES(930,7616,37.88,'rvzha',7489,7929.47,'kwklh')

statement ok
INSERT INTO tab0 VALUES(931,7219,7386.37,'nglru',9474,9656.43,'spgux')

statement ok
INSERT INTO tab0 VALUES(932,4573,4297.64,'naqwj',9425,2334.16,'bmwlz')

statement ok
INSERT INTO tab0 VALUES(933,7730,5679.51,'lmynr',1420,2794.88,'zrhgr')

statement ok
INSERT INTO tab0 VALUES(934,3354,603.53,'ttmdw',1270,2657.38,'fjeuz')

statement ok
INSERT INTO tab0 VALUES(935,2973,3548.65,'uhdsm',2781,9575.66,'yofzv')

statement ok
INSERT INTO tab0 VALUES(936,9226,5656.79,'xrulp',3993,8490.51,'ykare')

statement ok
INSERT INTO tab0 VALUES(937,2119,5977.54,'objix',3435,2876.17,'rfikg')

statement ok
INSERT INTO tab0 VALUES(938,5268,2720.70,'kuatz',6376,5990.95,'jtfvq')

statement ok
INSERT INTO tab0 VALUES(939,2153,4509.97,'ohfde',1071,2128.83,'ezbmj')

statement ok
INSERT INTO tab0 VALUES(940,2369,1624.54,'phuox',5013,7870.12,'juuja')

statement ok
INSERT INTO tab0 VALUES(941,7874,7254.75,'rwhjt',1186,3332.8,'jkzry')

statement ok
INSERT INTO tab0 VALUES(942,9236,8752.66,'srvup',4310,3414.51,'vfydh')

statement ok
INSERT INTO tab0 VALUES(943,1889,8881.74,'oxlss',7095,9050.41,'zhvzf')

statement ok
INSERT INTO tab0 VALUES(944,2382,7061.42,'ysbav',6488,8462.60,'nzyjx')

statement ok
INSERT INTO tab0 VALUES(945,4623,624.81,'vwrmj',9923,8405.33,'vsoat')

statement ok
INSERT INTO tab0 VALUES(946,6137,6062.22,'ilnhp',1577,5419.92,'ckhxp')

statement ok
INSERT INTO tab0 VALUES(947,4312,278.88,'zlcoo',8609,7082.38,'ledvp')

statement ok
INSERT INTO tab0 VALUES(948,2642,1833.48,'vhlek',7421,3255.4,'czqbq')

statement ok
INSERT INTO tab0 VALUES(949,6997,2201.88,'mpbgk',9902,7331.15,'kgwae')

statement ok
INSERT INTO tab0 VALUES(950,1851,7015.67,'iufue',9679,7495.54,'bnstq')

statement ok
INSERT INTO tab0 VALUES(951,6544,7313.80,'qpzkp',8367,7962.23,'czash')

statement ok
INSERT INTO tab0 VALUES(952,1529,804.26,'qwjve',1819,235.5,'heoip')

statement ok
INSERT INTO tab0 VALUES(953,4624,3098.64,'ramnb',6377,4350.26,'xofpe')

statement ok
INSERT INTO tab0 VALUES(954,7256,8969.78,'ktpkd',5122,128.22,'dhfuz')

statement ok
INSERT INTO tab0 VALUES(955,720,3600.43,'trimf',4122,8428.92,'bocxl')

statement ok
INSERT INTO tab0 VALUES(956,2422,3835.79,'fwshe',8683,2392.73,'unzop')

statement ok
INSERT INTO tab0 VALUES(957,2131,9428.24,'xrlty',9601,8697.91,'rsnje')

statement ok
INSERT INTO tab0 VALUES(958,8232,4292.87,'qausu',9409,8806.31,'ivfrt')

statement ok
INSERT INTO tab0 VALUES(959,3967,7751.17,'cjxkj',8629,218.95,'udlfv')

statement ok
INSERT INTO tab0 VALUES(960,3699,5791.63,'zexkx',2019,7714.69,'tknqa')

statement ok
INSERT INTO tab0 VALUES(961,9150,2304.35,'emyyf',4828,4613.81,'lfagf')

statement ok
INSERT INTO tab0 VALUES(962,5655,347.71,'rqksx',9044,4019.66,'avrnn')

statement ok
INSERT INTO tab0 VALUES(963,8414,3381.95,'xyzll',9640,70.29,'mppvp')

statement ok
INSERT INTO tab0 VALUES(964,8740,6534.80,'vcuml',829,9191.3,'xvmys')

statement ok
INSERT INTO tab0 VALUES(965,308,7841.14,'yzono',2313,1338.20,'pepus')

statement ok
INSERT INTO tab0 VALUES(966,5408,9494.60,'piqct',5531,1255.64,'emaak')

statement ok
INSERT INTO tab0 VALUES(967,1191,9102.17,'ydihj',9910,9724.41,'pfroo')

statement ok
INSERT INTO tab0 VALUES(968,5923,928.85,'bnuji',9118,4807.36,'lenjy')

statement ok
INSERT INTO tab0 VALUES(969,5234,7149.28,'hefkd',7308,3105.80,'ydpar')

statement ok
INSERT INTO tab0 VALUES(970,8367,9100.33,'dccvd',5373,1001.9,'fmgfa')

statement ok
INSERT INTO tab0 VALUES(971,4425,8527.76,'lefcn',7194,5916.29,'ftgqw')

statement ok
INSERT INTO tab0 VALUES(972,8628,8838.83,'qvtjn',5890,7554.77,'ajvhr')

statement ok
INSERT INTO tab0 VALUES(973,8558,6344.93,'rnnbo',70,9156.84,'udukn')

statement ok
INSERT INTO tab0 VALUES(974,411,1527.19,'hqzni',75,8746.37,'davvk')

statement ok
INSERT INTO tab0 VALUES(975,5245,271.13,'ewkpu',4245,386.42,'zpkvh')

statement ok
INSERT INTO tab0 VALUES(976,5233,5122.27,'wwdhq',5149,5420.88,'vwcpe')

statement ok
INSERT INTO tab0 VALUES(977,9908,6539.75,'bbllb',5848,3729.5,'ytozh')

statement ok
INSERT INTO tab0 VALUES(978,2421,4138.97,'ubvgc',6141,4979.33,'htryf')

statement ok
INSERT INTO tab0 VALUES(979,5782,7945.20,'jjezq',8816,9871.77,'wntka')

statement ok
INSERT INTO tab0 VALUES(980,9117,9649.22,'qbumr',5898,1392.77,'ppprh')

statement ok
INSERT INTO tab0 VALUES(981,3913,3847.92,'agmzg',4900,6062.66,'sasgk')

statement ok
INSERT INTO tab0 VALUES(982,274,9296.96,'sywpt',5075,5187.32,'svffn')

statement ok
INSERT INTO tab0 VALUES(983,3163,166.38,'vmhxy',3663,6111.82,'muhdt')

statement ok
INSERT INTO tab0 VALUES(984,8659,7280.21,'jfctd',2142,3458.7,'mazlk')

statement ok
INSERT INTO tab0 VALUES(985,202,9381.10,'ncsrh',2479,392.40,'ynofv')

statement ok
INSERT INTO tab0 VALUES(986,4849,4365.96,'slsqb',3380,9859.19,'tamtx')

statement ok
INSERT INTO tab0 VALUES(987,9517,541.59,'tlaqd',6537,5842.55,'whrfu')

statement ok
INSERT INTO tab0 VALUES(988,7237,7878.28,'xsakc',2883,4609.87,'eamfi')

statement ok
INSERT INTO tab0 VALUES(989,3404,9255.45,'bcqwv',8838,5959.49,'xizkc')

statement ok
INSERT INTO tab0 VALUES(990,2026,1708.25,'xfnxi',2560,4484.31,'klxgl')

statement ok
INSERT INTO tab0 VALUES(991,1974,7689.25,'xzdwc',195,804.44,'pgymt')

statement ok
INSERT INTO tab0 VALUES(992,3232,6306.99,'qlwic',2127,2829.77,'xauxl')

statement ok
INSERT INTO tab0 VALUES(993,3148,4580.64,'qgfpa',9232,7001.67,'lygvc')

statement ok
INSERT INTO tab0 VALUES(994,2684,8689.63,'whxmh',9119,9548.53,'cuktu')

statement ok
INSERT INTO tab0 VALUES(995,2662,5221.27,'ojwsf',2388,7735.46,'tnrey')

statement ok
INSERT INTO tab0 VALUES(996,21,2428.36,'kuotd',8878,1111.89,'hzcxo')

statement ok
INSERT INTO tab0 VALUES(997,4063,1471.84,'uabhp',3914,2755.16,'vlgyj')

statement ok
INSERT INTO tab0 VALUES(998,2700,7668.38,'viazh',4562,544.19,'tglza')

statement ok
INSERT INTO tab0 VALUES(999,8710,1750.6,'lhayl',5873,8373.10,'wkzba')

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

statement ok
CREATE INDEX idx_tab1_0 on tab1 (col0)

statement ok
CREATE INDEX idx_tab1_1 on tab1 (col1)

statement ok
CREATE INDEX idx_tab1_3 on tab1 (col3)

statement ok
CREATE INDEX idx_tab1_4 on tab1 (col4)

statement ok
INSERT INTO tab1 SELECT * FROM tab0

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

statement ok
CREATE INDEX idx_tab2_0 ON tab2 (col0 DESC,col3 DESC,col4 DESC)

statement ok
CREATE INDEX idx_tab2_2 ON tab2 (col4 DESC)

statement ok
CREATE INDEX idx_tab2_3 ON tab2 (col3)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

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

statement ok
CREATE UNIQUE INDEX idx_tab3_0 ON tab3 (col4)

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

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

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

statement ok
CREATE UNIQUE INDEX idx_tab4_1 ON tab4 (col4 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
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab0_737 AS SELECT pk, col0 FROM tab0 WHERE (col0 < 168 AND (col0 >= 6575 AND (((col1 < 3161.1)))))

statement ok
CREATE VIEW view_2_tab0_737 AS SELECT pk, col0 FROM tab0 WHERE NOT ((col0 < 168 AND (col0 >= 6575 AND (((col1 < 3161.1))))))

statement ok
CREATE VIEW view_3_tab0_737 AS SELECT pk FROM view_1_tab0_737

query II rowsort label-0-1
SELECT pk, col0 FROM tab0 WHERE (col0 < 168 AND (col0 >= 6575 AND (((col1 < 3161.1)))))
----

query II rowsort label-0-2
SELECT pk, col0 FROM tab0 WHERE NOT ((col0 < 168 AND (col0 >= 6575 AND (((col1 < 3161.1))))))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

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

query II rowsort label-0-2
SELECT pk, col0 FROM view_2_tab0_737
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col0 < 168 AND (col0 >= 6575 AND (((col1 < 3161.1))))) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT ((col0 < 168 AND (col0 >= 6575 AND (((col1 < 3161.1))))))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_737 UNION ALL SELECT pk, col0 FROM view_2_tab0_737
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col0 < 168 AND (col0 >= 6575 AND (((col1 < 3161.1))))) UNION SELECT pk, col0 FROM tab0 WHERE NOT ((col0 < 168 AND (col0 >= 6575 AND (((col1 < 3161.1))))))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_737 UNION SELECT pk, col0 FROM view_2_tab0_737
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-0-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE (col0 < 168 AND (col0 >= 6575 AND (((col1 < 3161.1))))) ) AS tab0_737
----

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

query I rowsort label-0-3
SELECT pk FROM tab0 WHERE (col0 < 168 AND (col0 >= 6575 AND (((col1 < 3161.1)))))
----

statement ok
DROP VIEW view_1_tab0_737

statement ok
DROP VIEW view_2_tab0_737

statement ok
DROP VIEW view_3_tab0_737

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab1_737 AS SELECT pk, col0 FROM tab1 WHERE (col0 < 168 AND (col0 >= 6575 AND (((col1 < 3161.1)))))

statement ok
CREATE VIEW view_2_tab1_737 AS SELECT pk, col0 FROM tab1 WHERE NOT ((col0 < 168 AND (col0 >= 6575 AND (((col1 < 3161.1))))))

statement ok
CREATE VIEW view_3_tab1_737 AS SELECT pk FROM view_1_tab1_737

query II rowsort label-0-1
SELECT pk, col0 FROM tab1 WHERE (col0 < 168 AND (col0 >= 6575 AND (((col1 < 3161.1)))))
----

query II rowsort label-0-2
SELECT pk, col0 FROM tab1 WHERE NOT ((col0 < 168 AND (col0 >= 6575 AND (((col1 < 3161.1))))))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

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

query II rowsort label-0-2
SELECT pk, col0 FROM view_2_tab1_737
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col0 < 168 AND (col0 >= 6575 AND (((col1 < 3161.1))))) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT ((col0 < 168 AND (col0 >= 6575 AND (((col1 < 3161.1))))))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_737 UNION ALL SELECT pk, col0 FROM view_2_tab1_737
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col0 < 168 AND (col0 >= 6575 AND (((col1 < 3161.1))))) UNION SELECT pk, col0 FROM tab1 WHERE NOT ((col0 < 168 AND (col0 >= 6575 AND (((col1 < 3161.1))))))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_737 UNION SELECT pk, col0 FROM view_2_tab1_737
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-0-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE (col0 < 168 AND (col0 >= 6575 AND (((col1 < 3161.1))))) ) AS tab1_737
----

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

query I rowsort label-0-3
SELECT pk FROM tab1 WHERE (col0 < 168 AND (col0 >= 6575 AND (((col1 < 3161.1)))))
----

statement ok
DROP VIEW view_1_tab1_737

statement ok
DROP VIEW view_2_tab1_737

statement ok
DROP VIEW view_3_tab1_737

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab2_737 AS SELECT pk, col0 FROM tab2 WHERE (col0 < 168 AND (col0 >= 6575 AND (((col1 < 3161.1)))))

statement ok
CREATE VIEW view_2_tab2_737 AS SELECT pk, col0 FROM tab2 WHERE NOT ((col0 < 168 AND (col0 >= 6575 AND (((col1 < 3161.1))))))

statement ok
CREATE VIEW view_3_tab2_737 AS SELECT pk FROM view_1_tab2_737

query II rowsort label-0-1
SELECT pk, col0 FROM tab2 WHERE (col0 < 168 AND (col0 >= 6575 AND (((col1 < 3161.1)))))
----

query II rowsort label-0-2
SELECT pk, col0 FROM tab2 WHERE NOT ((col0 < 168 AND (col0 >= 6575 AND (((col1 < 3161.1))))))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

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

query II rowsort label-0-2
SELECT pk, col0 FROM view_2_tab2_737
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col0 < 168 AND (col0 >= 6575 AND (((col1 < 3161.1))))) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT ((col0 < 168 AND (col0 >= 6575 AND (((col1 < 3161.1))))))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_737 UNION ALL SELECT pk, col0 FROM view_2_tab2_737
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col0 < 168 AND (col0 >= 6575 AND (((col1 < 3161.1))))) UNION SELECT pk, col0 FROM tab2 WHERE NOT ((col0 < 168 AND (col0 >= 6575 AND (((col1 < 3161.1))))))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_737 UNION SELECT pk, col0 FROM view_2_tab2_737
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-0-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE (col0 < 168 AND (col0 >= 6575 AND (((col1 < 3161.1))))) ) AS tab2_737
----

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

query I rowsort label-0-3
SELECT pk FROM tab2 WHERE (col0 < 168 AND (col0 >= 6575 AND (((col1 < 3161.1)))))
----

statement ok
DROP VIEW view_1_tab2_737

statement ok
DROP VIEW view_2_tab2_737

statement ok
DROP VIEW view_3_tab2_737

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab3_737 AS SELECT pk, col0 FROM tab3 WHERE (col0 < 168 AND (col0 >= 6575 AND (((col1 < 3161.1)))))

statement ok
CREATE VIEW view_2_tab3_737 AS SELECT pk, col0 FROM tab3 WHERE NOT ((col0 < 168 AND (col0 >= 6575 AND (((col1 < 3161.1))))))

statement ok
CREATE VIEW view_3_tab3_737 AS SELECT pk FROM view_1_tab3_737

query II rowsort label-0-1
SELECT pk, col0 FROM tab3 WHERE (col0 < 168 AND (col0 >= 6575 AND (((col1 < 3161.1)))))
----

query II rowsort label-0-2
SELECT pk, col0 FROM tab3 WHERE NOT ((col0 < 168 AND (col0 >= 6575 AND (((col1 < 3161.1))))))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

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

query II rowsort label-0-2
SELECT pk, col0 FROM view_2_tab3_737
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col0 < 168 AND (col0 >= 6575 AND (((col1 < 3161.1))))) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT ((col0 < 168 AND (col0 >= 6575 AND (((col1 < 3161.1))))))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_737 UNION ALL SELECT pk, col0 FROM view_2_tab3_737
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col0 < 168 AND (col0 >= 6575 AND (((col1 < 3161.1))))) UNION SELECT pk, col0 FROM tab3 WHERE NOT ((col0 < 168 AND (col0 >= 6575 AND (((col1 < 3161.1))))))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_737 UNION SELECT pk, col0 FROM view_2_tab3_737
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-0-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE (col0 < 168 AND (col0 >= 6575 AND (((col1 < 3161.1))))) ) AS tab3_737
----

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

query I rowsort label-0-3
SELECT pk FROM tab3 WHERE (col0 < 168 AND (col0 >= 6575 AND (((col1 < 3161.1)))))
----

statement ok
DROP VIEW view_1_tab3_737

statement ok
DROP VIEW view_2_tab3_737

statement ok
DROP VIEW view_3_tab3_737

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab4_737 AS SELECT pk, col0 FROM tab4 WHERE (col0 < 168 AND (col0 >= 6575 AND (((col1 < 3161.1)))))

statement ok
CREATE VIEW view_2_tab4_737 AS SELECT pk, col0 FROM tab4 WHERE NOT ((col0 < 168 AND (col0 >= 6575 AND (((col1 < 3161.1))))))

statement ok
CREATE VIEW view_3_tab4_737 AS SELECT pk FROM view_1_tab4_737

query II rowsort label-0-1
SELECT pk, col0 FROM tab4 WHERE (col0 < 168 AND (col0 >= 6575 AND (((col1 < 3161.1)))))
----

query II rowsort label-0-2
SELECT pk, col0 FROM tab4 WHERE NOT ((col0 < 168 AND (col0 >= 6575 AND (((col1 < 3161.1))))))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

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

query II rowsort label-0-2
SELECT pk, col0 FROM view_2_tab4_737
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col0 < 168 AND (col0 >= 6575 AND (((col1 < 3161.1))))) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT ((col0 < 168 AND (col0 >= 6575 AND (((col1 < 3161.1))))))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_737 UNION ALL SELECT pk, col0 FROM view_2_tab4_737
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col0 < 168 AND (col0 >= 6575 AND (((col1 < 3161.1))))) UNION SELECT pk, col0 FROM tab4 WHERE NOT ((col0 < 168 AND (col0 >= 6575 AND (((col1 < 3161.1))))))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_737 UNION SELECT pk, col0 FROM view_2_tab4_737
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-0-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE (col0 < 168 AND (col0 >= 6575 AND (((col1 < 3161.1))))) ) AS tab4_737
----

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

query I rowsort label-0-3
SELECT pk FROM tab4 WHERE (col0 < 168 AND (col0 >= 6575 AND (((col1 < 3161.1)))))
----

statement ok
DROP VIEW view_1_tab4_737

statement ok
DROP VIEW view_2_tab4_737

statement ok
DROP VIEW view_3_tab4_737

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab0_739 AS SELECT pk, col0 FROM tab0 WHERE col0 > 9042

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

statement ok
CREATE VIEW view_3_tab0_739 AS SELECT pk FROM view_1_tab0_739

query II rowsort label-100-1
SELECT pk, col0 FROM tab0 WHERE col0 > 9042
----
176 values hashing to baaadf7aefe923c3e6ada2a68d218265

query II rowsort label-100-2
SELECT pk, col0 FROM tab0 WHERE NOT (col0 > 9042)
----
1824 values hashing to 80122e55845be78d76cc780f10bdd48d

query II rowsort label-100-1
SELECT pk, col0 FROM view_1_tab0_739
----
176 values hashing to baaadf7aefe923c3e6ada2a68d218265

query II rowsort label-100-2
SELECT pk, col0 FROM view_2_tab0_739
----
1824 values hashing to 80122e55845be78d76cc780f10bdd48d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col0 > 9042 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col0 > 9042)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_739 UNION ALL SELECT pk, col0 FROM view_2_tab0_739
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col0 > 9042 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col0 > 9042)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_739 UNION SELECT pk, col0 FROM view_2_tab0_739
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col0 > 9042 ) AS tab0_739
----
88 values hashing to 562c36a9a2f908bf0c81b2226eaf465b

query I rowsort label-100-3
SELECT * FROM view_3_tab0_739
----
88 values hashing to 562c36a9a2f908bf0c81b2226eaf465b

query I rowsort label-100-3
SELECT pk FROM tab0 WHERE col0 > 9042
----
88 values hashing to 562c36a9a2f908bf0c81b2226eaf465b

statement ok
DROP VIEW view_1_tab0_739

statement ok
DROP VIEW view_2_tab0_739

statement ok
DROP VIEW view_3_tab0_739

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab1_739 AS SELECT pk, col0 FROM tab1 WHERE col0 > 9042

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

statement ok
CREATE VIEW view_3_tab1_739 AS SELECT pk FROM view_1_tab1_739

query II rowsort label-100-1
SELECT pk, col0 FROM tab1 WHERE col0 > 9042
----
176 values hashing to baaadf7aefe923c3e6ada2a68d218265

query II rowsort label-100-2
SELECT pk, col0 FROM tab1 WHERE NOT (col0 > 9042)
----
1824 values hashing to 80122e55845be78d76cc780f10bdd48d

query II rowsort label-100-1
SELECT pk, col0 FROM view_1_tab1_739
----
176 values hashing to baaadf7aefe923c3e6ada2a68d218265

query II rowsort label-100-2
SELECT pk, col0 FROM view_2_tab1_739
----
1824 values hashing to 80122e55845be78d76cc780f10bdd48d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col0 > 9042 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col0 > 9042)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_739 UNION ALL SELECT pk, col0 FROM view_2_tab1_739
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col0 > 9042 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col0 > 9042)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_739 UNION SELECT pk, col0 FROM view_2_tab1_739
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col0 > 9042 ) AS tab1_739
----
88 values hashing to 562c36a9a2f908bf0c81b2226eaf465b

query I rowsort label-100-3
SELECT * FROM view_3_tab1_739
----
88 values hashing to 562c36a9a2f908bf0c81b2226eaf465b

query I rowsort label-100-3
SELECT pk FROM tab1 WHERE col0 > 9042
----
88 values hashing to 562c36a9a2f908bf0c81b2226eaf465b

statement ok
DROP VIEW view_1_tab1_739

statement ok
DROP VIEW view_2_tab1_739

statement ok
DROP VIEW view_3_tab1_739

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab2_739 AS SELECT pk, col0 FROM tab2 WHERE col0 > 9042

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

statement ok
CREATE VIEW view_3_tab2_739 AS SELECT pk FROM view_1_tab2_739

query II rowsort label-100-1
SELECT pk, col0 FROM tab2 WHERE col0 > 9042
----
176 values hashing to baaadf7aefe923c3e6ada2a68d218265

query II rowsort label-100-2
SELECT pk, col0 FROM tab2 WHERE NOT (col0 > 9042)
----
1824 values hashing to 80122e55845be78d76cc780f10bdd48d

query II rowsort label-100-1
SELECT pk, col0 FROM view_1_tab2_739
----
176 values hashing to baaadf7aefe923c3e6ada2a68d218265

query II rowsort label-100-2
SELECT pk, col0 FROM view_2_tab2_739
----
1824 values hashing to 80122e55845be78d76cc780f10bdd48d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col0 > 9042 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col0 > 9042)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_739 UNION ALL SELECT pk, col0 FROM view_2_tab2_739
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col0 > 9042 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col0 > 9042)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_739 UNION SELECT pk, col0 FROM view_2_tab2_739
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col0 > 9042 ) AS tab2_739
----
88 values hashing to 562c36a9a2f908bf0c81b2226eaf465b

query I rowsort label-100-3
SELECT * FROM view_3_tab2_739
----
88 values hashing to 562c36a9a2f908bf0c81b2226eaf465b

query I rowsort label-100-3
SELECT pk FROM tab2 WHERE col0 > 9042
----
88 values hashing to 562c36a9a2f908bf0c81b2226eaf465b

statement ok
DROP VIEW view_1_tab2_739

statement ok
DROP VIEW view_2_tab2_739

statement ok
DROP VIEW view_3_tab2_739

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab3_739 AS SELECT pk, col0 FROM tab3 WHERE col0 > 9042

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

statement ok
CREATE VIEW view_3_tab3_739 AS SELECT pk FROM view_1_tab3_739

query II rowsort label-100-1
SELECT pk, col0 FROM tab3 WHERE col0 > 9042
----
176 values hashing to baaadf7aefe923c3e6ada2a68d218265

query II rowsort label-100-2
SELECT pk, col0 FROM tab3 WHERE NOT (col0 > 9042)
----
1824 values hashing to 80122e55845be78d76cc780f10bdd48d

query II rowsort label-100-1
SELECT pk, col0 FROM view_1_tab3_739
----
176 values hashing to baaadf7aefe923c3e6ada2a68d218265

query II rowsort label-100-2
SELECT pk, col0 FROM view_2_tab3_739
----
1824 values hashing to 80122e55845be78d76cc780f10bdd48d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col0 > 9042 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col0 > 9042)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_739 UNION ALL SELECT pk, col0 FROM view_2_tab3_739
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col0 > 9042 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col0 > 9042)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_739 UNION SELECT pk, col0 FROM view_2_tab3_739
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col0 > 9042 ) AS tab3_739
----
88 values hashing to 562c36a9a2f908bf0c81b2226eaf465b

query I rowsort label-100-3
SELECT * FROM view_3_tab3_739
----
88 values hashing to 562c36a9a2f908bf0c81b2226eaf465b

query I rowsort label-100-3
SELECT pk FROM tab3 WHERE col0 > 9042
----
88 values hashing to 562c36a9a2f908bf0c81b2226eaf465b

statement ok
DROP VIEW view_1_tab3_739

statement ok
DROP VIEW view_2_tab3_739

statement ok
DROP VIEW view_3_tab3_739

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab4_739 AS SELECT pk, col0 FROM tab4 WHERE col0 > 9042

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

statement ok
CREATE VIEW view_3_tab4_739 AS SELECT pk FROM view_1_tab4_739

query II rowsort label-100-1
SELECT pk, col0 FROM tab4 WHERE col0 > 9042
----
176 values hashing to baaadf7aefe923c3e6ada2a68d218265

query II rowsort label-100-2
SELECT pk, col0 FROM tab4 WHERE NOT (col0 > 9042)
----
1824 values hashing to 80122e55845be78d76cc780f10bdd48d

query II rowsort label-100-1
SELECT pk, col0 FROM view_1_tab4_739
----
176 values hashing to baaadf7aefe923c3e6ada2a68d218265

query II rowsort label-100-2
SELECT pk, col0 FROM view_2_tab4_739
----
1824 values hashing to 80122e55845be78d76cc780f10bdd48d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col0 > 9042 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col0 > 9042)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_739 UNION ALL SELECT pk, col0 FROM view_2_tab4_739
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col0 > 9042 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col0 > 9042)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_739 UNION SELECT pk, col0 FROM view_2_tab4_739
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col0 > 9042 ) AS tab4_739
----
88 values hashing to 562c36a9a2f908bf0c81b2226eaf465b

query I rowsort label-100-3
SELECT * FROM view_3_tab4_739
----
88 values hashing to 562c36a9a2f908bf0c81b2226eaf465b

query I rowsort label-100-3
SELECT pk FROM tab4 WHERE col0 > 9042
----
88 values hashing to 562c36a9a2f908bf0c81b2226eaf465b

statement ok
DROP VIEW view_1_tab4_739

statement ok
DROP VIEW view_2_tab4_739

statement ok
DROP VIEW view_3_tab4_739

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab0_740 AS SELECT pk, col0 FROM tab0 WHERE col0 > 6294

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

statement ok
CREATE VIEW view_3_tab0_740 AS SELECT pk FROM view_1_tab0_740

query II rowsort label-200-1
SELECT pk, col0 FROM tab0 WHERE col0 > 6294
----
748 values hashing to 94a5b05e2350a4bc301cf8e9088a805e

query II rowsort label-200-2
SELECT pk, col0 FROM tab0 WHERE NOT (col0 > 6294)
----
1252 values hashing to 0aa71d0300a880b98804e06684610ae1

query II rowsort label-200-1
SELECT pk, col0 FROM view_1_tab0_740
----
748 values hashing to 94a5b05e2350a4bc301cf8e9088a805e

query II rowsort label-200-2
SELECT pk, col0 FROM view_2_tab0_740
----
1252 values hashing to 0aa71d0300a880b98804e06684610ae1

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col0 > 6294 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col0 > 6294)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_740 UNION ALL SELECT pk, col0 FROM view_2_tab0_740
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col0 > 6294 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col0 > 6294)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_740 UNION SELECT pk, col0 FROM view_2_tab0_740
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col0 > 6294 ) AS tab0_740
----
374 values hashing to 8d47bb3f60ee9452b6309b3f3733b389

query I rowsort label-200-3
SELECT * FROM view_3_tab0_740
----
374 values hashing to 8d47bb3f60ee9452b6309b3f3733b389

query I rowsort label-200-3
SELECT pk FROM tab0 WHERE col0 > 6294
----
374 values hashing to 8d47bb3f60ee9452b6309b3f3733b389

statement ok
DROP VIEW view_1_tab0_740

statement ok
DROP VIEW view_2_tab0_740

statement ok
DROP VIEW view_3_tab0_740

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab1_740 AS SELECT pk, col0 FROM tab1 WHERE col0 > 6294

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

statement ok
CREATE VIEW view_3_tab1_740 AS SELECT pk FROM view_1_tab1_740

query II rowsort label-200-1
SELECT pk, col0 FROM tab1 WHERE col0 > 6294
----
748 values hashing to 94a5b05e2350a4bc301cf8e9088a805e

query II rowsort label-200-2
SELECT pk, col0 FROM tab1 WHERE NOT (col0 > 6294)
----
1252 values hashing to 0aa71d0300a880b98804e06684610ae1

query II rowsort label-200-1
SELECT pk, col0 FROM view_1_tab1_740
----
748 values hashing to 94a5b05e2350a4bc301cf8e9088a805e

query II rowsort label-200-2
SELECT pk, col0 FROM view_2_tab1_740
----
1252 values hashing to 0aa71d0300a880b98804e06684610ae1

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col0 > 6294 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col0 > 6294)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_740 UNION ALL SELECT pk, col0 FROM view_2_tab1_740
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col0 > 6294 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col0 > 6294)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_740 UNION SELECT pk, col0 FROM view_2_tab1_740
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col0 > 6294 ) AS tab1_740
----
374 values hashing to 8d47bb3f60ee9452b6309b3f3733b389

query I rowsort label-200-3
SELECT * FROM view_3_tab1_740
----
374 values hashing to 8d47bb3f60ee9452b6309b3f3733b389

query I rowsort label-200-3
SELECT pk FROM tab1 WHERE col0 > 6294
----
374 values hashing to 8d47bb3f60ee9452b6309b3f3733b389

statement ok
DROP VIEW view_1_tab1_740

statement ok
DROP VIEW view_2_tab1_740

statement ok
DROP VIEW view_3_tab1_740

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab2_740 AS SELECT pk, col0 FROM tab2 WHERE col0 > 6294

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

statement ok
CREATE VIEW view_3_tab2_740 AS SELECT pk FROM view_1_tab2_740

query II rowsort label-200-1
SELECT pk, col0 FROM tab2 WHERE col0 > 6294
----
748 values hashing to 94a5b05e2350a4bc301cf8e9088a805e

query II rowsort label-200-2
SELECT pk, col0 FROM tab2 WHERE NOT (col0 > 6294)
----
1252 values hashing to 0aa71d0300a880b98804e06684610ae1

query II rowsort label-200-1
SELECT pk, col0 FROM view_1_tab2_740
----
748 values hashing to 94a5b05e2350a4bc301cf8e9088a805e

query II rowsort label-200-2
SELECT pk, col0 FROM view_2_tab2_740
----
1252 values hashing to 0aa71d0300a880b98804e06684610ae1

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col0 > 6294 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col0 > 6294)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_740 UNION ALL SELECT pk, col0 FROM view_2_tab2_740
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col0 > 6294 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col0 > 6294)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_740 UNION SELECT pk, col0 FROM view_2_tab2_740
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col0 > 6294 ) AS tab2_740
----
374 values hashing to 8d47bb3f60ee9452b6309b3f3733b389

query I rowsort label-200-3
SELECT * FROM view_3_tab2_740
----
374 values hashing to 8d47bb3f60ee9452b6309b3f3733b389

query I rowsort label-200-3
SELECT pk FROM tab2 WHERE col0 > 6294
----
374 values hashing to 8d47bb3f60ee9452b6309b3f3733b389

statement ok
DROP VIEW view_1_tab2_740

statement ok
DROP VIEW view_2_tab2_740

statement ok
DROP VIEW view_3_tab2_740

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab3_740 AS SELECT pk, col0 FROM tab3 WHERE col0 > 6294

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

statement ok
CREATE VIEW view_3_tab3_740 AS SELECT pk FROM view_1_tab3_740

query II rowsort label-200-1
SELECT pk, col0 FROM tab3 WHERE col0 > 6294
----
748 values hashing to 94a5b05e2350a4bc301cf8e9088a805e

query II rowsort label-200-2
SELECT pk, col0 FROM tab3 WHERE NOT (col0 > 6294)
----
1252 values hashing to 0aa71d0300a880b98804e06684610ae1

query II rowsort label-200-1
SELECT pk, col0 FROM view_1_tab3_740
----
748 values hashing to 94a5b05e2350a4bc301cf8e9088a805e

query II rowsort label-200-2
SELECT pk, col0 FROM view_2_tab3_740
----
1252 values hashing to 0aa71d0300a880b98804e06684610ae1

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col0 > 6294 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col0 > 6294)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_740 UNION ALL SELECT pk, col0 FROM view_2_tab3_740
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col0 > 6294 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col0 > 6294)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_740 UNION SELECT pk, col0 FROM view_2_tab3_740
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col0 > 6294 ) AS tab3_740
----
374 values hashing to 8d47bb3f60ee9452b6309b3f3733b389

query I rowsort label-200-3
SELECT * FROM view_3_tab3_740
----
374 values hashing to 8d47bb3f60ee9452b6309b3f3733b389

query I rowsort label-200-3
SELECT pk FROM tab3 WHERE col0 > 6294
----
374 values hashing to 8d47bb3f60ee9452b6309b3f3733b389

statement ok
DROP VIEW view_1_tab3_740

statement ok
DROP VIEW view_2_tab3_740

statement ok
DROP VIEW view_3_tab3_740

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab4_740 AS SELECT pk, col0 FROM tab4 WHERE col0 > 6294

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

statement ok
CREATE VIEW view_3_tab4_740 AS SELECT pk FROM view_1_tab4_740

query II rowsort label-200-1
SELECT pk, col0 FROM tab4 WHERE col0 > 6294
----
748 values hashing to 94a5b05e2350a4bc301cf8e9088a805e

query II rowsort label-200-2
SELECT pk, col0 FROM tab4 WHERE NOT (col0 > 6294)
----
1252 values hashing to 0aa71d0300a880b98804e06684610ae1

query II rowsort label-200-1
SELECT pk, col0 FROM view_1_tab4_740
----
748 values hashing to 94a5b05e2350a4bc301cf8e9088a805e

query II rowsort label-200-2
SELECT pk, col0 FROM view_2_tab4_740
----
1252 values hashing to 0aa71d0300a880b98804e06684610ae1

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col0 > 6294 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col0 > 6294)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_740 UNION ALL SELECT pk, col0 FROM view_2_tab4_740
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col0 > 6294 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col0 > 6294)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_740 UNION SELECT pk, col0 FROM view_2_tab4_740
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col0 > 6294 ) AS tab4_740
----
374 values hashing to 8d47bb3f60ee9452b6309b3f3733b389

query I rowsort label-200-3
SELECT * FROM view_3_tab4_740
----
374 values hashing to 8d47bb3f60ee9452b6309b3f3733b389

query I rowsort label-200-3
SELECT pk FROM tab4 WHERE col0 > 6294
----
374 values hashing to 8d47bb3f60ee9452b6309b3f3733b389

statement ok
DROP VIEW view_1_tab4_740

statement ok
DROP VIEW view_2_tab4_740

statement ok
DROP VIEW view_3_tab4_740

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab0_741 AS SELECT pk, col0 FROM tab0 WHERE col3 >= 1102 OR col1 >= 5689.78 AND col3 < 8578

statement ok
CREATE VIEW view_2_tab0_741 AS SELECT pk, col0 FROM tab0 WHERE NOT (col3 >= 1102 OR col1 >= 5689.78 AND col3 < 8578)

statement ok
CREATE VIEW view_3_tab0_741 AS SELECT pk FROM view_1_tab0_741

query II rowsort label-300-1
SELECT pk, col0 FROM tab0 WHERE col3 >= 1102 OR col1 >= 5689.78 AND col3 < 8578
----
1886 values hashing to b58e268e44d5a441a179f600264400f0

query II rowsort label-300-2
SELECT pk, col0 FROM tab0 WHERE NOT (col3 >= 1102 OR col1 >= 5689.78 AND col3 < 8578)
----
114 values hashing to 27ccf40836f55b5d092c68391bbb07b0

query II rowsort label-300-1
SELECT pk, col0 FROM view_1_tab0_741
----
1886 values hashing to b58e268e44d5a441a179f600264400f0

query II rowsort label-300-2
SELECT pk, col0 FROM view_2_tab0_741
----
114 values hashing to 27ccf40836f55b5d092c68391bbb07b0

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 >= 1102 OR col1 >= 5689.78 AND col3 < 8578 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col3 >= 1102 OR col1 >= 5689.78 AND col3 < 8578)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_741 UNION ALL SELECT pk, col0 FROM view_2_tab0_741
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 >= 1102 OR col1 >= 5689.78 AND col3 < 8578 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col3 >= 1102 OR col1 >= 5689.78 AND col3 < 8578)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_741 UNION SELECT pk, col0 FROM view_2_tab0_741
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col3 >= 1102 OR col1 >= 5689.78 AND col3 < 8578 ) AS tab0_741
----
943 values hashing to 9ab4504d30836e810dacafb0ba100b25

query I rowsort label-300-3
SELECT * FROM view_3_tab0_741
----
943 values hashing to 9ab4504d30836e810dacafb0ba100b25

query I rowsort label-300-3
SELECT pk FROM tab0 WHERE col3 >= 1102 OR col1 >= 5689.78 AND col3 < 8578
----
943 values hashing to 9ab4504d30836e810dacafb0ba100b25

statement ok
DROP VIEW view_1_tab0_741

statement ok
DROP VIEW view_2_tab0_741

statement ok
DROP VIEW view_3_tab0_741

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab1_741 AS SELECT pk, col0 FROM tab1 WHERE col3 >= 1102 OR col1 >= 5689.78 AND col3 < 8578

statement ok
CREATE VIEW view_2_tab1_741 AS SELECT pk, col0 FROM tab1 WHERE NOT (col3 >= 1102 OR col1 >= 5689.78 AND col3 < 8578)

statement ok
CREATE VIEW view_3_tab1_741 AS SELECT pk FROM view_1_tab1_741

query II rowsort label-300-1
SELECT pk, col0 FROM tab1 WHERE col3 >= 1102 OR col1 >= 5689.78 AND col3 < 8578
----
1886 values hashing to b58e268e44d5a441a179f600264400f0

query II rowsort label-300-2
SELECT pk, col0 FROM tab1 WHERE NOT (col3 >= 1102 OR col1 >= 5689.78 AND col3 < 8578)
----
114 values hashing to 27ccf40836f55b5d092c68391bbb07b0

query II rowsort label-300-1
SELECT pk, col0 FROM view_1_tab1_741
----
1886 values hashing to b58e268e44d5a441a179f600264400f0

query II rowsort label-300-2
SELECT pk, col0 FROM view_2_tab1_741
----
114 values hashing to 27ccf40836f55b5d092c68391bbb07b0

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 >= 1102 OR col1 >= 5689.78 AND col3 < 8578 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col3 >= 1102 OR col1 >= 5689.78 AND col3 < 8578)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_741 UNION ALL SELECT pk, col0 FROM view_2_tab1_741
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 >= 1102 OR col1 >= 5689.78 AND col3 < 8578 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col3 >= 1102 OR col1 >= 5689.78 AND col3 < 8578)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_741 UNION SELECT pk, col0 FROM view_2_tab1_741
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col3 >= 1102 OR col1 >= 5689.78 AND col3 < 8578 ) AS tab1_741
----
943 values hashing to 9ab4504d30836e810dacafb0ba100b25

query I rowsort label-300-3
SELECT * FROM view_3_tab1_741
----
943 values hashing to 9ab4504d30836e810dacafb0ba100b25

query I rowsort label-300-3
SELECT pk FROM tab1 WHERE col3 >= 1102 OR col1 >= 5689.78 AND col3 < 8578
----
943 values hashing to 9ab4504d30836e810dacafb0ba100b25

statement ok
DROP VIEW view_1_tab1_741

statement ok
DROP VIEW view_2_tab1_741

statement ok
DROP VIEW view_3_tab1_741

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab2_741 AS SELECT pk, col0 FROM tab2 WHERE col3 >= 1102 OR col1 >= 5689.78 AND col3 < 8578

statement ok
CREATE VIEW view_2_tab2_741 AS SELECT pk, col0 FROM tab2 WHERE NOT (col3 >= 1102 OR col1 >= 5689.78 AND col3 < 8578)

statement ok
CREATE VIEW view_3_tab2_741 AS SELECT pk FROM view_1_tab2_741

query II rowsort label-300-1
SELECT pk, col0 FROM tab2 WHERE col3 >= 1102 OR col1 >= 5689.78 AND col3 < 8578
----
1886 values hashing to b58e268e44d5a441a179f600264400f0

query II rowsort label-300-2
SELECT pk, col0 FROM tab2 WHERE NOT (col3 >= 1102 OR col1 >= 5689.78 AND col3 < 8578)
----
114 values hashing to 27ccf40836f55b5d092c68391bbb07b0

query II rowsort label-300-1
SELECT pk, col0 FROM view_1_tab2_741
----
1886 values hashing to b58e268e44d5a441a179f600264400f0

query II rowsort label-300-2
SELECT pk, col0 FROM view_2_tab2_741
----
114 values hashing to 27ccf40836f55b5d092c68391bbb07b0

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 >= 1102 OR col1 >= 5689.78 AND col3 < 8578 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col3 >= 1102 OR col1 >= 5689.78 AND col3 < 8578)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_741 UNION ALL SELECT pk, col0 FROM view_2_tab2_741
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 >= 1102 OR col1 >= 5689.78 AND col3 < 8578 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col3 >= 1102 OR col1 >= 5689.78 AND col3 < 8578)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_741 UNION SELECT pk, col0 FROM view_2_tab2_741
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col3 >= 1102 OR col1 >= 5689.78 AND col3 < 8578 ) AS tab2_741
----
943 values hashing to 9ab4504d30836e810dacafb0ba100b25

query I rowsort label-300-3
SELECT * FROM view_3_tab2_741
----
943 values hashing to 9ab4504d30836e810dacafb0ba100b25

query I rowsort label-300-3
SELECT pk FROM tab2 WHERE col3 >= 1102 OR col1 >= 5689.78 AND col3 < 8578
----
943 values hashing to 9ab4504d30836e810dacafb0ba100b25

statement ok
DROP VIEW view_1_tab2_741

statement ok
DROP VIEW view_2_tab2_741

statement ok
DROP VIEW view_3_tab2_741

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab3_741 AS SELECT pk, col0 FROM tab3 WHERE col3 >= 1102 OR col1 >= 5689.78 AND col3 < 8578

statement ok
CREATE VIEW view_2_tab3_741 AS SELECT pk, col0 FROM tab3 WHERE NOT (col3 >= 1102 OR col1 >= 5689.78 AND col3 < 8578)

statement ok
CREATE VIEW view_3_tab3_741 AS SELECT pk FROM view_1_tab3_741

query II rowsort label-300-1
SELECT pk, col0 FROM tab3 WHERE col3 >= 1102 OR col1 >= 5689.78 AND col3 < 8578
----
1886 values hashing to b58e268e44d5a441a179f600264400f0

query II rowsort label-300-2
SELECT pk, col0 FROM tab3 WHERE NOT (col3 >= 1102 OR col1 >= 5689.78 AND col3 < 8578)
----
114 values hashing to 27ccf40836f55b5d092c68391bbb07b0

query II rowsort label-300-1
SELECT pk, col0 FROM view_1_tab3_741
----
1886 values hashing to b58e268e44d5a441a179f600264400f0

query II rowsort label-300-2
SELECT pk, col0 FROM view_2_tab3_741
----
114 values hashing to 27ccf40836f55b5d092c68391bbb07b0

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 >= 1102 OR col1 >= 5689.78 AND col3 < 8578 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col3 >= 1102 OR col1 >= 5689.78 AND col3 < 8578)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_741 UNION ALL SELECT pk, col0 FROM view_2_tab3_741
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 >= 1102 OR col1 >= 5689.78 AND col3 < 8578 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col3 >= 1102 OR col1 >= 5689.78 AND col3 < 8578)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_741 UNION SELECT pk, col0 FROM view_2_tab3_741
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col3 >= 1102 OR col1 >= 5689.78 AND col3 < 8578 ) AS tab3_741
----
943 values hashing to 9ab4504d30836e810dacafb0ba100b25

query I rowsort label-300-3
SELECT * FROM view_3_tab3_741
----
943 values hashing to 9ab4504d30836e810dacafb0ba100b25

query I rowsort label-300-3
SELECT pk FROM tab3 WHERE col3 >= 1102 OR col1 >= 5689.78 AND col3 < 8578
----
943 values hashing to 9ab4504d30836e810dacafb0ba100b25

statement ok
DROP VIEW view_1_tab3_741

statement ok
DROP VIEW view_2_tab3_741

statement ok
DROP VIEW view_3_tab3_741

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab4_741 AS SELECT pk, col0 FROM tab4 WHERE col3 >= 1102 OR col1 >= 5689.78 AND col3 < 8578

statement ok
CREATE VIEW view_2_tab4_741 AS SELECT pk, col0 FROM tab4 WHERE NOT (col3 >= 1102 OR col1 >= 5689.78 AND col3 < 8578)

statement ok
CREATE VIEW view_3_tab4_741 AS SELECT pk FROM view_1_tab4_741

query II rowsort label-300-1
SELECT pk, col0 FROM tab4 WHERE col3 >= 1102 OR col1 >= 5689.78 AND col3 < 8578
----
1886 values hashing to b58e268e44d5a441a179f600264400f0

query II rowsort label-300-2
SELECT pk, col0 FROM tab4 WHERE NOT (col3 >= 1102 OR col1 >= 5689.78 AND col3 < 8578)
----
114 values hashing to 27ccf40836f55b5d092c68391bbb07b0

query II rowsort label-300-1
SELECT pk, col0 FROM view_1_tab4_741
----
1886 values hashing to b58e268e44d5a441a179f600264400f0

query II rowsort label-300-2
SELECT pk, col0 FROM view_2_tab4_741
----
114 values hashing to 27ccf40836f55b5d092c68391bbb07b0

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 >= 1102 OR col1 >= 5689.78 AND col3 < 8578 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col3 >= 1102 OR col1 >= 5689.78 AND col3 < 8578)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_741 UNION ALL SELECT pk, col0 FROM view_2_tab4_741
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 >= 1102 OR col1 >= 5689.78 AND col3 < 8578 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col3 >= 1102 OR col1 >= 5689.78 AND col3 < 8578)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_741 UNION SELECT pk, col0 FROM view_2_tab4_741
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col3 >= 1102 OR col1 >= 5689.78 AND col3 < 8578 ) AS tab4_741
----
943 values hashing to 9ab4504d30836e810dacafb0ba100b25

query I rowsort label-300-3
SELECT * FROM view_3_tab4_741
----
943 values hashing to 9ab4504d30836e810dacafb0ba100b25

query I rowsort label-300-3
SELECT pk FROM tab4 WHERE col3 >= 1102 OR col1 >= 5689.78 AND col3 < 8578
----
943 values hashing to 9ab4504d30836e810dacafb0ba100b25

statement ok
DROP VIEW view_1_tab4_741

statement ok
DROP VIEW view_2_tab4_741

statement ok
DROP VIEW view_3_tab4_741

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab0_742 AS SELECT pk, col0 FROM tab0 WHERE (col0 IN (SELECT col3 FROM tab0 WHERE (col1 < 3863.93))) OR ((col0 >= 5861) AND col0 >= 2066)

statement ok
CREATE VIEW view_2_tab0_742 AS SELECT pk, col0 FROM tab0 WHERE NOT ((col0 IN (SELECT col3 FROM tab0 WHERE (col1 < 3863.93))) OR ((col0 >= 5861) AND col0 >= 2066))

statement ok
CREATE VIEW view_3_tab0_742 AS SELECT pk FROM view_1_tab0_742

query II rowsort label-400-1
SELECT pk, col0 FROM tab0 WHERE (col0 IN (SELECT col3 FROM tab0 WHERE (col1 < 3863.93))) OR ((col0 >= 5861) AND col0 >= 2066)
----
872 values hashing to ab9ac634c61c29e7b74348b798ed9d71

query II rowsort label-400-2
SELECT pk, col0 FROM tab0 WHERE NOT ((col0 IN (SELECT col3 FROM tab0 WHERE (col1 < 3863.93))) OR ((col0 >= 5861) AND col0 >= 2066))
----
1128 values hashing to 0d34cba1997a2227ea92a909e6a99756

query II rowsort label-400-1
SELECT pk, col0 FROM view_1_tab0_742
----
872 values hashing to ab9ac634c61c29e7b74348b798ed9d71

query II rowsort label-400-2
SELECT pk, col0 FROM view_2_tab0_742
----
1128 values hashing to 0d34cba1997a2227ea92a909e6a99756

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col0 IN (SELECT col3 FROM tab0 WHERE (col1 < 3863.93))) OR ((col0 >= 5861) AND col0 >= 2066) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT ((col0 IN (SELECT col3 FROM tab0 WHERE (col1 < 3863.93))) OR ((col0 >= 5861) AND col0 >= 2066))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_742 UNION ALL SELECT pk, col0 FROM view_2_tab0_742
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col0 IN (SELECT col3 FROM tab0 WHERE (col1 < 3863.93))) OR ((col0 >= 5861) AND col0 >= 2066) UNION SELECT pk, col0 FROM tab0 WHERE NOT ((col0 IN (SELECT col3 FROM tab0 WHERE (col1 < 3863.93))) OR ((col0 >= 5861) AND col0 >= 2066))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_742 UNION SELECT pk, col0 FROM view_2_tab0_742
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE (col0 IN (SELECT col3 FROM tab0 WHERE (col1 < 3863.93))) OR ((col0 >= 5861) AND col0 >= 2066) ) AS tab0_742
----
436 values hashing to ca4954702fd65cdbc370dc3708141b1f

query I rowsort label-400-3
SELECT * FROM view_3_tab0_742
----
436 values hashing to ca4954702fd65cdbc370dc3708141b1f

query I rowsort label-400-3
SELECT pk FROM tab0 WHERE (col0 IN (SELECT col3 FROM tab0 WHERE (col1 < 3863.93))) OR ((col0 >= 5861) AND col0 >= 2066)
----
436 values hashing to ca4954702fd65cdbc370dc3708141b1f

statement ok
DROP VIEW view_1_tab0_742

statement ok
DROP VIEW view_2_tab0_742

statement ok
DROP VIEW view_3_tab0_742

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab1_742 AS SELECT pk, col0 FROM tab1 WHERE (col0 IN (SELECT col3 FROM tab1 WHERE (col1 < 3863.93))) OR ((col0 >= 5861) AND col0 >= 2066)

statement ok
CREATE VIEW view_2_tab1_742 AS SELECT pk, col0 FROM tab1 WHERE NOT ((col0 IN (SELECT col3 FROM tab1 WHERE (col1 < 3863.93))) OR ((col0 >= 5861) AND col0 >= 2066))

statement ok
CREATE VIEW view_3_tab1_742 AS SELECT pk FROM view_1_tab1_742

query II rowsort label-400-1
SELECT pk, col0 FROM tab1 WHERE (col0 IN (SELECT col3 FROM tab1 WHERE (col1 < 3863.93))) OR ((col0 >= 5861) AND col0 >= 2066)
----
872 values hashing to ab9ac634c61c29e7b74348b798ed9d71

query II rowsort label-400-2
SELECT pk, col0 FROM tab1 WHERE NOT ((col0 IN (SELECT col3 FROM tab1 WHERE (col1 < 3863.93))) OR ((col0 >= 5861) AND col0 >= 2066))
----
1128 values hashing to 0d34cba1997a2227ea92a909e6a99756

query II rowsort label-400-1
SELECT pk, col0 FROM view_1_tab1_742
----
872 values hashing to ab9ac634c61c29e7b74348b798ed9d71

query II rowsort label-400-2
SELECT pk, col0 FROM view_2_tab1_742
----
1128 values hashing to 0d34cba1997a2227ea92a909e6a99756

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col0 IN (SELECT col3 FROM tab1 WHERE (col1 < 3863.93))) OR ((col0 >= 5861) AND col0 >= 2066) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT ((col0 IN (SELECT col3 FROM tab1 WHERE (col1 < 3863.93))) OR ((col0 >= 5861) AND col0 >= 2066))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_742 UNION ALL SELECT pk, col0 FROM view_2_tab1_742
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col0 IN (SELECT col3 FROM tab1 WHERE (col1 < 3863.93))) OR ((col0 >= 5861) AND col0 >= 2066) UNION SELECT pk, col0 FROM tab1 WHERE NOT ((col0 IN (SELECT col3 FROM tab1 WHERE (col1 < 3863.93))) OR ((col0 >= 5861) AND col0 >= 2066))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_742 UNION SELECT pk, col0 FROM view_2_tab1_742
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE (col0 IN (SELECT col3 FROM tab1 WHERE (col1 < 3863.93))) OR ((col0 >= 5861) AND col0 >= 2066) ) AS tab1_742
----
436 values hashing to ca4954702fd65cdbc370dc3708141b1f

query I rowsort label-400-3
SELECT * FROM view_3_tab1_742
----
436 values hashing to ca4954702fd65cdbc370dc3708141b1f

query I rowsort label-400-3
SELECT pk FROM tab1 WHERE (col0 IN (SELECT col3 FROM tab1 WHERE (col1 < 3863.93))) OR ((col0 >= 5861) AND col0 >= 2066)
----
436 values hashing to ca4954702fd65cdbc370dc3708141b1f

statement ok
DROP VIEW view_1_tab1_742

statement ok
DROP VIEW view_2_tab1_742

statement ok
DROP VIEW view_3_tab1_742

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab2_742 AS SELECT pk, col0 FROM tab2 WHERE (col0 IN (SELECT col3 FROM tab2 WHERE (col1 < 3863.93))) OR ((col0 >= 5861) AND col0 >= 2066)

statement ok
CREATE VIEW view_2_tab2_742 AS SELECT pk, col0 FROM tab2 WHERE NOT ((col0 IN (SELECT col3 FROM tab2 WHERE (col1 < 3863.93))) OR ((col0 >= 5861) AND col0 >= 2066))

statement ok
CREATE VIEW view_3_tab2_742 AS SELECT pk FROM view_1_tab2_742

query II rowsort label-400-1
SELECT pk, col0 FROM tab2 WHERE (col0 IN (SELECT col3 FROM tab2 WHERE (col1 < 3863.93))) OR ((col0 >= 5861) AND col0 >= 2066)
----
872 values hashing to ab9ac634c61c29e7b74348b798ed9d71

query II rowsort label-400-2
SELECT pk, col0 FROM tab2 WHERE NOT ((col0 IN (SELECT col3 FROM tab2 WHERE (col1 < 3863.93))) OR ((col0 >= 5861) AND col0 >= 2066))
----
1128 values hashing to 0d34cba1997a2227ea92a909e6a99756

query II rowsort label-400-1
SELECT pk, col0 FROM view_1_tab2_742
----
872 values hashing to ab9ac634c61c29e7b74348b798ed9d71

query II rowsort label-400-2
SELECT pk, col0 FROM view_2_tab2_742
----
1128 values hashing to 0d34cba1997a2227ea92a909e6a99756

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col0 IN (SELECT col3 FROM tab2 WHERE (col1 < 3863.93))) OR ((col0 >= 5861) AND col0 >= 2066) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT ((col0 IN (SELECT col3 FROM tab2 WHERE (col1 < 3863.93))) OR ((col0 >= 5861) AND col0 >= 2066))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_742 UNION ALL SELECT pk, col0 FROM view_2_tab2_742
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col0 IN (SELECT col3 FROM tab2 WHERE (col1 < 3863.93))) OR ((col0 >= 5861) AND col0 >= 2066) UNION SELECT pk, col0 FROM tab2 WHERE NOT ((col0 IN (SELECT col3 FROM tab2 WHERE (col1 < 3863.93))) OR ((col0 >= 5861) AND col0 >= 2066))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_742 UNION SELECT pk, col0 FROM view_2_tab2_742
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE (col0 IN (SELECT col3 FROM tab2 WHERE (col1 < 3863.93))) OR ((col0 >= 5861) AND col0 >= 2066) ) AS tab2_742
----
436 values hashing to ca4954702fd65cdbc370dc3708141b1f

query I rowsort label-400-3
SELECT * FROM view_3_tab2_742
----
436 values hashing to ca4954702fd65cdbc370dc3708141b1f

query I rowsort label-400-3
SELECT pk FROM tab2 WHERE (col0 IN (SELECT col3 FROM tab2 WHERE (col1 < 3863.93))) OR ((col0 >= 5861) AND col0 >= 2066)
----
436 values hashing to ca4954702fd65cdbc370dc3708141b1f

statement ok
DROP VIEW view_1_tab2_742

statement ok
DROP VIEW view_2_tab2_742

statement ok
DROP VIEW view_3_tab2_742

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab3_742 AS SELECT pk, col0 FROM tab3 WHERE (col0 IN (SELECT col3 FROM tab3 WHERE (col1 < 3863.93))) OR ((col0 >= 5861) AND col0 >= 2066)

statement ok
CREATE VIEW view_2_tab3_742 AS SELECT pk, col0 FROM tab3 WHERE NOT ((col0 IN (SELECT col3 FROM tab3 WHERE (col1 < 3863.93))) OR ((col0 >= 5861) AND col0 >= 2066))

statement ok
CREATE VIEW view_3_tab3_742 AS SELECT pk FROM view_1_tab3_742

query II rowsort label-400-1
SELECT pk, col0 FROM tab3 WHERE (col0 IN (SELECT col3 FROM tab3 WHERE (col1 < 3863.93))) OR ((col0 >= 5861) AND col0 >= 2066)
----
872 values hashing to ab9ac634c61c29e7b74348b798ed9d71

query II rowsort label-400-2
SELECT pk, col0 FROM tab3 WHERE NOT ((col0 IN (SELECT col3 FROM tab3 WHERE (col1 < 3863.93))) OR ((col0 >= 5861) AND col0 >= 2066))
----
1128 values hashing to 0d34cba1997a2227ea92a909e6a99756

query II rowsort label-400-1
SELECT pk, col0 FROM view_1_tab3_742
----
872 values hashing to ab9ac634c61c29e7b74348b798ed9d71

query II rowsort label-400-2
SELECT pk, col0 FROM view_2_tab3_742
----
1128 values hashing to 0d34cba1997a2227ea92a909e6a99756

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col0 IN (SELECT col3 FROM tab3 WHERE (col1 < 3863.93))) OR ((col0 >= 5861) AND col0 >= 2066) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT ((col0 IN (SELECT col3 FROM tab3 WHERE (col1 < 3863.93))) OR ((col0 >= 5861) AND col0 >= 2066))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_742 UNION ALL SELECT pk, col0 FROM view_2_tab3_742
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col0 IN (SELECT col3 FROM tab3 WHERE (col1 < 3863.93))) OR ((col0 >= 5861) AND col0 >= 2066) UNION SELECT pk, col0 FROM tab3 WHERE NOT ((col0 IN (SELECT col3 FROM tab3 WHERE (col1 < 3863.93))) OR ((col0 >= 5861) AND col0 >= 2066))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_742 UNION SELECT pk, col0 FROM view_2_tab3_742
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE (col0 IN (SELECT col3 FROM tab3 WHERE (col1 < 3863.93))) OR ((col0 >= 5861) AND col0 >= 2066) ) AS tab3_742
----
436 values hashing to ca4954702fd65cdbc370dc3708141b1f

query I rowsort label-400-3
SELECT * FROM view_3_tab3_742
----
436 values hashing to ca4954702fd65cdbc370dc3708141b1f

query I rowsort label-400-3
SELECT pk FROM tab3 WHERE (col0 IN (SELECT col3 FROM tab3 WHERE (col1 < 3863.93))) OR ((col0 >= 5861) AND col0 >= 2066)
----
436 values hashing to ca4954702fd65cdbc370dc3708141b1f

statement ok
DROP VIEW view_1_tab3_742

statement ok
DROP VIEW view_2_tab3_742

statement ok
DROP VIEW view_3_tab3_742

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab4_742 AS SELECT pk, col0 FROM tab4 WHERE (col0 IN (SELECT col3 FROM tab4 WHERE (col1 < 3863.93))) OR ((col0 >= 5861) AND col0 >= 2066)

statement ok
CREATE VIEW view_2_tab4_742 AS SELECT pk, col0 FROM tab4 WHERE NOT ((col0 IN (SELECT col3 FROM tab4 WHERE (col1 < 3863.93))) OR ((col0 >= 5861) AND col0 >= 2066))

statement ok
CREATE VIEW view_3_tab4_742 AS SELECT pk FROM view_1_tab4_742

query II rowsort label-400-1
SELECT pk, col0 FROM tab4 WHERE (col0 IN (SELECT col3 FROM tab4 WHERE (col1 < 3863.93))) OR ((col0 >= 5861) AND col0 >= 2066)
----
872 values hashing to ab9ac634c61c29e7b74348b798ed9d71

query II rowsort label-400-2
SELECT pk, col0 FROM tab4 WHERE NOT ((col0 IN (SELECT col3 FROM tab4 WHERE (col1 < 3863.93))) OR ((col0 >= 5861) AND col0 >= 2066))
----
1128 values hashing to 0d34cba1997a2227ea92a909e6a99756

query II rowsort label-400-1
SELECT pk, col0 FROM view_1_tab4_742
----
872 values hashing to ab9ac634c61c29e7b74348b798ed9d71

query II rowsort label-400-2
SELECT pk, col0 FROM view_2_tab4_742
----
1128 values hashing to 0d34cba1997a2227ea92a909e6a99756

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col0 IN (SELECT col3 FROM tab4 WHERE (col1 < 3863.93))) OR ((col0 >= 5861) AND col0 >= 2066) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT ((col0 IN (SELECT col3 FROM tab4 WHERE (col1 < 3863.93))) OR ((col0 >= 5861) AND col0 >= 2066))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_742 UNION ALL SELECT pk, col0 FROM view_2_tab4_742
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col0 IN (SELECT col3 FROM tab4 WHERE (col1 < 3863.93))) OR ((col0 >= 5861) AND col0 >= 2066) UNION SELECT pk, col0 FROM tab4 WHERE NOT ((col0 IN (SELECT col3 FROM tab4 WHERE (col1 < 3863.93))) OR ((col0 >= 5861) AND col0 >= 2066))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_742 UNION SELECT pk, col0 FROM view_2_tab4_742
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE (col0 IN (SELECT col3 FROM tab4 WHERE (col1 < 3863.93))) OR ((col0 >= 5861) AND col0 >= 2066) ) AS tab4_742
----
436 values hashing to ca4954702fd65cdbc370dc3708141b1f

query I rowsort label-400-3
SELECT * FROM view_3_tab4_742
----
436 values hashing to ca4954702fd65cdbc370dc3708141b1f

query I rowsort label-400-3
SELECT pk FROM tab4 WHERE (col0 IN (SELECT col3 FROM tab4 WHERE (col1 < 3863.93))) OR ((col0 >= 5861) AND col0 >= 2066)
----
436 values hashing to ca4954702fd65cdbc370dc3708141b1f

statement ok
DROP VIEW view_1_tab4_742

statement ok
DROP VIEW view_2_tab4_742

statement ok
DROP VIEW view_3_tab4_742

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab0_743 AS SELECT pk, col0 FROM tab0 WHERE col0 >= 8568

statement ok
CREATE VIEW view_2_tab0_743 AS SELECT pk, col0 FROM tab0 WHERE NOT (col0 >= 8568)

statement ok
CREATE VIEW view_3_tab0_743 AS SELECT pk FROM view_1_tab0_743

query II rowsort label-500-1
SELECT pk, col0 FROM tab0 WHERE col0 >= 8568
----
264 values hashing to f1e68bdcebca81e436ddb650a0918ccd

query II rowsort label-500-2
SELECT pk, col0 FROM tab0 WHERE NOT (col0 >= 8568)
----
1736 values hashing to c7eef7d1a2b8c845eb0ce7bf7bf26877

query II rowsort label-500-1
SELECT pk, col0 FROM view_1_tab0_743
----
264 values hashing to f1e68bdcebca81e436ddb650a0918ccd

query II rowsort label-500-2
SELECT pk, col0 FROM view_2_tab0_743
----
1736 values hashing to c7eef7d1a2b8c845eb0ce7bf7bf26877

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col0 >= 8568 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col0 >= 8568)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_743 UNION ALL SELECT pk, col0 FROM view_2_tab0_743
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col0 >= 8568 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col0 >= 8568)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_743 UNION SELECT pk, col0 FROM view_2_tab0_743
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col0 >= 8568 ) AS tab0_743
----
132 values hashing to 5d36621aea17b1bfed75cf54a60906f0

query I rowsort label-500-3
SELECT * FROM view_3_tab0_743
----
132 values hashing to 5d36621aea17b1bfed75cf54a60906f0

query I rowsort label-500-3
SELECT pk FROM tab0 WHERE col0 >= 8568
----
132 values hashing to 5d36621aea17b1bfed75cf54a60906f0

statement ok
DROP VIEW view_1_tab0_743

statement ok
DROP VIEW view_2_tab0_743

statement ok
DROP VIEW view_3_tab0_743

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab1_743 AS SELECT pk, col0 FROM tab1 WHERE col0 >= 8568

statement ok
CREATE VIEW view_2_tab1_743 AS SELECT pk, col0 FROM tab1 WHERE NOT (col0 >= 8568)

statement ok
CREATE VIEW view_3_tab1_743 AS SELECT pk FROM view_1_tab1_743

query II rowsort label-500-1
SELECT pk, col0 FROM tab1 WHERE col0 >= 8568
----
264 values hashing to f1e68bdcebca81e436ddb650a0918ccd

query II rowsort label-500-2
SELECT pk, col0 FROM tab1 WHERE NOT (col0 >= 8568)
----
1736 values hashing to c7eef7d1a2b8c845eb0ce7bf7bf26877

query II rowsort label-500-1
SELECT pk, col0 FROM view_1_tab1_743
----
264 values hashing to f1e68bdcebca81e436ddb650a0918ccd

query II rowsort label-500-2
SELECT pk, col0 FROM view_2_tab1_743
----
1736 values hashing to c7eef7d1a2b8c845eb0ce7bf7bf26877

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col0 >= 8568 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col0 >= 8568)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_743 UNION ALL SELECT pk, col0 FROM view_2_tab1_743
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col0 >= 8568 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col0 >= 8568)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_743 UNION SELECT pk, col0 FROM view_2_tab1_743
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col0 >= 8568 ) AS tab1_743
----
132 values hashing to 5d36621aea17b1bfed75cf54a60906f0

query I rowsort label-500-3
SELECT * FROM view_3_tab1_743
----
132 values hashing to 5d36621aea17b1bfed75cf54a60906f0

query I rowsort label-500-3
SELECT pk FROM tab1 WHERE col0 >= 8568
----
132 values hashing to 5d36621aea17b1bfed75cf54a60906f0

statement ok
DROP VIEW view_1_tab1_743

statement ok
DROP VIEW view_2_tab1_743

statement ok
DROP VIEW view_3_tab1_743

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab2_743 AS SELECT pk, col0 FROM tab2 WHERE col0 >= 8568

statement ok
CREATE VIEW view_2_tab2_743 AS SELECT pk, col0 FROM tab2 WHERE NOT (col0 >= 8568)

statement ok
CREATE VIEW view_3_tab2_743 AS SELECT pk FROM view_1_tab2_743

query II rowsort label-500-1
SELECT pk, col0 FROM tab2 WHERE col0 >= 8568
----
264 values hashing to f1e68bdcebca81e436ddb650a0918ccd

query II rowsort label-500-2
SELECT pk, col0 FROM tab2 WHERE NOT (col0 >= 8568)
----
1736 values hashing to c7eef7d1a2b8c845eb0ce7bf7bf26877

query II rowsort label-500-1
SELECT pk, col0 FROM view_1_tab2_743
----
264 values hashing to f1e68bdcebca81e436ddb650a0918ccd

query II rowsort label-500-2
SELECT pk, col0 FROM view_2_tab2_743
----
1736 values hashing to c7eef7d1a2b8c845eb0ce7bf7bf26877

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col0 >= 8568 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col0 >= 8568)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_743 UNION ALL SELECT pk, col0 FROM view_2_tab2_743
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col0 >= 8568 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col0 >= 8568)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_743 UNION SELECT pk, col0 FROM view_2_tab2_743
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col0 >= 8568 ) AS tab2_743
----
132 values hashing to 5d36621aea17b1bfed75cf54a60906f0

query I rowsort label-500-3
SELECT * FROM view_3_tab2_743
----
132 values hashing to 5d36621aea17b1bfed75cf54a60906f0

query I rowsort label-500-3
SELECT pk FROM tab2 WHERE col0 >= 8568
----
132 values hashing to 5d36621aea17b1bfed75cf54a60906f0

statement ok
DROP VIEW view_1_tab2_743

statement ok
DROP VIEW view_2_tab2_743

statement ok
DROP VIEW view_3_tab2_743

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab3_743 AS SELECT pk, col0 FROM tab3 WHERE col0 >= 8568

statement ok
CREATE VIEW view_2_tab3_743 AS SELECT pk, col0 FROM tab3 WHERE NOT (col0 >= 8568)

statement ok
CREATE VIEW view_3_tab3_743 AS SELECT pk FROM view_1_tab3_743

query II rowsort label-500-1
SELECT pk, col0 FROM tab3 WHERE col0 >= 8568
----
264 values hashing to f1e68bdcebca81e436ddb650a0918ccd

query II rowsort label-500-2
SELECT pk, col0 FROM tab3 WHERE NOT (col0 >= 8568)
----
1736 values hashing to c7eef7d1a2b8c845eb0ce7bf7bf26877

query II rowsort label-500-1
SELECT pk, col0 FROM view_1_tab3_743
----
264 values hashing to f1e68bdcebca81e436ddb650a0918ccd

query II rowsort label-500-2
SELECT pk, col0 FROM view_2_tab3_743
----
1736 values hashing to c7eef7d1a2b8c845eb0ce7bf7bf26877

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col0 >= 8568 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col0 >= 8568)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_743 UNION ALL SELECT pk, col0 FROM view_2_tab3_743
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col0 >= 8568 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col0 >= 8568)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_743 UNION SELECT pk, col0 FROM view_2_tab3_743
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col0 >= 8568 ) AS tab3_743
----
132 values hashing to 5d36621aea17b1bfed75cf54a60906f0

query I rowsort label-500-3
SELECT * FROM view_3_tab3_743
----
132 values hashing to 5d36621aea17b1bfed75cf54a60906f0

query I rowsort label-500-3
SELECT pk FROM tab3 WHERE col0 >= 8568
----
132 values hashing to 5d36621aea17b1bfed75cf54a60906f0

statement ok
DROP VIEW view_1_tab3_743

statement ok
DROP VIEW view_2_tab3_743

statement ok
DROP VIEW view_3_tab3_743

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab4_743 AS SELECT pk, col0 FROM tab4 WHERE col0 >= 8568

statement ok
CREATE VIEW view_2_tab4_743 AS SELECT pk, col0 FROM tab4 WHERE NOT (col0 >= 8568)

statement ok
CREATE VIEW view_3_tab4_743 AS SELECT pk FROM view_1_tab4_743

query II rowsort label-500-1
SELECT pk, col0 FROM tab4 WHERE col0 >= 8568
----
264 values hashing to f1e68bdcebca81e436ddb650a0918ccd

query II rowsort label-500-2
SELECT pk, col0 FROM tab4 WHERE NOT (col0 >= 8568)
----
1736 values hashing to c7eef7d1a2b8c845eb0ce7bf7bf26877

query II rowsort label-500-1
SELECT pk, col0 FROM view_1_tab4_743
----
264 values hashing to f1e68bdcebca81e436ddb650a0918ccd

query II rowsort label-500-2
SELECT pk, col0 FROM view_2_tab4_743
----
1736 values hashing to c7eef7d1a2b8c845eb0ce7bf7bf26877

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col0 >= 8568 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col0 >= 8568)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_743 UNION ALL SELECT pk, col0 FROM view_2_tab4_743
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col0 >= 8568 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col0 >= 8568)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_743 UNION SELECT pk, col0 FROM view_2_tab4_743
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col0 >= 8568 ) AS tab4_743
----
132 values hashing to 5d36621aea17b1bfed75cf54a60906f0

query I rowsort label-500-3
SELECT * FROM view_3_tab4_743
----
132 values hashing to 5d36621aea17b1bfed75cf54a60906f0

query I rowsort label-500-3
SELECT pk FROM tab4 WHERE col0 >= 8568
----
132 values hashing to 5d36621aea17b1bfed75cf54a60906f0

statement ok
DROP VIEW view_1_tab4_743

statement ok
DROP VIEW view_2_tab4_743

statement ok
DROP VIEW view_3_tab4_743

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab0_744 AS SELECT pk, col0 FROM tab0 WHERE col1 >= 9548.8

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

statement ok
CREATE VIEW view_3_tab0_744 AS SELECT pk FROM view_1_tab0_744

query II rowsort label-600-1
SELECT pk, col0 FROM tab0 WHERE col1 >= 9548.8
----
90 values hashing to e9cd7ddf772d4d8f09e2056bf3146e7f

query II rowsort label-600-2
SELECT pk, col0 FROM tab0 WHERE NOT (col1 >= 9548.8)
----
1910 values hashing to 59a2b006162ef64ab0146de70bc93165

query II rowsort label-600-1
SELECT pk, col0 FROM view_1_tab0_744
----
90 values hashing to e9cd7ddf772d4d8f09e2056bf3146e7f

query II rowsort label-600-2
SELECT pk, col0 FROM view_2_tab0_744
----
1910 values hashing to 59a2b006162ef64ab0146de70bc93165

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col1 >= 9548.8 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col1 >= 9548.8)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_744 UNION ALL SELECT pk, col0 FROM view_2_tab0_744
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col1 >= 9548.8 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col1 >= 9548.8)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_744 UNION SELECT pk, col0 FROM view_2_tab0_744
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col1 >= 9548.8 ) AS tab0_744
----
45 values hashing to 67923f5c106410b4519ee4294d8ae8cc

query I rowsort label-600-3
SELECT * FROM view_3_tab0_744
----
45 values hashing to 67923f5c106410b4519ee4294d8ae8cc

query I rowsort label-600-3
SELECT pk FROM tab0 WHERE col1 >= 9548.8
----
45 values hashing to 67923f5c106410b4519ee4294d8ae8cc

statement ok
DROP VIEW view_1_tab0_744

statement ok
DROP VIEW view_2_tab0_744

statement ok
DROP VIEW view_3_tab0_744

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab1_744 AS SELECT pk, col0 FROM tab1 WHERE col1 >= 9548.8

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

statement ok
CREATE VIEW view_3_tab1_744 AS SELECT pk FROM view_1_tab1_744

query II rowsort label-600-1
SELECT pk, col0 FROM tab1 WHERE col1 >= 9548.8
----
90 values hashing to e9cd7ddf772d4d8f09e2056bf3146e7f

query II rowsort label-600-2
SELECT pk, col0 FROM tab1 WHERE NOT (col1 >= 9548.8)
----
1910 values hashing to 59a2b006162ef64ab0146de70bc93165

query II rowsort label-600-1
SELECT pk, col0 FROM view_1_tab1_744
----
90 values hashing to e9cd7ddf772d4d8f09e2056bf3146e7f

query II rowsort label-600-2
SELECT pk, col0 FROM view_2_tab1_744
----
1910 values hashing to 59a2b006162ef64ab0146de70bc93165

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col1 >= 9548.8 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col1 >= 9548.8)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_744 UNION ALL SELECT pk, col0 FROM view_2_tab1_744
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col1 >= 9548.8 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col1 >= 9548.8)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_744 UNION SELECT pk, col0 FROM view_2_tab1_744
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col1 >= 9548.8 ) AS tab1_744
----
45 values hashing to 67923f5c106410b4519ee4294d8ae8cc

query I rowsort label-600-3
SELECT * FROM view_3_tab1_744
----
45 values hashing to 67923f5c106410b4519ee4294d8ae8cc

query I rowsort label-600-3
SELECT pk FROM tab1 WHERE col1 >= 9548.8
----
45 values hashing to 67923f5c106410b4519ee4294d8ae8cc

statement ok
DROP VIEW view_1_tab1_744

statement ok
DROP VIEW view_2_tab1_744

statement ok
DROP VIEW view_3_tab1_744

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab2_744 AS SELECT pk, col0 FROM tab2 WHERE col1 >= 9548.8

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

statement ok
CREATE VIEW view_3_tab2_744 AS SELECT pk FROM view_1_tab2_744

query II rowsort label-600-1
SELECT pk, col0 FROM tab2 WHERE col1 >= 9548.8
----
90 values hashing to e9cd7ddf772d4d8f09e2056bf3146e7f

query II rowsort label-600-2
SELECT pk, col0 FROM tab2 WHERE NOT (col1 >= 9548.8)
----
1910 values hashing to 59a2b006162ef64ab0146de70bc93165

query II rowsort label-600-1
SELECT pk, col0 FROM view_1_tab2_744
----
90 values hashing to e9cd7ddf772d4d8f09e2056bf3146e7f

query II rowsort label-600-2
SELECT pk, col0 FROM view_2_tab2_744
----
1910 values hashing to 59a2b006162ef64ab0146de70bc93165

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col1 >= 9548.8 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col1 >= 9548.8)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_744 UNION ALL SELECT pk, col0 FROM view_2_tab2_744
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col1 >= 9548.8 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col1 >= 9548.8)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_744 UNION SELECT pk, col0 FROM view_2_tab2_744
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col1 >= 9548.8 ) AS tab2_744
----
45 values hashing to 67923f5c106410b4519ee4294d8ae8cc

query I rowsort label-600-3
SELECT * FROM view_3_tab2_744
----
45 values hashing to 67923f5c106410b4519ee4294d8ae8cc

query I rowsort label-600-3
SELECT pk FROM tab2 WHERE col1 >= 9548.8
----
45 values hashing to 67923f5c106410b4519ee4294d8ae8cc

statement ok
DROP VIEW view_1_tab2_744

statement ok
DROP VIEW view_2_tab2_744

statement ok
DROP VIEW view_3_tab2_744

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab3_744 AS SELECT pk, col0 FROM tab3 WHERE col1 >= 9548.8

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

statement ok
CREATE VIEW view_3_tab3_744 AS SELECT pk FROM view_1_tab3_744

query II rowsort label-600-1
SELECT pk, col0 FROM tab3 WHERE col1 >= 9548.8
----
90 values hashing to e9cd7ddf772d4d8f09e2056bf3146e7f

query II rowsort label-600-2
SELECT pk, col0 FROM tab3 WHERE NOT (col1 >= 9548.8)
----
1910 values hashing to 59a2b006162ef64ab0146de70bc93165

query II rowsort label-600-1
SELECT pk, col0 FROM view_1_tab3_744
----
90 values hashing to e9cd7ddf772d4d8f09e2056bf3146e7f

query II rowsort label-600-2
SELECT pk, col0 FROM view_2_tab3_744
----
1910 values hashing to 59a2b006162ef64ab0146de70bc93165

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col1 >= 9548.8 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col1 >= 9548.8)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_744 UNION ALL SELECT pk, col0 FROM view_2_tab3_744
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col1 >= 9548.8 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col1 >= 9548.8)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_744 UNION SELECT pk, col0 FROM view_2_tab3_744
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col1 >= 9548.8 ) AS tab3_744
----
45 values hashing to 67923f5c106410b4519ee4294d8ae8cc

query I rowsort label-600-3
SELECT * FROM view_3_tab3_744
----
45 values hashing to 67923f5c106410b4519ee4294d8ae8cc

query I rowsort label-600-3
SELECT pk FROM tab3 WHERE col1 >= 9548.8
----
45 values hashing to 67923f5c106410b4519ee4294d8ae8cc

statement ok
DROP VIEW view_1_tab3_744

statement ok
DROP VIEW view_2_tab3_744

statement ok
DROP VIEW view_3_tab3_744

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab4_744 AS SELECT pk, col0 FROM tab4 WHERE col1 >= 9548.8

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

statement ok
CREATE VIEW view_3_tab4_744 AS SELECT pk FROM view_1_tab4_744

query II rowsort label-600-1
SELECT pk, col0 FROM tab4 WHERE col1 >= 9548.8
----
90 values hashing to e9cd7ddf772d4d8f09e2056bf3146e7f

query II rowsort label-600-2
SELECT pk, col0 FROM tab4 WHERE NOT (col1 >= 9548.8)
----
1910 values hashing to 59a2b006162ef64ab0146de70bc93165

query II rowsort label-600-1
SELECT pk, col0 FROM view_1_tab4_744
----
90 values hashing to e9cd7ddf772d4d8f09e2056bf3146e7f

query II rowsort label-600-2
SELECT pk, col0 FROM view_2_tab4_744
----
1910 values hashing to 59a2b006162ef64ab0146de70bc93165

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col1 >= 9548.8 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col1 >= 9548.8)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_744 UNION ALL SELECT pk, col0 FROM view_2_tab4_744
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col1 >= 9548.8 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col1 >= 9548.8)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_744 UNION SELECT pk, col0 FROM view_2_tab4_744
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col1 >= 9548.8 ) AS tab4_744
----
45 values hashing to 67923f5c106410b4519ee4294d8ae8cc

query I rowsort label-600-3
SELECT * FROM view_3_tab4_744
----
45 values hashing to 67923f5c106410b4519ee4294d8ae8cc

query I rowsort label-600-3
SELECT pk FROM tab4 WHERE col1 >= 9548.8
----
45 values hashing to 67923f5c106410b4519ee4294d8ae8cc

statement ok
DROP VIEW view_1_tab4_744

statement ok
DROP VIEW view_2_tab4_744

statement ok
DROP VIEW view_3_tab4_744

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab0_745 AS SELECT pk, col0 FROM tab0 WHERE (col0 IS NULL) OR col0 = 4667 OR ((col3 IN (3052,8315,4882,7117,2608)) AND ((col0 >= 5293)) AND (col1 <= 6530.59)) AND col0 > 6438

statement ok
CREATE VIEW view_2_tab0_745 AS SELECT pk, col0 FROM tab0 WHERE NOT ((col0 IS NULL) OR col0 = 4667 OR ((col3 IN (3052,8315,4882,7117,2608)) AND ((col0 >= 5293)) AND (col1 <= 6530.59)) AND col0 > 6438)

statement ok
CREATE VIEW view_3_tab0_745 AS SELECT pk FROM view_1_tab0_745

query II rowsort label-700-1
SELECT pk, col0 FROM tab0 WHERE (col0 IS NULL) OR col0 = 4667 OR ((col3 IN (3052,8315,4882,7117,2608)) AND ((col0 >= 5293)) AND (col1 <= 6530.59)) AND col0 > 6438
----
528
8971

query II rowsort label-700-2
SELECT pk, col0 FROM tab0 WHERE NOT ((col0 IS NULL) OR col0 = 4667 OR ((col3 IN (3052,8315,4882,7117,2608)) AND ((col0 >= 5293)) AND (col1 <= 6530.59)) AND col0 > 6438)
----
1998 values hashing to 22fa0128bdaa544d2c9ea8dc6c18a595

query II rowsort label-700-1
SELECT pk, col0 FROM view_1_tab0_745
----
528
8971

query II rowsort label-700-2
SELECT pk, col0 FROM view_2_tab0_745
----
1998 values hashing to 22fa0128bdaa544d2c9ea8dc6c18a595

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col0 IS NULL) OR col0 = 4667 OR ((col3 IN (3052,8315,4882,7117,2608)) AND ((col0 >= 5293)) AND (col1 <= 6530.59)) AND col0 > 6438 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT ((col0 IS NULL) OR col0 = 4667 OR ((col3 IN (3052,8315,4882,7117,2608)) AND ((col0 >= 5293)) AND (col1 <= 6530.59)) AND col0 > 6438)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_745 UNION ALL SELECT pk, col0 FROM view_2_tab0_745
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col0 IS NULL) OR col0 = 4667 OR ((col3 IN (3052,8315,4882,7117,2608)) AND ((col0 >= 5293)) AND (col1 <= 6530.59)) AND col0 > 6438 UNION SELECT pk, col0 FROM tab0 WHERE NOT ((col0 IS NULL) OR col0 = 4667 OR ((col3 IN (3052,8315,4882,7117,2608)) AND ((col0 >= 5293)) AND (col1 <= 6530.59)) AND col0 > 6438)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_745 UNION SELECT pk, col0 FROM view_2_tab0_745
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE (col0 IS NULL) OR col0 = 4667 OR ((col3 IN (3052,8315,4882,7117,2608)) AND ((col0 >= 5293)) AND (col1 <= 6530.59)) AND col0 > 6438 ) AS tab0_745
----
528

query I rowsort label-700-3
SELECT * FROM view_3_tab0_745
----
528

query I rowsort label-700-3
SELECT pk FROM tab0 WHERE (col0 IS NULL) OR col0 = 4667 OR ((col3 IN (3052,8315,4882,7117,2608)) AND ((col0 >= 5293)) AND (col1 <= 6530.59)) AND col0 > 6438
----
528

statement ok
DROP VIEW view_1_tab0_745

statement ok
DROP VIEW view_2_tab0_745

statement ok
DROP VIEW view_3_tab0_745

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab1_745 AS SELECT pk, col0 FROM tab1 WHERE (col0 IS NULL) OR col0 = 4667 OR ((col3 IN (3052,8315,4882,7117,2608)) AND ((col0 >= 5293)) AND (col1 <= 6530.59)) AND col0 > 6438

statement ok
CREATE VIEW view_2_tab1_745 AS SELECT pk, col0 FROM tab1 WHERE NOT ((col0 IS NULL) OR col0 = 4667 OR ((col3 IN (3052,8315,4882,7117,2608)) AND ((col0 >= 5293)) AND (col1 <= 6530.59)) AND col0 > 6438)

statement ok
CREATE VIEW view_3_tab1_745 AS SELECT pk FROM view_1_tab1_745

query II rowsort label-700-1
SELECT pk, col0 FROM tab1 WHERE (col0 IS NULL) OR col0 = 4667 OR ((col3 IN (3052,8315,4882,7117,2608)) AND ((col0 >= 5293)) AND (col1 <= 6530.59)) AND col0 > 6438
----
528
8971

query II rowsort label-700-2
SELECT pk, col0 FROM tab1 WHERE NOT ((col0 IS NULL) OR col0 = 4667 OR ((col3 IN (3052,8315,4882,7117,2608)) AND ((col0 >= 5293)) AND (col1 <= 6530.59)) AND col0 > 6438)
----
1998 values hashing to 22fa0128bdaa544d2c9ea8dc6c18a595

query II rowsort label-700-1
SELECT pk, col0 FROM view_1_tab1_745
----
528
8971

query II rowsort label-700-2
SELECT pk, col0 FROM view_2_tab1_745
----
1998 values hashing to 22fa0128bdaa544d2c9ea8dc6c18a595

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col0 IS NULL) OR col0 = 4667 OR ((col3 IN (3052,8315,4882,7117,2608)) AND ((col0 >= 5293)) AND (col1 <= 6530.59)) AND col0 > 6438 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT ((col0 IS NULL) OR col0 = 4667 OR ((col3 IN (3052,8315,4882,7117,2608)) AND ((col0 >= 5293)) AND (col1 <= 6530.59)) AND col0 > 6438)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_745 UNION ALL SELECT pk, col0 FROM view_2_tab1_745
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col0 IS NULL) OR col0 = 4667 OR ((col3 IN (3052,8315,4882,7117,2608)) AND ((col0 >= 5293)) AND (col1 <= 6530.59)) AND col0 > 6438 UNION SELECT pk, col0 FROM tab1 WHERE NOT ((col0 IS NULL) OR col0 = 4667 OR ((col3 IN (3052,8315,4882,7117,2608)) AND ((col0 >= 5293)) AND (col1 <= 6530.59)) AND col0 > 6438)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_745 UNION SELECT pk, col0 FROM view_2_tab1_745
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE (col0 IS NULL) OR col0 = 4667 OR ((col3 IN (3052,8315,4882,7117,2608)) AND ((col0 >= 5293)) AND (col1 <= 6530.59)) AND col0 > 6438 ) AS tab1_745
----
528

query I rowsort label-700-3
SELECT * FROM view_3_tab1_745
----
528

query I rowsort label-700-3
SELECT pk FROM tab1 WHERE (col0 IS NULL) OR col0 = 4667 OR ((col3 IN (3052,8315,4882,7117,2608)) AND ((col0 >= 5293)) AND (col1 <= 6530.59)) AND col0 > 6438
----
528

statement ok
DROP VIEW view_1_tab1_745

statement ok
DROP VIEW view_2_tab1_745

statement ok
DROP VIEW view_3_tab1_745

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab2_745 AS SELECT pk, col0 FROM tab2 WHERE (col0 IS NULL) OR col0 = 4667 OR ((col3 IN (3052,8315,4882,7117,2608)) AND ((col0 >= 5293)) AND (col1 <= 6530.59)) AND col0 > 6438

statement ok
CREATE VIEW view_2_tab2_745 AS SELECT pk, col0 FROM tab2 WHERE NOT ((col0 IS NULL) OR col0 = 4667 OR ((col3 IN (3052,8315,4882,7117,2608)) AND ((col0 >= 5293)) AND (col1 <= 6530.59)) AND col0 > 6438)

statement ok
CREATE VIEW view_3_tab2_745 AS SELECT pk FROM view_1_tab2_745

query II rowsort label-700-1
SELECT pk, col0 FROM tab2 WHERE (col0 IS NULL) OR col0 = 4667 OR ((col3 IN (3052,8315,4882,7117,2608)) AND ((col0 >= 5293)) AND (col1 <= 6530.59)) AND col0 > 6438
----
528
8971

query II rowsort label-700-2
SELECT pk, col0 FROM tab2 WHERE NOT ((col0 IS NULL) OR col0 = 4667 OR ((col3 IN (3052,8315,4882,7117,2608)) AND ((col0 >= 5293)) AND (col1 <= 6530.59)) AND col0 > 6438)
----
1998 values hashing to 22fa0128bdaa544d2c9ea8dc6c18a595

query II rowsort label-700-1
SELECT pk, col0 FROM view_1_tab2_745
----
528
8971

query II rowsort label-700-2
SELECT pk, col0 FROM view_2_tab2_745
----
1998 values hashing to 22fa0128bdaa544d2c9ea8dc6c18a595

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col0 IS NULL) OR col0 = 4667 OR ((col3 IN (3052,8315,4882,7117,2608)) AND ((col0 >= 5293)) AND (col1 <= 6530.59)) AND col0 > 6438 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT ((col0 IS NULL) OR col0 = 4667 OR ((col3 IN (3052,8315,4882,7117,2608)) AND ((col0 >= 5293)) AND (col1 <= 6530.59)) AND col0 > 6438)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_745 UNION ALL SELECT pk, col0 FROM view_2_tab2_745
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col0 IS NULL) OR col0 = 4667 OR ((col3 IN (3052,8315,4882,7117,2608)) AND ((col0 >= 5293)) AND (col1 <= 6530.59)) AND col0 > 6438 UNION SELECT pk, col0 FROM tab2 WHERE NOT ((col0 IS NULL) OR col0 = 4667 OR ((col3 IN (3052,8315,4882,7117,2608)) AND ((col0 >= 5293)) AND (col1 <= 6530.59)) AND col0 > 6438)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_745 UNION SELECT pk, col0 FROM view_2_tab2_745
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE (col0 IS NULL) OR col0 = 4667 OR ((col3 IN (3052,8315,4882,7117,2608)) AND ((col0 >= 5293)) AND (col1 <= 6530.59)) AND col0 > 6438 ) AS tab2_745
----
528

query I rowsort label-700-3
SELECT * FROM view_3_tab2_745
----
528

query I rowsort label-700-3
SELECT pk FROM tab2 WHERE (col0 IS NULL) OR col0 = 4667 OR ((col3 IN (3052,8315,4882,7117,2608)) AND ((col0 >= 5293)) AND (col1 <= 6530.59)) AND col0 > 6438
----
528

statement ok
DROP VIEW view_1_tab2_745

statement ok
DROP VIEW view_2_tab2_745

statement ok
DROP VIEW view_3_tab2_745

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab3_745 AS SELECT pk, col0 FROM tab3 WHERE (col0 IS NULL) OR col0 = 4667 OR ((col3 IN (3052,8315,4882,7117,2608)) AND ((col0 >= 5293)) AND (col1 <= 6530.59)) AND col0 > 6438

statement ok
CREATE VIEW view_2_tab3_745 AS SELECT pk, col0 FROM tab3 WHERE NOT ((col0 IS NULL) OR col0 = 4667 OR ((col3 IN (3052,8315,4882,7117,2608)) AND ((col0 >= 5293)) AND (col1 <= 6530.59)) AND col0 > 6438)

statement ok
CREATE VIEW view_3_tab3_745 AS SELECT pk FROM view_1_tab3_745

query II rowsort label-700-1
SELECT pk, col0 FROM tab3 WHERE (col0 IS NULL) OR col0 = 4667 OR ((col3 IN (3052,8315,4882,7117,2608)) AND ((col0 >= 5293)) AND (col1 <= 6530.59)) AND col0 > 6438
----
528
8971

query II rowsort label-700-2
SELECT pk, col0 FROM tab3 WHERE NOT ((col0 IS NULL) OR col0 = 4667 OR ((col3 IN (3052,8315,4882,7117,2608)) AND ((col0 >= 5293)) AND (col1 <= 6530.59)) AND col0 > 6438)
----
1998 values hashing to 22fa0128bdaa544d2c9ea8dc6c18a595

query II rowsort label-700-1
SELECT pk, col0 FROM view_1_tab3_745
----
528
8971

query II rowsort label-700-2
SELECT pk, col0 FROM view_2_tab3_745
----
1998 values hashing to 22fa0128bdaa544d2c9ea8dc6c18a595

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col0 IS NULL) OR col0 = 4667 OR ((col3 IN (3052,8315,4882,7117,2608)) AND ((col0 >= 5293)) AND (col1 <= 6530.59)) AND col0 > 6438 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT ((col0 IS NULL) OR col0 = 4667 OR ((col3 IN (3052,8315,4882,7117,2608)) AND ((col0 >= 5293)) AND (col1 <= 6530.59)) AND col0 > 6438)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_745 UNION ALL SELECT pk, col0 FROM view_2_tab3_745
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col0 IS NULL) OR col0 = 4667 OR ((col3 IN (3052,8315,4882,7117,2608)) AND ((col0 >= 5293)) AND (col1 <= 6530.59)) AND col0 > 6438 UNION SELECT pk, col0 FROM tab3 WHERE NOT ((col0 IS NULL) OR col0 = 4667 OR ((col3 IN (3052,8315,4882,7117,2608)) AND ((col0 >= 5293)) AND (col1 <= 6530.59)) AND col0 > 6438)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_745 UNION SELECT pk, col0 FROM view_2_tab3_745
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE (col0 IS NULL) OR col0 = 4667 OR ((col3 IN (3052,8315,4882,7117,2608)) AND ((col0 >= 5293)) AND (col1 <= 6530.59)) AND col0 > 6438 ) AS tab3_745
----
528

query I rowsort label-700-3
SELECT * FROM view_3_tab3_745
----
528

query I rowsort label-700-3
SELECT pk FROM tab3 WHERE (col0 IS NULL) OR col0 = 4667 OR ((col3 IN (3052,8315,4882,7117,2608)) AND ((col0 >= 5293)) AND (col1 <= 6530.59)) AND col0 > 6438
----
528

statement ok
DROP VIEW view_1_tab3_745

statement ok
DROP VIEW view_2_tab3_745

statement ok
DROP VIEW view_3_tab3_745

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab4_745 AS SELECT pk, col0 FROM tab4 WHERE (col0 IS NULL) OR col0 = 4667 OR ((col3 IN (3052,8315,4882,7117,2608)) AND ((col0 >= 5293)) AND (col1 <= 6530.59)) AND col0 > 6438

statement ok
CREATE VIEW view_2_tab4_745 AS SELECT pk, col0 FROM tab4 WHERE NOT ((col0 IS NULL) OR col0 = 4667 OR ((col3 IN (3052,8315,4882,7117,2608)) AND ((col0 >= 5293)) AND (col1 <= 6530.59)) AND col0 > 6438)

statement ok
CREATE VIEW view_3_tab4_745 AS SELECT pk FROM view_1_tab4_745

query II rowsort label-700-1
SELECT pk, col0 FROM tab4 WHERE (col0 IS NULL) OR col0 = 4667 OR ((col3 IN (3052,8315,4882,7117,2608)) AND ((col0 >= 5293)) AND (col1 <= 6530.59)) AND col0 > 6438
----
528
8971

query II rowsort label-700-2
SELECT pk, col0 FROM tab4 WHERE NOT ((col0 IS NULL) OR col0 = 4667 OR ((col3 IN (3052,8315,4882,7117,2608)) AND ((col0 >= 5293)) AND (col1 <= 6530.59)) AND col0 > 6438)
----
1998 values hashing to 22fa0128bdaa544d2c9ea8dc6c18a595

query II rowsort label-700-1
SELECT pk, col0 FROM view_1_tab4_745
----
528
8971

query II rowsort label-700-2
SELECT pk, col0 FROM view_2_tab4_745
----
1998 values hashing to 22fa0128bdaa544d2c9ea8dc6c18a595

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col0 IS NULL) OR col0 = 4667 OR ((col3 IN (3052,8315,4882,7117,2608)) AND ((col0 >= 5293)) AND (col1 <= 6530.59)) AND col0 > 6438 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT ((col0 IS NULL) OR col0 = 4667 OR ((col3 IN (3052,8315,4882,7117,2608)) AND ((col0 >= 5293)) AND (col1 <= 6530.59)) AND col0 > 6438)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_745 UNION ALL SELECT pk, col0 FROM view_2_tab4_745
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col0 IS NULL) OR col0 = 4667 OR ((col3 IN (3052,8315,4882,7117,2608)) AND ((col0 >= 5293)) AND (col1 <= 6530.59)) AND col0 > 6438 UNION SELECT pk, col0 FROM tab4 WHERE NOT ((col0 IS NULL) OR col0 = 4667 OR ((col3 IN (3052,8315,4882,7117,2608)) AND ((col0 >= 5293)) AND (col1 <= 6530.59)) AND col0 > 6438)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_745 UNION SELECT pk, col0 FROM view_2_tab4_745
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE (col0 IS NULL) OR col0 = 4667 OR ((col3 IN (3052,8315,4882,7117,2608)) AND ((col0 >= 5293)) AND (col1 <= 6530.59)) AND col0 > 6438 ) AS tab4_745
----
528

query I rowsort label-700-3
SELECT * FROM view_3_tab4_745
----
528

query I rowsort label-700-3
SELECT pk FROM tab4 WHERE (col0 IS NULL) OR col0 = 4667 OR ((col3 IN (3052,8315,4882,7117,2608)) AND ((col0 >= 5293)) AND (col1 <= 6530.59)) AND col0 > 6438
----
528

statement ok
DROP VIEW view_1_tab4_745

statement ok
DROP VIEW view_2_tab4_745

statement ok
DROP VIEW view_3_tab4_745

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab0_746 AS SELECT pk, col0 FROM tab0 WHERE col0 <= 2637

statement ok
CREATE VIEW view_2_tab0_746 AS SELECT pk, col0 FROM tab0 WHERE NOT (col0 <= 2637)

statement ok
CREATE VIEW view_3_tab0_746 AS SELECT pk FROM view_1_tab0_746

query II rowsort label-800-1
SELECT pk, col0 FROM tab0 WHERE col0 <= 2637
----
492 values hashing to 9a88191cb9995eacc3a5247458067601

query II rowsort label-800-2
SELECT pk, col0 FROM tab0 WHERE NOT (col0 <= 2637)
----
1508 values hashing to 290f3e3e6f58fcf387c7cfdc95b1fd0c

query II rowsort label-800-1
SELECT pk, col0 FROM view_1_tab0_746
----
492 values hashing to 9a88191cb9995eacc3a5247458067601

query II rowsort label-800-2
SELECT pk, col0 FROM view_2_tab0_746
----
1508 values hashing to 290f3e3e6f58fcf387c7cfdc95b1fd0c

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col0 <= 2637 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col0 <= 2637)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_746 UNION ALL SELECT pk, col0 FROM view_2_tab0_746
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col0 <= 2637 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col0 <= 2637)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_746 UNION SELECT pk, col0 FROM view_2_tab0_746
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col0 <= 2637 ) AS tab0_746
----
246 values hashing to d63e8cc96dee9d3e733927415506020a

query I rowsort label-800-3
SELECT * FROM view_3_tab0_746
----
246 values hashing to d63e8cc96dee9d3e733927415506020a

query I rowsort label-800-3
SELECT pk FROM tab0 WHERE col0 <= 2637
----
246 values hashing to d63e8cc96dee9d3e733927415506020a

statement ok
DROP VIEW view_1_tab0_746

statement ok
DROP VIEW view_2_tab0_746

statement ok
DROP VIEW view_3_tab0_746

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab1_746 AS SELECT pk, col0 FROM tab1 WHERE col0 <= 2637

statement ok
CREATE VIEW view_2_tab1_746 AS SELECT pk, col0 FROM tab1 WHERE NOT (col0 <= 2637)

statement ok
CREATE VIEW view_3_tab1_746 AS SELECT pk FROM view_1_tab1_746

query II rowsort label-800-1
SELECT pk, col0 FROM tab1 WHERE col0 <= 2637
----
492 values hashing to 9a88191cb9995eacc3a5247458067601

query II rowsort label-800-2
SELECT pk, col0 FROM tab1 WHERE NOT (col0 <= 2637)
----
1508 values hashing to 290f3e3e6f58fcf387c7cfdc95b1fd0c

query II rowsort label-800-1
SELECT pk, col0 FROM view_1_tab1_746
----
492 values hashing to 9a88191cb9995eacc3a5247458067601

query II rowsort label-800-2
SELECT pk, col0 FROM view_2_tab1_746
----
1508 values hashing to 290f3e3e6f58fcf387c7cfdc95b1fd0c

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col0 <= 2637 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col0 <= 2637)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_746 UNION ALL SELECT pk, col0 FROM view_2_tab1_746
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col0 <= 2637 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col0 <= 2637)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_746 UNION SELECT pk, col0 FROM view_2_tab1_746
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col0 <= 2637 ) AS tab1_746
----
246 values hashing to d63e8cc96dee9d3e733927415506020a

query I rowsort label-800-3
SELECT * FROM view_3_tab1_746
----
246 values hashing to d63e8cc96dee9d3e733927415506020a

query I rowsort label-800-3
SELECT pk FROM tab1 WHERE col0 <= 2637
----
246 values hashing to d63e8cc96dee9d3e733927415506020a

statement ok
DROP VIEW view_1_tab1_746

statement ok
DROP VIEW view_2_tab1_746

statement ok
DROP VIEW view_3_tab1_746

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab2_746 AS SELECT pk, col0 FROM tab2 WHERE col0 <= 2637

statement ok
CREATE VIEW view_2_tab2_746 AS SELECT pk, col0 FROM tab2 WHERE NOT (col0 <= 2637)

statement ok
CREATE VIEW view_3_tab2_746 AS SELECT pk FROM view_1_tab2_746

query II rowsort label-800-1
SELECT pk, col0 FROM tab2 WHERE col0 <= 2637
----
492 values hashing to 9a88191cb9995eacc3a5247458067601

query II rowsort label-800-2
SELECT pk, col0 FROM tab2 WHERE NOT (col0 <= 2637)
----
1508 values hashing to 290f3e3e6f58fcf387c7cfdc95b1fd0c

query II rowsort label-800-1
SELECT pk, col0 FROM view_1_tab2_746
----
492 values hashing to 9a88191cb9995eacc3a5247458067601

query II rowsort label-800-2
SELECT pk, col0 FROM view_2_tab2_746
----
1508 values hashing to 290f3e3e6f58fcf387c7cfdc95b1fd0c

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col0 <= 2637 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col0 <= 2637)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_746 UNION ALL SELECT pk, col0 FROM view_2_tab2_746
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col0 <= 2637 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col0 <= 2637)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_746 UNION SELECT pk, col0 FROM view_2_tab2_746
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col0 <= 2637 ) AS tab2_746
----
246 values hashing to d63e8cc96dee9d3e733927415506020a

query I rowsort label-800-3
SELECT * FROM view_3_tab2_746
----
246 values hashing to d63e8cc96dee9d3e733927415506020a

query I rowsort label-800-3
SELECT pk FROM tab2 WHERE col0 <= 2637
----
246 values hashing to d63e8cc96dee9d3e733927415506020a

statement ok
DROP VIEW view_1_tab2_746

statement ok
DROP VIEW view_2_tab2_746

statement ok
DROP VIEW view_3_tab2_746

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab3_746 AS SELECT pk, col0 FROM tab3 WHERE col0 <= 2637

statement ok
CREATE VIEW view_2_tab3_746 AS SELECT pk, col0 FROM tab3 WHERE NOT (col0 <= 2637)

statement ok
CREATE VIEW view_3_tab3_746 AS SELECT pk FROM view_1_tab3_746

query II rowsort label-800-1
SELECT pk, col0 FROM tab3 WHERE col0 <= 2637
----
492 values hashing to 9a88191cb9995eacc3a5247458067601

query II rowsort label-800-2
SELECT pk, col0 FROM tab3 WHERE NOT (col0 <= 2637)
----
1508 values hashing to 290f3e3e6f58fcf387c7cfdc95b1fd0c

query II rowsort label-800-1
SELECT pk, col0 FROM view_1_tab3_746
----
492 values hashing to 9a88191cb9995eacc3a5247458067601

query II rowsort label-800-2
SELECT pk, col0 FROM view_2_tab3_746
----
1508 values hashing to 290f3e3e6f58fcf387c7cfdc95b1fd0c

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col0 <= 2637 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col0 <= 2637)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_746 UNION ALL SELECT pk, col0 FROM view_2_tab3_746
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col0 <= 2637 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col0 <= 2637)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_746 UNION SELECT pk, col0 FROM view_2_tab3_746
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col0 <= 2637 ) AS tab3_746
----
246 values hashing to d63e8cc96dee9d3e733927415506020a

query I rowsort label-800-3
SELECT * FROM view_3_tab3_746
----
246 values hashing to d63e8cc96dee9d3e733927415506020a

query I rowsort label-800-3
SELECT pk FROM tab3 WHERE col0 <= 2637
----
246 values hashing to d63e8cc96dee9d3e733927415506020a

statement ok
DROP VIEW view_1_tab3_746

statement ok
DROP VIEW view_2_tab3_746

statement ok
DROP VIEW view_3_tab3_746

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab4_746 AS SELECT pk, col0 FROM tab4 WHERE col0 <= 2637

statement ok
CREATE VIEW view_2_tab4_746 AS SELECT pk, col0 FROM tab4 WHERE NOT (col0 <= 2637)

statement ok
CREATE VIEW view_3_tab4_746 AS SELECT pk FROM view_1_tab4_746

query II rowsort label-800-1
SELECT pk, col0 FROM tab4 WHERE col0 <= 2637
----
492 values hashing to 9a88191cb9995eacc3a5247458067601

query II rowsort label-800-2
SELECT pk, col0 FROM tab4 WHERE NOT (col0 <= 2637)
----
1508 values hashing to 290f3e3e6f58fcf387c7cfdc95b1fd0c

query II rowsort label-800-1
SELECT pk, col0 FROM view_1_tab4_746
----
492 values hashing to 9a88191cb9995eacc3a5247458067601

query II rowsort label-800-2
SELECT pk, col0 FROM view_2_tab4_746
----
1508 values hashing to 290f3e3e6f58fcf387c7cfdc95b1fd0c

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col0 <= 2637 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col0 <= 2637)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_746 UNION ALL SELECT pk, col0 FROM view_2_tab4_746
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col0 <= 2637 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col0 <= 2637)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_746 UNION SELECT pk, col0 FROM view_2_tab4_746
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col0 <= 2637 ) AS tab4_746
----
246 values hashing to d63e8cc96dee9d3e733927415506020a

query I rowsort label-800-3
SELECT * FROM view_3_tab4_746
----
246 values hashing to d63e8cc96dee9d3e733927415506020a

query I rowsort label-800-3
SELECT pk FROM tab4 WHERE col0 <= 2637
----
246 values hashing to d63e8cc96dee9d3e733927415506020a

statement ok
DROP VIEW view_1_tab4_746

statement ok
DROP VIEW view_2_tab4_746

statement ok
DROP VIEW view_3_tab4_746

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab0_747 AS SELECT pk, col0 FROM tab0 WHERE col4 <= 8494.90

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

statement ok
CREATE VIEW view_3_tab0_747 AS SELECT pk FROM view_1_tab0_747

query II rowsort label-900-1
SELECT pk, col0 FROM tab0 WHERE col4 <= 8494.90
----
1742 values hashing to ec6585145f2745ef2d05bb1da8c4d744

query II rowsort label-900-2
SELECT pk, col0 FROM tab0 WHERE NOT (col4 <= 8494.90)
----
258 values hashing to 8cf5426c71f99d6be3c3ce3315eb1405

query II rowsort label-900-1
SELECT pk, col0 FROM view_1_tab0_747
----
1742 values hashing to ec6585145f2745ef2d05bb1da8c4d744

query II rowsort label-900-2
SELECT pk, col0 FROM view_2_tab0_747
----
258 values hashing to 8cf5426c71f99d6be3c3ce3315eb1405

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col4 <= 8494.90 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col4 <= 8494.90)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_747 UNION ALL SELECT pk, col0 FROM view_2_tab0_747
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col4 <= 8494.90 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col4 <= 8494.90)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_747 UNION SELECT pk, col0 FROM view_2_tab0_747
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col4 <= 8494.90 ) AS tab0_747
----
871 values hashing to 5bab95a34e286f00401c69bef24e6e25

query I rowsort label-900-3
SELECT * FROM view_3_tab0_747
----
871 values hashing to 5bab95a34e286f00401c69bef24e6e25

query I rowsort label-900-3
SELECT pk FROM tab0 WHERE col4 <= 8494.90
----
871 values hashing to 5bab95a34e286f00401c69bef24e6e25

statement ok
DROP VIEW view_1_tab0_747

statement ok
DROP VIEW view_2_tab0_747

statement ok
DROP VIEW view_3_tab0_747

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab1_747 AS SELECT pk, col0 FROM tab1 WHERE col4 <= 8494.90

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

statement ok
CREATE VIEW view_3_tab1_747 AS SELECT pk FROM view_1_tab1_747

query II rowsort label-900-1
SELECT pk, col0 FROM tab1 WHERE col4 <= 8494.90
----
1742 values hashing to ec6585145f2745ef2d05bb1da8c4d744

query II rowsort label-900-2
SELECT pk, col0 FROM tab1 WHERE NOT (col4 <= 8494.90)
----
258 values hashing to 8cf5426c71f99d6be3c3ce3315eb1405

query II rowsort label-900-1
SELECT pk, col0 FROM view_1_tab1_747
----
1742 values hashing to ec6585145f2745ef2d05bb1da8c4d744

query II rowsort label-900-2
SELECT pk, col0 FROM view_2_tab1_747
----
258 values hashing to 8cf5426c71f99d6be3c3ce3315eb1405

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col4 <= 8494.90 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col4 <= 8494.90)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_747 UNION ALL SELECT pk, col0 FROM view_2_tab1_747
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col4 <= 8494.90 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col4 <= 8494.90)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_747 UNION SELECT pk, col0 FROM view_2_tab1_747
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col4 <= 8494.90 ) AS tab1_747
----
871 values hashing to 5bab95a34e286f00401c69bef24e6e25

query I rowsort label-900-3
SELECT * FROM view_3_tab1_747
----
871 values hashing to 5bab95a34e286f00401c69bef24e6e25

query I rowsort label-900-3
SELECT pk FROM tab1 WHERE col4 <= 8494.90
----
871 values hashing to 5bab95a34e286f00401c69bef24e6e25

statement ok
DROP VIEW view_1_tab1_747

statement ok
DROP VIEW view_2_tab1_747

statement ok
DROP VIEW view_3_tab1_747

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab2_747 AS SELECT pk, col0 FROM tab2 WHERE col4 <= 8494.90

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

statement ok
CREATE VIEW view_3_tab2_747 AS SELECT pk FROM view_1_tab2_747

query II rowsort label-900-1
SELECT pk, col0 FROM tab2 WHERE col4 <= 8494.90
----
1742 values hashing to ec6585145f2745ef2d05bb1da8c4d744

query II rowsort label-900-2
SELECT pk, col0 FROM tab2 WHERE NOT (col4 <= 8494.90)
----
258 values hashing to 8cf5426c71f99d6be3c3ce3315eb1405

query II rowsort label-900-1
SELECT pk, col0 FROM view_1_tab2_747
----
1742 values hashing to ec6585145f2745ef2d05bb1da8c4d744

query II rowsort label-900-2
SELECT pk, col0 FROM view_2_tab2_747
----
258 values hashing to 8cf5426c71f99d6be3c3ce3315eb1405

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col4 <= 8494.90 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col4 <= 8494.90)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_747 UNION ALL SELECT pk, col0 FROM view_2_tab2_747
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col4 <= 8494.90 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col4 <= 8494.90)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_747 UNION SELECT pk, col0 FROM view_2_tab2_747
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col4 <= 8494.90 ) AS tab2_747
----
871 values hashing to 5bab95a34e286f00401c69bef24e6e25

query I rowsort label-900-3
SELECT * FROM view_3_tab2_747
----
871 values hashing to 5bab95a34e286f00401c69bef24e6e25

query I rowsort label-900-3
SELECT pk FROM tab2 WHERE col4 <= 8494.90
----
871 values hashing to 5bab95a34e286f00401c69bef24e6e25

statement ok
DROP VIEW view_1_tab2_747

statement ok
DROP VIEW view_2_tab2_747

statement ok
DROP VIEW view_3_tab2_747

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab3_747 AS SELECT pk, col0 FROM tab3 WHERE col4 <= 8494.90

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

statement ok
CREATE VIEW view_3_tab3_747 AS SELECT pk FROM view_1_tab3_747

query II rowsort label-900-1
SELECT pk, col0 FROM tab3 WHERE col4 <= 8494.90
----
1742 values hashing to ec6585145f2745ef2d05bb1da8c4d744

query II rowsort label-900-2
SELECT pk, col0 FROM tab3 WHERE NOT (col4 <= 8494.90)
----
258 values hashing to 8cf5426c71f99d6be3c3ce3315eb1405

query II rowsort label-900-1
SELECT pk, col0 FROM view_1_tab3_747
----
1742 values hashing to ec6585145f2745ef2d05bb1da8c4d744

query II rowsort label-900-2
SELECT pk, col0 FROM view_2_tab3_747
----
258 values hashing to 8cf5426c71f99d6be3c3ce3315eb1405

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col4 <= 8494.90 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col4 <= 8494.90)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_747 UNION ALL SELECT pk, col0 FROM view_2_tab3_747
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col4 <= 8494.90 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col4 <= 8494.90)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_747 UNION SELECT pk, col0 FROM view_2_tab3_747
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col4 <= 8494.90 ) AS tab3_747
----
871 values hashing to 5bab95a34e286f00401c69bef24e6e25

query I rowsort label-900-3
SELECT * FROM view_3_tab3_747
----
871 values hashing to 5bab95a34e286f00401c69bef24e6e25

query I rowsort label-900-3
SELECT pk FROM tab3 WHERE col4 <= 8494.90
----
871 values hashing to 5bab95a34e286f00401c69bef24e6e25

statement ok
DROP VIEW view_1_tab3_747

statement ok
DROP VIEW view_2_tab3_747

statement ok
DROP VIEW view_3_tab3_747

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab4_747 AS SELECT pk, col0 FROM tab4 WHERE col4 <= 8494.90

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

statement ok
CREATE VIEW view_3_tab4_747 AS SELECT pk FROM view_1_tab4_747

query II rowsort label-900-1
SELECT pk, col0 FROM tab4 WHERE col4 <= 8494.90
----
1742 values hashing to ec6585145f2745ef2d05bb1da8c4d744

query II rowsort label-900-2
SELECT pk, col0 FROM tab4 WHERE NOT (col4 <= 8494.90)
----
258 values hashing to 8cf5426c71f99d6be3c3ce3315eb1405

query II rowsort label-900-1
SELECT pk, col0 FROM view_1_tab4_747
----
1742 values hashing to ec6585145f2745ef2d05bb1da8c4d744

query II rowsort label-900-2
SELECT pk, col0 FROM view_2_tab4_747
----
258 values hashing to 8cf5426c71f99d6be3c3ce3315eb1405

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col4 <= 8494.90 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col4 <= 8494.90)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_747 UNION ALL SELECT pk, col0 FROM view_2_tab4_747
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col4 <= 8494.90 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col4 <= 8494.90)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_747 UNION SELECT pk, col0 FROM view_2_tab4_747
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col4 <= 8494.90 ) AS tab4_747
----
871 values hashing to 5bab95a34e286f00401c69bef24e6e25

query I rowsort label-900-3
SELECT * FROM view_3_tab4_747
----
871 values hashing to 5bab95a34e286f00401c69bef24e6e25

query I rowsort label-900-3
SELECT pk FROM tab4 WHERE col4 <= 8494.90
----
871 values hashing to 5bab95a34e286f00401c69bef24e6e25

statement ok
DROP VIEW view_1_tab4_747

statement ok
DROP VIEW view_2_tab4_747

statement ok
DROP VIEW view_3_tab4_747

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab0_748 AS SELECT pk, col0 FROM tab0 WHERE col3 >= 4479 OR col3 <= 9248 OR (col0 IS NULL)

statement ok
CREATE VIEW view_2_tab0_748 AS SELECT pk, col0 FROM tab0 WHERE NOT (col3 >= 4479 OR col3 <= 9248 OR (col0 IS NULL))

statement ok
CREATE VIEW view_3_tab0_748 AS SELECT pk FROM view_1_tab0_748

query II rowsort label-1000-1
SELECT pk, col0 FROM tab0 WHERE col3 >= 4479 OR col3 <= 9248 OR (col0 IS NULL)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-1000-2
SELECT pk, col0 FROM tab0 WHERE NOT (col3 >= 4479 OR col3 <= 9248 OR (col0 IS NULL))
----

query II rowsort label-1000-1
SELECT pk, col0 FROM view_1_tab0_748
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-1000-2
SELECT pk, col0 FROM view_2_tab0_748
----

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 >= 4479 OR col3 <= 9248 OR (col0 IS NULL) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col3 >= 4479 OR col3 <= 9248 OR (col0 IS NULL))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_748 UNION ALL SELECT pk, col0 FROM view_2_tab0_748
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 >= 4479 OR col3 <= 9248 OR (col0 IS NULL) UNION SELECT pk, col0 FROM tab0 WHERE NOT (col3 >= 4479 OR col3 <= 9248 OR (col0 IS NULL))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_748 UNION SELECT pk, col0 FROM view_2_tab0_748
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-1000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col3 >= 4479 OR col3 <= 9248 OR (col0 IS NULL) ) AS tab0_748
----
1000 values hashing to 30a3c33f4078cae93230de944dca2ac9

query I rowsort label-1000-3
SELECT * FROM view_3_tab0_748
----
1000 values hashing to 30a3c33f4078cae93230de944dca2ac9

query I rowsort label-1000-3
SELECT pk FROM tab0 WHERE col3 >= 4479 OR col3 <= 9248 OR (col0 IS NULL)
----
1000 values hashing to 30a3c33f4078cae93230de944dca2ac9

statement ok
DROP VIEW view_1_tab0_748

statement ok
DROP VIEW view_2_tab0_748

statement ok
DROP VIEW view_3_tab0_748

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab1_748 AS SELECT pk, col0 FROM tab1 WHERE col3 >= 4479 OR col3 <= 9248 OR (col0 IS NULL)

statement ok
CREATE VIEW view_2_tab1_748 AS SELECT pk, col0 FROM tab1 WHERE NOT (col3 >= 4479 OR col3 <= 9248 OR (col0 IS NULL))

statement ok
CREATE VIEW view_3_tab1_748 AS SELECT pk FROM view_1_tab1_748

query II rowsort label-1000-1
SELECT pk, col0 FROM tab1 WHERE col3 >= 4479 OR col3 <= 9248 OR (col0 IS NULL)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-1000-2
SELECT pk, col0 FROM tab1 WHERE NOT (col3 >= 4479 OR col3 <= 9248 OR (col0 IS NULL))
----

query II rowsort label-1000-1
SELECT pk, col0 FROM view_1_tab1_748
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-1000-2
SELECT pk, col0 FROM view_2_tab1_748
----

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 >= 4479 OR col3 <= 9248 OR (col0 IS NULL) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col3 >= 4479 OR col3 <= 9248 OR (col0 IS NULL))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_748 UNION ALL SELECT pk, col0 FROM view_2_tab1_748
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 >= 4479 OR col3 <= 9248 OR (col0 IS NULL) UNION SELECT pk, col0 FROM tab1 WHERE NOT (col3 >= 4479 OR col3 <= 9248 OR (col0 IS NULL))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_748 UNION SELECT pk, col0 FROM view_2_tab1_748
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-1000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col3 >= 4479 OR col3 <= 9248 OR (col0 IS NULL) ) AS tab1_748
----
1000 values hashing to 30a3c33f4078cae93230de944dca2ac9

query I rowsort label-1000-3
SELECT * FROM view_3_tab1_748
----
1000 values hashing to 30a3c33f4078cae93230de944dca2ac9

query I rowsort label-1000-3
SELECT pk FROM tab1 WHERE col3 >= 4479 OR col3 <= 9248 OR (col0 IS NULL)
----
1000 values hashing to 30a3c33f4078cae93230de944dca2ac9

statement ok
DROP VIEW view_1_tab1_748

statement ok
DROP VIEW view_2_tab1_748

statement ok
DROP VIEW view_3_tab1_748

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab2_748 AS SELECT pk, col0 FROM tab2 WHERE col3 >= 4479 OR col3 <= 9248 OR (col0 IS NULL)

statement ok
CREATE VIEW view_2_tab2_748 AS SELECT pk, col0 FROM tab2 WHERE NOT (col3 >= 4479 OR col3 <= 9248 OR (col0 IS NULL))

statement ok
CREATE VIEW view_3_tab2_748 AS SELECT pk FROM view_1_tab2_748

query II rowsort label-1000-1
SELECT pk, col0 FROM tab2 WHERE col3 >= 4479 OR col3 <= 9248 OR (col0 IS NULL)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-1000-2
SELECT pk, col0 FROM tab2 WHERE NOT (col3 >= 4479 OR col3 <= 9248 OR (col0 IS NULL))
----

query II rowsort label-1000-1
SELECT pk, col0 FROM view_1_tab2_748
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-1000-2
SELECT pk, col0 FROM view_2_tab2_748
----

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 >= 4479 OR col3 <= 9248 OR (col0 IS NULL) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col3 >= 4479 OR col3 <= 9248 OR (col0 IS NULL))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_748 UNION ALL SELECT pk, col0 FROM view_2_tab2_748
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 >= 4479 OR col3 <= 9248 OR (col0 IS NULL) UNION SELECT pk, col0 FROM tab2 WHERE NOT (col3 >= 4479 OR col3 <= 9248 OR (col0 IS NULL))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_748 UNION SELECT pk, col0 FROM view_2_tab2_748
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-1000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col3 >= 4479 OR col3 <= 9248 OR (col0 IS NULL) ) AS tab2_748
----
1000 values hashing to 30a3c33f4078cae93230de944dca2ac9

query I rowsort label-1000-3
SELECT * FROM view_3_tab2_748
----
1000 values hashing to 30a3c33f4078cae93230de944dca2ac9

query I rowsort label-1000-3
SELECT pk FROM tab2 WHERE col3 >= 4479 OR col3 <= 9248 OR (col0 IS NULL)
----
1000 values hashing to 30a3c33f4078cae93230de944dca2ac9

statement ok
DROP VIEW view_1_tab2_748

statement ok
DROP VIEW view_2_tab2_748

statement ok
DROP VIEW view_3_tab2_748

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab3_748 AS SELECT pk, col0 FROM tab3 WHERE col3 >= 4479 OR col3 <= 9248 OR (col0 IS NULL)

statement ok
CREATE VIEW view_2_tab3_748 AS SELECT pk, col0 FROM tab3 WHERE NOT (col3 >= 4479 OR col3 <= 9248 OR (col0 IS NULL))

statement ok
CREATE VIEW view_3_tab3_748 AS SELECT pk FROM view_1_tab3_748

query II rowsort label-1000-1
SELECT pk, col0 FROM tab3 WHERE col3 >= 4479 OR col3 <= 9248 OR (col0 IS NULL)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-1000-2
SELECT pk, col0 FROM tab3 WHERE NOT (col3 >= 4479 OR col3 <= 9248 OR (col0 IS NULL))
----

query II rowsort label-1000-1
SELECT pk, col0 FROM view_1_tab3_748
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-1000-2
SELECT pk, col0 FROM view_2_tab3_748
----

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 >= 4479 OR col3 <= 9248 OR (col0 IS NULL) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col3 >= 4479 OR col3 <= 9248 OR (col0 IS NULL))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_748 UNION ALL SELECT pk, col0 FROM view_2_tab3_748
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 >= 4479 OR col3 <= 9248 OR (col0 IS NULL) UNION SELECT pk, col0 FROM tab3 WHERE NOT (col3 >= 4479 OR col3 <= 9248 OR (col0 IS NULL))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_748 UNION SELECT pk, col0 FROM view_2_tab3_748
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-1000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col3 >= 4479 OR col3 <= 9248 OR (col0 IS NULL) ) AS tab3_748
----
1000 values hashing to 30a3c33f4078cae93230de944dca2ac9

query I rowsort label-1000-3
SELECT * FROM view_3_tab3_748
----
1000 values hashing to 30a3c33f4078cae93230de944dca2ac9

query I rowsort label-1000-3
SELECT pk FROM tab3 WHERE col3 >= 4479 OR col3 <= 9248 OR (col0 IS NULL)
----
1000 values hashing to 30a3c33f4078cae93230de944dca2ac9

statement ok
DROP VIEW view_1_tab3_748

statement ok
DROP VIEW view_2_tab3_748

statement ok
DROP VIEW view_3_tab3_748

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab4_748 AS SELECT pk, col0 FROM tab4 WHERE col3 >= 4479 OR col3 <= 9248 OR (col0 IS NULL)

statement ok
CREATE VIEW view_2_tab4_748 AS SELECT pk, col0 FROM tab4 WHERE NOT (col3 >= 4479 OR col3 <= 9248 OR (col0 IS NULL))

statement ok
CREATE VIEW view_3_tab4_748 AS SELECT pk FROM view_1_tab4_748

query II rowsort label-1000-1
SELECT pk, col0 FROM tab4 WHERE col3 >= 4479 OR col3 <= 9248 OR (col0 IS NULL)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-1000-2
SELECT pk, col0 FROM tab4 WHERE NOT (col3 >= 4479 OR col3 <= 9248 OR (col0 IS NULL))
----

query II rowsort label-1000-1
SELECT pk, col0 FROM view_1_tab4_748
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-1000-2
SELECT pk, col0 FROM view_2_tab4_748
----

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 >= 4479 OR col3 <= 9248 OR (col0 IS NULL) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col3 >= 4479 OR col3 <= 9248 OR (col0 IS NULL))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_748 UNION ALL SELECT pk, col0 FROM view_2_tab4_748
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 >= 4479 OR col3 <= 9248 OR (col0 IS NULL) UNION SELECT pk, col0 FROM tab4 WHERE NOT (col3 >= 4479 OR col3 <= 9248 OR (col0 IS NULL))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_748 UNION SELECT pk, col0 FROM view_2_tab4_748
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-1000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col3 >= 4479 OR col3 <= 9248 OR (col0 IS NULL) ) AS tab4_748
----
1000 values hashing to 30a3c33f4078cae93230de944dca2ac9

query I rowsort label-1000-3
SELECT * FROM view_3_tab4_748
----
1000 values hashing to 30a3c33f4078cae93230de944dca2ac9

query I rowsort label-1000-3
SELECT pk FROM tab4 WHERE col3 >= 4479 OR col3 <= 9248 OR (col0 IS NULL)
----
1000 values hashing to 30a3c33f4078cae93230de944dca2ac9

statement ok
DROP VIEW view_1_tab4_748

statement ok
DROP VIEW view_2_tab4_748

statement ok
DROP VIEW view_3_tab4_748

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab0_749 AS SELECT pk, col0 FROM tab0 WHERE (col3 > 2858)

statement ok
CREATE VIEW view_2_tab0_749 AS SELECT pk, col0 FROM tab0 WHERE NOT ((col3 > 2858))

statement ok
CREATE VIEW view_3_tab0_749 AS SELECT pk FROM view_1_tab0_749

query II rowsort label-1100-1
SELECT pk, col0 FROM tab0 WHERE (col3 > 2858)
----
1446 values hashing to baa668aa4fd0da108af256cccc90bfab

query II rowsort label-1100-2
SELECT pk, col0 FROM tab0 WHERE NOT ((col3 > 2858))
----
554 values hashing to 06eb66a655b542cec073b083289bd4a1

query II rowsort label-1100-1
SELECT pk, col0 FROM view_1_tab0_749
----
1446 values hashing to baa668aa4fd0da108af256cccc90bfab

query II rowsort label-1100-2
SELECT pk, col0 FROM view_2_tab0_749
----
554 values hashing to 06eb66a655b542cec073b083289bd4a1

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col3 > 2858) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT ((col3 > 2858))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_749 UNION ALL SELECT pk, col0 FROM view_2_tab0_749
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col3 > 2858) UNION SELECT pk, col0 FROM tab0 WHERE NOT ((col3 > 2858))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_749 UNION SELECT pk, col0 FROM view_2_tab0_749
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-1100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE (col3 > 2858) ) AS tab0_749
----
723 values hashing to aafad247ff4aba683e3cf2a6b01b62bc

query I rowsort label-1100-3
SELECT * FROM view_3_tab0_749
----
723 values hashing to aafad247ff4aba683e3cf2a6b01b62bc

query I rowsort label-1100-3
SELECT pk FROM tab0 WHERE (col3 > 2858)
----
723 values hashing to aafad247ff4aba683e3cf2a6b01b62bc

statement ok
DROP VIEW view_1_tab0_749

statement ok
DROP VIEW view_2_tab0_749

statement ok
DROP VIEW view_3_tab0_749

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab1_749 AS SELECT pk, col0 FROM tab1 WHERE (col3 > 2858)

statement ok
CREATE VIEW view_2_tab1_749 AS SELECT pk, col0 FROM tab1 WHERE NOT ((col3 > 2858))

statement ok
CREATE VIEW view_3_tab1_749 AS SELECT pk FROM view_1_tab1_749

query II rowsort label-1100-1
SELECT pk, col0 FROM tab1 WHERE (col3 > 2858)
----
1446 values hashing to baa668aa4fd0da108af256cccc90bfab

query II rowsort label-1100-2
SELECT pk, col0 FROM tab1 WHERE NOT ((col3 > 2858))
----
554 values hashing to 06eb66a655b542cec073b083289bd4a1

query II rowsort label-1100-1
SELECT pk, col0 FROM view_1_tab1_749
----
1446 values hashing to baa668aa4fd0da108af256cccc90bfab

query II rowsort label-1100-2
SELECT pk, col0 FROM view_2_tab1_749
----
554 values hashing to 06eb66a655b542cec073b083289bd4a1

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col3 > 2858) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT ((col3 > 2858))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_749 UNION ALL SELECT pk, col0 FROM view_2_tab1_749
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col3 > 2858) UNION SELECT pk, col0 FROM tab1 WHERE NOT ((col3 > 2858))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_749 UNION SELECT pk, col0 FROM view_2_tab1_749
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-1100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE (col3 > 2858) ) AS tab1_749
----
723 values hashing to aafad247ff4aba683e3cf2a6b01b62bc

query I rowsort label-1100-3
SELECT * FROM view_3_tab1_749
----
723 values hashing to aafad247ff4aba683e3cf2a6b01b62bc

query I rowsort label-1100-3
SELECT pk FROM tab1 WHERE (col3 > 2858)
----
723 values hashing to aafad247ff4aba683e3cf2a6b01b62bc

statement ok
DROP VIEW view_1_tab1_749

statement ok
DROP VIEW view_2_tab1_749

statement ok
DROP VIEW view_3_tab1_749

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab2_749 AS SELECT pk, col0 FROM tab2 WHERE (col3 > 2858)

statement ok
CREATE VIEW view_2_tab2_749 AS SELECT pk, col0 FROM tab2 WHERE NOT ((col3 > 2858))

statement ok
CREATE VIEW view_3_tab2_749 AS SELECT pk FROM view_1_tab2_749

query II rowsort label-1100-1
SELECT pk, col0 FROM tab2 WHERE (col3 > 2858)
----
1446 values hashing to baa668aa4fd0da108af256cccc90bfab

query II rowsort label-1100-2
SELECT pk, col0 FROM tab2 WHERE NOT ((col3 > 2858))
----
554 values hashing to 06eb66a655b542cec073b083289bd4a1

query II rowsort label-1100-1
SELECT pk, col0 FROM view_1_tab2_749
----
1446 values hashing to baa668aa4fd0da108af256cccc90bfab

query II rowsort label-1100-2
SELECT pk, col0 FROM view_2_tab2_749
----
554 values hashing to 06eb66a655b542cec073b083289bd4a1

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col3 > 2858) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT ((col3 > 2858))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_749 UNION ALL SELECT pk, col0 FROM view_2_tab2_749
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col3 > 2858) UNION SELECT pk, col0 FROM tab2 WHERE NOT ((col3 > 2858))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_749 UNION SELECT pk, col0 FROM view_2_tab2_749
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-1100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE (col3 > 2858) ) AS tab2_749
----
723 values hashing to aafad247ff4aba683e3cf2a6b01b62bc

query I rowsort label-1100-3
SELECT * FROM view_3_tab2_749
----
723 values hashing to aafad247ff4aba683e3cf2a6b01b62bc

query I rowsort label-1100-3
SELECT pk FROM tab2 WHERE (col3 > 2858)
----
723 values hashing to aafad247ff4aba683e3cf2a6b01b62bc

statement ok
DROP VIEW view_1_tab2_749

statement ok
DROP VIEW view_2_tab2_749

statement ok
DROP VIEW view_3_tab2_749

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab3_749 AS SELECT pk, col0 FROM tab3 WHERE (col3 > 2858)

statement ok
CREATE VIEW view_2_tab3_749 AS SELECT pk, col0 FROM tab3 WHERE NOT ((col3 > 2858))

statement ok
CREATE VIEW view_3_tab3_749 AS SELECT pk FROM view_1_tab3_749

query II rowsort label-1100-1
SELECT pk, col0 FROM tab3 WHERE (col3 > 2858)
----
1446 values hashing to baa668aa4fd0da108af256cccc90bfab

query II rowsort label-1100-2
SELECT pk, col0 FROM tab3 WHERE NOT ((col3 > 2858))
----
554 values hashing to 06eb66a655b542cec073b083289bd4a1

query II rowsort label-1100-1
SELECT pk, col0 FROM view_1_tab3_749
----
1446 values hashing to baa668aa4fd0da108af256cccc90bfab

query II rowsort label-1100-2
SELECT pk, col0 FROM view_2_tab3_749
----
554 values hashing to 06eb66a655b542cec073b083289bd4a1

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col3 > 2858) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT ((col3 > 2858))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_749 UNION ALL SELECT pk, col0 FROM view_2_tab3_749
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col3 > 2858) UNION SELECT pk, col0 FROM tab3 WHERE NOT ((col3 > 2858))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_749 UNION SELECT pk, col0 FROM view_2_tab3_749
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-1100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE (col3 > 2858) ) AS tab3_749
----
723 values hashing to aafad247ff4aba683e3cf2a6b01b62bc

query I rowsort label-1100-3
SELECT * FROM view_3_tab3_749
----
723 values hashing to aafad247ff4aba683e3cf2a6b01b62bc

query I rowsort label-1100-3
SELECT pk FROM tab3 WHERE (col3 > 2858)
----
723 values hashing to aafad247ff4aba683e3cf2a6b01b62bc

statement ok
DROP VIEW view_1_tab3_749

statement ok
DROP VIEW view_2_tab3_749

statement ok
DROP VIEW view_3_tab3_749

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab4_749 AS SELECT pk, col0 FROM tab4 WHERE (col3 > 2858)

statement ok
CREATE VIEW view_2_tab4_749 AS SELECT pk, col0 FROM tab4 WHERE NOT ((col3 > 2858))

statement ok
CREATE VIEW view_3_tab4_749 AS SELECT pk FROM view_1_tab4_749

query II rowsort label-1100-1
SELECT pk, col0 FROM tab4 WHERE (col3 > 2858)
----
1446 values hashing to baa668aa4fd0da108af256cccc90bfab

query II rowsort label-1100-2
SELECT pk, col0 FROM tab4 WHERE NOT ((col3 > 2858))
----
554 values hashing to 06eb66a655b542cec073b083289bd4a1

query II rowsort label-1100-1
SELECT pk, col0 FROM view_1_tab4_749
----
1446 values hashing to baa668aa4fd0da108af256cccc90bfab

query II rowsort label-1100-2
SELECT pk, col0 FROM view_2_tab4_749
----
554 values hashing to 06eb66a655b542cec073b083289bd4a1

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col3 > 2858) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT ((col3 > 2858))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_749 UNION ALL SELECT pk, col0 FROM view_2_tab4_749
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col3 > 2858) UNION SELECT pk, col0 FROM tab4 WHERE NOT ((col3 > 2858))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_749 UNION SELECT pk, col0 FROM view_2_tab4_749
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-1100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE (col3 > 2858) ) AS tab4_749
----
723 values hashing to aafad247ff4aba683e3cf2a6b01b62bc

query I rowsort label-1100-3
SELECT * FROM view_3_tab4_749
----
723 values hashing to aafad247ff4aba683e3cf2a6b01b62bc

query I rowsort label-1100-3
SELECT pk FROM tab4 WHERE (col3 > 2858)
----
723 values hashing to aafad247ff4aba683e3cf2a6b01b62bc

statement ok
DROP VIEW view_1_tab4_749

statement ok
DROP VIEW view_2_tab4_749

statement ok
DROP VIEW view_3_tab4_749

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab0_750 AS SELECT pk, col0 FROM tab0 WHERE col3 < 5975

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

statement ok
CREATE VIEW view_3_tab0_750 AS SELECT pk FROM view_1_tab0_750

query II rowsort label-1200-1
SELECT pk, col0 FROM tab0 WHERE col3 < 5975
----
1214 values hashing to c495ebedaf0862549320fc1cbd09b1b0

query II rowsort label-1200-2
SELECT pk, col0 FROM tab0 WHERE NOT (col3 < 5975)
----
786 values hashing to 7cbc943e0a9e588d9f3275294793f94c

query II rowsort label-1200-1
SELECT pk, col0 FROM view_1_tab0_750
----
1214 values hashing to c495ebedaf0862549320fc1cbd09b1b0

query II rowsort label-1200-2
SELECT pk, col0 FROM view_2_tab0_750
----
786 values hashing to 7cbc943e0a9e588d9f3275294793f94c

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 < 5975 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col3 < 5975)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_750 UNION ALL SELECT pk, col0 FROM view_2_tab0_750
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 < 5975 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col3 < 5975)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_750 UNION SELECT pk, col0 FROM view_2_tab0_750
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-1200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col3 < 5975 ) AS tab0_750
----
607 values hashing to acb1fe188fac9a20c902bd646089a342

query I rowsort label-1200-3
SELECT * FROM view_3_tab0_750
----
607 values hashing to acb1fe188fac9a20c902bd646089a342

query I rowsort label-1200-3
SELECT pk FROM tab0 WHERE col3 < 5975
----
607 values hashing to acb1fe188fac9a20c902bd646089a342

statement ok
DROP VIEW view_1_tab0_750

statement ok
DROP VIEW view_2_tab0_750

statement ok
DROP VIEW view_3_tab0_750

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab1_750 AS SELECT pk, col0 FROM tab1 WHERE col3 < 5975

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

statement ok
CREATE VIEW view_3_tab1_750 AS SELECT pk FROM view_1_tab1_750

query II rowsort label-1200-1
SELECT pk, col0 FROM tab1 WHERE col3 < 5975
----
1214 values hashing to c495ebedaf0862549320fc1cbd09b1b0

query II rowsort label-1200-2
SELECT pk, col0 FROM tab1 WHERE NOT (col3 < 5975)
----
786 values hashing to 7cbc943e0a9e588d9f3275294793f94c

query II rowsort label-1200-1
SELECT pk, col0 FROM view_1_tab1_750
----
1214 values hashing to c495ebedaf0862549320fc1cbd09b1b0

query II rowsort label-1200-2
SELECT pk, col0 FROM view_2_tab1_750
----
786 values hashing to 7cbc943e0a9e588d9f3275294793f94c

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 < 5975 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col3 < 5975)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_750 UNION ALL SELECT pk, col0 FROM view_2_tab1_750
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 < 5975 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col3 < 5975)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_750 UNION SELECT pk, col0 FROM view_2_tab1_750
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-1200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col3 < 5975 ) AS tab1_750
----
607 values hashing to acb1fe188fac9a20c902bd646089a342

query I rowsort label-1200-3
SELECT * FROM view_3_tab1_750
----
607 values hashing to acb1fe188fac9a20c902bd646089a342

query I rowsort label-1200-3
SELECT pk FROM tab1 WHERE col3 < 5975
----
607 values hashing to acb1fe188fac9a20c902bd646089a342

statement ok
DROP VIEW view_1_tab1_750

statement ok
DROP VIEW view_2_tab1_750

statement ok
DROP VIEW view_3_tab1_750

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab2_750 AS SELECT pk, col0 FROM tab2 WHERE col3 < 5975

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

statement ok
CREATE VIEW view_3_tab2_750 AS SELECT pk FROM view_1_tab2_750

query II rowsort label-1200-1
SELECT pk, col0 FROM tab2 WHERE col3 < 5975
----
1214 values hashing to c495ebedaf0862549320fc1cbd09b1b0

query II rowsort label-1200-2
SELECT pk, col0 FROM tab2 WHERE NOT (col3 < 5975)
----
786 values hashing to 7cbc943e0a9e588d9f3275294793f94c

query II rowsort label-1200-1
SELECT pk, col0 FROM view_1_tab2_750
----
1214 values hashing to c495ebedaf0862549320fc1cbd09b1b0

query II rowsort label-1200-2
SELECT pk, col0 FROM view_2_tab2_750
----
786 values hashing to 7cbc943e0a9e588d9f3275294793f94c

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 < 5975 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col3 < 5975)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_750 UNION ALL SELECT pk, col0 FROM view_2_tab2_750
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 < 5975 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col3 < 5975)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_750 UNION SELECT pk, col0 FROM view_2_tab2_750
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-1200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col3 < 5975 ) AS tab2_750
----
607 values hashing to acb1fe188fac9a20c902bd646089a342

query I rowsort label-1200-3
SELECT * FROM view_3_tab2_750
----
607 values hashing to acb1fe188fac9a20c902bd646089a342

query I rowsort label-1200-3
SELECT pk FROM tab2 WHERE col3 < 5975
----
607 values hashing to acb1fe188fac9a20c902bd646089a342

statement ok
DROP VIEW view_1_tab2_750

statement ok
DROP VIEW view_2_tab2_750

statement ok
DROP VIEW view_3_tab2_750

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab3_750 AS SELECT pk, col0 FROM tab3 WHERE col3 < 5975

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

statement ok
CREATE VIEW view_3_tab3_750 AS SELECT pk FROM view_1_tab3_750

query II rowsort label-1200-1
SELECT pk, col0 FROM tab3 WHERE col3 < 5975
----
1214 values hashing to c495ebedaf0862549320fc1cbd09b1b0

query II rowsort label-1200-2
SELECT pk, col0 FROM tab3 WHERE NOT (col3 < 5975)
----
786 values hashing to 7cbc943e0a9e588d9f3275294793f94c

query II rowsort label-1200-1
SELECT pk, col0 FROM view_1_tab3_750
----
1214 values hashing to c495ebedaf0862549320fc1cbd09b1b0

query II rowsort label-1200-2
SELECT pk, col0 FROM view_2_tab3_750
----
786 values hashing to 7cbc943e0a9e588d9f3275294793f94c

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 < 5975 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col3 < 5975)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_750 UNION ALL SELECT pk, col0 FROM view_2_tab3_750
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 < 5975 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col3 < 5975)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_750 UNION SELECT pk, col0 FROM view_2_tab3_750
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-1200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col3 < 5975 ) AS tab3_750
----
607 values hashing to acb1fe188fac9a20c902bd646089a342

query I rowsort label-1200-3
SELECT * FROM view_3_tab3_750
----
607 values hashing to acb1fe188fac9a20c902bd646089a342

query I rowsort label-1200-3
SELECT pk FROM tab3 WHERE col3 < 5975
----
607 values hashing to acb1fe188fac9a20c902bd646089a342

statement ok
DROP VIEW view_1_tab3_750

statement ok
DROP VIEW view_2_tab3_750

statement ok
DROP VIEW view_3_tab3_750

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab4_750 AS SELECT pk, col0 FROM tab4 WHERE col3 < 5975

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

statement ok
CREATE VIEW view_3_tab4_750 AS SELECT pk FROM view_1_tab4_750

query II rowsort label-1200-1
SELECT pk, col0 FROM tab4 WHERE col3 < 5975
----
1214 values hashing to c495ebedaf0862549320fc1cbd09b1b0

query II rowsort label-1200-2
SELECT pk, col0 FROM tab4 WHERE NOT (col3 < 5975)
----
786 values hashing to 7cbc943e0a9e588d9f3275294793f94c

query II rowsort label-1200-1
SELECT pk, col0 FROM view_1_tab4_750
----
1214 values hashing to c495ebedaf0862549320fc1cbd09b1b0

query II rowsort label-1200-2
SELECT pk, col0 FROM view_2_tab4_750
----
786 values hashing to 7cbc943e0a9e588d9f3275294793f94c

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 < 5975 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col3 < 5975)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_750 UNION ALL SELECT pk, col0 FROM view_2_tab4_750
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 < 5975 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col3 < 5975)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_750 UNION SELECT pk, col0 FROM view_2_tab4_750
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-1200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col3 < 5975 ) AS tab4_750
----
607 values hashing to acb1fe188fac9a20c902bd646089a342

query I rowsort label-1200-3
SELECT * FROM view_3_tab4_750
----
607 values hashing to acb1fe188fac9a20c902bd646089a342

query I rowsort label-1200-3
SELECT pk FROM tab4 WHERE col3 < 5975
----
607 values hashing to acb1fe188fac9a20c902bd646089a342

statement ok
DROP VIEW view_1_tab4_750

statement ok
DROP VIEW view_2_tab4_750

statement ok
DROP VIEW view_3_tab4_750

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab0_751 AS SELECT pk, col0 FROM tab0 WHERE col0 < 5906 OR (col3 = 8656 AND col1 < 6783.22) OR col4 < 1339.72

statement ok
CREATE VIEW view_2_tab0_751 AS SELECT pk, col0 FROM tab0 WHERE NOT (col0 < 5906 OR (col3 = 8656 AND col1 < 6783.22) OR col4 < 1339.72)

statement ok
CREATE VIEW view_3_tab0_751 AS SELECT pk FROM view_1_tab0_751

query II rowsort label-1300-1
SELECT pk, col0 FROM tab0 WHERE col0 < 5906 OR (col3 = 8656 AND col1 < 6783.22) OR col4 < 1339.72
----
1290 values hashing to d826278e75ce288cf40728227119dad0

query II rowsort label-1300-2
SELECT pk, col0 FROM tab0 WHERE NOT (col0 < 5906 OR (col3 = 8656 AND col1 < 6783.22) OR col4 < 1339.72)
----
710 values hashing to e3b23937f7a8c586b22496328dc56d5b

query II rowsort label-1300-1
SELECT pk, col0 FROM view_1_tab0_751
----
1290 values hashing to d826278e75ce288cf40728227119dad0

query II rowsort label-1300-2
SELECT pk, col0 FROM view_2_tab0_751
----
710 values hashing to e3b23937f7a8c586b22496328dc56d5b

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col0 < 5906 OR (col3 = 8656 AND col1 < 6783.22) OR col4 < 1339.72 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col0 < 5906 OR (col3 = 8656 AND col1 < 6783.22) OR col4 < 1339.72)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_751 UNION ALL SELECT pk, col0 FROM view_2_tab0_751
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col0 < 5906 OR (col3 = 8656 AND col1 < 6783.22) OR col4 < 1339.72 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col0 < 5906 OR (col3 = 8656 AND col1 < 6783.22) OR col4 < 1339.72)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_751 UNION SELECT pk, col0 FROM view_2_tab0_751
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-1300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col0 < 5906 OR (col3 = 8656 AND col1 < 6783.22) OR col4 < 1339.72 ) AS tab0_751
----
645 values hashing to ca566e0de2d86bc37af7508c97162d17

query I rowsort label-1300-3
SELECT * FROM view_3_tab0_751
----
645 values hashing to ca566e0de2d86bc37af7508c97162d17

query I rowsort label-1300-3
SELECT pk FROM tab0 WHERE col0 < 5906 OR (col3 = 8656 AND col1 < 6783.22) OR col4 < 1339.72
----
645 values hashing to ca566e0de2d86bc37af7508c97162d17

statement ok
DROP VIEW view_1_tab0_751

statement ok
DROP VIEW view_2_tab0_751

statement ok
DROP VIEW view_3_tab0_751

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab1_751 AS SELECT pk, col0 FROM tab1 WHERE col0 < 5906 OR (col3 = 8656 AND col1 < 6783.22) OR col4 < 1339.72

statement ok
CREATE VIEW view_2_tab1_751 AS SELECT pk, col0 FROM tab1 WHERE NOT (col0 < 5906 OR (col3 = 8656 AND col1 < 6783.22) OR col4 < 1339.72)

statement ok
CREATE VIEW view_3_tab1_751 AS SELECT pk FROM view_1_tab1_751

query II rowsort label-1300-1
SELECT pk, col0 FROM tab1 WHERE col0 < 5906 OR (col3 = 8656 AND col1 < 6783.22) OR col4 < 1339.72
----
1290 values hashing to d826278e75ce288cf40728227119dad0

query II rowsort label-1300-2
SELECT pk, col0 FROM tab1 WHERE NOT (col0 < 5906 OR (col3 = 8656 AND col1 < 6783.22) OR col4 < 1339.72)
----
710 values hashing to e3b23937f7a8c586b22496328dc56d5b

query II rowsort label-1300-1
SELECT pk, col0 FROM view_1_tab1_751
----
1290 values hashing to d826278e75ce288cf40728227119dad0

query II rowsort label-1300-2
SELECT pk, col0 FROM view_2_tab1_751
----
710 values hashing to e3b23937f7a8c586b22496328dc56d5b

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col0 < 5906 OR (col3 = 8656 AND col1 < 6783.22) OR col4 < 1339.72 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col0 < 5906 OR (col3 = 8656 AND col1 < 6783.22) OR col4 < 1339.72)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_751 UNION ALL SELECT pk, col0 FROM view_2_tab1_751
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col0 < 5906 OR (col3 = 8656 AND col1 < 6783.22) OR col4 < 1339.72 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col0 < 5906 OR (col3 = 8656 AND col1 < 6783.22) OR col4 < 1339.72)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_751 UNION SELECT pk, col0 FROM view_2_tab1_751
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-1300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col0 < 5906 OR (col3 = 8656 AND col1 < 6783.22) OR col4 < 1339.72 ) AS tab1_751
----
645 values hashing to ca566e0de2d86bc37af7508c97162d17

query I rowsort label-1300-3
SELECT * FROM view_3_tab1_751
----
645 values hashing to ca566e0de2d86bc37af7508c97162d17

query I rowsort label-1300-3
SELECT pk FROM tab1 WHERE col0 < 5906 OR (col3 = 8656 AND col1 < 6783.22) OR col4 < 1339.72
----
645 values hashing to ca566e0de2d86bc37af7508c97162d17

statement ok
DROP VIEW view_1_tab1_751

statement ok
DROP VIEW view_2_tab1_751

statement ok
DROP VIEW view_3_tab1_751

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab2_751 AS SELECT pk, col0 FROM tab2 WHERE col0 < 5906 OR (col3 = 8656 AND col1 < 6783.22) OR col4 < 1339.72

statement ok
CREATE VIEW view_2_tab2_751 AS SELECT pk, col0 FROM tab2 WHERE NOT (col0 < 5906 OR (col3 = 8656 AND col1 < 6783.22) OR col4 < 1339.72)

statement ok
CREATE VIEW view_3_tab2_751 AS SELECT pk FROM view_1_tab2_751

query II rowsort label-1300-1
SELECT pk, col0 FROM tab2 WHERE col0 < 5906 OR (col3 = 8656 AND col1 < 6783.22) OR col4 < 1339.72
----
1290 values hashing to d826278e75ce288cf40728227119dad0

query II rowsort label-1300-2
SELECT pk, col0 FROM tab2 WHERE NOT (col0 < 5906 OR (col3 = 8656 AND col1 < 6783.22) OR col4 < 1339.72)
----
710 values hashing to e3b23937f7a8c586b22496328dc56d5b

query II rowsort label-1300-1
SELECT pk, col0 FROM view_1_tab2_751
----
1290 values hashing to d826278e75ce288cf40728227119dad0

query II rowsort label-1300-2
SELECT pk, col0 FROM view_2_tab2_751
----
710 values hashing to e3b23937f7a8c586b22496328dc56d5b

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col0 < 5906 OR (col3 = 8656 AND col1 < 6783.22) OR col4 < 1339.72 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col0 < 5906 OR (col3 = 8656 AND col1 < 6783.22) OR col4 < 1339.72)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_751 UNION ALL SELECT pk, col0 FROM view_2_tab2_751
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col0 < 5906 OR (col3 = 8656 AND col1 < 6783.22) OR col4 < 1339.72 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col0 < 5906 OR (col3 = 8656 AND col1 < 6783.22) OR col4 < 1339.72)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_751 UNION SELECT pk, col0 FROM view_2_tab2_751
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-1300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col0 < 5906 OR (col3 = 8656 AND col1 < 6783.22) OR col4 < 1339.72 ) AS tab2_751
----
645 values hashing to ca566e0de2d86bc37af7508c97162d17

query I rowsort label-1300-3
SELECT * FROM view_3_tab2_751
----
645 values hashing to ca566e0de2d86bc37af7508c97162d17

query I rowsort label-1300-3
SELECT pk FROM tab2 WHERE col0 < 5906 OR (col3 = 8656 AND col1 < 6783.22) OR col4 < 1339.72
----
645 values hashing to ca566e0de2d86bc37af7508c97162d17

statement ok
DROP VIEW view_1_tab2_751

statement ok
DROP VIEW view_2_tab2_751

statement ok
DROP VIEW view_3_tab2_751

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab3_751 AS SELECT pk, col0 FROM tab3 WHERE col0 < 5906 OR (col3 = 8656 AND col1 < 6783.22) OR col4 < 1339.72

statement ok
CREATE VIEW view_2_tab3_751 AS SELECT pk, col0 FROM tab3 WHERE NOT (col0 < 5906 OR (col3 = 8656 AND col1 < 6783.22) OR col4 < 1339.72)

statement ok
CREATE VIEW view_3_tab3_751 AS SELECT pk FROM view_1_tab3_751

query II rowsort label-1300-1
SELECT pk, col0 FROM tab3 WHERE col0 < 5906 OR (col3 = 8656 AND col1 < 6783.22) OR col4 < 1339.72
----
1290 values hashing to d826278e75ce288cf40728227119dad0

query II rowsort label-1300-2
SELECT pk, col0 FROM tab3 WHERE NOT (col0 < 5906 OR (col3 = 8656 AND col1 < 6783.22) OR col4 < 1339.72)
----
710 values hashing to e3b23937f7a8c586b22496328dc56d5b

query II rowsort label-1300-1
SELECT pk, col0 FROM view_1_tab3_751
----
1290 values hashing to d826278e75ce288cf40728227119dad0

query II rowsort label-1300-2
SELECT pk, col0 FROM view_2_tab3_751
----
710 values hashing to e3b23937f7a8c586b22496328dc56d5b

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col0 < 5906 OR (col3 = 8656 AND col1 < 6783.22) OR col4 < 1339.72 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col0 < 5906 OR (col3 = 8656 AND col1 < 6783.22) OR col4 < 1339.72)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_751 UNION ALL SELECT pk, col0 FROM view_2_tab3_751
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col0 < 5906 OR (col3 = 8656 AND col1 < 6783.22) OR col4 < 1339.72 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col0 < 5906 OR (col3 = 8656 AND col1 < 6783.22) OR col4 < 1339.72)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_751 UNION SELECT pk, col0 FROM view_2_tab3_751
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-1300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col0 < 5906 OR (col3 = 8656 AND col1 < 6783.22) OR col4 < 1339.72 ) AS tab3_751
----
645 values hashing to ca566e0de2d86bc37af7508c97162d17

query I rowsort label-1300-3
SELECT * FROM view_3_tab3_751
----
645 values hashing to ca566e0de2d86bc37af7508c97162d17

query I rowsort label-1300-3
SELECT pk FROM tab3 WHERE col0 < 5906 OR (col3 = 8656 AND col1 < 6783.22) OR col4 < 1339.72
----
645 values hashing to ca566e0de2d86bc37af7508c97162d17

statement ok
DROP VIEW view_1_tab3_751

statement ok
DROP VIEW view_2_tab3_751

statement ok
DROP VIEW view_3_tab3_751

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab4_751 AS SELECT pk, col0 FROM tab4 WHERE col0 < 5906 OR (col3 = 8656 AND col1 < 6783.22) OR col4 < 1339.72

statement ok
CREATE VIEW view_2_tab4_751 AS SELECT pk, col0 FROM tab4 WHERE NOT (col0 < 5906 OR (col3 = 8656 AND col1 < 6783.22) OR col4 < 1339.72)

statement ok
CREATE VIEW view_3_tab4_751 AS SELECT pk FROM view_1_tab4_751

query II rowsort label-1300-1
SELECT pk, col0 FROM tab4 WHERE col0 < 5906 OR (col3 = 8656 AND col1 < 6783.22) OR col4 < 1339.72
----
1290 values hashing to d826278e75ce288cf40728227119dad0

query II rowsort label-1300-2
SELECT pk, col0 FROM tab4 WHERE NOT (col0 < 5906 OR (col3 = 8656 AND col1 < 6783.22) OR col4 < 1339.72)
----
710 values hashing to e3b23937f7a8c586b22496328dc56d5b

query II rowsort label-1300-1
SELECT pk, col0 FROM view_1_tab4_751
----
1290 values hashing to d826278e75ce288cf40728227119dad0

query II rowsort label-1300-2
SELECT pk, col0 FROM view_2_tab4_751
----
710 values hashing to e3b23937f7a8c586b22496328dc56d5b

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col0 < 5906 OR (col3 = 8656 AND col1 < 6783.22) OR col4 < 1339.72 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col0 < 5906 OR (col3 = 8656 AND col1 < 6783.22) OR col4 < 1339.72)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_751 UNION ALL SELECT pk, col0 FROM view_2_tab4_751
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col0 < 5906 OR (col3 = 8656 AND col1 < 6783.22) OR col4 < 1339.72 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col0 < 5906 OR (col3 = 8656 AND col1 < 6783.22) OR col4 < 1339.72)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_751 UNION SELECT pk, col0 FROM view_2_tab4_751
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-1300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col0 < 5906 OR (col3 = 8656 AND col1 < 6783.22) OR col4 < 1339.72 ) AS tab4_751
----
645 values hashing to ca566e0de2d86bc37af7508c97162d17

query I rowsort label-1300-3
SELECT * FROM view_3_tab4_751
----
645 values hashing to ca566e0de2d86bc37af7508c97162d17

query I rowsort label-1300-3
SELECT pk FROM tab4 WHERE col0 < 5906 OR (col3 = 8656 AND col1 < 6783.22) OR col4 < 1339.72
----
645 values hashing to ca566e0de2d86bc37af7508c97162d17

statement ok
DROP VIEW view_1_tab4_751

statement ok
DROP VIEW view_2_tab4_751

statement ok
DROP VIEW view_3_tab4_751

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab0_752 AS SELECT pk, col0 FROM tab0 WHERE col3 = 7888

statement ok
CREATE VIEW view_2_tab0_752 AS SELECT pk, col0 FROM tab0 WHERE NOT (col3 = 7888)

statement ok
CREATE VIEW view_3_tab0_752 AS SELECT pk FROM view_1_tab0_752

query II rowsort label-1400-1
SELECT pk, col0 FROM tab0 WHERE col3 = 7888
----

query II rowsort label-1400-2
SELECT pk, col0 FROM tab0 WHERE NOT (col3 = 7888)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-1400-1
SELECT pk, col0 FROM view_1_tab0_752
----

query II rowsort label-1400-2
SELECT pk, col0 FROM view_2_tab0_752
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 = 7888 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col3 = 7888)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_752 UNION ALL SELECT pk, col0 FROM view_2_tab0_752
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 = 7888 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col3 = 7888)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_752 UNION SELECT pk, col0 FROM view_2_tab0_752
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-1400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col3 = 7888 ) AS tab0_752
----

query I rowsort label-1400-3
SELECT * FROM view_3_tab0_752
----

query I rowsort label-1400-3
SELECT pk FROM tab0 WHERE col3 = 7888
----

statement ok
DROP VIEW view_1_tab0_752

statement ok
DROP VIEW view_2_tab0_752

statement ok
DROP VIEW view_3_tab0_752

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab1_752 AS SELECT pk, col0 FROM tab1 WHERE col3 = 7888

statement ok
CREATE VIEW view_2_tab1_752 AS SELECT pk, col0 FROM tab1 WHERE NOT (col3 = 7888)

statement ok
CREATE VIEW view_3_tab1_752 AS SELECT pk FROM view_1_tab1_752

query II rowsort label-1400-1
SELECT pk, col0 FROM tab1 WHERE col3 = 7888
----

query II rowsort label-1400-2
SELECT pk, col0 FROM tab1 WHERE NOT (col3 = 7888)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-1400-1
SELECT pk, col0 FROM view_1_tab1_752
----

query II rowsort label-1400-2
SELECT pk, col0 FROM view_2_tab1_752
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 = 7888 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col3 = 7888)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_752 UNION ALL SELECT pk, col0 FROM view_2_tab1_752
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 = 7888 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col3 = 7888)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_752 UNION SELECT pk, col0 FROM view_2_tab1_752
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-1400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col3 = 7888 ) AS tab1_752
----

query I rowsort label-1400-3
SELECT * FROM view_3_tab1_752
----

query I rowsort label-1400-3
SELECT pk FROM tab1 WHERE col3 = 7888
----

statement ok
DROP VIEW view_1_tab1_752

statement ok
DROP VIEW view_2_tab1_752

statement ok
DROP VIEW view_3_tab1_752

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab2_752 AS SELECT pk, col0 FROM tab2 WHERE col3 = 7888

statement ok
CREATE VIEW view_2_tab2_752 AS SELECT pk, col0 FROM tab2 WHERE NOT (col3 = 7888)

statement ok
CREATE VIEW view_3_tab2_752 AS SELECT pk FROM view_1_tab2_752

query II rowsort label-1400-1
SELECT pk, col0 FROM tab2 WHERE col3 = 7888
----

query II rowsort label-1400-2
SELECT pk, col0 FROM tab2 WHERE NOT (col3 = 7888)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-1400-1
SELECT pk, col0 FROM view_1_tab2_752
----

query II rowsort label-1400-2
SELECT pk, col0 FROM view_2_tab2_752
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 = 7888 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col3 = 7888)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_752 UNION ALL SELECT pk, col0 FROM view_2_tab2_752
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 = 7888 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col3 = 7888)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_752 UNION SELECT pk, col0 FROM view_2_tab2_752
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-1400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col3 = 7888 ) AS tab2_752
----

query I rowsort label-1400-3
SELECT * FROM view_3_tab2_752
----

query I rowsort label-1400-3
SELECT pk FROM tab2 WHERE col3 = 7888
----

statement ok
DROP VIEW view_1_tab2_752

statement ok
DROP VIEW view_2_tab2_752

statement ok
DROP VIEW view_3_tab2_752

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab3_752 AS SELECT pk, col0 FROM tab3 WHERE col3 = 7888

statement ok
CREATE VIEW view_2_tab3_752 AS SELECT pk, col0 FROM tab3 WHERE NOT (col3 = 7888)

statement ok
CREATE VIEW view_3_tab3_752 AS SELECT pk FROM view_1_tab3_752

query II rowsort label-1400-1
SELECT pk, col0 FROM tab3 WHERE col3 = 7888
----

query II rowsort label-1400-2
SELECT pk, col0 FROM tab3 WHERE NOT (col3 = 7888)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-1400-1
SELECT pk, col0 FROM view_1_tab3_752
----

query II rowsort label-1400-2
SELECT pk, col0 FROM view_2_tab3_752
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 = 7888 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col3 = 7888)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_752 UNION ALL SELECT pk, col0 FROM view_2_tab3_752
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 = 7888 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col3 = 7888)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_752 UNION SELECT pk, col0 FROM view_2_tab3_752
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-1400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col3 = 7888 ) AS tab3_752
----

query I rowsort label-1400-3
SELECT * FROM view_3_tab3_752
----

query I rowsort label-1400-3
SELECT pk FROM tab3 WHERE col3 = 7888
----

statement ok
DROP VIEW view_1_tab3_752

statement ok
DROP VIEW view_2_tab3_752

statement ok
DROP VIEW view_3_tab3_752

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab4_752 AS SELECT pk, col0 FROM tab4 WHERE col3 = 7888

statement ok
CREATE VIEW view_2_tab4_752 AS SELECT pk, col0 FROM tab4 WHERE NOT (col3 = 7888)

statement ok
CREATE VIEW view_3_tab4_752 AS SELECT pk FROM view_1_tab4_752

query II rowsort label-1400-1
SELECT pk, col0 FROM tab4 WHERE col3 = 7888
----

query II rowsort label-1400-2
SELECT pk, col0 FROM tab4 WHERE NOT (col3 = 7888)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-1400-1
SELECT pk, col0 FROM view_1_tab4_752
----

query II rowsort label-1400-2
SELECT pk, col0 FROM view_2_tab4_752
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 = 7888 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col3 = 7888)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_752 UNION ALL SELECT pk, col0 FROM view_2_tab4_752
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 = 7888 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col3 = 7888)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_752 UNION SELECT pk, col0 FROM view_2_tab4_752
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-1400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col3 = 7888 ) AS tab4_752
----

query I rowsort label-1400-3
SELECT * FROM view_3_tab4_752
----

query I rowsort label-1400-3
SELECT pk FROM tab4 WHERE col3 = 7888
----

statement ok
DROP VIEW view_1_tab4_752

statement ok
DROP VIEW view_2_tab4_752

statement ok
DROP VIEW view_3_tab4_752

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab0_753 AS SELECT pk, col0 FROM tab0 WHERE (((((col0 < 94)))))

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

statement ok
CREATE VIEW view_3_tab0_753 AS SELECT pk FROM view_1_tab0_753

query II rowsort label-1500-1
SELECT pk, col0 FROM tab0 WHERE (((((col0 < 94)))))
----
20 values hashing to 7000317cbeb45d6624893fa1afcba55b

query II rowsort label-1500-2
SELECT pk, col0 FROM tab0 WHERE NOT ((((((col0 < 94))))))
----
1980 values hashing to 6fc81da40c57060d00fa46964f967d57

query II rowsort label-1500-1
SELECT pk, col0 FROM view_1_tab0_753
----
20 values hashing to 7000317cbeb45d6624893fa1afcba55b

query II rowsort label-1500-2
SELECT pk, col0 FROM view_2_tab0_753
----
1980 values hashing to 6fc81da40c57060d00fa46964f967d57

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (((((col0 < 94))))) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT ((((((col0 < 94))))))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_753 UNION ALL SELECT pk, col0 FROM view_2_tab0_753
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (((((col0 < 94))))) UNION SELECT pk, col0 FROM tab0 WHERE NOT ((((((col0 < 94))))))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_753 UNION SELECT pk, col0 FROM view_2_tab0_753
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-1500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE (((((col0 < 94))))) ) AS tab0_753
----
10 values hashing to 414be71578cbc70a83b0080cae014a54

query I rowsort label-1500-3
SELECT * FROM view_3_tab0_753
----
10 values hashing to 414be71578cbc70a83b0080cae014a54

query I rowsort label-1500-3
SELECT pk FROM tab0 WHERE (((((col0 < 94)))))
----
10 values hashing to 414be71578cbc70a83b0080cae014a54

statement ok
DROP VIEW view_1_tab0_753

statement ok
DROP VIEW view_2_tab0_753

statement ok
DROP VIEW view_3_tab0_753

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab1_753 AS SELECT pk, col0 FROM tab1 WHERE (((((col0 < 94)))))

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

statement ok
CREATE VIEW view_3_tab1_753 AS SELECT pk FROM view_1_tab1_753

query II rowsort label-1500-1
SELECT pk, col0 FROM tab1 WHERE (((((col0 < 94)))))
----
20 values hashing to 7000317cbeb45d6624893fa1afcba55b

query II rowsort label-1500-2
SELECT pk, col0 FROM tab1 WHERE NOT ((((((col0 < 94))))))
----
1980 values hashing to 6fc81da40c57060d00fa46964f967d57

query II rowsort label-1500-1
SELECT pk, col0 FROM view_1_tab1_753
----
20 values hashing to 7000317cbeb45d6624893fa1afcba55b

query II rowsort label-1500-2
SELECT pk, col0 FROM view_2_tab1_753
----
1980 values hashing to 6fc81da40c57060d00fa46964f967d57

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (((((col0 < 94))))) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT ((((((col0 < 94))))))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_753 UNION ALL SELECT pk, col0 FROM view_2_tab1_753
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (((((col0 < 94))))) UNION SELECT pk, col0 FROM tab1 WHERE NOT ((((((col0 < 94))))))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_753 UNION SELECT pk, col0 FROM view_2_tab1_753
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-1500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE (((((col0 < 94))))) ) AS tab1_753
----
10 values hashing to 414be71578cbc70a83b0080cae014a54

query I rowsort label-1500-3
SELECT * FROM view_3_tab1_753
----
10 values hashing to 414be71578cbc70a83b0080cae014a54

query I rowsort label-1500-3
SELECT pk FROM tab1 WHERE (((((col0 < 94)))))
----
10 values hashing to 414be71578cbc70a83b0080cae014a54

statement ok
DROP VIEW view_1_tab1_753

statement ok
DROP VIEW view_2_tab1_753

statement ok
DROP VIEW view_3_tab1_753

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab2_753 AS SELECT pk, col0 FROM tab2 WHERE (((((col0 < 94)))))

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

statement ok
CREATE VIEW view_3_tab2_753 AS SELECT pk FROM view_1_tab2_753

query II rowsort label-1500-1
SELECT pk, col0 FROM tab2 WHERE (((((col0 < 94)))))
----
20 values hashing to 7000317cbeb45d6624893fa1afcba55b

query II rowsort label-1500-2
SELECT pk, col0 FROM tab2 WHERE NOT ((((((col0 < 94))))))
----
1980 values hashing to 6fc81da40c57060d00fa46964f967d57

query II rowsort label-1500-1
SELECT pk, col0 FROM view_1_tab2_753
----
20 values hashing to 7000317cbeb45d6624893fa1afcba55b

query II rowsort label-1500-2
SELECT pk, col0 FROM view_2_tab2_753
----
1980 values hashing to 6fc81da40c57060d00fa46964f967d57

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (((((col0 < 94))))) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT ((((((col0 < 94))))))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_753 UNION ALL SELECT pk, col0 FROM view_2_tab2_753
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (((((col0 < 94))))) UNION SELECT pk, col0 FROM tab2 WHERE NOT ((((((col0 < 94))))))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_753 UNION SELECT pk, col0 FROM view_2_tab2_753
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-1500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE (((((col0 < 94))))) ) AS tab2_753
----
10 values hashing to 414be71578cbc70a83b0080cae014a54

query I rowsort label-1500-3
SELECT * FROM view_3_tab2_753
----
10 values hashing to 414be71578cbc70a83b0080cae014a54

query I rowsort label-1500-3
SELECT pk FROM tab2 WHERE (((((col0 < 94)))))
----
10 values hashing to 414be71578cbc70a83b0080cae014a54

statement ok
DROP VIEW view_1_tab2_753

statement ok
DROP VIEW view_2_tab2_753

statement ok
DROP VIEW view_3_tab2_753

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab3_753 AS SELECT pk, col0 FROM tab3 WHERE (((((col0 < 94)))))

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

statement ok
CREATE VIEW view_3_tab3_753 AS SELECT pk FROM view_1_tab3_753

query II rowsort label-1500-1
SELECT pk, col0 FROM tab3 WHERE (((((col0 < 94)))))
----
20 values hashing to 7000317cbeb45d6624893fa1afcba55b

query II rowsort label-1500-2
SELECT pk, col0 FROM tab3 WHERE NOT ((((((col0 < 94))))))
----
1980 values hashing to 6fc81da40c57060d00fa46964f967d57

query II rowsort label-1500-1
SELECT pk, col0 FROM view_1_tab3_753
----
20 values hashing to 7000317cbeb45d6624893fa1afcba55b

query II rowsort label-1500-2
SELECT pk, col0 FROM view_2_tab3_753
----
1980 values hashing to 6fc81da40c57060d00fa46964f967d57

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (((((col0 < 94))))) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT ((((((col0 < 94))))))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_753 UNION ALL SELECT pk, col0 FROM view_2_tab3_753
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (((((col0 < 94))))) UNION SELECT pk, col0 FROM tab3 WHERE NOT ((((((col0 < 94))))))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_753 UNION SELECT pk, col0 FROM view_2_tab3_753
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-1500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE (((((col0 < 94))))) ) AS tab3_753
----
10 values hashing to 414be71578cbc70a83b0080cae014a54

query I rowsort label-1500-3
SELECT * FROM view_3_tab3_753
----
10 values hashing to 414be71578cbc70a83b0080cae014a54

query I rowsort label-1500-3
SELECT pk FROM tab3 WHERE (((((col0 < 94)))))
----
10 values hashing to 414be71578cbc70a83b0080cae014a54

statement ok
DROP VIEW view_1_tab3_753

statement ok
DROP VIEW view_2_tab3_753

statement ok
DROP VIEW view_3_tab3_753

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab4_753 AS SELECT pk, col0 FROM tab4 WHERE (((((col0 < 94)))))

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

statement ok
CREATE VIEW view_3_tab4_753 AS SELECT pk FROM view_1_tab4_753

query II rowsort label-1500-1
SELECT pk, col0 FROM tab4 WHERE (((((col0 < 94)))))
----
20 values hashing to 7000317cbeb45d6624893fa1afcba55b

query II rowsort label-1500-2
SELECT pk, col0 FROM tab4 WHERE NOT ((((((col0 < 94))))))
----
1980 values hashing to 6fc81da40c57060d00fa46964f967d57

query II rowsort label-1500-1
SELECT pk, col0 FROM view_1_tab4_753
----
20 values hashing to 7000317cbeb45d6624893fa1afcba55b

query II rowsort label-1500-2
SELECT pk, col0 FROM view_2_tab4_753
----
1980 values hashing to 6fc81da40c57060d00fa46964f967d57

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (((((col0 < 94))))) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT ((((((col0 < 94))))))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_753 UNION ALL SELECT pk, col0 FROM view_2_tab4_753
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (((((col0 < 94))))) UNION SELECT pk, col0 FROM tab4 WHERE NOT ((((((col0 < 94))))))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_753 UNION SELECT pk, col0 FROM view_2_tab4_753
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-1500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE (((((col0 < 94))))) ) AS tab4_753
----
10 values hashing to 414be71578cbc70a83b0080cae014a54

query I rowsort label-1500-3
SELECT * FROM view_3_tab4_753
----
10 values hashing to 414be71578cbc70a83b0080cae014a54

query I rowsort label-1500-3
SELECT pk FROM tab4 WHERE (((((col0 < 94)))))
----
10 values hashing to 414be71578cbc70a83b0080cae014a54

statement ok
DROP VIEW view_1_tab4_753

statement ok
DROP VIEW view_2_tab4_753

statement ok
DROP VIEW view_3_tab4_753

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab0_754 AS SELECT pk, col0 FROM tab0 WHERE (col3 = 3650) AND col3 >= 6449 AND (col0 >= 1460) AND col3 > 4665 OR ((col3 <= 5088)) OR col0 IS NULL

statement ok
CREATE VIEW view_2_tab0_754 AS SELECT pk, col0 FROM tab0 WHERE NOT ((col3 = 3650) AND col3 >= 6449 AND (col0 >= 1460) AND col3 > 4665 OR ((col3 <= 5088)) OR col0 IS NULL)

statement ok
CREATE VIEW view_3_tab0_754 AS SELECT pk FROM view_1_tab0_754

query II rowsort label-1600-1
SELECT pk, col0 FROM tab0 WHERE (col3 = 3650) AND col3 >= 6449 AND (col0 >= 1460) AND col3 > 4665 OR ((col3 <= 5088)) OR col0 IS NULL
----
1014 values hashing to bb0214bd46e8b9644082c195ced868c2

query II rowsort label-1600-2
SELECT pk, col0 FROM tab0 WHERE NOT ((col3 = 3650) AND col3 >= 6449 AND (col0 >= 1460) AND col3 > 4665 OR ((col3 <= 5088)) OR col0 IS NULL)
----
986 values hashing to 90fc44b8fcc1e3b781ab6f17300f8cd0

query II rowsort label-1600-1
SELECT pk, col0 FROM view_1_tab0_754
----
1014 values hashing to bb0214bd46e8b9644082c195ced868c2

query II rowsort label-1600-2
SELECT pk, col0 FROM view_2_tab0_754
----
986 values hashing to 90fc44b8fcc1e3b781ab6f17300f8cd0

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col3 = 3650) AND col3 >= 6449 AND (col0 >= 1460) AND col3 > 4665 OR ((col3 <= 5088)) OR col0 IS NULL UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT ((col3 = 3650) AND col3 >= 6449 AND (col0 >= 1460) AND col3 > 4665 OR ((col3 <= 5088)) OR col0 IS NULL)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_754 UNION ALL SELECT pk, col0 FROM view_2_tab0_754
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col3 = 3650) AND col3 >= 6449 AND (col0 >= 1460) AND col3 > 4665 OR ((col3 <= 5088)) OR col0 IS NULL UNION SELECT pk, col0 FROM tab0 WHERE NOT ((col3 = 3650) AND col3 >= 6449 AND (col0 >= 1460) AND col3 > 4665 OR ((col3 <= 5088)) OR col0 IS NULL)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_754 UNION SELECT pk, col0 FROM view_2_tab0_754
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-1600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE (col3 = 3650) AND col3 >= 6449 AND (col0 >= 1460) AND col3 > 4665 OR ((col3 <= 5088)) OR col0 IS NULL ) AS tab0_754
----
507 values hashing to a07ccfeb2a4b707f8da33f8d67f0bfa5

query I rowsort label-1600-3
SELECT * FROM view_3_tab0_754
----
507 values hashing to a07ccfeb2a4b707f8da33f8d67f0bfa5

query I rowsort label-1600-3
SELECT pk FROM tab0 WHERE (col3 = 3650) AND col3 >= 6449 AND (col0 >= 1460) AND col3 > 4665 OR ((col3 <= 5088)) OR col0 IS NULL
----
507 values hashing to a07ccfeb2a4b707f8da33f8d67f0bfa5

statement ok
DROP VIEW view_1_tab0_754

statement ok
DROP VIEW view_2_tab0_754

statement ok
DROP VIEW view_3_tab0_754

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab1_754 AS SELECT pk, col0 FROM tab1 WHERE (col3 = 3650) AND col3 >= 6449 AND (col0 >= 1460) AND col3 > 4665 OR ((col3 <= 5088)) OR col0 IS NULL

statement ok
CREATE VIEW view_2_tab1_754 AS SELECT pk, col0 FROM tab1 WHERE NOT ((col3 = 3650) AND col3 >= 6449 AND (col0 >= 1460) AND col3 > 4665 OR ((col3 <= 5088)) OR col0 IS NULL)

statement ok
CREATE VIEW view_3_tab1_754 AS SELECT pk FROM view_1_tab1_754

query II rowsort label-1600-1
SELECT pk, col0 FROM tab1 WHERE (col3 = 3650) AND col3 >= 6449 AND (col0 >= 1460) AND col3 > 4665 OR ((col3 <= 5088)) OR col0 IS NULL
----
1014 values hashing to bb0214bd46e8b9644082c195ced868c2

query II rowsort label-1600-2
SELECT pk, col0 FROM tab1 WHERE NOT ((col3 = 3650) AND col3 >= 6449 AND (col0 >= 1460) AND col3 > 4665 OR ((col3 <= 5088)) OR col0 IS NULL)
----
986 values hashing to 90fc44b8fcc1e3b781ab6f17300f8cd0

query II rowsort label-1600-1
SELECT pk, col0 FROM view_1_tab1_754
----
1014 values hashing to bb0214bd46e8b9644082c195ced868c2

query II rowsort label-1600-2
SELECT pk, col0 FROM view_2_tab1_754
----
986 values hashing to 90fc44b8fcc1e3b781ab6f17300f8cd0

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col3 = 3650) AND col3 >= 6449 AND (col0 >= 1460) AND col3 > 4665 OR ((col3 <= 5088)) OR col0 IS NULL UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT ((col3 = 3650) AND col3 >= 6449 AND (col0 >= 1460) AND col3 > 4665 OR ((col3 <= 5088)) OR col0 IS NULL)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_754 UNION ALL SELECT pk, col0 FROM view_2_tab1_754
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col3 = 3650) AND col3 >= 6449 AND (col0 >= 1460) AND col3 > 4665 OR ((col3 <= 5088)) OR col0 IS NULL UNION SELECT pk, col0 FROM tab1 WHERE NOT ((col3 = 3650) AND col3 >= 6449 AND (col0 >= 1460) AND col3 > 4665 OR ((col3 <= 5088)) OR col0 IS NULL)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_754 UNION SELECT pk, col0 FROM view_2_tab1_754
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-1600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE (col3 = 3650) AND col3 >= 6449 AND (col0 >= 1460) AND col3 > 4665 OR ((col3 <= 5088)) OR col0 IS NULL ) AS tab1_754
----
507 values hashing to a07ccfeb2a4b707f8da33f8d67f0bfa5

query I rowsort label-1600-3
SELECT * FROM view_3_tab1_754
----
507 values hashing to a07ccfeb2a4b707f8da33f8d67f0bfa5

query I rowsort label-1600-3
SELECT pk FROM tab1 WHERE (col3 = 3650) AND col3 >= 6449 AND (col0 >= 1460) AND col3 > 4665 OR ((col3 <= 5088)) OR col0 IS NULL
----
507 values hashing to a07ccfeb2a4b707f8da33f8d67f0bfa5

statement ok
DROP VIEW view_1_tab1_754

statement ok
DROP VIEW view_2_tab1_754

statement ok
DROP VIEW view_3_tab1_754

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab2_754 AS SELECT pk, col0 FROM tab2 WHERE (col3 = 3650) AND col3 >= 6449 AND (col0 >= 1460) AND col3 > 4665 OR ((col3 <= 5088)) OR col0 IS NULL

statement ok
CREATE VIEW view_2_tab2_754 AS SELECT pk, col0 FROM tab2 WHERE NOT ((col3 = 3650) AND col3 >= 6449 AND (col0 >= 1460) AND col3 > 4665 OR ((col3 <= 5088)) OR col0 IS NULL)

statement ok
CREATE VIEW view_3_tab2_754 AS SELECT pk FROM view_1_tab2_754

query II rowsort label-1600-1
SELECT pk, col0 FROM tab2 WHERE (col3 = 3650) AND col3 >= 6449 AND (col0 >= 1460) AND col3 > 4665 OR ((col3 <= 5088)) OR col0 IS NULL
----
1014 values hashing to bb0214bd46e8b9644082c195ced868c2

query II rowsort label-1600-2
SELECT pk, col0 FROM tab2 WHERE NOT ((col3 = 3650) AND col3 >= 6449 AND (col0 >= 1460) AND col3 > 4665 OR ((col3 <= 5088)) OR col0 IS NULL)
----
986 values hashing to 90fc44b8fcc1e3b781ab6f17300f8cd0

query II rowsort label-1600-1
SELECT pk, col0 FROM view_1_tab2_754
----
1014 values hashing to bb0214bd46e8b9644082c195ced868c2

query II rowsort label-1600-2
SELECT pk, col0 FROM view_2_tab2_754
----
986 values hashing to 90fc44b8fcc1e3b781ab6f17300f8cd0

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col3 = 3650) AND col3 >= 6449 AND (col0 >= 1460) AND col3 > 4665 OR ((col3 <= 5088)) OR col0 IS NULL UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT ((col3 = 3650) AND col3 >= 6449 AND (col0 >= 1460) AND col3 > 4665 OR ((col3 <= 5088)) OR col0 IS NULL)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_754 UNION ALL SELECT pk, col0 FROM view_2_tab2_754
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col3 = 3650) AND col3 >= 6449 AND (col0 >= 1460) AND col3 > 4665 OR ((col3 <= 5088)) OR col0 IS NULL UNION SELECT pk, col0 FROM tab2 WHERE NOT ((col3 = 3650) AND col3 >= 6449 AND (col0 >= 1460) AND col3 > 4665 OR ((col3 <= 5088)) OR col0 IS NULL)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_754 UNION SELECT pk, col0 FROM view_2_tab2_754
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-1600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE (col3 = 3650) AND col3 >= 6449 AND (col0 >= 1460) AND col3 > 4665 OR ((col3 <= 5088)) OR col0 IS NULL ) AS tab2_754
----
507 values hashing to a07ccfeb2a4b707f8da33f8d67f0bfa5

query I rowsort label-1600-3
SELECT * FROM view_3_tab2_754
----
507 values hashing to a07ccfeb2a4b707f8da33f8d67f0bfa5

query I rowsort label-1600-3
SELECT pk FROM tab2 WHERE (col3 = 3650) AND col3 >= 6449 AND (col0 >= 1460) AND col3 > 4665 OR ((col3 <= 5088)) OR col0 IS NULL
----
507 values hashing to a07ccfeb2a4b707f8da33f8d67f0bfa5

statement ok
DROP VIEW view_1_tab2_754

statement ok
DROP VIEW view_2_tab2_754

statement ok
DROP VIEW view_3_tab2_754

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab3_754 AS SELECT pk, col0 FROM tab3 WHERE (col3 = 3650) AND col3 >= 6449 AND (col0 >= 1460) AND col3 > 4665 OR ((col3 <= 5088)) OR col0 IS NULL

statement ok
CREATE VIEW view_2_tab3_754 AS SELECT pk, col0 FROM tab3 WHERE NOT ((col3 = 3650) AND col3 >= 6449 AND (col0 >= 1460) AND col3 > 4665 OR ((col3 <= 5088)) OR col0 IS NULL)

statement ok
CREATE VIEW view_3_tab3_754 AS SELECT pk FROM view_1_tab3_754

query II rowsort label-1600-1
SELECT pk, col0 FROM tab3 WHERE (col3 = 3650) AND col3 >= 6449 AND (col0 >= 1460) AND col3 > 4665 OR ((col3 <= 5088)) OR col0 IS NULL
----
1014 values hashing to bb0214bd46e8b9644082c195ced868c2

query II rowsort label-1600-2
SELECT pk, col0 FROM tab3 WHERE NOT ((col3 = 3650) AND col3 >= 6449 AND (col0 >= 1460) AND col3 > 4665 OR ((col3 <= 5088)) OR col0 IS NULL)
----
986 values hashing to 90fc44b8fcc1e3b781ab6f17300f8cd0

query II rowsort label-1600-1
SELECT pk, col0 FROM view_1_tab3_754
----
1014 values hashing to bb0214bd46e8b9644082c195ced868c2

query II rowsort label-1600-2
SELECT pk, col0 FROM view_2_tab3_754
----
986 values hashing to 90fc44b8fcc1e3b781ab6f17300f8cd0

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col3 = 3650) AND col3 >= 6449 AND (col0 >= 1460) AND col3 > 4665 OR ((col3 <= 5088)) OR col0 IS NULL UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT ((col3 = 3650) AND col3 >= 6449 AND (col0 >= 1460) AND col3 > 4665 OR ((col3 <= 5088)) OR col0 IS NULL)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_754 UNION ALL SELECT pk, col0 FROM view_2_tab3_754
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col3 = 3650) AND col3 >= 6449 AND (col0 >= 1460) AND col3 > 4665 OR ((col3 <= 5088)) OR col0 IS NULL UNION SELECT pk, col0 FROM tab3 WHERE NOT ((col3 = 3650) AND col3 >= 6449 AND (col0 >= 1460) AND col3 > 4665 OR ((col3 <= 5088)) OR col0 IS NULL)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_754 UNION SELECT pk, col0 FROM view_2_tab3_754
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-1600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE (col3 = 3650) AND col3 >= 6449 AND (col0 >= 1460) AND col3 > 4665 OR ((col3 <= 5088)) OR col0 IS NULL ) AS tab3_754
----
507 values hashing to a07ccfeb2a4b707f8da33f8d67f0bfa5

query I rowsort label-1600-3
SELECT * FROM view_3_tab3_754
----
507 values hashing to a07ccfeb2a4b707f8da33f8d67f0bfa5

query I rowsort label-1600-3
SELECT pk FROM tab3 WHERE (col3 = 3650) AND col3 >= 6449 AND (col0 >= 1460) AND col3 > 4665 OR ((col3 <= 5088)) OR col0 IS NULL
----
507 values hashing to a07ccfeb2a4b707f8da33f8d67f0bfa5

statement ok
DROP VIEW view_1_tab3_754

statement ok
DROP VIEW view_2_tab3_754

statement ok
DROP VIEW view_3_tab3_754

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab4_754 AS SELECT pk, col0 FROM tab4 WHERE (col3 = 3650) AND col3 >= 6449 AND (col0 >= 1460) AND col3 > 4665 OR ((col3 <= 5088)) OR col0 IS NULL

statement ok
CREATE VIEW view_2_tab4_754 AS SELECT pk, col0 FROM tab4 WHERE NOT ((col3 = 3650) AND col3 >= 6449 AND (col0 >= 1460) AND col3 > 4665 OR ((col3 <= 5088)) OR col0 IS NULL)

statement ok
CREATE VIEW view_3_tab4_754 AS SELECT pk FROM view_1_tab4_754

query II rowsort label-1600-1
SELECT pk, col0 FROM tab4 WHERE (col3 = 3650) AND col3 >= 6449 AND (col0 >= 1460) AND col3 > 4665 OR ((col3 <= 5088)) OR col0 IS NULL
----
1014 values hashing to bb0214bd46e8b9644082c195ced868c2

query II rowsort label-1600-2
SELECT pk, col0 FROM tab4 WHERE NOT ((col3 = 3650) AND col3 >= 6449 AND (col0 >= 1460) AND col3 > 4665 OR ((col3 <= 5088)) OR col0 IS NULL)
----
986 values hashing to 90fc44b8fcc1e3b781ab6f17300f8cd0

query II rowsort label-1600-1
SELECT pk, col0 FROM view_1_tab4_754
----
1014 values hashing to bb0214bd46e8b9644082c195ced868c2

query II rowsort label-1600-2
SELECT pk, col0 FROM view_2_tab4_754
----
986 values hashing to 90fc44b8fcc1e3b781ab6f17300f8cd0

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col3 = 3650) AND col3 >= 6449 AND (col0 >= 1460) AND col3 > 4665 OR ((col3 <= 5088)) OR col0 IS NULL UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT ((col3 = 3650) AND col3 >= 6449 AND (col0 >= 1460) AND col3 > 4665 OR ((col3 <= 5088)) OR col0 IS NULL)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_754 UNION ALL SELECT pk, col0 FROM view_2_tab4_754
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col3 = 3650) AND col3 >= 6449 AND (col0 >= 1460) AND col3 > 4665 OR ((col3 <= 5088)) OR col0 IS NULL UNION SELECT pk, col0 FROM tab4 WHERE NOT ((col3 = 3650) AND col3 >= 6449 AND (col0 >= 1460) AND col3 > 4665 OR ((col3 <= 5088)) OR col0 IS NULL)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_754 UNION SELECT pk, col0 FROM view_2_tab4_754
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-1600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE (col3 = 3650) AND col3 >= 6449 AND (col0 >= 1460) AND col3 > 4665 OR ((col3 <= 5088)) OR col0 IS NULL ) AS tab4_754
----
507 values hashing to a07ccfeb2a4b707f8da33f8d67f0bfa5

query I rowsort label-1600-3
SELECT * FROM view_3_tab4_754
----
507 values hashing to a07ccfeb2a4b707f8da33f8d67f0bfa5

query I rowsort label-1600-3
SELECT pk FROM tab4 WHERE (col3 = 3650) AND col3 >= 6449 AND (col0 >= 1460) AND col3 > 4665 OR ((col3 <= 5088)) OR col0 IS NULL
----
507 values hashing to a07ccfeb2a4b707f8da33f8d67f0bfa5

statement ok
DROP VIEW view_1_tab4_754

statement ok
DROP VIEW view_2_tab4_754

statement ok
DROP VIEW view_3_tab4_754

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab0_755 AS SELECT pk, col0 FROM tab0 WHERE (col3 > 8994 OR col0 < 6080 AND col4 < 7050.75 AND col0 > 7371)

statement ok
CREATE VIEW view_2_tab0_755 AS SELECT pk, col0 FROM tab0 WHERE NOT ((col3 > 8994 OR col0 < 6080 AND col4 < 7050.75 AND col0 > 7371))

statement ok
CREATE VIEW view_3_tab0_755 AS SELECT pk FROM view_1_tab0_755

query II rowsort label-1700-1
SELECT pk, col0 FROM tab0 WHERE (col3 > 8994 OR col0 < 6080 AND col4 < 7050.75 AND col0 > 7371)
----
204 values hashing to 49d1e649320f419ddb65e45d2f3e6450

query II rowsort label-1700-2
SELECT pk, col0 FROM tab0 WHERE NOT ((col3 > 8994 OR col0 < 6080 AND col4 < 7050.75 AND col0 > 7371))
----
1796 values hashing to 9317fd26043b8951ecb3557eca3fb9e7

query II rowsort label-1700-1
SELECT pk, col0 FROM view_1_tab0_755
----
204 values hashing to 49d1e649320f419ddb65e45d2f3e6450

query II rowsort label-1700-2
SELECT pk, col0 FROM view_2_tab0_755
----
1796 values hashing to 9317fd26043b8951ecb3557eca3fb9e7

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col3 > 8994 OR col0 < 6080 AND col4 < 7050.75 AND col0 > 7371) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT ((col3 > 8994 OR col0 < 6080 AND col4 < 7050.75 AND col0 > 7371))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_755 UNION ALL SELECT pk, col0 FROM view_2_tab0_755
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col3 > 8994 OR col0 < 6080 AND col4 < 7050.75 AND col0 > 7371) UNION SELECT pk, col0 FROM tab0 WHERE NOT ((col3 > 8994 OR col0 < 6080 AND col4 < 7050.75 AND col0 > 7371))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_755 UNION SELECT pk, col0 FROM view_2_tab0_755
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-1700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE (col3 > 8994 OR col0 < 6080 AND col4 < 7050.75 AND col0 > 7371) ) AS tab0_755
----
102 values hashing to d1898529783624a9cb5fc72b00ae1015

query I rowsort label-1700-3
SELECT * FROM view_3_tab0_755
----
102 values hashing to d1898529783624a9cb5fc72b00ae1015

query I rowsort label-1700-3
SELECT pk FROM tab0 WHERE (col3 > 8994 OR col0 < 6080 AND col4 < 7050.75 AND col0 > 7371)
----
102 values hashing to d1898529783624a9cb5fc72b00ae1015

statement ok
DROP VIEW view_1_tab0_755

statement ok
DROP VIEW view_2_tab0_755

statement ok
DROP VIEW view_3_tab0_755

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab1_755 AS SELECT pk, col0 FROM tab1 WHERE (col3 > 8994 OR col0 < 6080 AND col4 < 7050.75 AND col0 > 7371)

statement ok
CREATE VIEW view_2_tab1_755 AS SELECT pk, col0 FROM tab1 WHERE NOT ((col3 > 8994 OR col0 < 6080 AND col4 < 7050.75 AND col0 > 7371))

statement ok
CREATE VIEW view_3_tab1_755 AS SELECT pk FROM view_1_tab1_755

query II rowsort label-1700-1
SELECT pk, col0 FROM tab1 WHERE (col3 > 8994 OR col0 < 6080 AND col4 < 7050.75 AND col0 > 7371)
----
204 values hashing to 49d1e649320f419ddb65e45d2f3e6450

query II rowsort label-1700-2
SELECT pk, col0 FROM tab1 WHERE NOT ((col3 > 8994 OR col0 < 6080 AND col4 < 7050.75 AND col0 > 7371))
----
1796 values hashing to 9317fd26043b8951ecb3557eca3fb9e7

query II rowsort label-1700-1
SELECT pk, col0 FROM view_1_tab1_755
----
204 values hashing to 49d1e649320f419ddb65e45d2f3e6450

query II rowsort label-1700-2
SELECT pk, col0 FROM view_2_tab1_755
----
1796 values hashing to 9317fd26043b8951ecb3557eca3fb9e7

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col3 > 8994 OR col0 < 6080 AND col4 < 7050.75 AND col0 > 7371) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT ((col3 > 8994 OR col0 < 6080 AND col4 < 7050.75 AND col0 > 7371))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_755 UNION ALL SELECT pk, col0 FROM view_2_tab1_755
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col3 > 8994 OR col0 < 6080 AND col4 < 7050.75 AND col0 > 7371) UNION SELECT pk, col0 FROM tab1 WHERE NOT ((col3 > 8994 OR col0 < 6080 AND col4 < 7050.75 AND col0 > 7371))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_755 UNION SELECT pk, col0 FROM view_2_tab1_755
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-1700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE (col3 > 8994 OR col0 < 6080 AND col4 < 7050.75 AND col0 > 7371) ) AS tab1_755
----
102 values hashing to d1898529783624a9cb5fc72b00ae1015

query I rowsort label-1700-3
SELECT * FROM view_3_tab1_755
----
102 values hashing to d1898529783624a9cb5fc72b00ae1015

query I rowsort label-1700-3
SELECT pk FROM tab1 WHERE (col3 > 8994 OR col0 < 6080 AND col4 < 7050.75 AND col0 > 7371)
----
102 values hashing to d1898529783624a9cb5fc72b00ae1015

statement ok
DROP VIEW view_1_tab1_755

statement ok
DROP VIEW view_2_tab1_755

statement ok
DROP VIEW view_3_tab1_755

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab2_755 AS SELECT pk, col0 FROM tab2 WHERE (col3 > 8994 OR col0 < 6080 AND col4 < 7050.75 AND col0 > 7371)

statement ok
CREATE VIEW view_2_tab2_755 AS SELECT pk, col0 FROM tab2 WHERE NOT ((col3 > 8994 OR col0 < 6080 AND col4 < 7050.75 AND col0 > 7371))

statement ok
CREATE VIEW view_3_tab2_755 AS SELECT pk FROM view_1_tab2_755

query II rowsort label-1700-1
SELECT pk, col0 FROM tab2 WHERE (col3 > 8994 OR col0 < 6080 AND col4 < 7050.75 AND col0 > 7371)
----
204 values hashing to 49d1e649320f419ddb65e45d2f3e6450

query II rowsort label-1700-2
SELECT pk, col0 FROM tab2 WHERE NOT ((col3 > 8994 OR col0 < 6080 AND col4 < 7050.75 AND col0 > 7371))
----
1796 values hashing to 9317fd26043b8951ecb3557eca3fb9e7

query II rowsort label-1700-1
SELECT pk, col0 FROM view_1_tab2_755
----
204 values hashing to 49d1e649320f419ddb65e45d2f3e6450

query II rowsort label-1700-2
SELECT pk, col0 FROM view_2_tab2_755
----
1796 values hashing to 9317fd26043b8951ecb3557eca3fb9e7

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col3 > 8994 OR col0 < 6080 AND col4 < 7050.75 AND col0 > 7371) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT ((col3 > 8994 OR col0 < 6080 AND col4 < 7050.75 AND col0 > 7371))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_755 UNION ALL SELECT pk, col0 FROM view_2_tab2_755
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col3 > 8994 OR col0 < 6080 AND col4 < 7050.75 AND col0 > 7371) UNION SELECT pk, col0 FROM tab2 WHERE NOT ((col3 > 8994 OR col0 < 6080 AND col4 < 7050.75 AND col0 > 7371))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_755 UNION SELECT pk, col0 FROM view_2_tab2_755
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-1700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE (col3 > 8994 OR col0 < 6080 AND col4 < 7050.75 AND col0 > 7371) ) AS tab2_755
----
102 values hashing to d1898529783624a9cb5fc72b00ae1015

query I rowsort label-1700-3
SELECT * FROM view_3_tab2_755
----
102 values hashing to d1898529783624a9cb5fc72b00ae1015

query I rowsort label-1700-3
SELECT pk FROM tab2 WHERE (col3 > 8994 OR col0 < 6080 AND col4 < 7050.75 AND col0 > 7371)
----
102 values hashing to d1898529783624a9cb5fc72b00ae1015

statement ok
DROP VIEW view_1_tab2_755

statement ok
DROP VIEW view_2_tab2_755

statement ok
DROP VIEW view_3_tab2_755

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab3_755 AS SELECT pk, col0 FROM tab3 WHERE (col3 > 8994 OR col0 < 6080 AND col4 < 7050.75 AND col0 > 7371)

statement ok
CREATE VIEW view_2_tab3_755 AS SELECT pk, col0 FROM tab3 WHERE NOT ((col3 > 8994 OR col0 < 6080 AND col4 < 7050.75 AND col0 > 7371))

statement ok
CREATE VIEW view_3_tab3_755 AS SELECT pk FROM view_1_tab3_755

query II rowsort label-1700-1
SELECT pk, col0 FROM tab3 WHERE (col3 > 8994 OR col0 < 6080 AND col4 < 7050.75 AND col0 > 7371)
----
204 values hashing to 49d1e649320f419ddb65e45d2f3e6450

query II rowsort label-1700-2
SELECT pk, col0 FROM tab3 WHERE NOT ((col3 > 8994 OR col0 < 6080 AND col4 < 7050.75 AND col0 > 7371))
----
1796 values hashing to 9317fd26043b8951ecb3557eca3fb9e7

query II rowsort label-1700-1
SELECT pk, col0 FROM view_1_tab3_755
----
204 values hashing to 49d1e649320f419ddb65e45d2f3e6450

query II rowsort label-1700-2
SELECT pk, col0 FROM view_2_tab3_755
----
1796 values hashing to 9317fd26043b8951ecb3557eca3fb9e7

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col3 > 8994 OR col0 < 6080 AND col4 < 7050.75 AND col0 > 7371) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT ((col3 > 8994 OR col0 < 6080 AND col4 < 7050.75 AND col0 > 7371))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_755 UNION ALL SELECT pk, col0 FROM view_2_tab3_755
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col3 > 8994 OR col0 < 6080 AND col4 < 7050.75 AND col0 > 7371) UNION SELECT pk, col0 FROM tab3 WHERE NOT ((col3 > 8994 OR col0 < 6080 AND col4 < 7050.75 AND col0 > 7371))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_755 UNION SELECT pk, col0 FROM view_2_tab3_755
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-1700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE (col3 > 8994 OR col0 < 6080 AND col4 < 7050.75 AND col0 > 7371) ) AS tab3_755
----
102 values hashing to d1898529783624a9cb5fc72b00ae1015

query I rowsort label-1700-3
SELECT * FROM view_3_tab3_755
----
102 values hashing to d1898529783624a9cb5fc72b00ae1015

query I rowsort label-1700-3
SELECT pk FROM tab3 WHERE (col3 > 8994 OR col0 < 6080 AND col4 < 7050.75 AND col0 > 7371)
----
102 values hashing to d1898529783624a9cb5fc72b00ae1015

statement ok
DROP VIEW view_1_tab3_755

statement ok
DROP VIEW view_2_tab3_755

statement ok
DROP VIEW view_3_tab3_755

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab4_755 AS SELECT pk, col0 FROM tab4 WHERE (col3 > 8994 OR col0 < 6080 AND col4 < 7050.75 AND col0 > 7371)

statement ok
CREATE VIEW view_2_tab4_755 AS SELECT pk, col0 FROM tab4 WHERE NOT ((col3 > 8994 OR col0 < 6080 AND col4 < 7050.75 AND col0 > 7371))

statement ok
CREATE VIEW view_3_tab4_755 AS SELECT pk FROM view_1_tab4_755

query II rowsort label-1700-1
SELECT pk, col0 FROM tab4 WHERE (col3 > 8994 OR col0 < 6080 AND col4 < 7050.75 AND col0 > 7371)
----
204 values hashing to 49d1e649320f419ddb65e45d2f3e6450

query II rowsort label-1700-2
SELECT pk, col0 FROM tab4 WHERE NOT ((col3 > 8994 OR col0 < 6080 AND col4 < 7050.75 AND col0 > 7371))
----
1796 values hashing to 9317fd26043b8951ecb3557eca3fb9e7

query II rowsort label-1700-1
SELECT pk, col0 FROM view_1_tab4_755
----
204 values hashing to 49d1e649320f419ddb65e45d2f3e6450

query II rowsort label-1700-2
SELECT pk, col0 FROM view_2_tab4_755
----
1796 values hashing to 9317fd26043b8951ecb3557eca3fb9e7

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col3 > 8994 OR col0 < 6080 AND col4 < 7050.75 AND col0 > 7371) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT ((col3 > 8994 OR col0 < 6080 AND col4 < 7050.75 AND col0 > 7371))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_755 UNION ALL SELECT pk, col0 FROM view_2_tab4_755
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col3 > 8994 OR col0 < 6080 AND col4 < 7050.75 AND col0 > 7371) UNION SELECT pk, col0 FROM tab4 WHERE NOT ((col3 > 8994 OR col0 < 6080 AND col4 < 7050.75 AND col0 > 7371))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_755 UNION SELECT pk, col0 FROM view_2_tab4_755
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-1700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE (col3 > 8994 OR col0 < 6080 AND col4 < 7050.75 AND col0 > 7371) ) AS tab4_755
----
102 values hashing to d1898529783624a9cb5fc72b00ae1015

query I rowsort label-1700-3
SELECT * FROM view_3_tab4_755
----
102 values hashing to d1898529783624a9cb5fc72b00ae1015

query I rowsort label-1700-3
SELECT pk FROM tab4 WHERE (col3 > 8994 OR col0 < 6080 AND col4 < 7050.75 AND col0 > 7371)
----
102 values hashing to d1898529783624a9cb5fc72b00ae1015

statement ok
DROP VIEW view_1_tab4_755

statement ok
DROP VIEW view_2_tab4_755

statement ok
DROP VIEW view_3_tab4_755

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab0_756 AS SELECT pk, col0 FROM tab0 WHERE col3 < 8859

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

statement ok
CREATE VIEW view_3_tab0_756 AS SELECT pk FROM view_1_tab0_756

query II rowsort label-1800-1
SELECT pk, col0 FROM tab0 WHERE col3 < 8859
----
1764 values hashing to d88d68a50d62833a351f1760ffe39a5f

query II rowsort label-1800-2
SELECT pk, col0 FROM tab0 WHERE NOT (col3 < 8859)
----
236 values hashing to 61762b06c6703ec4a7bc9d8fb63cfd3c

query II rowsort label-1800-1
SELECT pk, col0 FROM view_1_tab0_756
----
1764 values hashing to d88d68a50d62833a351f1760ffe39a5f

query II rowsort label-1800-2
SELECT pk, col0 FROM view_2_tab0_756
----
236 values hashing to 61762b06c6703ec4a7bc9d8fb63cfd3c

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 < 8859 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col3 < 8859)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_756 UNION ALL SELECT pk, col0 FROM view_2_tab0_756
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 < 8859 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col3 < 8859)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_756 UNION SELECT pk, col0 FROM view_2_tab0_756
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-1800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col3 < 8859 ) AS tab0_756
----
882 values hashing to 985b03f3ef4620d90722fdf2b5103841

query I rowsort label-1800-3
SELECT * FROM view_3_tab0_756
----
882 values hashing to 985b03f3ef4620d90722fdf2b5103841

query I rowsort label-1800-3
SELECT pk FROM tab0 WHERE col3 < 8859
----
882 values hashing to 985b03f3ef4620d90722fdf2b5103841

statement ok
DROP VIEW view_1_tab0_756

statement ok
DROP VIEW view_2_tab0_756

statement ok
DROP VIEW view_3_tab0_756

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab1_756 AS SELECT pk, col0 FROM tab1 WHERE col3 < 8859

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

statement ok
CREATE VIEW view_3_tab1_756 AS SELECT pk FROM view_1_tab1_756

query II rowsort label-1800-1
SELECT pk, col0 FROM tab1 WHERE col3 < 8859
----
1764 values hashing to d88d68a50d62833a351f1760ffe39a5f

query II rowsort label-1800-2
SELECT pk, col0 FROM tab1 WHERE NOT (col3 < 8859)
----
236 values hashing to 61762b06c6703ec4a7bc9d8fb63cfd3c

query II rowsort label-1800-1
SELECT pk, col0 FROM view_1_tab1_756
----
1764 values hashing to d88d68a50d62833a351f1760ffe39a5f

query II rowsort label-1800-2
SELECT pk, col0 FROM view_2_tab1_756
----
236 values hashing to 61762b06c6703ec4a7bc9d8fb63cfd3c

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 < 8859 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col3 < 8859)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_756 UNION ALL SELECT pk, col0 FROM view_2_tab1_756
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 < 8859 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col3 < 8859)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_756 UNION SELECT pk, col0 FROM view_2_tab1_756
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-1800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col3 < 8859 ) AS tab1_756
----
882 values hashing to 985b03f3ef4620d90722fdf2b5103841

query I rowsort label-1800-3
SELECT * FROM view_3_tab1_756
----
882 values hashing to 985b03f3ef4620d90722fdf2b5103841

query I rowsort label-1800-3
SELECT pk FROM tab1 WHERE col3 < 8859
----
882 values hashing to 985b03f3ef4620d90722fdf2b5103841

statement ok
DROP VIEW view_1_tab1_756

statement ok
DROP VIEW view_2_tab1_756

statement ok
DROP VIEW view_3_tab1_756

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab2_756 AS SELECT pk, col0 FROM tab2 WHERE col3 < 8859

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

statement ok
CREATE VIEW view_3_tab2_756 AS SELECT pk FROM view_1_tab2_756

query II rowsort label-1800-1
SELECT pk, col0 FROM tab2 WHERE col3 < 8859
----
1764 values hashing to d88d68a50d62833a351f1760ffe39a5f

query II rowsort label-1800-2
SELECT pk, col0 FROM tab2 WHERE NOT (col3 < 8859)
----
236 values hashing to 61762b06c6703ec4a7bc9d8fb63cfd3c

query II rowsort label-1800-1
SELECT pk, col0 FROM view_1_tab2_756
----
1764 values hashing to d88d68a50d62833a351f1760ffe39a5f

query II rowsort label-1800-2
SELECT pk, col0 FROM view_2_tab2_756
----
236 values hashing to 61762b06c6703ec4a7bc9d8fb63cfd3c

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 < 8859 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col3 < 8859)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_756 UNION ALL SELECT pk, col0 FROM view_2_tab2_756
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 < 8859 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col3 < 8859)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_756 UNION SELECT pk, col0 FROM view_2_tab2_756
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-1800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col3 < 8859 ) AS tab2_756
----
882 values hashing to 985b03f3ef4620d90722fdf2b5103841

query I rowsort label-1800-3
SELECT * FROM view_3_tab2_756
----
882 values hashing to 985b03f3ef4620d90722fdf2b5103841

query I rowsort label-1800-3
SELECT pk FROM tab2 WHERE col3 < 8859
----
882 values hashing to 985b03f3ef4620d90722fdf2b5103841

statement ok
DROP VIEW view_1_tab2_756

statement ok
DROP VIEW view_2_tab2_756

statement ok
DROP VIEW view_3_tab2_756

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab3_756 AS SELECT pk, col0 FROM tab3 WHERE col3 < 8859

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

statement ok
CREATE VIEW view_3_tab3_756 AS SELECT pk FROM view_1_tab3_756

query II rowsort label-1800-1
SELECT pk, col0 FROM tab3 WHERE col3 < 8859
----
1764 values hashing to d88d68a50d62833a351f1760ffe39a5f

query II rowsort label-1800-2
SELECT pk, col0 FROM tab3 WHERE NOT (col3 < 8859)
----
236 values hashing to 61762b06c6703ec4a7bc9d8fb63cfd3c

query II rowsort label-1800-1
SELECT pk, col0 FROM view_1_tab3_756
----
1764 values hashing to d88d68a50d62833a351f1760ffe39a5f

query II rowsort label-1800-2
SELECT pk, col0 FROM view_2_tab3_756
----
236 values hashing to 61762b06c6703ec4a7bc9d8fb63cfd3c

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 < 8859 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col3 < 8859)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_756 UNION ALL SELECT pk, col0 FROM view_2_tab3_756
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 < 8859 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col3 < 8859)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_756 UNION SELECT pk, col0 FROM view_2_tab3_756
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-1800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col3 < 8859 ) AS tab3_756
----
882 values hashing to 985b03f3ef4620d90722fdf2b5103841

query I rowsort label-1800-3
SELECT * FROM view_3_tab3_756
----
882 values hashing to 985b03f3ef4620d90722fdf2b5103841

query I rowsort label-1800-3
SELECT pk FROM tab3 WHERE col3 < 8859
----
882 values hashing to 985b03f3ef4620d90722fdf2b5103841

statement ok
DROP VIEW view_1_tab3_756

statement ok
DROP VIEW view_2_tab3_756

statement ok
DROP VIEW view_3_tab3_756

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab4_756 AS SELECT pk, col0 FROM tab4 WHERE col3 < 8859

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

statement ok
CREATE VIEW view_3_tab4_756 AS SELECT pk FROM view_1_tab4_756

query II rowsort label-1800-1
SELECT pk, col0 FROM tab4 WHERE col3 < 8859
----
1764 values hashing to d88d68a50d62833a351f1760ffe39a5f

query II rowsort label-1800-2
SELECT pk, col0 FROM tab4 WHERE NOT (col3 < 8859)
----
236 values hashing to 61762b06c6703ec4a7bc9d8fb63cfd3c

query II rowsort label-1800-1
SELECT pk, col0 FROM view_1_tab4_756
----
1764 values hashing to d88d68a50d62833a351f1760ffe39a5f

query II rowsort label-1800-2
SELECT pk, col0 FROM view_2_tab4_756
----
236 values hashing to 61762b06c6703ec4a7bc9d8fb63cfd3c

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 < 8859 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col3 < 8859)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_756 UNION ALL SELECT pk, col0 FROM view_2_tab4_756
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 < 8859 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col3 < 8859)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_756 UNION SELECT pk, col0 FROM view_2_tab4_756
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-1800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col3 < 8859 ) AS tab4_756
----
882 values hashing to 985b03f3ef4620d90722fdf2b5103841

query I rowsort label-1800-3
SELECT * FROM view_3_tab4_756
----
882 values hashing to 985b03f3ef4620d90722fdf2b5103841

query I rowsort label-1800-3
SELECT pk FROM tab4 WHERE col3 < 8859
----
882 values hashing to 985b03f3ef4620d90722fdf2b5103841

statement ok
DROP VIEW view_1_tab4_756

statement ok
DROP VIEW view_2_tab4_756

statement ok
DROP VIEW view_3_tab4_756

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab0_757 AS SELECT pk, col0 FROM tab0 WHERE col3 > 8150

statement ok
CREATE VIEW view_2_tab0_757 AS SELECT pk, col0 FROM tab0 WHERE NOT (col3 > 8150)

statement ok
CREATE VIEW view_3_tab0_757 AS SELECT pk FROM view_1_tab0_757

query II rowsort label-1900-1
SELECT pk, col0 FROM tab0 WHERE col3 > 8150
----
374 values hashing to 7215161aebfd899e2870af5f8b583893

query II rowsort label-1900-2
SELECT pk, col0 FROM tab0 WHERE NOT (col3 > 8150)
----
1626 values hashing to 8156e569553d7d10b9767ad4f3c91138

query II rowsort label-1900-1
SELECT pk, col0 FROM view_1_tab0_757
----
374 values hashing to 7215161aebfd899e2870af5f8b583893

query II rowsort label-1900-2
SELECT pk, col0 FROM view_2_tab0_757
----
1626 values hashing to 8156e569553d7d10b9767ad4f3c91138

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 > 8150 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col3 > 8150)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_757 UNION ALL SELECT pk, col0 FROM view_2_tab0_757
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 > 8150 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col3 > 8150)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_757 UNION SELECT pk, col0 FROM view_2_tab0_757
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-1900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col3 > 8150 ) AS tab0_757
----
187 values hashing to af861c0f6d1262224b77aea2a3eac3eb

query I rowsort label-1900-3
SELECT * FROM view_3_tab0_757
----
187 values hashing to af861c0f6d1262224b77aea2a3eac3eb

query I rowsort label-1900-3
SELECT pk FROM tab0 WHERE col3 > 8150
----
187 values hashing to af861c0f6d1262224b77aea2a3eac3eb

statement ok
DROP VIEW view_1_tab0_757

statement ok
DROP VIEW view_2_tab0_757

statement ok
DROP VIEW view_3_tab0_757

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab1_757 AS SELECT pk, col0 FROM tab1 WHERE col3 > 8150

statement ok
CREATE VIEW view_2_tab1_757 AS SELECT pk, col0 FROM tab1 WHERE NOT (col3 > 8150)

statement ok
CREATE VIEW view_3_tab1_757 AS SELECT pk FROM view_1_tab1_757

query II rowsort label-1900-1
SELECT pk, col0 FROM tab1 WHERE col3 > 8150
----
374 values hashing to 7215161aebfd899e2870af5f8b583893

query II rowsort label-1900-2
SELECT pk, col0 FROM tab1 WHERE NOT (col3 > 8150)
----
1626 values hashing to 8156e569553d7d10b9767ad4f3c91138

query II rowsort label-1900-1
SELECT pk, col0 FROM view_1_tab1_757
----
374 values hashing to 7215161aebfd899e2870af5f8b583893

query II rowsort label-1900-2
SELECT pk, col0 FROM view_2_tab1_757
----
1626 values hashing to 8156e569553d7d10b9767ad4f3c91138

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 > 8150 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col3 > 8150)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_757 UNION ALL SELECT pk, col0 FROM view_2_tab1_757
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 > 8150 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col3 > 8150)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_757 UNION SELECT pk, col0 FROM view_2_tab1_757
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-1900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col3 > 8150 ) AS tab1_757
----
187 values hashing to af861c0f6d1262224b77aea2a3eac3eb

query I rowsort label-1900-3
SELECT * FROM view_3_tab1_757
----
187 values hashing to af861c0f6d1262224b77aea2a3eac3eb

query I rowsort label-1900-3
SELECT pk FROM tab1 WHERE col3 > 8150
----
187 values hashing to af861c0f6d1262224b77aea2a3eac3eb

statement ok
DROP VIEW view_1_tab1_757

statement ok
DROP VIEW view_2_tab1_757

statement ok
DROP VIEW view_3_tab1_757

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab2_757 AS SELECT pk, col0 FROM tab2 WHERE col3 > 8150

statement ok
CREATE VIEW view_2_tab2_757 AS SELECT pk, col0 FROM tab2 WHERE NOT (col3 > 8150)

statement ok
CREATE VIEW view_3_tab2_757 AS SELECT pk FROM view_1_tab2_757

query II rowsort label-1900-1
SELECT pk, col0 FROM tab2 WHERE col3 > 8150
----
374 values hashing to 7215161aebfd899e2870af5f8b583893

query II rowsort label-1900-2
SELECT pk, col0 FROM tab2 WHERE NOT (col3 > 8150)
----
1626 values hashing to 8156e569553d7d10b9767ad4f3c91138

query II rowsort label-1900-1
SELECT pk, col0 FROM view_1_tab2_757
----
374 values hashing to 7215161aebfd899e2870af5f8b583893

query II rowsort label-1900-2
SELECT pk, col0 FROM view_2_tab2_757
----
1626 values hashing to 8156e569553d7d10b9767ad4f3c91138

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 > 8150 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col3 > 8150)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_757 UNION ALL SELECT pk, col0 FROM view_2_tab2_757
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 > 8150 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col3 > 8150)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_757 UNION SELECT pk, col0 FROM view_2_tab2_757
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-1900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col3 > 8150 ) AS tab2_757
----
187 values hashing to af861c0f6d1262224b77aea2a3eac3eb

query I rowsort label-1900-3
SELECT * FROM view_3_tab2_757
----
187 values hashing to af861c0f6d1262224b77aea2a3eac3eb

query I rowsort label-1900-3
SELECT pk FROM tab2 WHERE col3 > 8150
----
187 values hashing to af861c0f6d1262224b77aea2a3eac3eb

statement ok
DROP VIEW view_1_tab2_757

statement ok
DROP VIEW view_2_tab2_757

statement ok
DROP VIEW view_3_tab2_757

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab3_757 AS SELECT pk, col0 FROM tab3 WHERE col3 > 8150

statement ok
CREATE VIEW view_2_tab3_757 AS SELECT pk, col0 FROM tab3 WHERE NOT (col3 > 8150)

statement ok
CREATE VIEW view_3_tab3_757 AS SELECT pk FROM view_1_tab3_757

query II rowsort label-1900-1
SELECT pk, col0 FROM tab3 WHERE col3 > 8150
----
374 values hashing to 7215161aebfd899e2870af5f8b583893

query II rowsort label-1900-2
SELECT pk, col0 FROM tab3 WHERE NOT (col3 > 8150)
----
1626 values hashing to 8156e569553d7d10b9767ad4f3c91138

query II rowsort label-1900-1
SELECT pk, col0 FROM view_1_tab3_757
----
374 values hashing to 7215161aebfd899e2870af5f8b583893

query II rowsort label-1900-2
SELECT pk, col0 FROM view_2_tab3_757
----
1626 values hashing to 8156e569553d7d10b9767ad4f3c91138

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 > 8150 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col3 > 8150)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_757 UNION ALL SELECT pk, col0 FROM view_2_tab3_757
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 > 8150 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col3 > 8150)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_757 UNION SELECT pk, col0 FROM view_2_tab3_757
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-1900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col3 > 8150 ) AS tab3_757
----
187 values hashing to af861c0f6d1262224b77aea2a3eac3eb

query I rowsort label-1900-3
SELECT * FROM view_3_tab3_757
----
187 values hashing to af861c0f6d1262224b77aea2a3eac3eb

query I rowsort label-1900-3
SELECT pk FROM tab3 WHERE col3 > 8150
----
187 values hashing to af861c0f6d1262224b77aea2a3eac3eb

statement ok
DROP VIEW view_1_tab3_757

statement ok
DROP VIEW view_2_tab3_757

statement ok
DROP VIEW view_3_tab3_757

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab4_757 AS SELECT pk, col0 FROM tab4 WHERE col3 > 8150

statement ok
CREATE VIEW view_2_tab4_757 AS SELECT pk, col0 FROM tab4 WHERE NOT (col3 > 8150)

statement ok
CREATE VIEW view_3_tab4_757 AS SELECT pk FROM view_1_tab4_757

query II rowsort label-1900-1
SELECT pk, col0 FROM tab4 WHERE col3 > 8150
----
374 values hashing to 7215161aebfd899e2870af5f8b583893

query II rowsort label-1900-2
SELECT pk, col0 FROM tab4 WHERE NOT (col3 > 8150)
----
1626 values hashing to 8156e569553d7d10b9767ad4f3c91138

query II rowsort label-1900-1
SELECT pk, col0 FROM view_1_tab4_757
----
374 values hashing to 7215161aebfd899e2870af5f8b583893

query II rowsort label-1900-2
SELECT pk, col0 FROM view_2_tab4_757
----
1626 values hashing to 8156e569553d7d10b9767ad4f3c91138

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 > 8150 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col3 > 8150)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_757 UNION ALL SELECT pk, col0 FROM view_2_tab4_757
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 > 8150 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col3 > 8150)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_757 UNION SELECT pk, col0 FROM view_2_tab4_757
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-1900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col3 > 8150 ) AS tab4_757
----
187 values hashing to af861c0f6d1262224b77aea2a3eac3eb

query I rowsort label-1900-3
SELECT * FROM view_3_tab4_757
----
187 values hashing to af861c0f6d1262224b77aea2a3eac3eb

query I rowsort label-1900-3
SELECT pk FROM tab4 WHERE col3 > 8150
----
187 values hashing to af861c0f6d1262224b77aea2a3eac3eb

statement ok
DROP VIEW view_1_tab4_757

statement ok
DROP VIEW view_2_tab4_757

statement ok
DROP VIEW view_3_tab4_757

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab0_758 AS SELECT pk, col0 FROM tab0 WHERE col0 >= 391

statement ok
CREATE VIEW view_2_tab0_758 AS SELECT pk, col0 FROM tab0 WHERE NOT (col0 >= 391)

statement ok
CREATE VIEW view_3_tab0_758 AS SELECT pk FROM view_1_tab0_758

query II rowsort label-2000-1
SELECT pk, col0 FROM tab0 WHERE col0 >= 391
----
1914 values hashing to 2bc2a1989056c1a51d8a1da056c7c0a3

query II rowsort label-2000-2
SELECT pk, col0 FROM tab0 WHERE NOT (col0 >= 391)
----
86 values hashing to 7d989ad21e302053149a4f1ea2c4e809

query II rowsort label-2000-1
SELECT pk, col0 FROM view_1_tab0_758
----
1914 values hashing to 2bc2a1989056c1a51d8a1da056c7c0a3

query II rowsort label-2000-2
SELECT pk, col0 FROM view_2_tab0_758
----
86 values hashing to 7d989ad21e302053149a4f1ea2c4e809

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col0 >= 391 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col0 >= 391)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_758 UNION ALL SELECT pk, col0 FROM view_2_tab0_758
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col0 >= 391 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col0 >= 391)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_758 UNION SELECT pk, col0 FROM view_2_tab0_758
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-2000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col0 >= 391 ) AS tab0_758
----
957 values hashing to 07cf52b6bd3ee600e37c38ade160368f

query I rowsort label-2000-3
SELECT * FROM view_3_tab0_758
----
957 values hashing to 07cf52b6bd3ee600e37c38ade160368f

query I rowsort label-2000-3
SELECT pk FROM tab0 WHERE col0 >= 391
----
957 values hashing to 07cf52b6bd3ee600e37c38ade160368f

statement ok
DROP VIEW view_1_tab0_758

statement ok
DROP VIEW view_2_tab0_758

statement ok
DROP VIEW view_3_tab0_758

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab1_758 AS SELECT pk, col0 FROM tab1 WHERE col0 >= 391

statement ok
CREATE VIEW view_2_tab1_758 AS SELECT pk, col0 FROM tab1 WHERE NOT (col0 >= 391)

statement ok
CREATE VIEW view_3_tab1_758 AS SELECT pk FROM view_1_tab1_758

query II rowsort label-2000-1
SELECT pk, col0 FROM tab1 WHERE col0 >= 391
----
1914 values hashing to 2bc2a1989056c1a51d8a1da056c7c0a3

query II rowsort label-2000-2
SELECT pk, col0 FROM tab1 WHERE NOT (col0 >= 391)
----
86 values hashing to 7d989ad21e302053149a4f1ea2c4e809

query II rowsort label-2000-1
SELECT pk, col0 FROM view_1_tab1_758
----
1914 values hashing to 2bc2a1989056c1a51d8a1da056c7c0a3

query II rowsort label-2000-2
SELECT pk, col0 FROM view_2_tab1_758
----
86 values hashing to 7d989ad21e302053149a4f1ea2c4e809

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col0 >= 391 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col0 >= 391)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_758 UNION ALL SELECT pk, col0 FROM view_2_tab1_758
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col0 >= 391 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col0 >= 391)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_758 UNION SELECT pk, col0 FROM view_2_tab1_758
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-2000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col0 >= 391 ) AS tab1_758
----
957 values hashing to 07cf52b6bd3ee600e37c38ade160368f

query I rowsort label-2000-3
SELECT * FROM view_3_tab1_758
----
957 values hashing to 07cf52b6bd3ee600e37c38ade160368f

query I rowsort label-2000-3
SELECT pk FROM tab1 WHERE col0 >= 391
----
957 values hashing to 07cf52b6bd3ee600e37c38ade160368f

statement ok
DROP VIEW view_1_tab1_758

statement ok
DROP VIEW view_2_tab1_758

statement ok
DROP VIEW view_3_tab1_758

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab2_758 AS SELECT pk, col0 FROM tab2 WHERE col0 >= 391

statement ok
CREATE VIEW view_2_tab2_758 AS SELECT pk, col0 FROM tab2 WHERE NOT (col0 >= 391)

statement ok
CREATE VIEW view_3_tab2_758 AS SELECT pk FROM view_1_tab2_758

query II rowsort label-2000-1
SELECT pk, col0 FROM tab2 WHERE col0 >= 391
----
1914 values hashing to 2bc2a1989056c1a51d8a1da056c7c0a3

query II rowsort label-2000-2
SELECT pk, col0 FROM tab2 WHERE NOT (col0 >= 391)
----
86 values hashing to 7d989ad21e302053149a4f1ea2c4e809

query II rowsort label-2000-1
SELECT pk, col0 FROM view_1_tab2_758
----
1914 values hashing to 2bc2a1989056c1a51d8a1da056c7c0a3

query II rowsort label-2000-2
SELECT pk, col0 FROM view_2_tab2_758
----
86 values hashing to 7d989ad21e302053149a4f1ea2c4e809

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col0 >= 391 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col0 >= 391)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_758 UNION ALL SELECT pk, col0 FROM view_2_tab2_758
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col0 >= 391 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col0 >= 391)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_758 UNION SELECT pk, col0 FROM view_2_tab2_758
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-2000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col0 >= 391 ) AS tab2_758
----
957 values hashing to 07cf52b6bd3ee600e37c38ade160368f

query I rowsort label-2000-3
SELECT * FROM view_3_tab2_758
----
957 values hashing to 07cf52b6bd3ee600e37c38ade160368f

query I rowsort label-2000-3
SELECT pk FROM tab2 WHERE col0 >= 391
----
957 values hashing to 07cf52b6bd3ee600e37c38ade160368f

statement ok
DROP VIEW view_1_tab2_758

statement ok
DROP VIEW view_2_tab2_758

statement ok
DROP VIEW view_3_tab2_758

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab3_758 AS SELECT pk, col0 FROM tab3 WHERE col0 >= 391

statement ok
CREATE VIEW view_2_tab3_758 AS SELECT pk, col0 FROM tab3 WHERE NOT (col0 >= 391)

statement ok
CREATE VIEW view_3_tab3_758 AS SELECT pk FROM view_1_tab3_758

query II rowsort label-2000-1
SELECT pk, col0 FROM tab3 WHERE col0 >= 391
----
1914 values hashing to 2bc2a1989056c1a51d8a1da056c7c0a3

query II rowsort label-2000-2
SELECT pk, col0 FROM tab3 WHERE NOT (col0 >= 391)
----
86 values hashing to 7d989ad21e302053149a4f1ea2c4e809

query II rowsort label-2000-1
SELECT pk, col0 FROM view_1_tab3_758
----
1914 values hashing to 2bc2a1989056c1a51d8a1da056c7c0a3

query II rowsort label-2000-2
SELECT pk, col0 FROM view_2_tab3_758
----
86 values hashing to 7d989ad21e302053149a4f1ea2c4e809

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col0 >= 391 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col0 >= 391)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_758 UNION ALL SELECT pk, col0 FROM view_2_tab3_758
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col0 >= 391 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col0 >= 391)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_758 UNION SELECT pk, col0 FROM view_2_tab3_758
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-2000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col0 >= 391 ) AS tab3_758
----
957 values hashing to 07cf52b6bd3ee600e37c38ade160368f

query I rowsort label-2000-3
SELECT * FROM view_3_tab3_758
----
957 values hashing to 07cf52b6bd3ee600e37c38ade160368f

query I rowsort label-2000-3
SELECT pk FROM tab3 WHERE col0 >= 391
----
957 values hashing to 07cf52b6bd3ee600e37c38ade160368f

statement ok
DROP VIEW view_1_tab3_758

statement ok
DROP VIEW view_2_tab3_758

statement ok
DROP VIEW view_3_tab3_758

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab4_758 AS SELECT pk, col0 FROM tab4 WHERE col0 >= 391

statement ok
CREATE VIEW view_2_tab4_758 AS SELECT pk, col0 FROM tab4 WHERE NOT (col0 >= 391)

statement ok
CREATE VIEW view_3_tab4_758 AS SELECT pk FROM view_1_tab4_758

query II rowsort label-2000-1
SELECT pk, col0 FROM tab4 WHERE col0 >= 391
----
1914 values hashing to 2bc2a1989056c1a51d8a1da056c7c0a3

query II rowsort label-2000-2
SELECT pk, col0 FROM tab4 WHERE NOT (col0 >= 391)
----
86 values hashing to 7d989ad21e302053149a4f1ea2c4e809

query II rowsort label-2000-1
SELECT pk, col0 FROM view_1_tab4_758
----
1914 values hashing to 2bc2a1989056c1a51d8a1da056c7c0a3

query II rowsort label-2000-2
SELECT pk, col0 FROM view_2_tab4_758
----
86 values hashing to 7d989ad21e302053149a4f1ea2c4e809

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col0 >= 391 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col0 >= 391)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_758 UNION ALL SELECT pk, col0 FROM view_2_tab4_758
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col0 >= 391 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col0 >= 391)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_758 UNION SELECT pk, col0 FROM view_2_tab4_758
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-2000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col0 >= 391 ) AS tab4_758
----
957 values hashing to 07cf52b6bd3ee600e37c38ade160368f

query I rowsort label-2000-3
SELECT * FROM view_3_tab4_758
----
957 values hashing to 07cf52b6bd3ee600e37c38ade160368f

query I rowsort label-2000-3
SELECT pk FROM tab4 WHERE col0 >= 391
----
957 values hashing to 07cf52b6bd3ee600e37c38ade160368f

statement ok
DROP VIEW view_1_tab4_758

statement ok
DROP VIEW view_2_tab4_758

statement ok
DROP VIEW view_3_tab4_758

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab0_759 AS SELECT pk, col0 FROM tab0 WHERE col3 = 7402

statement ok
CREATE VIEW view_2_tab0_759 AS SELECT pk, col0 FROM tab0 WHERE NOT (col3 = 7402)

statement ok
CREATE VIEW view_3_tab0_759 AS SELECT pk FROM view_1_tab0_759

query II rowsort label-2100-1
SELECT pk, col0 FROM tab0 WHERE col3 = 7402
----

query II rowsort label-2100-2
SELECT pk, col0 FROM tab0 WHERE NOT (col3 = 7402)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-2100-1
SELECT pk, col0 FROM view_1_tab0_759
----

query II rowsort label-2100-2
SELECT pk, col0 FROM view_2_tab0_759
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 = 7402 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col3 = 7402)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_759 UNION ALL SELECT pk, col0 FROM view_2_tab0_759
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 = 7402 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col3 = 7402)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_759 UNION SELECT pk, col0 FROM view_2_tab0_759
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-2100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col3 = 7402 ) AS tab0_759
----

query I rowsort label-2100-3
SELECT * FROM view_3_tab0_759
----

query I rowsort label-2100-3
SELECT pk FROM tab0 WHERE col3 = 7402
----

statement ok
DROP VIEW view_1_tab0_759

statement ok
DROP VIEW view_2_tab0_759

statement ok
DROP VIEW view_3_tab0_759

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab1_759 AS SELECT pk, col0 FROM tab1 WHERE col3 = 7402

statement ok
CREATE VIEW view_2_tab1_759 AS SELECT pk, col0 FROM tab1 WHERE NOT (col3 = 7402)

statement ok
CREATE VIEW view_3_tab1_759 AS SELECT pk FROM view_1_tab1_759

query II rowsort label-2100-1
SELECT pk, col0 FROM tab1 WHERE col3 = 7402
----

query II rowsort label-2100-2
SELECT pk, col0 FROM tab1 WHERE NOT (col3 = 7402)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-2100-1
SELECT pk, col0 FROM view_1_tab1_759
----

query II rowsort label-2100-2
SELECT pk, col0 FROM view_2_tab1_759
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 = 7402 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col3 = 7402)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_759 UNION ALL SELECT pk, col0 FROM view_2_tab1_759
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 = 7402 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col3 = 7402)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_759 UNION SELECT pk, col0 FROM view_2_tab1_759
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-2100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col3 = 7402 ) AS tab1_759
----

query I rowsort label-2100-3
SELECT * FROM view_3_tab1_759
----

query I rowsort label-2100-3
SELECT pk FROM tab1 WHERE col3 = 7402
----

statement ok
DROP VIEW view_1_tab1_759

statement ok
DROP VIEW view_2_tab1_759

statement ok
DROP VIEW view_3_tab1_759

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab2_759 AS SELECT pk, col0 FROM tab2 WHERE col3 = 7402

statement ok
CREATE VIEW view_2_tab2_759 AS SELECT pk, col0 FROM tab2 WHERE NOT (col3 = 7402)

statement ok
CREATE VIEW view_3_tab2_759 AS SELECT pk FROM view_1_tab2_759

query II rowsort label-2100-1
SELECT pk, col0 FROM tab2 WHERE col3 = 7402
----

query II rowsort label-2100-2
SELECT pk, col0 FROM tab2 WHERE NOT (col3 = 7402)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-2100-1
SELECT pk, col0 FROM view_1_tab2_759
----

query II rowsort label-2100-2
SELECT pk, col0 FROM view_2_tab2_759
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 = 7402 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col3 = 7402)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_759 UNION ALL SELECT pk, col0 FROM view_2_tab2_759
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 = 7402 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col3 = 7402)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_759 UNION SELECT pk, col0 FROM view_2_tab2_759
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-2100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col3 = 7402 ) AS tab2_759
----

query I rowsort label-2100-3
SELECT * FROM view_3_tab2_759
----

query I rowsort label-2100-3
SELECT pk FROM tab2 WHERE col3 = 7402
----

statement ok
DROP VIEW view_1_tab2_759

statement ok
DROP VIEW view_2_tab2_759

statement ok
DROP VIEW view_3_tab2_759

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab3_759 AS SELECT pk, col0 FROM tab3 WHERE col3 = 7402

statement ok
CREATE VIEW view_2_tab3_759 AS SELECT pk, col0 FROM tab3 WHERE NOT (col3 = 7402)

statement ok
CREATE VIEW view_3_tab3_759 AS SELECT pk FROM view_1_tab3_759

query II rowsort label-2100-1
SELECT pk, col0 FROM tab3 WHERE col3 = 7402
----

query II rowsort label-2100-2
SELECT pk, col0 FROM tab3 WHERE NOT (col3 = 7402)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-2100-1
SELECT pk, col0 FROM view_1_tab3_759
----

query II rowsort label-2100-2
SELECT pk, col0 FROM view_2_tab3_759
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 = 7402 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col3 = 7402)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_759 UNION ALL SELECT pk, col0 FROM view_2_tab3_759
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 = 7402 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col3 = 7402)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_759 UNION SELECT pk, col0 FROM view_2_tab3_759
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-2100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col3 = 7402 ) AS tab3_759
----

query I rowsort label-2100-3
SELECT * FROM view_3_tab3_759
----

query I rowsort label-2100-3
SELECT pk FROM tab3 WHERE col3 = 7402
----

statement ok
DROP VIEW view_1_tab3_759

statement ok
DROP VIEW view_2_tab3_759

statement ok
DROP VIEW view_3_tab3_759

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab4_759 AS SELECT pk, col0 FROM tab4 WHERE col3 = 7402

statement ok
CREATE VIEW view_2_tab4_759 AS SELECT pk, col0 FROM tab4 WHERE NOT (col3 = 7402)

statement ok
CREATE VIEW view_3_tab4_759 AS SELECT pk FROM view_1_tab4_759

query II rowsort label-2100-1
SELECT pk, col0 FROM tab4 WHERE col3 = 7402
----

query II rowsort label-2100-2
SELECT pk, col0 FROM tab4 WHERE NOT (col3 = 7402)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-2100-1
SELECT pk, col0 FROM view_1_tab4_759
----

query II rowsort label-2100-2
SELECT pk, col0 FROM view_2_tab4_759
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 = 7402 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col3 = 7402)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_759 UNION ALL SELECT pk, col0 FROM view_2_tab4_759
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 = 7402 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col3 = 7402)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_759 UNION SELECT pk, col0 FROM view_2_tab4_759
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-2100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col3 = 7402 ) AS tab4_759
----

query I rowsort label-2100-3
SELECT * FROM view_3_tab4_759
----

query I rowsort label-2100-3
SELECT pk FROM tab4 WHERE col3 = 7402
----

statement ok
DROP VIEW view_1_tab4_759

statement ok
DROP VIEW view_2_tab4_759

statement ok
DROP VIEW view_3_tab4_759

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab0_760 AS SELECT pk, col0 FROM tab0 WHERE col0 >= 3333

statement ok
CREATE VIEW view_2_tab0_760 AS SELECT pk, col0 FROM tab0 WHERE NOT (col0 >= 3333)

statement ok
CREATE VIEW view_3_tab0_760 AS SELECT pk FROM view_1_tab0_760

query II rowsort label-2200-1
SELECT pk, col0 FROM tab0 WHERE col0 >= 3333
----
1340 values hashing to da8dc8a4a391d03dfbdf04cb2c9dbaf6

query II rowsort label-2200-2
SELECT pk, col0 FROM tab0 WHERE NOT (col0 >= 3333)
----
660 values hashing to 36505f77c751a62417afb68f85d1cc66

query II rowsort label-2200-1
SELECT pk, col0 FROM view_1_tab0_760
----
1340 values hashing to da8dc8a4a391d03dfbdf04cb2c9dbaf6

query II rowsort label-2200-2
SELECT pk, col0 FROM view_2_tab0_760
----
660 values hashing to 36505f77c751a62417afb68f85d1cc66

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col0 >= 3333 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col0 >= 3333)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_760 UNION ALL SELECT pk, col0 FROM view_2_tab0_760
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col0 >= 3333 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col0 >= 3333)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_760 UNION SELECT pk, col0 FROM view_2_tab0_760
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-2200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col0 >= 3333 ) AS tab0_760
----
670 values hashing to 1dd5630cba141993f797a342bf1357b5

query I rowsort label-2200-3
SELECT * FROM view_3_tab0_760
----
670 values hashing to 1dd5630cba141993f797a342bf1357b5

query I rowsort label-2200-3
SELECT pk FROM tab0 WHERE col0 >= 3333
----
670 values hashing to 1dd5630cba141993f797a342bf1357b5

statement ok
DROP VIEW view_1_tab0_760

statement ok
DROP VIEW view_2_tab0_760

statement ok
DROP VIEW view_3_tab0_760

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab1_760 AS SELECT pk, col0 FROM tab1 WHERE col0 >= 3333

statement ok
CREATE VIEW view_2_tab1_760 AS SELECT pk, col0 FROM tab1 WHERE NOT (col0 >= 3333)

statement ok
CREATE VIEW view_3_tab1_760 AS SELECT pk FROM view_1_tab1_760

query II rowsort label-2200-1
SELECT pk, col0 FROM tab1 WHERE col0 >= 3333
----
1340 values hashing to da8dc8a4a391d03dfbdf04cb2c9dbaf6

query II rowsort label-2200-2
SELECT pk, col0 FROM tab1 WHERE NOT (col0 >= 3333)
----
660 values hashing to 36505f77c751a62417afb68f85d1cc66

query II rowsort label-2200-1
SELECT pk, col0 FROM view_1_tab1_760
----
1340 values hashing to da8dc8a4a391d03dfbdf04cb2c9dbaf6

query II rowsort label-2200-2
SELECT pk, col0 FROM view_2_tab1_760
----
660 values hashing to 36505f77c751a62417afb68f85d1cc66

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col0 >= 3333 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col0 >= 3333)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_760 UNION ALL SELECT pk, col0 FROM view_2_tab1_760
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col0 >= 3333 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col0 >= 3333)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_760 UNION SELECT pk, col0 FROM view_2_tab1_760
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-2200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col0 >= 3333 ) AS tab1_760
----
670 values hashing to 1dd5630cba141993f797a342bf1357b5

query I rowsort label-2200-3
SELECT * FROM view_3_tab1_760
----
670 values hashing to 1dd5630cba141993f797a342bf1357b5

query I rowsort label-2200-3
SELECT pk FROM tab1 WHERE col0 >= 3333
----
670 values hashing to 1dd5630cba141993f797a342bf1357b5

statement ok
DROP VIEW view_1_tab1_760

statement ok
DROP VIEW view_2_tab1_760

statement ok
DROP VIEW view_3_tab1_760

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab2_760 AS SELECT pk, col0 FROM tab2 WHERE col0 >= 3333

statement ok
CREATE VIEW view_2_tab2_760 AS SELECT pk, col0 FROM tab2 WHERE NOT (col0 >= 3333)

statement ok
CREATE VIEW view_3_tab2_760 AS SELECT pk FROM view_1_tab2_760

query II rowsort label-2200-1
SELECT pk, col0 FROM tab2 WHERE col0 >= 3333
----
1340 values hashing to da8dc8a4a391d03dfbdf04cb2c9dbaf6

query II rowsort label-2200-2
SELECT pk, col0 FROM tab2 WHERE NOT (col0 >= 3333)
----
660 values hashing to 36505f77c751a62417afb68f85d1cc66

query II rowsort label-2200-1
SELECT pk, col0 FROM view_1_tab2_760
----
1340 values hashing to da8dc8a4a391d03dfbdf04cb2c9dbaf6

query II rowsort label-2200-2
SELECT pk, col0 FROM view_2_tab2_760
----
660 values hashing to 36505f77c751a62417afb68f85d1cc66

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col0 >= 3333 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col0 >= 3333)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_760 UNION ALL SELECT pk, col0 FROM view_2_tab2_760
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col0 >= 3333 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col0 >= 3333)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_760 UNION SELECT pk, col0 FROM view_2_tab2_760
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-2200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col0 >= 3333 ) AS tab2_760
----
670 values hashing to 1dd5630cba141993f797a342bf1357b5

query I rowsort label-2200-3
SELECT * FROM view_3_tab2_760
----
670 values hashing to 1dd5630cba141993f797a342bf1357b5

query I rowsort label-2200-3
SELECT pk FROM tab2 WHERE col0 >= 3333
----
670 values hashing to 1dd5630cba141993f797a342bf1357b5

statement ok
DROP VIEW view_1_tab2_760

statement ok
DROP VIEW view_2_tab2_760

statement ok
DROP VIEW view_3_tab2_760

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab3_760 AS SELECT pk, col0 FROM tab3 WHERE col0 >= 3333

statement ok
CREATE VIEW view_2_tab3_760 AS SELECT pk, col0 FROM tab3 WHERE NOT (col0 >= 3333)

statement ok
CREATE VIEW view_3_tab3_760 AS SELECT pk FROM view_1_tab3_760

query II rowsort label-2200-1
SELECT pk, col0 FROM tab3 WHERE col0 >= 3333
----
1340 values hashing to da8dc8a4a391d03dfbdf04cb2c9dbaf6

query II rowsort label-2200-2
SELECT pk, col0 FROM tab3 WHERE NOT (col0 >= 3333)
----
660 values hashing to 36505f77c751a62417afb68f85d1cc66

query II rowsort label-2200-1
SELECT pk, col0 FROM view_1_tab3_760
----
1340 values hashing to da8dc8a4a391d03dfbdf04cb2c9dbaf6

query II rowsort label-2200-2
SELECT pk, col0 FROM view_2_tab3_760
----
660 values hashing to 36505f77c751a62417afb68f85d1cc66

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col0 >= 3333 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col0 >= 3333)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_760 UNION ALL SELECT pk, col0 FROM view_2_tab3_760
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col0 >= 3333 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col0 >= 3333)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_760 UNION SELECT pk, col0 FROM view_2_tab3_760
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-2200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col0 >= 3333 ) AS tab3_760
----
670 values hashing to 1dd5630cba141993f797a342bf1357b5

query I rowsort label-2200-3
SELECT * FROM view_3_tab3_760
----
670 values hashing to 1dd5630cba141993f797a342bf1357b5

query I rowsort label-2200-3
SELECT pk FROM tab3 WHERE col0 >= 3333
----
670 values hashing to 1dd5630cba141993f797a342bf1357b5

statement ok
DROP VIEW view_1_tab3_760

statement ok
DROP VIEW view_2_tab3_760

statement ok
DROP VIEW view_3_tab3_760

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab4_760 AS SELECT pk, col0 FROM tab4 WHERE col0 >= 3333

statement ok
CREATE VIEW view_2_tab4_760 AS SELECT pk, col0 FROM tab4 WHERE NOT (col0 >= 3333)

statement ok
CREATE VIEW view_3_tab4_760 AS SELECT pk FROM view_1_tab4_760

query II rowsort label-2200-1
SELECT pk, col0 FROM tab4 WHERE col0 >= 3333
----
1340 values hashing to da8dc8a4a391d03dfbdf04cb2c9dbaf6

query II rowsort label-2200-2
SELECT pk, col0 FROM tab4 WHERE NOT (col0 >= 3333)
----
660 values hashing to 36505f77c751a62417afb68f85d1cc66

query II rowsort label-2200-1
SELECT pk, col0 FROM view_1_tab4_760
----
1340 values hashing to da8dc8a4a391d03dfbdf04cb2c9dbaf6

query II rowsort label-2200-2
SELECT pk, col0 FROM view_2_tab4_760
----
660 values hashing to 36505f77c751a62417afb68f85d1cc66

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col0 >= 3333 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col0 >= 3333)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_760 UNION ALL SELECT pk, col0 FROM view_2_tab4_760
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col0 >= 3333 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col0 >= 3333)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_760 UNION SELECT pk, col0 FROM view_2_tab4_760
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-2200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col0 >= 3333 ) AS tab4_760
----
670 values hashing to 1dd5630cba141993f797a342bf1357b5

query I rowsort label-2200-3
SELECT * FROM view_3_tab4_760
----
670 values hashing to 1dd5630cba141993f797a342bf1357b5

query I rowsort label-2200-3
SELECT pk FROM tab4 WHERE col0 >= 3333
----
670 values hashing to 1dd5630cba141993f797a342bf1357b5

statement ok
DROP VIEW view_1_tab4_760

statement ok
DROP VIEW view_2_tab4_760

statement ok
DROP VIEW view_3_tab4_760

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab0_761 AS SELECT pk, col0 FROM tab0 WHERE col0 > 7359

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

statement ok
CREATE VIEW view_3_tab0_761 AS SELECT pk FROM view_1_tab0_761

query II rowsort label-2300-1
SELECT pk, col0 FROM tab0 WHERE col0 > 7359
----
524 values hashing to e49226a75414e89f7e1b3097b8a80a85

query II rowsort label-2300-2
SELECT pk, col0 FROM tab0 WHERE NOT (col0 > 7359)
----
1476 values hashing to 64352f8e63880e7dec78a4e739c3c707

query II rowsort label-2300-1
SELECT pk, col0 FROM view_1_tab0_761
----
524 values hashing to e49226a75414e89f7e1b3097b8a80a85

query II rowsort label-2300-2
SELECT pk, col0 FROM view_2_tab0_761
----
1476 values hashing to 64352f8e63880e7dec78a4e739c3c707

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col0 > 7359 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col0 > 7359)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_761 UNION ALL SELECT pk, col0 FROM view_2_tab0_761
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col0 > 7359 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col0 > 7359)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_761 UNION SELECT pk, col0 FROM view_2_tab0_761
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-2300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col0 > 7359 ) AS tab0_761
----
262 values hashing to 847f54193b9157b8a9029563cb10967f

query I rowsort label-2300-3
SELECT * FROM view_3_tab0_761
----
262 values hashing to 847f54193b9157b8a9029563cb10967f

query I rowsort label-2300-3
SELECT pk FROM tab0 WHERE col0 > 7359
----
262 values hashing to 847f54193b9157b8a9029563cb10967f

statement ok
DROP VIEW view_1_tab0_761

statement ok
DROP VIEW view_2_tab0_761

statement ok
DROP VIEW view_3_tab0_761

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab1_761 AS SELECT pk, col0 FROM tab1 WHERE col0 > 7359

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

statement ok
CREATE VIEW view_3_tab1_761 AS SELECT pk FROM view_1_tab1_761

query II rowsort label-2300-1
SELECT pk, col0 FROM tab1 WHERE col0 > 7359
----
524 values hashing to e49226a75414e89f7e1b3097b8a80a85

query II rowsort label-2300-2
SELECT pk, col0 FROM tab1 WHERE NOT (col0 > 7359)
----
1476 values hashing to 64352f8e63880e7dec78a4e739c3c707

query II rowsort label-2300-1
SELECT pk, col0 FROM view_1_tab1_761
----
524 values hashing to e49226a75414e89f7e1b3097b8a80a85

query II rowsort label-2300-2
SELECT pk, col0 FROM view_2_tab1_761
----
1476 values hashing to 64352f8e63880e7dec78a4e739c3c707

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col0 > 7359 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col0 > 7359)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_761 UNION ALL SELECT pk, col0 FROM view_2_tab1_761
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col0 > 7359 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col0 > 7359)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_761 UNION SELECT pk, col0 FROM view_2_tab1_761
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-2300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col0 > 7359 ) AS tab1_761
----
262 values hashing to 847f54193b9157b8a9029563cb10967f

query I rowsort label-2300-3
SELECT * FROM view_3_tab1_761
----
262 values hashing to 847f54193b9157b8a9029563cb10967f

query I rowsort label-2300-3
SELECT pk FROM tab1 WHERE col0 > 7359
----
262 values hashing to 847f54193b9157b8a9029563cb10967f

statement ok
DROP VIEW view_1_tab1_761

statement ok
DROP VIEW view_2_tab1_761

statement ok
DROP VIEW view_3_tab1_761

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab2_761 AS SELECT pk, col0 FROM tab2 WHERE col0 > 7359

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

statement ok
CREATE VIEW view_3_tab2_761 AS SELECT pk FROM view_1_tab2_761

query II rowsort label-2300-1
SELECT pk, col0 FROM tab2 WHERE col0 > 7359
----
524 values hashing to e49226a75414e89f7e1b3097b8a80a85

query II rowsort label-2300-2
SELECT pk, col0 FROM tab2 WHERE NOT (col0 > 7359)
----
1476 values hashing to 64352f8e63880e7dec78a4e739c3c707

query II rowsort label-2300-1
SELECT pk, col0 FROM view_1_tab2_761
----
524 values hashing to e49226a75414e89f7e1b3097b8a80a85

query II rowsort label-2300-2
SELECT pk, col0 FROM view_2_tab2_761
----
1476 values hashing to 64352f8e63880e7dec78a4e739c3c707

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col0 > 7359 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col0 > 7359)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_761 UNION ALL SELECT pk, col0 FROM view_2_tab2_761
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col0 > 7359 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col0 > 7359)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_761 UNION SELECT pk, col0 FROM view_2_tab2_761
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-2300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col0 > 7359 ) AS tab2_761
----
262 values hashing to 847f54193b9157b8a9029563cb10967f

query I rowsort label-2300-3
SELECT * FROM view_3_tab2_761
----
262 values hashing to 847f54193b9157b8a9029563cb10967f

query I rowsort label-2300-3
SELECT pk FROM tab2 WHERE col0 > 7359
----
262 values hashing to 847f54193b9157b8a9029563cb10967f

statement ok
DROP VIEW view_1_tab2_761

statement ok
DROP VIEW view_2_tab2_761

statement ok
DROP VIEW view_3_tab2_761

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab3_761 AS SELECT pk, col0 FROM tab3 WHERE col0 > 7359

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

statement ok
CREATE VIEW view_3_tab3_761 AS SELECT pk FROM view_1_tab3_761

query II rowsort label-2300-1
SELECT pk, col0 FROM tab3 WHERE col0 > 7359
----
524 values hashing to e49226a75414e89f7e1b3097b8a80a85

query II rowsort label-2300-2
SELECT pk, col0 FROM tab3 WHERE NOT (col0 > 7359)
----
1476 values hashing to 64352f8e63880e7dec78a4e739c3c707

query II rowsort label-2300-1
SELECT pk, col0 FROM view_1_tab3_761
----
524 values hashing to e49226a75414e89f7e1b3097b8a80a85

query II rowsort label-2300-2
SELECT pk, col0 FROM view_2_tab3_761
----
1476 values hashing to 64352f8e63880e7dec78a4e739c3c707

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col0 > 7359 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col0 > 7359)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_761 UNION ALL SELECT pk, col0 FROM view_2_tab3_761
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col0 > 7359 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col0 > 7359)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_761 UNION SELECT pk, col0 FROM view_2_tab3_761
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-2300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col0 > 7359 ) AS tab3_761
----
262 values hashing to 847f54193b9157b8a9029563cb10967f

query I rowsort label-2300-3
SELECT * FROM view_3_tab3_761
----
262 values hashing to 847f54193b9157b8a9029563cb10967f

query I rowsort label-2300-3
SELECT pk FROM tab3 WHERE col0 > 7359
----
262 values hashing to 847f54193b9157b8a9029563cb10967f

statement ok
DROP VIEW view_1_tab3_761

statement ok
DROP VIEW view_2_tab3_761

statement ok
DROP VIEW view_3_tab3_761

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab4_761 AS SELECT pk, col0 FROM tab4 WHERE col0 > 7359

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

statement ok
CREATE VIEW view_3_tab4_761 AS SELECT pk FROM view_1_tab4_761

query II rowsort label-2300-1
SELECT pk, col0 FROM tab4 WHERE col0 > 7359
----
524 values hashing to e49226a75414e89f7e1b3097b8a80a85

query II rowsort label-2300-2
SELECT pk, col0 FROM tab4 WHERE NOT (col0 > 7359)
----
1476 values hashing to 64352f8e63880e7dec78a4e739c3c707

query II rowsort label-2300-1
SELECT pk, col0 FROM view_1_tab4_761
----
524 values hashing to e49226a75414e89f7e1b3097b8a80a85

query II rowsort label-2300-2
SELECT pk, col0 FROM view_2_tab4_761
----
1476 values hashing to 64352f8e63880e7dec78a4e739c3c707

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col0 > 7359 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col0 > 7359)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_761 UNION ALL SELECT pk, col0 FROM view_2_tab4_761
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col0 > 7359 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col0 > 7359)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_761 UNION SELECT pk, col0 FROM view_2_tab4_761
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-2300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col0 > 7359 ) AS tab4_761
----
262 values hashing to 847f54193b9157b8a9029563cb10967f

query I rowsort label-2300-3
SELECT * FROM view_3_tab4_761
----
262 values hashing to 847f54193b9157b8a9029563cb10967f

query I rowsort label-2300-3
SELECT pk FROM tab4 WHERE col0 > 7359
----
262 values hashing to 847f54193b9157b8a9029563cb10967f

statement ok
DROP VIEW view_1_tab4_761

statement ok
DROP VIEW view_2_tab4_761

statement ok
DROP VIEW view_3_tab4_761

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab0_762 AS SELECT pk, col0 FROM tab0 WHERE (col0 = 1660)

statement ok
CREATE VIEW view_2_tab0_762 AS SELECT pk, col0 FROM tab0 WHERE NOT ((col0 = 1660))

statement ok
CREATE VIEW view_3_tab0_762 AS SELECT pk FROM view_1_tab0_762

query II rowsort label-2400-1
SELECT pk, col0 FROM tab0 WHERE (col0 = 1660)
----

query II rowsort label-2400-2
SELECT pk, col0 FROM tab0 WHERE NOT ((col0 = 1660))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-2400-1
SELECT pk, col0 FROM view_1_tab0_762
----

query II rowsort label-2400-2
SELECT pk, col0 FROM view_2_tab0_762
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col0 = 1660) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT ((col0 = 1660))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_762 UNION ALL SELECT pk, col0 FROM view_2_tab0_762
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col0 = 1660) UNION SELECT pk, col0 FROM tab0 WHERE NOT ((col0 = 1660))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_762 UNION SELECT pk, col0 FROM view_2_tab0_762
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-2400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE (col0 = 1660) ) AS tab0_762
----

query I rowsort label-2400-3
SELECT * FROM view_3_tab0_762
----

query I rowsort label-2400-3
SELECT pk FROM tab0 WHERE (col0 = 1660)
----

statement ok
DROP VIEW view_1_tab0_762

statement ok
DROP VIEW view_2_tab0_762

statement ok
DROP VIEW view_3_tab0_762

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab1_762 AS SELECT pk, col0 FROM tab1 WHERE (col0 = 1660)

statement ok
CREATE VIEW view_2_tab1_762 AS SELECT pk, col0 FROM tab1 WHERE NOT ((col0 = 1660))

statement ok
CREATE VIEW view_3_tab1_762 AS SELECT pk FROM view_1_tab1_762

query II rowsort label-2400-1
SELECT pk, col0 FROM tab1 WHERE (col0 = 1660)
----

query II rowsort label-2400-2
SELECT pk, col0 FROM tab1 WHERE NOT ((col0 = 1660))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-2400-1
SELECT pk, col0 FROM view_1_tab1_762
----

query II rowsort label-2400-2
SELECT pk, col0 FROM view_2_tab1_762
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col0 = 1660) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT ((col0 = 1660))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_762 UNION ALL SELECT pk, col0 FROM view_2_tab1_762
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col0 = 1660) UNION SELECT pk, col0 FROM tab1 WHERE NOT ((col0 = 1660))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_762 UNION SELECT pk, col0 FROM view_2_tab1_762
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-2400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE (col0 = 1660) ) AS tab1_762
----

query I rowsort label-2400-3
SELECT * FROM view_3_tab1_762
----

query I rowsort label-2400-3
SELECT pk FROM tab1 WHERE (col0 = 1660)
----

statement ok
DROP VIEW view_1_tab1_762

statement ok
DROP VIEW view_2_tab1_762

statement ok
DROP VIEW view_3_tab1_762

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab2_762 AS SELECT pk, col0 FROM tab2 WHERE (col0 = 1660)

statement ok
CREATE VIEW view_2_tab2_762 AS SELECT pk, col0 FROM tab2 WHERE NOT ((col0 = 1660))

statement ok
CREATE VIEW view_3_tab2_762 AS SELECT pk FROM view_1_tab2_762

query II rowsort label-2400-1
SELECT pk, col0 FROM tab2 WHERE (col0 = 1660)
----

query II rowsort label-2400-2
SELECT pk, col0 FROM tab2 WHERE NOT ((col0 = 1660))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-2400-1
SELECT pk, col0 FROM view_1_tab2_762
----

query II rowsort label-2400-2
SELECT pk, col0 FROM view_2_tab2_762
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col0 = 1660) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT ((col0 = 1660))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_762 UNION ALL SELECT pk, col0 FROM view_2_tab2_762
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col0 = 1660) UNION SELECT pk, col0 FROM tab2 WHERE NOT ((col0 = 1660))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_762 UNION SELECT pk, col0 FROM view_2_tab2_762
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-2400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE (col0 = 1660) ) AS tab2_762
----

query I rowsort label-2400-3
SELECT * FROM view_3_tab2_762
----

query I rowsort label-2400-3
SELECT pk FROM tab2 WHERE (col0 = 1660)
----

statement ok
DROP VIEW view_1_tab2_762

statement ok
DROP VIEW view_2_tab2_762

statement ok
DROP VIEW view_3_tab2_762

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

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

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

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

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

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

statement ok
CREATE VIEW view_1_tab3_762 AS SELECT pk, col0 FROM tab3 WHERE (col0 = 1660)

statement ok
CREATE VIEW view_2_tab3_762 AS SELECT pk, col0 FROM tab3 WHERE NOT ((col0 = 1660))

statement ok
CREATE VIEW view_3_tab3_762 AS SELECT pk FROM view_1_tab3_762

query II rowsort label-2400-1
SELECT pk, col0 FROM tab3 WHERE (col0 = 1660)
----

query II rowsort label-2400-2
SELECT pk, col0 FROM tab3 WHERE NOT ((col0 = 1660))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-2400-1
SELECT pk, col0 FROM view_1_tab3_762
----

query II rowsort label-2400-2
SELECT pk, col0 FROM view_2_tab3_762
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col0 = 1660) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT ((col0 = 1660))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_762 UNION ALL SELECT pk, col0 FROM view_2_tab3_762
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col0 = 1660) UNION SELECT pk, col0 FROM tab3 WHERE NOT ((col0 = 1660))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_762 UNION SELECT pk, col0 FROM view_2_tab3_762
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-2400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE (col0 = 1660) ) AS tab3_762
----

query I rowsort label-2400-3
SELECT * FROM view_3_tab3_762
----

query I rowsort label-2400-3
SELECT pk FROM tab3 WHERE (col0 = 1660)
----

statement ok
DROP VIEW view_1_tab3_762

statement ok
DROP VIEW view_2_tab3_762

statement ok
DROP VIEW view_3_tab3_762

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_762') DROP VIEW view_1_tab4_762

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_762

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_762') DROP VIEW view_2_tab4_762

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_762

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_762') DROP VIEW view_3_tab4_762

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_762

statement ok
CREATE VIEW view_1_tab4_762 AS SELECT pk, col0 FROM tab4 WHERE (col0 = 1660)

statement ok
CREATE VIEW view_2_tab4_762 AS SELECT pk, col0 FROM tab4 WHERE NOT ((col0 = 1660))

statement ok
CREATE VIEW view_3_tab4_762 AS SELECT pk FROM view_1_tab4_762

query II rowsort label-2400-1
SELECT pk, col0 FROM tab4 WHERE (col0 = 1660)
----

query II rowsort label-2400-2
SELECT pk, col0 FROM tab4 WHERE NOT ((col0 = 1660))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-2400-1
SELECT pk, col0 FROM view_1_tab4_762
----

query II rowsort label-2400-2
SELECT pk, col0 FROM view_2_tab4_762
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col0 = 1660) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT ((col0 = 1660))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_762 UNION ALL SELECT pk, col0 FROM view_2_tab4_762
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col0 = 1660) UNION SELECT pk, col0 FROM tab4 WHERE NOT ((col0 = 1660))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_762 UNION SELECT pk, col0 FROM view_2_tab4_762
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-2400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE (col0 = 1660) ) AS tab4_762
----

query I rowsort label-2400-3
SELECT * FROM view_3_tab4_762
----

query I rowsort label-2400-3
SELECT pk FROM tab4 WHERE (col0 = 1660)
----

statement ok
DROP VIEW view_1_tab4_762

statement ok
DROP VIEW view_2_tab4_762

statement ok
DROP VIEW view_3_tab4_762

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_763') DROP VIEW view_1_tab0_763

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_763

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_763') DROP VIEW view_2_tab0_763

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_763

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_763') DROP VIEW view_3_tab0_763

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_763

statement ok
CREATE VIEW view_1_tab0_763 AS SELECT pk, col0 FROM tab0 WHERE ((col3 IN (4353,9997,8979,9700,3323,3746))) AND col0 = 8808

statement ok
CREATE VIEW view_2_tab0_763 AS SELECT pk, col0 FROM tab0 WHERE NOT (((col3 IN (4353,9997,8979,9700,3323,3746))) AND col0 = 8808)

statement ok
CREATE VIEW view_3_tab0_763 AS SELECT pk FROM view_1_tab0_763

query II rowsort label-2500-1
SELECT pk, col0 FROM tab0 WHERE ((col3 IN (4353,9997,8979,9700,3323,3746))) AND col0 = 8808
----

query II rowsort label-2500-2
SELECT pk, col0 FROM tab0 WHERE NOT (((col3 IN (4353,9997,8979,9700,3323,3746))) AND col0 = 8808)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-2500-1
SELECT pk, col0 FROM view_1_tab0_763
----

query II rowsort label-2500-2
SELECT pk, col0 FROM view_2_tab0_763
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE ((col3 IN (4353,9997,8979,9700,3323,3746))) AND col0 = 8808 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (((col3 IN (4353,9997,8979,9700,3323,3746))) AND col0 = 8808)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_763 UNION ALL SELECT pk, col0 FROM view_2_tab0_763
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE ((col3 IN (4353,9997,8979,9700,3323,3746))) AND col0 = 8808 UNION SELECT pk, col0 FROM tab0 WHERE NOT (((col3 IN (4353,9997,8979,9700,3323,3746))) AND col0 = 8808)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_763 UNION SELECT pk, col0 FROM view_2_tab0_763
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-2500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE ((col3 IN (4353,9997,8979,9700,3323,3746))) AND col0 = 8808 ) AS tab0_763
----

query I rowsort label-2500-3
SELECT * FROM view_3_tab0_763
----

query I rowsort label-2500-3
SELECT pk FROM tab0 WHERE ((col3 IN (4353,9997,8979,9700,3323,3746))) AND col0 = 8808
----

statement ok
DROP VIEW view_1_tab0_763

statement ok
DROP VIEW view_2_tab0_763

statement ok
DROP VIEW view_3_tab0_763

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_763') DROP VIEW view_1_tab1_763

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_763

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_763') DROP VIEW view_2_tab1_763

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_763

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_763') DROP VIEW view_3_tab1_763

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_763

statement ok
CREATE VIEW view_1_tab1_763 AS SELECT pk, col0 FROM tab1 WHERE ((col3 IN (4353,9997,8979,9700,3323,3746))) AND col0 = 8808

statement ok
CREATE VIEW view_2_tab1_763 AS SELECT pk, col0 FROM tab1 WHERE NOT (((col3 IN (4353,9997,8979,9700,3323,3746))) AND col0 = 8808)

statement ok
CREATE VIEW view_3_tab1_763 AS SELECT pk FROM view_1_tab1_763

query II rowsort label-2500-1
SELECT pk, col0 FROM tab1 WHERE ((col3 IN (4353,9997,8979,9700,3323,3746))) AND col0 = 8808
----

query II rowsort label-2500-2
SELECT pk, col0 FROM tab1 WHERE NOT (((col3 IN (4353,9997,8979,9700,3323,3746))) AND col0 = 8808)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-2500-1
SELECT pk, col0 FROM view_1_tab1_763
----

query II rowsort label-2500-2
SELECT pk, col0 FROM view_2_tab1_763
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE ((col3 IN (4353,9997,8979,9700,3323,3746))) AND col0 = 8808 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (((col3 IN (4353,9997,8979,9700,3323,3746))) AND col0 = 8808)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_763 UNION ALL SELECT pk, col0 FROM view_2_tab1_763
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE ((col3 IN (4353,9997,8979,9700,3323,3746))) AND col0 = 8808 UNION SELECT pk, col0 FROM tab1 WHERE NOT (((col3 IN (4353,9997,8979,9700,3323,3746))) AND col0 = 8808)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_763 UNION SELECT pk, col0 FROM view_2_tab1_763
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-2500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE ((col3 IN (4353,9997,8979,9700,3323,3746))) AND col0 = 8808 ) AS tab1_763
----

query I rowsort label-2500-3
SELECT * FROM view_3_tab1_763
----

query I rowsort label-2500-3
SELECT pk FROM tab1 WHERE ((col3 IN (4353,9997,8979,9700,3323,3746))) AND col0 = 8808
----

statement ok
DROP VIEW view_1_tab1_763

statement ok
DROP VIEW view_2_tab1_763

statement ok
DROP VIEW view_3_tab1_763

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_763') DROP VIEW view_1_tab2_763

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_763

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_763') DROP VIEW view_2_tab2_763

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_763

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_763') DROP VIEW view_3_tab2_763

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_763

statement ok
CREATE VIEW view_1_tab2_763 AS SELECT pk, col0 FROM tab2 WHERE ((col3 IN (4353,9997,8979,9700,3323,3746))) AND col0 = 8808

statement ok
CREATE VIEW view_2_tab2_763 AS SELECT pk, col0 FROM tab2 WHERE NOT (((col3 IN (4353,9997,8979,9700,3323,3746))) AND col0 = 8808)

statement ok
CREATE VIEW view_3_tab2_763 AS SELECT pk FROM view_1_tab2_763

query II rowsort label-2500-1
SELECT pk, col0 FROM tab2 WHERE ((col3 IN (4353,9997,8979,9700,3323,3746))) AND col0 = 8808
----

query II rowsort label-2500-2
SELECT pk, col0 FROM tab2 WHERE NOT (((col3 IN (4353,9997,8979,9700,3323,3746))) AND col0 = 8808)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-2500-1
SELECT pk, col0 FROM view_1_tab2_763
----

query II rowsort label-2500-2
SELECT pk, col0 FROM view_2_tab2_763
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE ((col3 IN (4353,9997,8979,9700,3323,3746))) AND col0 = 8808 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (((col3 IN (4353,9997,8979,9700,3323,3746))) AND col0 = 8808)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_763 UNION ALL SELECT pk, col0 FROM view_2_tab2_763
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE ((col3 IN (4353,9997,8979,9700,3323,3746))) AND col0 = 8808 UNION SELECT pk, col0 FROM tab2 WHERE NOT (((col3 IN (4353,9997,8979,9700,3323,3746))) AND col0 = 8808)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_763 UNION SELECT pk, col0 FROM view_2_tab2_763
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-2500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE ((col3 IN (4353,9997,8979,9700,3323,3746))) AND col0 = 8808 ) AS tab2_763
----

query I rowsort label-2500-3
SELECT * FROM view_3_tab2_763
----

query I rowsort label-2500-3
SELECT pk FROM tab2 WHERE ((col3 IN (4353,9997,8979,9700,3323,3746))) AND col0 = 8808
----

statement ok
DROP VIEW view_1_tab2_763

statement ok
DROP VIEW view_2_tab2_763

statement ok
DROP VIEW view_3_tab2_763

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_763') DROP VIEW view_1_tab3_763

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_763

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_763') DROP VIEW view_2_tab3_763

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_763

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_763') DROP VIEW view_3_tab3_763

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_763

statement ok
CREATE VIEW view_1_tab3_763 AS SELECT pk, col0 FROM tab3 WHERE ((col3 IN (4353,9997,8979,9700,3323,3746))) AND col0 = 8808

statement ok
CREATE VIEW view_2_tab3_763 AS SELECT pk, col0 FROM tab3 WHERE NOT (((col3 IN (4353,9997,8979,9700,3323,3746))) AND col0 = 8808)

statement ok
CREATE VIEW view_3_tab3_763 AS SELECT pk FROM view_1_tab3_763

query II rowsort label-2500-1
SELECT pk, col0 FROM tab3 WHERE ((col3 IN (4353,9997,8979,9700,3323,3746))) AND col0 = 8808
----

query II rowsort label-2500-2
SELECT pk, col0 FROM tab3 WHERE NOT (((col3 IN (4353,9997,8979,9700,3323,3746))) AND col0 = 8808)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-2500-1
SELECT pk, col0 FROM view_1_tab3_763
----

query II rowsort label-2500-2
SELECT pk, col0 FROM view_2_tab3_763
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE ((col3 IN (4353,9997,8979,9700,3323,3746))) AND col0 = 8808 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (((col3 IN (4353,9997,8979,9700,3323,3746))) AND col0 = 8808)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_763 UNION ALL SELECT pk, col0 FROM view_2_tab3_763
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE ((col3 IN (4353,9997,8979,9700,3323,3746))) AND col0 = 8808 UNION SELECT pk, col0 FROM tab3 WHERE NOT (((col3 IN (4353,9997,8979,9700,3323,3746))) AND col0 = 8808)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_763 UNION SELECT pk, col0 FROM view_2_tab3_763
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-2500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE ((col3 IN (4353,9997,8979,9700,3323,3746))) AND col0 = 8808 ) AS tab3_763
----

query I rowsort label-2500-3
SELECT * FROM view_3_tab3_763
----

query I rowsort label-2500-3
SELECT pk FROM tab3 WHERE ((col3 IN (4353,9997,8979,9700,3323,3746))) AND col0 = 8808
----

statement ok
DROP VIEW view_1_tab3_763

statement ok
DROP VIEW view_2_tab3_763

statement ok
DROP VIEW view_3_tab3_763

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_763') DROP VIEW view_1_tab4_763

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_763

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_763') DROP VIEW view_2_tab4_763

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_763

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_763') DROP VIEW view_3_tab4_763

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_763

statement ok
CREATE VIEW view_1_tab4_763 AS SELECT pk, col0 FROM tab4 WHERE ((col3 IN (4353,9997,8979,9700,3323,3746))) AND col0 = 8808

statement ok
CREATE VIEW view_2_tab4_763 AS SELECT pk, col0 FROM tab4 WHERE NOT (((col3 IN (4353,9997,8979,9700,3323,3746))) AND col0 = 8808)

statement ok
CREATE VIEW view_3_tab4_763 AS SELECT pk FROM view_1_tab4_763

query II rowsort label-2500-1
SELECT pk, col0 FROM tab4 WHERE ((col3 IN (4353,9997,8979,9700,3323,3746))) AND col0 = 8808
----

query II rowsort label-2500-2
SELECT pk, col0 FROM tab4 WHERE NOT (((col3 IN (4353,9997,8979,9700,3323,3746))) AND col0 = 8808)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-2500-1
SELECT pk, col0 FROM view_1_tab4_763
----

query II rowsort label-2500-2
SELECT pk, col0 FROM view_2_tab4_763
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE ((col3 IN (4353,9997,8979,9700,3323,3746))) AND col0 = 8808 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (((col3 IN (4353,9997,8979,9700,3323,3746))) AND col0 = 8808)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_763 UNION ALL SELECT pk, col0 FROM view_2_tab4_763
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE ((col3 IN (4353,9997,8979,9700,3323,3746))) AND col0 = 8808 UNION SELECT pk, col0 FROM tab4 WHERE NOT (((col3 IN (4353,9997,8979,9700,3323,3746))) AND col0 = 8808)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_763 UNION SELECT pk, col0 FROM view_2_tab4_763
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-2500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE ((col3 IN (4353,9997,8979,9700,3323,3746))) AND col0 = 8808 ) AS tab4_763
----

query I rowsort label-2500-3
SELECT * FROM view_3_tab4_763
----

query I rowsort label-2500-3
SELECT pk FROM tab4 WHERE ((col3 IN (4353,9997,8979,9700,3323,3746))) AND col0 = 8808
----

statement ok
DROP VIEW view_1_tab4_763

statement ok
DROP VIEW view_2_tab4_763

statement ok
DROP VIEW view_3_tab4_763

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_764') DROP VIEW view_1_tab0_764

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_764

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_764') DROP VIEW view_2_tab0_764

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_764

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_764') DROP VIEW view_3_tab0_764

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_764

statement ok
CREATE VIEW view_1_tab0_764 AS SELECT pk, col0 FROM tab0 WHERE (col0 < 6636)

statement ok
CREATE VIEW view_2_tab0_764 AS SELECT pk, col0 FROM tab0 WHERE NOT ((col0 < 6636))

statement ok
CREATE VIEW view_3_tab0_764 AS SELECT pk FROM view_1_tab0_764

query II rowsort label-2600-1
SELECT pk, col0 FROM tab0 WHERE (col0 < 6636)
----
1330 values hashing to 283f8a672a6336a891406634fdd22324

query II rowsort label-2600-2
SELECT pk, col0 FROM tab0 WHERE NOT ((col0 < 6636))
----
670 values hashing to 15b8f0d8c854999e0ff7d5e08347ff82

query II rowsort label-2600-1
SELECT pk, col0 FROM view_1_tab0_764
----
1330 values hashing to 283f8a672a6336a891406634fdd22324

query II rowsort label-2600-2
SELECT pk, col0 FROM view_2_tab0_764
----
670 values hashing to 15b8f0d8c854999e0ff7d5e08347ff82

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col0 < 6636) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT ((col0 < 6636))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_764 UNION ALL SELECT pk, col0 FROM view_2_tab0_764
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col0 < 6636) UNION SELECT pk, col0 FROM tab0 WHERE NOT ((col0 < 6636))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_764 UNION SELECT pk, col0 FROM view_2_tab0_764
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-2600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE (col0 < 6636) ) AS tab0_764
----
665 values hashing to 12f6eb8f269caef5a4ae15c194a73539

query I rowsort label-2600-3
SELECT * FROM view_3_tab0_764
----
665 values hashing to 12f6eb8f269caef5a4ae15c194a73539

query I rowsort label-2600-3
SELECT pk FROM tab0 WHERE (col0 < 6636)
----
665 values hashing to 12f6eb8f269caef5a4ae15c194a73539

statement ok
DROP VIEW view_1_tab0_764

statement ok
DROP VIEW view_2_tab0_764

statement ok
DROP VIEW view_3_tab0_764

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_764') DROP VIEW view_1_tab1_764

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_764

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_764') DROP VIEW view_2_tab1_764

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_764

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_764') DROP VIEW view_3_tab1_764

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_764

statement ok
CREATE VIEW view_1_tab1_764 AS SELECT pk, col0 FROM tab1 WHERE (col0 < 6636)

statement ok
CREATE VIEW view_2_tab1_764 AS SELECT pk, col0 FROM tab1 WHERE NOT ((col0 < 6636))

statement ok
CREATE VIEW view_3_tab1_764 AS SELECT pk FROM view_1_tab1_764

query II rowsort label-2600-1
SELECT pk, col0 FROM tab1 WHERE (col0 < 6636)
----
1330 values hashing to 283f8a672a6336a891406634fdd22324

query II rowsort label-2600-2
SELECT pk, col0 FROM tab1 WHERE NOT ((col0 < 6636))
----
670 values hashing to 15b8f0d8c854999e0ff7d5e08347ff82

query II rowsort label-2600-1
SELECT pk, col0 FROM view_1_tab1_764
----
1330 values hashing to 283f8a672a6336a891406634fdd22324

query II rowsort label-2600-2
SELECT pk, col0 FROM view_2_tab1_764
----
670 values hashing to 15b8f0d8c854999e0ff7d5e08347ff82

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col0 < 6636) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT ((col0 < 6636))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_764 UNION ALL SELECT pk, col0 FROM view_2_tab1_764
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col0 < 6636) UNION SELECT pk, col0 FROM tab1 WHERE NOT ((col0 < 6636))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_764 UNION SELECT pk, col0 FROM view_2_tab1_764
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-2600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE (col0 < 6636) ) AS tab1_764
----
665 values hashing to 12f6eb8f269caef5a4ae15c194a73539

query I rowsort label-2600-3
SELECT * FROM view_3_tab1_764
----
665 values hashing to 12f6eb8f269caef5a4ae15c194a73539

query I rowsort label-2600-3
SELECT pk FROM tab1 WHERE (col0 < 6636)
----
665 values hashing to 12f6eb8f269caef5a4ae15c194a73539

statement ok
DROP VIEW view_1_tab1_764

statement ok
DROP VIEW view_2_tab1_764

statement ok
DROP VIEW view_3_tab1_764

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_764') DROP VIEW view_1_tab2_764

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_764

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_764') DROP VIEW view_2_tab2_764

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_764

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_764') DROP VIEW view_3_tab2_764

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_764

statement ok
CREATE VIEW view_1_tab2_764 AS SELECT pk, col0 FROM tab2 WHERE (col0 < 6636)

statement ok
CREATE VIEW view_2_tab2_764 AS SELECT pk, col0 FROM tab2 WHERE NOT ((col0 < 6636))

statement ok
CREATE VIEW view_3_tab2_764 AS SELECT pk FROM view_1_tab2_764

query II rowsort label-2600-1
SELECT pk, col0 FROM tab2 WHERE (col0 < 6636)
----
1330 values hashing to 283f8a672a6336a891406634fdd22324

query II rowsort label-2600-2
SELECT pk, col0 FROM tab2 WHERE NOT ((col0 < 6636))
----
670 values hashing to 15b8f0d8c854999e0ff7d5e08347ff82

query II rowsort label-2600-1
SELECT pk, col0 FROM view_1_tab2_764
----
1330 values hashing to 283f8a672a6336a891406634fdd22324

query II rowsort label-2600-2
SELECT pk, col0 FROM view_2_tab2_764
----
670 values hashing to 15b8f0d8c854999e0ff7d5e08347ff82

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col0 < 6636) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT ((col0 < 6636))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_764 UNION ALL SELECT pk, col0 FROM view_2_tab2_764
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col0 < 6636) UNION SELECT pk, col0 FROM tab2 WHERE NOT ((col0 < 6636))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_764 UNION SELECT pk, col0 FROM view_2_tab2_764
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-2600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE (col0 < 6636) ) AS tab2_764
----
665 values hashing to 12f6eb8f269caef5a4ae15c194a73539

query I rowsort label-2600-3
SELECT * FROM view_3_tab2_764
----
665 values hashing to 12f6eb8f269caef5a4ae15c194a73539

query I rowsort label-2600-3
SELECT pk FROM tab2 WHERE (col0 < 6636)
----
665 values hashing to 12f6eb8f269caef5a4ae15c194a73539

statement ok
DROP VIEW view_1_tab2_764

statement ok
DROP VIEW view_2_tab2_764

statement ok
DROP VIEW view_3_tab2_764

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_764') DROP VIEW view_1_tab3_764

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_764

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_764') DROP VIEW view_2_tab3_764

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_764

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_764') DROP VIEW view_3_tab3_764

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_764

statement ok
CREATE VIEW view_1_tab3_764 AS SELECT pk, col0 FROM tab3 WHERE (col0 < 6636)

statement ok
CREATE VIEW view_2_tab3_764 AS SELECT pk, col0 FROM tab3 WHERE NOT ((col0 < 6636))

statement ok
CREATE VIEW view_3_tab3_764 AS SELECT pk FROM view_1_tab3_764

query II rowsort label-2600-1
SELECT pk, col0 FROM tab3 WHERE (col0 < 6636)
----
1330 values hashing to 283f8a672a6336a891406634fdd22324

query II rowsort label-2600-2
SELECT pk, col0 FROM tab3 WHERE NOT ((col0 < 6636))
----
670 values hashing to 15b8f0d8c854999e0ff7d5e08347ff82

query II rowsort label-2600-1
SELECT pk, col0 FROM view_1_tab3_764
----
1330 values hashing to 283f8a672a6336a891406634fdd22324

query II rowsort label-2600-2
SELECT pk, col0 FROM view_2_tab3_764
----
670 values hashing to 15b8f0d8c854999e0ff7d5e08347ff82

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col0 < 6636) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT ((col0 < 6636))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_764 UNION ALL SELECT pk, col0 FROM view_2_tab3_764
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col0 < 6636) UNION SELECT pk, col0 FROM tab3 WHERE NOT ((col0 < 6636))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_764 UNION SELECT pk, col0 FROM view_2_tab3_764
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-2600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE (col0 < 6636) ) AS tab3_764
----
665 values hashing to 12f6eb8f269caef5a4ae15c194a73539

query I rowsort label-2600-3
SELECT * FROM view_3_tab3_764
----
665 values hashing to 12f6eb8f269caef5a4ae15c194a73539

query I rowsort label-2600-3
SELECT pk FROM tab3 WHERE (col0 < 6636)
----
665 values hashing to 12f6eb8f269caef5a4ae15c194a73539

statement ok
DROP VIEW view_1_tab3_764

statement ok
DROP VIEW view_2_tab3_764

statement ok
DROP VIEW view_3_tab3_764

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_764') DROP VIEW view_1_tab4_764

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_764

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_764') DROP VIEW view_2_tab4_764

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_764

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_764') DROP VIEW view_3_tab4_764

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_764

statement ok
CREATE VIEW view_1_tab4_764 AS SELECT pk, col0 FROM tab4 WHERE (col0 < 6636)

statement ok
CREATE VIEW view_2_tab4_764 AS SELECT pk, col0 FROM tab4 WHERE NOT ((col0 < 6636))

statement ok
CREATE VIEW view_3_tab4_764 AS SELECT pk FROM view_1_tab4_764

query II rowsort label-2600-1
SELECT pk, col0 FROM tab4 WHERE (col0 < 6636)
----
1330 values hashing to 283f8a672a6336a891406634fdd22324

query II rowsort label-2600-2
SELECT pk, col0 FROM tab4 WHERE NOT ((col0 < 6636))
----
670 values hashing to 15b8f0d8c854999e0ff7d5e08347ff82

query II rowsort label-2600-1
SELECT pk, col0 FROM view_1_tab4_764
----
1330 values hashing to 283f8a672a6336a891406634fdd22324

query II rowsort label-2600-2
SELECT pk, col0 FROM view_2_tab4_764
----
670 values hashing to 15b8f0d8c854999e0ff7d5e08347ff82

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col0 < 6636) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT ((col0 < 6636))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_764 UNION ALL SELECT pk, col0 FROM view_2_tab4_764
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col0 < 6636) UNION SELECT pk, col0 FROM tab4 WHERE NOT ((col0 < 6636))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_764 UNION SELECT pk, col0 FROM view_2_tab4_764
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-2600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE (col0 < 6636) ) AS tab4_764
----
665 values hashing to 12f6eb8f269caef5a4ae15c194a73539

query I rowsort label-2600-3
SELECT * FROM view_3_tab4_764
----
665 values hashing to 12f6eb8f269caef5a4ae15c194a73539

query I rowsort label-2600-3
SELECT pk FROM tab4 WHERE (col0 < 6636)
----
665 values hashing to 12f6eb8f269caef5a4ae15c194a73539

statement ok
DROP VIEW view_1_tab4_764

statement ok
DROP VIEW view_2_tab4_764

statement ok
DROP VIEW view_3_tab4_764

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_765') DROP VIEW view_1_tab0_765

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_765

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_765') DROP VIEW view_2_tab0_765

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_765

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_765') DROP VIEW view_3_tab0_765

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_765

statement ok
CREATE VIEW view_1_tab0_765 AS SELECT pk, col0 FROM tab0 WHERE (col3 IN (9749,8825,2254,6180))

statement ok
CREATE VIEW view_2_tab0_765 AS SELECT pk, col0 FROM tab0 WHERE NOT ((col3 IN (9749,8825,2254,6180)))

statement ok
CREATE VIEW view_3_tab0_765 AS SELECT pk FROM view_1_tab0_765

query II rowsort label-2700-1
SELECT pk, col0 FROM tab0 WHERE (col3 IN (9749,8825,2254,6180))
----
2
4814

query II rowsort label-2700-2
SELECT pk, col0 FROM tab0 WHERE NOT ((col3 IN (9749,8825,2254,6180)))
----
1998 values hashing to dccf1a61d789959856040276492242ea

query II rowsort label-2700-1
SELECT pk, col0 FROM view_1_tab0_765
----
2
4814

query II rowsort label-2700-2
SELECT pk, col0 FROM view_2_tab0_765
----
1998 values hashing to dccf1a61d789959856040276492242ea

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col3 IN (9749,8825,2254,6180)) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT ((col3 IN (9749,8825,2254,6180)))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_765 UNION ALL SELECT pk, col0 FROM view_2_tab0_765
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col3 IN (9749,8825,2254,6180)) UNION SELECT pk, col0 FROM tab0 WHERE NOT ((col3 IN (9749,8825,2254,6180)))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_765 UNION SELECT pk, col0 FROM view_2_tab0_765
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-2700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE (col3 IN (9749,8825,2254,6180)) ) AS tab0_765
----
2

query I rowsort label-2700-3
SELECT * FROM view_3_tab0_765
----
2

query I rowsort label-2700-3
SELECT pk FROM tab0 WHERE (col3 IN (9749,8825,2254,6180))
----
2

statement ok
DROP VIEW view_1_tab0_765

statement ok
DROP VIEW view_2_tab0_765

statement ok
DROP VIEW view_3_tab0_765

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_765') DROP VIEW view_1_tab1_765

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_765

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_765') DROP VIEW view_2_tab1_765

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_765

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_765') DROP VIEW view_3_tab1_765

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_765

statement ok
CREATE VIEW view_1_tab1_765 AS SELECT pk, col0 FROM tab1 WHERE (col3 IN (9749,8825,2254,6180))

statement ok
CREATE VIEW view_2_tab1_765 AS SELECT pk, col0 FROM tab1 WHERE NOT ((col3 IN (9749,8825,2254,6180)))

statement ok
CREATE VIEW view_3_tab1_765 AS SELECT pk FROM view_1_tab1_765

query II rowsort label-2700-1
SELECT pk, col0 FROM tab1 WHERE (col3 IN (9749,8825,2254,6180))
----
2
4814

query II rowsort label-2700-2
SELECT pk, col0 FROM tab1 WHERE NOT ((col3 IN (9749,8825,2254,6180)))
----
1998 values hashing to dccf1a61d789959856040276492242ea

query II rowsort label-2700-1
SELECT pk, col0 FROM view_1_tab1_765
----
2
4814

query II rowsort label-2700-2
SELECT pk, col0 FROM view_2_tab1_765
----
1998 values hashing to dccf1a61d789959856040276492242ea

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col3 IN (9749,8825,2254,6180)) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT ((col3 IN (9749,8825,2254,6180)))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_765 UNION ALL SELECT pk, col0 FROM view_2_tab1_765
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col3 IN (9749,8825,2254,6180)) UNION SELECT pk, col0 FROM tab1 WHERE NOT ((col3 IN (9749,8825,2254,6180)))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_765 UNION SELECT pk, col0 FROM view_2_tab1_765
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-2700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE (col3 IN (9749,8825,2254,6180)) ) AS tab1_765
----
2

query I rowsort label-2700-3
SELECT * FROM view_3_tab1_765
----
2

query I rowsort label-2700-3
SELECT pk FROM tab1 WHERE (col3 IN (9749,8825,2254,6180))
----
2

statement ok
DROP VIEW view_1_tab1_765

statement ok
DROP VIEW view_2_tab1_765

statement ok
DROP VIEW view_3_tab1_765

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_765') DROP VIEW view_1_tab2_765

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_765

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_765') DROP VIEW view_2_tab2_765

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_765

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_765') DROP VIEW view_3_tab2_765

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_765

statement ok
CREATE VIEW view_1_tab2_765 AS SELECT pk, col0 FROM tab2 WHERE (col3 IN (9749,8825,2254,6180))

statement ok
CREATE VIEW view_2_tab2_765 AS SELECT pk, col0 FROM tab2 WHERE NOT ((col3 IN (9749,8825,2254,6180)))

statement ok
CREATE VIEW view_3_tab2_765 AS SELECT pk FROM view_1_tab2_765

query II rowsort label-2700-1
SELECT pk, col0 FROM tab2 WHERE (col3 IN (9749,8825,2254,6180))
----
2
4814

query II rowsort label-2700-2
SELECT pk, col0 FROM tab2 WHERE NOT ((col3 IN (9749,8825,2254,6180)))
----
1998 values hashing to dccf1a61d789959856040276492242ea

query II rowsort label-2700-1
SELECT pk, col0 FROM view_1_tab2_765
----
2
4814

query II rowsort label-2700-2
SELECT pk, col0 FROM view_2_tab2_765
----
1998 values hashing to dccf1a61d789959856040276492242ea

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col3 IN (9749,8825,2254,6180)) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT ((col3 IN (9749,8825,2254,6180)))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_765 UNION ALL SELECT pk, col0 FROM view_2_tab2_765
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col3 IN (9749,8825,2254,6180)) UNION SELECT pk, col0 FROM tab2 WHERE NOT ((col3 IN (9749,8825,2254,6180)))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_765 UNION SELECT pk, col0 FROM view_2_tab2_765
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-2700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE (col3 IN (9749,8825,2254,6180)) ) AS tab2_765
----
2

query I rowsort label-2700-3
SELECT * FROM view_3_tab2_765
----
2

query I rowsort label-2700-3
SELECT pk FROM tab2 WHERE (col3 IN (9749,8825,2254,6180))
----
2

statement ok
DROP VIEW view_1_tab2_765

statement ok
DROP VIEW view_2_tab2_765

statement ok
DROP VIEW view_3_tab2_765

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_765') DROP VIEW view_1_tab3_765

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_765

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_765') DROP VIEW view_2_tab3_765

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_765

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_765') DROP VIEW view_3_tab3_765

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_765

statement ok
CREATE VIEW view_1_tab3_765 AS SELECT pk, col0 FROM tab3 WHERE (col3 IN (9749,8825,2254,6180))

statement ok
CREATE VIEW view_2_tab3_765 AS SELECT pk, col0 FROM tab3 WHERE NOT ((col3 IN (9749,8825,2254,6180)))

statement ok
CREATE VIEW view_3_tab3_765 AS SELECT pk FROM view_1_tab3_765

query II rowsort label-2700-1
SELECT pk, col0 FROM tab3 WHERE (col3 IN (9749,8825,2254,6180))
----
2
4814

query II rowsort label-2700-2
SELECT pk, col0 FROM tab3 WHERE NOT ((col3 IN (9749,8825,2254,6180)))
----
1998 values hashing to dccf1a61d789959856040276492242ea

query II rowsort label-2700-1
SELECT pk, col0 FROM view_1_tab3_765
----
2
4814

query II rowsort label-2700-2
SELECT pk, col0 FROM view_2_tab3_765
----
1998 values hashing to dccf1a61d789959856040276492242ea

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col3 IN (9749,8825,2254,6180)) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT ((col3 IN (9749,8825,2254,6180)))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_765 UNION ALL SELECT pk, col0 FROM view_2_tab3_765
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col3 IN (9749,8825,2254,6180)) UNION SELECT pk, col0 FROM tab3 WHERE NOT ((col3 IN (9749,8825,2254,6180)))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_765 UNION SELECT pk, col0 FROM view_2_tab3_765
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-2700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE (col3 IN (9749,8825,2254,6180)) ) AS tab3_765
----
2

query I rowsort label-2700-3
SELECT * FROM view_3_tab3_765
----
2

query I rowsort label-2700-3
SELECT pk FROM tab3 WHERE (col3 IN (9749,8825,2254,6180))
----
2

statement ok
DROP VIEW view_1_tab3_765

statement ok
DROP VIEW view_2_tab3_765

statement ok
DROP VIEW view_3_tab3_765

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_765') DROP VIEW view_1_tab4_765

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_765

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_765') DROP VIEW view_2_tab4_765

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_765

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_765') DROP VIEW view_3_tab4_765

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_765

statement ok
CREATE VIEW view_1_tab4_765 AS SELECT pk, col0 FROM tab4 WHERE (col3 IN (9749,8825,2254,6180))

statement ok
CREATE VIEW view_2_tab4_765 AS SELECT pk, col0 FROM tab4 WHERE NOT ((col3 IN (9749,8825,2254,6180)))

statement ok
CREATE VIEW view_3_tab4_765 AS SELECT pk FROM view_1_tab4_765

query II rowsort label-2700-1
SELECT pk, col0 FROM tab4 WHERE (col3 IN (9749,8825,2254,6180))
----
2
4814

query II rowsort label-2700-2
SELECT pk, col0 FROM tab4 WHERE NOT ((col3 IN (9749,8825,2254,6180)))
----
1998 values hashing to dccf1a61d789959856040276492242ea

query II rowsort label-2700-1
SELECT pk, col0 FROM view_1_tab4_765
----
2
4814

query II rowsort label-2700-2
SELECT pk, col0 FROM view_2_tab4_765
----
1998 values hashing to dccf1a61d789959856040276492242ea

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col3 IN (9749,8825,2254,6180)) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT ((col3 IN (9749,8825,2254,6180)))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_765 UNION ALL SELECT pk, col0 FROM view_2_tab4_765
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col3 IN (9749,8825,2254,6180)) UNION SELECT pk, col0 FROM tab4 WHERE NOT ((col3 IN (9749,8825,2254,6180)))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_765 UNION SELECT pk, col0 FROM view_2_tab4_765
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-2700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE (col3 IN (9749,8825,2254,6180)) ) AS tab4_765
----
2

query I rowsort label-2700-3
SELECT * FROM view_3_tab4_765
----
2

query I rowsort label-2700-3
SELECT pk FROM tab4 WHERE (col3 IN (9749,8825,2254,6180))
----
2

statement ok
DROP VIEW view_1_tab4_765

statement ok
DROP VIEW view_2_tab4_765

statement ok
DROP VIEW view_3_tab4_765

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_766') DROP VIEW view_1_tab0_766

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_766

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_766') DROP VIEW view_2_tab0_766

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_766

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_766') DROP VIEW view_3_tab0_766

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_766

statement ok
CREATE VIEW view_1_tab0_766 AS SELECT pk, col0 FROM tab0 WHERE col4 <= 1977.74

statement ok
CREATE VIEW view_2_tab0_766 AS SELECT pk, col0 FROM tab0 WHERE NOT (col4 <= 1977.74)

statement ok
CREATE VIEW view_3_tab0_766 AS SELECT pk FROM view_1_tab0_766

query II rowsort label-2800-1
SELECT pk, col0 FROM tab0 WHERE col4 <= 1977.74
----
436 values hashing to 552b373fa92693050eb961391ba8487a

query II rowsort label-2800-2
SELECT pk, col0 FROM tab0 WHERE NOT (col4 <= 1977.74)
----
1564 values hashing to 5d7eafa18d4d8148f19be830f46c705d

query II rowsort label-2800-1
SELECT pk, col0 FROM view_1_tab0_766
----
436 values hashing to 552b373fa92693050eb961391ba8487a

query II rowsort label-2800-2
SELECT pk, col0 FROM view_2_tab0_766
----
1564 values hashing to 5d7eafa18d4d8148f19be830f46c705d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col4 <= 1977.74 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col4 <= 1977.74)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_766 UNION ALL SELECT pk, col0 FROM view_2_tab0_766
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col4 <= 1977.74 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col4 <= 1977.74)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_766 UNION SELECT pk, col0 FROM view_2_tab0_766
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-2800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col4 <= 1977.74 ) AS tab0_766
----
218 values hashing to 9dddf319abc55ca48850c1b85b2e1fdc

query I rowsort label-2800-3
SELECT * FROM view_3_tab0_766
----
218 values hashing to 9dddf319abc55ca48850c1b85b2e1fdc

query I rowsort label-2800-3
SELECT pk FROM tab0 WHERE col4 <= 1977.74
----
218 values hashing to 9dddf319abc55ca48850c1b85b2e1fdc

statement ok
DROP VIEW view_1_tab0_766

statement ok
DROP VIEW view_2_tab0_766

statement ok
DROP VIEW view_3_tab0_766

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_766') DROP VIEW view_1_tab1_766

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_766

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_766') DROP VIEW view_2_tab1_766

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_766

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_766') DROP VIEW view_3_tab1_766

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_766

statement ok
CREATE VIEW view_1_tab1_766 AS SELECT pk, col0 FROM tab1 WHERE col4 <= 1977.74

statement ok
CREATE VIEW view_2_tab1_766 AS SELECT pk, col0 FROM tab1 WHERE NOT (col4 <= 1977.74)

statement ok
CREATE VIEW view_3_tab1_766 AS SELECT pk FROM view_1_tab1_766

query II rowsort label-2800-1
SELECT pk, col0 FROM tab1 WHERE col4 <= 1977.74
----
436 values hashing to 552b373fa92693050eb961391ba8487a

query II rowsort label-2800-2
SELECT pk, col0 FROM tab1 WHERE NOT (col4 <= 1977.74)
----
1564 values hashing to 5d7eafa18d4d8148f19be830f46c705d

query II rowsort label-2800-1
SELECT pk, col0 FROM view_1_tab1_766
----
436 values hashing to 552b373fa92693050eb961391ba8487a

query II rowsort label-2800-2
SELECT pk, col0 FROM view_2_tab1_766
----
1564 values hashing to 5d7eafa18d4d8148f19be830f46c705d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col4 <= 1977.74 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col4 <= 1977.74)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_766 UNION ALL SELECT pk, col0 FROM view_2_tab1_766
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col4 <= 1977.74 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col4 <= 1977.74)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_766 UNION SELECT pk, col0 FROM view_2_tab1_766
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-2800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col4 <= 1977.74 ) AS tab1_766
----
218 values hashing to 9dddf319abc55ca48850c1b85b2e1fdc

query I rowsort label-2800-3
SELECT * FROM view_3_tab1_766
----
218 values hashing to 9dddf319abc55ca48850c1b85b2e1fdc

query I rowsort label-2800-3
SELECT pk FROM tab1 WHERE col4 <= 1977.74
----
218 values hashing to 9dddf319abc55ca48850c1b85b2e1fdc

statement ok
DROP VIEW view_1_tab1_766

statement ok
DROP VIEW view_2_tab1_766

statement ok
DROP VIEW view_3_tab1_766

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_766') DROP VIEW view_1_tab2_766

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_766

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_766') DROP VIEW view_2_tab2_766

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_766

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_766') DROP VIEW view_3_tab2_766

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_766

statement ok
CREATE VIEW view_1_tab2_766 AS SELECT pk, col0 FROM tab2 WHERE col4 <= 1977.74

statement ok
CREATE VIEW view_2_tab2_766 AS SELECT pk, col0 FROM tab2 WHERE NOT (col4 <= 1977.74)

statement ok
CREATE VIEW view_3_tab2_766 AS SELECT pk FROM view_1_tab2_766

query II rowsort label-2800-1
SELECT pk, col0 FROM tab2 WHERE col4 <= 1977.74
----
436 values hashing to 552b373fa92693050eb961391ba8487a

query II rowsort label-2800-2
SELECT pk, col0 FROM tab2 WHERE NOT (col4 <= 1977.74)
----
1564 values hashing to 5d7eafa18d4d8148f19be830f46c705d

query II rowsort label-2800-1
SELECT pk, col0 FROM view_1_tab2_766
----
436 values hashing to 552b373fa92693050eb961391ba8487a

query II rowsort label-2800-2
SELECT pk, col0 FROM view_2_tab2_766
----
1564 values hashing to 5d7eafa18d4d8148f19be830f46c705d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col4 <= 1977.74 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col4 <= 1977.74)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_766 UNION ALL SELECT pk, col0 FROM view_2_tab2_766
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col4 <= 1977.74 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col4 <= 1977.74)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_766 UNION SELECT pk, col0 FROM view_2_tab2_766
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-2800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col4 <= 1977.74 ) AS tab2_766
----
218 values hashing to 9dddf319abc55ca48850c1b85b2e1fdc

query I rowsort label-2800-3
SELECT * FROM view_3_tab2_766
----
218 values hashing to 9dddf319abc55ca48850c1b85b2e1fdc

query I rowsort label-2800-3
SELECT pk FROM tab2 WHERE col4 <= 1977.74
----
218 values hashing to 9dddf319abc55ca48850c1b85b2e1fdc

statement ok
DROP VIEW view_1_tab2_766

statement ok
DROP VIEW view_2_tab2_766

statement ok
DROP VIEW view_3_tab2_766

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_766') DROP VIEW view_1_tab3_766

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_766

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_766') DROP VIEW view_2_tab3_766

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_766

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_766') DROP VIEW view_3_tab3_766

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_766

statement ok
CREATE VIEW view_1_tab3_766 AS SELECT pk, col0 FROM tab3 WHERE col4 <= 1977.74

statement ok
CREATE VIEW view_2_tab3_766 AS SELECT pk, col0 FROM tab3 WHERE NOT (col4 <= 1977.74)

statement ok
CREATE VIEW view_3_tab3_766 AS SELECT pk FROM view_1_tab3_766

query II rowsort label-2800-1
SELECT pk, col0 FROM tab3 WHERE col4 <= 1977.74
----
436 values hashing to 552b373fa92693050eb961391ba8487a

query II rowsort label-2800-2
SELECT pk, col0 FROM tab3 WHERE NOT (col4 <= 1977.74)
----
1564 values hashing to 5d7eafa18d4d8148f19be830f46c705d

query II rowsort label-2800-1
SELECT pk, col0 FROM view_1_tab3_766
----
436 values hashing to 552b373fa92693050eb961391ba8487a

query II rowsort label-2800-2
SELECT pk, col0 FROM view_2_tab3_766
----
1564 values hashing to 5d7eafa18d4d8148f19be830f46c705d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col4 <= 1977.74 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col4 <= 1977.74)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_766 UNION ALL SELECT pk, col0 FROM view_2_tab3_766
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col4 <= 1977.74 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col4 <= 1977.74)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_766 UNION SELECT pk, col0 FROM view_2_tab3_766
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-2800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col4 <= 1977.74 ) AS tab3_766
----
218 values hashing to 9dddf319abc55ca48850c1b85b2e1fdc

query I rowsort label-2800-3
SELECT * FROM view_3_tab3_766
----
218 values hashing to 9dddf319abc55ca48850c1b85b2e1fdc

query I rowsort label-2800-3
SELECT pk FROM tab3 WHERE col4 <= 1977.74
----
218 values hashing to 9dddf319abc55ca48850c1b85b2e1fdc

statement ok
DROP VIEW view_1_tab3_766

statement ok
DROP VIEW view_2_tab3_766

statement ok
DROP VIEW view_3_tab3_766

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_766') DROP VIEW view_1_tab4_766

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_766

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_766') DROP VIEW view_2_tab4_766

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_766

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_766') DROP VIEW view_3_tab4_766

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_766

statement ok
CREATE VIEW view_1_tab4_766 AS SELECT pk, col0 FROM tab4 WHERE col4 <= 1977.74

statement ok
CREATE VIEW view_2_tab4_766 AS SELECT pk, col0 FROM tab4 WHERE NOT (col4 <= 1977.74)

statement ok
CREATE VIEW view_3_tab4_766 AS SELECT pk FROM view_1_tab4_766

query II rowsort label-2800-1
SELECT pk, col0 FROM tab4 WHERE col4 <= 1977.74
----
436 values hashing to 552b373fa92693050eb961391ba8487a

query II rowsort label-2800-2
SELECT pk, col0 FROM tab4 WHERE NOT (col4 <= 1977.74)
----
1564 values hashing to 5d7eafa18d4d8148f19be830f46c705d

query II rowsort label-2800-1
SELECT pk, col0 FROM view_1_tab4_766
----
436 values hashing to 552b373fa92693050eb961391ba8487a

query II rowsort label-2800-2
SELECT pk, col0 FROM view_2_tab4_766
----
1564 values hashing to 5d7eafa18d4d8148f19be830f46c705d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col4 <= 1977.74 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col4 <= 1977.74)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_766 UNION ALL SELECT pk, col0 FROM view_2_tab4_766
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col4 <= 1977.74 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col4 <= 1977.74)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_766 UNION SELECT pk, col0 FROM view_2_tab4_766
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-2800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col4 <= 1977.74 ) AS tab4_766
----
218 values hashing to 9dddf319abc55ca48850c1b85b2e1fdc

query I rowsort label-2800-3
SELECT * FROM view_3_tab4_766
----
218 values hashing to 9dddf319abc55ca48850c1b85b2e1fdc

query I rowsort label-2800-3
SELECT pk FROM tab4 WHERE col4 <= 1977.74
----
218 values hashing to 9dddf319abc55ca48850c1b85b2e1fdc

statement ok
DROP VIEW view_1_tab4_766

statement ok
DROP VIEW view_2_tab4_766

statement ok
DROP VIEW view_3_tab4_766

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_767') DROP VIEW view_1_tab0_767

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_767

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_767') DROP VIEW view_2_tab0_767

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_767

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_767') DROP VIEW view_3_tab0_767

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_767

statement ok
CREATE VIEW view_1_tab0_767 AS SELECT pk, col0 FROM tab0 WHERE col0 = 1516 AND col4 = 6015.47 AND col3 > 9614 AND col4 <= 2441.11 OR (((col1 > 2980.64)) OR col3 > 3418 AND col1 = 823.25) AND col1 IS NULL

statement ok
CREATE VIEW view_2_tab0_767 AS SELECT pk, col0 FROM tab0 WHERE NOT (col0 = 1516 AND col4 = 6015.47 AND col3 > 9614 AND col4 <= 2441.11 OR (((col1 > 2980.64)) OR col3 > 3418 AND col1 = 823.25) AND col1 IS NULL)

statement ok
CREATE VIEW view_3_tab0_767 AS SELECT pk FROM view_1_tab0_767

query II rowsort label-2900-1
SELECT pk, col0 FROM tab0 WHERE col0 = 1516 AND col4 = 6015.47 AND col3 > 9614 AND col4 <= 2441.11 OR (((col1 > 2980.64)) OR col3 > 3418 AND col1 = 823.25) AND col1 IS NULL
----

query II rowsort label-2900-2
SELECT pk, col0 FROM tab0 WHERE NOT (col0 = 1516 AND col4 = 6015.47 AND col3 > 9614 AND col4 <= 2441.11 OR (((col1 > 2980.64)) OR col3 > 3418 AND col1 = 823.25) AND col1 IS NULL)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-2900-1
SELECT pk, col0 FROM view_1_tab0_767
----

query II rowsort label-2900-2
SELECT pk, col0 FROM view_2_tab0_767
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col0 = 1516 AND col4 = 6015.47 AND col3 > 9614 AND col4 <= 2441.11 OR (((col1 > 2980.64)) OR col3 > 3418 AND col1 = 823.25) AND col1 IS NULL UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col0 = 1516 AND col4 = 6015.47 AND col3 > 9614 AND col4 <= 2441.11 OR (((col1 > 2980.64)) OR col3 > 3418 AND col1 = 823.25) AND col1 IS NULL)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_767 UNION ALL SELECT pk, col0 FROM view_2_tab0_767
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col0 = 1516 AND col4 = 6015.47 AND col3 > 9614 AND col4 <= 2441.11 OR (((col1 > 2980.64)) OR col3 > 3418 AND col1 = 823.25) AND col1 IS NULL UNION SELECT pk, col0 FROM tab0 WHERE NOT (col0 = 1516 AND col4 = 6015.47 AND col3 > 9614 AND col4 <= 2441.11 OR (((col1 > 2980.64)) OR col3 > 3418 AND col1 = 823.25) AND col1 IS NULL)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_767 UNION SELECT pk, col0 FROM view_2_tab0_767
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-2900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col0 = 1516 AND col4 = 6015.47 AND col3 > 9614 AND col4 <= 2441.11 OR (((col1 > 2980.64)) OR col3 > 3418 AND col1 = 823.25) AND col1 IS NULL ) AS tab0_767
----

query I rowsort label-2900-3
SELECT * FROM view_3_tab0_767
----

query I rowsort label-2900-3
SELECT pk FROM tab0 WHERE col0 = 1516 AND col4 = 6015.47 AND col3 > 9614 AND col4 <= 2441.11 OR (((col1 > 2980.64)) OR col3 > 3418 AND col1 = 823.25) AND col1 IS NULL
----

statement ok
DROP VIEW view_1_tab0_767

statement ok
DROP VIEW view_2_tab0_767

statement ok
DROP VIEW view_3_tab0_767

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_767') DROP VIEW view_1_tab1_767

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_767

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_767') DROP VIEW view_2_tab1_767

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_767

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_767') DROP VIEW view_3_tab1_767

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_767

statement ok
CREATE VIEW view_1_tab1_767 AS SELECT pk, col0 FROM tab1 WHERE col0 = 1516 AND col4 = 6015.47 AND col3 > 9614 AND col4 <= 2441.11 OR (((col1 > 2980.64)) OR col3 > 3418 AND col1 = 823.25) AND col1 IS NULL

statement ok
CREATE VIEW view_2_tab1_767 AS SELECT pk, col0 FROM tab1 WHERE NOT (col0 = 1516 AND col4 = 6015.47 AND col3 > 9614 AND col4 <= 2441.11 OR (((col1 > 2980.64)) OR col3 > 3418 AND col1 = 823.25) AND col1 IS NULL)

statement ok
CREATE VIEW view_3_tab1_767 AS SELECT pk FROM view_1_tab1_767

query II rowsort label-2900-1
SELECT pk, col0 FROM tab1 WHERE col0 = 1516 AND col4 = 6015.47 AND col3 > 9614 AND col4 <= 2441.11 OR (((col1 > 2980.64)) OR col3 > 3418 AND col1 = 823.25) AND col1 IS NULL
----

query II rowsort label-2900-2
SELECT pk, col0 FROM tab1 WHERE NOT (col0 = 1516 AND col4 = 6015.47 AND col3 > 9614 AND col4 <= 2441.11 OR (((col1 > 2980.64)) OR col3 > 3418 AND col1 = 823.25) AND col1 IS NULL)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-2900-1
SELECT pk, col0 FROM view_1_tab1_767
----

query II rowsort label-2900-2
SELECT pk, col0 FROM view_2_tab1_767
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col0 = 1516 AND col4 = 6015.47 AND col3 > 9614 AND col4 <= 2441.11 OR (((col1 > 2980.64)) OR col3 > 3418 AND col1 = 823.25) AND col1 IS NULL UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col0 = 1516 AND col4 = 6015.47 AND col3 > 9614 AND col4 <= 2441.11 OR (((col1 > 2980.64)) OR col3 > 3418 AND col1 = 823.25) AND col1 IS NULL)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_767 UNION ALL SELECT pk, col0 FROM view_2_tab1_767
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col0 = 1516 AND col4 = 6015.47 AND col3 > 9614 AND col4 <= 2441.11 OR (((col1 > 2980.64)) OR col3 > 3418 AND col1 = 823.25) AND col1 IS NULL UNION SELECT pk, col0 FROM tab1 WHERE NOT (col0 = 1516 AND col4 = 6015.47 AND col3 > 9614 AND col4 <= 2441.11 OR (((col1 > 2980.64)) OR col3 > 3418 AND col1 = 823.25) AND col1 IS NULL)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_767 UNION SELECT pk, col0 FROM view_2_tab1_767
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-2900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col0 = 1516 AND col4 = 6015.47 AND col3 > 9614 AND col4 <= 2441.11 OR (((col1 > 2980.64)) OR col3 > 3418 AND col1 = 823.25) AND col1 IS NULL ) AS tab1_767
----

query I rowsort label-2900-3
SELECT * FROM view_3_tab1_767
----

query I rowsort label-2900-3
SELECT pk FROM tab1 WHERE col0 = 1516 AND col4 = 6015.47 AND col3 > 9614 AND col4 <= 2441.11 OR (((col1 > 2980.64)) OR col3 > 3418 AND col1 = 823.25) AND col1 IS NULL
----

statement ok
DROP VIEW view_1_tab1_767

statement ok
DROP VIEW view_2_tab1_767

statement ok
DROP VIEW view_3_tab1_767

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_767') DROP VIEW view_1_tab2_767

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_767

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_767') DROP VIEW view_2_tab2_767

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_767

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_767') DROP VIEW view_3_tab2_767

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_767

statement ok
CREATE VIEW view_1_tab2_767 AS SELECT pk, col0 FROM tab2 WHERE col0 = 1516 AND col4 = 6015.47 AND col3 > 9614 AND col4 <= 2441.11 OR (((col1 > 2980.64)) OR col3 > 3418 AND col1 = 823.25) AND col1 IS NULL

statement ok
CREATE VIEW view_2_tab2_767 AS SELECT pk, col0 FROM tab2 WHERE NOT (col0 = 1516 AND col4 = 6015.47 AND col3 > 9614 AND col4 <= 2441.11 OR (((col1 > 2980.64)) OR col3 > 3418 AND col1 = 823.25) AND col1 IS NULL)

statement ok
CREATE VIEW view_3_tab2_767 AS SELECT pk FROM view_1_tab2_767

query II rowsort label-2900-1
SELECT pk, col0 FROM tab2 WHERE col0 = 1516 AND col4 = 6015.47 AND col3 > 9614 AND col4 <= 2441.11 OR (((col1 > 2980.64)) OR col3 > 3418 AND col1 = 823.25) AND col1 IS NULL
----

query II rowsort label-2900-2
SELECT pk, col0 FROM tab2 WHERE NOT (col0 = 1516 AND col4 = 6015.47 AND col3 > 9614 AND col4 <= 2441.11 OR (((col1 > 2980.64)) OR col3 > 3418 AND col1 = 823.25) AND col1 IS NULL)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-2900-1
SELECT pk, col0 FROM view_1_tab2_767
----

query II rowsort label-2900-2
SELECT pk, col0 FROM view_2_tab2_767
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col0 = 1516 AND col4 = 6015.47 AND col3 > 9614 AND col4 <= 2441.11 OR (((col1 > 2980.64)) OR col3 > 3418 AND col1 = 823.25) AND col1 IS NULL UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col0 = 1516 AND col4 = 6015.47 AND col3 > 9614 AND col4 <= 2441.11 OR (((col1 > 2980.64)) OR col3 > 3418 AND col1 = 823.25) AND col1 IS NULL)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_767 UNION ALL SELECT pk, col0 FROM view_2_tab2_767
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col0 = 1516 AND col4 = 6015.47 AND col3 > 9614 AND col4 <= 2441.11 OR (((col1 > 2980.64)) OR col3 > 3418 AND col1 = 823.25) AND col1 IS NULL UNION SELECT pk, col0 FROM tab2 WHERE NOT (col0 = 1516 AND col4 = 6015.47 AND col3 > 9614 AND col4 <= 2441.11 OR (((col1 > 2980.64)) OR col3 > 3418 AND col1 = 823.25) AND col1 IS NULL)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_767 UNION SELECT pk, col0 FROM view_2_tab2_767
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-2900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col0 = 1516 AND col4 = 6015.47 AND col3 > 9614 AND col4 <= 2441.11 OR (((col1 > 2980.64)) OR col3 > 3418 AND col1 = 823.25) AND col1 IS NULL ) AS tab2_767
----

query I rowsort label-2900-3
SELECT * FROM view_3_tab2_767
----

query I rowsort label-2900-3
SELECT pk FROM tab2 WHERE col0 = 1516 AND col4 = 6015.47 AND col3 > 9614 AND col4 <= 2441.11 OR (((col1 > 2980.64)) OR col3 > 3418 AND col1 = 823.25) AND col1 IS NULL
----

statement ok
DROP VIEW view_1_tab2_767

statement ok
DROP VIEW view_2_tab2_767

statement ok
DROP VIEW view_3_tab2_767

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_767') DROP VIEW view_1_tab3_767

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_767

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_767') DROP VIEW view_2_tab3_767

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_767

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_767') DROP VIEW view_3_tab3_767

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_767

statement ok
CREATE VIEW view_1_tab3_767 AS SELECT pk, col0 FROM tab3 WHERE col0 = 1516 AND col4 = 6015.47 AND col3 > 9614 AND col4 <= 2441.11 OR (((col1 > 2980.64)) OR col3 > 3418 AND col1 = 823.25) AND col1 IS NULL

statement ok
CREATE VIEW view_2_tab3_767 AS SELECT pk, col0 FROM tab3 WHERE NOT (col0 = 1516 AND col4 = 6015.47 AND col3 > 9614 AND col4 <= 2441.11 OR (((col1 > 2980.64)) OR col3 > 3418 AND col1 = 823.25) AND col1 IS NULL)

statement ok
CREATE VIEW view_3_tab3_767 AS SELECT pk FROM view_1_tab3_767

query II rowsort label-2900-1
SELECT pk, col0 FROM tab3 WHERE col0 = 1516 AND col4 = 6015.47 AND col3 > 9614 AND col4 <= 2441.11 OR (((col1 > 2980.64)) OR col3 > 3418 AND col1 = 823.25) AND col1 IS NULL
----

query II rowsort label-2900-2
SELECT pk, col0 FROM tab3 WHERE NOT (col0 = 1516 AND col4 = 6015.47 AND col3 > 9614 AND col4 <= 2441.11 OR (((col1 > 2980.64)) OR col3 > 3418 AND col1 = 823.25) AND col1 IS NULL)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-2900-1
SELECT pk, col0 FROM view_1_tab3_767
----

query II rowsort label-2900-2
SELECT pk, col0 FROM view_2_tab3_767
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col0 = 1516 AND col4 = 6015.47 AND col3 > 9614 AND col4 <= 2441.11 OR (((col1 > 2980.64)) OR col3 > 3418 AND col1 = 823.25) AND col1 IS NULL UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col0 = 1516 AND col4 = 6015.47 AND col3 > 9614 AND col4 <= 2441.11 OR (((col1 > 2980.64)) OR col3 > 3418 AND col1 = 823.25) AND col1 IS NULL)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_767 UNION ALL SELECT pk, col0 FROM view_2_tab3_767
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col0 = 1516 AND col4 = 6015.47 AND col3 > 9614 AND col4 <= 2441.11 OR (((col1 > 2980.64)) OR col3 > 3418 AND col1 = 823.25) AND col1 IS NULL UNION SELECT pk, col0 FROM tab3 WHERE NOT (col0 = 1516 AND col4 = 6015.47 AND col3 > 9614 AND col4 <= 2441.11 OR (((col1 > 2980.64)) OR col3 > 3418 AND col1 = 823.25) AND col1 IS NULL)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_767 UNION SELECT pk, col0 FROM view_2_tab3_767
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-2900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col0 = 1516 AND col4 = 6015.47 AND col3 > 9614 AND col4 <= 2441.11 OR (((col1 > 2980.64)) OR col3 > 3418 AND col1 = 823.25) AND col1 IS NULL ) AS tab3_767
----

query I rowsort label-2900-3
SELECT * FROM view_3_tab3_767
----

query I rowsort label-2900-3
SELECT pk FROM tab3 WHERE col0 = 1516 AND col4 = 6015.47 AND col3 > 9614 AND col4 <= 2441.11 OR (((col1 > 2980.64)) OR col3 > 3418 AND col1 = 823.25) AND col1 IS NULL
----

statement ok
DROP VIEW view_1_tab3_767

statement ok
DROP VIEW view_2_tab3_767

statement ok
DROP VIEW view_3_tab3_767

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_767') DROP VIEW view_1_tab4_767

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_767

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_767') DROP VIEW view_2_tab4_767

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_767

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_767') DROP VIEW view_3_tab4_767

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_767

statement ok
CREATE VIEW view_1_tab4_767 AS SELECT pk, col0 FROM tab4 WHERE col0 = 1516 AND col4 = 6015.47 AND col3 > 9614 AND col4 <= 2441.11 OR (((col1 > 2980.64)) OR col3 > 3418 AND col1 = 823.25) AND col1 IS NULL

statement ok
CREATE VIEW view_2_tab4_767 AS SELECT pk, col0 FROM tab4 WHERE NOT (col0 = 1516 AND col4 = 6015.47 AND col3 > 9614 AND col4 <= 2441.11 OR (((col1 > 2980.64)) OR col3 > 3418 AND col1 = 823.25) AND col1 IS NULL)

statement ok
CREATE VIEW view_3_tab4_767 AS SELECT pk FROM view_1_tab4_767

query II rowsort label-2900-1
SELECT pk, col0 FROM tab4 WHERE col0 = 1516 AND col4 = 6015.47 AND col3 > 9614 AND col4 <= 2441.11 OR (((col1 > 2980.64)) OR col3 > 3418 AND col1 = 823.25) AND col1 IS NULL
----

query II rowsort label-2900-2
SELECT pk, col0 FROM tab4 WHERE NOT (col0 = 1516 AND col4 = 6015.47 AND col3 > 9614 AND col4 <= 2441.11 OR (((col1 > 2980.64)) OR col3 > 3418 AND col1 = 823.25) AND col1 IS NULL)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-2900-1
SELECT pk, col0 FROM view_1_tab4_767
----

query II rowsort label-2900-2
SELECT pk, col0 FROM view_2_tab4_767
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col0 = 1516 AND col4 = 6015.47 AND col3 > 9614 AND col4 <= 2441.11 OR (((col1 > 2980.64)) OR col3 > 3418 AND col1 = 823.25) AND col1 IS NULL UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col0 = 1516 AND col4 = 6015.47 AND col3 > 9614 AND col4 <= 2441.11 OR (((col1 > 2980.64)) OR col3 > 3418 AND col1 = 823.25) AND col1 IS NULL)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_767 UNION ALL SELECT pk, col0 FROM view_2_tab4_767
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col0 = 1516 AND col4 = 6015.47 AND col3 > 9614 AND col4 <= 2441.11 OR (((col1 > 2980.64)) OR col3 > 3418 AND col1 = 823.25) AND col1 IS NULL UNION SELECT pk, col0 FROM tab4 WHERE NOT (col0 = 1516 AND col4 = 6015.47 AND col3 > 9614 AND col4 <= 2441.11 OR (((col1 > 2980.64)) OR col3 > 3418 AND col1 = 823.25) AND col1 IS NULL)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_767 UNION SELECT pk, col0 FROM view_2_tab4_767
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-2900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col0 = 1516 AND col4 = 6015.47 AND col3 > 9614 AND col4 <= 2441.11 OR (((col1 > 2980.64)) OR col3 > 3418 AND col1 = 823.25) AND col1 IS NULL ) AS tab4_767
----

query I rowsort label-2900-3
SELECT * FROM view_3_tab4_767
----

query I rowsort label-2900-3
SELECT pk FROM tab4 WHERE col0 = 1516 AND col4 = 6015.47 AND col3 > 9614 AND col4 <= 2441.11 OR (((col1 > 2980.64)) OR col3 > 3418 AND col1 = 823.25) AND col1 IS NULL
----

statement ok
DROP VIEW view_1_tab4_767

statement ok
DROP VIEW view_2_tab4_767

statement ok
DROP VIEW view_3_tab4_767

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_768') DROP VIEW view_1_tab0_768

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_768

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_768') DROP VIEW view_2_tab0_768

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_768

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_768') DROP VIEW view_3_tab0_768

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_768

statement ok
CREATE VIEW view_1_tab0_768 AS SELECT pk, col0 FROM tab0 WHERE col3 > 5342

statement ok
CREATE VIEW view_2_tab0_768 AS SELECT pk, col0 FROM tab0 WHERE NOT (col3 > 5342)

statement ok
CREATE VIEW view_3_tab0_768 AS SELECT pk FROM view_1_tab0_768

query II rowsort label-3000-1
SELECT pk, col0 FROM tab0 WHERE col3 > 5342
----
930 values hashing to 8f87bfa84de8813f5cb9d3ebec1151c6

query II rowsort label-3000-2
SELECT pk, col0 FROM tab0 WHERE NOT (col3 > 5342)
----
1070 values hashing to 8333e2a04f9082188f479a6bdcdd41e6

query II rowsort label-3000-1
SELECT pk, col0 FROM view_1_tab0_768
----
930 values hashing to 8f87bfa84de8813f5cb9d3ebec1151c6

query II rowsort label-3000-2
SELECT pk, col0 FROM view_2_tab0_768
----
1070 values hashing to 8333e2a04f9082188f479a6bdcdd41e6

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 > 5342 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col3 > 5342)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_768 UNION ALL SELECT pk, col0 FROM view_2_tab0_768
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 > 5342 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col3 > 5342)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_768 UNION SELECT pk, col0 FROM view_2_tab0_768
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-3000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col3 > 5342 ) AS tab0_768
----
465 values hashing to 8c57502a07fd787bcf9f0f3bd4f4980b

query I rowsort label-3000-3
SELECT * FROM view_3_tab0_768
----
465 values hashing to 8c57502a07fd787bcf9f0f3bd4f4980b

query I rowsort label-3000-3
SELECT pk FROM tab0 WHERE col3 > 5342
----
465 values hashing to 8c57502a07fd787bcf9f0f3bd4f4980b

statement ok
DROP VIEW view_1_tab0_768

statement ok
DROP VIEW view_2_tab0_768

statement ok
DROP VIEW view_3_tab0_768

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_768') DROP VIEW view_1_tab1_768

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_768

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_768') DROP VIEW view_2_tab1_768

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_768

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_768') DROP VIEW view_3_tab1_768

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_768

statement ok
CREATE VIEW view_1_tab1_768 AS SELECT pk, col0 FROM tab1 WHERE col3 > 5342

statement ok
CREATE VIEW view_2_tab1_768 AS SELECT pk, col0 FROM tab1 WHERE NOT (col3 > 5342)

statement ok
CREATE VIEW view_3_tab1_768 AS SELECT pk FROM view_1_tab1_768

query II rowsort label-3000-1
SELECT pk, col0 FROM tab1 WHERE col3 > 5342
----
930 values hashing to 8f87bfa84de8813f5cb9d3ebec1151c6

query II rowsort label-3000-2
SELECT pk, col0 FROM tab1 WHERE NOT (col3 > 5342)
----
1070 values hashing to 8333e2a04f9082188f479a6bdcdd41e6

query II rowsort label-3000-1
SELECT pk, col0 FROM view_1_tab1_768
----
930 values hashing to 8f87bfa84de8813f5cb9d3ebec1151c6

query II rowsort label-3000-2
SELECT pk, col0 FROM view_2_tab1_768
----
1070 values hashing to 8333e2a04f9082188f479a6bdcdd41e6

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 > 5342 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col3 > 5342)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_768 UNION ALL SELECT pk, col0 FROM view_2_tab1_768
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 > 5342 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col3 > 5342)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_768 UNION SELECT pk, col0 FROM view_2_tab1_768
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-3000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col3 > 5342 ) AS tab1_768
----
465 values hashing to 8c57502a07fd787bcf9f0f3bd4f4980b

query I rowsort label-3000-3
SELECT * FROM view_3_tab1_768
----
465 values hashing to 8c57502a07fd787bcf9f0f3bd4f4980b

query I rowsort label-3000-3
SELECT pk FROM tab1 WHERE col3 > 5342
----
465 values hashing to 8c57502a07fd787bcf9f0f3bd4f4980b

statement ok
DROP VIEW view_1_tab1_768

statement ok
DROP VIEW view_2_tab1_768

statement ok
DROP VIEW view_3_tab1_768

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_768') DROP VIEW view_1_tab2_768

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_768

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_768') DROP VIEW view_2_tab2_768

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_768

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_768') DROP VIEW view_3_tab2_768

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_768

statement ok
CREATE VIEW view_1_tab2_768 AS SELECT pk, col0 FROM tab2 WHERE col3 > 5342

statement ok
CREATE VIEW view_2_tab2_768 AS SELECT pk, col0 FROM tab2 WHERE NOT (col3 > 5342)

statement ok
CREATE VIEW view_3_tab2_768 AS SELECT pk FROM view_1_tab2_768

query II rowsort label-3000-1
SELECT pk, col0 FROM tab2 WHERE col3 > 5342
----
930 values hashing to 8f87bfa84de8813f5cb9d3ebec1151c6

query II rowsort label-3000-2
SELECT pk, col0 FROM tab2 WHERE NOT (col3 > 5342)
----
1070 values hashing to 8333e2a04f9082188f479a6bdcdd41e6

query II rowsort label-3000-1
SELECT pk, col0 FROM view_1_tab2_768
----
930 values hashing to 8f87bfa84de8813f5cb9d3ebec1151c6

query II rowsort label-3000-2
SELECT pk, col0 FROM view_2_tab2_768
----
1070 values hashing to 8333e2a04f9082188f479a6bdcdd41e6

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 > 5342 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col3 > 5342)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_768 UNION ALL SELECT pk, col0 FROM view_2_tab2_768
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 > 5342 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col3 > 5342)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_768 UNION SELECT pk, col0 FROM view_2_tab2_768
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-3000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col3 > 5342 ) AS tab2_768
----
465 values hashing to 8c57502a07fd787bcf9f0f3bd4f4980b

query I rowsort label-3000-3
SELECT * FROM view_3_tab2_768
----
465 values hashing to 8c57502a07fd787bcf9f0f3bd4f4980b

query I rowsort label-3000-3
SELECT pk FROM tab2 WHERE col3 > 5342
----
465 values hashing to 8c57502a07fd787bcf9f0f3bd4f4980b

statement ok
DROP VIEW view_1_tab2_768

statement ok
DROP VIEW view_2_tab2_768

statement ok
DROP VIEW view_3_tab2_768

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_768') DROP VIEW view_1_tab3_768

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_768

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_768') DROP VIEW view_2_tab3_768

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_768

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_768') DROP VIEW view_3_tab3_768

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_768

statement ok
CREATE VIEW view_1_tab3_768 AS SELECT pk, col0 FROM tab3 WHERE col3 > 5342

statement ok
CREATE VIEW view_2_tab3_768 AS SELECT pk, col0 FROM tab3 WHERE NOT (col3 > 5342)

statement ok
CREATE VIEW view_3_tab3_768 AS SELECT pk FROM view_1_tab3_768

query II rowsort label-3000-1
SELECT pk, col0 FROM tab3 WHERE col3 > 5342
----
930 values hashing to 8f87bfa84de8813f5cb9d3ebec1151c6

query II rowsort label-3000-2
SELECT pk, col0 FROM tab3 WHERE NOT (col3 > 5342)
----
1070 values hashing to 8333e2a04f9082188f479a6bdcdd41e6

query II rowsort label-3000-1
SELECT pk, col0 FROM view_1_tab3_768
----
930 values hashing to 8f87bfa84de8813f5cb9d3ebec1151c6

query II rowsort label-3000-2
SELECT pk, col0 FROM view_2_tab3_768
----
1070 values hashing to 8333e2a04f9082188f479a6bdcdd41e6

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 > 5342 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col3 > 5342)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_768 UNION ALL SELECT pk, col0 FROM view_2_tab3_768
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 > 5342 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col3 > 5342)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_768 UNION SELECT pk, col0 FROM view_2_tab3_768
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-3000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col3 > 5342 ) AS tab3_768
----
465 values hashing to 8c57502a07fd787bcf9f0f3bd4f4980b

query I rowsort label-3000-3
SELECT * FROM view_3_tab3_768
----
465 values hashing to 8c57502a07fd787bcf9f0f3bd4f4980b

query I rowsort label-3000-3
SELECT pk FROM tab3 WHERE col3 > 5342
----
465 values hashing to 8c57502a07fd787bcf9f0f3bd4f4980b

statement ok
DROP VIEW view_1_tab3_768

statement ok
DROP VIEW view_2_tab3_768

statement ok
DROP VIEW view_3_tab3_768

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_768') DROP VIEW view_1_tab4_768

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_768

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_768') DROP VIEW view_2_tab4_768

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_768

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_768') DROP VIEW view_3_tab4_768

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_768

statement ok
CREATE VIEW view_1_tab4_768 AS SELECT pk, col0 FROM tab4 WHERE col3 > 5342

statement ok
CREATE VIEW view_2_tab4_768 AS SELECT pk, col0 FROM tab4 WHERE NOT (col3 > 5342)

statement ok
CREATE VIEW view_3_tab4_768 AS SELECT pk FROM view_1_tab4_768

query II rowsort label-3000-1
SELECT pk, col0 FROM tab4 WHERE col3 > 5342
----
930 values hashing to 8f87bfa84de8813f5cb9d3ebec1151c6

query II rowsort label-3000-2
SELECT pk, col0 FROM tab4 WHERE NOT (col3 > 5342)
----
1070 values hashing to 8333e2a04f9082188f479a6bdcdd41e6

query II rowsort label-3000-1
SELECT pk, col0 FROM view_1_tab4_768
----
930 values hashing to 8f87bfa84de8813f5cb9d3ebec1151c6

query II rowsort label-3000-2
SELECT pk, col0 FROM view_2_tab4_768
----
1070 values hashing to 8333e2a04f9082188f479a6bdcdd41e6

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 > 5342 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col3 > 5342)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_768 UNION ALL SELECT pk, col0 FROM view_2_tab4_768
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 > 5342 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col3 > 5342)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_768 UNION SELECT pk, col0 FROM view_2_tab4_768
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-3000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col3 > 5342 ) AS tab4_768
----
465 values hashing to 8c57502a07fd787bcf9f0f3bd4f4980b

query I rowsort label-3000-3
SELECT * FROM view_3_tab4_768
----
465 values hashing to 8c57502a07fd787bcf9f0f3bd4f4980b

query I rowsort label-3000-3
SELECT pk FROM tab4 WHERE col3 > 5342
----
465 values hashing to 8c57502a07fd787bcf9f0f3bd4f4980b

statement ok
DROP VIEW view_1_tab4_768

statement ok
DROP VIEW view_2_tab4_768

statement ok
DROP VIEW view_3_tab4_768

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_769') DROP VIEW view_1_tab0_769

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_769

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_769') DROP VIEW view_2_tab0_769

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_769

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_769') DROP VIEW view_3_tab0_769

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_769

statement ok
CREATE VIEW view_1_tab0_769 AS SELECT pk, col0 FROM tab0 WHERE (col0 = 3648) AND col4 > 6919.30

statement ok
CREATE VIEW view_2_tab0_769 AS SELECT pk, col0 FROM tab0 WHERE NOT ((col0 = 3648) AND col4 > 6919.30)

statement ok
CREATE VIEW view_3_tab0_769 AS SELECT pk FROM view_1_tab0_769

query II rowsort label-3100-1
SELECT pk, col0 FROM tab0 WHERE (col0 = 3648) AND col4 > 6919.30
----

query II rowsort label-3100-2
SELECT pk, col0 FROM tab0 WHERE NOT ((col0 = 3648) AND col4 > 6919.30)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-3100-1
SELECT pk, col0 FROM view_1_tab0_769
----

query II rowsort label-3100-2
SELECT pk, col0 FROM view_2_tab0_769
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col0 = 3648) AND col4 > 6919.30 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT ((col0 = 3648) AND col4 > 6919.30)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_769 UNION ALL SELECT pk, col0 FROM view_2_tab0_769
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col0 = 3648) AND col4 > 6919.30 UNION SELECT pk, col0 FROM tab0 WHERE NOT ((col0 = 3648) AND col4 > 6919.30)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_769 UNION SELECT pk, col0 FROM view_2_tab0_769
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-3100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE (col0 = 3648) AND col4 > 6919.30 ) AS tab0_769
----

query I rowsort label-3100-3
SELECT * FROM view_3_tab0_769
----

query I rowsort label-3100-3
SELECT pk FROM tab0 WHERE (col0 = 3648) AND col4 > 6919.30
----

statement ok
DROP VIEW view_1_tab0_769

statement ok
DROP VIEW view_2_tab0_769

statement ok
DROP VIEW view_3_tab0_769

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_769') DROP VIEW view_1_tab1_769

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_769

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_769') DROP VIEW view_2_tab1_769

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_769

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_769') DROP VIEW view_3_tab1_769

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_769

statement ok
CREATE VIEW view_1_tab1_769 AS SELECT pk, col0 FROM tab1 WHERE (col0 = 3648) AND col4 > 6919.30

statement ok
CREATE VIEW view_2_tab1_769 AS SELECT pk, col0 FROM tab1 WHERE NOT ((col0 = 3648) AND col4 > 6919.30)

statement ok
CREATE VIEW view_3_tab1_769 AS SELECT pk FROM view_1_tab1_769

query II rowsort label-3100-1
SELECT pk, col0 FROM tab1 WHERE (col0 = 3648) AND col4 > 6919.30
----

query II rowsort label-3100-2
SELECT pk, col0 FROM tab1 WHERE NOT ((col0 = 3648) AND col4 > 6919.30)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-3100-1
SELECT pk, col0 FROM view_1_tab1_769
----

query II rowsort label-3100-2
SELECT pk, col0 FROM view_2_tab1_769
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col0 = 3648) AND col4 > 6919.30 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT ((col0 = 3648) AND col4 > 6919.30)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_769 UNION ALL SELECT pk, col0 FROM view_2_tab1_769
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col0 = 3648) AND col4 > 6919.30 UNION SELECT pk, col0 FROM tab1 WHERE NOT ((col0 = 3648) AND col4 > 6919.30)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_769 UNION SELECT pk, col0 FROM view_2_tab1_769
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-3100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE (col0 = 3648) AND col4 > 6919.30 ) AS tab1_769
----

query I rowsort label-3100-3
SELECT * FROM view_3_tab1_769
----

query I rowsort label-3100-3
SELECT pk FROM tab1 WHERE (col0 = 3648) AND col4 > 6919.30
----

statement ok
DROP VIEW view_1_tab1_769

statement ok
DROP VIEW view_2_tab1_769

statement ok
DROP VIEW view_3_tab1_769

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_769') DROP VIEW view_1_tab2_769

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_769

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_769') DROP VIEW view_2_tab2_769

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_769

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_769') DROP VIEW view_3_tab2_769

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_769

statement ok
CREATE VIEW view_1_tab2_769 AS SELECT pk, col0 FROM tab2 WHERE (col0 = 3648) AND col4 > 6919.30

statement ok
CREATE VIEW view_2_tab2_769 AS SELECT pk, col0 FROM tab2 WHERE NOT ((col0 = 3648) AND col4 > 6919.30)

statement ok
CREATE VIEW view_3_tab2_769 AS SELECT pk FROM view_1_tab2_769

query II rowsort label-3100-1
SELECT pk, col0 FROM tab2 WHERE (col0 = 3648) AND col4 > 6919.30
----

query II rowsort label-3100-2
SELECT pk, col0 FROM tab2 WHERE NOT ((col0 = 3648) AND col4 > 6919.30)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-3100-1
SELECT pk, col0 FROM view_1_tab2_769
----

query II rowsort label-3100-2
SELECT pk, col0 FROM view_2_tab2_769
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col0 = 3648) AND col4 > 6919.30 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT ((col0 = 3648) AND col4 > 6919.30)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_769 UNION ALL SELECT pk, col0 FROM view_2_tab2_769
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col0 = 3648) AND col4 > 6919.30 UNION SELECT pk, col0 FROM tab2 WHERE NOT ((col0 = 3648) AND col4 > 6919.30)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_769 UNION SELECT pk, col0 FROM view_2_tab2_769
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-3100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE (col0 = 3648) AND col4 > 6919.30 ) AS tab2_769
----

query I rowsort label-3100-3
SELECT * FROM view_3_tab2_769
----

query I rowsort label-3100-3
SELECT pk FROM tab2 WHERE (col0 = 3648) AND col4 > 6919.30
----

statement ok
DROP VIEW view_1_tab2_769

statement ok
DROP VIEW view_2_tab2_769

statement ok
DROP VIEW view_3_tab2_769

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_769') DROP VIEW view_1_tab3_769

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_769

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_769') DROP VIEW view_2_tab3_769

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_769

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_769') DROP VIEW view_3_tab3_769

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_769

statement ok
CREATE VIEW view_1_tab3_769 AS SELECT pk, col0 FROM tab3 WHERE (col0 = 3648) AND col4 > 6919.30

statement ok
CREATE VIEW view_2_tab3_769 AS SELECT pk, col0 FROM tab3 WHERE NOT ((col0 = 3648) AND col4 > 6919.30)

statement ok
CREATE VIEW view_3_tab3_769 AS SELECT pk FROM view_1_tab3_769

query II rowsort label-3100-1
SELECT pk, col0 FROM tab3 WHERE (col0 = 3648) AND col4 > 6919.30
----

query II rowsort label-3100-2
SELECT pk, col0 FROM tab3 WHERE NOT ((col0 = 3648) AND col4 > 6919.30)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-3100-1
SELECT pk, col0 FROM view_1_tab3_769
----

query II rowsort label-3100-2
SELECT pk, col0 FROM view_2_tab3_769
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col0 = 3648) AND col4 > 6919.30 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT ((col0 = 3648) AND col4 > 6919.30)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_769 UNION ALL SELECT pk, col0 FROM view_2_tab3_769
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col0 = 3648) AND col4 > 6919.30 UNION SELECT pk, col0 FROM tab3 WHERE NOT ((col0 = 3648) AND col4 > 6919.30)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_769 UNION SELECT pk, col0 FROM view_2_tab3_769
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-3100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE (col0 = 3648) AND col4 > 6919.30 ) AS tab3_769
----

query I rowsort label-3100-3
SELECT * FROM view_3_tab3_769
----

query I rowsort label-3100-3
SELECT pk FROM tab3 WHERE (col0 = 3648) AND col4 > 6919.30
----

statement ok
DROP VIEW view_1_tab3_769

statement ok
DROP VIEW view_2_tab3_769

statement ok
DROP VIEW view_3_tab3_769

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_769') DROP VIEW view_1_tab4_769

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_769

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_769') DROP VIEW view_2_tab4_769

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_769

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_769') DROP VIEW view_3_tab4_769

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_769

statement ok
CREATE VIEW view_1_tab4_769 AS SELECT pk, col0 FROM tab4 WHERE (col0 = 3648) AND col4 > 6919.30

statement ok
CREATE VIEW view_2_tab4_769 AS SELECT pk, col0 FROM tab4 WHERE NOT ((col0 = 3648) AND col4 > 6919.30)

statement ok
CREATE VIEW view_3_tab4_769 AS SELECT pk FROM view_1_tab4_769

query II rowsort label-3100-1
SELECT pk, col0 FROM tab4 WHERE (col0 = 3648) AND col4 > 6919.30
----

query II rowsort label-3100-2
SELECT pk, col0 FROM tab4 WHERE NOT ((col0 = 3648) AND col4 > 6919.30)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-3100-1
SELECT pk, col0 FROM view_1_tab4_769
----

query II rowsort label-3100-2
SELECT pk, col0 FROM view_2_tab4_769
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col0 = 3648) AND col4 > 6919.30 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT ((col0 = 3648) AND col4 > 6919.30)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_769 UNION ALL SELECT pk, col0 FROM view_2_tab4_769
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col0 = 3648) AND col4 > 6919.30 UNION SELECT pk, col0 FROM tab4 WHERE NOT ((col0 = 3648) AND col4 > 6919.30)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_769 UNION SELECT pk, col0 FROM view_2_tab4_769
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-3100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE (col0 = 3648) AND col4 > 6919.30 ) AS tab4_769
----

query I rowsort label-3100-3
SELECT * FROM view_3_tab4_769
----

query I rowsort label-3100-3
SELECT pk FROM tab4 WHERE (col0 = 3648) AND col4 > 6919.30
----

statement ok
DROP VIEW view_1_tab4_769

statement ok
DROP VIEW view_2_tab4_769

statement ok
DROP VIEW view_3_tab4_769

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_770') DROP VIEW view_1_tab0_770

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_770

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_770') DROP VIEW view_2_tab0_770

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_770

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_770') DROP VIEW view_3_tab0_770

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_770

statement ok
CREATE VIEW view_1_tab0_770 AS SELECT pk, col0 FROM tab0 WHERE ((col0 >= 2231))

statement ok
CREATE VIEW view_2_tab0_770 AS SELECT pk, col0 FROM tab0 WHERE NOT (((col0 >= 2231)))

statement ok
CREATE VIEW view_3_tab0_770 AS SELECT pk FROM view_1_tab0_770

query II rowsort label-3200-1
SELECT pk, col0 FROM tab0 WHERE ((col0 >= 2231))
----
1588 values hashing to e14aa2e7be878541c2a38e2cac614937

query II rowsort label-3200-2
SELECT pk, col0 FROM tab0 WHERE NOT (((col0 >= 2231)))
----
412 values hashing to 1ef05ef733f456d4a8638cf35b8b037a

query II rowsort label-3200-1
SELECT pk, col0 FROM view_1_tab0_770
----
1588 values hashing to e14aa2e7be878541c2a38e2cac614937

query II rowsort label-3200-2
SELECT pk, col0 FROM view_2_tab0_770
----
412 values hashing to 1ef05ef733f456d4a8638cf35b8b037a

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE ((col0 >= 2231)) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (((col0 >= 2231)))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_770 UNION ALL SELECT pk, col0 FROM view_2_tab0_770
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE ((col0 >= 2231)) UNION SELECT pk, col0 FROM tab0 WHERE NOT (((col0 >= 2231)))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_770 UNION SELECT pk, col0 FROM view_2_tab0_770
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-3200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE ((col0 >= 2231)) ) AS tab0_770
----
794 values hashing to ef1384ce8c66130078d2977ab52c1cd8

query I rowsort label-3200-3
SELECT * FROM view_3_tab0_770
----
794 values hashing to ef1384ce8c66130078d2977ab52c1cd8

query I rowsort label-3200-3
SELECT pk FROM tab0 WHERE ((col0 >= 2231))
----
794 values hashing to ef1384ce8c66130078d2977ab52c1cd8

statement ok
DROP VIEW view_1_tab0_770

statement ok
DROP VIEW view_2_tab0_770

statement ok
DROP VIEW view_3_tab0_770

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_770') DROP VIEW view_1_tab1_770

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_770

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_770') DROP VIEW view_2_tab1_770

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_770

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_770') DROP VIEW view_3_tab1_770

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_770

statement ok
CREATE VIEW view_1_tab1_770 AS SELECT pk, col0 FROM tab1 WHERE ((col0 >= 2231))

statement ok
CREATE VIEW view_2_tab1_770 AS SELECT pk, col0 FROM tab1 WHERE NOT (((col0 >= 2231)))

statement ok
CREATE VIEW view_3_tab1_770 AS SELECT pk FROM view_1_tab1_770

query II rowsort label-3200-1
SELECT pk, col0 FROM tab1 WHERE ((col0 >= 2231))
----
1588 values hashing to e14aa2e7be878541c2a38e2cac614937

query II rowsort label-3200-2
SELECT pk, col0 FROM tab1 WHERE NOT (((col0 >= 2231)))
----
412 values hashing to 1ef05ef733f456d4a8638cf35b8b037a

query II rowsort label-3200-1
SELECT pk, col0 FROM view_1_tab1_770
----
1588 values hashing to e14aa2e7be878541c2a38e2cac614937

query II rowsort label-3200-2
SELECT pk, col0 FROM view_2_tab1_770
----
412 values hashing to 1ef05ef733f456d4a8638cf35b8b037a

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE ((col0 >= 2231)) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (((col0 >= 2231)))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_770 UNION ALL SELECT pk, col0 FROM view_2_tab1_770
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE ((col0 >= 2231)) UNION SELECT pk, col0 FROM tab1 WHERE NOT (((col0 >= 2231)))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_770 UNION SELECT pk, col0 FROM view_2_tab1_770
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-3200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE ((col0 >= 2231)) ) AS tab1_770
----
794 values hashing to ef1384ce8c66130078d2977ab52c1cd8

query I rowsort label-3200-3
SELECT * FROM view_3_tab1_770
----
794 values hashing to ef1384ce8c66130078d2977ab52c1cd8

query I rowsort label-3200-3
SELECT pk FROM tab1 WHERE ((col0 >= 2231))
----
794 values hashing to ef1384ce8c66130078d2977ab52c1cd8

statement ok
DROP VIEW view_1_tab1_770

statement ok
DROP VIEW view_2_tab1_770

statement ok
DROP VIEW view_3_tab1_770

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_770') DROP VIEW view_1_tab2_770

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_770

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_770') DROP VIEW view_2_tab2_770

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_770

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_770') DROP VIEW view_3_tab2_770

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_770

statement ok
CREATE VIEW view_1_tab2_770 AS SELECT pk, col0 FROM tab2 WHERE ((col0 >= 2231))

statement ok
CREATE VIEW view_2_tab2_770 AS SELECT pk, col0 FROM tab2 WHERE NOT (((col0 >= 2231)))

statement ok
CREATE VIEW view_3_tab2_770 AS SELECT pk FROM view_1_tab2_770

query II rowsort label-3200-1
SELECT pk, col0 FROM tab2 WHERE ((col0 >= 2231))
----
1588 values hashing to e14aa2e7be878541c2a38e2cac614937

query II rowsort label-3200-2
SELECT pk, col0 FROM tab2 WHERE NOT (((col0 >= 2231)))
----
412 values hashing to 1ef05ef733f456d4a8638cf35b8b037a

query II rowsort label-3200-1
SELECT pk, col0 FROM view_1_tab2_770
----
1588 values hashing to e14aa2e7be878541c2a38e2cac614937

query II rowsort label-3200-2
SELECT pk, col0 FROM view_2_tab2_770
----
412 values hashing to 1ef05ef733f456d4a8638cf35b8b037a

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE ((col0 >= 2231)) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (((col0 >= 2231)))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_770 UNION ALL SELECT pk, col0 FROM view_2_tab2_770
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE ((col0 >= 2231)) UNION SELECT pk, col0 FROM tab2 WHERE NOT (((col0 >= 2231)))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_770 UNION SELECT pk, col0 FROM view_2_tab2_770
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-3200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE ((col0 >= 2231)) ) AS tab2_770
----
794 values hashing to ef1384ce8c66130078d2977ab52c1cd8

query I rowsort label-3200-3
SELECT * FROM view_3_tab2_770
----
794 values hashing to ef1384ce8c66130078d2977ab52c1cd8

query I rowsort label-3200-3
SELECT pk FROM tab2 WHERE ((col0 >= 2231))
----
794 values hashing to ef1384ce8c66130078d2977ab52c1cd8

statement ok
DROP VIEW view_1_tab2_770

statement ok
DROP VIEW view_2_tab2_770

statement ok
DROP VIEW view_3_tab2_770

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_770') DROP VIEW view_1_tab3_770

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_770

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_770') DROP VIEW view_2_tab3_770

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_770

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_770') DROP VIEW view_3_tab3_770

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_770

statement ok
CREATE VIEW view_1_tab3_770 AS SELECT pk, col0 FROM tab3 WHERE ((col0 >= 2231))

statement ok
CREATE VIEW view_2_tab3_770 AS SELECT pk, col0 FROM tab3 WHERE NOT (((col0 >= 2231)))

statement ok
CREATE VIEW view_3_tab3_770 AS SELECT pk FROM view_1_tab3_770

query II rowsort label-3200-1
SELECT pk, col0 FROM tab3 WHERE ((col0 >= 2231))
----
1588 values hashing to e14aa2e7be878541c2a38e2cac614937

query II rowsort label-3200-2
SELECT pk, col0 FROM tab3 WHERE NOT (((col0 >= 2231)))
----
412 values hashing to 1ef05ef733f456d4a8638cf35b8b037a

query II rowsort label-3200-1
SELECT pk, col0 FROM view_1_tab3_770
----
1588 values hashing to e14aa2e7be878541c2a38e2cac614937

query II rowsort label-3200-2
SELECT pk, col0 FROM view_2_tab3_770
----
412 values hashing to 1ef05ef733f456d4a8638cf35b8b037a

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE ((col0 >= 2231)) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (((col0 >= 2231)))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_770 UNION ALL SELECT pk, col0 FROM view_2_tab3_770
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE ((col0 >= 2231)) UNION SELECT pk, col0 FROM tab3 WHERE NOT (((col0 >= 2231)))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_770 UNION SELECT pk, col0 FROM view_2_tab3_770
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-3200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE ((col0 >= 2231)) ) AS tab3_770
----
794 values hashing to ef1384ce8c66130078d2977ab52c1cd8

query I rowsort label-3200-3
SELECT * FROM view_3_tab3_770
----
794 values hashing to ef1384ce8c66130078d2977ab52c1cd8

query I rowsort label-3200-3
SELECT pk FROM tab3 WHERE ((col0 >= 2231))
----
794 values hashing to ef1384ce8c66130078d2977ab52c1cd8

statement ok
DROP VIEW view_1_tab3_770

statement ok
DROP VIEW view_2_tab3_770

statement ok
DROP VIEW view_3_tab3_770

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_770') DROP VIEW view_1_tab4_770

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_770

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_770') DROP VIEW view_2_tab4_770

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_770

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_770') DROP VIEW view_3_tab4_770

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_770

statement ok
CREATE VIEW view_1_tab4_770 AS SELECT pk, col0 FROM tab4 WHERE ((col0 >= 2231))

statement ok
CREATE VIEW view_2_tab4_770 AS SELECT pk, col0 FROM tab4 WHERE NOT (((col0 >= 2231)))

statement ok
CREATE VIEW view_3_tab4_770 AS SELECT pk FROM view_1_tab4_770

query II rowsort label-3200-1
SELECT pk, col0 FROM tab4 WHERE ((col0 >= 2231))
----
1588 values hashing to e14aa2e7be878541c2a38e2cac614937

query II rowsort label-3200-2
SELECT pk, col0 FROM tab4 WHERE NOT (((col0 >= 2231)))
----
412 values hashing to 1ef05ef733f456d4a8638cf35b8b037a

query II rowsort label-3200-1
SELECT pk, col0 FROM view_1_tab4_770
----
1588 values hashing to e14aa2e7be878541c2a38e2cac614937

query II rowsort label-3200-2
SELECT pk, col0 FROM view_2_tab4_770
----
412 values hashing to 1ef05ef733f456d4a8638cf35b8b037a

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE ((col0 >= 2231)) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (((col0 >= 2231)))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_770 UNION ALL SELECT pk, col0 FROM view_2_tab4_770
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE ((col0 >= 2231)) UNION SELECT pk, col0 FROM tab4 WHERE NOT (((col0 >= 2231)))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_770 UNION SELECT pk, col0 FROM view_2_tab4_770
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-3200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE ((col0 >= 2231)) ) AS tab4_770
----
794 values hashing to ef1384ce8c66130078d2977ab52c1cd8

query I rowsort label-3200-3
SELECT * FROM view_3_tab4_770
----
794 values hashing to ef1384ce8c66130078d2977ab52c1cd8

query I rowsort label-3200-3
SELECT pk FROM tab4 WHERE ((col0 >= 2231))
----
794 values hashing to ef1384ce8c66130078d2977ab52c1cd8

statement ok
DROP VIEW view_1_tab4_770

statement ok
DROP VIEW view_2_tab4_770

statement ok
DROP VIEW view_3_tab4_770

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_771') DROP VIEW view_1_tab0_771

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_771

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_771') DROP VIEW view_2_tab0_771

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_771

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_771') DROP VIEW view_3_tab0_771

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_771

statement ok
CREATE VIEW view_1_tab0_771 AS SELECT pk, col0 FROM tab0 WHERE (col4 >= 9828.60)

statement ok
CREATE VIEW view_2_tab0_771 AS SELECT pk, col0 FROM tab0 WHERE NOT ((col4 >= 9828.60))

statement ok
CREATE VIEW view_3_tab0_771 AS SELECT pk FROM view_1_tab0_771

query II rowsort label-3300-1
SELECT pk, col0 FROM tab0 WHERE (col4 >= 9828.60)
----
18 values hashing to 8401b9292278f18efe0feb1a6c14ad00

query II rowsort label-3300-2
SELECT pk, col0 FROM tab0 WHERE NOT ((col4 >= 9828.60))
----
1982 values hashing to b8a009d808112ce680d9638a4ad7f885

query II rowsort label-3300-1
SELECT pk, col0 FROM view_1_tab0_771
----
18 values hashing to 8401b9292278f18efe0feb1a6c14ad00

query II rowsort label-3300-2
SELECT pk, col0 FROM view_2_tab0_771
----
1982 values hashing to b8a009d808112ce680d9638a4ad7f885

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col4 >= 9828.60) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT ((col4 >= 9828.60))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_771 UNION ALL SELECT pk, col0 FROM view_2_tab0_771
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col4 >= 9828.60) UNION SELECT pk, col0 FROM tab0 WHERE NOT ((col4 >= 9828.60))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_771 UNION SELECT pk, col0 FROM view_2_tab0_771
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-3300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE (col4 >= 9828.60) ) AS tab0_771
----
9 values hashing to 65c7ef1c2edf373f9f846ba1bb53b003

query I rowsort label-3300-3
SELECT * FROM view_3_tab0_771
----
9 values hashing to 65c7ef1c2edf373f9f846ba1bb53b003

query I rowsort label-3300-3
SELECT pk FROM tab0 WHERE (col4 >= 9828.60)
----
9 values hashing to 65c7ef1c2edf373f9f846ba1bb53b003

statement ok
DROP VIEW view_1_tab0_771

statement ok
DROP VIEW view_2_tab0_771

statement ok
DROP VIEW view_3_tab0_771

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_771') DROP VIEW view_1_tab1_771

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_771

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_771') DROP VIEW view_2_tab1_771

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_771

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_771') DROP VIEW view_3_tab1_771

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_771

statement ok
CREATE VIEW view_1_tab1_771 AS SELECT pk, col0 FROM tab1 WHERE (col4 >= 9828.60)

statement ok
CREATE VIEW view_2_tab1_771 AS SELECT pk, col0 FROM tab1 WHERE NOT ((col4 >= 9828.60))

statement ok
CREATE VIEW view_3_tab1_771 AS SELECT pk FROM view_1_tab1_771

query II rowsort label-3300-1
SELECT pk, col0 FROM tab1 WHERE (col4 >= 9828.60)
----
18 values hashing to 8401b9292278f18efe0feb1a6c14ad00

query II rowsort label-3300-2
SELECT pk, col0 FROM tab1 WHERE NOT ((col4 >= 9828.60))
----
1982 values hashing to b8a009d808112ce680d9638a4ad7f885

query II rowsort label-3300-1
SELECT pk, col0 FROM view_1_tab1_771
----
18 values hashing to 8401b9292278f18efe0feb1a6c14ad00

query II rowsort label-3300-2
SELECT pk, col0 FROM view_2_tab1_771
----
1982 values hashing to b8a009d808112ce680d9638a4ad7f885

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col4 >= 9828.60) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT ((col4 >= 9828.60))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_771 UNION ALL SELECT pk, col0 FROM view_2_tab1_771
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col4 >= 9828.60) UNION SELECT pk, col0 FROM tab1 WHERE NOT ((col4 >= 9828.60))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_771 UNION SELECT pk, col0 FROM view_2_tab1_771
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-3300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE (col4 >= 9828.60) ) AS tab1_771
----
9 values hashing to 65c7ef1c2edf373f9f846ba1bb53b003

query I rowsort label-3300-3
SELECT * FROM view_3_tab1_771
----
9 values hashing to 65c7ef1c2edf373f9f846ba1bb53b003

query I rowsort label-3300-3
SELECT pk FROM tab1 WHERE (col4 >= 9828.60)
----
9 values hashing to 65c7ef1c2edf373f9f846ba1bb53b003

statement ok
DROP VIEW view_1_tab1_771

statement ok
DROP VIEW view_2_tab1_771

statement ok
DROP VIEW view_3_tab1_771

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_771') DROP VIEW view_1_tab2_771

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_771

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_771') DROP VIEW view_2_tab2_771

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_771

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_771') DROP VIEW view_3_tab2_771

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_771

statement ok
CREATE VIEW view_1_tab2_771 AS SELECT pk, col0 FROM tab2 WHERE (col4 >= 9828.60)

statement ok
CREATE VIEW view_2_tab2_771 AS SELECT pk, col0 FROM tab2 WHERE NOT ((col4 >= 9828.60))

statement ok
CREATE VIEW view_3_tab2_771 AS SELECT pk FROM view_1_tab2_771

query II rowsort label-3300-1
SELECT pk, col0 FROM tab2 WHERE (col4 >= 9828.60)
----
18 values hashing to 8401b9292278f18efe0feb1a6c14ad00

query II rowsort label-3300-2
SELECT pk, col0 FROM tab2 WHERE NOT ((col4 >= 9828.60))
----
1982 values hashing to b8a009d808112ce680d9638a4ad7f885

query II rowsort label-3300-1
SELECT pk, col0 FROM view_1_tab2_771
----
18 values hashing to 8401b9292278f18efe0feb1a6c14ad00

query II rowsort label-3300-2
SELECT pk, col0 FROM view_2_tab2_771
----
1982 values hashing to b8a009d808112ce680d9638a4ad7f885

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col4 >= 9828.60) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT ((col4 >= 9828.60))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_771 UNION ALL SELECT pk, col0 FROM view_2_tab2_771
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col4 >= 9828.60) UNION SELECT pk, col0 FROM tab2 WHERE NOT ((col4 >= 9828.60))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_771 UNION SELECT pk, col0 FROM view_2_tab2_771
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-3300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE (col4 >= 9828.60) ) AS tab2_771
----
9 values hashing to 65c7ef1c2edf373f9f846ba1bb53b003

query I rowsort label-3300-3
SELECT * FROM view_3_tab2_771
----
9 values hashing to 65c7ef1c2edf373f9f846ba1bb53b003

query I rowsort label-3300-3
SELECT pk FROM tab2 WHERE (col4 >= 9828.60)
----
9 values hashing to 65c7ef1c2edf373f9f846ba1bb53b003

statement ok
DROP VIEW view_1_tab2_771

statement ok
DROP VIEW view_2_tab2_771

statement ok
DROP VIEW view_3_tab2_771

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_771') DROP VIEW view_1_tab3_771

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_771

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_771') DROP VIEW view_2_tab3_771

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_771

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_771') DROP VIEW view_3_tab3_771

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_771

statement ok
CREATE VIEW view_1_tab3_771 AS SELECT pk, col0 FROM tab3 WHERE (col4 >= 9828.60)

statement ok
CREATE VIEW view_2_tab3_771 AS SELECT pk, col0 FROM tab3 WHERE NOT ((col4 >= 9828.60))

statement ok
CREATE VIEW view_3_tab3_771 AS SELECT pk FROM view_1_tab3_771

query II rowsort label-3300-1
SELECT pk, col0 FROM tab3 WHERE (col4 >= 9828.60)
----
18 values hashing to 8401b9292278f18efe0feb1a6c14ad00

query II rowsort label-3300-2
SELECT pk, col0 FROM tab3 WHERE NOT ((col4 >= 9828.60))
----
1982 values hashing to b8a009d808112ce680d9638a4ad7f885

query II rowsort label-3300-1
SELECT pk, col0 FROM view_1_tab3_771
----
18 values hashing to 8401b9292278f18efe0feb1a6c14ad00

query II rowsort label-3300-2
SELECT pk, col0 FROM view_2_tab3_771
----
1982 values hashing to b8a009d808112ce680d9638a4ad7f885

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col4 >= 9828.60) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT ((col4 >= 9828.60))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_771 UNION ALL SELECT pk, col0 FROM view_2_tab3_771
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col4 >= 9828.60) UNION SELECT pk, col0 FROM tab3 WHERE NOT ((col4 >= 9828.60))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_771 UNION SELECT pk, col0 FROM view_2_tab3_771
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-3300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE (col4 >= 9828.60) ) AS tab3_771
----
9 values hashing to 65c7ef1c2edf373f9f846ba1bb53b003

query I rowsort label-3300-3
SELECT * FROM view_3_tab3_771
----
9 values hashing to 65c7ef1c2edf373f9f846ba1bb53b003

query I rowsort label-3300-3
SELECT pk FROM tab3 WHERE (col4 >= 9828.60)
----
9 values hashing to 65c7ef1c2edf373f9f846ba1bb53b003

statement ok
DROP VIEW view_1_tab3_771

statement ok
DROP VIEW view_2_tab3_771

statement ok
DROP VIEW view_3_tab3_771

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_771') DROP VIEW view_1_tab4_771

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_771

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_771') DROP VIEW view_2_tab4_771

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_771

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_771') DROP VIEW view_3_tab4_771

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_771

statement ok
CREATE VIEW view_1_tab4_771 AS SELECT pk, col0 FROM tab4 WHERE (col4 >= 9828.60)

statement ok
CREATE VIEW view_2_tab4_771 AS SELECT pk, col0 FROM tab4 WHERE NOT ((col4 >= 9828.60))

statement ok
CREATE VIEW view_3_tab4_771 AS SELECT pk FROM view_1_tab4_771

query II rowsort label-3300-1
SELECT pk, col0 FROM tab4 WHERE (col4 >= 9828.60)
----
18 values hashing to 8401b9292278f18efe0feb1a6c14ad00

query II rowsort label-3300-2
SELECT pk, col0 FROM tab4 WHERE NOT ((col4 >= 9828.60))
----
1982 values hashing to b8a009d808112ce680d9638a4ad7f885

query II rowsort label-3300-1
SELECT pk, col0 FROM view_1_tab4_771
----
18 values hashing to 8401b9292278f18efe0feb1a6c14ad00

query II rowsort label-3300-2
SELECT pk, col0 FROM view_2_tab4_771
----
1982 values hashing to b8a009d808112ce680d9638a4ad7f885

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col4 >= 9828.60) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT ((col4 >= 9828.60))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_771 UNION ALL SELECT pk, col0 FROM view_2_tab4_771
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col4 >= 9828.60) UNION SELECT pk, col0 FROM tab4 WHERE NOT ((col4 >= 9828.60))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_771 UNION SELECT pk, col0 FROM view_2_tab4_771
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-3300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE (col4 >= 9828.60) ) AS tab4_771
----
9 values hashing to 65c7ef1c2edf373f9f846ba1bb53b003

query I rowsort label-3300-3
SELECT * FROM view_3_tab4_771
----
9 values hashing to 65c7ef1c2edf373f9f846ba1bb53b003

query I rowsort label-3300-3
SELECT pk FROM tab4 WHERE (col4 >= 9828.60)
----
9 values hashing to 65c7ef1c2edf373f9f846ba1bb53b003

statement ok
DROP VIEW view_1_tab4_771

statement ok
DROP VIEW view_2_tab4_771

statement ok
DROP VIEW view_3_tab4_771

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_772') DROP VIEW view_1_tab0_772

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_772

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_772') DROP VIEW view_2_tab0_772

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_772

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_772') DROP VIEW view_3_tab0_772

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_772

statement ok
CREATE VIEW view_1_tab0_772 AS SELECT pk, col0 FROM tab0 WHERE (col1 < 6956.93)

statement ok
CREATE VIEW view_2_tab0_772 AS SELECT pk, col0 FROM tab0 WHERE NOT ((col1 < 6956.93))

statement ok
CREATE VIEW view_3_tab0_772 AS SELECT pk FROM view_1_tab0_772

query II rowsort label-3400-1
SELECT pk, col0 FROM tab0 WHERE (col1 < 6956.93)
----
1312 values hashing to 8c019b879af110286b0492948fb92fd5

query II rowsort label-3400-2
SELECT pk, col0 FROM tab0 WHERE NOT ((col1 < 6956.93))
----
688 values hashing to 6ddb6a491bb0f1585e3a26be4192fd39

query II rowsort label-3400-1
SELECT pk, col0 FROM view_1_tab0_772
----
1312 values hashing to 8c019b879af110286b0492948fb92fd5

query II rowsort label-3400-2
SELECT pk, col0 FROM view_2_tab0_772
----
688 values hashing to 6ddb6a491bb0f1585e3a26be4192fd39

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col1 < 6956.93) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT ((col1 < 6956.93))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_772 UNION ALL SELECT pk, col0 FROM view_2_tab0_772
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col1 < 6956.93) UNION SELECT pk, col0 FROM tab0 WHERE NOT ((col1 < 6956.93))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_772 UNION SELECT pk, col0 FROM view_2_tab0_772
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-3400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE (col1 < 6956.93) ) AS tab0_772
----
656 values hashing to a71d8205ee3f817455a967e58cad9ae5

query I rowsort label-3400-3
SELECT * FROM view_3_tab0_772
----
656 values hashing to a71d8205ee3f817455a967e58cad9ae5

query I rowsort label-3400-3
SELECT pk FROM tab0 WHERE (col1 < 6956.93)
----
656 values hashing to a71d8205ee3f817455a967e58cad9ae5

statement ok
DROP VIEW view_1_tab0_772

statement ok
DROP VIEW view_2_tab0_772

statement ok
DROP VIEW view_3_tab0_772

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_772') DROP VIEW view_1_tab1_772

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_772

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_772') DROP VIEW view_2_tab1_772

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_772

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_772') DROP VIEW view_3_tab1_772

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_772

statement ok
CREATE VIEW view_1_tab1_772 AS SELECT pk, col0 FROM tab1 WHERE (col1 < 6956.93)

statement ok
CREATE VIEW view_2_tab1_772 AS SELECT pk, col0 FROM tab1 WHERE NOT ((col1 < 6956.93))

statement ok
CREATE VIEW view_3_tab1_772 AS SELECT pk FROM view_1_tab1_772

query II rowsort label-3400-1
SELECT pk, col0 FROM tab1 WHERE (col1 < 6956.93)
----
1312 values hashing to 8c019b879af110286b0492948fb92fd5

query II rowsort label-3400-2
SELECT pk, col0 FROM tab1 WHERE NOT ((col1 < 6956.93))
----
688 values hashing to 6ddb6a491bb0f1585e3a26be4192fd39

query II rowsort label-3400-1
SELECT pk, col0 FROM view_1_tab1_772
----
1312 values hashing to 8c019b879af110286b0492948fb92fd5

query II rowsort label-3400-2
SELECT pk, col0 FROM view_2_tab1_772
----
688 values hashing to 6ddb6a491bb0f1585e3a26be4192fd39

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col1 < 6956.93) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT ((col1 < 6956.93))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_772 UNION ALL SELECT pk, col0 FROM view_2_tab1_772
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col1 < 6956.93) UNION SELECT pk, col0 FROM tab1 WHERE NOT ((col1 < 6956.93))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_772 UNION SELECT pk, col0 FROM view_2_tab1_772
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-3400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE (col1 < 6956.93) ) AS tab1_772
----
656 values hashing to a71d8205ee3f817455a967e58cad9ae5

query I rowsort label-3400-3
SELECT * FROM view_3_tab1_772
----
656 values hashing to a71d8205ee3f817455a967e58cad9ae5

query I rowsort label-3400-3
SELECT pk FROM tab1 WHERE (col1 < 6956.93)
----
656 values hashing to a71d8205ee3f817455a967e58cad9ae5

statement ok
DROP VIEW view_1_tab1_772

statement ok
DROP VIEW view_2_tab1_772

statement ok
DROP VIEW view_3_tab1_772

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_772') DROP VIEW view_1_tab2_772

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_772

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_772') DROP VIEW view_2_tab2_772

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_772

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_772') DROP VIEW view_3_tab2_772

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_772

statement ok
CREATE VIEW view_1_tab2_772 AS SELECT pk, col0 FROM tab2 WHERE (col1 < 6956.93)

statement ok
CREATE VIEW view_2_tab2_772 AS SELECT pk, col0 FROM tab2 WHERE NOT ((col1 < 6956.93))

statement ok
CREATE VIEW view_3_tab2_772 AS SELECT pk FROM view_1_tab2_772

query II rowsort label-3400-1
SELECT pk, col0 FROM tab2 WHERE (col1 < 6956.93)
----
1312 values hashing to 8c019b879af110286b0492948fb92fd5

query II rowsort label-3400-2
SELECT pk, col0 FROM tab2 WHERE NOT ((col1 < 6956.93))
----
688 values hashing to 6ddb6a491bb0f1585e3a26be4192fd39

query II rowsort label-3400-1
SELECT pk, col0 FROM view_1_tab2_772
----
1312 values hashing to 8c019b879af110286b0492948fb92fd5

query II rowsort label-3400-2
SELECT pk, col0 FROM view_2_tab2_772
----
688 values hashing to 6ddb6a491bb0f1585e3a26be4192fd39

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col1 < 6956.93) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT ((col1 < 6956.93))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_772 UNION ALL SELECT pk, col0 FROM view_2_tab2_772
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col1 < 6956.93) UNION SELECT pk, col0 FROM tab2 WHERE NOT ((col1 < 6956.93))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_772 UNION SELECT pk, col0 FROM view_2_tab2_772
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-3400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE (col1 < 6956.93) ) AS tab2_772
----
656 values hashing to a71d8205ee3f817455a967e58cad9ae5

query I rowsort label-3400-3
SELECT * FROM view_3_tab2_772
----
656 values hashing to a71d8205ee3f817455a967e58cad9ae5

query I rowsort label-3400-3
SELECT pk FROM tab2 WHERE (col1 < 6956.93)
----
656 values hashing to a71d8205ee3f817455a967e58cad9ae5

statement ok
DROP VIEW view_1_tab2_772

statement ok
DROP VIEW view_2_tab2_772

statement ok
DROP VIEW view_3_tab2_772

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_772') DROP VIEW view_1_tab3_772

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_772

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_772') DROP VIEW view_2_tab3_772

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_772

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_772') DROP VIEW view_3_tab3_772

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_772

statement ok
CREATE VIEW view_1_tab3_772 AS SELECT pk, col0 FROM tab3 WHERE (col1 < 6956.93)

statement ok
CREATE VIEW view_2_tab3_772 AS SELECT pk, col0 FROM tab3 WHERE NOT ((col1 < 6956.93))

statement ok
CREATE VIEW view_3_tab3_772 AS SELECT pk FROM view_1_tab3_772

query II rowsort label-3400-1
SELECT pk, col0 FROM tab3 WHERE (col1 < 6956.93)
----
1312 values hashing to 8c019b879af110286b0492948fb92fd5

query II rowsort label-3400-2
SELECT pk, col0 FROM tab3 WHERE NOT ((col1 < 6956.93))
----
688 values hashing to 6ddb6a491bb0f1585e3a26be4192fd39

query II rowsort label-3400-1
SELECT pk, col0 FROM view_1_tab3_772
----
1312 values hashing to 8c019b879af110286b0492948fb92fd5

query II rowsort label-3400-2
SELECT pk, col0 FROM view_2_tab3_772
----
688 values hashing to 6ddb6a491bb0f1585e3a26be4192fd39

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col1 < 6956.93) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT ((col1 < 6956.93))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_772 UNION ALL SELECT pk, col0 FROM view_2_tab3_772
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col1 < 6956.93) UNION SELECT pk, col0 FROM tab3 WHERE NOT ((col1 < 6956.93))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_772 UNION SELECT pk, col0 FROM view_2_tab3_772
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-3400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE (col1 < 6956.93) ) AS tab3_772
----
656 values hashing to a71d8205ee3f817455a967e58cad9ae5

query I rowsort label-3400-3
SELECT * FROM view_3_tab3_772
----
656 values hashing to a71d8205ee3f817455a967e58cad9ae5

query I rowsort label-3400-3
SELECT pk FROM tab3 WHERE (col1 < 6956.93)
----
656 values hashing to a71d8205ee3f817455a967e58cad9ae5

statement ok
DROP VIEW view_1_tab3_772

statement ok
DROP VIEW view_2_tab3_772

statement ok
DROP VIEW view_3_tab3_772

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_772') DROP VIEW view_1_tab4_772

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_772

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_772') DROP VIEW view_2_tab4_772

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_772

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_772') DROP VIEW view_3_tab4_772

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_772

statement ok
CREATE VIEW view_1_tab4_772 AS SELECT pk, col0 FROM tab4 WHERE (col1 < 6956.93)

statement ok
CREATE VIEW view_2_tab4_772 AS SELECT pk, col0 FROM tab4 WHERE NOT ((col1 < 6956.93))

statement ok
CREATE VIEW view_3_tab4_772 AS SELECT pk FROM view_1_tab4_772

query II rowsort label-3400-1
SELECT pk, col0 FROM tab4 WHERE (col1 < 6956.93)
----
1312 values hashing to 8c019b879af110286b0492948fb92fd5

query II rowsort label-3400-2
SELECT pk, col0 FROM tab4 WHERE NOT ((col1 < 6956.93))
----
688 values hashing to 6ddb6a491bb0f1585e3a26be4192fd39

query II rowsort label-3400-1
SELECT pk, col0 FROM view_1_tab4_772
----
1312 values hashing to 8c019b879af110286b0492948fb92fd5

query II rowsort label-3400-2
SELECT pk, col0 FROM view_2_tab4_772
----
688 values hashing to 6ddb6a491bb0f1585e3a26be4192fd39

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col1 < 6956.93) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT ((col1 < 6956.93))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_772 UNION ALL SELECT pk, col0 FROM view_2_tab4_772
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col1 < 6956.93) UNION SELECT pk, col0 FROM tab4 WHERE NOT ((col1 < 6956.93))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_772 UNION SELECT pk, col0 FROM view_2_tab4_772
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-3400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE (col1 < 6956.93) ) AS tab4_772
----
656 values hashing to a71d8205ee3f817455a967e58cad9ae5

query I rowsort label-3400-3
SELECT * FROM view_3_tab4_772
----
656 values hashing to a71d8205ee3f817455a967e58cad9ae5

query I rowsort label-3400-3
SELECT pk FROM tab4 WHERE (col1 < 6956.93)
----
656 values hashing to a71d8205ee3f817455a967e58cad9ae5

statement ok
DROP VIEW view_1_tab4_772

statement ok
DROP VIEW view_2_tab4_772

statement ok
DROP VIEW view_3_tab4_772

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_773') DROP VIEW view_1_tab0_773

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_773

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_773') DROP VIEW view_2_tab0_773

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_773

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_773') DROP VIEW view_3_tab0_773

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_773

statement ok
CREATE VIEW view_1_tab0_773 AS SELECT pk, col0 FROM tab0 WHERE col3 >= 7083 AND (col0 > 8739) OR col1 < 306.72 OR col0 > 952

statement ok
CREATE VIEW view_2_tab0_773 AS SELECT pk, col0 FROM tab0 WHERE NOT (col3 >= 7083 AND (col0 > 8739) OR col1 < 306.72 OR col0 > 952)

statement ok
CREATE VIEW view_3_tab0_773 AS SELECT pk FROM view_1_tab0_773

query II rowsort label-3500-1
SELECT pk, col0 FROM tab0 WHERE col3 >= 7083 AND (col0 > 8739) OR col1 < 306.72 OR col0 > 952
----
1826 values hashing to b5ced7c6467e0e3923358da498097be1

query II rowsort label-3500-2
SELECT pk, col0 FROM tab0 WHERE NOT (col3 >= 7083 AND (col0 > 8739) OR col1 < 306.72 OR col0 > 952)
----
174 values hashing to 20324845db0c19abea7831cf26c6b99d

query II rowsort label-3500-1
SELECT pk, col0 FROM view_1_tab0_773
----
1826 values hashing to b5ced7c6467e0e3923358da498097be1

query II rowsort label-3500-2
SELECT pk, col0 FROM view_2_tab0_773
----
174 values hashing to 20324845db0c19abea7831cf26c6b99d

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 >= 7083 AND (col0 > 8739) OR col1 < 306.72 OR col0 > 952 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col3 >= 7083 AND (col0 > 8739) OR col1 < 306.72 OR col0 > 952)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_773 UNION ALL SELECT pk, col0 FROM view_2_tab0_773
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 >= 7083 AND (col0 > 8739) OR col1 < 306.72 OR col0 > 952 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col3 >= 7083 AND (col0 > 8739) OR col1 < 306.72 OR col0 > 952)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_773 UNION SELECT pk, col0 FROM view_2_tab0_773
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-3500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col3 >= 7083 AND (col0 > 8739) OR col1 < 306.72 OR col0 > 952 ) AS tab0_773
----
913 values hashing to 27bb2e047adb4e0a264640fd3abef9ae

query I rowsort label-3500-3
SELECT * FROM view_3_tab0_773
----
913 values hashing to 27bb2e047adb4e0a264640fd3abef9ae

query I rowsort label-3500-3
SELECT pk FROM tab0 WHERE col3 >= 7083 AND (col0 > 8739) OR col1 < 306.72 OR col0 > 952
----
913 values hashing to 27bb2e047adb4e0a264640fd3abef9ae

statement ok
DROP VIEW view_1_tab0_773

statement ok
DROP VIEW view_2_tab0_773

statement ok
DROP VIEW view_3_tab0_773

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_773') DROP VIEW view_1_tab1_773

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_773

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_773') DROP VIEW view_2_tab1_773

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_773

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_773') DROP VIEW view_3_tab1_773

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_773

statement ok
CREATE VIEW view_1_tab1_773 AS SELECT pk, col0 FROM tab1 WHERE col3 >= 7083 AND (col0 > 8739) OR col1 < 306.72 OR col0 > 952

statement ok
CREATE VIEW view_2_tab1_773 AS SELECT pk, col0 FROM tab1 WHERE NOT (col3 >= 7083 AND (col0 > 8739) OR col1 < 306.72 OR col0 > 952)

statement ok
CREATE VIEW view_3_tab1_773 AS SELECT pk FROM view_1_tab1_773

query II rowsort label-3500-1
SELECT pk, col0 FROM tab1 WHERE col3 >= 7083 AND (col0 > 8739) OR col1 < 306.72 OR col0 > 952
----
1826 values hashing to b5ced7c6467e0e3923358da498097be1

query II rowsort label-3500-2
SELECT pk, col0 FROM tab1 WHERE NOT (col3 >= 7083 AND (col0 > 8739) OR col1 < 306.72 OR col0 > 952)
----
174 values hashing to 20324845db0c19abea7831cf26c6b99d

query II rowsort label-3500-1
SELECT pk, col0 FROM view_1_tab1_773
----
1826 values hashing to b5ced7c6467e0e3923358da498097be1

query II rowsort label-3500-2
SELECT pk, col0 FROM view_2_tab1_773
----
174 values hashing to 20324845db0c19abea7831cf26c6b99d

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 >= 7083 AND (col0 > 8739) OR col1 < 306.72 OR col0 > 952 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col3 >= 7083 AND (col0 > 8739) OR col1 < 306.72 OR col0 > 952)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_773 UNION ALL SELECT pk, col0 FROM view_2_tab1_773
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 >= 7083 AND (col0 > 8739) OR col1 < 306.72 OR col0 > 952 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col3 >= 7083 AND (col0 > 8739) OR col1 < 306.72 OR col0 > 952)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_773 UNION SELECT pk, col0 FROM view_2_tab1_773
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-3500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col3 >= 7083 AND (col0 > 8739) OR col1 < 306.72 OR col0 > 952 ) AS tab1_773
----
913 values hashing to 27bb2e047adb4e0a264640fd3abef9ae

query I rowsort label-3500-3
SELECT * FROM view_3_tab1_773
----
913 values hashing to 27bb2e047adb4e0a264640fd3abef9ae

query I rowsort label-3500-3
SELECT pk FROM tab1 WHERE col3 >= 7083 AND (col0 > 8739) OR col1 < 306.72 OR col0 > 952
----
913 values hashing to 27bb2e047adb4e0a264640fd3abef9ae

statement ok
DROP VIEW view_1_tab1_773

statement ok
DROP VIEW view_2_tab1_773

statement ok
DROP VIEW view_3_tab1_773

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_773') DROP VIEW view_1_tab2_773

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_773

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_773') DROP VIEW view_2_tab2_773

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_773

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_773') DROP VIEW view_3_tab2_773

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_773

statement ok
CREATE VIEW view_1_tab2_773 AS SELECT pk, col0 FROM tab2 WHERE col3 >= 7083 AND (col0 > 8739) OR col1 < 306.72 OR col0 > 952

statement ok
CREATE VIEW view_2_tab2_773 AS SELECT pk, col0 FROM tab2 WHERE NOT (col3 >= 7083 AND (col0 > 8739) OR col1 < 306.72 OR col0 > 952)

statement ok
CREATE VIEW view_3_tab2_773 AS SELECT pk FROM view_1_tab2_773

query II rowsort label-3500-1
SELECT pk, col0 FROM tab2 WHERE col3 >= 7083 AND (col0 > 8739) OR col1 < 306.72 OR col0 > 952
----
1826 values hashing to b5ced7c6467e0e3923358da498097be1

query II rowsort label-3500-2
SELECT pk, col0 FROM tab2 WHERE NOT (col3 >= 7083 AND (col0 > 8739) OR col1 < 306.72 OR col0 > 952)
----
174 values hashing to 20324845db0c19abea7831cf26c6b99d

query II rowsort label-3500-1
SELECT pk, col0 FROM view_1_tab2_773
----
1826 values hashing to b5ced7c6467e0e3923358da498097be1

query II rowsort label-3500-2
SELECT pk, col0 FROM view_2_tab2_773
----
174 values hashing to 20324845db0c19abea7831cf26c6b99d

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 >= 7083 AND (col0 > 8739) OR col1 < 306.72 OR col0 > 952 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col3 >= 7083 AND (col0 > 8739) OR col1 < 306.72 OR col0 > 952)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_773 UNION ALL SELECT pk, col0 FROM view_2_tab2_773
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 >= 7083 AND (col0 > 8739) OR col1 < 306.72 OR col0 > 952 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col3 >= 7083 AND (col0 > 8739) OR col1 < 306.72 OR col0 > 952)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_773 UNION SELECT pk, col0 FROM view_2_tab2_773
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-3500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col3 >= 7083 AND (col0 > 8739) OR col1 < 306.72 OR col0 > 952 ) AS tab2_773
----
913 values hashing to 27bb2e047adb4e0a264640fd3abef9ae

query I rowsort label-3500-3
SELECT * FROM view_3_tab2_773
----
913 values hashing to 27bb2e047adb4e0a264640fd3abef9ae

query I rowsort label-3500-3
SELECT pk FROM tab2 WHERE col3 >= 7083 AND (col0 > 8739) OR col1 < 306.72 OR col0 > 952
----
913 values hashing to 27bb2e047adb4e0a264640fd3abef9ae

statement ok
DROP VIEW view_1_tab2_773

statement ok
DROP VIEW view_2_tab2_773

statement ok
DROP VIEW view_3_tab2_773

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_773') DROP VIEW view_1_tab3_773

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_773

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_773') DROP VIEW view_2_tab3_773

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_773

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_773') DROP VIEW view_3_tab3_773

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_773

statement ok
CREATE VIEW view_1_tab3_773 AS SELECT pk, col0 FROM tab3 WHERE col3 >= 7083 AND (col0 > 8739) OR col1 < 306.72 OR col0 > 952

statement ok
CREATE VIEW view_2_tab3_773 AS SELECT pk, col0 FROM tab3 WHERE NOT (col3 >= 7083 AND (col0 > 8739) OR col1 < 306.72 OR col0 > 952)

statement ok
CREATE VIEW view_3_tab3_773 AS SELECT pk FROM view_1_tab3_773

query II rowsort label-3500-1
SELECT pk, col0 FROM tab3 WHERE col3 >= 7083 AND (col0 > 8739) OR col1 < 306.72 OR col0 > 952
----
1826 values hashing to b5ced7c6467e0e3923358da498097be1

query II rowsort label-3500-2
SELECT pk, col0 FROM tab3 WHERE NOT (col3 >= 7083 AND (col0 > 8739) OR col1 < 306.72 OR col0 > 952)
----
174 values hashing to 20324845db0c19abea7831cf26c6b99d

query II rowsort label-3500-1
SELECT pk, col0 FROM view_1_tab3_773
----
1826 values hashing to b5ced7c6467e0e3923358da498097be1

query II rowsort label-3500-2
SELECT pk, col0 FROM view_2_tab3_773
----
174 values hashing to 20324845db0c19abea7831cf26c6b99d

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 >= 7083 AND (col0 > 8739) OR col1 < 306.72 OR col0 > 952 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col3 >= 7083 AND (col0 > 8739) OR col1 < 306.72 OR col0 > 952)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_773 UNION ALL SELECT pk, col0 FROM view_2_tab3_773
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 >= 7083 AND (col0 > 8739) OR col1 < 306.72 OR col0 > 952 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col3 >= 7083 AND (col0 > 8739) OR col1 < 306.72 OR col0 > 952)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_773 UNION SELECT pk, col0 FROM view_2_tab3_773
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-3500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col3 >= 7083 AND (col0 > 8739) OR col1 < 306.72 OR col0 > 952 ) AS tab3_773
----
913 values hashing to 27bb2e047adb4e0a264640fd3abef9ae

query I rowsort label-3500-3
SELECT * FROM view_3_tab3_773
----
913 values hashing to 27bb2e047adb4e0a264640fd3abef9ae

query I rowsort label-3500-3
SELECT pk FROM tab3 WHERE col3 >= 7083 AND (col0 > 8739) OR col1 < 306.72 OR col0 > 952
----
913 values hashing to 27bb2e047adb4e0a264640fd3abef9ae

statement ok
DROP VIEW view_1_tab3_773

statement ok
DROP VIEW view_2_tab3_773

statement ok
DROP VIEW view_3_tab3_773

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_773') DROP VIEW view_1_tab4_773

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_773

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_773') DROP VIEW view_2_tab4_773

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_773

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_773') DROP VIEW view_3_tab4_773

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_773

statement ok
CREATE VIEW view_1_tab4_773 AS SELECT pk, col0 FROM tab4 WHERE col3 >= 7083 AND (col0 > 8739) OR col1 < 306.72 OR col0 > 952

statement ok
CREATE VIEW view_2_tab4_773 AS SELECT pk, col0 FROM tab4 WHERE NOT (col3 >= 7083 AND (col0 > 8739) OR col1 < 306.72 OR col0 > 952)

statement ok
CREATE VIEW view_3_tab4_773 AS SELECT pk FROM view_1_tab4_773

query II rowsort label-3500-1
SELECT pk, col0 FROM tab4 WHERE col3 >= 7083 AND (col0 > 8739) OR col1 < 306.72 OR col0 > 952
----
1826 values hashing to b5ced7c6467e0e3923358da498097be1

query II rowsort label-3500-2
SELECT pk, col0 FROM tab4 WHERE NOT (col3 >= 7083 AND (col0 > 8739) OR col1 < 306.72 OR col0 > 952)
----
174 values hashing to 20324845db0c19abea7831cf26c6b99d

query II rowsort label-3500-1
SELECT pk, col0 FROM view_1_tab4_773
----
1826 values hashing to b5ced7c6467e0e3923358da498097be1

query II rowsort label-3500-2
SELECT pk, col0 FROM view_2_tab4_773
----
174 values hashing to 20324845db0c19abea7831cf26c6b99d

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 >= 7083 AND (col0 > 8739) OR col1 < 306.72 OR col0 > 952 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col3 >= 7083 AND (col0 > 8739) OR col1 < 306.72 OR col0 > 952)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_773 UNION ALL SELECT pk, col0 FROM view_2_tab4_773
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 >= 7083 AND (col0 > 8739) OR col1 < 306.72 OR col0 > 952 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col3 >= 7083 AND (col0 > 8739) OR col1 < 306.72 OR col0 > 952)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_773 UNION SELECT pk, col0 FROM view_2_tab4_773
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-3500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col3 >= 7083 AND (col0 > 8739) OR col1 < 306.72 OR col0 > 952 ) AS tab4_773
----
913 values hashing to 27bb2e047adb4e0a264640fd3abef9ae

query I rowsort label-3500-3
SELECT * FROM view_3_tab4_773
----
913 values hashing to 27bb2e047adb4e0a264640fd3abef9ae

query I rowsort label-3500-3
SELECT pk FROM tab4 WHERE col3 >= 7083 AND (col0 > 8739) OR col1 < 306.72 OR col0 > 952
----
913 values hashing to 27bb2e047adb4e0a264640fd3abef9ae

statement ok
DROP VIEW view_1_tab4_773

statement ok
DROP VIEW view_2_tab4_773

statement ok
DROP VIEW view_3_tab4_773

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_774') DROP VIEW view_1_tab0_774

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_774

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_774') DROP VIEW view_2_tab0_774

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_774

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_774') DROP VIEW view_3_tab0_774

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_774

statement ok
CREATE VIEW view_1_tab0_774 AS SELECT pk, col0 FROM tab0 WHERE col0 = 5001 AND col4 < 7572.87

statement ok
CREATE VIEW view_2_tab0_774 AS SELECT pk, col0 FROM tab0 WHERE NOT (col0 = 5001 AND col4 < 7572.87)

statement ok
CREATE VIEW view_3_tab0_774 AS SELECT pk FROM view_1_tab0_774

query II rowsort label-3600-1
SELECT pk, col0 FROM tab0 WHERE col0 = 5001 AND col4 < 7572.87
----
440
5001

query II rowsort label-3600-2
SELECT pk, col0 FROM tab0 WHERE NOT (col0 = 5001 AND col4 < 7572.87)
----
1998 values hashing to 22e58fac7b6da87b78e1363c119144c9

query II rowsort label-3600-1
SELECT pk, col0 FROM view_1_tab0_774
----
440
5001

query II rowsort label-3600-2
SELECT pk, col0 FROM view_2_tab0_774
----
1998 values hashing to 22e58fac7b6da87b78e1363c119144c9

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col0 = 5001 AND col4 < 7572.87 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col0 = 5001 AND col4 < 7572.87)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_774 UNION ALL SELECT pk, col0 FROM view_2_tab0_774
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col0 = 5001 AND col4 < 7572.87 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col0 = 5001 AND col4 < 7572.87)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_774 UNION SELECT pk, col0 FROM view_2_tab0_774
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-3600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col0 = 5001 AND col4 < 7572.87 ) AS tab0_774
----
440

query I rowsort label-3600-3
SELECT * FROM view_3_tab0_774
----
440

query I rowsort label-3600-3
SELECT pk FROM tab0 WHERE col0 = 5001 AND col4 < 7572.87
----
440

statement ok
DROP VIEW view_1_tab0_774

statement ok
DROP VIEW view_2_tab0_774

statement ok
DROP VIEW view_3_tab0_774

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_774') DROP VIEW view_1_tab1_774

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_774

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_774') DROP VIEW view_2_tab1_774

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_774

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_774') DROP VIEW view_3_tab1_774

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_774

statement ok
CREATE VIEW view_1_tab1_774 AS SELECT pk, col0 FROM tab1 WHERE col0 = 5001 AND col4 < 7572.87

statement ok
CREATE VIEW view_2_tab1_774 AS SELECT pk, col0 FROM tab1 WHERE NOT (col0 = 5001 AND col4 < 7572.87)

statement ok
CREATE VIEW view_3_tab1_774 AS SELECT pk FROM view_1_tab1_774

query II rowsort label-3600-1
SELECT pk, col0 FROM tab1 WHERE col0 = 5001 AND col4 < 7572.87
----
440
5001

query II rowsort label-3600-2
SELECT pk, col0 FROM tab1 WHERE NOT (col0 = 5001 AND col4 < 7572.87)
----
1998 values hashing to 22e58fac7b6da87b78e1363c119144c9

query II rowsort label-3600-1
SELECT pk, col0 FROM view_1_tab1_774
----
440
5001

query II rowsort label-3600-2
SELECT pk, col0 FROM view_2_tab1_774
----
1998 values hashing to 22e58fac7b6da87b78e1363c119144c9

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col0 = 5001 AND col4 < 7572.87 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col0 = 5001 AND col4 < 7572.87)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_774 UNION ALL SELECT pk, col0 FROM view_2_tab1_774
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col0 = 5001 AND col4 < 7572.87 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col0 = 5001 AND col4 < 7572.87)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_774 UNION SELECT pk, col0 FROM view_2_tab1_774
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-3600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col0 = 5001 AND col4 < 7572.87 ) AS tab1_774
----
440

query I rowsort label-3600-3
SELECT * FROM view_3_tab1_774
----
440

query I rowsort label-3600-3
SELECT pk FROM tab1 WHERE col0 = 5001 AND col4 < 7572.87
----
440

statement ok
DROP VIEW view_1_tab1_774

statement ok
DROP VIEW view_2_tab1_774

statement ok
DROP VIEW view_3_tab1_774

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_774') DROP VIEW view_1_tab2_774

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_774

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_774') DROP VIEW view_2_tab2_774

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_774

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_774') DROP VIEW view_3_tab2_774

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_774

statement ok
CREATE VIEW view_1_tab2_774 AS SELECT pk, col0 FROM tab2 WHERE col0 = 5001 AND col4 < 7572.87

statement ok
CREATE VIEW view_2_tab2_774 AS SELECT pk, col0 FROM tab2 WHERE NOT (col0 = 5001 AND col4 < 7572.87)

statement ok
CREATE VIEW view_3_tab2_774 AS SELECT pk FROM view_1_tab2_774

query II rowsort label-3600-1
SELECT pk, col0 FROM tab2 WHERE col0 = 5001 AND col4 < 7572.87
----
440
5001

query II rowsort label-3600-2
SELECT pk, col0 FROM tab2 WHERE NOT (col0 = 5001 AND col4 < 7572.87)
----
1998 values hashing to 22e58fac7b6da87b78e1363c119144c9

query II rowsort label-3600-1
SELECT pk, col0 FROM view_1_tab2_774
----
440
5001

query II rowsort label-3600-2
SELECT pk, col0 FROM view_2_tab2_774
----
1998 values hashing to 22e58fac7b6da87b78e1363c119144c9

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col0 = 5001 AND col4 < 7572.87 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col0 = 5001 AND col4 < 7572.87)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_774 UNION ALL SELECT pk, col0 FROM view_2_tab2_774
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col0 = 5001 AND col4 < 7572.87 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col0 = 5001 AND col4 < 7572.87)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_774 UNION SELECT pk, col0 FROM view_2_tab2_774
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-3600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col0 = 5001 AND col4 < 7572.87 ) AS tab2_774
----
440

query I rowsort label-3600-3
SELECT * FROM view_3_tab2_774
----
440

query I rowsort label-3600-3
SELECT pk FROM tab2 WHERE col0 = 5001 AND col4 < 7572.87
----
440

statement ok
DROP VIEW view_1_tab2_774

statement ok
DROP VIEW view_2_tab2_774

statement ok
DROP VIEW view_3_tab2_774

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_774') DROP VIEW view_1_tab3_774

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_774

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_774') DROP VIEW view_2_tab3_774

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_774

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_774') DROP VIEW view_3_tab3_774

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_774

statement ok
CREATE VIEW view_1_tab3_774 AS SELECT pk, col0 FROM tab3 WHERE col0 = 5001 AND col4 < 7572.87

statement ok
CREATE VIEW view_2_tab3_774 AS SELECT pk, col0 FROM tab3 WHERE NOT (col0 = 5001 AND col4 < 7572.87)

statement ok
CREATE VIEW view_3_tab3_774 AS SELECT pk FROM view_1_tab3_774

query II rowsort label-3600-1
SELECT pk, col0 FROM tab3 WHERE col0 = 5001 AND col4 < 7572.87
----
440
5001

query II rowsort label-3600-2
SELECT pk, col0 FROM tab3 WHERE NOT (col0 = 5001 AND col4 < 7572.87)
----
1998 values hashing to 22e58fac7b6da87b78e1363c119144c9

query II rowsort label-3600-1
SELECT pk, col0 FROM view_1_tab3_774
----
440
5001

query II rowsort label-3600-2
SELECT pk, col0 FROM view_2_tab3_774
----
1998 values hashing to 22e58fac7b6da87b78e1363c119144c9

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col0 = 5001 AND col4 < 7572.87 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col0 = 5001 AND col4 < 7572.87)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_774 UNION ALL SELECT pk, col0 FROM view_2_tab3_774
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col0 = 5001 AND col4 < 7572.87 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col0 = 5001 AND col4 < 7572.87)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_774 UNION SELECT pk, col0 FROM view_2_tab3_774
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-3600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col0 = 5001 AND col4 < 7572.87 ) AS tab3_774
----
440

query I rowsort label-3600-3
SELECT * FROM view_3_tab3_774
----
440

query I rowsort label-3600-3
SELECT pk FROM tab3 WHERE col0 = 5001 AND col4 < 7572.87
----
440

statement ok
DROP VIEW view_1_tab3_774

statement ok
DROP VIEW view_2_tab3_774

statement ok
DROP VIEW view_3_tab3_774

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_774') DROP VIEW view_1_tab4_774

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_774

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_774') DROP VIEW view_2_tab4_774

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_774

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_774') DROP VIEW view_3_tab4_774

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_774

statement ok
CREATE VIEW view_1_tab4_774 AS SELECT pk, col0 FROM tab4 WHERE col0 = 5001 AND col4 < 7572.87

statement ok
CREATE VIEW view_2_tab4_774 AS SELECT pk, col0 FROM tab4 WHERE NOT (col0 = 5001 AND col4 < 7572.87)

statement ok
CREATE VIEW view_3_tab4_774 AS SELECT pk FROM view_1_tab4_774

query II rowsort label-3600-1
SELECT pk, col0 FROM tab4 WHERE col0 = 5001 AND col4 < 7572.87
----
440
5001

query II rowsort label-3600-2
SELECT pk, col0 FROM tab4 WHERE NOT (col0 = 5001 AND col4 < 7572.87)
----
1998 values hashing to 22e58fac7b6da87b78e1363c119144c9

query II rowsort label-3600-1
SELECT pk, col0 FROM view_1_tab4_774
----
440
5001

query II rowsort label-3600-2
SELECT pk, col0 FROM view_2_tab4_774
----
1998 values hashing to 22e58fac7b6da87b78e1363c119144c9

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col0 = 5001 AND col4 < 7572.87 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col0 = 5001 AND col4 < 7572.87)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_774 UNION ALL SELECT pk, col0 FROM view_2_tab4_774
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col0 = 5001 AND col4 < 7572.87 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col0 = 5001 AND col4 < 7572.87)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_774 UNION SELECT pk, col0 FROM view_2_tab4_774
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-3600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col0 = 5001 AND col4 < 7572.87 ) AS tab4_774
----
440

query I rowsort label-3600-3
SELECT * FROM view_3_tab4_774
----
440

query I rowsort label-3600-3
SELECT pk FROM tab4 WHERE col0 = 5001 AND col4 < 7572.87
----
440

statement ok
DROP VIEW view_1_tab4_774

statement ok
DROP VIEW view_2_tab4_774

statement ok
DROP VIEW view_3_tab4_774

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_775') DROP VIEW view_1_tab0_775

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_775

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_775') DROP VIEW view_2_tab0_775

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_775

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_775') DROP VIEW view_3_tab0_775

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_775

statement ok
CREATE VIEW view_1_tab0_775 AS SELECT pk, col0 FROM tab0 WHERE col4 < 6593.56 AND col1 > 1043.59

statement ok
CREATE VIEW view_2_tab0_775 AS SELECT pk, col0 FROM tab0 WHERE NOT (col4 < 6593.56 AND col1 > 1043.59)

statement ok
CREATE VIEW view_3_tab0_775 AS SELECT pk FROM view_1_tab0_775

query II rowsort label-3700-1
SELECT pk, col0 FROM tab0 WHERE col4 < 6593.56 AND col1 > 1043.59
----
1212 values hashing to 6932b0d85cc8aba1e8def7d85761b2eb

query II rowsort label-3700-2
SELECT pk, col0 FROM tab0 WHERE NOT (col4 < 6593.56 AND col1 > 1043.59)
----
788 values hashing to fa8da2e5bfe14037cb99a4d1214bf22a

query II rowsort label-3700-1
SELECT pk, col0 FROM view_1_tab0_775
----
1212 values hashing to 6932b0d85cc8aba1e8def7d85761b2eb

query II rowsort label-3700-2
SELECT pk, col0 FROM view_2_tab0_775
----
788 values hashing to fa8da2e5bfe14037cb99a4d1214bf22a

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col4 < 6593.56 AND col1 > 1043.59 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col4 < 6593.56 AND col1 > 1043.59)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_775 UNION ALL SELECT pk, col0 FROM view_2_tab0_775
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col4 < 6593.56 AND col1 > 1043.59 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col4 < 6593.56 AND col1 > 1043.59)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_775 UNION SELECT pk, col0 FROM view_2_tab0_775
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-3700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col4 < 6593.56 AND col1 > 1043.59 ) AS tab0_775
----
606 values hashing to 21edb4837bc69d79918f92cf5b7d5474

query I rowsort label-3700-3
SELECT * FROM view_3_tab0_775
----
606 values hashing to 21edb4837bc69d79918f92cf5b7d5474

query I rowsort label-3700-3
SELECT pk FROM tab0 WHERE col4 < 6593.56 AND col1 > 1043.59
----
606 values hashing to 21edb4837bc69d79918f92cf5b7d5474

statement ok
DROP VIEW view_1_tab0_775

statement ok
DROP VIEW view_2_tab0_775

statement ok
DROP VIEW view_3_tab0_775

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_775') DROP VIEW view_1_tab1_775

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_775

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_775') DROP VIEW view_2_tab1_775

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_775

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_775') DROP VIEW view_3_tab1_775

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_775

statement ok
CREATE VIEW view_1_tab1_775 AS SELECT pk, col0 FROM tab1 WHERE col4 < 6593.56 AND col1 > 1043.59

statement ok
CREATE VIEW view_2_tab1_775 AS SELECT pk, col0 FROM tab1 WHERE NOT (col4 < 6593.56 AND col1 > 1043.59)

statement ok
CREATE VIEW view_3_tab1_775 AS SELECT pk FROM view_1_tab1_775

query II rowsort label-3700-1
SELECT pk, col0 FROM tab1 WHERE col4 < 6593.56 AND col1 > 1043.59
----
1212 values hashing to 6932b0d85cc8aba1e8def7d85761b2eb

query II rowsort label-3700-2
SELECT pk, col0 FROM tab1 WHERE NOT (col4 < 6593.56 AND col1 > 1043.59)
----
788 values hashing to fa8da2e5bfe14037cb99a4d1214bf22a

query II rowsort label-3700-1
SELECT pk, col0 FROM view_1_tab1_775
----
1212 values hashing to 6932b0d85cc8aba1e8def7d85761b2eb

query II rowsort label-3700-2
SELECT pk, col0 FROM view_2_tab1_775
----
788 values hashing to fa8da2e5bfe14037cb99a4d1214bf22a

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col4 < 6593.56 AND col1 > 1043.59 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col4 < 6593.56 AND col1 > 1043.59)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_775 UNION ALL SELECT pk, col0 FROM view_2_tab1_775
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col4 < 6593.56 AND col1 > 1043.59 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col4 < 6593.56 AND col1 > 1043.59)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_775 UNION SELECT pk, col0 FROM view_2_tab1_775
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-3700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col4 < 6593.56 AND col1 > 1043.59 ) AS tab1_775
----
606 values hashing to 21edb4837bc69d79918f92cf5b7d5474

query I rowsort label-3700-3
SELECT * FROM view_3_tab1_775
----
606 values hashing to 21edb4837bc69d79918f92cf5b7d5474

query I rowsort label-3700-3
SELECT pk FROM tab1 WHERE col4 < 6593.56 AND col1 > 1043.59
----
606 values hashing to 21edb4837bc69d79918f92cf5b7d5474

statement ok
DROP VIEW view_1_tab1_775

statement ok
DROP VIEW view_2_tab1_775

statement ok
DROP VIEW view_3_tab1_775

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_775') DROP VIEW view_1_tab2_775

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_775

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_775') DROP VIEW view_2_tab2_775

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_775

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_775') DROP VIEW view_3_tab2_775

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_775

statement ok
CREATE VIEW view_1_tab2_775 AS SELECT pk, col0 FROM tab2 WHERE col4 < 6593.56 AND col1 > 1043.59

statement ok
CREATE VIEW view_2_tab2_775 AS SELECT pk, col0 FROM tab2 WHERE NOT (col4 < 6593.56 AND col1 > 1043.59)

statement ok
CREATE VIEW view_3_tab2_775 AS SELECT pk FROM view_1_tab2_775

query II rowsort label-3700-1
SELECT pk, col0 FROM tab2 WHERE col4 < 6593.56 AND col1 > 1043.59
----
1212 values hashing to 6932b0d85cc8aba1e8def7d85761b2eb

query II rowsort label-3700-2
SELECT pk, col0 FROM tab2 WHERE NOT (col4 < 6593.56 AND col1 > 1043.59)
----
788 values hashing to fa8da2e5bfe14037cb99a4d1214bf22a

query II rowsort label-3700-1
SELECT pk, col0 FROM view_1_tab2_775
----
1212 values hashing to 6932b0d85cc8aba1e8def7d85761b2eb

query II rowsort label-3700-2
SELECT pk, col0 FROM view_2_tab2_775
----
788 values hashing to fa8da2e5bfe14037cb99a4d1214bf22a

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col4 < 6593.56 AND col1 > 1043.59 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col4 < 6593.56 AND col1 > 1043.59)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_775 UNION ALL SELECT pk, col0 FROM view_2_tab2_775
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col4 < 6593.56 AND col1 > 1043.59 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col4 < 6593.56 AND col1 > 1043.59)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_775 UNION SELECT pk, col0 FROM view_2_tab2_775
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-3700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col4 < 6593.56 AND col1 > 1043.59 ) AS tab2_775
----
606 values hashing to 21edb4837bc69d79918f92cf5b7d5474

query I rowsort label-3700-3
SELECT * FROM view_3_tab2_775
----
606 values hashing to 21edb4837bc69d79918f92cf5b7d5474

query I rowsort label-3700-3
SELECT pk FROM tab2 WHERE col4 < 6593.56 AND col1 > 1043.59
----
606 values hashing to 21edb4837bc69d79918f92cf5b7d5474

statement ok
DROP VIEW view_1_tab2_775

statement ok
DROP VIEW view_2_tab2_775

statement ok
DROP VIEW view_3_tab2_775

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_775') DROP VIEW view_1_tab3_775

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_775

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_775') DROP VIEW view_2_tab3_775

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_775

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_775') DROP VIEW view_3_tab3_775

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_775

statement ok
CREATE VIEW view_1_tab3_775 AS SELECT pk, col0 FROM tab3 WHERE col4 < 6593.56 AND col1 > 1043.59

statement ok
CREATE VIEW view_2_tab3_775 AS SELECT pk, col0 FROM tab3 WHERE NOT (col4 < 6593.56 AND col1 > 1043.59)

statement ok
CREATE VIEW view_3_tab3_775 AS SELECT pk FROM view_1_tab3_775

query II rowsort label-3700-1
SELECT pk, col0 FROM tab3 WHERE col4 < 6593.56 AND col1 > 1043.59
----
1212 values hashing to 6932b0d85cc8aba1e8def7d85761b2eb

query II rowsort label-3700-2
SELECT pk, col0 FROM tab3 WHERE NOT (col4 < 6593.56 AND col1 > 1043.59)
----
788 values hashing to fa8da2e5bfe14037cb99a4d1214bf22a

query II rowsort label-3700-1
SELECT pk, col0 FROM view_1_tab3_775
----
1212 values hashing to 6932b0d85cc8aba1e8def7d85761b2eb

query II rowsort label-3700-2
SELECT pk, col0 FROM view_2_tab3_775
----
788 values hashing to fa8da2e5bfe14037cb99a4d1214bf22a

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col4 < 6593.56 AND col1 > 1043.59 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col4 < 6593.56 AND col1 > 1043.59)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_775 UNION ALL SELECT pk, col0 FROM view_2_tab3_775
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col4 < 6593.56 AND col1 > 1043.59 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col4 < 6593.56 AND col1 > 1043.59)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_775 UNION SELECT pk, col0 FROM view_2_tab3_775
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-3700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col4 < 6593.56 AND col1 > 1043.59 ) AS tab3_775
----
606 values hashing to 21edb4837bc69d79918f92cf5b7d5474

query I rowsort label-3700-3
SELECT * FROM view_3_tab3_775
----
606 values hashing to 21edb4837bc69d79918f92cf5b7d5474

query I rowsort label-3700-3
SELECT pk FROM tab3 WHERE col4 < 6593.56 AND col1 > 1043.59
----
606 values hashing to 21edb4837bc69d79918f92cf5b7d5474

statement ok
DROP VIEW view_1_tab3_775

statement ok
DROP VIEW view_2_tab3_775

statement ok
DROP VIEW view_3_tab3_775

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_775') DROP VIEW view_1_tab4_775

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_775

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_775') DROP VIEW view_2_tab4_775

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_775

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_775') DROP VIEW view_3_tab4_775

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_775

statement ok
CREATE VIEW view_1_tab4_775 AS SELECT pk, col0 FROM tab4 WHERE col4 < 6593.56 AND col1 > 1043.59

statement ok
CREATE VIEW view_2_tab4_775 AS SELECT pk, col0 FROM tab4 WHERE NOT (col4 < 6593.56 AND col1 > 1043.59)

statement ok
CREATE VIEW view_3_tab4_775 AS SELECT pk FROM view_1_tab4_775

query II rowsort label-3700-1
SELECT pk, col0 FROM tab4 WHERE col4 < 6593.56 AND col1 > 1043.59
----
1212 values hashing to 6932b0d85cc8aba1e8def7d85761b2eb

query II rowsort label-3700-2
SELECT pk, col0 FROM tab4 WHERE NOT (col4 < 6593.56 AND col1 > 1043.59)
----
788 values hashing to fa8da2e5bfe14037cb99a4d1214bf22a

query II rowsort label-3700-1
SELECT pk, col0 FROM view_1_tab4_775
----
1212 values hashing to 6932b0d85cc8aba1e8def7d85761b2eb

query II rowsort label-3700-2
SELECT pk, col0 FROM view_2_tab4_775
----
788 values hashing to fa8da2e5bfe14037cb99a4d1214bf22a

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col4 < 6593.56 AND col1 > 1043.59 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col4 < 6593.56 AND col1 > 1043.59)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_775 UNION ALL SELECT pk, col0 FROM view_2_tab4_775
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col4 < 6593.56 AND col1 > 1043.59 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col4 < 6593.56 AND col1 > 1043.59)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_775 UNION SELECT pk, col0 FROM view_2_tab4_775
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-3700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col4 < 6593.56 AND col1 > 1043.59 ) AS tab4_775
----
606 values hashing to 21edb4837bc69d79918f92cf5b7d5474

query I rowsort label-3700-3
SELECT * FROM view_3_tab4_775
----
606 values hashing to 21edb4837bc69d79918f92cf5b7d5474

query I rowsort label-3700-3
SELECT pk FROM tab4 WHERE col4 < 6593.56 AND col1 > 1043.59
----
606 values hashing to 21edb4837bc69d79918f92cf5b7d5474

statement ok
DROP VIEW view_1_tab4_775

statement ok
DROP VIEW view_2_tab4_775

statement ok
DROP VIEW view_3_tab4_775

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_776') DROP VIEW view_1_tab0_776

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_776

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_776') DROP VIEW view_2_tab0_776

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_776

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_776') DROP VIEW view_3_tab0_776

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_776

statement ok
CREATE VIEW view_1_tab0_776 AS SELECT pk, col0 FROM tab0 WHERE (col1 < 8775.46 AND col0 < 2151) OR col4 = 2911.36 AND col0 < 2063 OR col0 > 6911

statement ok
CREATE VIEW view_2_tab0_776 AS SELECT pk, col0 FROM tab0 WHERE NOT ((col1 < 8775.46 AND col0 < 2151) OR col4 = 2911.36 AND col0 < 2063 OR col0 > 6911)

statement ok
CREATE VIEW view_3_tab0_776 AS SELECT pk FROM view_1_tab0_776

query II rowsort label-3800-1
SELECT pk, col0 FROM tab0 WHERE (col1 < 8775.46 AND col0 < 2151) OR col4 = 2911.36 AND col0 < 2063 OR col0 > 6911
----
952 values hashing to a61b06b9f7eb0a35f6036fb63bba1ed8

query II rowsort label-3800-2
SELECT pk, col0 FROM tab0 WHERE NOT ((col1 < 8775.46 AND col0 < 2151) OR col4 = 2911.36 AND col0 < 2063 OR col0 > 6911)
----
1048 values hashing to dc100026dcd94fb3eadfd1f2f26ead1a

query II rowsort label-3800-1
SELECT pk, col0 FROM view_1_tab0_776
----
952 values hashing to a61b06b9f7eb0a35f6036fb63bba1ed8

query II rowsort label-3800-2
SELECT pk, col0 FROM view_2_tab0_776
----
1048 values hashing to dc100026dcd94fb3eadfd1f2f26ead1a

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col1 < 8775.46 AND col0 < 2151) OR col4 = 2911.36 AND col0 < 2063 OR col0 > 6911 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT ((col1 < 8775.46 AND col0 < 2151) OR col4 = 2911.36 AND col0 < 2063 OR col0 > 6911)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_776 UNION ALL SELECT pk, col0 FROM view_2_tab0_776
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col1 < 8775.46 AND col0 < 2151) OR col4 = 2911.36 AND col0 < 2063 OR col0 > 6911 UNION SELECT pk, col0 FROM tab0 WHERE NOT ((col1 < 8775.46 AND col0 < 2151) OR col4 = 2911.36 AND col0 < 2063 OR col0 > 6911)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_776 UNION SELECT pk, col0 FROM view_2_tab0_776
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-3800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE (col1 < 8775.46 AND col0 < 2151) OR col4 = 2911.36 AND col0 < 2063 OR col0 > 6911 ) AS tab0_776
----
476 values hashing to 5159f469c10861aae34498377c65e34b

query I rowsort label-3800-3
SELECT * FROM view_3_tab0_776
----
476 values hashing to 5159f469c10861aae34498377c65e34b

query I rowsort label-3800-3
SELECT pk FROM tab0 WHERE (col1 < 8775.46 AND col0 < 2151) OR col4 = 2911.36 AND col0 < 2063 OR col0 > 6911
----
476 values hashing to 5159f469c10861aae34498377c65e34b

statement ok
DROP VIEW view_1_tab0_776

statement ok
DROP VIEW view_2_tab0_776

statement ok
DROP VIEW view_3_tab0_776

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_776') DROP VIEW view_1_tab1_776

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_776

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_776') DROP VIEW view_2_tab1_776

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_776

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_776') DROP VIEW view_3_tab1_776

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_776

statement ok
CREATE VIEW view_1_tab1_776 AS SELECT pk, col0 FROM tab1 WHERE (col1 < 8775.46 AND col0 < 2151) OR col4 = 2911.36 AND col0 < 2063 OR col0 > 6911

statement ok
CREATE VIEW view_2_tab1_776 AS SELECT pk, col0 FROM tab1 WHERE NOT ((col1 < 8775.46 AND col0 < 2151) OR col4 = 2911.36 AND col0 < 2063 OR col0 > 6911)

statement ok
CREATE VIEW view_3_tab1_776 AS SELECT pk FROM view_1_tab1_776

query II rowsort label-3800-1
SELECT pk, col0 FROM tab1 WHERE (col1 < 8775.46 AND col0 < 2151) OR col4 = 2911.36 AND col0 < 2063 OR col0 > 6911
----
952 values hashing to a61b06b9f7eb0a35f6036fb63bba1ed8

query II rowsort label-3800-2
SELECT pk, col0 FROM tab1 WHERE NOT ((col1 < 8775.46 AND col0 < 2151) OR col4 = 2911.36 AND col0 < 2063 OR col0 > 6911)
----
1048 values hashing to dc100026dcd94fb3eadfd1f2f26ead1a

query II rowsort label-3800-1
SELECT pk, col0 FROM view_1_tab1_776
----
952 values hashing to a61b06b9f7eb0a35f6036fb63bba1ed8

query II rowsort label-3800-2
SELECT pk, col0 FROM view_2_tab1_776
----
1048 values hashing to dc100026dcd94fb3eadfd1f2f26ead1a

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col1 < 8775.46 AND col0 < 2151) OR col4 = 2911.36 AND col0 < 2063 OR col0 > 6911 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT ((col1 < 8775.46 AND col0 < 2151) OR col4 = 2911.36 AND col0 < 2063 OR col0 > 6911)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_776 UNION ALL SELECT pk, col0 FROM view_2_tab1_776
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col1 < 8775.46 AND col0 < 2151) OR col4 = 2911.36 AND col0 < 2063 OR col0 > 6911 UNION SELECT pk, col0 FROM tab1 WHERE NOT ((col1 < 8775.46 AND col0 < 2151) OR col4 = 2911.36 AND col0 < 2063 OR col0 > 6911)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_776 UNION SELECT pk, col0 FROM view_2_tab1_776
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-3800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE (col1 < 8775.46 AND col0 < 2151) OR col4 = 2911.36 AND col0 < 2063 OR col0 > 6911 ) AS tab1_776
----
476 values hashing to 5159f469c10861aae34498377c65e34b

query I rowsort label-3800-3
SELECT * FROM view_3_tab1_776
----
476 values hashing to 5159f469c10861aae34498377c65e34b

query I rowsort label-3800-3
SELECT pk FROM tab1 WHERE (col1 < 8775.46 AND col0 < 2151) OR col4 = 2911.36 AND col0 < 2063 OR col0 > 6911
----
476 values hashing to 5159f469c10861aae34498377c65e34b

statement ok
DROP VIEW view_1_tab1_776

statement ok
DROP VIEW view_2_tab1_776

statement ok
DROP VIEW view_3_tab1_776

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_776') DROP VIEW view_1_tab2_776

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_776

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_776') DROP VIEW view_2_tab2_776

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_776

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_776') DROP VIEW view_3_tab2_776

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_776

statement ok
CREATE VIEW view_1_tab2_776 AS SELECT pk, col0 FROM tab2 WHERE (col1 < 8775.46 AND col0 < 2151) OR col4 = 2911.36 AND col0 < 2063 OR col0 > 6911

statement ok
CREATE VIEW view_2_tab2_776 AS SELECT pk, col0 FROM tab2 WHERE NOT ((col1 < 8775.46 AND col0 < 2151) OR col4 = 2911.36 AND col0 < 2063 OR col0 > 6911)

statement ok
CREATE VIEW view_3_tab2_776 AS SELECT pk FROM view_1_tab2_776

query II rowsort label-3800-1
SELECT pk, col0 FROM tab2 WHERE (col1 < 8775.46 AND col0 < 2151) OR col4 = 2911.36 AND col0 < 2063 OR col0 > 6911
----
952 values hashing to a61b06b9f7eb0a35f6036fb63bba1ed8

query II rowsort label-3800-2
SELECT pk, col0 FROM tab2 WHERE NOT ((col1 < 8775.46 AND col0 < 2151) OR col4 = 2911.36 AND col0 < 2063 OR col0 > 6911)
----
1048 values hashing to dc100026dcd94fb3eadfd1f2f26ead1a

query II rowsort label-3800-1
SELECT pk, col0 FROM view_1_tab2_776
----
952 values hashing to a61b06b9f7eb0a35f6036fb63bba1ed8

query II rowsort label-3800-2
SELECT pk, col0 FROM view_2_tab2_776
----
1048 values hashing to dc100026dcd94fb3eadfd1f2f26ead1a

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col1 < 8775.46 AND col0 < 2151) OR col4 = 2911.36 AND col0 < 2063 OR col0 > 6911 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT ((col1 < 8775.46 AND col0 < 2151) OR col4 = 2911.36 AND col0 < 2063 OR col0 > 6911)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_776 UNION ALL SELECT pk, col0 FROM view_2_tab2_776
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col1 < 8775.46 AND col0 < 2151) OR col4 = 2911.36 AND col0 < 2063 OR col0 > 6911 UNION SELECT pk, col0 FROM tab2 WHERE NOT ((col1 < 8775.46 AND col0 < 2151) OR col4 = 2911.36 AND col0 < 2063 OR col0 > 6911)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_776 UNION SELECT pk, col0 FROM view_2_tab2_776
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-3800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE (col1 < 8775.46 AND col0 < 2151) OR col4 = 2911.36 AND col0 < 2063 OR col0 > 6911 ) AS tab2_776
----
476 values hashing to 5159f469c10861aae34498377c65e34b

query I rowsort label-3800-3
SELECT * FROM view_3_tab2_776
----
476 values hashing to 5159f469c10861aae34498377c65e34b

query I rowsort label-3800-3
SELECT pk FROM tab2 WHERE (col1 < 8775.46 AND col0 < 2151) OR col4 = 2911.36 AND col0 < 2063 OR col0 > 6911
----
476 values hashing to 5159f469c10861aae34498377c65e34b

statement ok
DROP VIEW view_1_tab2_776

statement ok
DROP VIEW view_2_tab2_776

statement ok
DROP VIEW view_3_tab2_776

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_776') DROP VIEW view_1_tab3_776

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_776

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_776') DROP VIEW view_2_tab3_776

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_776

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_776') DROP VIEW view_3_tab3_776

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_776

statement ok
CREATE VIEW view_1_tab3_776 AS SELECT pk, col0 FROM tab3 WHERE (col1 < 8775.46 AND col0 < 2151) OR col4 = 2911.36 AND col0 < 2063 OR col0 > 6911

statement ok
CREATE VIEW view_2_tab3_776 AS SELECT pk, col0 FROM tab3 WHERE NOT ((col1 < 8775.46 AND col0 < 2151) OR col4 = 2911.36 AND col0 < 2063 OR col0 > 6911)

statement ok
CREATE VIEW view_3_tab3_776 AS SELECT pk FROM view_1_tab3_776

query II rowsort label-3800-1
SELECT pk, col0 FROM tab3 WHERE (col1 < 8775.46 AND col0 < 2151) OR col4 = 2911.36 AND col0 < 2063 OR col0 > 6911
----
952 values hashing to a61b06b9f7eb0a35f6036fb63bba1ed8

query II rowsort label-3800-2
SELECT pk, col0 FROM tab3 WHERE NOT ((col1 < 8775.46 AND col0 < 2151) OR col4 = 2911.36 AND col0 < 2063 OR col0 > 6911)
----
1048 values hashing to dc100026dcd94fb3eadfd1f2f26ead1a

query II rowsort label-3800-1
SELECT pk, col0 FROM view_1_tab3_776
----
952 values hashing to a61b06b9f7eb0a35f6036fb63bba1ed8

query II rowsort label-3800-2
SELECT pk, col0 FROM view_2_tab3_776
----
1048 values hashing to dc100026dcd94fb3eadfd1f2f26ead1a

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col1 < 8775.46 AND col0 < 2151) OR col4 = 2911.36 AND col0 < 2063 OR col0 > 6911 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT ((col1 < 8775.46 AND col0 < 2151) OR col4 = 2911.36 AND col0 < 2063 OR col0 > 6911)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_776 UNION ALL SELECT pk, col0 FROM view_2_tab3_776
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col1 < 8775.46 AND col0 < 2151) OR col4 = 2911.36 AND col0 < 2063 OR col0 > 6911 UNION SELECT pk, col0 FROM tab3 WHERE NOT ((col1 < 8775.46 AND col0 < 2151) OR col4 = 2911.36 AND col0 < 2063 OR col0 > 6911)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_776 UNION SELECT pk, col0 FROM view_2_tab3_776
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-3800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE (col1 < 8775.46 AND col0 < 2151) OR col4 = 2911.36 AND col0 < 2063 OR col0 > 6911 ) AS tab3_776
----
476 values hashing to 5159f469c10861aae34498377c65e34b

query I rowsort label-3800-3
SELECT * FROM view_3_tab3_776
----
476 values hashing to 5159f469c10861aae34498377c65e34b

query I rowsort label-3800-3
SELECT pk FROM tab3 WHERE (col1 < 8775.46 AND col0 < 2151) OR col4 = 2911.36 AND col0 < 2063 OR col0 > 6911
----
476 values hashing to 5159f469c10861aae34498377c65e34b

statement ok
DROP VIEW view_1_tab3_776

statement ok
DROP VIEW view_2_tab3_776

statement ok
DROP VIEW view_3_tab3_776

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_776') DROP VIEW view_1_tab4_776

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_776

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_776') DROP VIEW view_2_tab4_776

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_776

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_776') DROP VIEW view_3_tab4_776

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_776

statement ok
CREATE VIEW view_1_tab4_776 AS SELECT pk, col0 FROM tab4 WHERE (col1 < 8775.46 AND col0 < 2151) OR col4 = 2911.36 AND col0 < 2063 OR col0 > 6911

statement ok
CREATE VIEW view_2_tab4_776 AS SELECT pk, col0 FROM tab4 WHERE NOT ((col1 < 8775.46 AND col0 < 2151) OR col4 = 2911.36 AND col0 < 2063 OR col0 > 6911)

statement ok
CREATE VIEW view_3_tab4_776 AS SELECT pk FROM view_1_tab4_776

query II rowsort label-3800-1
SELECT pk, col0 FROM tab4 WHERE (col1 < 8775.46 AND col0 < 2151) OR col4 = 2911.36 AND col0 < 2063 OR col0 > 6911
----
952 values hashing to a61b06b9f7eb0a35f6036fb63bba1ed8

query II rowsort label-3800-2
SELECT pk, col0 FROM tab4 WHERE NOT ((col1 < 8775.46 AND col0 < 2151) OR col4 = 2911.36 AND col0 < 2063 OR col0 > 6911)
----
1048 values hashing to dc100026dcd94fb3eadfd1f2f26ead1a

query II rowsort label-3800-1
SELECT pk, col0 FROM view_1_tab4_776
----
952 values hashing to a61b06b9f7eb0a35f6036fb63bba1ed8

query II rowsort label-3800-2
SELECT pk, col0 FROM view_2_tab4_776
----
1048 values hashing to dc100026dcd94fb3eadfd1f2f26ead1a

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col1 < 8775.46 AND col0 < 2151) OR col4 = 2911.36 AND col0 < 2063 OR col0 > 6911 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT ((col1 < 8775.46 AND col0 < 2151) OR col4 = 2911.36 AND col0 < 2063 OR col0 > 6911)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_776 UNION ALL SELECT pk, col0 FROM view_2_tab4_776
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col1 < 8775.46 AND col0 < 2151) OR col4 = 2911.36 AND col0 < 2063 OR col0 > 6911 UNION SELECT pk, col0 FROM tab4 WHERE NOT ((col1 < 8775.46 AND col0 < 2151) OR col4 = 2911.36 AND col0 < 2063 OR col0 > 6911)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_776 UNION SELECT pk, col0 FROM view_2_tab4_776
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-3800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE (col1 < 8775.46 AND col0 < 2151) OR col4 = 2911.36 AND col0 < 2063 OR col0 > 6911 ) AS tab4_776
----
476 values hashing to 5159f469c10861aae34498377c65e34b

query I rowsort label-3800-3
SELECT * FROM view_3_tab4_776
----
476 values hashing to 5159f469c10861aae34498377c65e34b

query I rowsort label-3800-3
SELECT pk FROM tab4 WHERE (col1 < 8775.46 AND col0 < 2151) OR col4 = 2911.36 AND col0 < 2063 OR col0 > 6911
----
476 values hashing to 5159f469c10861aae34498377c65e34b

statement ok
DROP VIEW view_1_tab4_776

statement ok
DROP VIEW view_2_tab4_776

statement ok
DROP VIEW view_3_tab4_776

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_778') DROP VIEW view_1_tab0_778

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_778

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_778') DROP VIEW view_2_tab0_778

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_778

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_778') DROP VIEW view_3_tab0_778

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_778

statement ok
CREATE VIEW view_1_tab0_778 AS SELECT pk, col0 FROM tab0 WHERE col3 >= 2704 OR col3 >= 413

statement ok
CREATE VIEW view_2_tab0_778 AS SELECT pk, col0 FROM tab0 WHERE NOT (col3 >= 2704 OR col3 >= 413)

statement ok
CREATE VIEW view_3_tab0_778 AS SELECT pk FROM view_1_tab0_778

query II rowsort label-3900-1
SELECT pk, col0 FROM tab0 WHERE col3 >= 2704 OR col3 >= 413
----
1930 values hashing to f552fdfa01ead8319a006a10887b6b7a

query II rowsort label-3900-2
SELECT pk, col0 FROM tab0 WHERE NOT (col3 >= 2704 OR col3 >= 413)
----
70 values hashing to ece023063a71681b26f62905310e7d81

query II rowsort label-3900-1
SELECT pk, col0 FROM view_1_tab0_778
----
1930 values hashing to f552fdfa01ead8319a006a10887b6b7a

query II rowsort label-3900-2
SELECT pk, col0 FROM view_2_tab0_778
----
70 values hashing to ece023063a71681b26f62905310e7d81

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 >= 2704 OR col3 >= 413 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col3 >= 2704 OR col3 >= 413)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_778 UNION ALL SELECT pk, col0 FROM view_2_tab0_778
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 >= 2704 OR col3 >= 413 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col3 >= 2704 OR col3 >= 413)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_778 UNION SELECT pk, col0 FROM view_2_tab0_778
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-3900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col3 >= 2704 OR col3 >= 413 ) AS tab0_778
----
965 values hashing to 6e6e487fd99c516ed3392f9ba9130a92

query I rowsort label-3900-3
SELECT * FROM view_3_tab0_778
----
965 values hashing to 6e6e487fd99c516ed3392f9ba9130a92

query I rowsort label-3900-3
SELECT pk FROM tab0 WHERE col3 >= 2704 OR col3 >= 413
----
965 values hashing to 6e6e487fd99c516ed3392f9ba9130a92

statement ok
DROP VIEW view_1_tab0_778

statement ok
DROP VIEW view_2_tab0_778

statement ok
DROP VIEW view_3_tab0_778

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_778') DROP VIEW view_1_tab1_778

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_778

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_778') DROP VIEW view_2_tab1_778

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_778

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_778') DROP VIEW view_3_tab1_778

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_778

statement ok
CREATE VIEW view_1_tab1_778 AS SELECT pk, col0 FROM tab1 WHERE col3 >= 2704 OR col3 >= 413

statement ok
CREATE VIEW view_2_tab1_778 AS SELECT pk, col0 FROM tab1 WHERE NOT (col3 >= 2704 OR col3 >= 413)

statement ok
CREATE VIEW view_3_tab1_778 AS SELECT pk FROM view_1_tab1_778

query II rowsort label-3900-1
SELECT pk, col0 FROM tab1 WHERE col3 >= 2704 OR col3 >= 413
----
1930 values hashing to f552fdfa01ead8319a006a10887b6b7a

query II rowsort label-3900-2
SELECT pk, col0 FROM tab1 WHERE NOT (col3 >= 2704 OR col3 >= 413)
----
70 values hashing to ece023063a71681b26f62905310e7d81

query II rowsort label-3900-1
SELECT pk, col0 FROM view_1_tab1_778
----
1930 values hashing to f552fdfa01ead8319a006a10887b6b7a

query II rowsort label-3900-2
SELECT pk, col0 FROM view_2_tab1_778
----
70 values hashing to ece023063a71681b26f62905310e7d81

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 >= 2704 OR col3 >= 413 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col3 >= 2704 OR col3 >= 413)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_778 UNION ALL SELECT pk, col0 FROM view_2_tab1_778
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 >= 2704 OR col3 >= 413 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col3 >= 2704 OR col3 >= 413)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_778 UNION SELECT pk, col0 FROM view_2_tab1_778
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-3900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col3 >= 2704 OR col3 >= 413 ) AS tab1_778
----
965 values hashing to 6e6e487fd99c516ed3392f9ba9130a92

query I rowsort label-3900-3
SELECT * FROM view_3_tab1_778
----
965 values hashing to 6e6e487fd99c516ed3392f9ba9130a92

query I rowsort label-3900-3
SELECT pk FROM tab1 WHERE col3 >= 2704 OR col3 >= 413
----
965 values hashing to 6e6e487fd99c516ed3392f9ba9130a92

statement ok
DROP VIEW view_1_tab1_778

statement ok
DROP VIEW view_2_tab1_778

statement ok
DROP VIEW view_3_tab1_778

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_778') DROP VIEW view_1_tab2_778

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_778

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_778') DROP VIEW view_2_tab2_778

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_778

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_778') DROP VIEW view_3_tab2_778

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_778

statement ok
CREATE VIEW view_1_tab2_778 AS SELECT pk, col0 FROM tab2 WHERE col3 >= 2704 OR col3 >= 413

statement ok
CREATE VIEW view_2_tab2_778 AS SELECT pk, col0 FROM tab2 WHERE NOT (col3 >= 2704 OR col3 >= 413)

statement ok
CREATE VIEW view_3_tab2_778 AS SELECT pk FROM view_1_tab2_778

query II rowsort label-3900-1
SELECT pk, col0 FROM tab2 WHERE col3 >= 2704 OR col3 >= 413
----
1930 values hashing to f552fdfa01ead8319a006a10887b6b7a

query II rowsort label-3900-2
SELECT pk, col0 FROM tab2 WHERE NOT (col3 >= 2704 OR col3 >= 413)
----
70 values hashing to ece023063a71681b26f62905310e7d81

query II rowsort label-3900-1
SELECT pk, col0 FROM view_1_tab2_778
----
1930 values hashing to f552fdfa01ead8319a006a10887b6b7a

query II rowsort label-3900-2
SELECT pk, col0 FROM view_2_tab2_778
----
70 values hashing to ece023063a71681b26f62905310e7d81

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 >= 2704 OR col3 >= 413 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col3 >= 2704 OR col3 >= 413)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_778 UNION ALL SELECT pk, col0 FROM view_2_tab2_778
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 >= 2704 OR col3 >= 413 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col3 >= 2704 OR col3 >= 413)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_778 UNION SELECT pk, col0 FROM view_2_tab2_778
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-3900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col3 >= 2704 OR col3 >= 413 ) AS tab2_778
----
965 values hashing to 6e6e487fd99c516ed3392f9ba9130a92

query I rowsort label-3900-3
SELECT * FROM view_3_tab2_778
----
965 values hashing to 6e6e487fd99c516ed3392f9ba9130a92

query I rowsort label-3900-3
SELECT pk FROM tab2 WHERE col3 >= 2704 OR col3 >= 413
----
965 values hashing to 6e6e487fd99c516ed3392f9ba9130a92

statement ok
DROP VIEW view_1_tab2_778

statement ok
DROP VIEW view_2_tab2_778

statement ok
DROP VIEW view_3_tab2_778

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_778') DROP VIEW view_1_tab3_778

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_778

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_778') DROP VIEW view_2_tab3_778

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_778

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_778') DROP VIEW view_3_tab3_778

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_778

statement ok
CREATE VIEW view_1_tab3_778 AS SELECT pk, col0 FROM tab3 WHERE col3 >= 2704 OR col3 >= 413

statement ok
CREATE VIEW view_2_tab3_778 AS SELECT pk, col0 FROM tab3 WHERE NOT (col3 >= 2704 OR col3 >= 413)

statement ok
CREATE VIEW view_3_tab3_778 AS SELECT pk FROM view_1_tab3_778

query II rowsort label-3900-1
SELECT pk, col0 FROM tab3 WHERE col3 >= 2704 OR col3 >= 413
----
1930 values hashing to f552fdfa01ead8319a006a10887b6b7a

query II rowsort label-3900-2
SELECT pk, col0 FROM tab3 WHERE NOT (col3 >= 2704 OR col3 >= 413)
----
70 values hashing to ece023063a71681b26f62905310e7d81

query II rowsort label-3900-1
SELECT pk, col0 FROM view_1_tab3_778
----
1930 values hashing to f552fdfa01ead8319a006a10887b6b7a

query II rowsort label-3900-2
SELECT pk, col0 FROM view_2_tab3_778
----
70 values hashing to ece023063a71681b26f62905310e7d81

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 >= 2704 OR col3 >= 413 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col3 >= 2704 OR col3 >= 413)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_778 UNION ALL SELECT pk, col0 FROM view_2_tab3_778
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 >= 2704 OR col3 >= 413 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col3 >= 2704 OR col3 >= 413)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_778 UNION SELECT pk, col0 FROM view_2_tab3_778
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-3900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col3 >= 2704 OR col3 >= 413 ) AS tab3_778
----
965 values hashing to 6e6e487fd99c516ed3392f9ba9130a92

query I rowsort label-3900-3
SELECT * FROM view_3_tab3_778
----
965 values hashing to 6e6e487fd99c516ed3392f9ba9130a92

query I rowsort label-3900-3
SELECT pk FROM tab3 WHERE col3 >= 2704 OR col3 >= 413
----
965 values hashing to 6e6e487fd99c516ed3392f9ba9130a92

statement ok
DROP VIEW view_1_tab3_778

statement ok
DROP VIEW view_2_tab3_778

statement ok
DROP VIEW view_3_tab3_778

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_778') DROP VIEW view_1_tab4_778

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_778

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_778') DROP VIEW view_2_tab4_778

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_778

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_778') DROP VIEW view_3_tab4_778

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_778

statement ok
CREATE VIEW view_1_tab4_778 AS SELECT pk, col0 FROM tab4 WHERE col3 >= 2704 OR col3 >= 413

statement ok
CREATE VIEW view_2_tab4_778 AS SELECT pk, col0 FROM tab4 WHERE NOT (col3 >= 2704 OR col3 >= 413)

statement ok
CREATE VIEW view_3_tab4_778 AS SELECT pk FROM view_1_tab4_778

query II rowsort label-3900-1
SELECT pk, col0 FROM tab4 WHERE col3 >= 2704 OR col3 >= 413
----
1930 values hashing to f552fdfa01ead8319a006a10887b6b7a

query II rowsort label-3900-2
SELECT pk, col0 FROM tab4 WHERE NOT (col3 >= 2704 OR col3 >= 413)
----
70 values hashing to ece023063a71681b26f62905310e7d81

query II rowsort label-3900-1
SELECT pk, col0 FROM view_1_tab4_778
----
1930 values hashing to f552fdfa01ead8319a006a10887b6b7a

query II rowsort label-3900-2
SELECT pk, col0 FROM view_2_tab4_778
----
70 values hashing to ece023063a71681b26f62905310e7d81

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 >= 2704 OR col3 >= 413 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col3 >= 2704 OR col3 >= 413)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_778 UNION ALL SELECT pk, col0 FROM view_2_tab4_778
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 >= 2704 OR col3 >= 413 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col3 >= 2704 OR col3 >= 413)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_778 UNION SELECT pk, col0 FROM view_2_tab4_778
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-3900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col3 >= 2704 OR col3 >= 413 ) AS tab4_778
----
965 values hashing to 6e6e487fd99c516ed3392f9ba9130a92

query I rowsort label-3900-3
SELECT * FROM view_3_tab4_778
----
965 values hashing to 6e6e487fd99c516ed3392f9ba9130a92

query I rowsort label-3900-3
SELECT pk FROM tab4 WHERE col3 >= 2704 OR col3 >= 413
----
965 values hashing to 6e6e487fd99c516ed3392f9ba9130a92

statement ok
DROP VIEW view_1_tab4_778

statement ok
DROP VIEW view_2_tab4_778

statement ok
DROP VIEW view_3_tab4_778

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_779') DROP VIEW view_1_tab0_779

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_779

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_779') DROP VIEW view_2_tab0_779

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_779

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_779') DROP VIEW view_3_tab0_779

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_779

statement ok
CREATE VIEW view_1_tab0_779 AS SELECT pk, col0 FROM tab0 WHERE (col0 <= 9785) OR (col0 = 4136 OR col3 <= 4174 AND col3 > 6887 AND col0 > 4924)

statement ok
CREATE VIEW view_2_tab0_779 AS SELECT pk, col0 FROM tab0 WHERE NOT ((col0 <= 9785) OR (col0 = 4136 OR col3 <= 4174 AND col3 > 6887 AND col0 > 4924))

statement ok
CREATE VIEW view_3_tab0_779 AS SELECT pk FROM view_1_tab0_779

query II rowsort label-4000-1
SELECT pk, col0 FROM tab0 WHERE (col0 <= 9785) OR (col0 = 4136 OR col3 <= 4174 AND col3 > 6887 AND col0 > 4924)
----
1974 values hashing to fe46a251fbcac5f7d5cbc7a4edbb1a26

query II rowsort label-4000-2
SELECT pk, col0 FROM tab0 WHERE NOT ((col0 <= 9785) OR (col0 = 4136 OR col3 <= 4174 AND col3 > 6887 AND col0 > 4924))
----
26 values hashing to 484d378461e822ffc615e22bc19f5559

query II rowsort label-4000-1
SELECT pk, col0 FROM view_1_tab0_779
----
1974 values hashing to fe46a251fbcac5f7d5cbc7a4edbb1a26

query II rowsort label-4000-2
SELECT pk, col0 FROM view_2_tab0_779
----
26 values hashing to 484d378461e822ffc615e22bc19f5559

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col0 <= 9785) OR (col0 = 4136 OR col3 <= 4174 AND col3 > 6887 AND col0 > 4924) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT ((col0 <= 9785) OR (col0 = 4136 OR col3 <= 4174 AND col3 > 6887 AND col0 > 4924))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_779 UNION ALL SELECT pk, col0 FROM view_2_tab0_779
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col0 <= 9785) OR (col0 = 4136 OR col3 <= 4174 AND col3 > 6887 AND col0 > 4924) UNION SELECT pk, col0 FROM tab0 WHERE NOT ((col0 <= 9785) OR (col0 = 4136 OR col3 <= 4174 AND col3 > 6887 AND col0 > 4924))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_779 UNION SELECT pk, col0 FROM view_2_tab0_779
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-4000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE (col0 <= 9785) OR (col0 = 4136 OR col3 <= 4174 AND col3 > 6887 AND col0 > 4924) ) AS tab0_779
----
987 values hashing to 1c7f5d250962e4966f94f2d4f7b0281b

query I rowsort label-4000-3
SELECT * FROM view_3_tab0_779
----
987 values hashing to 1c7f5d250962e4966f94f2d4f7b0281b

query I rowsort label-4000-3
SELECT pk FROM tab0 WHERE (col0 <= 9785) OR (col0 = 4136 OR col3 <= 4174 AND col3 > 6887 AND col0 > 4924)
----
987 values hashing to 1c7f5d250962e4966f94f2d4f7b0281b

statement ok
DROP VIEW view_1_tab0_779

statement ok
DROP VIEW view_2_tab0_779

statement ok
DROP VIEW view_3_tab0_779

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_779') DROP VIEW view_1_tab1_779

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_779

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_779') DROP VIEW view_2_tab1_779

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_779

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_779') DROP VIEW view_3_tab1_779

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_779

statement ok
CREATE VIEW view_1_tab1_779 AS SELECT pk, col0 FROM tab1 WHERE (col0 <= 9785) OR (col0 = 4136 OR col3 <= 4174 AND col3 > 6887 AND col0 > 4924)

statement ok
CREATE VIEW view_2_tab1_779 AS SELECT pk, col0 FROM tab1 WHERE NOT ((col0 <= 9785) OR (col0 = 4136 OR col3 <= 4174 AND col3 > 6887 AND col0 > 4924))

statement ok
CREATE VIEW view_3_tab1_779 AS SELECT pk FROM view_1_tab1_779

query II rowsort label-4000-1
SELECT pk, col0 FROM tab1 WHERE (col0 <= 9785) OR (col0 = 4136 OR col3 <= 4174 AND col3 > 6887 AND col0 > 4924)
----
1974 values hashing to fe46a251fbcac5f7d5cbc7a4edbb1a26

query II rowsort label-4000-2
SELECT pk, col0 FROM tab1 WHERE NOT ((col0 <= 9785) OR (col0 = 4136 OR col3 <= 4174 AND col3 > 6887 AND col0 > 4924))
----
26 values hashing to 484d378461e822ffc615e22bc19f5559

query II rowsort label-4000-1
SELECT pk, col0 FROM view_1_tab1_779
----
1974 values hashing to fe46a251fbcac5f7d5cbc7a4edbb1a26

query II rowsort label-4000-2
SELECT pk, col0 FROM view_2_tab1_779
----
26 values hashing to 484d378461e822ffc615e22bc19f5559

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col0 <= 9785) OR (col0 = 4136 OR col3 <= 4174 AND col3 > 6887 AND col0 > 4924) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT ((col0 <= 9785) OR (col0 = 4136 OR col3 <= 4174 AND col3 > 6887 AND col0 > 4924))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_779 UNION ALL SELECT pk, col0 FROM view_2_tab1_779
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col0 <= 9785) OR (col0 = 4136 OR col3 <= 4174 AND col3 > 6887 AND col0 > 4924) UNION SELECT pk, col0 FROM tab1 WHERE NOT ((col0 <= 9785) OR (col0 = 4136 OR col3 <= 4174 AND col3 > 6887 AND col0 > 4924))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_779 UNION SELECT pk, col0 FROM view_2_tab1_779
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-4000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE (col0 <= 9785) OR (col0 = 4136 OR col3 <= 4174 AND col3 > 6887 AND col0 > 4924) ) AS tab1_779
----
987 values hashing to 1c7f5d250962e4966f94f2d4f7b0281b

query I rowsort label-4000-3
SELECT * FROM view_3_tab1_779
----
987 values hashing to 1c7f5d250962e4966f94f2d4f7b0281b

query I rowsort label-4000-3
SELECT pk FROM tab1 WHERE (col0 <= 9785) OR (col0 = 4136 OR col3 <= 4174 AND col3 > 6887 AND col0 > 4924)
----
987 values hashing to 1c7f5d250962e4966f94f2d4f7b0281b

statement ok
DROP VIEW view_1_tab1_779

statement ok
DROP VIEW view_2_tab1_779

statement ok
DROP VIEW view_3_tab1_779

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_779') DROP VIEW view_1_tab2_779

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_779

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_779') DROP VIEW view_2_tab2_779

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_779

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_779') DROP VIEW view_3_tab2_779

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_779

statement ok
CREATE VIEW view_1_tab2_779 AS SELECT pk, col0 FROM tab2 WHERE (col0 <= 9785) OR (col0 = 4136 OR col3 <= 4174 AND col3 > 6887 AND col0 > 4924)

statement ok
CREATE VIEW view_2_tab2_779 AS SELECT pk, col0 FROM tab2 WHERE NOT ((col0 <= 9785) OR (col0 = 4136 OR col3 <= 4174 AND col3 > 6887 AND col0 > 4924))

statement ok
CREATE VIEW view_3_tab2_779 AS SELECT pk FROM view_1_tab2_779

query II rowsort label-4000-1
SELECT pk, col0 FROM tab2 WHERE (col0 <= 9785) OR (col0 = 4136 OR col3 <= 4174 AND col3 > 6887 AND col0 > 4924)
----
1974 values hashing to fe46a251fbcac5f7d5cbc7a4edbb1a26

query II rowsort label-4000-2
SELECT pk, col0 FROM tab2 WHERE NOT ((col0 <= 9785) OR (col0 = 4136 OR col3 <= 4174 AND col3 > 6887 AND col0 > 4924))
----
26 values hashing to 484d378461e822ffc615e22bc19f5559

query II rowsort label-4000-1
SELECT pk, col0 FROM view_1_tab2_779
----
1974 values hashing to fe46a251fbcac5f7d5cbc7a4edbb1a26

query II rowsort label-4000-2
SELECT pk, col0 FROM view_2_tab2_779
----
26 values hashing to 484d378461e822ffc615e22bc19f5559

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col0 <= 9785) OR (col0 = 4136 OR col3 <= 4174 AND col3 > 6887 AND col0 > 4924) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT ((col0 <= 9785) OR (col0 = 4136 OR col3 <= 4174 AND col3 > 6887 AND col0 > 4924))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_779 UNION ALL SELECT pk, col0 FROM view_2_tab2_779
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col0 <= 9785) OR (col0 = 4136 OR col3 <= 4174 AND col3 > 6887 AND col0 > 4924) UNION SELECT pk, col0 FROM tab2 WHERE NOT ((col0 <= 9785) OR (col0 = 4136 OR col3 <= 4174 AND col3 > 6887 AND col0 > 4924))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_779 UNION SELECT pk, col0 FROM view_2_tab2_779
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-4000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE (col0 <= 9785) OR (col0 = 4136 OR col3 <= 4174 AND col3 > 6887 AND col0 > 4924) ) AS tab2_779
----
987 values hashing to 1c7f5d250962e4966f94f2d4f7b0281b

query I rowsort label-4000-3
SELECT * FROM view_3_tab2_779
----
987 values hashing to 1c7f5d250962e4966f94f2d4f7b0281b

query I rowsort label-4000-3
SELECT pk FROM tab2 WHERE (col0 <= 9785) OR (col0 = 4136 OR col3 <= 4174 AND col3 > 6887 AND col0 > 4924)
----
987 values hashing to 1c7f5d250962e4966f94f2d4f7b0281b

statement ok
DROP VIEW view_1_tab2_779

statement ok
DROP VIEW view_2_tab2_779

statement ok
DROP VIEW view_3_tab2_779

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_779') DROP VIEW view_1_tab3_779

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_779

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_779') DROP VIEW view_2_tab3_779

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_779

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_779') DROP VIEW view_3_tab3_779

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_779

statement ok
CREATE VIEW view_1_tab3_779 AS SELECT pk, col0 FROM tab3 WHERE (col0 <= 9785) OR (col0 = 4136 OR col3 <= 4174 AND col3 > 6887 AND col0 > 4924)

statement ok
CREATE VIEW view_2_tab3_779 AS SELECT pk, col0 FROM tab3 WHERE NOT ((col0 <= 9785) OR (col0 = 4136 OR col3 <= 4174 AND col3 > 6887 AND col0 > 4924))

statement ok
CREATE VIEW view_3_tab3_779 AS SELECT pk FROM view_1_tab3_779

query II rowsort label-4000-1
SELECT pk, col0 FROM tab3 WHERE (col0 <= 9785) OR (col0 = 4136 OR col3 <= 4174 AND col3 > 6887 AND col0 > 4924)
----
1974 values hashing to fe46a251fbcac5f7d5cbc7a4edbb1a26

query II rowsort label-4000-2
SELECT pk, col0 FROM tab3 WHERE NOT ((col0 <= 9785) OR (col0 = 4136 OR col3 <= 4174 AND col3 > 6887 AND col0 > 4924))
----
26 values hashing to 484d378461e822ffc615e22bc19f5559

query II rowsort label-4000-1
SELECT pk, col0 FROM view_1_tab3_779
----
1974 values hashing to fe46a251fbcac5f7d5cbc7a4edbb1a26

query II rowsort label-4000-2
SELECT pk, col0 FROM view_2_tab3_779
----
26 values hashing to 484d378461e822ffc615e22bc19f5559

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col0 <= 9785) OR (col0 = 4136 OR col3 <= 4174 AND col3 > 6887 AND col0 > 4924) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT ((col0 <= 9785) OR (col0 = 4136 OR col3 <= 4174 AND col3 > 6887 AND col0 > 4924))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_779 UNION ALL SELECT pk, col0 FROM view_2_tab3_779
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col0 <= 9785) OR (col0 = 4136 OR col3 <= 4174 AND col3 > 6887 AND col0 > 4924) UNION SELECT pk, col0 FROM tab3 WHERE NOT ((col0 <= 9785) OR (col0 = 4136 OR col3 <= 4174 AND col3 > 6887 AND col0 > 4924))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_779 UNION SELECT pk, col0 FROM view_2_tab3_779
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-4000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE (col0 <= 9785) OR (col0 = 4136 OR col3 <= 4174 AND col3 > 6887 AND col0 > 4924) ) AS tab3_779
----
987 values hashing to 1c7f5d250962e4966f94f2d4f7b0281b

query I rowsort label-4000-3
SELECT * FROM view_3_tab3_779
----
987 values hashing to 1c7f5d250962e4966f94f2d4f7b0281b

query I rowsort label-4000-3
SELECT pk FROM tab3 WHERE (col0 <= 9785) OR (col0 = 4136 OR col3 <= 4174 AND col3 > 6887 AND col0 > 4924)
----
987 values hashing to 1c7f5d250962e4966f94f2d4f7b0281b

statement ok
DROP VIEW view_1_tab3_779

statement ok
DROP VIEW view_2_tab3_779

statement ok
DROP VIEW view_3_tab3_779

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_779') DROP VIEW view_1_tab4_779

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_779

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_779') DROP VIEW view_2_tab4_779

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_779

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_779') DROP VIEW view_3_tab4_779

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_779

statement ok
CREATE VIEW view_1_tab4_779 AS SELECT pk, col0 FROM tab4 WHERE (col0 <= 9785) OR (col0 = 4136 OR col3 <= 4174 AND col3 > 6887 AND col0 > 4924)

statement ok
CREATE VIEW view_2_tab4_779 AS SELECT pk, col0 FROM tab4 WHERE NOT ((col0 <= 9785) OR (col0 = 4136 OR col3 <= 4174 AND col3 > 6887 AND col0 > 4924))

statement ok
CREATE VIEW view_3_tab4_779 AS SELECT pk FROM view_1_tab4_779

query II rowsort label-4000-1
SELECT pk, col0 FROM tab4 WHERE (col0 <= 9785) OR (col0 = 4136 OR col3 <= 4174 AND col3 > 6887 AND col0 > 4924)
----
1974 values hashing to fe46a251fbcac5f7d5cbc7a4edbb1a26

query II rowsort label-4000-2
SELECT pk, col0 FROM tab4 WHERE NOT ((col0 <= 9785) OR (col0 = 4136 OR col3 <= 4174 AND col3 > 6887 AND col0 > 4924))
----
26 values hashing to 484d378461e822ffc615e22bc19f5559

query II rowsort label-4000-1
SELECT pk, col0 FROM view_1_tab4_779
----
1974 values hashing to fe46a251fbcac5f7d5cbc7a4edbb1a26

query II rowsort label-4000-2
SELECT pk, col0 FROM view_2_tab4_779
----
26 values hashing to 484d378461e822ffc615e22bc19f5559

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col0 <= 9785) OR (col0 = 4136 OR col3 <= 4174 AND col3 > 6887 AND col0 > 4924) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT ((col0 <= 9785) OR (col0 = 4136 OR col3 <= 4174 AND col3 > 6887 AND col0 > 4924))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_779 UNION ALL SELECT pk, col0 FROM view_2_tab4_779
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col0 <= 9785) OR (col0 = 4136 OR col3 <= 4174 AND col3 > 6887 AND col0 > 4924) UNION SELECT pk, col0 FROM tab4 WHERE NOT ((col0 <= 9785) OR (col0 = 4136 OR col3 <= 4174 AND col3 > 6887 AND col0 > 4924))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_779 UNION SELECT pk, col0 FROM view_2_tab4_779
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-4000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE (col0 <= 9785) OR (col0 = 4136 OR col3 <= 4174 AND col3 > 6887 AND col0 > 4924) ) AS tab4_779
----
987 values hashing to 1c7f5d250962e4966f94f2d4f7b0281b

query I rowsort label-4000-3
SELECT * FROM view_3_tab4_779
----
987 values hashing to 1c7f5d250962e4966f94f2d4f7b0281b

query I rowsort label-4000-3
SELECT pk FROM tab4 WHERE (col0 <= 9785) OR (col0 = 4136 OR col3 <= 4174 AND col3 > 6887 AND col0 > 4924)
----
987 values hashing to 1c7f5d250962e4966f94f2d4f7b0281b

statement ok
DROP VIEW view_1_tab4_779

statement ok
DROP VIEW view_2_tab4_779

statement ok
DROP VIEW view_3_tab4_779

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_780') DROP VIEW view_1_tab0_780

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_780

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_780') DROP VIEW view_2_tab0_780

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_780

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_780') DROP VIEW view_3_tab0_780

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_780

statement ok
CREATE VIEW view_1_tab0_780 AS SELECT pk, col0 FROM tab0 WHERE ((((col0 = 4044 OR col0 >= 7070 AND (col0 > 51)) OR col4 > 7721.35 AND col0 < 4659)))

statement ok
CREATE VIEW view_2_tab0_780 AS SELECT pk, col0 FROM tab0 WHERE NOT (((((col0 = 4044 OR col0 >= 7070 AND (col0 > 51)) OR col4 > 7721.35 AND col0 < 4659))))

statement ok
CREATE VIEW view_3_tab0_780 AS SELECT pk FROM view_1_tab0_780

query II rowsort label-4100-1
SELECT pk, col0 FROM tab0 WHERE ((((col0 = 4044 OR col0 >= 7070 AND (col0 > 51)) OR col4 > 7721.35 AND col0 < 4659)))
----
762 values hashing to 9655673e94bca0ee66b56cf86d9a6ed8

query II rowsort label-4100-2
SELECT pk, col0 FROM tab0 WHERE NOT (((((col0 = 4044 OR col0 >= 7070 AND (col0 > 51)) OR col4 > 7721.35 AND col0 < 4659))))
----
1238 values hashing to 2fa77001fb4ed4a25db741491fb5e1ad

query II rowsort label-4100-1
SELECT pk, col0 FROM view_1_tab0_780
----
762 values hashing to 9655673e94bca0ee66b56cf86d9a6ed8

query II rowsort label-4100-2
SELECT pk, col0 FROM view_2_tab0_780
----
1238 values hashing to 2fa77001fb4ed4a25db741491fb5e1ad

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE ((((col0 = 4044 OR col0 >= 7070 AND (col0 > 51)) OR col4 > 7721.35 AND col0 < 4659))) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (((((col0 = 4044 OR col0 >= 7070 AND (col0 > 51)) OR col4 > 7721.35 AND col0 < 4659))))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_780 UNION ALL SELECT pk, col0 FROM view_2_tab0_780
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE ((((col0 = 4044 OR col0 >= 7070 AND (col0 > 51)) OR col4 > 7721.35 AND col0 < 4659))) UNION SELECT pk, col0 FROM tab0 WHERE NOT (((((col0 = 4044 OR col0 >= 7070 AND (col0 > 51)) OR col4 > 7721.35 AND col0 < 4659))))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_780 UNION SELECT pk, col0 FROM view_2_tab0_780
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-4100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE ((((col0 = 4044 OR col0 >= 7070 AND (col0 > 51)) OR col4 > 7721.35 AND col0 < 4659))) ) AS tab0_780
----
381 values hashing to a1b71f56be41ffb3dca98e1bec2ac7cc

query I rowsort label-4100-3
SELECT * FROM view_3_tab0_780
----
381 values hashing to a1b71f56be41ffb3dca98e1bec2ac7cc

query I rowsort label-4100-3
SELECT pk FROM tab0 WHERE ((((col0 = 4044 OR col0 >= 7070 AND (col0 > 51)) OR col4 > 7721.35 AND col0 < 4659)))
----
381 values hashing to a1b71f56be41ffb3dca98e1bec2ac7cc

statement ok
DROP VIEW view_1_tab0_780

statement ok
DROP VIEW view_2_tab0_780

statement ok
DROP VIEW view_3_tab0_780

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_780') DROP VIEW view_1_tab1_780

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_780

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_780') DROP VIEW view_2_tab1_780

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_780

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_780') DROP VIEW view_3_tab1_780

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_780

statement ok
CREATE VIEW view_1_tab1_780 AS SELECT pk, col0 FROM tab1 WHERE ((((col0 = 4044 OR col0 >= 7070 AND (col0 > 51)) OR col4 > 7721.35 AND col0 < 4659)))

statement ok
CREATE VIEW view_2_tab1_780 AS SELECT pk, col0 FROM tab1 WHERE NOT (((((col0 = 4044 OR col0 >= 7070 AND (col0 > 51)) OR col4 > 7721.35 AND col0 < 4659))))

statement ok
CREATE VIEW view_3_tab1_780 AS SELECT pk FROM view_1_tab1_780

query II rowsort label-4100-1
SELECT pk, col0 FROM tab1 WHERE ((((col0 = 4044 OR col0 >= 7070 AND (col0 > 51)) OR col4 > 7721.35 AND col0 < 4659)))
----
762 values hashing to 9655673e94bca0ee66b56cf86d9a6ed8

query II rowsort label-4100-2
SELECT pk, col0 FROM tab1 WHERE NOT (((((col0 = 4044 OR col0 >= 7070 AND (col0 > 51)) OR col4 > 7721.35 AND col0 < 4659))))
----
1238 values hashing to 2fa77001fb4ed4a25db741491fb5e1ad

query II rowsort label-4100-1
SELECT pk, col0 FROM view_1_tab1_780
----
762 values hashing to 9655673e94bca0ee66b56cf86d9a6ed8

query II rowsort label-4100-2
SELECT pk, col0 FROM view_2_tab1_780
----
1238 values hashing to 2fa77001fb4ed4a25db741491fb5e1ad

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE ((((col0 = 4044 OR col0 >= 7070 AND (col0 > 51)) OR col4 > 7721.35 AND col0 < 4659))) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (((((col0 = 4044 OR col0 >= 7070 AND (col0 > 51)) OR col4 > 7721.35 AND col0 < 4659))))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_780 UNION ALL SELECT pk, col0 FROM view_2_tab1_780
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE ((((col0 = 4044 OR col0 >= 7070 AND (col0 > 51)) OR col4 > 7721.35 AND col0 < 4659))) UNION SELECT pk, col0 FROM tab1 WHERE NOT (((((col0 = 4044 OR col0 >= 7070 AND (col0 > 51)) OR col4 > 7721.35 AND col0 < 4659))))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_780 UNION SELECT pk, col0 FROM view_2_tab1_780
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-4100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE ((((col0 = 4044 OR col0 >= 7070 AND (col0 > 51)) OR col4 > 7721.35 AND col0 < 4659))) ) AS tab1_780
----
381 values hashing to a1b71f56be41ffb3dca98e1bec2ac7cc

query I rowsort label-4100-3
SELECT * FROM view_3_tab1_780
----
381 values hashing to a1b71f56be41ffb3dca98e1bec2ac7cc

query I rowsort label-4100-3
SELECT pk FROM tab1 WHERE ((((col0 = 4044 OR col0 >= 7070 AND (col0 > 51)) OR col4 > 7721.35 AND col0 < 4659)))
----
381 values hashing to a1b71f56be41ffb3dca98e1bec2ac7cc

statement ok
DROP VIEW view_1_tab1_780

statement ok
DROP VIEW view_2_tab1_780

statement ok
DROP VIEW view_3_tab1_780

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_780') DROP VIEW view_1_tab2_780

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_780

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_780') DROP VIEW view_2_tab2_780

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_780

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_780') DROP VIEW view_3_tab2_780

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_780

statement ok
CREATE VIEW view_1_tab2_780 AS SELECT pk, col0 FROM tab2 WHERE ((((col0 = 4044 OR col0 >= 7070 AND (col0 > 51)) OR col4 > 7721.35 AND col0 < 4659)))

statement ok
CREATE VIEW view_2_tab2_780 AS SELECT pk, col0 FROM tab2 WHERE NOT (((((col0 = 4044 OR col0 >= 7070 AND (col0 > 51)) OR col4 > 7721.35 AND col0 < 4659))))

statement ok
CREATE VIEW view_3_tab2_780 AS SELECT pk FROM view_1_tab2_780

query II rowsort label-4100-1
SELECT pk, col0 FROM tab2 WHERE ((((col0 = 4044 OR col0 >= 7070 AND (col0 > 51)) OR col4 > 7721.35 AND col0 < 4659)))
----
762 values hashing to 9655673e94bca0ee66b56cf86d9a6ed8

query II rowsort label-4100-2
SELECT pk, col0 FROM tab2 WHERE NOT (((((col0 = 4044 OR col0 >= 7070 AND (col0 > 51)) OR col4 > 7721.35 AND col0 < 4659))))
----
1238 values hashing to 2fa77001fb4ed4a25db741491fb5e1ad

query II rowsort label-4100-1
SELECT pk, col0 FROM view_1_tab2_780
----
762 values hashing to 9655673e94bca0ee66b56cf86d9a6ed8

query II rowsort label-4100-2
SELECT pk, col0 FROM view_2_tab2_780
----
1238 values hashing to 2fa77001fb4ed4a25db741491fb5e1ad

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE ((((col0 = 4044 OR col0 >= 7070 AND (col0 > 51)) OR col4 > 7721.35 AND col0 < 4659))) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (((((col0 = 4044 OR col0 >= 7070 AND (col0 > 51)) OR col4 > 7721.35 AND col0 < 4659))))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_780 UNION ALL SELECT pk, col0 FROM view_2_tab2_780
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE ((((col0 = 4044 OR col0 >= 7070 AND (col0 > 51)) OR col4 > 7721.35 AND col0 < 4659))) UNION SELECT pk, col0 FROM tab2 WHERE NOT (((((col0 = 4044 OR col0 >= 7070 AND (col0 > 51)) OR col4 > 7721.35 AND col0 < 4659))))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_780 UNION SELECT pk, col0 FROM view_2_tab2_780
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-4100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE ((((col0 = 4044 OR col0 >= 7070 AND (col0 > 51)) OR col4 > 7721.35 AND col0 < 4659))) ) AS tab2_780
----
381 values hashing to a1b71f56be41ffb3dca98e1bec2ac7cc

query I rowsort label-4100-3
SELECT * FROM view_3_tab2_780
----
381 values hashing to a1b71f56be41ffb3dca98e1bec2ac7cc

query I rowsort label-4100-3
SELECT pk FROM tab2 WHERE ((((col0 = 4044 OR col0 >= 7070 AND (col0 > 51)) OR col4 > 7721.35 AND col0 < 4659)))
----
381 values hashing to a1b71f56be41ffb3dca98e1bec2ac7cc

statement ok
DROP VIEW view_1_tab2_780

statement ok
DROP VIEW view_2_tab2_780

statement ok
DROP VIEW view_3_tab2_780

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_780') DROP VIEW view_1_tab3_780

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_780

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_780') DROP VIEW view_2_tab3_780

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_780

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_780') DROP VIEW view_3_tab3_780

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_780

statement ok
CREATE VIEW view_1_tab3_780 AS SELECT pk, col0 FROM tab3 WHERE ((((col0 = 4044 OR col0 >= 7070 AND (col0 > 51)) OR col4 > 7721.35 AND col0 < 4659)))

statement ok
CREATE VIEW view_2_tab3_780 AS SELECT pk, col0 FROM tab3 WHERE NOT (((((col0 = 4044 OR col0 >= 7070 AND (col0 > 51)) OR col4 > 7721.35 AND col0 < 4659))))

statement ok
CREATE VIEW view_3_tab3_780 AS SELECT pk FROM view_1_tab3_780

query II rowsort label-4100-1
SELECT pk, col0 FROM tab3 WHERE ((((col0 = 4044 OR col0 >= 7070 AND (col0 > 51)) OR col4 > 7721.35 AND col0 < 4659)))
----
762 values hashing to 9655673e94bca0ee66b56cf86d9a6ed8

query II rowsort label-4100-2
SELECT pk, col0 FROM tab3 WHERE NOT (((((col0 = 4044 OR col0 >= 7070 AND (col0 > 51)) OR col4 > 7721.35 AND col0 < 4659))))
----
1238 values hashing to 2fa77001fb4ed4a25db741491fb5e1ad

query II rowsort label-4100-1
SELECT pk, col0 FROM view_1_tab3_780
----
762 values hashing to 9655673e94bca0ee66b56cf86d9a6ed8

query II rowsort label-4100-2
SELECT pk, col0 FROM view_2_tab3_780
----
1238 values hashing to 2fa77001fb4ed4a25db741491fb5e1ad

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE ((((col0 = 4044 OR col0 >= 7070 AND (col0 > 51)) OR col4 > 7721.35 AND col0 < 4659))) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (((((col0 = 4044 OR col0 >= 7070 AND (col0 > 51)) OR col4 > 7721.35 AND col0 < 4659))))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_780 UNION ALL SELECT pk, col0 FROM view_2_tab3_780
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE ((((col0 = 4044 OR col0 >= 7070 AND (col0 > 51)) OR col4 > 7721.35 AND col0 < 4659))) UNION SELECT pk, col0 FROM tab3 WHERE NOT (((((col0 = 4044 OR col0 >= 7070 AND (col0 > 51)) OR col4 > 7721.35 AND col0 < 4659))))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_780 UNION SELECT pk, col0 FROM view_2_tab3_780
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-4100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE ((((col0 = 4044 OR col0 >= 7070 AND (col0 > 51)) OR col4 > 7721.35 AND col0 < 4659))) ) AS tab3_780
----
381 values hashing to a1b71f56be41ffb3dca98e1bec2ac7cc

query I rowsort label-4100-3
SELECT * FROM view_3_tab3_780
----
381 values hashing to a1b71f56be41ffb3dca98e1bec2ac7cc

query I rowsort label-4100-3
SELECT pk FROM tab3 WHERE ((((col0 = 4044 OR col0 >= 7070 AND (col0 > 51)) OR col4 > 7721.35 AND col0 < 4659)))
----
381 values hashing to a1b71f56be41ffb3dca98e1bec2ac7cc

statement ok
DROP VIEW view_1_tab3_780

statement ok
DROP VIEW view_2_tab3_780

statement ok
DROP VIEW view_3_tab3_780

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_780') DROP VIEW view_1_tab4_780

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_780

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_780') DROP VIEW view_2_tab4_780

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_780

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_780') DROP VIEW view_3_tab4_780

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_780

statement ok
CREATE VIEW view_1_tab4_780 AS SELECT pk, col0 FROM tab4 WHERE ((((col0 = 4044 OR col0 >= 7070 AND (col0 > 51)) OR col4 > 7721.35 AND col0 < 4659)))

statement ok
CREATE VIEW view_2_tab4_780 AS SELECT pk, col0 FROM tab4 WHERE NOT (((((col0 = 4044 OR col0 >= 7070 AND (col0 > 51)) OR col4 > 7721.35 AND col0 < 4659))))

statement ok
CREATE VIEW view_3_tab4_780 AS SELECT pk FROM view_1_tab4_780

query II rowsort label-4100-1
SELECT pk, col0 FROM tab4 WHERE ((((col0 = 4044 OR col0 >= 7070 AND (col0 > 51)) OR col4 > 7721.35 AND col0 < 4659)))
----
762 values hashing to 9655673e94bca0ee66b56cf86d9a6ed8

query II rowsort label-4100-2
SELECT pk, col0 FROM tab4 WHERE NOT (((((col0 = 4044 OR col0 >= 7070 AND (col0 > 51)) OR col4 > 7721.35 AND col0 < 4659))))
----
1238 values hashing to 2fa77001fb4ed4a25db741491fb5e1ad

query II rowsort label-4100-1
SELECT pk, col0 FROM view_1_tab4_780
----
762 values hashing to 9655673e94bca0ee66b56cf86d9a6ed8

query II rowsort label-4100-2
SELECT pk, col0 FROM view_2_tab4_780
----
1238 values hashing to 2fa77001fb4ed4a25db741491fb5e1ad

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE ((((col0 = 4044 OR col0 >= 7070 AND (col0 > 51)) OR col4 > 7721.35 AND col0 < 4659))) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (((((col0 = 4044 OR col0 >= 7070 AND (col0 > 51)) OR col4 > 7721.35 AND col0 < 4659))))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_780 UNION ALL SELECT pk, col0 FROM view_2_tab4_780
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE ((((col0 = 4044 OR col0 >= 7070 AND (col0 > 51)) OR col4 > 7721.35 AND col0 < 4659))) UNION SELECT pk, col0 FROM tab4 WHERE NOT (((((col0 = 4044 OR col0 >= 7070 AND (col0 > 51)) OR col4 > 7721.35 AND col0 < 4659))))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_780 UNION SELECT pk, col0 FROM view_2_tab4_780
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-4100-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE ((((col0 = 4044 OR col0 >= 7070 AND (col0 > 51)) OR col4 > 7721.35 AND col0 < 4659))) ) AS tab4_780
----
381 values hashing to a1b71f56be41ffb3dca98e1bec2ac7cc

query I rowsort label-4100-3
SELECT * FROM view_3_tab4_780
----
381 values hashing to a1b71f56be41ffb3dca98e1bec2ac7cc

query I rowsort label-4100-3
SELECT pk FROM tab4 WHERE ((((col0 = 4044 OR col0 >= 7070 AND (col0 > 51)) OR col4 > 7721.35 AND col0 < 4659)))
----
381 values hashing to a1b71f56be41ffb3dca98e1bec2ac7cc

statement ok
DROP VIEW view_1_tab4_780

statement ok
DROP VIEW view_2_tab4_780

statement ok
DROP VIEW view_3_tab4_780

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_781') DROP VIEW view_1_tab0_781

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_781

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_781') DROP VIEW view_2_tab0_781

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_781

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_781') DROP VIEW view_3_tab0_781

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_781

statement ok
CREATE VIEW view_1_tab0_781 AS SELECT pk, col0 FROM tab0 WHERE col1 = 7089.83

statement ok
CREATE VIEW view_2_tab0_781 AS SELECT pk, col0 FROM tab0 WHERE NOT (col1 = 7089.83)

statement ok
CREATE VIEW view_3_tab0_781 AS SELECT pk FROM view_1_tab0_781

query II rowsort label-4200-1
SELECT pk, col0 FROM tab0 WHERE col1 = 7089.83
----

query II rowsort label-4200-2
SELECT pk, col0 FROM tab0 WHERE NOT (col1 = 7089.83)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-4200-1
SELECT pk, col0 FROM view_1_tab0_781
----

query II rowsort label-4200-2
SELECT pk, col0 FROM view_2_tab0_781
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col1 = 7089.83 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col1 = 7089.83)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_781 UNION ALL SELECT pk, col0 FROM view_2_tab0_781
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col1 = 7089.83 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col1 = 7089.83)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_781 UNION SELECT pk, col0 FROM view_2_tab0_781
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-4200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col1 = 7089.83 ) AS tab0_781
----

query I rowsort label-4200-3
SELECT * FROM view_3_tab0_781
----

query I rowsort label-4200-3
SELECT pk FROM tab0 WHERE col1 = 7089.83
----

statement ok
DROP VIEW view_1_tab0_781

statement ok
DROP VIEW view_2_tab0_781

statement ok
DROP VIEW view_3_tab0_781

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_781') DROP VIEW view_1_tab1_781

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_781

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_781') DROP VIEW view_2_tab1_781

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_781

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_781') DROP VIEW view_3_tab1_781

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_781

statement ok
CREATE VIEW view_1_tab1_781 AS SELECT pk, col0 FROM tab1 WHERE col1 = 7089.83

statement ok
CREATE VIEW view_2_tab1_781 AS SELECT pk, col0 FROM tab1 WHERE NOT (col1 = 7089.83)

statement ok
CREATE VIEW view_3_tab1_781 AS SELECT pk FROM view_1_tab1_781

query II rowsort label-4200-1
SELECT pk, col0 FROM tab1 WHERE col1 = 7089.83
----

query II rowsort label-4200-2
SELECT pk, col0 FROM tab1 WHERE NOT (col1 = 7089.83)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-4200-1
SELECT pk, col0 FROM view_1_tab1_781
----

query II rowsort label-4200-2
SELECT pk, col0 FROM view_2_tab1_781
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col1 = 7089.83 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col1 = 7089.83)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_781 UNION ALL SELECT pk, col0 FROM view_2_tab1_781
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col1 = 7089.83 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col1 = 7089.83)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_781 UNION SELECT pk, col0 FROM view_2_tab1_781
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-4200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col1 = 7089.83 ) AS tab1_781
----

query I rowsort label-4200-3
SELECT * FROM view_3_tab1_781
----

query I rowsort label-4200-3
SELECT pk FROM tab1 WHERE col1 = 7089.83
----

statement ok
DROP VIEW view_1_tab1_781

statement ok
DROP VIEW view_2_tab1_781

statement ok
DROP VIEW view_3_tab1_781

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_781') DROP VIEW view_1_tab2_781

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_781

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_781') DROP VIEW view_2_tab2_781

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_781

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_781') DROP VIEW view_3_tab2_781

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_781

statement ok
CREATE VIEW view_1_tab2_781 AS SELECT pk, col0 FROM tab2 WHERE col1 = 7089.83

statement ok
CREATE VIEW view_2_tab2_781 AS SELECT pk, col0 FROM tab2 WHERE NOT (col1 = 7089.83)

statement ok
CREATE VIEW view_3_tab2_781 AS SELECT pk FROM view_1_tab2_781

query II rowsort label-4200-1
SELECT pk, col0 FROM tab2 WHERE col1 = 7089.83
----

query II rowsort label-4200-2
SELECT pk, col0 FROM tab2 WHERE NOT (col1 = 7089.83)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-4200-1
SELECT pk, col0 FROM view_1_tab2_781
----

query II rowsort label-4200-2
SELECT pk, col0 FROM view_2_tab2_781
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col1 = 7089.83 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col1 = 7089.83)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_781 UNION ALL SELECT pk, col0 FROM view_2_tab2_781
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col1 = 7089.83 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col1 = 7089.83)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_781 UNION SELECT pk, col0 FROM view_2_tab2_781
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-4200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col1 = 7089.83 ) AS tab2_781
----

query I rowsort label-4200-3
SELECT * FROM view_3_tab2_781
----

query I rowsort label-4200-3
SELECT pk FROM tab2 WHERE col1 = 7089.83
----

statement ok
DROP VIEW view_1_tab2_781

statement ok
DROP VIEW view_2_tab2_781

statement ok
DROP VIEW view_3_tab2_781

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_781') DROP VIEW view_1_tab3_781

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_781

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_781') DROP VIEW view_2_tab3_781

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_781

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_781') DROP VIEW view_3_tab3_781

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_781

statement ok
CREATE VIEW view_1_tab3_781 AS SELECT pk, col0 FROM tab3 WHERE col1 = 7089.83

statement ok
CREATE VIEW view_2_tab3_781 AS SELECT pk, col0 FROM tab3 WHERE NOT (col1 = 7089.83)

statement ok
CREATE VIEW view_3_tab3_781 AS SELECT pk FROM view_1_tab3_781

query II rowsort label-4200-1
SELECT pk, col0 FROM tab3 WHERE col1 = 7089.83
----

query II rowsort label-4200-2
SELECT pk, col0 FROM tab3 WHERE NOT (col1 = 7089.83)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-4200-1
SELECT pk, col0 FROM view_1_tab3_781
----

query II rowsort label-4200-2
SELECT pk, col0 FROM view_2_tab3_781
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col1 = 7089.83 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col1 = 7089.83)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_781 UNION ALL SELECT pk, col0 FROM view_2_tab3_781
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col1 = 7089.83 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col1 = 7089.83)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_781 UNION SELECT pk, col0 FROM view_2_tab3_781
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-4200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col1 = 7089.83 ) AS tab3_781
----

query I rowsort label-4200-3
SELECT * FROM view_3_tab3_781
----

query I rowsort label-4200-3
SELECT pk FROM tab3 WHERE col1 = 7089.83
----

statement ok
DROP VIEW view_1_tab3_781

statement ok
DROP VIEW view_2_tab3_781

statement ok
DROP VIEW view_3_tab3_781

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_781') DROP VIEW view_1_tab4_781

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_781

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_781') DROP VIEW view_2_tab4_781

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_781

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_781') DROP VIEW view_3_tab4_781

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_781

statement ok
CREATE VIEW view_1_tab4_781 AS SELECT pk, col0 FROM tab4 WHERE col1 = 7089.83

statement ok
CREATE VIEW view_2_tab4_781 AS SELECT pk, col0 FROM tab4 WHERE NOT (col1 = 7089.83)

statement ok
CREATE VIEW view_3_tab4_781 AS SELECT pk FROM view_1_tab4_781

query II rowsort label-4200-1
SELECT pk, col0 FROM tab4 WHERE col1 = 7089.83
----

query II rowsort label-4200-2
SELECT pk, col0 FROM tab4 WHERE NOT (col1 = 7089.83)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-4200-1
SELECT pk, col0 FROM view_1_tab4_781
----

query II rowsort label-4200-2
SELECT pk, col0 FROM view_2_tab4_781
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col1 = 7089.83 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col1 = 7089.83)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_781 UNION ALL SELECT pk, col0 FROM view_2_tab4_781
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col1 = 7089.83 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col1 = 7089.83)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_781 UNION SELECT pk, col0 FROM view_2_tab4_781
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-4200-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col1 = 7089.83 ) AS tab4_781
----

query I rowsort label-4200-3
SELECT * FROM view_3_tab4_781
----

query I rowsort label-4200-3
SELECT pk FROM tab4 WHERE col1 = 7089.83
----

statement ok
DROP VIEW view_1_tab4_781

statement ok
DROP VIEW view_2_tab4_781

statement ok
DROP VIEW view_3_tab4_781

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_782') DROP VIEW view_1_tab0_782

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_782

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_782') DROP VIEW view_2_tab0_782

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_782

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_782') DROP VIEW view_3_tab0_782

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_782

statement ok
CREATE VIEW view_1_tab0_782 AS SELECT pk, col0 FROM tab0 WHERE (((col0 IN (5925,9789)) AND (col1 <= 5378.37 AND col0 IS NULL) AND (col0 < 2689)) OR col1 <= 5556.3 AND col3 <= 7971 OR col3 > 5189 AND col0 > 7 AND ((col1 > 5103.31)) OR col0 < 630 AND (((col0 <= 2635) OR col3 = 7624 AND ((((col0 IN (6163,2022,4720,9473,670) AND ((((((col0 < 298 OR (col4 > 9327.60))) AND ((col3 >= 2809))) AND ((col3 <= 1547)) OR (col4 < 8374.94) AND (((col0 > 6645 AND (col4 > 2874.0) AND col1 > 740.39 OR (col0 > 5035) AND col0 >= 5207 AND col3 <= 7098)) AND ((col3 IS NULL)))) AND col0 >= 6016 OR ((col0 IS NULL) AND col4 >= 5611.20) AND (col3 < 6387)))) OR (col3 > 4109))) AND col0 < 1737 OR (((col3 = 9884)))) AND col0 > 3647 AND ((((((((col4 > 6152.55)))))) AND (col0 <= 6441 OR col0 > 6481) AND (((col3 < 7932))) AND col0 > 9467)) AND col4 IN (4407.9,1177.3,6814.27,6241.37,9284.25) AND col0 BETWEEN 1184 AND 4256 AND col0 >= 5560) OR (col3 > 4591 AND (col0 <= 753) OR ((col0 > 1641 OR (col3 >= 2723) OR (col3 < 9191) OR col3 = 498 AND (col0 <= 2766) AND ((col3 < 4235) OR col0 IS NULL AND (col3 <= 2910 AND col4 > 8399.49)) AND (((col0 < 6421 AND col0 >= 5298 AND ((col4 <= 8878.68 OR (col0 >= 3739) AND col0 < 3211 OR col4 IN (948.73,9156.77) AND col0 = 5654 OR col4 > 5805.68 AND col4 < 8049.91 AND col1 >= 2357.25 AND col1 IN (7807.46,9265.52,6202.37,7062.8) AND (col0 > 26) OR col0 >= 9595 OR col0 >= 2506 AND (col1 < 5842.19) AND col1 <= 1777.93 OR (col3 >= 5739)))))) OR col0 < 8050)) OR col3 > 1442)) OR ((col0 < 703 OR (col4 >= 8775.3) OR col1 < 9606.76 OR (col3 < 2186) OR col3 IS NULL) OR col1 > 5475.35)) AND col0 < 4571 AND col3 < 7485

statement ok
CREATE VIEW view_2_tab0_782 AS SELECT pk, col0 FROM tab0 WHERE NOT ((((col0 IN (5925,9789)) AND (col1 <= 5378.37 AND col0 IS NULL) AND (col0 < 2689)) OR col1 <= 5556.3 AND col3 <= 7971 OR col3 > 5189 AND col0 > 7 AND ((col1 > 5103.31)) OR col0 < 630 AND (((col0 <= 2635) OR col3 = 7624 AND ((((col0 IN (6163,2022,4720,9473,670) AND ((((((col0 < 298 OR (col4 > 9327.60))) AND ((col3 >= 2809))) AND ((col3 <= 1547)) OR (col4 < 8374.94) AND (((col0 > 6645 AND (col4 > 2874.0) AND col1 > 740.39 OR (col0 > 5035) AND col0 >= 5207 AND col3 <= 7098)) AND ((col3 IS NULL)))) AND col0 >= 6016 OR ((col0 IS NULL) AND col4 >= 5611.20) AND (col3 < 6387)))) OR (col3 > 4109))) AND col0 < 1737 OR (((col3 = 9884)))) AND col0 > 3647 AND ((((((((col4 > 6152.55)))))) AND (col0 <= 6441 OR col0 > 6481) AND (((col3 < 7932))) AND col0 > 9467)) AND col4 IN (4407.9,1177.3,6814.27,6241.37,9284.25) AND col0 BETWEEN 1184 AND 4256 AND col0 >= 5560) OR (col3 > 4591 AND (col0 <= 753) OR ((col0 > 1641 OR (col3 >= 2723) OR (col3 < 9191) OR col3 = 498 AND (col0 <= 2766) AND ((col3 < 4235) OR col0 IS NULL AND (col3 <= 2910 AND col4 > 8399.49)) AND (((col0 < 6421 AND col0 >= 5298 AND ((col4 <= 8878.68 OR (col0 >= 3739) AND col0 < 3211 OR col4 IN (948.73,9156.77) AND col0 = 5654 OR col4 > 5805.68 AND col4 < 8049.91 AND col1 >= 2357.25 AND col1 IN (7807.46,9265.52,6202.37,7062.8) AND (col0 > 26) OR col0 >= 9595 OR col0 >= 2506 AND (col1 < 5842.19) AND col1 <= 1777.93 OR (col3 >= 5739)))))) OR col0 < 8050)) OR col3 > 1442)) OR ((col0 < 703 OR (col4 >= 8775.3) OR col1 < 9606.76 OR (col3 < 2186) OR col3 IS NULL) OR col1 > 5475.35)) AND col0 < 4571 AND col3 < 7485)

statement ok
CREATE VIEW view_3_tab0_782 AS SELECT pk FROM view_1_tab0_782

query II rowsort label-4300-1
SELECT pk, col0 FROM tab0 WHERE (((col0 IN (5925,9789)) AND (col1 <= 5378.37 AND col0 IS NULL) AND (col0 < 2689)) OR col1 <= 5556.3 AND col3 <= 7971 OR col3 > 5189 AND col0 > 7 AND ((col1 > 5103.31)) OR col0 < 630 AND (((col0 <= 2635) OR col3 = 7624 AND ((((col0 IN (6163,2022,4720,9473,670) AND ((((((col0 < 298 OR (col4 > 9327.60))) AND ((col3 >= 2809))) AND ((col3 <= 1547)) OR (col4 < 8374.94) AND (((col0 > 6645 AND (col4 > 2874.0) AND col1 > 740.39 OR (col0 > 5035) AND col0 >= 5207 AND col3 <= 7098)) AND ((col3 IS NULL)))) AND col0 >= 6016 OR ((col0 IS NULL) AND col4 >= 5611.20) AND (col3 < 6387)))) OR (col3 > 4109))) AND col0 < 1737 OR (((col3 = 9884)))) AND col0 > 3647 AND ((((((((col4 > 6152.55)))))) AND (col0 <= 6441 OR col0 > 6481) AND (((col3 < 7932))) AND col0 > 9467)) AND col4 IN (4407.9,1177.3,6814.27,6241.37,9284.25) AND col0 BETWEEN 1184 AND 4256 AND col0 >= 5560) OR (col3 > 4591 AND (col0 <= 753) OR ((col0 > 1641 OR (col3 >= 2723) OR (col3 < 9191) OR col3 = 498 AND (col0 <= 2766) AND ((col3 < 4235) OR col0 IS NULL AND (col3 <= 2910 AND col4 > 8399.49)) AND (((col0 < 6421 AND col0 >= 5298 AND ((col4 <= 8878.68 OR (col0 >= 3739) AND col0 < 3211 OR col4 IN (948.73,9156.77) AND col0 = 5654 OR col4 > 5805.68 AND col4 < 8049.91 AND col1 >= 2357.25 AND col1 IN (7807.46,9265.52,6202.37,7062.8) AND (col0 > 26) OR col0 >= 9595 OR col0 >= 2506 AND (col1 < 5842.19) AND col1 <= 1777.93 OR (col3 >= 5739)))))) OR col0 < 8050)) OR col3 > 1442)) OR ((col0 < 703 OR (col4 >= 8775.3) OR col1 < 9606.76 OR (col3 < 2186) OR col3 IS NULL) OR col1 > 5475.35)) AND col0 < 4571 AND col3 < 7485
----
670 values hashing to 5fc04d1e3c2cf04bd565e9f7c5994d77

query II rowsort label-4300-2
SELECT pk, col0 FROM tab0 WHERE NOT ((((col0 IN (5925,9789)) AND (col1 <= 5378.37 AND col0 IS NULL) AND (col0 < 2689)) OR col1 <= 5556.3 AND col3 <= 7971 OR col3 > 5189 AND col0 > 7 AND ((col1 > 5103.31)) OR col0 < 630 AND (((col0 <= 2635) OR col3 = 7624 AND ((((col0 IN (6163,2022,4720,9473,670) AND ((((((col0 < 298 OR (col4 > 9327.60))) AND ((col3 >= 2809))) AND ((col3 <= 1547)) OR (col4 < 8374.94) AND (((col0 > 6645 AND (col4 > 2874.0) AND col1 > 740.39 OR (col0 > 5035) AND col0 >= 5207 AND col3 <= 7098)) AND ((col3 IS NULL)))) AND col0 >= 6016 OR ((col0 IS NULL) AND col4 >= 5611.20) AND (col3 < 6387)))) OR (col3 > 4109))) AND col0 < 1737 OR (((col3 = 9884)))) AND col0 > 3647 AND ((((((((col4 > 6152.55)))))) AND (col0 <= 6441 OR col0 > 6481) AND (((col3 < 7932))) AND col0 > 9467)) AND col4 IN (4407.9,1177.3,6814.27,6241.37,9284.25) AND col0 BETWEEN 1184 AND 4256 AND col0 >= 5560) OR (col3 > 4591 AND (col0 <= 753) OR ((col0 > 1641 OR (col3 >= 2723) OR (col3 < 9191) OR col3 = 498 AND (col0 <= 2766) AND ((col3 < 4235) OR col0 IS NULL AND (col3 <= 2910 AND col4 > 8399.49)) AND (((col0 < 6421 AND col0 >= 5298 AND ((col4 <= 8878.68 OR (col0 >= 3739) AND col0 < 3211 OR col4 IN (948.73,9156.77) AND col0 = 5654 OR col4 > 5805.68 AND col4 < 8049.91 AND col1 >= 2357.25 AND col1 IN (7807.46,9265.52,6202.37,7062.8) AND (col0 > 26) OR col0 >= 9595 OR col0 >= 2506 AND (col1 < 5842.19) AND col1 <= 1777.93 OR (col3 >= 5739)))))) OR col0 < 8050)) OR col3 > 1442)) OR ((col0 < 703 OR (col4 >= 8775.3) OR col1 < 9606.76 OR (col3 < 2186) OR col3 IS NULL) OR col1 > 5475.35)) AND col0 < 4571 AND col3 < 7485)
----
1330 values hashing to 4dd82b263cf931801d56c36e86f2888e

query II rowsort label-4300-1
SELECT pk, col0 FROM view_1_tab0_782
----
670 values hashing to 5fc04d1e3c2cf04bd565e9f7c5994d77

query II rowsort label-4300-2
SELECT pk, col0 FROM view_2_tab0_782
----
1330 values hashing to 4dd82b263cf931801d56c36e86f2888e

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (((col0 IN (5925,9789)) AND (col1 <= 5378.37 AND col0 IS NULL) AND (col0 < 2689)) OR col1 <= 5556.3 AND col3 <= 7971 OR col3 > 5189 AND col0 > 7 AND ((col1 > 5103.31)) OR col0 < 630 AND (((col0 <= 2635) OR col3 = 7624 AND ((((col0 IN (6163,2022,4720,9473,670) AND ((((((col0 < 298 OR (col4 > 9327.60))) AND ((col3 >= 2809))) AND ((col3 <= 1547)) OR (col4 < 8374.94) AND (((col0 > 6645 AND (col4 > 2874.0) AND col1 > 740.39 OR (col0 > 5035) AND col0 >= 5207 AND col3 <= 7098)) AND ((col3 IS NULL)))) AND col0 >= 6016 OR ((col0 IS NULL) AND col4 >= 5611.20) AND (col3 < 6387)))) OR (col3 > 4109))) AND col0 < 1737 OR (((col3 = 9884)))) AND col0 > 3647 AND ((((((((col4 > 6152.55)))))) AND (col0 <= 6441 OR col0 > 6481) AND (((col3 < 7932))) AND col0 > 9467)) AND col4 IN (4407.9,1177.3,6814.27,6241.37,9284.25) AND col0 BETWEEN 1184 AND 4256 AND col0 >= 5560) OR (col3 > 4591 AND (col0 <= 753) OR ((col0 > 1641 OR (col3 >= 2723) OR (col3 < 9191) OR col3 = 498 AND (col0 <= 2766) AND ((col3 < 4235) OR col0 IS NULL AND (col3 <= 2910 AND col4 > 8399.49)) AND (((col0 < 6421 AND col0 >= 5298 AND ((col4 <= 8878.68 OR (col0 >= 3739) AND col0 < 3211 OR col4 IN (948.73,9156.77) AND col0 = 5654 OR col4 > 5805.68 AND col4 < 8049.91 AND col1 >= 2357.25 AND col1 IN (7807.46,9265.52,6202.37,7062.8) AND (col0 > 26) OR col0 >= 9595 OR col0 >= 2506 AND (col1 < 5842.19) AND col1 <= 1777.93 OR (col3 >= 5739)))))) OR col0 < 8050)) OR col3 > 1442)) OR ((col0 < 703 OR (col4 >= 8775.3) OR col1 < 9606.76 OR (col3 < 2186) OR col3 IS NULL) OR col1 > 5475.35)) AND col0 < 4571 AND col3 < 7485 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT ((((col0 IN (5925,9789)) AND (col1 <= 5378.37 AND col0 IS NULL) AND (col0 < 2689)) OR col1 <= 5556.3 AND col3 <= 7971 OR col3 > 5189 AND col0 > 7 AND ((col1 > 5103.31)) OR col0 < 630 AND (((col0 <= 2635) OR col3 = 7624 AND ((((col0 IN (6163,2022,4720,9473,670) AND ((((((col0 < 298 OR (col4 > 9327.60))) AND ((col3 >= 2809))) AND ((col3 <= 1547)) OR (col4 < 8374.94) AND (((col0 > 6645 AND (col4 > 2874.0) AND col1 > 740.39 OR (col0 > 5035) AND col0 >= 5207 AND col3 <= 7098)) AND ((col3 IS NULL)))) AND col0 >= 6016 OR ((col0 IS NULL) AND col4 >= 5611.20) AND (col3 < 6387)))) OR (col3 > 4109))) AND col0 < 1737 OR (((col3 = 9884)))) AND col0 > 3647 AND ((((((((col4 > 6152.55)))))) AND (col0 <= 6441 OR col0 > 6481) AND (((col3 < 7932))) AND col0 > 9467)) AND col4 IN (4407.9,1177.3,6814.27,6241.37,9284.25) AND col0 BETWEEN 1184 AND 4256 AND col0 >= 5560) OR (col3 > 4591 AND (col0 <= 753) OR ((col0 > 1641 OR (col3 >= 2723) OR (col3 < 9191) OR col3 = 498 AND (col0 <= 2766) AND ((col3 < 4235) OR col0 IS NULL AND (col3 <= 2910 AND col4 > 8399.49)) AND (((col0 < 6421 AND col0 >= 5298 AND ((col4 <= 8878.68 OR (col0 >= 3739) AND col0 < 3211 OR col4 IN (948.73,9156.77) AND col0 = 5654 OR col4 > 5805.68 AND col4 < 8049.91 AND col1 >= 2357.25 AND col1 IN (7807.46,9265.52,6202.37,7062.8) AND (col0 > 26) OR col0 >= 9595 OR col0 >= 2506 AND (col1 < 5842.19) AND col1 <= 1777.93 OR (col3 >= 5739)))))) OR col0 < 8050)) OR col3 > 1442)) OR ((col0 < 703 OR (col4 >= 8775.3) OR col1 < 9606.76 OR (col3 < 2186) OR col3 IS NULL) OR col1 > 5475.35)) AND col0 < 4571 AND col3 < 7485)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_782 UNION ALL SELECT pk, col0 FROM view_2_tab0_782
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (((col0 IN (5925,9789)) AND (col1 <= 5378.37 AND col0 IS NULL) AND (col0 < 2689)) OR col1 <= 5556.3 AND col3 <= 7971 OR col3 > 5189 AND col0 > 7 AND ((col1 > 5103.31)) OR col0 < 630 AND (((col0 <= 2635) OR col3 = 7624 AND ((((col0 IN (6163,2022,4720,9473,670) AND ((((((col0 < 298 OR (col4 > 9327.60))) AND ((col3 >= 2809))) AND ((col3 <= 1547)) OR (col4 < 8374.94) AND (((col0 > 6645 AND (col4 > 2874.0) AND col1 > 740.39 OR (col0 > 5035) AND col0 >= 5207 AND col3 <= 7098)) AND ((col3 IS NULL)))) AND col0 >= 6016 OR ((col0 IS NULL) AND col4 >= 5611.20) AND (col3 < 6387)))) OR (col3 > 4109))) AND col0 < 1737 OR (((col3 = 9884)))) AND col0 > 3647 AND ((((((((col4 > 6152.55)))))) AND (col0 <= 6441 OR col0 > 6481) AND (((col3 < 7932))) AND col0 > 9467)) AND col4 IN (4407.9,1177.3,6814.27,6241.37,9284.25) AND col0 BETWEEN 1184 AND 4256 AND col0 >= 5560) OR (col3 > 4591 AND (col0 <= 753) OR ((col0 > 1641 OR (col3 >= 2723) OR (col3 < 9191) OR col3 = 498 AND (col0 <= 2766) AND ((col3 < 4235) OR col0 IS NULL AND (col3 <= 2910 AND col4 > 8399.49)) AND (((col0 < 6421 AND col0 >= 5298 AND ((col4 <= 8878.68 OR (col0 >= 3739) AND col0 < 3211 OR col4 IN (948.73,9156.77) AND col0 = 5654 OR col4 > 5805.68 AND col4 < 8049.91 AND col1 >= 2357.25 AND col1 IN (7807.46,9265.52,6202.37,7062.8) AND (col0 > 26) OR col0 >= 9595 OR col0 >= 2506 AND (col1 < 5842.19) AND col1 <= 1777.93 OR (col3 >= 5739)))))) OR col0 < 8050)) OR col3 > 1442)) OR ((col0 < 703 OR (col4 >= 8775.3) OR col1 < 9606.76 OR (col3 < 2186) OR col3 IS NULL) OR col1 > 5475.35)) AND col0 < 4571 AND col3 < 7485 UNION SELECT pk, col0 FROM tab0 WHERE NOT ((((col0 IN (5925,9789)) AND (col1 <= 5378.37 AND col0 IS NULL) AND (col0 < 2689)) OR col1 <= 5556.3 AND col3 <= 7971 OR col3 > 5189 AND col0 > 7 AND ((col1 > 5103.31)) OR col0 < 630 AND (((col0 <= 2635) OR col3 = 7624 AND ((((col0 IN (6163,2022,4720,9473,670) AND ((((((col0 < 298 OR (col4 > 9327.60))) AND ((col3 >= 2809))) AND ((col3 <= 1547)) OR (col4 < 8374.94) AND (((col0 > 6645 AND (col4 > 2874.0) AND col1 > 740.39 OR (col0 > 5035) AND col0 >= 5207 AND col3 <= 7098)) AND ((col3 IS NULL)))) AND col0 >= 6016 OR ((col0 IS NULL) AND col4 >= 5611.20) AND (col3 < 6387)))) OR (col3 > 4109))) AND col0 < 1737 OR (((col3 = 9884)))) AND col0 > 3647 AND ((((((((col4 > 6152.55)))))) AND (col0 <= 6441 OR col0 > 6481) AND (((col3 < 7932))) AND col0 > 9467)) AND col4 IN (4407.9,1177.3,6814.27,6241.37,9284.25) AND col0 BETWEEN 1184 AND 4256 AND col0 >= 5560) OR (col3 > 4591 AND (col0 <= 753) OR ((col0 > 1641 OR (col3 >= 2723) OR (col3 < 9191) OR col3 = 498 AND (col0 <= 2766) AND ((col3 < 4235) OR col0 IS NULL AND (col3 <= 2910 AND col4 > 8399.49)) AND (((col0 < 6421 AND col0 >= 5298 AND ((col4 <= 8878.68 OR (col0 >= 3739) AND col0 < 3211 OR col4 IN (948.73,9156.77) AND col0 = 5654 OR col4 > 5805.68 AND col4 < 8049.91 AND col1 >= 2357.25 AND col1 IN (7807.46,9265.52,6202.37,7062.8) AND (col0 > 26) OR col0 >= 9595 OR col0 >= 2506 AND (col1 < 5842.19) AND col1 <= 1777.93 OR (col3 >= 5739)))))) OR col0 < 8050)) OR col3 > 1442)) OR ((col0 < 703 OR (col4 >= 8775.3) OR col1 < 9606.76 OR (col3 < 2186) OR col3 IS NULL) OR col1 > 5475.35)) AND col0 < 4571 AND col3 < 7485)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_782 UNION SELECT pk, col0 FROM view_2_tab0_782
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-4300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE (((col0 IN (5925,9789)) AND (col1 <= 5378.37 AND col0 IS NULL) AND (col0 < 2689)) OR col1 <= 5556.3 AND col3 <= 7971 OR col3 > 5189 AND col0 > 7 AND ((col1 > 5103.31)) OR col0 < 630 AND (((col0 <= 2635) OR col3 = 7624 AND ((((col0 IN (6163,2022,4720,9473,670) AND ((((((col0 < 298 OR (col4 > 9327.60))) AND ((col3 >= 2809))) AND ((col3 <= 1547)) OR (col4 < 8374.94) AND (((col0 > 6645 AND (col4 > 2874.0) AND col1 > 740.39 OR (col0 > 5035) AND col0 >= 5207 AND col3 <= 7098)) AND ((col3 IS NULL)))) AND col0 >= 6016 OR ((col0 IS NULL) AND col4 >= 5611.20) AND (col3 < 6387)))) OR (col3 > 4109))) AND col0 < 1737 OR (((col3 = 9884)))) AND col0 > 3647 AND ((((((((col4 > 6152.55)))))) AND (col0 <= 6441 OR col0 > 6481) AND (((col3 < 7932))) AND col0 > 9467)) AND col4 IN (4407.9,1177.3,6814.27,6241.37,9284.25) AND col0 BETWEEN 1184 AND 4256 AND col0 >= 5560) OR (col3 > 4591 AND (col0 <= 753) OR ((col0 > 1641 OR (col3 >= 2723) OR (col3 < 9191) OR col3 = 498 AND (col0 <= 2766) AND ((col3 < 4235) OR col0 IS NULL AND (col3 <= 2910 AND col4 > 8399.49)) AND (((col0 < 6421 AND col0 >= 5298 AND ((col4 <= 8878.68 OR (col0 >= 3739) AND col0 < 3211 OR col4 IN (948.73,9156.77) AND col0 = 5654 OR col4 > 5805.68 AND col4 < 8049.91 AND col1 >= 2357.25 AND col1 IN (7807.46,9265.52,6202.37,7062.8) AND (col0 > 26) OR col0 >= 9595 OR col0 >= 2506 AND (col1 < 5842.19) AND col1 <= 1777.93 OR (col3 >= 5739)))))) OR col0 < 8050)) OR col3 > 1442)) OR ((col0 < 703 OR (col4 >= 8775.3) OR col1 < 9606.76 OR (col3 < 2186) OR col3 IS NULL) OR col1 > 5475.35)) AND col0 < 4571 AND col3 < 7485 ) AS tab0_782
----
335 values hashing to 6c5db9666d99e19f3d583c2f59932dd3

query I rowsort label-4300-3
SELECT * FROM view_3_tab0_782
----
335 values hashing to 6c5db9666d99e19f3d583c2f59932dd3

query I rowsort label-4300-3
SELECT pk FROM tab0 WHERE (((col0 IN (5925,9789)) AND (col1 <= 5378.37 AND col0 IS NULL) AND (col0 < 2689)) OR col1 <= 5556.3 AND col3 <= 7971 OR col3 > 5189 AND col0 > 7 AND ((col1 > 5103.31)) OR col0 < 630 AND (((col0 <= 2635) OR col3 = 7624 AND ((((col0 IN (6163,2022,4720,9473,670) AND ((((((col0 < 298 OR (col4 > 9327.60))) AND ((col3 >= 2809))) AND ((col3 <= 1547)) OR (col4 < 8374.94) AND (((col0 > 6645 AND (col4 > 2874.0) AND col1 > 740.39 OR (col0 > 5035) AND col0 >= 5207 AND col3 <= 7098)) AND ((col3 IS NULL)))) AND col0 >= 6016 OR ((col0 IS NULL) AND col4 >= 5611.20) AND (col3 < 6387)))) OR (col3 > 4109))) AND col0 < 1737 OR (((col3 = 9884)))) AND col0 > 3647 AND ((((((((col4 > 6152.55)))))) AND (col0 <= 6441 OR col0 > 6481) AND (((col3 < 7932))) AND col0 > 9467)) AND col4 IN (4407.9,1177.3,6814.27,6241.37,9284.25) AND col0 BETWEEN 1184 AND 4256 AND col0 >= 5560) OR (col3 > 4591 AND (col0 <= 753) OR ((col0 > 1641 OR (col3 >= 2723) OR (col3 < 9191) OR col3 = 498 AND (col0 <= 2766) AND ((col3 < 4235) OR col0 IS NULL AND (col3 <= 2910 AND col4 > 8399.49)) AND (((col0 < 6421 AND col0 >= 5298 AND ((col4 <= 8878.68 OR (col0 >= 3739) AND col0 < 3211 OR col4 IN (948.73,9156.77) AND col0 = 5654 OR col4 > 5805.68 AND col4 < 8049.91 AND col1 >= 2357.25 AND col1 IN (7807.46,9265.52,6202.37,7062.8) AND (col0 > 26) OR col0 >= 9595 OR col0 >= 2506 AND (col1 < 5842.19) AND col1 <= 1777.93 OR (col3 >= 5739)))))) OR col0 < 8050)) OR col3 > 1442)) OR ((col0 < 703 OR (col4 >= 8775.3) OR col1 < 9606.76 OR (col3 < 2186) OR col3 IS NULL) OR col1 > 5475.35)) AND col0 < 4571 AND col3 < 7485
----
335 values hashing to 6c5db9666d99e19f3d583c2f59932dd3

statement ok
DROP VIEW view_1_tab0_782

statement ok
DROP VIEW view_2_tab0_782

statement ok
DROP VIEW view_3_tab0_782

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_782') DROP VIEW view_1_tab1_782

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_782

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_782') DROP VIEW view_2_tab1_782

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_782

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_782') DROP VIEW view_3_tab1_782

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_782

statement ok
CREATE VIEW view_1_tab1_782 AS SELECT pk, col0 FROM tab1 WHERE (((col0 IN (5925,9789)) AND (col1 <= 5378.37 AND col0 IS NULL) AND (col0 < 2689)) OR col1 <= 5556.3 AND col3 <= 7971 OR col3 > 5189 AND col0 > 7 AND ((col1 > 5103.31)) OR col0 < 630 AND (((col0 <= 2635) OR col3 = 7624 AND ((((col0 IN (6163,2022,4720,9473,670) AND ((((((col0 < 298 OR (col4 > 9327.60))) AND ((col3 >= 2809))) AND ((col3 <= 1547)) OR (col4 < 8374.94) AND (((col0 > 6645 AND (col4 > 2874.0) AND col1 > 740.39 OR (col0 > 5035) AND col0 >= 5207 AND col3 <= 7098)) AND ((col3 IS NULL)))) AND col0 >= 6016 OR ((col0 IS NULL) AND col4 >= 5611.20) AND (col3 < 6387)))) OR (col3 > 4109))) AND col0 < 1737 OR (((col3 = 9884)))) AND col0 > 3647 AND ((((((((col4 > 6152.55)))))) AND (col0 <= 6441 OR col0 > 6481) AND (((col3 < 7932))) AND col0 > 9467)) AND col4 IN (4407.9,1177.3,6814.27,6241.37,9284.25) AND col0 BETWEEN 1184 AND 4256 AND col0 >= 5560) OR (col3 > 4591 AND (col0 <= 753) OR ((col0 > 1641 OR (col3 >= 2723) OR (col3 < 9191) OR col3 = 498 AND (col0 <= 2766) AND ((col3 < 4235) OR col0 IS NULL AND (col3 <= 2910 AND col4 > 8399.49)) AND (((col0 < 6421 AND col0 >= 5298 AND ((col4 <= 8878.68 OR (col0 >= 3739) AND col0 < 3211 OR col4 IN (948.73,9156.77) AND col0 = 5654 OR col4 > 5805.68 AND col4 < 8049.91 AND col1 >= 2357.25 AND col1 IN (7807.46,9265.52,6202.37,7062.8) AND (col0 > 26) OR col0 >= 9595 OR col0 >= 2506 AND (col1 < 5842.19) AND col1 <= 1777.93 OR (col3 >= 5739)))))) OR col0 < 8050)) OR col3 > 1442)) OR ((col0 < 703 OR (col4 >= 8775.3) OR col1 < 9606.76 OR (col3 < 2186) OR col3 IS NULL) OR col1 > 5475.35)) AND col0 < 4571 AND col3 < 7485

statement ok
CREATE VIEW view_2_tab1_782 AS SELECT pk, col0 FROM tab1 WHERE NOT ((((col0 IN (5925,9789)) AND (col1 <= 5378.37 AND col0 IS NULL) AND (col0 < 2689)) OR col1 <= 5556.3 AND col3 <= 7971 OR col3 > 5189 AND col0 > 7 AND ((col1 > 5103.31)) OR col0 < 630 AND (((col0 <= 2635) OR col3 = 7624 AND ((((col0 IN (6163,2022,4720,9473,670) AND ((((((col0 < 298 OR (col4 > 9327.60))) AND ((col3 >= 2809))) AND ((col3 <= 1547)) OR (col4 < 8374.94) AND (((col0 > 6645 AND (col4 > 2874.0) AND col1 > 740.39 OR (col0 > 5035) AND col0 >= 5207 AND col3 <= 7098)) AND ((col3 IS NULL)))) AND col0 >= 6016 OR ((col0 IS NULL) AND col4 >= 5611.20) AND (col3 < 6387)))) OR (col3 > 4109))) AND col0 < 1737 OR (((col3 = 9884)))) AND col0 > 3647 AND ((((((((col4 > 6152.55)))))) AND (col0 <= 6441 OR col0 > 6481) AND (((col3 < 7932))) AND col0 > 9467)) AND col4 IN (4407.9,1177.3,6814.27,6241.37,9284.25) AND col0 BETWEEN 1184 AND 4256 AND col0 >= 5560) OR (col3 > 4591 AND (col0 <= 753) OR ((col0 > 1641 OR (col3 >= 2723) OR (col3 < 9191) OR col3 = 498 AND (col0 <= 2766) AND ((col3 < 4235) OR col0 IS NULL AND (col3 <= 2910 AND col4 > 8399.49)) AND (((col0 < 6421 AND col0 >= 5298 AND ((col4 <= 8878.68 OR (col0 >= 3739) AND col0 < 3211 OR col4 IN (948.73,9156.77) AND col0 = 5654 OR col4 > 5805.68 AND col4 < 8049.91 AND col1 >= 2357.25 AND col1 IN (7807.46,9265.52,6202.37,7062.8) AND (col0 > 26) OR col0 >= 9595 OR col0 >= 2506 AND (col1 < 5842.19) AND col1 <= 1777.93 OR (col3 >= 5739)))))) OR col0 < 8050)) OR col3 > 1442)) OR ((col0 < 703 OR (col4 >= 8775.3) OR col1 < 9606.76 OR (col3 < 2186) OR col3 IS NULL) OR col1 > 5475.35)) AND col0 < 4571 AND col3 < 7485)

statement ok
CREATE VIEW view_3_tab1_782 AS SELECT pk FROM view_1_tab1_782

query II rowsort label-4300-1
SELECT pk, col0 FROM tab1 WHERE (((col0 IN (5925,9789)) AND (col1 <= 5378.37 AND col0 IS NULL) AND (col0 < 2689)) OR col1 <= 5556.3 AND col3 <= 7971 OR col3 > 5189 AND col0 > 7 AND ((col1 > 5103.31)) OR col0 < 630 AND (((col0 <= 2635) OR col3 = 7624 AND ((((col0 IN (6163,2022,4720,9473,670) AND ((((((col0 < 298 OR (col4 > 9327.60))) AND ((col3 >= 2809))) AND ((col3 <= 1547)) OR (col4 < 8374.94) AND (((col0 > 6645 AND (col4 > 2874.0) AND col1 > 740.39 OR (col0 > 5035) AND col0 >= 5207 AND col3 <= 7098)) AND ((col3 IS NULL)))) AND col0 >= 6016 OR ((col0 IS NULL) AND col4 >= 5611.20) AND (col3 < 6387)))) OR (col3 > 4109))) AND col0 < 1737 OR (((col3 = 9884)))) AND col0 > 3647 AND ((((((((col4 > 6152.55)))))) AND (col0 <= 6441 OR col0 > 6481) AND (((col3 < 7932))) AND col0 > 9467)) AND col4 IN (4407.9,1177.3,6814.27,6241.37,9284.25) AND col0 BETWEEN 1184 AND 4256 AND col0 >= 5560) OR (col3 > 4591 AND (col0 <= 753) OR ((col0 > 1641 OR (col3 >= 2723) OR (col3 < 9191) OR col3 = 498 AND (col0 <= 2766) AND ((col3 < 4235) OR col0 IS NULL AND (col3 <= 2910 AND col4 > 8399.49)) AND (((col0 < 6421 AND col0 >= 5298 AND ((col4 <= 8878.68 OR (col0 >= 3739) AND col0 < 3211 OR col4 IN (948.73,9156.77) AND col0 = 5654 OR col4 > 5805.68 AND col4 < 8049.91 AND col1 >= 2357.25 AND col1 IN (7807.46,9265.52,6202.37,7062.8) AND (col0 > 26) OR col0 >= 9595 OR col0 >= 2506 AND (col1 < 5842.19) AND col1 <= 1777.93 OR (col3 >= 5739)))))) OR col0 < 8050)) OR col3 > 1442)) OR ((col0 < 703 OR (col4 >= 8775.3) OR col1 < 9606.76 OR (col3 < 2186) OR col3 IS NULL) OR col1 > 5475.35)) AND col0 < 4571 AND col3 < 7485
----
670 values hashing to 5fc04d1e3c2cf04bd565e9f7c5994d77

query II rowsort label-4300-2
SELECT pk, col0 FROM tab1 WHERE NOT ((((col0 IN (5925,9789)) AND (col1 <= 5378.37 AND col0 IS NULL) AND (col0 < 2689)) OR col1 <= 5556.3 AND col3 <= 7971 OR col3 > 5189 AND col0 > 7 AND ((col1 > 5103.31)) OR col0 < 630 AND (((col0 <= 2635) OR col3 = 7624 AND ((((col0 IN (6163,2022,4720,9473,670) AND ((((((col0 < 298 OR (col4 > 9327.60))) AND ((col3 >= 2809))) AND ((col3 <= 1547)) OR (col4 < 8374.94) AND (((col0 > 6645 AND (col4 > 2874.0) AND col1 > 740.39 OR (col0 > 5035) AND col0 >= 5207 AND col3 <= 7098)) AND ((col3 IS NULL)))) AND col0 >= 6016 OR ((col0 IS NULL) AND col4 >= 5611.20) AND (col3 < 6387)))) OR (col3 > 4109))) AND col0 < 1737 OR (((col3 = 9884)))) AND col0 > 3647 AND ((((((((col4 > 6152.55)))))) AND (col0 <= 6441 OR col0 > 6481) AND (((col3 < 7932))) AND col0 > 9467)) AND col4 IN (4407.9,1177.3,6814.27,6241.37,9284.25) AND col0 BETWEEN 1184 AND 4256 AND col0 >= 5560) OR (col3 > 4591 AND (col0 <= 753) OR ((col0 > 1641 OR (col3 >= 2723) OR (col3 < 9191) OR col3 = 498 AND (col0 <= 2766) AND ((col3 < 4235) OR col0 IS NULL AND (col3 <= 2910 AND col4 > 8399.49)) AND (((col0 < 6421 AND col0 >= 5298 AND ((col4 <= 8878.68 OR (col0 >= 3739) AND col0 < 3211 OR col4 IN (948.73,9156.77) AND col0 = 5654 OR col4 > 5805.68 AND col4 < 8049.91 AND col1 >= 2357.25 AND col1 IN (7807.46,9265.52,6202.37,7062.8) AND (col0 > 26) OR col0 >= 9595 OR col0 >= 2506 AND (col1 < 5842.19) AND col1 <= 1777.93 OR (col3 >= 5739)))))) OR col0 < 8050)) OR col3 > 1442)) OR ((col0 < 703 OR (col4 >= 8775.3) OR col1 < 9606.76 OR (col3 < 2186) OR col3 IS NULL) OR col1 > 5475.35)) AND col0 < 4571 AND col3 < 7485)
----
1330 values hashing to 4dd82b263cf931801d56c36e86f2888e

query II rowsort label-4300-1
SELECT pk, col0 FROM view_1_tab1_782
----
670 values hashing to 5fc04d1e3c2cf04bd565e9f7c5994d77

query II rowsort label-4300-2
SELECT pk, col0 FROM view_2_tab1_782
----
1330 values hashing to 4dd82b263cf931801d56c36e86f2888e

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (((col0 IN (5925,9789)) AND (col1 <= 5378.37 AND col0 IS NULL) AND (col0 < 2689)) OR col1 <= 5556.3 AND col3 <= 7971 OR col3 > 5189 AND col0 > 7 AND ((col1 > 5103.31)) OR col0 < 630 AND (((col0 <= 2635) OR col3 = 7624 AND ((((col0 IN (6163,2022,4720,9473,670) AND ((((((col0 < 298 OR (col4 > 9327.60))) AND ((col3 >= 2809))) AND ((col3 <= 1547)) OR (col4 < 8374.94) AND (((col0 > 6645 AND (col4 > 2874.0) AND col1 > 740.39 OR (col0 > 5035) AND col0 >= 5207 AND col3 <= 7098)) AND ((col3 IS NULL)))) AND col0 >= 6016 OR ((col0 IS NULL) AND col4 >= 5611.20) AND (col3 < 6387)))) OR (col3 > 4109))) AND col0 < 1737 OR (((col3 = 9884)))) AND col0 > 3647 AND ((((((((col4 > 6152.55)))))) AND (col0 <= 6441 OR col0 > 6481) AND (((col3 < 7932))) AND col0 > 9467)) AND col4 IN (4407.9,1177.3,6814.27,6241.37,9284.25) AND col0 BETWEEN 1184 AND 4256 AND col0 >= 5560) OR (col3 > 4591 AND (col0 <= 753) OR ((col0 > 1641 OR (col3 >= 2723) OR (col3 < 9191) OR col3 = 498 AND (col0 <= 2766) AND ((col3 < 4235) OR col0 IS NULL AND (col3 <= 2910 AND col4 > 8399.49)) AND (((col0 < 6421 AND col0 >= 5298 AND ((col4 <= 8878.68 OR (col0 >= 3739) AND col0 < 3211 OR col4 IN (948.73,9156.77) AND col0 = 5654 OR col4 > 5805.68 AND col4 < 8049.91 AND col1 >= 2357.25 AND col1 IN (7807.46,9265.52,6202.37,7062.8) AND (col0 > 26) OR col0 >= 9595 OR col0 >= 2506 AND (col1 < 5842.19) AND col1 <= 1777.93 OR (col3 >= 5739)))))) OR col0 < 8050)) OR col3 > 1442)) OR ((col0 < 703 OR (col4 >= 8775.3) OR col1 < 9606.76 OR (col3 < 2186) OR col3 IS NULL) OR col1 > 5475.35)) AND col0 < 4571 AND col3 < 7485 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT ((((col0 IN (5925,9789)) AND (col1 <= 5378.37 AND col0 IS NULL) AND (col0 < 2689)) OR col1 <= 5556.3 AND col3 <= 7971 OR col3 > 5189 AND col0 > 7 AND ((col1 > 5103.31)) OR col0 < 630 AND (((col0 <= 2635) OR col3 = 7624 AND ((((col0 IN (6163,2022,4720,9473,670) AND ((((((col0 < 298 OR (col4 > 9327.60))) AND ((col3 >= 2809))) AND ((col3 <= 1547)) OR (col4 < 8374.94) AND (((col0 > 6645 AND (col4 > 2874.0) AND col1 > 740.39 OR (col0 > 5035) AND col0 >= 5207 AND col3 <= 7098)) AND ((col3 IS NULL)))) AND col0 >= 6016 OR ((col0 IS NULL) AND col4 >= 5611.20) AND (col3 < 6387)))) OR (col3 > 4109))) AND col0 < 1737 OR (((col3 = 9884)))) AND col0 > 3647 AND ((((((((col4 > 6152.55)))))) AND (col0 <= 6441 OR col0 > 6481) AND (((col3 < 7932))) AND col0 > 9467)) AND col4 IN (4407.9,1177.3,6814.27,6241.37,9284.25) AND col0 BETWEEN 1184 AND 4256 AND col0 >= 5560) OR (col3 > 4591 AND (col0 <= 753) OR ((col0 > 1641 OR (col3 >= 2723) OR (col3 < 9191) OR col3 = 498 AND (col0 <= 2766) AND ((col3 < 4235) OR col0 IS NULL AND (col3 <= 2910 AND col4 > 8399.49)) AND (((col0 < 6421 AND col0 >= 5298 AND ((col4 <= 8878.68 OR (col0 >= 3739) AND col0 < 3211 OR col4 IN (948.73,9156.77) AND col0 = 5654 OR col4 > 5805.68 AND col4 < 8049.91 AND col1 >= 2357.25 AND col1 IN (7807.46,9265.52,6202.37,7062.8) AND (col0 > 26) OR col0 >= 9595 OR col0 >= 2506 AND (col1 < 5842.19) AND col1 <= 1777.93 OR (col3 >= 5739)))))) OR col0 < 8050)) OR col3 > 1442)) OR ((col0 < 703 OR (col4 >= 8775.3) OR col1 < 9606.76 OR (col3 < 2186) OR col3 IS NULL) OR col1 > 5475.35)) AND col0 < 4571 AND col3 < 7485)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_782 UNION ALL SELECT pk, col0 FROM view_2_tab1_782
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (((col0 IN (5925,9789)) AND (col1 <= 5378.37 AND col0 IS NULL) AND (col0 < 2689)) OR col1 <= 5556.3 AND col3 <= 7971 OR col3 > 5189 AND col0 > 7 AND ((col1 > 5103.31)) OR col0 < 630 AND (((col0 <= 2635) OR col3 = 7624 AND ((((col0 IN (6163,2022,4720,9473,670) AND ((((((col0 < 298 OR (col4 > 9327.60))) AND ((col3 >= 2809))) AND ((col3 <= 1547)) OR (col4 < 8374.94) AND (((col0 > 6645 AND (col4 > 2874.0) AND col1 > 740.39 OR (col0 > 5035) AND col0 >= 5207 AND col3 <= 7098)) AND ((col3 IS NULL)))) AND col0 >= 6016 OR ((col0 IS NULL) AND col4 >= 5611.20) AND (col3 < 6387)))) OR (col3 > 4109))) AND col0 < 1737 OR (((col3 = 9884)))) AND col0 > 3647 AND ((((((((col4 > 6152.55)))))) AND (col0 <= 6441 OR col0 > 6481) AND (((col3 < 7932))) AND col0 > 9467)) AND col4 IN (4407.9,1177.3,6814.27,6241.37,9284.25) AND col0 BETWEEN 1184 AND 4256 AND col0 >= 5560) OR (col3 > 4591 AND (col0 <= 753) OR ((col0 > 1641 OR (col3 >= 2723) OR (col3 < 9191) OR col3 = 498 AND (col0 <= 2766) AND ((col3 < 4235) OR col0 IS NULL AND (col3 <= 2910 AND col4 > 8399.49)) AND (((col0 < 6421 AND col0 >= 5298 AND ((col4 <= 8878.68 OR (col0 >= 3739) AND col0 < 3211 OR col4 IN (948.73,9156.77) AND col0 = 5654 OR col4 > 5805.68 AND col4 < 8049.91 AND col1 >= 2357.25 AND col1 IN (7807.46,9265.52,6202.37,7062.8) AND (col0 > 26) OR col0 >= 9595 OR col0 >= 2506 AND (col1 < 5842.19) AND col1 <= 1777.93 OR (col3 >= 5739)))))) OR col0 < 8050)) OR col3 > 1442)) OR ((col0 < 703 OR (col4 >= 8775.3) OR col1 < 9606.76 OR (col3 < 2186) OR col3 IS NULL) OR col1 > 5475.35)) AND col0 < 4571 AND col3 < 7485 UNION SELECT pk, col0 FROM tab1 WHERE NOT ((((col0 IN (5925,9789)) AND (col1 <= 5378.37 AND col0 IS NULL) AND (col0 < 2689)) OR col1 <= 5556.3 AND col3 <= 7971 OR col3 > 5189 AND col0 > 7 AND ((col1 > 5103.31)) OR col0 < 630 AND (((col0 <= 2635) OR col3 = 7624 AND ((((col0 IN (6163,2022,4720,9473,670) AND ((((((col0 < 298 OR (col4 > 9327.60))) AND ((col3 >= 2809))) AND ((col3 <= 1547)) OR (col4 < 8374.94) AND (((col0 > 6645 AND (col4 > 2874.0) AND col1 > 740.39 OR (col0 > 5035) AND col0 >= 5207 AND col3 <= 7098)) AND ((col3 IS NULL)))) AND col0 >= 6016 OR ((col0 IS NULL) AND col4 >= 5611.20) AND (col3 < 6387)))) OR (col3 > 4109))) AND col0 < 1737 OR (((col3 = 9884)))) AND col0 > 3647 AND ((((((((col4 > 6152.55)))))) AND (col0 <= 6441 OR col0 > 6481) AND (((col3 < 7932))) AND col0 > 9467)) AND col4 IN (4407.9,1177.3,6814.27,6241.37,9284.25) AND col0 BETWEEN 1184 AND 4256 AND col0 >= 5560) OR (col3 > 4591 AND (col0 <= 753) OR ((col0 > 1641 OR (col3 >= 2723) OR (col3 < 9191) OR col3 = 498 AND (col0 <= 2766) AND ((col3 < 4235) OR col0 IS NULL AND (col3 <= 2910 AND col4 > 8399.49)) AND (((col0 < 6421 AND col0 >= 5298 AND ((col4 <= 8878.68 OR (col0 >= 3739) AND col0 < 3211 OR col4 IN (948.73,9156.77) AND col0 = 5654 OR col4 > 5805.68 AND col4 < 8049.91 AND col1 >= 2357.25 AND col1 IN (7807.46,9265.52,6202.37,7062.8) AND (col0 > 26) OR col0 >= 9595 OR col0 >= 2506 AND (col1 < 5842.19) AND col1 <= 1777.93 OR (col3 >= 5739)))))) OR col0 < 8050)) OR col3 > 1442)) OR ((col0 < 703 OR (col4 >= 8775.3) OR col1 < 9606.76 OR (col3 < 2186) OR col3 IS NULL) OR col1 > 5475.35)) AND col0 < 4571 AND col3 < 7485)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_782 UNION SELECT pk, col0 FROM view_2_tab1_782
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-4300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE (((col0 IN (5925,9789)) AND (col1 <= 5378.37 AND col0 IS NULL) AND (col0 < 2689)) OR col1 <= 5556.3 AND col3 <= 7971 OR col3 > 5189 AND col0 > 7 AND ((col1 > 5103.31)) OR col0 < 630 AND (((col0 <= 2635) OR col3 = 7624 AND ((((col0 IN (6163,2022,4720,9473,670) AND ((((((col0 < 298 OR (col4 > 9327.60))) AND ((col3 >= 2809))) AND ((col3 <= 1547)) OR (col4 < 8374.94) AND (((col0 > 6645 AND (col4 > 2874.0) AND col1 > 740.39 OR (col0 > 5035) AND col0 >= 5207 AND col3 <= 7098)) AND ((col3 IS NULL)))) AND col0 >= 6016 OR ((col0 IS NULL) AND col4 >= 5611.20) AND (col3 < 6387)))) OR (col3 > 4109))) AND col0 < 1737 OR (((col3 = 9884)))) AND col0 > 3647 AND ((((((((col4 > 6152.55)))))) AND (col0 <= 6441 OR col0 > 6481) AND (((col3 < 7932))) AND col0 > 9467)) AND col4 IN (4407.9,1177.3,6814.27,6241.37,9284.25) AND col0 BETWEEN 1184 AND 4256 AND col0 >= 5560) OR (col3 > 4591 AND (col0 <= 753) OR ((col0 > 1641 OR (col3 >= 2723) OR (col3 < 9191) OR col3 = 498 AND (col0 <= 2766) AND ((col3 < 4235) OR col0 IS NULL AND (col3 <= 2910 AND col4 > 8399.49)) AND (((col0 < 6421 AND col0 >= 5298 AND ((col4 <= 8878.68 OR (col0 >= 3739) AND col0 < 3211 OR col4 IN (948.73,9156.77) AND col0 = 5654 OR col4 > 5805.68 AND col4 < 8049.91 AND col1 >= 2357.25 AND col1 IN (7807.46,9265.52,6202.37,7062.8) AND (col0 > 26) OR col0 >= 9595 OR col0 >= 2506 AND (col1 < 5842.19) AND col1 <= 1777.93 OR (col3 >= 5739)))))) OR col0 < 8050)) OR col3 > 1442)) OR ((col0 < 703 OR (col4 >= 8775.3) OR col1 < 9606.76 OR (col3 < 2186) OR col3 IS NULL) OR col1 > 5475.35)) AND col0 < 4571 AND col3 < 7485 ) AS tab1_782
----
335 values hashing to 6c5db9666d99e19f3d583c2f59932dd3

query I rowsort label-4300-3
SELECT * FROM view_3_tab1_782
----
335 values hashing to 6c5db9666d99e19f3d583c2f59932dd3

query I rowsort label-4300-3
SELECT pk FROM tab1 WHERE (((col0 IN (5925,9789)) AND (col1 <= 5378.37 AND col0 IS NULL) AND (col0 < 2689)) OR col1 <= 5556.3 AND col3 <= 7971 OR col3 > 5189 AND col0 > 7 AND ((col1 > 5103.31)) OR col0 < 630 AND (((col0 <= 2635) OR col3 = 7624 AND ((((col0 IN (6163,2022,4720,9473,670) AND ((((((col0 < 298 OR (col4 > 9327.60))) AND ((col3 >= 2809))) AND ((col3 <= 1547)) OR (col4 < 8374.94) AND (((col0 > 6645 AND (col4 > 2874.0) AND col1 > 740.39 OR (col0 > 5035) AND col0 >= 5207 AND col3 <= 7098)) AND ((col3 IS NULL)))) AND col0 >= 6016 OR ((col0 IS NULL) AND col4 >= 5611.20) AND (col3 < 6387)))) OR (col3 > 4109))) AND col0 < 1737 OR (((col3 = 9884)))) AND col0 > 3647 AND ((((((((col4 > 6152.55)))))) AND (col0 <= 6441 OR col0 > 6481) AND (((col3 < 7932))) AND col0 > 9467)) AND col4 IN (4407.9,1177.3,6814.27,6241.37,9284.25) AND col0 BETWEEN 1184 AND 4256 AND col0 >= 5560) OR (col3 > 4591 AND (col0 <= 753) OR ((col0 > 1641 OR (col3 >= 2723) OR (col3 < 9191) OR col3 = 498 AND (col0 <= 2766) AND ((col3 < 4235) OR col0 IS NULL AND (col3 <= 2910 AND col4 > 8399.49)) AND (((col0 < 6421 AND col0 >= 5298 AND ((col4 <= 8878.68 OR (col0 >= 3739) AND col0 < 3211 OR col4 IN (948.73,9156.77) AND col0 = 5654 OR col4 > 5805.68 AND col4 < 8049.91 AND col1 >= 2357.25 AND col1 IN (7807.46,9265.52,6202.37,7062.8) AND (col0 > 26) OR col0 >= 9595 OR col0 >= 2506 AND (col1 < 5842.19) AND col1 <= 1777.93 OR (col3 >= 5739)))))) OR col0 < 8050)) OR col3 > 1442)) OR ((col0 < 703 OR (col4 >= 8775.3) OR col1 < 9606.76 OR (col3 < 2186) OR col3 IS NULL) OR col1 > 5475.35)) AND col0 < 4571 AND col3 < 7485
----
335 values hashing to 6c5db9666d99e19f3d583c2f59932dd3

statement ok
DROP VIEW view_1_tab1_782

statement ok
DROP VIEW view_2_tab1_782

statement ok
DROP VIEW view_3_tab1_782

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_782') DROP VIEW view_1_tab2_782

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_782

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_782') DROP VIEW view_2_tab2_782

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_782

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_782') DROP VIEW view_3_tab2_782

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_782

statement ok
CREATE VIEW view_1_tab2_782 AS SELECT pk, col0 FROM tab2 WHERE (((col0 IN (5925,9789)) AND (col1 <= 5378.37 AND col0 IS NULL) AND (col0 < 2689)) OR col1 <= 5556.3 AND col3 <= 7971 OR col3 > 5189 AND col0 > 7 AND ((col1 > 5103.31)) OR col0 < 630 AND (((col0 <= 2635) OR col3 = 7624 AND ((((col0 IN (6163,2022,4720,9473,670) AND ((((((col0 < 298 OR (col4 > 9327.60))) AND ((col3 >= 2809))) AND ((col3 <= 1547)) OR (col4 < 8374.94) AND (((col0 > 6645 AND (col4 > 2874.0) AND col1 > 740.39 OR (col0 > 5035) AND col0 >= 5207 AND col3 <= 7098)) AND ((col3 IS NULL)))) AND col0 >= 6016 OR ((col0 IS NULL) AND col4 >= 5611.20) AND (col3 < 6387)))) OR (col3 > 4109))) AND col0 < 1737 OR (((col3 = 9884)))) AND col0 > 3647 AND ((((((((col4 > 6152.55)))))) AND (col0 <= 6441 OR col0 > 6481) AND (((col3 < 7932))) AND col0 > 9467)) AND col4 IN (4407.9,1177.3,6814.27,6241.37,9284.25) AND col0 BETWEEN 1184 AND 4256 AND col0 >= 5560) OR (col3 > 4591 AND (col0 <= 753) OR ((col0 > 1641 OR (col3 >= 2723) OR (col3 < 9191) OR col3 = 498 AND (col0 <= 2766) AND ((col3 < 4235) OR col0 IS NULL AND (col3 <= 2910 AND col4 > 8399.49)) AND (((col0 < 6421 AND col0 >= 5298 AND ((col4 <= 8878.68 OR (col0 >= 3739) AND col0 < 3211 OR col4 IN (948.73,9156.77) AND col0 = 5654 OR col4 > 5805.68 AND col4 < 8049.91 AND col1 >= 2357.25 AND col1 IN (7807.46,9265.52,6202.37,7062.8) AND (col0 > 26) OR col0 >= 9595 OR col0 >= 2506 AND (col1 < 5842.19) AND col1 <= 1777.93 OR (col3 >= 5739)))))) OR col0 < 8050)) OR col3 > 1442)) OR ((col0 < 703 OR (col4 >= 8775.3) OR col1 < 9606.76 OR (col3 < 2186) OR col3 IS NULL) OR col1 > 5475.35)) AND col0 < 4571 AND col3 < 7485

statement ok
CREATE VIEW view_2_tab2_782 AS SELECT pk, col0 FROM tab2 WHERE NOT ((((col0 IN (5925,9789)) AND (col1 <= 5378.37 AND col0 IS NULL) AND (col0 < 2689)) OR col1 <= 5556.3 AND col3 <= 7971 OR col3 > 5189 AND col0 > 7 AND ((col1 > 5103.31)) OR col0 < 630 AND (((col0 <= 2635) OR col3 = 7624 AND ((((col0 IN (6163,2022,4720,9473,670) AND ((((((col0 < 298 OR (col4 > 9327.60))) AND ((col3 >= 2809))) AND ((col3 <= 1547)) OR (col4 < 8374.94) AND (((col0 > 6645 AND (col4 > 2874.0) AND col1 > 740.39 OR (col0 > 5035) AND col0 >= 5207 AND col3 <= 7098)) AND ((col3 IS NULL)))) AND col0 >= 6016 OR ((col0 IS NULL) AND col4 >= 5611.20) AND (col3 < 6387)))) OR (col3 > 4109))) AND col0 < 1737 OR (((col3 = 9884)))) AND col0 > 3647 AND ((((((((col4 > 6152.55)))))) AND (col0 <= 6441 OR col0 > 6481) AND (((col3 < 7932))) AND col0 > 9467)) AND col4 IN (4407.9,1177.3,6814.27,6241.37,9284.25) AND col0 BETWEEN 1184 AND 4256 AND col0 >= 5560) OR (col3 > 4591 AND (col0 <= 753) OR ((col0 > 1641 OR (col3 >= 2723) OR (col3 < 9191) OR col3 = 498 AND (col0 <= 2766) AND ((col3 < 4235) OR col0 IS NULL AND (col3 <= 2910 AND col4 > 8399.49)) AND (((col0 < 6421 AND col0 >= 5298 AND ((col4 <= 8878.68 OR (col0 >= 3739) AND col0 < 3211 OR col4 IN (948.73,9156.77) AND col0 = 5654 OR col4 > 5805.68 AND col4 < 8049.91 AND col1 >= 2357.25 AND col1 IN (7807.46,9265.52,6202.37,7062.8) AND (col0 > 26) OR col0 >= 9595 OR col0 >= 2506 AND (col1 < 5842.19) AND col1 <= 1777.93 OR (col3 >= 5739)))))) OR col0 < 8050)) OR col3 > 1442)) OR ((col0 < 703 OR (col4 >= 8775.3) OR col1 < 9606.76 OR (col3 < 2186) OR col3 IS NULL) OR col1 > 5475.35)) AND col0 < 4571 AND col3 < 7485)

statement ok
CREATE VIEW view_3_tab2_782 AS SELECT pk FROM view_1_tab2_782

query II rowsort label-4300-1
SELECT pk, col0 FROM tab2 WHERE (((col0 IN (5925,9789)) AND (col1 <= 5378.37 AND col0 IS NULL) AND (col0 < 2689)) OR col1 <= 5556.3 AND col3 <= 7971 OR col3 > 5189 AND col0 > 7 AND ((col1 > 5103.31)) OR col0 < 630 AND (((col0 <= 2635) OR col3 = 7624 AND ((((col0 IN (6163,2022,4720,9473,670) AND ((((((col0 < 298 OR (col4 > 9327.60))) AND ((col3 >= 2809))) AND ((col3 <= 1547)) OR (col4 < 8374.94) AND (((col0 > 6645 AND (col4 > 2874.0) AND col1 > 740.39 OR (col0 > 5035) AND col0 >= 5207 AND col3 <= 7098)) AND ((col3 IS NULL)))) AND col0 >= 6016 OR ((col0 IS NULL) AND col4 >= 5611.20) AND (col3 < 6387)))) OR (col3 > 4109))) AND col0 < 1737 OR (((col3 = 9884)))) AND col0 > 3647 AND ((((((((col4 > 6152.55)))))) AND (col0 <= 6441 OR col0 > 6481) AND (((col3 < 7932))) AND col0 > 9467)) AND col4 IN (4407.9,1177.3,6814.27,6241.37,9284.25) AND col0 BETWEEN 1184 AND 4256 AND col0 >= 5560) OR (col3 > 4591 AND (col0 <= 753) OR ((col0 > 1641 OR (col3 >= 2723) OR (col3 < 9191) OR col3 = 498 AND (col0 <= 2766) AND ((col3 < 4235) OR col0 IS NULL AND (col3 <= 2910 AND col4 > 8399.49)) AND (((col0 < 6421 AND col0 >= 5298 AND ((col4 <= 8878.68 OR (col0 >= 3739) AND col0 < 3211 OR col4 IN (948.73,9156.77) AND col0 = 5654 OR col4 > 5805.68 AND col4 < 8049.91 AND col1 >= 2357.25 AND col1 IN (7807.46,9265.52,6202.37,7062.8) AND (col0 > 26) OR col0 >= 9595 OR col0 >= 2506 AND (col1 < 5842.19) AND col1 <= 1777.93 OR (col3 >= 5739)))))) OR col0 < 8050)) OR col3 > 1442)) OR ((col0 < 703 OR (col4 >= 8775.3) OR col1 < 9606.76 OR (col3 < 2186) OR col3 IS NULL) OR col1 > 5475.35)) AND col0 < 4571 AND col3 < 7485
----
670 values hashing to 5fc04d1e3c2cf04bd565e9f7c5994d77

query II rowsort label-4300-2
SELECT pk, col0 FROM tab2 WHERE NOT ((((col0 IN (5925,9789)) AND (col1 <= 5378.37 AND col0 IS NULL) AND (col0 < 2689)) OR col1 <= 5556.3 AND col3 <= 7971 OR col3 > 5189 AND col0 > 7 AND ((col1 > 5103.31)) OR col0 < 630 AND (((col0 <= 2635) OR col3 = 7624 AND ((((col0 IN (6163,2022,4720,9473,670) AND ((((((col0 < 298 OR (col4 > 9327.60))) AND ((col3 >= 2809))) AND ((col3 <= 1547)) OR (col4 < 8374.94) AND (((col0 > 6645 AND (col4 > 2874.0) AND col1 > 740.39 OR (col0 > 5035) AND col0 >= 5207 AND col3 <= 7098)) AND ((col3 IS NULL)))) AND col0 >= 6016 OR ((col0 IS NULL) AND col4 >= 5611.20) AND (col3 < 6387)))) OR (col3 > 4109))) AND col0 < 1737 OR (((col3 = 9884)))) AND col0 > 3647 AND ((((((((col4 > 6152.55)))))) AND (col0 <= 6441 OR col0 > 6481) AND (((col3 < 7932))) AND col0 > 9467)) AND col4 IN (4407.9,1177.3,6814.27,6241.37,9284.25) AND col0 BETWEEN 1184 AND 4256 AND col0 >= 5560) OR (col3 > 4591 AND (col0 <= 753) OR ((col0 > 1641 OR (col3 >= 2723) OR (col3 < 9191) OR col3 = 498 AND (col0 <= 2766) AND ((col3 < 4235) OR col0 IS NULL AND (col3 <= 2910 AND col4 > 8399.49)) AND (((col0 < 6421 AND col0 >= 5298 AND ((col4 <= 8878.68 OR (col0 >= 3739) AND col0 < 3211 OR col4 IN (948.73,9156.77) AND col0 = 5654 OR col4 > 5805.68 AND col4 < 8049.91 AND col1 >= 2357.25 AND col1 IN (7807.46,9265.52,6202.37,7062.8) AND (col0 > 26) OR col0 >= 9595 OR col0 >= 2506 AND (col1 < 5842.19) AND col1 <= 1777.93 OR (col3 >= 5739)))))) OR col0 < 8050)) OR col3 > 1442)) OR ((col0 < 703 OR (col4 >= 8775.3) OR col1 < 9606.76 OR (col3 < 2186) OR col3 IS NULL) OR col1 > 5475.35)) AND col0 < 4571 AND col3 < 7485)
----
1330 values hashing to 4dd82b263cf931801d56c36e86f2888e

query II rowsort label-4300-1
SELECT pk, col0 FROM view_1_tab2_782
----
670 values hashing to 5fc04d1e3c2cf04bd565e9f7c5994d77

query II rowsort label-4300-2
SELECT pk, col0 FROM view_2_tab2_782
----
1330 values hashing to 4dd82b263cf931801d56c36e86f2888e

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (((col0 IN (5925,9789)) AND (col1 <= 5378.37 AND col0 IS NULL) AND (col0 < 2689)) OR col1 <= 5556.3 AND col3 <= 7971 OR col3 > 5189 AND col0 > 7 AND ((col1 > 5103.31)) OR col0 < 630 AND (((col0 <= 2635) OR col3 = 7624 AND ((((col0 IN (6163,2022,4720,9473,670) AND ((((((col0 < 298 OR (col4 > 9327.60))) AND ((col3 >= 2809))) AND ((col3 <= 1547)) OR (col4 < 8374.94) AND (((col0 > 6645 AND (col4 > 2874.0) AND col1 > 740.39 OR (col0 > 5035) AND col0 >= 5207 AND col3 <= 7098)) AND ((col3 IS NULL)))) AND col0 >= 6016 OR ((col0 IS NULL) AND col4 >= 5611.20) AND (col3 < 6387)))) OR (col3 > 4109))) AND col0 < 1737 OR (((col3 = 9884)))) AND col0 > 3647 AND ((((((((col4 > 6152.55)))))) AND (col0 <= 6441 OR col0 > 6481) AND (((col3 < 7932))) AND col0 > 9467)) AND col4 IN (4407.9,1177.3,6814.27,6241.37,9284.25) AND col0 BETWEEN 1184 AND 4256 AND col0 >= 5560) OR (col3 > 4591 AND (col0 <= 753) OR ((col0 > 1641 OR (col3 >= 2723) OR (col3 < 9191) OR col3 = 498 AND (col0 <= 2766) AND ((col3 < 4235) OR col0 IS NULL AND (col3 <= 2910 AND col4 > 8399.49)) AND (((col0 < 6421 AND col0 >= 5298 AND ((col4 <= 8878.68 OR (col0 >= 3739) AND col0 < 3211 OR col4 IN (948.73,9156.77) AND col0 = 5654 OR col4 > 5805.68 AND col4 < 8049.91 AND col1 >= 2357.25 AND col1 IN (7807.46,9265.52,6202.37,7062.8) AND (col0 > 26) OR col0 >= 9595 OR col0 >= 2506 AND (col1 < 5842.19) AND col1 <= 1777.93 OR (col3 >= 5739)))))) OR col0 < 8050)) OR col3 > 1442)) OR ((col0 < 703 OR (col4 >= 8775.3) OR col1 < 9606.76 OR (col3 < 2186) OR col3 IS NULL) OR col1 > 5475.35)) AND col0 < 4571 AND col3 < 7485 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT ((((col0 IN (5925,9789)) AND (col1 <= 5378.37 AND col0 IS NULL) AND (col0 < 2689)) OR col1 <= 5556.3 AND col3 <= 7971 OR col3 > 5189 AND col0 > 7 AND ((col1 > 5103.31)) OR col0 < 630 AND (((col0 <= 2635) OR col3 = 7624 AND ((((col0 IN (6163,2022,4720,9473,670) AND ((((((col0 < 298 OR (col4 > 9327.60))) AND ((col3 >= 2809))) AND ((col3 <= 1547)) OR (col4 < 8374.94) AND (((col0 > 6645 AND (col4 > 2874.0) AND col1 > 740.39 OR (col0 > 5035) AND col0 >= 5207 AND col3 <= 7098)) AND ((col3 IS NULL)))) AND col0 >= 6016 OR ((col0 IS NULL) AND col4 >= 5611.20) AND (col3 < 6387)))) OR (col3 > 4109))) AND col0 < 1737 OR (((col3 = 9884)))) AND col0 > 3647 AND ((((((((col4 > 6152.55)))))) AND (col0 <= 6441 OR col0 > 6481) AND (((col3 < 7932))) AND col0 > 9467)) AND col4 IN (4407.9,1177.3,6814.27,6241.37,9284.25) AND col0 BETWEEN 1184 AND 4256 AND col0 >= 5560) OR (col3 > 4591 AND (col0 <= 753) OR ((col0 > 1641 OR (col3 >= 2723) OR (col3 < 9191) OR col3 = 498 AND (col0 <= 2766) AND ((col3 < 4235) OR col0 IS NULL AND (col3 <= 2910 AND col4 > 8399.49)) AND (((col0 < 6421 AND col0 >= 5298 AND ((col4 <= 8878.68 OR (col0 >= 3739) AND col0 < 3211 OR col4 IN (948.73,9156.77) AND col0 = 5654 OR col4 > 5805.68 AND col4 < 8049.91 AND col1 >= 2357.25 AND col1 IN (7807.46,9265.52,6202.37,7062.8) AND (col0 > 26) OR col0 >= 9595 OR col0 >= 2506 AND (col1 < 5842.19) AND col1 <= 1777.93 OR (col3 >= 5739)))))) OR col0 < 8050)) OR col3 > 1442)) OR ((col0 < 703 OR (col4 >= 8775.3) OR col1 < 9606.76 OR (col3 < 2186) OR col3 IS NULL) OR col1 > 5475.35)) AND col0 < 4571 AND col3 < 7485)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_782 UNION ALL SELECT pk, col0 FROM view_2_tab2_782
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (((col0 IN (5925,9789)) AND (col1 <= 5378.37 AND col0 IS NULL) AND (col0 < 2689)) OR col1 <= 5556.3 AND col3 <= 7971 OR col3 > 5189 AND col0 > 7 AND ((col1 > 5103.31)) OR col0 < 630 AND (((col0 <= 2635) OR col3 = 7624 AND ((((col0 IN (6163,2022,4720,9473,670) AND ((((((col0 < 298 OR (col4 > 9327.60))) AND ((col3 >= 2809))) AND ((col3 <= 1547)) OR (col4 < 8374.94) AND (((col0 > 6645 AND (col4 > 2874.0) AND col1 > 740.39 OR (col0 > 5035) AND col0 >= 5207 AND col3 <= 7098)) AND ((col3 IS NULL)))) AND col0 >= 6016 OR ((col0 IS NULL) AND col4 >= 5611.20) AND (col3 < 6387)))) OR (col3 > 4109))) AND col0 < 1737 OR (((col3 = 9884)))) AND col0 > 3647 AND ((((((((col4 > 6152.55)))))) AND (col0 <= 6441 OR col0 > 6481) AND (((col3 < 7932))) AND col0 > 9467)) AND col4 IN (4407.9,1177.3,6814.27,6241.37,9284.25) AND col0 BETWEEN 1184 AND 4256 AND col0 >= 5560) OR (col3 > 4591 AND (col0 <= 753) OR ((col0 > 1641 OR (col3 >= 2723) OR (col3 < 9191) OR col3 = 498 AND (col0 <= 2766) AND ((col3 < 4235) OR col0 IS NULL AND (col3 <= 2910 AND col4 > 8399.49)) AND (((col0 < 6421 AND col0 >= 5298 AND ((col4 <= 8878.68 OR (col0 >= 3739) AND col0 < 3211 OR col4 IN (948.73,9156.77) AND col0 = 5654 OR col4 > 5805.68 AND col4 < 8049.91 AND col1 >= 2357.25 AND col1 IN (7807.46,9265.52,6202.37,7062.8) AND (col0 > 26) OR col0 >= 9595 OR col0 >= 2506 AND (col1 < 5842.19) AND col1 <= 1777.93 OR (col3 >= 5739)))))) OR col0 < 8050)) OR col3 > 1442)) OR ((col0 < 703 OR (col4 >= 8775.3) OR col1 < 9606.76 OR (col3 < 2186) OR col3 IS NULL) OR col1 > 5475.35)) AND col0 < 4571 AND col3 < 7485 UNION SELECT pk, col0 FROM tab2 WHERE NOT ((((col0 IN (5925,9789)) AND (col1 <= 5378.37 AND col0 IS NULL) AND (col0 < 2689)) OR col1 <= 5556.3 AND col3 <= 7971 OR col3 > 5189 AND col0 > 7 AND ((col1 > 5103.31)) OR col0 < 630 AND (((col0 <= 2635) OR col3 = 7624 AND ((((col0 IN (6163,2022,4720,9473,670) AND ((((((col0 < 298 OR (col4 > 9327.60))) AND ((col3 >= 2809))) AND ((col3 <= 1547)) OR (col4 < 8374.94) AND (((col0 > 6645 AND (col4 > 2874.0) AND col1 > 740.39 OR (col0 > 5035) AND col0 >= 5207 AND col3 <= 7098)) AND ((col3 IS NULL)))) AND col0 >= 6016 OR ((col0 IS NULL) AND col4 >= 5611.20) AND (col3 < 6387)))) OR (col3 > 4109))) AND col0 < 1737 OR (((col3 = 9884)))) AND col0 > 3647 AND ((((((((col4 > 6152.55)))))) AND (col0 <= 6441 OR col0 > 6481) AND (((col3 < 7932))) AND col0 > 9467)) AND col4 IN (4407.9,1177.3,6814.27,6241.37,9284.25) AND col0 BETWEEN 1184 AND 4256 AND col0 >= 5560) OR (col3 > 4591 AND (col0 <= 753) OR ((col0 > 1641 OR (col3 >= 2723) OR (col3 < 9191) OR col3 = 498 AND (col0 <= 2766) AND ((col3 < 4235) OR col0 IS NULL AND (col3 <= 2910 AND col4 > 8399.49)) AND (((col0 < 6421 AND col0 >= 5298 AND ((col4 <= 8878.68 OR (col0 >= 3739) AND col0 < 3211 OR col4 IN (948.73,9156.77) AND col0 = 5654 OR col4 > 5805.68 AND col4 < 8049.91 AND col1 >= 2357.25 AND col1 IN (7807.46,9265.52,6202.37,7062.8) AND (col0 > 26) OR col0 >= 9595 OR col0 >= 2506 AND (col1 < 5842.19) AND col1 <= 1777.93 OR (col3 >= 5739)))))) OR col0 < 8050)) OR col3 > 1442)) OR ((col0 < 703 OR (col4 >= 8775.3) OR col1 < 9606.76 OR (col3 < 2186) OR col3 IS NULL) OR col1 > 5475.35)) AND col0 < 4571 AND col3 < 7485)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_782 UNION SELECT pk, col0 FROM view_2_tab2_782
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-4300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE (((col0 IN (5925,9789)) AND (col1 <= 5378.37 AND col0 IS NULL) AND (col0 < 2689)) OR col1 <= 5556.3 AND col3 <= 7971 OR col3 > 5189 AND col0 > 7 AND ((col1 > 5103.31)) OR col0 < 630 AND (((col0 <= 2635) OR col3 = 7624 AND ((((col0 IN (6163,2022,4720,9473,670) AND ((((((col0 < 298 OR (col4 > 9327.60))) AND ((col3 >= 2809))) AND ((col3 <= 1547)) OR (col4 < 8374.94) AND (((col0 > 6645 AND (col4 > 2874.0) AND col1 > 740.39 OR (col0 > 5035) AND col0 >= 5207 AND col3 <= 7098)) AND ((col3 IS NULL)))) AND col0 >= 6016 OR ((col0 IS NULL) AND col4 >= 5611.20) AND (col3 < 6387)))) OR (col3 > 4109))) AND col0 < 1737 OR (((col3 = 9884)))) AND col0 > 3647 AND ((((((((col4 > 6152.55)))))) AND (col0 <= 6441 OR col0 > 6481) AND (((col3 < 7932))) AND col0 > 9467)) AND col4 IN (4407.9,1177.3,6814.27,6241.37,9284.25) AND col0 BETWEEN 1184 AND 4256 AND col0 >= 5560) OR (col3 > 4591 AND (col0 <= 753) OR ((col0 > 1641 OR (col3 >= 2723) OR (col3 < 9191) OR col3 = 498 AND (col0 <= 2766) AND ((col3 < 4235) OR col0 IS NULL AND (col3 <= 2910 AND col4 > 8399.49)) AND (((col0 < 6421 AND col0 >= 5298 AND ((col4 <= 8878.68 OR (col0 >= 3739) AND col0 < 3211 OR col4 IN (948.73,9156.77) AND col0 = 5654 OR col4 > 5805.68 AND col4 < 8049.91 AND col1 >= 2357.25 AND col1 IN (7807.46,9265.52,6202.37,7062.8) AND (col0 > 26) OR col0 >= 9595 OR col0 >= 2506 AND (col1 < 5842.19) AND col1 <= 1777.93 OR (col3 >= 5739)))))) OR col0 < 8050)) OR col3 > 1442)) OR ((col0 < 703 OR (col4 >= 8775.3) OR col1 < 9606.76 OR (col3 < 2186) OR col3 IS NULL) OR col1 > 5475.35)) AND col0 < 4571 AND col3 < 7485 ) AS tab2_782
----
335 values hashing to 6c5db9666d99e19f3d583c2f59932dd3

query I rowsort label-4300-3
SELECT * FROM view_3_tab2_782
----
335 values hashing to 6c5db9666d99e19f3d583c2f59932dd3

query I rowsort label-4300-3
SELECT pk FROM tab2 WHERE (((col0 IN (5925,9789)) AND (col1 <= 5378.37 AND col0 IS NULL) AND (col0 < 2689)) OR col1 <= 5556.3 AND col3 <= 7971 OR col3 > 5189 AND col0 > 7 AND ((col1 > 5103.31)) OR col0 < 630 AND (((col0 <= 2635) OR col3 = 7624 AND ((((col0 IN (6163,2022,4720,9473,670) AND ((((((col0 < 298 OR (col4 > 9327.60))) AND ((col3 >= 2809))) AND ((col3 <= 1547)) OR (col4 < 8374.94) AND (((col0 > 6645 AND (col4 > 2874.0) AND col1 > 740.39 OR (col0 > 5035) AND col0 >= 5207 AND col3 <= 7098)) AND ((col3 IS NULL)))) AND col0 >= 6016 OR ((col0 IS NULL) AND col4 >= 5611.20) AND (col3 < 6387)))) OR (col3 > 4109))) AND col0 < 1737 OR (((col3 = 9884)))) AND col0 > 3647 AND ((((((((col4 > 6152.55)))))) AND (col0 <= 6441 OR col0 > 6481) AND (((col3 < 7932))) AND col0 > 9467)) AND col4 IN (4407.9,1177.3,6814.27,6241.37,9284.25) AND col0 BETWEEN 1184 AND 4256 AND col0 >= 5560) OR (col3 > 4591 AND (col0 <= 753) OR ((col0 > 1641 OR (col3 >= 2723) OR (col3 < 9191) OR col3 = 498 AND (col0 <= 2766) AND ((col3 < 4235) OR col0 IS NULL AND (col3 <= 2910 AND col4 > 8399.49)) AND (((col0 < 6421 AND col0 >= 5298 AND ((col4 <= 8878.68 OR (col0 >= 3739) AND col0 < 3211 OR col4 IN (948.73,9156.77) AND col0 = 5654 OR col4 > 5805.68 AND col4 < 8049.91 AND col1 >= 2357.25 AND col1 IN (7807.46,9265.52,6202.37,7062.8) AND (col0 > 26) OR col0 >= 9595 OR col0 >= 2506 AND (col1 < 5842.19) AND col1 <= 1777.93 OR (col3 >= 5739)))))) OR col0 < 8050)) OR col3 > 1442)) OR ((col0 < 703 OR (col4 >= 8775.3) OR col1 < 9606.76 OR (col3 < 2186) OR col3 IS NULL) OR col1 > 5475.35)) AND col0 < 4571 AND col3 < 7485
----
335 values hashing to 6c5db9666d99e19f3d583c2f59932dd3

statement ok
DROP VIEW view_1_tab2_782

statement ok
DROP VIEW view_2_tab2_782

statement ok
DROP VIEW view_3_tab2_782

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_782') DROP VIEW view_1_tab3_782

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_782

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_782') DROP VIEW view_2_tab3_782

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_782

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_782') DROP VIEW view_3_tab3_782

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_782

statement ok
CREATE VIEW view_1_tab3_782 AS SELECT pk, col0 FROM tab3 WHERE (((col0 IN (5925,9789)) AND (col1 <= 5378.37 AND col0 IS NULL) AND (col0 < 2689)) OR col1 <= 5556.3 AND col3 <= 7971 OR col3 > 5189 AND col0 > 7 AND ((col1 > 5103.31)) OR col0 < 630 AND (((col0 <= 2635) OR col3 = 7624 AND ((((col0 IN (6163,2022,4720,9473,670) AND ((((((col0 < 298 OR (col4 > 9327.60))) AND ((col3 >= 2809))) AND ((col3 <= 1547)) OR (col4 < 8374.94) AND (((col0 > 6645 AND (col4 > 2874.0) AND col1 > 740.39 OR (col0 > 5035) AND col0 >= 5207 AND col3 <= 7098)) AND ((col3 IS NULL)))) AND col0 >= 6016 OR ((col0 IS NULL) AND col4 >= 5611.20) AND (col3 < 6387)))) OR (col3 > 4109))) AND col0 < 1737 OR (((col3 = 9884)))) AND col0 > 3647 AND ((((((((col4 > 6152.55)))))) AND (col0 <= 6441 OR col0 > 6481) AND (((col3 < 7932))) AND col0 > 9467)) AND col4 IN (4407.9,1177.3,6814.27,6241.37,9284.25) AND col0 BETWEEN 1184 AND 4256 AND col0 >= 5560) OR (col3 > 4591 AND (col0 <= 753) OR ((col0 > 1641 OR (col3 >= 2723) OR (col3 < 9191) OR col3 = 498 AND (col0 <= 2766) AND ((col3 < 4235) OR col0 IS NULL AND (col3 <= 2910 AND col4 > 8399.49)) AND (((col0 < 6421 AND col0 >= 5298 AND ((col4 <= 8878.68 OR (col0 >= 3739) AND col0 < 3211 OR col4 IN (948.73,9156.77) AND col0 = 5654 OR col4 > 5805.68 AND col4 < 8049.91 AND col1 >= 2357.25 AND col1 IN (7807.46,9265.52,6202.37,7062.8) AND (col0 > 26) OR col0 >= 9595 OR col0 >= 2506 AND (col1 < 5842.19) AND col1 <= 1777.93 OR (col3 >= 5739)))))) OR col0 < 8050)) OR col3 > 1442)) OR ((col0 < 703 OR (col4 >= 8775.3) OR col1 < 9606.76 OR (col3 < 2186) OR col3 IS NULL) OR col1 > 5475.35)) AND col0 < 4571 AND col3 < 7485

statement ok
CREATE VIEW view_2_tab3_782 AS SELECT pk, col0 FROM tab3 WHERE NOT ((((col0 IN (5925,9789)) AND (col1 <= 5378.37 AND col0 IS NULL) AND (col0 < 2689)) OR col1 <= 5556.3 AND col3 <= 7971 OR col3 > 5189 AND col0 > 7 AND ((col1 > 5103.31)) OR col0 < 630 AND (((col0 <= 2635) OR col3 = 7624 AND ((((col0 IN (6163,2022,4720,9473,670) AND ((((((col0 < 298 OR (col4 > 9327.60))) AND ((col3 >= 2809))) AND ((col3 <= 1547)) OR (col4 < 8374.94) AND (((col0 > 6645 AND (col4 > 2874.0) AND col1 > 740.39 OR (col0 > 5035) AND col0 >= 5207 AND col3 <= 7098)) AND ((col3 IS NULL)))) AND col0 >= 6016 OR ((col0 IS NULL) AND col4 >= 5611.20) AND (col3 < 6387)))) OR (col3 > 4109))) AND col0 < 1737 OR (((col3 = 9884)))) AND col0 > 3647 AND ((((((((col4 > 6152.55)))))) AND (col0 <= 6441 OR col0 > 6481) AND (((col3 < 7932))) AND col0 > 9467)) AND col4 IN (4407.9,1177.3,6814.27,6241.37,9284.25) AND col0 BETWEEN 1184 AND 4256 AND col0 >= 5560) OR (col3 > 4591 AND (col0 <= 753) OR ((col0 > 1641 OR (col3 >= 2723) OR (col3 < 9191) OR col3 = 498 AND (col0 <= 2766) AND ((col3 < 4235) OR col0 IS NULL AND (col3 <= 2910 AND col4 > 8399.49)) AND (((col0 < 6421 AND col0 >= 5298 AND ((col4 <= 8878.68 OR (col0 >= 3739) AND col0 < 3211 OR col4 IN (948.73,9156.77) AND col0 = 5654 OR col4 > 5805.68 AND col4 < 8049.91 AND col1 >= 2357.25 AND col1 IN (7807.46,9265.52,6202.37,7062.8) AND (col0 > 26) OR col0 >= 9595 OR col0 >= 2506 AND (col1 < 5842.19) AND col1 <= 1777.93 OR (col3 >= 5739)))))) OR col0 < 8050)) OR col3 > 1442)) OR ((col0 < 703 OR (col4 >= 8775.3) OR col1 < 9606.76 OR (col3 < 2186) OR col3 IS NULL) OR col1 > 5475.35)) AND col0 < 4571 AND col3 < 7485)

statement ok
CREATE VIEW view_3_tab3_782 AS SELECT pk FROM view_1_tab3_782

query II rowsort label-4300-1
SELECT pk, col0 FROM tab3 WHERE (((col0 IN (5925,9789)) AND (col1 <= 5378.37 AND col0 IS NULL) AND (col0 < 2689)) OR col1 <= 5556.3 AND col3 <= 7971 OR col3 > 5189 AND col0 > 7 AND ((col1 > 5103.31)) OR col0 < 630 AND (((col0 <= 2635) OR col3 = 7624 AND ((((col0 IN (6163,2022,4720,9473,670) AND ((((((col0 < 298 OR (col4 > 9327.60))) AND ((col3 >= 2809))) AND ((col3 <= 1547)) OR (col4 < 8374.94) AND (((col0 > 6645 AND (col4 > 2874.0) AND col1 > 740.39 OR (col0 > 5035) AND col0 >= 5207 AND col3 <= 7098)) AND ((col3 IS NULL)))) AND col0 >= 6016 OR ((col0 IS NULL) AND col4 >= 5611.20) AND (col3 < 6387)))) OR (col3 > 4109))) AND col0 < 1737 OR (((col3 = 9884)))) AND col0 > 3647 AND ((((((((col4 > 6152.55)))))) AND (col0 <= 6441 OR col0 > 6481) AND (((col3 < 7932))) AND col0 > 9467)) AND col4 IN (4407.9,1177.3,6814.27,6241.37,9284.25) AND col0 BETWEEN 1184 AND 4256 AND col0 >= 5560) OR (col3 > 4591 AND (col0 <= 753) OR ((col0 > 1641 OR (col3 >= 2723) OR (col3 < 9191) OR col3 = 498 AND (col0 <= 2766) AND ((col3 < 4235) OR col0 IS NULL AND (col3 <= 2910 AND col4 > 8399.49)) AND (((col0 < 6421 AND col0 >= 5298 AND ((col4 <= 8878.68 OR (col0 >= 3739) AND col0 < 3211 OR col4 IN (948.73,9156.77) AND col0 = 5654 OR col4 > 5805.68 AND col4 < 8049.91 AND col1 >= 2357.25 AND col1 IN (7807.46,9265.52,6202.37,7062.8) AND (col0 > 26) OR col0 >= 9595 OR col0 >= 2506 AND (col1 < 5842.19) AND col1 <= 1777.93 OR (col3 >= 5739)))))) OR col0 < 8050)) OR col3 > 1442)) OR ((col0 < 703 OR (col4 >= 8775.3) OR col1 < 9606.76 OR (col3 < 2186) OR col3 IS NULL) OR col1 > 5475.35)) AND col0 < 4571 AND col3 < 7485
----
670 values hashing to 5fc04d1e3c2cf04bd565e9f7c5994d77

query II rowsort label-4300-2
SELECT pk, col0 FROM tab3 WHERE NOT ((((col0 IN (5925,9789)) AND (col1 <= 5378.37 AND col0 IS NULL) AND (col0 < 2689)) OR col1 <= 5556.3 AND col3 <= 7971 OR col3 > 5189 AND col0 > 7 AND ((col1 > 5103.31)) OR col0 < 630 AND (((col0 <= 2635) OR col3 = 7624 AND ((((col0 IN (6163,2022,4720,9473,670) AND ((((((col0 < 298 OR (col4 > 9327.60))) AND ((col3 >= 2809))) AND ((col3 <= 1547)) OR (col4 < 8374.94) AND (((col0 > 6645 AND (col4 > 2874.0) AND col1 > 740.39 OR (col0 > 5035) AND col0 >= 5207 AND col3 <= 7098)) AND ((col3 IS NULL)))) AND col0 >= 6016 OR ((col0 IS NULL) AND col4 >= 5611.20) AND (col3 < 6387)))) OR (col3 > 4109))) AND col0 < 1737 OR (((col3 = 9884)))) AND col0 > 3647 AND ((((((((col4 > 6152.55)))))) AND (col0 <= 6441 OR col0 > 6481) AND (((col3 < 7932))) AND col0 > 9467)) AND col4 IN (4407.9,1177.3,6814.27,6241.37,9284.25) AND col0 BETWEEN 1184 AND 4256 AND col0 >= 5560) OR (col3 > 4591 AND (col0 <= 753) OR ((col0 > 1641 OR (col3 >= 2723) OR (col3 < 9191) OR col3 = 498 AND (col0 <= 2766) AND ((col3 < 4235) OR col0 IS NULL AND (col3 <= 2910 AND col4 > 8399.49)) AND (((col0 < 6421 AND col0 >= 5298 AND ((col4 <= 8878.68 OR (col0 >= 3739) AND col0 < 3211 OR col4 IN (948.73,9156.77) AND col0 = 5654 OR col4 > 5805.68 AND col4 < 8049.91 AND col1 >= 2357.25 AND col1 IN (7807.46,9265.52,6202.37,7062.8) AND (col0 > 26) OR col0 >= 9595 OR col0 >= 2506 AND (col1 < 5842.19) AND col1 <= 1777.93 OR (col3 >= 5739)))))) OR col0 < 8050)) OR col3 > 1442)) OR ((col0 < 703 OR (col4 >= 8775.3) OR col1 < 9606.76 OR (col3 < 2186) OR col3 IS NULL) OR col1 > 5475.35)) AND col0 < 4571 AND col3 < 7485)
----
1330 values hashing to 4dd82b263cf931801d56c36e86f2888e

query II rowsort label-4300-1
SELECT pk, col0 FROM view_1_tab3_782
----
670 values hashing to 5fc04d1e3c2cf04bd565e9f7c5994d77

query II rowsort label-4300-2
SELECT pk, col0 FROM view_2_tab3_782
----
1330 values hashing to 4dd82b263cf931801d56c36e86f2888e

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (((col0 IN (5925,9789)) AND (col1 <= 5378.37 AND col0 IS NULL) AND (col0 < 2689)) OR col1 <= 5556.3 AND col3 <= 7971 OR col3 > 5189 AND col0 > 7 AND ((col1 > 5103.31)) OR col0 < 630 AND (((col0 <= 2635) OR col3 = 7624 AND ((((col0 IN (6163,2022,4720,9473,670) AND ((((((col0 < 298 OR (col4 > 9327.60))) AND ((col3 >= 2809))) AND ((col3 <= 1547)) OR (col4 < 8374.94) AND (((col0 > 6645 AND (col4 > 2874.0) AND col1 > 740.39 OR (col0 > 5035) AND col0 >= 5207 AND col3 <= 7098)) AND ((col3 IS NULL)))) AND col0 >= 6016 OR ((col0 IS NULL) AND col4 >= 5611.20) AND (col3 < 6387)))) OR (col3 > 4109))) AND col0 < 1737 OR (((col3 = 9884)))) AND col0 > 3647 AND ((((((((col4 > 6152.55)))))) AND (col0 <= 6441 OR col0 > 6481) AND (((col3 < 7932))) AND col0 > 9467)) AND col4 IN (4407.9,1177.3,6814.27,6241.37,9284.25) AND col0 BETWEEN 1184 AND 4256 AND col0 >= 5560) OR (col3 > 4591 AND (col0 <= 753) OR ((col0 > 1641 OR (col3 >= 2723) OR (col3 < 9191) OR col3 = 498 AND (col0 <= 2766) AND ((col3 < 4235) OR col0 IS NULL AND (col3 <= 2910 AND col4 > 8399.49)) AND (((col0 < 6421 AND col0 >= 5298 AND ((col4 <= 8878.68 OR (col0 >= 3739) AND col0 < 3211 OR col4 IN (948.73,9156.77) AND col0 = 5654 OR col4 > 5805.68 AND col4 < 8049.91 AND col1 >= 2357.25 AND col1 IN (7807.46,9265.52,6202.37,7062.8) AND (col0 > 26) OR col0 >= 9595 OR col0 >= 2506 AND (col1 < 5842.19) AND col1 <= 1777.93 OR (col3 >= 5739)))))) OR col0 < 8050)) OR col3 > 1442)) OR ((col0 < 703 OR (col4 >= 8775.3) OR col1 < 9606.76 OR (col3 < 2186) OR col3 IS NULL) OR col1 > 5475.35)) AND col0 < 4571 AND col3 < 7485 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT ((((col0 IN (5925,9789)) AND (col1 <= 5378.37 AND col0 IS NULL) AND (col0 < 2689)) OR col1 <= 5556.3 AND col3 <= 7971 OR col3 > 5189 AND col0 > 7 AND ((col1 > 5103.31)) OR col0 < 630 AND (((col0 <= 2635) OR col3 = 7624 AND ((((col0 IN (6163,2022,4720,9473,670) AND ((((((col0 < 298 OR (col4 > 9327.60))) AND ((col3 >= 2809))) AND ((col3 <= 1547)) OR (col4 < 8374.94) AND (((col0 > 6645 AND (col4 > 2874.0) AND col1 > 740.39 OR (col0 > 5035) AND col0 >= 5207 AND col3 <= 7098)) AND ((col3 IS NULL)))) AND col0 >= 6016 OR ((col0 IS NULL) AND col4 >= 5611.20) AND (col3 < 6387)))) OR (col3 > 4109))) AND col0 < 1737 OR (((col3 = 9884)))) AND col0 > 3647 AND ((((((((col4 > 6152.55)))))) AND (col0 <= 6441 OR col0 > 6481) AND (((col3 < 7932))) AND col0 > 9467)) AND col4 IN (4407.9,1177.3,6814.27,6241.37,9284.25) AND col0 BETWEEN 1184 AND 4256 AND col0 >= 5560) OR (col3 > 4591 AND (col0 <= 753) OR ((col0 > 1641 OR (col3 >= 2723) OR (col3 < 9191) OR col3 = 498 AND (col0 <= 2766) AND ((col3 < 4235) OR col0 IS NULL AND (col3 <= 2910 AND col4 > 8399.49)) AND (((col0 < 6421 AND col0 >= 5298 AND ((col4 <= 8878.68 OR (col0 >= 3739) AND col0 < 3211 OR col4 IN (948.73,9156.77) AND col0 = 5654 OR col4 > 5805.68 AND col4 < 8049.91 AND col1 >= 2357.25 AND col1 IN (7807.46,9265.52,6202.37,7062.8) AND (col0 > 26) OR col0 >= 9595 OR col0 >= 2506 AND (col1 < 5842.19) AND col1 <= 1777.93 OR (col3 >= 5739)))))) OR col0 < 8050)) OR col3 > 1442)) OR ((col0 < 703 OR (col4 >= 8775.3) OR col1 < 9606.76 OR (col3 < 2186) OR col3 IS NULL) OR col1 > 5475.35)) AND col0 < 4571 AND col3 < 7485)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_782 UNION ALL SELECT pk, col0 FROM view_2_tab3_782
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (((col0 IN (5925,9789)) AND (col1 <= 5378.37 AND col0 IS NULL) AND (col0 < 2689)) OR col1 <= 5556.3 AND col3 <= 7971 OR col3 > 5189 AND col0 > 7 AND ((col1 > 5103.31)) OR col0 < 630 AND (((col0 <= 2635) OR col3 = 7624 AND ((((col0 IN (6163,2022,4720,9473,670) AND ((((((col0 < 298 OR (col4 > 9327.60))) AND ((col3 >= 2809))) AND ((col3 <= 1547)) OR (col4 < 8374.94) AND (((col0 > 6645 AND (col4 > 2874.0) AND col1 > 740.39 OR (col0 > 5035) AND col0 >= 5207 AND col3 <= 7098)) AND ((col3 IS NULL)))) AND col0 >= 6016 OR ((col0 IS NULL) AND col4 >= 5611.20) AND (col3 < 6387)))) OR (col3 > 4109))) AND col0 < 1737 OR (((col3 = 9884)))) AND col0 > 3647 AND ((((((((col4 > 6152.55)))))) AND (col0 <= 6441 OR col0 > 6481) AND (((col3 < 7932))) AND col0 > 9467)) AND col4 IN (4407.9,1177.3,6814.27,6241.37,9284.25) AND col0 BETWEEN 1184 AND 4256 AND col0 >= 5560) OR (col3 > 4591 AND (col0 <= 753) OR ((col0 > 1641 OR (col3 >= 2723) OR (col3 < 9191) OR col3 = 498 AND (col0 <= 2766) AND ((col3 < 4235) OR col0 IS NULL AND (col3 <= 2910 AND col4 > 8399.49)) AND (((col0 < 6421 AND col0 >= 5298 AND ((col4 <= 8878.68 OR (col0 >= 3739) AND col0 < 3211 OR col4 IN (948.73,9156.77) AND col0 = 5654 OR col4 > 5805.68 AND col4 < 8049.91 AND col1 >= 2357.25 AND col1 IN (7807.46,9265.52,6202.37,7062.8) AND (col0 > 26) OR col0 >= 9595 OR col0 >= 2506 AND (col1 < 5842.19) AND col1 <= 1777.93 OR (col3 >= 5739)))))) OR col0 < 8050)) OR col3 > 1442)) OR ((col0 < 703 OR (col4 >= 8775.3) OR col1 < 9606.76 OR (col3 < 2186) OR col3 IS NULL) OR col1 > 5475.35)) AND col0 < 4571 AND col3 < 7485 UNION SELECT pk, col0 FROM tab3 WHERE NOT ((((col0 IN (5925,9789)) AND (col1 <= 5378.37 AND col0 IS NULL) AND (col0 < 2689)) OR col1 <= 5556.3 AND col3 <= 7971 OR col3 > 5189 AND col0 > 7 AND ((col1 > 5103.31)) OR col0 < 630 AND (((col0 <= 2635) OR col3 = 7624 AND ((((col0 IN (6163,2022,4720,9473,670) AND ((((((col0 < 298 OR (col4 > 9327.60))) AND ((col3 >= 2809))) AND ((col3 <= 1547)) OR (col4 < 8374.94) AND (((col0 > 6645 AND (col4 > 2874.0) AND col1 > 740.39 OR (col0 > 5035) AND col0 >= 5207 AND col3 <= 7098)) AND ((col3 IS NULL)))) AND col0 >= 6016 OR ((col0 IS NULL) AND col4 >= 5611.20) AND (col3 < 6387)))) OR (col3 > 4109))) AND col0 < 1737 OR (((col3 = 9884)))) AND col0 > 3647 AND ((((((((col4 > 6152.55)))))) AND (col0 <= 6441 OR col0 > 6481) AND (((col3 < 7932))) AND col0 > 9467)) AND col4 IN (4407.9,1177.3,6814.27,6241.37,9284.25) AND col0 BETWEEN 1184 AND 4256 AND col0 >= 5560) OR (col3 > 4591 AND (col0 <= 753) OR ((col0 > 1641 OR (col3 >= 2723) OR (col3 < 9191) OR col3 = 498 AND (col0 <= 2766) AND ((col3 < 4235) OR col0 IS NULL AND (col3 <= 2910 AND col4 > 8399.49)) AND (((col0 < 6421 AND col0 >= 5298 AND ((col4 <= 8878.68 OR (col0 >= 3739) AND col0 < 3211 OR col4 IN (948.73,9156.77) AND col0 = 5654 OR col4 > 5805.68 AND col4 < 8049.91 AND col1 >= 2357.25 AND col1 IN (7807.46,9265.52,6202.37,7062.8) AND (col0 > 26) OR col0 >= 9595 OR col0 >= 2506 AND (col1 < 5842.19) AND col1 <= 1777.93 OR (col3 >= 5739)))))) OR col0 < 8050)) OR col3 > 1442)) OR ((col0 < 703 OR (col4 >= 8775.3) OR col1 < 9606.76 OR (col3 < 2186) OR col3 IS NULL) OR col1 > 5475.35)) AND col0 < 4571 AND col3 < 7485)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_782 UNION SELECT pk, col0 FROM view_2_tab3_782
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-4300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE (((col0 IN (5925,9789)) AND (col1 <= 5378.37 AND col0 IS NULL) AND (col0 < 2689)) OR col1 <= 5556.3 AND col3 <= 7971 OR col3 > 5189 AND col0 > 7 AND ((col1 > 5103.31)) OR col0 < 630 AND (((col0 <= 2635) OR col3 = 7624 AND ((((col0 IN (6163,2022,4720,9473,670) AND ((((((col0 < 298 OR (col4 > 9327.60))) AND ((col3 >= 2809))) AND ((col3 <= 1547)) OR (col4 < 8374.94) AND (((col0 > 6645 AND (col4 > 2874.0) AND col1 > 740.39 OR (col0 > 5035) AND col0 >= 5207 AND col3 <= 7098)) AND ((col3 IS NULL)))) AND col0 >= 6016 OR ((col0 IS NULL) AND col4 >= 5611.20) AND (col3 < 6387)))) OR (col3 > 4109))) AND col0 < 1737 OR (((col3 = 9884)))) AND col0 > 3647 AND ((((((((col4 > 6152.55)))))) AND (col0 <= 6441 OR col0 > 6481) AND (((col3 < 7932))) AND col0 > 9467)) AND col4 IN (4407.9,1177.3,6814.27,6241.37,9284.25) AND col0 BETWEEN 1184 AND 4256 AND col0 >= 5560) OR (col3 > 4591 AND (col0 <= 753) OR ((col0 > 1641 OR (col3 >= 2723) OR (col3 < 9191) OR col3 = 498 AND (col0 <= 2766) AND ((col3 < 4235) OR col0 IS NULL AND (col3 <= 2910 AND col4 > 8399.49)) AND (((col0 < 6421 AND col0 >= 5298 AND ((col4 <= 8878.68 OR (col0 >= 3739) AND col0 < 3211 OR col4 IN (948.73,9156.77) AND col0 = 5654 OR col4 > 5805.68 AND col4 < 8049.91 AND col1 >= 2357.25 AND col1 IN (7807.46,9265.52,6202.37,7062.8) AND (col0 > 26) OR col0 >= 9595 OR col0 >= 2506 AND (col1 < 5842.19) AND col1 <= 1777.93 OR (col3 >= 5739)))))) OR col0 < 8050)) OR col3 > 1442)) OR ((col0 < 703 OR (col4 >= 8775.3) OR col1 < 9606.76 OR (col3 < 2186) OR col3 IS NULL) OR col1 > 5475.35)) AND col0 < 4571 AND col3 < 7485 ) AS tab3_782
----
335 values hashing to 6c5db9666d99e19f3d583c2f59932dd3

query I rowsort label-4300-3
SELECT * FROM view_3_tab3_782
----
335 values hashing to 6c5db9666d99e19f3d583c2f59932dd3

query I rowsort label-4300-3
SELECT pk FROM tab3 WHERE (((col0 IN (5925,9789)) AND (col1 <= 5378.37 AND col0 IS NULL) AND (col0 < 2689)) OR col1 <= 5556.3 AND col3 <= 7971 OR col3 > 5189 AND col0 > 7 AND ((col1 > 5103.31)) OR col0 < 630 AND (((col0 <= 2635) OR col3 = 7624 AND ((((col0 IN (6163,2022,4720,9473,670) AND ((((((col0 < 298 OR (col4 > 9327.60))) AND ((col3 >= 2809))) AND ((col3 <= 1547)) OR (col4 < 8374.94) AND (((col0 > 6645 AND (col4 > 2874.0) AND col1 > 740.39 OR (col0 > 5035) AND col0 >= 5207 AND col3 <= 7098)) AND ((col3 IS NULL)))) AND col0 >= 6016 OR ((col0 IS NULL) AND col4 >= 5611.20) AND (col3 < 6387)))) OR (col3 > 4109))) AND col0 < 1737 OR (((col3 = 9884)))) AND col0 > 3647 AND ((((((((col4 > 6152.55)))))) AND (col0 <= 6441 OR col0 > 6481) AND (((col3 < 7932))) AND col0 > 9467)) AND col4 IN (4407.9,1177.3,6814.27,6241.37,9284.25) AND col0 BETWEEN 1184 AND 4256 AND col0 >= 5560) OR (col3 > 4591 AND (col0 <= 753) OR ((col0 > 1641 OR (col3 >= 2723) OR (col3 < 9191) OR col3 = 498 AND (col0 <= 2766) AND ((col3 < 4235) OR col0 IS NULL AND (col3 <= 2910 AND col4 > 8399.49)) AND (((col0 < 6421 AND col0 >= 5298 AND ((col4 <= 8878.68 OR (col0 >= 3739) AND col0 < 3211 OR col4 IN (948.73,9156.77) AND col0 = 5654 OR col4 > 5805.68 AND col4 < 8049.91 AND col1 >= 2357.25 AND col1 IN (7807.46,9265.52,6202.37,7062.8) AND (col0 > 26) OR col0 >= 9595 OR col0 >= 2506 AND (col1 < 5842.19) AND col1 <= 1777.93 OR (col3 >= 5739)))))) OR col0 < 8050)) OR col3 > 1442)) OR ((col0 < 703 OR (col4 >= 8775.3) OR col1 < 9606.76 OR (col3 < 2186) OR col3 IS NULL) OR col1 > 5475.35)) AND col0 < 4571 AND col3 < 7485
----
335 values hashing to 6c5db9666d99e19f3d583c2f59932dd3

statement ok
DROP VIEW view_1_tab3_782

statement ok
DROP VIEW view_2_tab3_782

statement ok
DROP VIEW view_3_tab3_782

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_782') DROP VIEW view_1_tab4_782

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_782

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_782') DROP VIEW view_2_tab4_782

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_782

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_782') DROP VIEW view_3_tab4_782

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_782

statement ok
CREATE VIEW view_1_tab4_782 AS SELECT pk, col0 FROM tab4 WHERE (((col0 IN (5925,9789)) AND (col1 <= 5378.37 AND col0 IS NULL) AND (col0 < 2689)) OR col1 <= 5556.3 AND col3 <= 7971 OR col3 > 5189 AND col0 > 7 AND ((col1 > 5103.31)) OR col0 < 630 AND (((col0 <= 2635) OR col3 = 7624 AND ((((col0 IN (6163,2022,4720,9473,670) AND ((((((col0 < 298 OR (col4 > 9327.60))) AND ((col3 >= 2809))) AND ((col3 <= 1547)) OR (col4 < 8374.94) AND (((col0 > 6645 AND (col4 > 2874.0) AND col1 > 740.39 OR (col0 > 5035) AND col0 >= 5207 AND col3 <= 7098)) AND ((col3 IS NULL)))) AND col0 >= 6016 OR ((col0 IS NULL) AND col4 >= 5611.20) AND (col3 < 6387)))) OR (col3 > 4109))) AND col0 < 1737 OR (((col3 = 9884)))) AND col0 > 3647 AND ((((((((col4 > 6152.55)))))) AND (col0 <= 6441 OR col0 > 6481) AND (((col3 < 7932))) AND col0 > 9467)) AND col4 IN (4407.9,1177.3,6814.27,6241.37,9284.25) AND col0 BETWEEN 1184 AND 4256 AND col0 >= 5560) OR (col3 > 4591 AND (col0 <= 753) OR ((col0 > 1641 OR (col3 >= 2723) OR (col3 < 9191) OR col3 = 498 AND (col0 <= 2766) AND ((col3 < 4235) OR col0 IS NULL AND (col3 <= 2910 AND col4 > 8399.49)) AND (((col0 < 6421 AND col0 >= 5298 AND ((col4 <= 8878.68 OR (col0 >= 3739) AND col0 < 3211 OR col4 IN (948.73,9156.77) AND col0 = 5654 OR col4 > 5805.68 AND col4 < 8049.91 AND col1 >= 2357.25 AND col1 IN (7807.46,9265.52,6202.37,7062.8) AND (col0 > 26) OR col0 >= 9595 OR col0 >= 2506 AND (col1 < 5842.19) AND col1 <= 1777.93 OR (col3 >= 5739)))))) OR col0 < 8050)) OR col3 > 1442)) OR ((col0 < 703 OR (col4 >= 8775.3) OR col1 < 9606.76 OR (col3 < 2186) OR col3 IS NULL) OR col1 > 5475.35)) AND col0 < 4571 AND col3 < 7485

statement ok
CREATE VIEW view_2_tab4_782 AS SELECT pk, col0 FROM tab4 WHERE NOT ((((col0 IN (5925,9789)) AND (col1 <= 5378.37 AND col0 IS NULL) AND (col0 < 2689)) OR col1 <= 5556.3 AND col3 <= 7971 OR col3 > 5189 AND col0 > 7 AND ((col1 > 5103.31)) OR col0 < 630 AND (((col0 <= 2635) OR col3 = 7624 AND ((((col0 IN (6163,2022,4720,9473,670) AND ((((((col0 < 298 OR (col4 > 9327.60))) AND ((col3 >= 2809))) AND ((col3 <= 1547)) OR (col4 < 8374.94) AND (((col0 > 6645 AND (col4 > 2874.0) AND col1 > 740.39 OR (col0 > 5035) AND col0 >= 5207 AND col3 <= 7098)) AND ((col3 IS NULL)))) AND col0 >= 6016 OR ((col0 IS NULL) AND col4 >= 5611.20) AND (col3 < 6387)))) OR (col3 > 4109))) AND col0 < 1737 OR (((col3 = 9884)))) AND col0 > 3647 AND ((((((((col4 > 6152.55)))))) AND (col0 <= 6441 OR col0 > 6481) AND (((col3 < 7932))) AND col0 > 9467)) AND col4 IN (4407.9,1177.3,6814.27,6241.37,9284.25) AND col0 BETWEEN 1184 AND 4256 AND col0 >= 5560) OR (col3 > 4591 AND (col0 <= 753) OR ((col0 > 1641 OR (col3 >= 2723) OR (col3 < 9191) OR col3 = 498 AND (col0 <= 2766) AND ((col3 < 4235) OR col0 IS NULL AND (col3 <= 2910 AND col4 > 8399.49)) AND (((col0 < 6421 AND col0 >= 5298 AND ((col4 <= 8878.68 OR (col0 >= 3739) AND col0 < 3211 OR col4 IN (948.73,9156.77) AND col0 = 5654 OR col4 > 5805.68 AND col4 < 8049.91 AND col1 >= 2357.25 AND col1 IN (7807.46,9265.52,6202.37,7062.8) AND (col0 > 26) OR col0 >= 9595 OR col0 >= 2506 AND (col1 < 5842.19) AND col1 <= 1777.93 OR (col3 >= 5739)))))) OR col0 < 8050)) OR col3 > 1442)) OR ((col0 < 703 OR (col4 >= 8775.3) OR col1 < 9606.76 OR (col3 < 2186) OR col3 IS NULL) OR col1 > 5475.35)) AND col0 < 4571 AND col3 < 7485)

statement ok
CREATE VIEW view_3_tab4_782 AS SELECT pk FROM view_1_tab4_782

query II rowsort label-4300-1
SELECT pk, col0 FROM tab4 WHERE (((col0 IN (5925,9789)) AND (col1 <= 5378.37 AND col0 IS NULL) AND (col0 < 2689)) OR col1 <= 5556.3 AND col3 <= 7971 OR col3 > 5189 AND col0 > 7 AND ((col1 > 5103.31)) OR col0 < 630 AND (((col0 <= 2635) OR col3 = 7624 AND ((((col0 IN (6163,2022,4720,9473,670) AND ((((((col0 < 298 OR (col4 > 9327.60))) AND ((col3 >= 2809))) AND ((col3 <= 1547)) OR (col4 < 8374.94) AND (((col0 > 6645 AND (col4 > 2874.0) AND col1 > 740.39 OR (col0 > 5035) AND col0 >= 5207 AND col3 <= 7098)) AND ((col3 IS NULL)))) AND col0 >= 6016 OR ((col0 IS NULL) AND col4 >= 5611.20) AND (col3 < 6387)))) OR (col3 > 4109))) AND col0 < 1737 OR (((col3 = 9884)))) AND col0 > 3647 AND ((((((((col4 > 6152.55)))))) AND (col0 <= 6441 OR col0 > 6481) AND (((col3 < 7932))) AND col0 > 9467)) AND col4 IN (4407.9,1177.3,6814.27,6241.37,9284.25) AND col0 BETWEEN 1184 AND 4256 AND col0 >= 5560) OR (col3 > 4591 AND (col0 <= 753) OR ((col0 > 1641 OR (col3 >= 2723) OR (col3 < 9191) OR col3 = 498 AND (col0 <= 2766) AND ((col3 < 4235) OR col0 IS NULL AND (col3 <= 2910 AND col4 > 8399.49)) AND (((col0 < 6421 AND col0 >= 5298 AND ((col4 <= 8878.68 OR (col0 >= 3739) AND col0 < 3211 OR col4 IN (948.73,9156.77) AND col0 = 5654 OR col4 > 5805.68 AND col4 < 8049.91 AND col1 >= 2357.25 AND col1 IN (7807.46,9265.52,6202.37,7062.8) AND (col0 > 26) OR col0 >= 9595 OR col0 >= 2506 AND (col1 < 5842.19) AND col1 <= 1777.93 OR (col3 >= 5739)))))) OR col0 < 8050)) OR col3 > 1442)) OR ((col0 < 703 OR (col4 >= 8775.3) OR col1 < 9606.76 OR (col3 < 2186) OR col3 IS NULL) OR col1 > 5475.35)) AND col0 < 4571 AND col3 < 7485
----
670 values hashing to 5fc04d1e3c2cf04bd565e9f7c5994d77

query II rowsort label-4300-2
SELECT pk, col0 FROM tab4 WHERE NOT ((((col0 IN (5925,9789)) AND (col1 <= 5378.37 AND col0 IS NULL) AND (col0 < 2689)) OR col1 <= 5556.3 AND col3 <= 7971 OR col3 > 5189 AND col0 > 7 AND ((col1 > 5103.31)) OR col0 < 630 AND (((col0 <= 2635) OR col3 = 7624 AND ((((col0 IN (6163,2022,4720,9473,670) AND ((((((col0 < 298 OR (col4 > 9327.60))) AND ((col3 >= 2809))) AND ((col3 <= 1547)) OR (col4 < 8374.94) AND (((col0 > 6645 AND (col4 > 2874.0) AND col1 > 740.39 OR (col0 > 5035) AND col0 >= 5207 AND col3 <= 7098)) AND ((col3 IS NULL)))) AND col0 >= 6016 OR ((col0 IS NULL) AND col4 >= 5611.20) AND (col3 < 6387)))) OR (col3 > 4109))) AND col0 < 1737 OR (((col3 = 9884)))) AND col0 > 3647 AND ((((((((col4 > 6152.55)))))) AND (col0 <= 6441 OR col0 > 6481) AND (((col3 < 7932))) AND col0 > 9467)) AND col4 IN (4407.9,1177.3,6814.27,6241.37,9284.25) AND col0 BETWEEN 1184 AND 4256 AND col0 >= 5560) OR (col3 > 4591 AND (col0 <= 753) OR ((col0 > 1641 OR (col3 >= 2723) OR (col3 < 9191) OR col3 = 498 AND (col0 <= 2766) AND ((col3 < 4235) OR col0 IS NULL AND (col3 <= 2910 AND col4 > 8399.49)) AND (((col0 < 6421 AND col0 >= 5298 AND ((col4 <= 8878.68 OR (col0 >= 3739) AND col0 < 3211 OR col4 IN (948.73,9156.77) AND col0 = 5654 OR col4 > 5805.68 AND col4 < 8049.91 AND col1 >= 2357.25 AND col1 IN (7807.46,9265.52,6202.37,7062.8) AND (col0 > 26) OR col0 >= 9595 OR col0 >= 2506 AND (col1 < 5842.19) AND col1 <= 1777.93 OR (col3 >= 5739)))))) OR col0 < 8050)) OR col3 > 1442)) OR ((col0 < 703 OR (col4 >= 8775.3) OR col1 < 9606.76 OR (col3 < 2186) OR col3 IS NULL) OR col1 > 5475.35)) AND col0 < 4571 AND col3 < 7485)
----
1330 values hashing to 4dd82b263cf931801d56c36e86f2888e

query II rowsort label-4300-1
SELECT pk, col0 FROM view_1_tab4_782
----
670 values hashing to 5fc04d1e3c2cf04bd565e9f7c5994d77

query II rowsort label-4300-2
SELECT pk, col0 FROM view_2_tab4_782
----
1330 values hashing to 4dd82b263cf931801d56c36e86f2888e

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (((col0 IN (5925,9789)) AND (col1 <= 5378.37 AND col0 IS NULL) AND (col0 < 2689)) OR col1 <= 5556.3 AND col3 <= 7971 OR col3 > 5189 AND col0 > 7 AND ((col1 > 5103.31)) OR col0 < 630 AND (((col0 <= 2635) OR col3 = 7624 AND ((((col0 IN (6163,2022,4720,9473,670) AND ((((((col0 < 298 OR (col4 > 9327.60))) AND ((col3 >= 2809))) AND ((col3 <= 1547)) OR (col4 < 8374.94) AND (((col0 > 6645 AND (col4 > 2874.0) AND col1 > 740.39 OR (col0 > 5035) AND col0 >= 5207 AND col3 <= 7098)) AND ((col3 IS NULL)))) AND col0 >= 6016 OR ((col0 IS NULL) AND col4 >= 5611.20) AND (col3 < 6387)))) OR (col3 > 4109))) AND col0 < 1737 OR (((col3 = 9884)))) AND col0 > 3647 AND ((((((((col4 > 6152.55)))))) AND (col0 <= 6441 OR col0 > 6481) AND (((col3 < 7932))) AND col0 > 9467)) AND col4 IN (4407.9,1177.3,6814.27,6241.37,9284.25) AND col0 BETWEEN 1184 AND 4256 AND col0 >= 5560) OR (col3 > 4591 AND (col0 <= 753) OR ((col0 > 1641 OR (col3 >= 2723) OR (col3 < 9191) OR col3 = 498 AND (col0 <= 2766) AND ((col3 < 4235) OR col0 IS NULL AND (col3 <= 2910 AND col4 > 8399.49)) AND (((col0 < 6421 AND col0 >= 5298 AND ((col4 <= 8878.68 OR (col0 >= 3739) AND col0 < 3211 OR col4 IN (948.73,9156.77) AND col0 = 5654 OR col4 > 5805.68 AND col4 < 8049.91 AND col1 >= 2357.25 AND col1 IN (7807.46,9265.52,6202.37,7062.8) AND (col0 > 26) OR col0 >= 9595 OR col0 >= 2506 AND (col1 < 5842.19) AND col1 <= 1777.93 OR (col3 >= 5739)))))) OR col0 < 8050)) OR col3 > 1442)) OR ((col0 < 703 OR (col4 >= 8775.3) OR col1 < 9606.76 OR (col3 < 2186) OR col3 IS NULL) OR col1 > 5475.35)) AND col0 < 4571 AND col3 < 7485 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT ((((col0 IN (5925,9789)) AND (col1 <= 5378.37 AND col0 IS NULL) AND (col0 < 2689)) OR col1 <= 5556.3 AND col3 <= 7971 OR col3 > 5189 AND col0 > 7 AND ((col1 > 5103.31)) OR col0 < 630 AND (((col0 <= 2635) OR col3 = 7624 AND ((((col0 IN (6163,2022,4720,9473,670) AND ((((((col0 < 298 OR (col4 > 9327.60))) AND ((col3 >= 2809))) AND ((col3 <= 1547)) OR (col4 < 8374.94) AND (((col0 > 6645 AND (col4 > 2874.0) AND col1 > 740.39 OR (col0 > 5035) AND col0 >= 5207 AND col3 <= 7098)) AND ((col3 IS NULL)))) AND col0 >= 6016 OR ((col0 IS NULL) AND col4 >= 5611.20) AND (col3 < 6387)))) OR (col3 > 4109))) AND col0 < 1737 OR (((col3 = 9884)))) AND col0 > 3647 AND ((((((((col4 > 6152.55)))))) AND (col0 <= 6441 OR col0 > 6481) AND (((col3 < 7932))) AND col0 > 9467)) AND col4 IN (4407.9,1177.3,6814.27,6241.37,9284.25) AND col0 BETWEEN 1184 AND 4256 AND col0 >= 5560) OR (col3 > 4591 AND (col0 <= 753) OR ((col0 > 1641 OR (col3 >= 2723) OR (col3 < 9191) OR col3 = 498 AND (col0 <= 2766) AND ((col3 < 4235) OR col0 IS NULL AND (col3 <= 2910 AND col4 > 8399.49)) AND (((col0 < 6421 AND col0 >= 5298 AND ((col4 <= 8878.68 OR (col0 >= 3739) AND col0 < 3211 OR col4 IN (948.73,9156.77) AND col0 = 5654 OR col4 > 5805.68 AND col4 < 8049.91 AND col1 >= 2357.25 AND col1 IN (7807.46,9265.52,6202.37,7062.8) AND (col0 > 26) OR col0 >= 9595 OR col0 >= 2506 AND (col1 < 5842.19) AND col1 <= 1777.93 OR (col3 >= 5739)))))) OR col0 < 8050)) OR col3 > 1442)) OR ((col0 < 703 OR (col4 >= 8775.3) OR col1 < 9606.76 OR (col3 < 2186) OR col3 IS NULL) OR col1 > 5475.35)) AND col0 < 4571 AND col3 < 7485)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_782 UNION ALL SELECT pk, col0 FROM view_2_tab4_782
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (((col0 IN (5925,9789)) AND (col1 <= 5378.37 AND col0 IS NULL) AND (col0 < 2689)) OR col1 <= 5556.3 AND col3 <= 7971 OR col3 > 5189 AND col0 > 7 AND ((col1 > 5103.31)) OR col0 < 630 AND (((col0 <= 2635) OR col3 = 7624 AND ((((col0 IN (6163,2022,4720,9473,670) AND ((((((col0 < 298 OR (col4 > 9327.60))) AND ((col3 >= 2809))) AND ((col3 <= 1547)) OR (col4 < 8374.94) AND (((col0 > 6645 AND (col4 > 2874.0) AND col1 > 740.39 OR (col0 > 5035) AND col0 >= 5207 AND col3 <= 7098)) AND ((col3 IS NULL)))) AND col0 >= 6016 OR ((col0 IS NULL) AND col4 >= 5611.20) AND (col3 < 6387)))) OR (col3 > 4109))) AND col0 < 1737 OR (((col3 = 9884)))) AND col0 > 3647 AND ((((((((col4 > 6152.55)))))) AND (col0 <= 6441 OR col0 > 6481) AND (((col3 < 7932))) AND col0 > 9467)) AND col4 IN (4407.9,1177.3,6814.27,6241.37,9284.25) AND col0 BETWEEN 1184 AND 4256 AND col0 >= 5560) OR (col3 > 4591 AND (col0 <= 753) OR ((col0 > 1641 OR (col3 >= 2723) OR (col3 < 9191) OR col3 = 498 AND (col0 <= 2766) AND ((col3 < 4235) OR col0 IS NULL AND (col3 <= 2910 AND col4 > 8399.49)) AND (((col0 < 6421 AND col0 >= 5298 AND ((col4 <= 8878.68 OR (col0 >= 3739) AND col0 < 3211 OR col4 IN (948.73,9156.77) AND col0 = 5654 OR col4 > 5805.68 AND col4 < 8049.91 AND col1 >= 2357.25 AND col1 IN (7807.46,9265.52,6202.37,7062.8) AND (col0 > 26) OR col0 >= 9595 OR col0 >= 2506 AND (col1 < 5842.19) AND col1 <= 1777.93 OR (col3 >= 5739)))))) OR col0 < 8050)) OR col3 > 1442)) OR ((col0 < 703 OR (col4 >= 8775.3) OR col1 < 9606.76 OR (col3 < 2186) OR col3 IS NULL) OR col1 > 5475.35)) AND col0 < 4571 AND col3 < 7485 UNION SELECT pk, col0 FROM tab4 WHERE NOT ((((col0 IN (5925,9789)) AND (col1 <= 5378.37 AND col0 IS NULL) AND (col0 < 2689)) OR col1 <= 5556.3 AND col3 <= 7971 OR col3 > 5189 AND col0 > 7 AND ((col1 > 5103.31)) OR col0 < 630 AND (((col0 <= 2635) OR col3 = 7624 AND ((((col0 IN (6163,2022,4720,9473,670) AND ((((((col0 < 298 OR (col4 > 9327.60))) AND ((col3 >= 2809))) AND ((col3 <= 1547)) OR (col4 < 8374.94) AND (((col0 > 6645 AND (col4 > 2874.0) AND col1 > 740.39 OR (col0 > 5035) AND col0 >= 5207 AND col3 <= 7098)) AND ((col3 IS NULL)))) AND col0 >= 6016 OR ((col0 IS NULL) AND col4 >= 5611.20) AND (col3 < 6387)))) OR (col3 > 4109))) AND col0 < 1737 OR (((col3 = 9884)))) AND col0 > 3647 AND ((((((((col4 > 6152.55)))))) AND (col0 <= 6441 OR col0 > 6481) AND (((col3 < 7932))) AND col0 > 9467)) AND col4 IN (4407.9,1177.3,6814.27,6241.37,9284.25) AND col0 BETWEEN 1184 AND 4256 AND col0 >= 5560) OR (col3 > 4591 AND (col0 <= 753) OR ((col0 > 1641 OR (col3 >= 2723) OR (col3 < 9191) OR col3 = 498 AND (col0 <= 2766) AND ((col3 < 4235) OR col0 IS NULL AND (col3 <= 2910 AND col4 > 8399.49)) AND (((col0 < 6421 AND col0 >= 5298 AND ((col4 <= 8878.68 OR (col0 >= 3739) AND col0 < 3211 OR col4 IN (948.73,9156.77) AND col0 = 5654 OR col4 > 5805.68 AND col4 < 8049.91 AND col1 >= 2357.25 AND col1 IN (7807.46,9265.52,6202.37,7062.8) AND (col0 > 26) OR col0 >= 9595 OR col0 >= 2506 AND (col1 < 5842.19) AND col1 <= 1777.93 OR (col3 >= 5739)))))) OR col0 < 8050)) OR col3 > 1442)) OR ((col0 < 703 OR (col4 >= 8775.3) OR col1 < 9606.76 OR (col3 < 2186) OR col3 IS NULL) OR col1 > 5475.35)) AND col0 < 4571 AND col3 < 7485)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_782 UNION SELECT pk, col0 FROM view_2_tab4_782
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-4300-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE (((col0 IN (5925,9789)) AND (col1 <= 5378.37 AND col0 IS NULL) AND (col0 < 2689)) OR col1 <= 5556.3 AND col3 <= 7971 OR col3 > 5189 AND col0 > 7 AND ((col1 > 5103.31)) OR col0 < 630 AND (((col0 <= 2635) OR col3 = 7624 AND ((((col0 IN (6163,2022,4720,9473,670) AND ((((((col0 < 298 OR (col4 > 9327.60))) AND ((col3 >= 2809))) AND ((col3 <= 1547)) OR (col4 < 8374.94) AND (((col0 > 6645 AND (col4 > 2874.0) AND col1 > 740.39 OR (col0 > 5035) AND col0 >= 5207 AND col3 <= 7098)) AND ((col3 IS NULL)))) AND col0 >= 6016 OR ((col0 IS NULL) AND col4 >= 5611.20) AND (col3 < 6387)))) OR (col3 > 4109))) AND col0 < 1737 OR (((col3 = 9884)))) AND col0 > 3647 AND ((((((((col4 > 6152.55)))))) AND (col0 <= 6441 OR col0 > 6481) AND (((col3 < 7932))) AND col0 > 9467)) AND col4 IN (4407.9,1177.3,6814.27,6241.37,9284.25) AND col0 BETWEEN 1184 AND 4256 AND col0 >= 5560) OR (col3 > 4591 AND (col0 <= 753) OR ((col0 > 1641 OR (col3 >= 2723) OR (col3 < 9191) OR col3 = 498 AND (col0 <= 2766) AND ((col3 < 4235) OR col0 IS NULL AND (col3 <= 2910 AND col4 > 8399.49)) AND (((col0 < 6421 AND col0 >= 5298 AND ((col4 <= 8878.68 OR (col0 >= 3739) AND col0 < 3211 OR col4 IN (948.73,9156.77) AND col0 = 5654 OR col4 > 5805.68 AND col4 < 8049.91 AND col1 >= 2357.25 AND col1 IN (7807.46,9265.52,6202.37,7062.8) AND (col0 > 26) OR col0 >= 9595 OR col0 >= 2506 AND (col1 < 5842.19) AND col1 <= 1777.93 OR (col3 >= 5739)))))) OR col0 < 8050)) OR col3 > 1442)) OR ((col0 < 703 OR (col4 >= 8775.3) OR col1 < 9606.76 OR (col3 < 2186) OR col3 IS NULL) OR col1 > 5475.35)) AND col0 < 4571 AND col3 < 7485 ) AS tab4_782
----
335 values hashing to 6c5db9666d99e19f3d583c2f59932dd3

query I rowsort label-4300-3
SELECT * FROM view_3_tab4_782
----
335 values hashing to 6c5db9666d99e19f3d583c2f59932dd3

query I rowsort label-4300-3
SELECT pk FROM tab4 WHERE (((col0 IN (5925,9789)) AND (col1 <= 5378.37 AND col0 IS NULL) AND (col0 < 2689)) OR col1 <= 5556.3 AND col3 <= 7971 OR col3 > 5189 AND col0 > 7 AND ((col1 > 5103.31)) OR col0 < 630 AND (((col0 <= 2635) OR col3 = 7624 AND ((((col0 IN (6163,2022,4720,9473,670) AND ((((((col0 < 298 OR (col4 > 9327.60))) AND ((col3 >= 2809))) AND ((col3 <= 1547)) OR (col4 < 8374.94) AND (((col0 > 6645 AND (col4 > 2874.0) AND col1 > 740.39 OR (col0 > 5035) AND col0 >= 5207 AND col3 <= 7098)) AND ((col3 IS NULL)))) AND col0 >= 6016 OR ((col0 IS NULL) AND col4 >= 5611.20) AND (col3 < 6387)))) OR (col3 > 4109))) AND col0 < 1737 OR (((col3 = 9884)))) AND col0 > 3647 AND ((((((((col4 > 6152.55)))))) AND (col0 <= 6441 OR col0 > 6481) AND (((col3 < 7932))) AND col0 > 9467)) AND col4 IN (4407.9,1177.3,6814.27,6241.37,9284.25) AND col0 BETWEEN 1184 AND 4256 AND col0 >= 5560) OR (col3 > 4591 AND (col0 <= 753) OR ((col0 > 1641 OR (col3 >= 2723) OR (col3 < 9191) OR col3 = 498 AND (col0 <= 2766) AND ((col3 < 4235) OR col0 IS NULL AND (col3 <= 2910 AND col4 > 8399.49)) AND (((col0 < 6421 AND col0 >= 5298 AND ((col4 <= 8878.68 OR (col0 >= 3739) AND col0 < 3211 OR col4 IN (948.73,9156.77) AND col0 = 5654 OR col4 > 5805.68 AND col4 < 8049.91 AND col1 >= 2357.25 AND col1 IN (7807.46,9265.52,6202.37,7062.8) AND (col0 > 26) OR col0 >= 9595 OR col0 >= 2506 AND (col1 < 5842.19) AND col1 <= 1777.93 OR (col3 >= 5739)))))) OR col0 < 8050)) OR col3 > 1442)) OR ((col0 < 703 OR (col4 >= 8775.3) OR col1 < 9606.76 OR (col3 < 2186) OR col3 IS NULL) OR col1 > 5475.35)) AND col0 < 4571 AND col3 < 7485
----
335 values hashing to 6c5db9666d99e19f3d583c2f59932dd3

statement ok
DROP VIEW view_1_tab4_782

statement ok
DROP VIEW view_2_tab4_782

statement ok
DROP VIEW view_3_tab4_782

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_783') DROP VIEW view_1_tab0_783

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_783

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_783') DROP VIEW view_2_tab0_783

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_783

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_783') DROP VIEW view_3_tab0_783

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_783

statement ok
CREATE VIEW view_1_tab0_783 AS SELECT pk, col0 FROM tab0 WHERE (col3 > 1461) AND col4 > 3346.51

statement ok
CREATE VIEW view_2_tab0_783 AS SELECT pk, col0 FROM tab0 WHERE NOT ((col3 > 1461) AND col4 > 3346.51)

statement ok
CREATE VIEW view_3_tab0_783 AS SELECT pk FROM view_1_tab0_783

query II rowsort label-4400-1
SELECT pk, col0 FROM tab0 WHERE (col3 > 1461) AND col4 > 3346.51
----
1110 values hashing to 1fba3dea9515c91500c9b50d25e6d65f

query II rowsort label-4400-2
SELECT pk, col0 FROM tab0 WHERE NOT ((col3 > 1461) AND col4 > 3346.51)
----
890 values hashing to 959dfc1714818d849b8ee899ac50a2ac

query II rowsort label-4400-1
SELECT pk, col0 FROM view_1_tab0_783
----
1110 values hashing to 1fba3dea9515c91500c9b50d25e6d65f

query II rowsort label-4400-2
SELECT pk, col0 FROM view_2_tab0_783
----
890 values hashing to 959dfc1714818d849b8ee899ac50a2ac

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col3 > 1461) AND col4 > 3346.51 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT ((col3 > 1461) AND col4 > 3346.51)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_783 UNION ALL SELECT pk, col0 FROM view_2_tab0_783
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE (col3 > 1461) AND col4 > 3346.51 UNION SELECT pk, col0 FROM tab0 WHERE NOT ((col3 > 1461) AND col4 > 3346.51)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_783 UNION SELECT pk, col0 FROM view_2_tab0_783
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-4400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE (col3 > 1461) AND col4 > 3346.51 ) AS tab0_783
----
555 values hashing to bd3129cffa46cf510552392bdc6fabe3

query I rowsort label-4400-3
SELECT * FROM view_3_tab0_783
----
555 values hashing to bd3129cffa46cf510552392bdc6fabe3

query I rowsort label-4400-3
SELECT pk FROM tab0 WHERE (col3 > 1461) AND col4 > 3346.51
----
555 values hashing to bd3129cffa46cf510552392bdc6fabe3

statement ok
DROP VIEW view_1_tab0_783

statement ok
DROP VIEW view_2_tab0_783

statement ok
DROP VIEW view_3_tab0_783

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_783') DROP VIEW view_1_tab1_783

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_783

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_783') DROP VIEW view_2_tab1_783

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_783

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_783') DROP VIEW view_3_tab1_783

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_783

statement ok
CREATE VIEW view_1_tab1_783 AS SELECT pk, col0 FROM tab1 WHERE (col3 > 1461) AND col4 > 3346.51

statement ok
CREATE VIEW view_2_tab1_783 AS SELECT pk, col0 FROM tab1 WHERE NOT ((col3 > 1461) AND col4 > 3346.51)

statement ok
CREATE VIEW view_3_tab1_783 AS SELECT pk FROM view_1_tab1_783

query II rowsort label-4400-1
SELECT pk, col0 FROM tab1 WHERE (col3 > 1461) AND col4 > 3346.51
----
1110 values hashing to 1fba3dea9515c91500c9b50d25e6d65f

query II rowsort label-4400-2
SELECT pk, col0 FROM tab1 WHERE NOT ((col3 > 1461) AND col4 > 3346.51)
----
890 values hashing to 959dfc1714818d849b8ee899ac50a2ac

query II rowsort label-4400-1
SELECT pk, col0 FROM view_1_tab1_783
----
1110 values hashing to 1fba3dea9515c91500c9b50d25e6d65f

query II rowsort label-4400-2
SELECT pk, col0 FROM view_2_tab1_783
----
890 values hashing to 959dfc1714818d849b8ee899ac50a2ac

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col3 > 1461) AND col4 > 3346.51 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT ((col3 > 1461) AND col4 > 3346.51)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_783 UNION ALL SELECT pk, col0 FROM view_2_tab1_783
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE (col3 > 1461) AND col4 > 3346.51 UNION SELECT pk, col0 FROM tab1 WHERE NOT ((col3 > 1461) AND col4 > 3346.51)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_783 UNION SELECT pk, col0 FROM view_2_tab1_783
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-4400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE (col3 > 1461) AND col4 > 3346.51 ) AS tab1_783
----
555 values hashing to bd3129cffa46cf510552392bdc6fabe3

query I rowsort label-4400-3
SELECT * FROM view_3_tab1_783
----
555 values hashing to bd3129cffa46cf510552392bdc6fabe3

query I rowsort label-4400-3
SELECT pk FROM tab1 WHERE (col3 > 1461) AND col4 > 3346.51
----
555 values hashing to bd3129cffa46cf510552392bdc6fabe3

statement ok
DROP VIEW view_1_tab1_783

statement ok
DROP VIEW view_2_tab1_783

statement ok
DROP VIEW view_3_tab1_783

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_783') DROP VIEW view_1_tab2_783

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_783

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_783') DROP VIEW view_2_tab2_783

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_783

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_783') DROP VIEW view_3_tab2_783

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_783

statement ok
CREATE VIEW view_1_tab2_783 AS SELECT pk, col0 FROM tab2 WHERE (col3 > 1461) AND col4 > 3346.51

statement ok
CREATE VIEW view_2_tab2_783 AS SELECT pk, col0 FROM tab2 WHERE NOT ((col3 > 1461) AND col4 > 3346.51)

statement ok
CREATE VIEW view_3_tab2_783 AS SELECT pk FROM view_1_tab2_783

query II rowsort label-4400-1
SELECT pk, col0 FROM tab2 WHERE (col3 > 1461) AND col4 > 3346.51
----
1110 values hashing to 1fba3dea9515c91500c9b50d25e6d65f

query II rowsort label-4400-2
SELECT pk, col0 FROM tab2 WHERE NOT ((col3 > 1461) AND col4 > 3346.51)
----
890 values hashing to 959dfc1714818d849b8ee899ac50a2ac

query II rowsort label-4400-1
SELECT pk, col0 FROM view_1_tab2_783
----
1110 values hashing to 1fba3dea9515c91500c9b50d25e6d65f

query II rowsort label-4400-2
SELECT pk, col0 FROM view_2_tab2_783
----
890 values hashing to 959dfc1714818d849b8ee899ac50a2ac

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col3 > 1461) AND col4 > 3346.51 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT ((col3 > 1461) AND col4 > 3346.51)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_783 UNION ALL SELECT pk, col0 FROM view_2_tab2_783
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE (col3 > 1461) AND col4 > 3346.51 UNION SELECT pk, col0 FROM tab2 WHERE NOT ((col3 > 1461) AND col4 > 3346.51)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_783 UNION SELECT pk, col0 FROM view_2_tab2_783
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-4400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE (col3 > 1461) AND col4 > 3346.51 ) AS tab2_783
----
555 values hashing to bd3129cffa46cf510552392bdc6fabe3

query I rowsort label-4400-3
SELECT * FROM view_3_tab2_783
----
555 values hashing to bd3129cffa46cf510552392bdc6fabe3

query I rowsort label-4400-3
SELECT pk FROM tab2 WHERE (col3 > 1461) AND col4 > 3346.51
----
555 values hashing to bd3129cffa46cf510552392bdc6fabe3

statement ok
DROP VIEW view_1_tab2_783

statement ok
DROP VIEW view_2_tab2_783

statement ok
DROP VIEW view_3_tab2_783

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_783') DROP VIEW view_1_tab3_783

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_783

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_783') DROP VIEW view_2_tab3_783

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_783

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_783') DROP VIEW view_3_tab3_783

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_783

statement ok
CREATE VIEW view_1_tab3_783 AS SELECT pk, col0 FROM tab3 WHERE (col3 > 1461) AND col4 > 3346.51

statement ok
CREATE VIEW view_2_tab3_783 AS SELECT pk, col0 FROM tab3 WHERE NOT ((col3 > 1461) AND col4 > 3346.51)

statement ok
CREATE VIEW view_3_tab3_783 AS SELECT pk FROM view_1_tab3_783

query II rowsort label-4400-1
SELECT pk, col0 FROM tab3 WHERE (col3 > 1461) AND col4 > 3346.51
----
1110 values hashing to 1fba3dea9515c91500c9b50d25e6d65f

query II rowsort label-4400-2
SELECT pk, col0 FROM tab3 WHERE NOT ((col3 > 1461) AND col4 > 3346.51)
----
890 values hashing to 959dfc1714818d849b8ee899ac50a2ac

query II rowsort label-4400-1
SELECT pk, col0 FROM view_1_tab3_783
----
1110 values hashing to 1fba3dea9515c91500c9b50d25e6d65f

query II rowsort label-4400-2
SELECT pk, col0 FROM view_2_tab3_783
----
890 values hashing to 959dfc1714818d849b8ee899ac50a2ac

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col3 > 1461) AND col4 > 3346.51 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT ((col3 > 1461) AND col4 > 3346.51)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_783 UNION ALL SELECT pk, col0 FROM view_2_tab3_783
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE (col3 > 1461) AND col4 > 3346.51 UNION SELECT pk, col0 FROM tab3 WHERE NOT ((col3 > 1461) AND col4 > 3346.51)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_783 UNION SELECT pk, col0 FROM view_2_tab3_783
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-4400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE (col3 > 1461) AND col4 > 3346.51 ) AS tab3_783
----
555 values hashing to bd3129cffa46cf510552392bdc6fabe3

query I rowsort label-4400-3
SELECT * FROM view_3_tab3_783
----
555 values hashing to bd3129cffa46cf510552392bdc6fabe3

query I rowsort label-4400-3
SELECT pk FROM tab3 WHERE (col3 > 1461) AND col4 > 3346.51
----
555 values hashing to bd3129cffa46cf510552392bdc6fabe3

statement ok
DROP VIEW view_1_tab3_783

statement ok
DROP VIEW view_2_tab3_783

statement ok
DROP VIEW view_3_tab3_783

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_783') DROP VIEW view_1_tab4_783

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_783

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_783') DROP VIEW view_2_tab4_783

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_783

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_783') DROP VIEW view_3_tab4_783

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_783

statement ok
CREATE VIEW view_1_tab4_783 AS SELECT pk, col0 FROM tab4 WHERE (col3 > 1461) AND col4 > 3346.51

statement ok
CREATE VIEW view_2_tab4_783 AS SELECT pk, col0 FROM tab4 WHERE NOT ((col3 > 1461) AND col4 > 3346.51)

statement ok
CREATE VIEW view_3_tab4_783 AS SELECT pk FROM view_1_tab4_783

query II rowsort label-4400-1
SELECT pk, col0 FROM tab4 WHERE (col3 > 1461) AND col4 > 3346.51
----
1110 values hashing to 1fba3dea9515c91500c9b50d25e6d65f

query II rowsort label-4400-2
SELECT pk, col0 FROM tab4 WHERE NOT ((col3 > 1461) AND col4 > 3346.51)
----
890 values hashing to 959dfc1714818d849b8ee899ac50a2ac

query II rowsort label-4400-1
SELECT pk, col0 FROM view_1_tab4_783
----
1110 values hashing to 1fba3dea9515c91500c9b50d25e6d65f

query II rowsort label-4400-2
SELECT pk, col0 FROM view_2_tab4_783
----
890 values hashing to 959dfc1714818d849b8ee899ac50a2ac

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col3 > 1461) AND col4 > 3346.51 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT ((col3 > 1461) AND col4 > 3346.51)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_783 UNION ALL SELECT pk, col0 FROM view_2_tab4_783
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE (col3 > 1461) AND col4 > 3346.51 UNION SELECT pk, col0 FROM tab4 WHERE NOT ((col3 > 1461) AND col4 > 3346.51)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_783 UNION SELECT pk, col0 FROM view_2_tab4_783
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-4400-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE (col3 > 1461) AND col4 > 3346.51 ) AS tab4_783
----
555 values hashing to bd3129cffa46cf510552392bdc6fabe3

query I rowsort label-4400-3
SELECT * FROM view_3_tab4_783
----
555 values hashing to bd3129cffa46cf510552392bdc6fabe3

query I rowsort label-4400-3
SELECT pk FROM tab4 WHERE (col3 > 1461) AND col4 > 3346.51
----
555 values hashing to bd3129cffa46cf510552392bdc6fabe3

statement ok
DROP VIEW view_1_tab4_783

statement ok
DROP VIEW view_2_tab4_783

statement ok
DROP VIEW view_3_tab4_783

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_784') DROP VIEW view_1_tab0_784

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_784

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_784') DROP VIEW view_2_tab0_784

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_784

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_784') DROP VIEW view_3_tab0_784

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_784

statement ok
CREATE VIEW view_1_tab0_784 AS SELECT pk, col0 FROM tab0 WHERE col1 > 8864.94

statement ok
CREATE VIEW view_2_tab0_784 AS SELECT pk, col0 FROM tab0 WHERE NOT (col1 > 8864.94)

statement ok
CREATE VIEW view_3_tab0_784 AS SELECT pk FROM view_1_tab0_784

query II rowsort label-4500-1
SELECT pk, col0 FROM tab0 WHERE col1 > 8864.94
----
258 values hashing to 95086d16249d04dccd1fc09bc7bfbe2c

query II rowsort label-4500-2
SELECT pk, col0 FROM tab0 WHERE NOT (col1 > 8864.94)
----
1742 values hashing to 95b90c55a9e5c98edecbbce677e75a34

query II rowsort label-4500-1
SELECT pk, col0 FROM view_1_tab0_784
----
258 values hashing to 95086d16249d04dccd1fc09bc7bfbe2c

query II rowsort label-4500-2
SELECT pk, col0 FROM view_2_tab0_784
----
1742 values hashing to 95b90c55a9e5c98edecbbce677e75a34

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col1 > 8864.94 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col1 > 8864.94)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_784 UNION ALL SELECT pk, col0 FROM view_2_tab0_784
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col1 > 8864.94 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col1 > 8864.94)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_784 UNION SELECT pk, col0 FROM view_2_tab0_784
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-4500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col1 > 8864.94 ) AS tab0_784
----
129 values hashing to 06ba729eec17185e49972dc22c67beb4

query I rowsort label-4500-3
SELECT * FROM view_3_tab0_784
----
129 values hashing to 06ba729eec17185e49972dc22c67beb4

query I rowsort label-4500-3
SELECT pk FROM tab0 WHERE col1 > 8864.94
----
129 values hashing to 06ba729eec17185e49972dc22c67beb4

statement ok
DROP VIEW view_1_tab0_784

statement ok
DROP VIEW view_2_tab0_784

statement ok
DROP VIEW view_3_tab0_784

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_784') DROP VIEW view_1_tab1_784

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_784

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_784') DROP VIEW view_2_tab1_784

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_784

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_784') DROP VIEW view_3_tab1_784

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_784

statement ok
CREATE VIEW view_1_tab1_784 AS SELECT pk, col0 FROM tab1 WHERE col1 > 8864.94

statement ok
CREATE VIEW view_2_tab1_784 AS SELECT pk, col0 FROM tab1 WHERE NOT (col1 > 8864.94)

statement ok
CREATE VIEW view_3_tab1_784 AS SELECT pk FROM view_1_tab1_784

query II rowsort label-4500-1
SELECT pk, col0 FROM tab1 WHERE col1 > 8864.94
----
258 values hashing to 95086d16249d04dccd1fc09bc7bfbe2c

query II rowsort label-4500-2
SELECT pk, col0 FROM tab1 WHERE NOT (col1 > 8864.94)
----
1742 values hashing to 95b90c55a9e5c98edecbbce677e75a34

query II rowsort label-4500-1
SELECT pk, col0 FROM view_1_tab1_784
----
258 values hashing to 95086d16249d04dccd1fc09bc7bfbe2c

query II rowsort label-4500-2
SELECT pk, col0 FROM view_2_tab1_784
----
1742 values hashing to 95b90c55a9e5c98edecbbce677e75a34

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col1 > 8864.94 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col1 > 8864.94)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_784 UNION ALL SELECT pk, col0 FROM view_2_tab1_784
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col1 > 8864.94 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col1 > 8864.94)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_784 UNION SELECT pk, col0 FROM view_2_tab1_784
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-4500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col1 > 8864.94 ) AS tab1_784
----
129 values hashing to 06ba729eec17185e49972dc22c67beb4

query I rowsort label-4500-3
SELECT * FROM view_3_tab1_784
----
129 values hashing to 06ba729eec17185e49972dc22c67beb4

query I rowsort label-4500-3
SELECT pk FROM tab1 WHERE col1 > 8864.94
----
129 values hashing to 06ba729eec17185e49972dc22c67beb4

statement ok
DROP VIEW view_1_tab1_784

statement ok
DROP VIEW view_2_tab1_784

statement ok
DROP VIEW view_3_tab1_784

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_784') DROP VIEW view_1_tab2_784

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_784

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_784') DROP VIEW view_2_tab2_784

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_784

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_784') DROP VIEW view_3_tab2_784

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_784

statement ok
CREATE VIEW view_1_tab2_784 AS SELECT pk, col0 FROM tab2 WHERE col1 > 8864.94

statement ok
CREATE VIEW view_2_tab2_784 AS SELECT pk, col0 FROM tab2 WHERE NOT (col1 > 8864.94)

statement ok
CREATE VIEW view_3_tab2_784 AS SELECT pk FROM view_1_tab2_784

query II rowsort label-4500-1
SELECT pk, col0 FROM tab2 WHERE col1 > 8864.94
----
258 values hashing to 95086d16249d04dccd1fc09bc7bfbe2c

query II rowsort label-4500-2
SELECT pk, col0 FROM tab2 WHERE NOT (col1 > 8864.94)
----
1742 values hashing to 95b90c55a9e5c98edecbbce677e75a34

query II rowsort label-4500-1
SELECT pk, col0 FROM view_1_tab2_784
----
258 values hashing to 95086d16249d04dccd1fc09bc7bfbe2c

query II rowsort label-4500-2
SELECT pk, col0 FROM view_2_tab2_784
----
1742 values hashing to 95b90c55a9e5c98edecbbce677e75a34

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col1 > 8864.94 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col1 > 8864.94)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_784 UNION ALL SELECT pk, col0 FROM view_2_tab2_784
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col1 > 8864.94 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col1 > 8864.94)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_784 UNION SELECT pk, col0 FROM view_2_tab2_784
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-4500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col1 > 8864.94 ) AS tab2_784
----
129 values hashing to 06ba729eec17185e49972dc22c67beb4

query I rowsort label-4500-3
SELECT * FROM view_3_tab2_784
----
129 values hashing to 06ba729eec17185e49972dc22c67beb4

query I rowsort label-4500-3
SELECT pk FROM tab2 WHERE col1 > 8864.94
----
129 values hashing to 06ba729eec17185e49972dc22c67beb4

statement ok
DROP VIEW view_1_tab2_784

statement ok
DROP VIEW view_2_tab2_784

statement ok
DROP VIEW view_3_tab2_784

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_784') DROP VIEW view_1_tab3_784

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_784

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_784') DROP VIEW view_2_tab3_784

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_784

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_784') DROP VIEW view_3_tab3_784

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_784

statement ok
CREATE VIEW view_1_tab3_784 AS SELECT pk, col0 FROM tab3 WHERE col1 > 8864.94

statement ok
CREATE VIEW view_2_tab3_784 AS SELECT pk, col0 FROM tab3 WHERE NOT (col1 > 8864.94)

statement ok
CREATE VIEW view_3_tab3_784 AS SELECT pk FROM view_1_tab3_784

query II rowsort label-4500-1
SELECT pk, col0 FROM tab3 WHERE col1 > 8864.94
----
258 values hashing to 95086d16249d04dccd1fc09bc7bfbe2c

query II rowsort label-4500-2
SELECT pk, col0 FROM tab3 WHERE NOT (col1 > 8864.94)
----
1742 values hashing to 95b90c55a9e5c98edecbbce677e75a34

query II rowsort label-4500-1
SELECT pk, col0 FROM view_1_tab3_784
----
258 values hashing to 95086d16249d04dccd1fc09bc7bfbe2c

query II rowsort label-4500-2
SELECT pk, col0 FROM view_2_tab3_784
----
1742 values hashing to 95b90c55a9e5c98edecbbce677e75a34

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col1 > 8864.94 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col1 > 8864.94)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_784 UNION ALL SELECT pk, col0 FROM view_2_tab3_784
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col1 > 8864.94 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col1 > 8864.94)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_784 UNION SELECT pk, col0 FROM view_2_tab3_784
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-4500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col1 > 8864.94 ) AS tab3_784
----
129 values hashing to 06ba729eec17185e49972dc22c67beb4

query I rowsort label-4500-3
SELECT * FROM view_3_tab3_784
----
129 values hashing to 06ba729eec17185e49972dc22c67beb4

query I rowsort label-4500-3
SELECT pk FROM tab3 WHERE col1 > 8864.94
----
129 values hashing to 06ba729eec17185e49972dc22c67beb4

statement ok
DROP VIEW view_1_tab3_784

statement ok
DROP VIEW view_2_tab3_784

statement ok
DROP VIEW view_3_tab3_784

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_784') DROP VIEW view_1_tab4_784

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_784

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_784') DROP VIEW view_2_tab4_784

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_784

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_784') DROP VIEW view_3_tab4_784

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_784

statement ok
CREATE VIEW view_1_tab4_784 AS SELECT pk, col0 FROM tab4 WHERE col1 > 8864.94

statement ok
CREATE VIEW view_2_tab4_784 AS SELECT pk, col0 FROM tab4 WHERE NOT (col1 > 8864.94)

statement ok
CREATE VIEW view_3_tab4_784 AS SELECT pk FROM view_1_tab4_784

query II rowsort label-4500-1
SELECT pk, col0 FROM tab4 WHERE col1 > 8864.94
----
258 values hashing to 95086d16249d04dccd1fc09bc7bfbe2c

query II rowsort label-4500-2
SELECT pk, col0 FROM tab4 WHERE NOT (col1 > 8864.94)
----
1742 values hashing to 95b90c55a9e5c98edecbbce677e75a34

query II rowsort label-4500-1
SELECT pk, col0 FROM view_1_tab4_784
----
258 values hashing to 95086d16249d04dccd1fc09bc7bfbe2c

query II rowsort label-4500-2
SELECT pk, col0 FROM view_2_tab4_784
----
1742 values hashing to 95b90c55a9e5c98edecbbce677e75a34

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col1 > 8864.94 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col1 > 8864.94)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_784 UNION ALL SELECT pk, col0 FROM view_2_tab4_784
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col1 > 8864.94 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col1 > 8864.94)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_784 UNION SELECT pk, col0 FROM view_2_tab4_784
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-4500-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col1 > 8864.94 ) AS tab4_784
----
129 values hashing to 06ba729eec17185e49972dc22c67beb4

query I rowsort label-4500-3
SELECT * FROM view_3_tab4_784
----
129 values hashing to 06ba729eec17185e49972dc22c67beb4

query I rowsort label-4500-3
SELECT pk FROM tab4 WHERE col1 > 8864.94
----
129 values hashing to 06ba729eec17185e49972dc22c67beb4

statement ok
DROP VIEW view_1_tab4_784

statement ok
DROP VIEW view_2_tab4_784

statement ok
DROP VIEW view_3_tab4_784

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_785') DROP VIEW view_1_tab0_785

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_785

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_785') DROP VIEW view_2_tab0_785

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_785

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_785') DROP VIEW view_3_tab0_785

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_785

statement ok
CREATE VIEW view_1_tab0_785 AS SELECT pk, col0 FROM tab0 WHERE col0 < 3061 OR col0 <= 3225

statement ok
CREATE VIEW view_2_tab0_785 AS SELECT pk, col0 FROM tab0 WHERE NOT (col0 < 3061 OR col0 <= 3225)

statement ok
CREATE VIEW view_3_tab0_785 AS SELECT pk FROM view_1_tab0_785

query II rowsort label-4600-1
SELECT pk, col0 FROM tab0 WHERE col0 < 3061 OR col0 <= 3225
----
626 values hashing to 49bfb74ab8b36560726e53b17bcf2768

query II rowsort label-4600-2
SELECT pk, col0 FROM tab0 WHERE NOT (col0 < 3061 OR col0 <= 3225)
----
1374 values hashing to db1bc88de5c141e4803d896acfb852ab

query II rowsort label-4600-1
SELECT pk, col0 FROM view_1_tab0_785
----
626 values hashing to 49bfb74ab8b36560726e53b17bcf2768

query II rowsort label-4600-2
SELECT pk, col0 FROM view_2_tab0_785
----
1374 values hashing to db1bc88de5c141e4803d896acfb852ab

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col0 < 3061 OR col0 <= 3225 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col0 < 3061 OR col0 <= 3225)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_785 UNION ALL SELECT pk, col0 FROM view_2_tab0_785
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col0 < 3061 OR col0 <= 3225 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col0 < 3061 OR col0 <= 3225)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_785 UNION SELECT pk, col0 FROM view_2_tab0_785
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-4600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col0 < 3061 OR col0 <= 3225 ) AS tab0_785
----
313 values hashing to b84e2dc02ae2e70d28f746b6cc234d4d

query I rowsort label-4600-3
SELECT * FROM view_3_tab0_785
----
313 values hashing to b84e2dc02ae2e70d28f746b6cc234d4d

query I rowsort label-4600-3
SELECT pk FROM tab0 WHERE col0 < 3061 OR col0 <= 3225
----
313 values hashing to b84e2dc02ae2e70d28f746b6cc234d4d

statement ok
DROP VIEW view_1_tab0_785

statement ok
DROP VIEW view_2_tab0_785

statement ok
DROP VIEW view_3_tab0_785

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_785') DROP VIEW view_1_tab1_785

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_785

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_785') DROP VIEW view_2_tab1_785

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_785

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_785') DROP VIEW view_3_tab1_785

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_785

statement ok
CREATE VIEW view_1_tab1_785 AS SELECT pk, col0 FROM tab1 WHERE col0 < 3061 OR col0 <= 3225

statement ok
CREATE VIEW view_2_tab1_785 AS SELECT pk, col0 FROM tab1 WHERE NOT (col0 < 3061 OR col0 <= 3225)

statement ok
CREATE VIEW view_3_tab1_785 AS SELECT pk FROM view_1_tab1_785

query II rowsort label-4600-1
SELECT pk, col0 FROM tab1 WHERE col0 < 3061 OR col0 <= 3225
----
626 values hashing to 49bfb74ab8b36560726e53b17bcf2768

query II rowsort label-4600-2
SELECT pk, col0 FROM tab1 WHERE NOT (col0 < 3061 OR col0 <= 3225)
----
1374 values hashing to db1bc88de5c141e4803d896acfb852ab

query II rowsort label-4600-1
SELECT pk, col0 FROM view_1_tab1_785
----
626 values hashing to 49bfb74ab8b36560726e53b17bcf2768

query II rowsort label-4600-2
SELECT pk, col0 FROM view_2_tab1_785
----
1374 values hashing to db1bc88de5c141e4803d896acfb852ab

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col0 < 3061 OR col0 <= 3225 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col0 < 3061 OR col0 <= 3225)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_785 UNION ALL SELECT pk, col0 FROM view_2_tab1_785
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col0 < 3061 OR col0 <= 3225 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col0 < 3061 OR col0 <= 3225)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_785 UNION SELECT pk, col0 FROM view_2_tab1_785
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-4600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col0 < 3061 OR col0 <= 3225 ) AS tab1_785
----
313 values hashing to b84e2dc02ae2e70d28f746b6cc234d4d

query I rowsort label-4600-3
SELECT * FROM view_3_tab1_785
----
313 values hashing to b84e2dc02ae2e70d28f746b6cc234d4d

query I rowsort label-4600-3
SELECT pk FROM tab1 WHERE col0 < 3061 OR col0 <= 3225
----
313 values hashing to b84e2dc02ae2e70d28f746b6cc234d4d

statement ok
DROP VIEW view_1_tab1_785

statement ok
DROP VIEW view_2_tab1_785

statement ok
DROP VIEW view_3_tab1_785

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_785') DROP VIEW view_1_tab2_785

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_785

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_785') DROP VIEW view_2_tab2_785

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_785

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_785') DROP VIEW view_3_tab2_785

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_785

statement ok
CREATE VIEW view_1_tab2_785 AS SELECT pk, col0 FROM tab2 WHERE col0 < 3061 OR col0 <= 3225

statement ok
CREATE VIEW view_2_tab2_785 AS SELECT pk, col0 FROM tab2 WHERE NOT (col0 < 3061 OR col0 <= 3225)

statement ok
CREATE VIEW view_3_tab2_785 AS SELECT pk FROM view_1_tab2_785

query II rowsort label-4600-1
SELECT pk, col0 FROM tab2 WHERE col0 < 3061 OR col0 <= 3225
----
626 values hashing to 49bfb74ab8b36560726e53b17bcf2768

query II rowsort label-4600-2
SELECT pk, col0 FROM tab2 WHERE NOT (col0 < 3061 OR col0 <= 3225)
----
1374 values hashing to db1bc88de5c141e4803d896acfb852ab

query II rowsort label-4600-1
SELECT pk, col0 FROM view_1_tab2_785
----
626 values hashing to 49bfb74ab8b36560726e53b17bcf2768

query II rowsort label-4600-2
SELECT pk, col0 FROM view_2_tab2_785
----
1374 values hashing to db1bc88de5c141e4803d896acfb852ab

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col0 < 3061 OR col0 <= 3225 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col0 < 3061 OR col0 <= 3225)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_785 UNION ALL SELECT pk, col0 FROM view_2_tab2_785
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col0 < 3061 OR col0 <= 3225 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col0 < 3061 OR col0 <= 3225)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_785 UNION SELECT pk, col0 FROM view_2_tab2_785
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-4600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col0 < 3061 OR col0 <= 3225 ) AS tab2_785
----
313 values hashing to b84e2dc02ae2e70d28f746b6cc234d4d

query I rowsort label-4600-3
SELECT * FROM view_3_tab2_785
----
313 values hashing to b84e2dc02ae2e70d28f746b6cc234d4d

query I rowsort label-4600-3
SELECT pk FROM tab2 WHERE col0 < 3061 OR col0 <= 3225
----
313 values hashing to b84e2dc02ae2e70d28f746b6cc234d4d

statement ok
DROP VIEW view_1_tab2_785

statement ok
DROP VIEW view_2_tab2_785

statement ok
DROP VIEW view_3_tab2_785

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_785') DROP VIEW view_1_tab3_785

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_785

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_785') DROP VIEW view_2_tab3_785

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_785

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_785') DROP VIEW view_3_tab3_785

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_785

statement ok
CREATE VIEW view_1_tab3_785 AS SELECT pk, col0 FROM tab3 WHERE col0 < 3061 OR col0 <= 3225

statement ok
CREATE VIEW view_2_tab3_785 AS SELECT pk, col0 FROM tab3 WHERE NOT (col0 < 3061 OR col0 <= 3225)

statement ok
CREATE VIEW view_3_tab3_785 AS SELECT pk FROM view_1_tab3_785

query II rowsort label-4600-1
SELECT pk, col0 FROM tab3 WHERE col0 < 3061 OR col0 <= 3225
----
626 values hashing to 49bfb74ab8b36560726e53b17bcf2768

query II rowsort label-4600-2
SELECT pk, col0 FROM tab3 WHERE NOT (col0 < 3061 OR col0 <= 3225)
----
1374 values hashing to db1bc88de5c141e4803d896acfb852ab

query II rowsort label-4600-1
SELECT pk, col0 FROM view_1_tab3_785
----
626 values hashing to 49bfb74ab8b36560726e53b17bcf2768

query II rowsort label-4600-2
SELECT pk, col0 FROM view_2_tab3_785
----
1374 values hashing to db1bc88de5c141e4803d896acfb852ab

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col0 < 3061 OR col0 <= 3225 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col0 < 3061 OR col0 <= 3225)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_785 UNION ALL SELECT pk, col0 FROM view_2_tab3_785
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col0 < 3061 OR col0 <= 3225 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col0 < 3061 OR col0 <= 3225)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_785 UNION SELECT pk, col0 FROM view_2_tab3_785
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-4600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col0 < 3061 OR col0 <= 3225 ) AS tab3_785
----
313 values hashing to b84e2dc02ae2e70d28f746b6cc234d4d

query I rowsort label-4600-3
SELECT * FROM view_3_tab3_785
----
313 values hashing to b84e2dc02ae2e70d28f746b6cc234d4d

query I rowsort label-4600-3
SELECT pk FROM tab3 WHERE col0 < 3061 OR col0 <= 3225
----
313 values hashing to b84e2dc02ae2e70d28f746b6cc234d4d

statement ok
DROP VIEW view_1_tab3_785

statement ok
DROP VIEW view_2_tab3_785

statement ok
DROP VIEW view_3_tab3_785

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_785') DROP VIEW view_1_tab4_785

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_785

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_785') DROP VIEW view_2_tab4_785

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_785

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_785') DROP VIEW view_3_tab4_785

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_785

statement ok
CREATE VIEW view_1_tab4_785 AS SELECT pk, col0 FROM tab4 WHERE col0 < 3061 OR col0 <= 3225

statement ok
CREATE VIEW view_2_tab4_785 AS SELECT pk, col0 FROM tab4 WHERE NOT (col0 < 3061 OR col0 <= 3225)

statement ok
CREATE VIEW view_3_tab4_785 AS SELECT pk FROM view_1_tab4_785

query II rowsort label-4600-1
SELECT pk, col0 FROM tab4 WHERE col0 < 3061 OR col0 <= 3225
----
626 values hashing to 49bfb74ab8b36560726e53b17bcf2768

query II rowsort label-4600-2
SELECT pk, col0 FROM tab4 WHERE NOT (col0 < 3061 OR col0 <= 3225)
----
1374 values hashing to db1bc88de5c141e4803d896acfb852ab

query II rowsort label-4600-1
SELECT pk, col0 FROM view_1_tab4_785
----
626 values hashing to 49bfb74ab8b36560726e53b17bcf2768

query II rowsort label-4600-2
SELECT pk, col0 FROM view_2_tab4_785
----
1374 values hashing to db1bc88de5c141e4803d896acfb852ab

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col0 < 3061 OR col0 <= 3225 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col0 < 3061 OR col0 <= 3225)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_785 UNION ALL SELECT pk, col0 FROM view_2_tab4_785
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col0 < 3061 OR col0 <= 3225 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col0 < 3061 OR col0 <= 3225)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_785 UNION SELECT pk, col0 FROM view_2_tab4_785
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-4600-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col0 < 3061 OR col0 <= 3225 ) AS tab4_785
----
313 values hashing to b84e2dc02ae2e70d28f746b6cc234d4d

query I rowsort label-4600-3
SELECT * FROM view_3_tab4_785
----
313 values hashing to b84e2dc02ae2e70d28f746b6cc234d4d

query I rowsort label-4600-3
SELECT pk FROM tab4 WHERE col0 < 3061 OR col0 <= 3225
----
313 values hashing to b84e2dc02ae2e70d28f746b6cc234d4d

statement ok
DROP VIEW view_1_tab4_785

statement ok
DROP VIEW view_2_tab4_785

statement ok
DROP VIEW view_3_tab4_785

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_786') DROP VIEW view_1_tab0_786

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_786

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_786') DROP VIEW view_2_tab0_786

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_786

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_786') DROP VIEW view_3_tab0_786

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_786

statement ok
CREATE VIEW view_1_tab0_786 AS SELECT pk, col0 FROM tab0 WHERE ((col1 > 4325.40) AND ((col0 <= 3916)) OR col3 IN (SELECT col0 FROM tab0 WHERE col3 <= 5542) AND col0 < 1271 AND ((col1 <= 6281.58)) AND col0 >= 1752 AND col0 >= 7029 OR col0 IS NULL OR col4 IN (5103.11,7453.92,1996.85,5264.82,4035.69,6799.29) AND col4 IS NULL OR col0 < 8248 OR col4 >= 9077.78 AND col0 < 7274 AND col3 >= 1505 AND (((col4 IS NULL AND col3 < 3136 AND (((col4 BETWEEN 956.6 AND 2168.6) AND col4 < 4625.60)))) AND col4 > 1726.56) OR (((col0 < 9276 AND (col3 IS NULL AND (((col3 <= 6385)))) OR col4 <= 4263.31)) AND col1 < 4574.33 AND col4 IS NULL AND ((((col1 IN (8683.7) OR (col0 > 6058) OR col1 >= 8619.56)))) AND col4 > 106.20 OR col3 = 6875 OR ((col3 >= 7460) AND col1 >= 8363.47 OR col0 >= 4654) AND col3 BETWEEN 6261 AND 17 AND ((col1 <= 5811.38 AND col3 < 9051)) AND ((col1 <= 6540.68 AND ((col4 IS NULL) AND (col0 < 4414)) AND (col0 < 512))) AND (col3 < 1625) AND col3 = 3594 OR (col3 = 8953) AND col1 < 5977.82 OR col0 > 2380) OR col4 > 9980.64 AND col1 IS NULL AND col0 >= 92 AND (col1 >= 4076.86) AND col3 < 8791 AND col0 IN (4914,8918,6280,2982,783) AND col0 > 5466 OR col0 > 5395 OR col4 >= 7731.4)

statement ok
CREATE VIEW view_2_tab0_786 AS SELECT pk, col0 FROM tab0 WHERE NOT (((col1 > 4325.40) AND ((col0 <= 3916)) OR col3 IN (SELECT col0 FROM tab0 WHERE col3 <= 5542) AND col0 < 1271 AND ((col1 <= 6281.58)) AND col0 >= 1752 AND col0 >= 7029 OR col0 IS NULL OR col4 IN (5103.11,7453.92,1996.85,5264.82,4035.69,6799.29) AND col4 IS NULL OR col0 < 8248 OR col4 >= 9077.78 AND col0 < 7274 AND col3 >= 1505 AND (((col4 IS NULL AND col3 < 3136 AND (((col4 BETWEEN 956.6 AND 2168.6) AND col4 < 4625.60)))) AND col4 > 1726.56) OR (((col0 < 9276 AND (col3 IS NULL AND (((col3 <= 6385)))) OR col4 <= 4263.31)) AND col1 < 4574.33 AND col4 IS NULL AND ((((col1 IN (8683.7) OR (col0 > 6058) OR col1 >= 8619.56)))) AND col4 > 106.20 OR col3 = 6875 OR ((col3 >= 7460) AND col1 >= 8363.47 OR col0 >= 4654) AND col3 BETWEEN 6261 AND 17 AND ((col1 <= 5811.38 AND col3 < 9051)) AND ((col1 <= 6540.68 AND ((col4 IS NULL) AND (col0 < 4414)) AND (col0 < 512))) AND (col3 < 1625) AND col3 = 3594 OR (col3 = 8953) AND col1 < 5977.82 OR col0 > 2380) OR col4 > 9980.64 AND col1 IS NULL AND col0 >= 92 AND (col1 >= 4076.86) AND col3 < 8791 AND col0 IN (4914,8918,6280,2982,783) AND col0 > 5466 OR col0 > 5395 OR col4 >= 7731.4))

statement ok
CREATE VIEW view_3_tab0_786 AS SELECT pk FROM view_1_tab0_786

query II rowsort label-4700-1
SELECT pk, col0 FROM tab0 WHERE ((col1 > 4325.40) AND ((col0 <= 3916)) OR col3 IN (SELECT col0 FROM tab0 WHERE col3 <= 5542) AND col0 < 1271 AND ((col1 <= 6281.58)) AND col0 >= 1752 AND col0 >= 7029 OR col0 IS NULL OR col4 IN (5103.11,7453.92,1996.85,5264.82,4035.69,6799.29) AND col4 IS NULL OR col0 < 8248 OR col4 >= 9077.78 AND col0 < 7274 AND col3 >= 1505 AND (((col4 IS NULL AND col3 < 3136 AND (((col4 BETWEEN 956.6 AND 2168.6) AND col4 < 4625.60)))) AND col4 > 1726.56) OR (((col0 < 9276 AND (col3 IS NULL AND (((col3 <= 6385)))) OR col4 <= 4263.31)) AND col1 < 4574.33 AND col4 IS NULL AND ((((col1 IN (8683.7) OR (col0 > 6058) OR col1 >= 8619.56)))) AND col4 > 106.20 OR col3 = 6875 OR ((col3 >= 7460) AND col1 >= 8363.47 OR col0 >= 4654) AND col3 BETWEEN 6261 AND 17 AND ((col1 <= 5811.38 AND col3 < 9051)) AND ((col1 <= 6540.68 AND ((col4 IS NULL) AND (col0 < 4414)) AND (col0 < 512))) AND (col3 < 1625) AND col3 = 3594 OR (col3 = 8953) AND col1 < 5977.82 OR col0 > 2380) OR col4 > 9980.64 AND col1 IS NULL AND col0 >= 92 AND (col1 >= 4076.86) AND col3 < 8791 AND col0 IN (4914,8918,6280,2982,783) AND col0 > 5466 OR col0 > 5395 OR col4 >= 7731.4)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-4700-2
SELECT pk, col0 FROM tab0 WHERE NOT (((col1 > 4325.40) AND ((col0 <= 3916)) OR col3 IN (SELECT col0 FROM tab0 WHERE col3 <= 5542) AND col0 < 1271 AND ((col1 <= 6281.58)) AND col0 >= 1752 AND col0 >= 7029 OR col0 IS NULL OR col4 IN (5103.11,7453.92,1996.85,5264.82,4035.69,6799.29) AND col4 IS NULL OR col0 < 8248 OR col4 >= 9077.78 AND col0 < 7274 AND col3 >= 1505 AND (((col4 IS NULL AND col3 < 3136 AND (((col4 BETWEEN 956.6 AND 2168.6) AND col4 < 4625.60)))) AND col4 > 1726.56) OR (((col0 < 9276 AND (col3 IS NULL AND (((col3 <= 6385)))) OR col4 <= 4263.31)) AND col1 < 4574.33 AND col4 IS NULL AND ((((col1 IN (8683.7) OR (col0 > 6058) OR col1 >= 8619.56)))) AND col4 > 106.20 OR col3 = 6875 OR ((col3 >= 7460) AND col1 >= 8363.47 OR col0 >= 4654) AND col3 BETWEEN 6261 AND 17 AND ((col1 <= 5811.38 AND col3 < 9051)) AND ((col1 <= 6540.68 AND ((col4 IS NULL) AND (col0 < 4414)) AND (col0 < 512))) AND (col3 < 1625) AND col3 = 3594 OR (col3 = 8953) AND col1 < 5977.82 OR col0 > 2380) OR col4 > 9980.64 AND col1 IS NULL AND col0 >= 92 AND (col1 >= 4076.86) AND col3 < 8791 AND col0 IN (4914,8918,6280,2982,783) AND col0 > 5466 OR col0 > 5395 OR col4 >= 7731.4))
----

query II rowsort label-4700-1
SELECT pk, col0 FROM view_1_tab0_786
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-4700-2
SELECT pk, col0 FROM view_2_tab0_786
----

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE ((col1 > 4325.40) AND ((col0 <= 3916)) OR col3 IN (SELECT col0 FROM tab0 WHERE col3 <= 5542) AND col0 < 1271 AND ((col1 <= 6281.58)) AND col0 >= 1752 AND col0 >= 7029 OR col0 IS NULL OR col4 IN (5103.11,7453.92,1996.85,5264.82,4035.69,6799.29) AND col4 IS NULL OR col0 < 8248 OR col4 >= 9077.78 AND col0 < 7274 AND col3 >= 1505 AND (((col4 IS NULL AND col3 < 3136 AND (((col4 BETWEEN 956.6 AND 2168.6) AND col4 < 4625.60)))) AND col4 > 1726.56) OR (((col0 < 9276 AND (col3 IS NULL AND (((col3 <= 6385)))) OR col4 <= 4263.31)) AND col1 < 4574.33 AND col4 IS NULL AND ((((col1 IN (8683.7) OR (col0 > 6058) OR col1 >= 8619.56)))) AND col4 > 106.20 OR col3 = 6875 OR ((col3 >= 7460) AND col1 >= 8363.47 OR col0 >= 4654) AND col3 BETWEEN 6261 AND 17 AND ((col1 <= 5811.38 AND col3 < 9051)) AND ((col1 <= 6540.68 AND ((col4 IS NULL) AND (col0 < 4414)) AND (col0 < 512))) AND (col3 < 1625) AND col3 = 3594 OR (col3 = 8953) AND col1 < 5977.82 OR col0 > 2380) OR col4 > 9980.64 AND col1 IS NULL AND col0 >= 92 AND (col1 >= 4076.86) AND col3 < 8791 AND col0 IN (4914,8918,6280,2982,783) AND col0 > 5466 OR col0 > 5395 OR col4 >= 7731.4) UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (((col1 > 4325.40) AND ((col0 <= 3916)) OR col3 IN (SELECT col0 FROM tab0 WHERE col3 <= 5542) AND col0 < 1271 AND ((col1 <= 6281.58)) AND col0 >= 1752 AND col0 >= 7029 OR col0 IS NULL OR col4 IN (5103.11,7453.92,1996.85,5264.82,4035.69,6799.29) AND col4 IS NULL OR col0 < 8248 OR col4 >= 9077.78 AND col0 < 7274 AND col3 >= 1505 AND (((col4 IS NULL AND col3 < 3136 AND (((col4 BETWEEN 956.6 AND 2168.6) AND col4 < 4625.60)))) AND col4 > 1726.56) OR (((col0 < 9276 AND (col3 IS NULL AND (((col3 <= 6385)))) OR col4 <= 4263.31)) AND col1 < 4574.33 AND col4 IS NULL AND ((((col1 IN (8683.7) OR (col0 > 6058) OR col1 >= 8619.56)))) AND col4 > 106.20 OR col3 = 6875 OR ((col3 >= 7460) AND col1 >= 8363.47 OR col0 >= 4654) AND col3 BETWEEN 6261 AND 17 AND ((col1 <= 5811.38 AND col3 < 9051)) AND ((col1 <= 6540.68 AND ((col4 IS NULL) AND (col0 < 4414)) AND (col0 < 512))) AND (col3 < 1625) AND col3 = 3594 OR (col3 = 8953) AND col1 < 5977.82 OR col0 > 2380) OR col4 > 9980.64 AND col1 IS NULL AND col0 >= 92 AND (col1 >= 4076.86) AND col3 < 8791 AND col0 IN (4914,8918,6280,2982,783) AND col0 > 5466 OR col0 > 5395 OR col4 >= 7731.4))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_786 UNION ALL SELECT pk, col0 FROM view_2_tab0_786
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE ((col1 > 4325.40) AND ((col0 <= 3916)) OR col3 IN (SELECT col0 FROM tab0 WHERE col3 <= 5542) AND col0 < 1271 AND ((col1 <= 6281.58)) AND col0 >= 1752 AND col0 >= 7029 OR col0 IS NULL OR col4 IN (5103.11,7453.92,1996.85,5264.82,4035.69,6799.29) AND col4 IS NULL OR col0 < 8248 OR col4 >= 9077.78 AND col0 < 7274 AND col3 >= 1505 AND (((col4 IS NULL AND col3 < 3136 AND (((col4 BETWEEN 956.6 AND 2168.6) AND col4 < 4625.60)))) AND col4 > 1726.56) OR (((col0 < 9276 AND (col3 IS NULL AND (((col3 <= 6385)))) OR col4 <= 4263.31)) AND col1 < 4574.33 AND col4 IS NULL AND ((((col1 IN (8683.7) OR (col0 > 6058) OR col1 >= 8619.56)))) AND col4 > 106.20 OR col3 = 6875 OR ((col3 >= 7460) AND col1 >= 8363.47 OR col0 >= 4654) AND col3 BETWEEN 6261 AND 17 AND ((col1 <= 5811.38 AND col3 < 9051)) AND ((col1 <= 6540.68 AND ((col4 IS NULL) AND (col0 < 4414)) AND (col0 < 512))) AND (col3 < 1625) AND col3 = 3594 OR (col3 = 8953) AND col1 < 5977.82 OR col0 > 2380) OR col4 > 9980.64 AND col1 IS NULL AND col0 >= 92 AND (col1 >= 4076.86) AND col3 < 8791 AND col0 IN (4914,8918,6280,2982,783) AND col0 > 5466 OR col0 > 5395 OR col4 >= 7731.4) UNION SELECT pk, col0 FROM tab0 WHERE NOT (((col1 > 4325.40) AND ((col0 <= 3916)) OR col3 IN (SELECT col0 FROM tab0 WHERE col3 <= 5542) AND col0 < 1271 AND ((col1 <= 6281.58)) AND col0 >= 1752 AND col0 >= 7029 OR col0 IS NULL OR col4 IN (5103.11,7453.92,1996.85,5264.82,4035.69,6799.29) AND col4 IS NULL OR col0 < 8248 OR col4 >= 9077.78 AND col0 < 7274 AND col3 >= 1505 AND (((col4 IS NULL AND col3 < 3136 AND (((col4 BETWEEN 956.6 AND 2168.6) AND col4 < 4625.60)))) AND col4 > 1726.56) OR (((col0 < 9276 AND (col3 IS NULL AND (((col3 <= 6385)))) OR col4 <= 4263.31)) AND col1 < 4574.33 AND col4 IS NULL AND ((((col1 IN (8683.7) OR (col0 > 6058) OR col1 >= 8619.56)))) AND col4 > 106.20 OR col3 = 6875 OR ((col3 >= 7460) AND col1 >= 8363.47 OR col0 >= 4654) AND col3 BETWEEN 6261 AND 17 AND ((col1 <= 5811.38 AND col3 < 9051)) AND ((col1 <= 6540.68 AND ((col4 IS NULL) AND (col0 < 4414)) AND (col0 < 512))) AND (col3 < 1625) AND col3 = 3594 OR (col3 = 8953) AND col1 < 5977.82 OR col0 > 2380) OR col4 > 9980.64 AND col1 IS NULL AND col0 >= 92 AND (col1 >= 4076.86) AND col3 < 8791 AND col0 IN (4914,8918,6280,2982,783) AND col0 > 5466 OR col0 > 5395 OR col4 >= 7731.4))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_786 UNION SELECT pk, col0 FROM view_2_tab0_786
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-4700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE ((col1 > 4325.40) AND ((col0 <= 3916)) OR col3 IN (SELECT col0 FROM tab0 WHERE col3 <= 5542) AND col0 < 1271 AND ((col1 <= 6281.58)) AND col0 >= 1752 AND col0 >= 7029 OR col0 IS NULL OR col4 IN (5103.11,7453.92,1996.85,5264.82,4035.69,6799.29) AND col4 IS NULL OR col0 < 8248 OR col4 >= 9077.78 AND col0 < 7274 AND col3 >= 1505 AND (((col4 IS NULL AND col3 < 3136 AND (((col4 BETWEEN 956.6 AND 2168.6) AND col4 < 4625.60)))) AND col4 > 1726.56) OR (((col0 < 9276 AND (col3 IS NULL AND (((col3 <= 6385)))) OR col4 <= 4263.31)) AND col1 < 4574.33 AND col4 IS NULL AND ((((col1 IN (8683.7) OR (col0 > 6058) OR col1 >= 8619.56)))) AND col4 > 106.20 OR col3 = 6875 OR ((col3 >= 7460) AND col1 >= 8363.47 OR col0 >= 4654) AND col3 BETWEEN 6261 AND 17 AND ((col1 <= 5811.38 AND col3 < 9051)) AND ((col1 <= 6540.68 AND ((col4 IS NULL) AND (col0 < 4414)) AND (col0 < 512))) AND (col3 < 1625) AND col3 = 3594 OR (col3 = 8953) AND col1 < 5977.82 OR col0 > 2380) OR col4 > 9980.64 AND col1 IS NULL AND col0 >= 92 AND (col1 >= 4076.86) AND col3 < 8791 AND col0 IN (4914,8918,6280,2982,783) AND col0 > 5466 OR col0 > 5395 OR col4 >= 7731.4) ) AS tab0_786
----
1000 values hashing to 30a3c33f4078cae93230de944dca2ac9

query I rowsort label-4700-3
SELECT * FROM view_3_tab0_786
----
1000 values hashing to 30a3c33f4078cae93230de944dca2ac9

query I rowsort label-4700-3
SELECT pk FROM tab0 WHERE ((col1 > 4325.40) AND ((col0 <= 3916)) OR col3 IN (SELECT col0 FROM tab0 WHERE col3 <= 5542) AND col0 < 1271 AND ((col1 <= 6281.58)) AND col0 >= 1752 AND col0 >= 7029 OR col0 IS NULL OR col4 IN (5103.11,7453.92,1996.85,5264.82,4035.69,6799.29) AND col4 IS NULL OR col0 < 8248 OR col4 >= 9077.78 AND col0 < 7274 AND col3 >= 1505 AND (((col4 IS NULL AND col3 < 3136 AND (((col4 BETWEEN 956.6 AND 2168.6) AND col4 < 4625.60)))) AND col4 > 1726.56) OR (((col0 < 9276 AND (col3 IS NULL AND (((col3 <= 6385)))) OR col4 <= 4263.31)) AND col1 < 4574.33 AND col4 IS NULL AND ((((col1 IN (8683.7) OR (col0 > 6058) OR col1 >= 8619.56)))) AND col4 > 106.20 OR col3 = 6875 OR ((col3 >= 7460) AND col1 >= 8363.47 OR col0 >= 4654) AND col3 BETWEEN 6261 AND 17 AND ((col1 <= 5811.38 AND col3 < 9051)) AND ((col1 <= 6540.68 AND ((col4 IS NULL) AND (col0 < 4414)) AND (col0 < 512))) AND (col3 < 1625) AND col3 = 3594 OR (col3 = 8953) AND col1 < 5977.82 OR col0 > 2380) OR col4 > 9980.64 AND col1 IS NULL AND col0 >= 92 AND (col1 >= 4076.86) AND col3 < 8791 AND col0 IN (4914,8918,6280,2982,783) AND col0 > 5466 OR col0 > 5395 OR col4 >= 7731.4)
----
1000 values hashing to 30a3c33f4078cae93230de944dca2ac9

statement ok
DROP VIEW view_1_tab0_786

statement ok
DROP VIEW view_2_tab0_786

statement ok
DROP VIEW view_3_tab0_786

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_786') DROP VIEW view_1_tab1_786

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_786

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_786') DROP VIEW view_2_tab1_786

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_786

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_786') DROP VIEW view_3_tab1_786

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_786

statement ok
CREATE VIEW view_1_tab1_786 AS SELECT pk, col0 FROM tab1 WHERE ((col1 > 4325.40) AND ((col0 <= 3916)) OR col3 IN (SELECT col0 FROM tab1 WHERE col3 <= 5542) AND col0 < 1271 AND ((col1 <= 6281.58)) AND col0 >= 1752 AND col0 >= 7029 OR col0 IS NULL OR col4 IN (5103.11,7453.92,1996.85,5264.82,4035.69,6799.29) AND col4 IS NULL OR col0 < 8248 OR col4 >= 9077.78 AND col0 < 7274 AND col3 >= 1505 AND (((col4 IS NULL AND col3 < 3136 AND (((col4 BETWEEN 956.6 AND 2168.6) AND col4 < 4625.60)))) AND col4 > 1726.56) OR (((col0 < 9276 AND (col3 IS NULL AND (((col3 <= 6385)))) OR col4 <= 4263.31)) AND col1 < 4574.33 AND col4 IS NULL AND ((((col1 IN (8683.7) OR (col0 > 6058) OR col1 >= 8619.56)))) AND col4 > 106.20 OR col3 = 6875 OR ((col3 >= 7460) AND col1 >= 8363.47 OR col0 >= 4654) AND col3 BETWEEN 6261 AND 17 AND ((col1 <= 5811.38 AND col3 < 9051)) AND ((col1 <= 6540.68 AND ((col4 IS NULL) AND (col0 < 4414)) AND (col0 < 512))) AND (col3 < 1625) AND col3 = 3594 OR (col3 = 8953) AND col1 < 5977.82 OR col0 > 2380) OR col4 > 9980.64 AND col1 IS NULL AND col0 >= 92 AND (col1 >= 4076.86) AND col3 < 8791 AND col0 IN (4914,8918,6280,2982,783) AND col0 > 5466 OR col0 > 5395 OR col4 >= 7731.4)

statement ok
CREATE VIEW view_2_tab1_786 AS SELECT pk, col0 FROM tab1 WHERE NOT (((col1 > 4325.40) AND ((col0 <= 3916)) OR col3 IN (SELECT col0 FROM tab1 WHERE col3 <= 5542) AND col0 < 1271 AND ((col1 <= 6281.58)) AND col0 >= 1752 AND col0 >= 7029 OR col0 IS NULL OR col4 IN (5103.11,7453.92,1996.85,5264.82,4035.69,6799.29) AND col4 IS NULL OR col0 < 8248 OR col4 >= 9077.78 AND col0 < 7274 AND col3 >= 1505 AND (((col4 IS NULL AND col3 < 3136 AND (((col4 BETWEEN 956.6 AND 2168.6) AND col4 < 4625.60)))) AND col4 > 1726.56) OR (((col0 < 9276 AND (col3 IS NULL AND (((col3 <= 6385)))) OR col4 <= 4263.31)) AND col1 < 4574.33 AND col4 IS NULL AND ((((col1 IN (8683.7) OR (col0 > 6058) OR col1 >= 8619.56)))) AND col4 > 106.20 OR col3 = 6875 OR ((col3 >= 7460) AND col1 >= 8363.47 OR col0 >= 4654) AND col3 BETWEEN 6261 AND 17 AND ((col1 <= 5811.38 AND col3 < 9051)) AND ((col1 <= 6540.68 AND ((col4 IS NULL) AND (col0 < 4414)) AND (col0 < 512))) AND (col3 < 1625) AND col3 = 3594 OR (col3 = 8953) AND col1 < 5977.82 OR col0 > 2380) OR col4 > 9980.64 AND col1 IS NULL AND col0 >= 92 AND (col1 >= 4076.86) AND col3 < 8791 AND col0 IN (4914,8918,6280,2982,783) AND col0 > 5466 OR col0 > 5395 OR col4 >= 7731.4))

statement ok
CREATE VIEW view_3_tab1_786 AS SELECT pk FROM view_1_tab1_786

query II rowsort label-4700-1
SELECT pk, col0 FROM tab1 WHERE ((col1 > 4325.40) AND ((col0 <= 3916)) OR col3 IN (SELECT col0 FROM tab1 WHERE col3 <= 5542) AND col0 < 1271 AND ((col1 <= 6281.58)) AND col0 >= 1752 AND col0 >= 7029 OR col0 IS NULL OR col4 IN (5103.11,7453.92,1996.85,5264.82,4035.69,6799.29) AND col4 IS NULL OR col0 < 8248 OR col4 >= 9077.78 AND col0 < 7274 AND col3 >= 1505 AND (((col4 IS NULL AND col3 < 3136 AND (((col4 BETWEEN 956.6 AND 2168.6) AND col4 < 4625.60)))) AND col4 > 1726.56) OR (((col0 < 9276 AND (col3 IS NULL AND (((col3 <= 6385)))) OR col4 <= 4263.31)) AND col1 < 4574.33 AND col4 IS NULL AND ((((col1 IN (8683.7) OR (col0 > 6058) OR col1 >= 8619.56)))) AND col4 > 106.20 OR col3 = 6875 OR ((col3 >= 7460) AND col1 >= 8363.47 OR col0 >= 4654) AND col3 BETWEEN 6261 AND 17 AND ((col1 <= 5811.38 AND col3 < 9051)) AND ((col1 <= 6540.68 AND ((col4 IS NULL) AND (col0 < 4414)) AND (col0 < 512))) AND (col3 < 1625) AND col3 = 3594 OR (col3 = 8953) AND col1 < 5977.82 OR col0 > 2380) OR col4 > 9980.64 AND col1 IS NULL AND col0 >= 92 AND (col1 >= 4076.86) AND col3 < 8791 AND col0 IN (4914,8918,6280,2982,783) AND col0 > 5466 OR col0 > 5395 OR col4 >= 7731.4)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-4700-2
SELECT pk, col0 FROM tab1 WHERE NOT (((col1 > 4325.40) AND ((col0 <= 3916)) OR col3 IN (SELECT col0 FROM tab1 WHERE col3 <= 5542) AND col0 < 1271 AND ((col1 <= 6281.58)) AND col0 >= 1752 AND col0 >= 7029 OR col0 IS NULL OR col4 IN (5103.11,7453.92,1996.85,5264.82,4035.69,6799.29) AND col4 IS NULL OR col0 < 8248 OR col4 >= 9077.78 AND col0 < 7274 AND col3 >= 1505 AND (((col4 IS NULL AND col3 < 3136 AND (((col4 BETWEEN 956.6 AND 2168.6) AND col4 < 4625.60)))) AND col4 > 1726.56) OR (((col0 < 9276 AND (col3 IS NULL AND (((col3 <= 6385)))) OR col4 <= 4263.31)) AND col1 < 4574.33 AND col4 IS NULL AND ((((col1 IN (8683.7) OR (col0 > 6058) OR col1 >= 8619.56)))) AND col4 > 106.20 OR col3 = 6875 OR ((col3 >= 7460) AND col1 >= 8363.47 OR col0 >= 4654) AND col3 BETWEEN 6261 AND 17 AND ((col1 <= 5811.38 AND col3 < 9051)) AND ((col1 <= 6540.68 AND ((col4 IS NULL) AND (col0 < 4414)) AND (col0 < 512))) AND (col3 < 1625) AND col3 = 3594 OR (col3 = 8953) AND col1 < 5977.82 OR col0 > 2380) OR col4 > 9980.64 AND col1 IS NULL AND col0 >= 92 AND (col1 >= 4076.86) AND col3 < 8791 AND col0 IN (4914,8918,6280,2982,783) AND col0 > 5466 OR col0 > 5395 OR col4 >= 7731.4))
----

query II rowsort label-4700-1
SELECT pk, col0 FROM view_1_tab1_786
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-4700-2
SELECT pk, col0 FROM view_2_tab1_786
----

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE ((col1 > 4325.40) AND ((col0 <= 3916)) OR col3 IN (SELECT col0 FROM tab1 WHERE col3 <= 5542) AND col0 < 1271 AND ((col1 <= 6281.58)) AND col0 >= 1752 AND col0 >= 7029 OR col0 IS NULL OR col4 IN (5103.11,7453.92,1996.85,5264.82,4035.69,6799.29) AND col4 IS NULL OR col0 < 8248 OR col4 >= 9077.78 AND col0 < 7274 AND col3 >= 1505 AND (((col4 IS NULL AND col3 < 3136 AND (((col4 BETWEEN 956.6 AND 2168.6) AND col4 < 4625.60)))) AND col4 > 1726.56) OR (((col0 < 9276 AND (col3 IS NULL AND (((col3 <= 6385)))) OR col4 <= 4263.31)) AND col1 < 4574.33 AND col4 IS NULL AND ((((col1 IN (8683.7) OR (col0 > 6058) OR col1 >= 8619.56)))) AND col4 > 106.20 OR col3 = 6875 OR ((col3 >= 7460) AND col1 >= 8363.47 OR col0 >= 4654) AND col3 BETWEEN 6261 AND 17 AND ((col1 <= 5811.38 AND col3 < 9051)) AND ((col1 <= 6540.68 AND ((col4 IS NULL) AND (col0 < 4414)) AND (col0 < 512))) AND (col3 < 1625) AND col3 = 3594 OR (col3 = 8953) AND col1 < 5977.82 OR col0 > 2380) OR col4 > 9980.64 AND col1 IS NULL AND col0 >= 92 AND (col1 >= 4076.86) AND col3 < 8791 AND col0 IN (4914,8918,6280,2982,783) AND col0 > 5466 OR col0 > 5395 OR col4 >= 7731.4) UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (((col1 > 4325.40) AND ((col0 <= 3916)) OR col3 IN (SELECT col0 FROM tab1 WHERE col3 <= 5542) AND col0 < 1271 AND ((col1 <= 6281.58)) AND col0 >= 1752 AND col0 >= 7029 OR col0 IS NULL OR col4 IN (5103.11,7453.92,1996.85,5264.82,4035.69,6799.29) AND col4 IS NULL OR col0 < 8248 OR col4 >= 9077.78 AND col0 < 7274 AND col3 >= 1505 AND (((col4 IS NULL AND col3 < 3136 AND (((col4 BETWEEN 956.6 AND 2168.6) AND col4 < 4625.60)))) AND col4 > 1726.56) OR (((col0 < 9276 AND (col3 IS NULL AND (((col3 <= 6385)))) OR col4 <= 4263.31)) AND col1 < 4574.33 AND col4 IS NULL AND ((((col1 IN (8683.7) OR (col0 > 6058) OR col1 >= 8619.56)))) AND col4 > 106.20 OR col3 = 6875 OR ((col3 >= 7460) AND col1 >= 8363.47 OR col0 >= 4654) AND col3 BETWEEN 6261 AND 17 AND ((col1 <= 5811.38 AND col3 < 9051)) AND ((col1 <= 6540.68 AND ((col4 IS NULL) AND (col0 < 4414)) AND (col0 < 512))) AND (col3 < 1625) AND col3 = 3594 OR (col3 = 8953) AND col1 < 5977.82 OR col0 > 2380) OR col4 > 9980.64 AND col1 IS NULL AND col0 >= 92 AND (col1 >= 4076.86) AND col3 < 8791 AND col0 IN (4914,8918,6280,2982,783) AND col0 > 5466 OR col0 > 5395 OR col4 >= 7731.4))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_786 UNION ALL SELECT pk, col0 FROM view_2_tab1_786
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE ((col1 > 4325.40) AND ((col0 <= 3916)) OR col3 IN (SELECT col0 FROM tab1 WHERE col3 <= 5542) AND col0 < 1271 AND ((col1 <= 6281.58)) AND col0 >= 1752 AND col0 >= 7029 OR col0 IS NULL OR col4 IN (5103.11,7453.92,1996.85,5264.82,4035.69,6799.29) AND col4 IS NULL OR col0 < 8248 OR col4 >= 9077.78 AND col0 < 7274 AND col3 >= 1505 AND (((col4 IS NULL AND col3 < 3136 AND (((col4 BETWEEN 956.6 AND 2168.6) AND col4 < 4625.60)))) AND col4 > 1726.56) OR (((col0 < 9276 AND (col3 IS NULL AND (((col3 <= 6385)))) OR col4 <= 4263.31)) AND col1 < 4574.33 AND col4 IS NULL AND ((((col1 IN (8683.7) OR (col0 > 6058) OR col1 >= 8619.56)))) AND col4 > 106.20 OR col3 = 6875 OR ((col3 >= 7460) AND col1 >= 8363.47 OR col0 >= 4654) AND col3 BETWEEN 6261 AND 17 AND ((col1 <= 5811.38 AND col3 < 9051)) AND ((col1 <= 6540.68 AND ((col4 IS NULL) AND (col0 < 4414)) AND (col0 < 512))) AND (col3 < 1625) AND col3 = 3594 OR (col3 = 8953) AND col1 < 5977.82 OR col0 > 2380) OR col4 > 9980.64 AND col1 IS NULL AND col0 >= 92 AND (col1 >= 4076.86) AND col3 < 8791 AND col0 IN (4914,8918,6280,2982,783) AND col0 > 5466 OR col0 > 5395 OR col4 >= 7731.4) UNION SELECT pk, col0 FROM tab1 WHERE NOT (((col1 > 4325.40) AND ((col0 <= 3916)) OR col3 IN (SELECT col0 FROM tab1 WHERE col3 <= 5542) AND col0 < 1271 AND ((col1 <= 6281.58)) AND col0 >= 1752 AND col0 >= 7029 OR col0 IS NULL OR col4 IN (5103.11,7453.92,1996.85,5264.82,4035.69,6799.29) AND col4 IS NULL OR col0 < 8248 OR col4 >= 9077.78 AND col0 < 7274 AND col3 >= 1505 AND (((col4 IS NULL AND col3 < 3136 AND (((col4 BETWEEN 956.6 AND 2168.6) AND col4 < 4625.60)))) AND col4 > 1726.56) OR (((col0 < 9276 AND (col3 IS NULL AND (((col3 <= 6385)))) OR col4 <= 4263.31)) AND col1 < 4574.33 AND col4 IS NULL AND ((((col1 IN (8683.7) OR (col0 > 6058) OR col1 >= 8619.56)))) AND col4 > 106.20 OR col3 = 6875 OR ((col3 >= 7460) AND col1 >= 8363.47 OR col0 >= 4654) AND col3 BETWEEN 6261 AND 17 AND ((col1 <= 5811.38 AND col3 < 9051)) AND ((col1 <= 6540.68 AND ((col4 IS NULL) AND (col0 < 4414)) AND (col0 < 512))) AND (col3 < 1625) AND col3 = 3594 OR (col3 = 8953) AND col1 < 5977.82 OR col0 > 2380) OR col4 > 9980.64 AND col1 IS NULL AND col0 >= 92 AND (col1 >= 4076.86) AND col3 < 8791 AND col0 IN (4914,8918,6280,2982,783) AND col0 > 5466 OR col0 > 5395 OR col4 >= 7731.4))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_786 UNION SELECT pk, col0 FROM view_2_tab1_786
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-4700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE ((col1 > 4325.40) AND ((col0 <= 3916)) OR col3 IN (SELECT col0 FROM tab1 WHERE col3 <= 5542) AND col0 < 1271 AND ((col1 <= 6281.58)) AND col0 >= 1752 AND col0 >= 7029 OR col0 IS NULL OR col4 IN (5103.11,7453.92,1996.85,5264.82,4035.69,6799.29) AND col4 IS NULL OR col0 < 8248 OR col4 >= 9077.78 AND col0 < 7274 AND col3 >= 1505 AND (((col4 IS NULL AND col3 < 3136 AND (((col4 BETWEEN 956.6 AND 2168.6) AND col4 < 4625.60)))) AND col4 > 1726.56) OR (((col0 < 9276 AND (col3 IS NULL AND (((col3 <= 6385)))) OR col4 <= 4263.31)) AND col1 < 4574.33 AND col4 IS NULL AND ((((col1 IN (8683.7) OR (col0 > 6058) OR col1 >= 8619.56)))) AND col4 > 106.20 OR col3 = 6875 OR ((col3 >= 7460) AND col1 >= 8363.47 OR col0 >= 4654) AND col3 BETWEEN 6261 AND 17 AND ((col1 <= 5811.38 AND col3 < 9051)) AND ((col1 <= 6540.68 AND ((col4 IS NULL) AND (col0 < 4414)) AND (col0 < 512))) AND (col3 < 1625) AND col3 = 3594 OR (col3 = 8953) AND col1 < 5977.82 OR col0 > 2380) OR col4 > 9980.64 AND col1 IS NULL AND col0 >= 92 AND (col1 >= 4076.86) AND col3 < 8791 AND col0 IN (4914,8918,6280,2982,783) AND col0 > 5466 OR col0 > 5395 OR col4 >= 7731.4) ) AS tab1_786
----
1000 values hashing to 30a3c33f4078cae93230de944dca2ac9

query I rowsort label-4700-3
SELECT * FROM view_3_tab1_786
----
1000 values hashing to 30a3c33f4078cae93230de944dca2ac9

query I rowsort label-4700-3
SELECT pk FROM tab1 WHERE ((col1 > 4325.40) AND ((col0 <= 3916)) OR col3 IN (SELECT col0 FROM tab1 WHERE col3 <= 5542) AND col0 < 1271 AND ((col1 <= 6281.58)) AND col0 >= 1752 AND col0 >= 7029 OR col0 IS NULL OR col4 IN (5103.11,7453.92,1996.85,5264.82,4035.69,6799.29) AND col4 IS NULL OR col0 < 8248 OR col4 >= 9077.78 AND col0 < 7274 AND col3 >= 1505 AND (((col4 IS NULL AND col3 < 3136 AND (((col4 BETWEEN 956.6 AND 2168.6) AND col4 < 4625.60)))) AND col4 > 1726.56) OR (((col0 < 9276 AND (col3 IS NULL AND (((col3 <= 6385)))) OR col4 <= 4263.31)) AND col1 < 4574.33 AND col4 IS NULL AND ((((col1 IN (8683.7) OR (col0 > 6058) OR col1 >= 8619.56)))) AND col4 > 106.20 OR col3 = 6875 OR ((col3 >= 7460) AND col1 >= 8363.47 OR col0 >= 4654) AND col3 BETWEEN 6261 AND 17 AND ((col1 <= 5811.38 AND col3 < 9051)) AND ((col1 <= 6540.68 AND ((col4 IS NULL) AND (col0 < 4414)) AND (col0 < 512))) AND (col3 < 1625) AND col3 = 3594 OR (col3 = 8953) AND col1 < 5977.82 OR col0 > 2380) OR col4 > 9980.64 AND col1 IS NULL AND col0 >= 92 AND (col1 >= 4076.86) AND col3 < 8791 AND col0 IN (4914,8918,6280,2982,783) AND col0 > 5466 OR col0 > 5395 OR col4 >= 7731.4)
----
1000 values hashing to 30a3c33f4078cae93230de944dca2ac9

statement ok
DROP VIEW view_1_tab1_786

statement ok
DROP VIEW view_2_tab1_786

statement ok
DROP VIEW view_3_tab1_786

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_786') DROP VIEW view_1_tab2_786

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_786

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_786') DROP VIEW view_2_tab2_786

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_786

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_786') DROP VIEW view_3_tab2_786

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_786

statement ok
CREATE VIEW view_1_tab2_786 AS SELECT pk, col0 FROM tab2 WHERE ((col1 > 4325.40) AND ((col0 <= 3916)) OR col3 IN (SELECT col0 FROM tab2 WHERE col3 <= 5542) AND col0 < 1271 AND ((col1 <= 6281.58)) AND col0 >= 1752 AND col0 >= 7029 OR col0 IS NULL OR col4 IN (5103.11,7453.92,1996.85,5264.82,4035.69,6799.29) AND col4 IS NULL OR col0 < 8248 OR col4 >= 9077.78 AND col0 < 7274 AND col3 >= 1505 AND (((col4 IS NULL AND col3 < 3136 AND (((col4 BETWEEN 956.6 AND 2168.6) AND col4 < 4625.60)))) AND col4 > 1726.56) OR (((col0 < 9276 AND (col3 IS NULL AND (((col3 <= 6385)))) OR col4 <= 4263.31)) AND col1 < 4574.33 AND col4 IS NULL AND ((((col1 IN (8683.7) OR (col0 > 6058) OR col1 >= 8619.56)))) AND col4 > 106.20 OR col3 = 6875 OR ((col3 >= 7460) AND col1 >= 8363.47 OR col0 >= 4654) AND col3 BETWEEN 6261 AND 17 AND ((col1 <= 5811.38 AND col3 < 9051)) AND ((col1 <= 6540.68 AND ((col4 IS NULL) AND (col0 < 4414)) AND (col0 < 512))) AND (col3 < 1625) AND col3 = 3594 OR (col3 = 8953) AND col1 < 5977.82 OR col0 > 2380) OR col4 > 9980.64 AND col1 IS NULL AND col0 >= 92 AND (col1 >= 4076.86) AND col3 < 8791 AND col0 IN (4914,8918,6280,2982,783) AND col0 > 5466 OR col0 > 5395 OR col4 >= 7731.4)

statement ok
CREATE VIEW view_2_tab2_786 AS SELECT pk, col0 FROM tab2 WHERE NOT (((col1 > 4325.40) AND ((col0 <= 3916)) OR col3 IN (SELECT col0 FROM tab2 WHERE col3 <= 5542) AND col0 < 1271 AND ((col1 <= 6281.58)) AND col0 >= 1752 AND col0 >= 7029 OR col0 IS NULL OR col4 IN (5103.11,7453.92,1996.85,5264.82,4035.69,6799.29) AND col4 IS NULL OR col0 < 8248 OR col4 >= 9077.78 AND col0 < 7274 AND col3 >= 1505 AND (((col4 IS NULL AND col3 < 3136 AND (((col4 BETWEEN 956.6 AND 2168.6) AND col4 < 4625.60)))) AND col4 > 1726.56) OR (((col0 < 9276 AND (col3 IS NULL AND (((col3 <= 6385)))) OR col4 <= 4263.31)) AND col1 < 4574.33 AND col4 IS NULL AND ((((col1 IN (8683.7) OR (col0 > 6058) OR col1 >= 8619.56)))) AND col4 > 106.20 OR col3 = 6875 OR ((col3 >= 7460) AND col1 >= 8363.47 OR col0 >= 4654) AND col3 BETWEEN 6261 AND 17 AND ((col1 <= 5811.38 AND col3 < 9051)) AND ((col1 <= 6540.68 AND ((col4 IS NULL) AND (col0 < 4414)) AND (col0 < 512))) AND (col3 < 1625) AND col3 = 3594 OR (col3 = 8953) AND col1 < 5977.82 OR col0 > 2380) OR col4 > 9980.64 AND col1 IS NULL AND col0 >= 92 AND (col1 >= 4076.86) AND col3 < 8791 AND col0 IN (4914,8918,6280,2982,783) AND col0 > 5466 OR col0 > 5395 OR col4 >= 7731.4))

statement ok
CREATE VIEW view_3_tab2_786 AS SELECT pk FROM view_1_tab2_786

query II rowsort label-4700-1
SELECT pk, col0 FROM tab2 WHERE ((col1 > 4325.40) AND ((col0 <= 3916)) OR col3 IN (SELECT col0 FROM tab2 WHERE col3 <= 5542) AND col0 < 1271 AND ((col1 <= 6281.58)) AND col0 >= 1752 AND col0 >= 7029 OR col0 IS NULL OR col4 IN (5103.11,7453.92,1996.85,5264.82,4035.69,6799.29) AND col4 IS NULL OR col0 < 8248 OR col4 >= 9077.78 AND col0 < 7274 AND col3 >= 1505 AND (((col4 IS NULL AND col3 < 3136 AND (((col4 BETWEEN 956.6 AND 2168.6) AND col4 < 4625.60)))) AND col4 > 1726.56) OR (((col0 < 9276 AND (col3 IS NULL AND (((col3 <= 6385)))) OR col4 <= 4263.31)) AND col1 < 4574.33 AND col4 IS NULL AND ((((col1 IN (8683.7) OR (col0 > 6058) OR col1 >= 8619.56)))) AND col4 > 106.20 OR col3 = 6875 OR ((col3 >= 7460) AND col1 >= 8363.47 OR col0 >= 4654) AND col3 BETWEEN 6261 AND 17 AND ((col1 <= 5811.38 AND col3 < 9051)) AND ((col1 <= 6540.68 AND ((col4 IS NULL) AND (col0 < 4414)) AND (col0 < 512))) AND (col3 < 1625) AND col3 = 3594 OR (col3 = 8953) AND col1 < 5977.82 OR col0 > 2380) OR col4 > 9980.64 AND col1 IS NULL AND col0 >= 92 AND (col1 >= 4076.86) AND col3 < 8791 AND col0 IN (4914,8918,6280,2982,783) AND col0 > 5466 OR col0 > 5395 OR col4 >= 7731.4)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-4700-2
SELECT pk, col0 FROM tab2 WHERE NOT (((col1 > 4325.40) AND ((col0 <= 3916)) OR col3 IN (SELECT col0 FROM tab2 WHERE col3 <= 5542) AND col0 < 1271 AND ((col1 <= 6281.58)) AND col0 >= 1752 AND col0 >= 7029 OR col0 IS NULL OR col4 IN (5103.11,7453.92,1996.85,5264.82,4035.69,6799.29) AND col4 IS NULL OR col0 < 8248 OR col4 >= 9077.78 AND col0 < 7274 AND col3 >= 1505 AND (((col4 IS NULL AND col3 < 3136 AND (((col4 BETWEEN 956.6 AND 2168.6) AND col4 < 4625.60)))) AND col4 > 1726.56) OR (((col0 < 9276 AND (col3 IS NULL AND (((col3 <= 6385)))) OR col4 <= 4263.31)) AND col1 < 4574.33 AND col4 IS NULL AND ((((col1 IN (8683.7) OR (col0 > 6058) OR col1 >= 8619.56)))) AND col4 > 106.20 OR col3 = 6875 OR ((col3 >= 7460) AND col1 >= 8363.47 OR col0 >= 4654) AND col3 BETWEEN 6261 AND 17 AND ((col1 <= 5811.38 AND col3 < 9051)) AND ((col1 <= 6540.68 AND ((col4 IS NULL) AND (col0 < 4414)) AND (col0 < 512))) AND (col3 < 1625) AND col3 = 3594 OR (col3 = 8953) AND col1 < 5977.82 OR col0 > 2380) OR col4 > 9980.64 AND col1 IS NULL AND col0 >= 92 AND (col1 >= 4076.86) AND col3 < 8791 AND col0 IN (4914,8918,6280,2982,783) AND col0 > 5466 OR col0 > 5395 OR col4 >= 7731.4))
----

query II rowsort label-4700-1
SELECT pk, col0 FROM view_1_tab2_786
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-4700-2
SELECT pk, col0 FROM view_2_tab2_786
----

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE ((col1 > 4325.40) AND ((col0 <= 3916)) OR col3 IN (SELECT col0 FROM tab2 WHERE col3 <= 5542) AND col0 < 1271 AND ((col1 <= 6281.58)) AND col0 >= 1752 AND col0 >= 7029 OR col0 IS NULL OR col4 IN (5103.11,7453.92,1996.85,5264.82,4035.69,6799.29) AND col4 IS NULL OR col0 < 8248 OR col4 >= 9077.78 AND col0 < 7274 AND col3 >= 1505 AND (((col4 IS NULL AND col3 < 3136 AND (((col4 BETWEEN 956.6 AND 2168.6) AND col4 < 4625.60)))) AND col4 > 1726.56) OR (((col0 < 9276 AND (col3 IS NULL AND (((col3 <= 6385)))) OR col4 <= 4263.31)) AND col1 < 4574.33 AND col4 IS NULL AND ((((col1 IN (8683.7) OR (col0 > 6058) OR col1 >= 8619.56)))) AND col4 > 106.20 OR col3 = 6875 OR ((col3 >= 7460) AND col1 >= 8363.47 OR col0 >= 4654) AND col3 BETWEEN 6261 AND 17 AND ((col1 <= 5811.38 AND col3 < 9051)) AND ((col1 <= 6540.68 AND ((col4 IS NULL) AND (col0 < 4414)) AND (col0 < 512))) AND (col3 < 1625) AND col3 = 3594 OR (col3 = 8953) AND col1 < 5977.82 OR col0 > 2380) OR col4 > 9980.64 AND col1 IS NULL AND col0 >= 92 AND (col1 >= 4076.86) AND col3 < 8791 AND col0 IN (4914,8918,6280,2982,783) AND col0 > 5466 OR col0 > 5395 OR col4 >= 7731.4) UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (((col1 > 4325.40) AND ((col0 <= 3916)) OR col3 IN (SELECT col0 FROM tab2 WHERE col3 <= 5542) AND col0 < 1271 AND ((col1 <= 6281.58)) AND col0 >= 1752 AND col0 >= 7029 OR col0 IS NULL OR col4 IN (5103.11,7453.92,1996.85,5264.82,4035.69,6799.29) AND col4 IS NULL OR col0 < 8248 OR col4 >= 9077.78 AND col0 < 7274 AND col3 >= 1505 AND (((col4 IS NULL AND col3 < 3136 AND (((col4 BETWEEN 956.6 AND 2168.6) AND col4 < 4625.60)))) AND col4 > 1726.56) OR (((col0 < 9276 AND (col3 IS NULL AND (((col3 <= 6385)))) OR col4 <= 4263.31)) AND col1 < 4574.33 AND col4 IS NULL AND ((((col1 IN (8683.7) OR (col0 > 6058) OR col1 >= 8619.56)))) AND col4 > 106.20 OR col3 = 6875 OR ((col3 >= 7460) AND col1 >= 8363.47 OR col0 >= 4654) AND col3 BETWEEN 6261 AND 17 AND ((col1 <= 5811.38 AND col3 < 9051)) AND ((col1 <= 6540.68 AND ((col4 IS NULL) AND (col0 < 4414)) AND (col0 < 512))) AND (col3 < 1625) AND col3 = 3594 OR (col3 = 8953) AND col1 < 5977.82 OR col0 > 2380) OR col4 > 9980.64 AND col1 IS NULL AND col0 >= 92 AND (col1 >= 4076.86) AND col3 < 8791 AND col0 IN (4914,8918,6280,2982,783) AND col0 > 5466 OR col0 > 5395 OR col4 >= 7731.4))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_786 UNION ALL SELECT pk, col0 FROM view_2_tab2_786
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE ((col1 > 4325.40) AND ((col0 <= 3916)) OR col3 IN (SELECT col0 FROM tab2 WHERE col3 <= 5542) AND col0 < 1271 AND ((col1 <= 6281.58)) AND col0 >= 1752 AND col0 >= 7029 OR col0 IS NULL OR col4 IN (5103.11,7453.92,1996.85,5264.82,4035.69,6799.29) AND col4 IS NULL OR col0 < 8248 OR col4 >= 9077.78 AND col0 < 7274 AND col3 >= 1505 AND (((col4 IS NULL AND col3 < 3136 AND (((col4 BETWEEN 956.6 AND 2168.6) AND col4 < 4625.60)))) AND col4 > 1726.56) OR (((col0 < 9276 AND (col3 IS NULL AND (((col3 <= 6385)))) OR col4 <= 4263.31)) AND col1 < 4574.33 AND col4 IS NULL AND ((((col1 IN (8683.7) OR (col0 > 6058) OR col1 >= 8619.56)))) AND col4 > 106.20 OR col3 = 6875 OR ((col3 >= 7460) AND col1 >= 8363.47 OR col0 >= 4654) AND col3 BETWEEN 6261 AND 17 AND ((col1 <= 5811.38 AND col3 < 9051)) AND ((col1 <= 6540.68 AND ((col4 IS NULL) AND (col0 < 4414)) AND (col0 < 512))) AND (col3 < 1625) AND col3 = 3594 OR (col3 = 8953) AND col1 < 5977.82 OR col0 > 2380) OR col4 > 9980.64 AND col1 IS NULL AND col0 >= 92 AND (col1 >= 4076.86) AND col3 < 8791 AND col0 IN (4914,8918,6280,2982,783) AND col0 > 5466 OR col0 > 5395 OR col4 >= 7731.4) UNION SELECT pk, col0 FROM tab2 WHERE NOT (((col1 > 4325.40) AND ((col0 <= 3916)) OR col3 IN (SELECT col0 FROM tab2 WHERE col3 <= 5542) AND col0 < 1271 AND ((col1 <= 6281.58)) AND col0 >= 1752 AND col0 >= 7029 OR col0 IS NULL OR col4 IN (5103.11,7453.92,1996.85,5264.82,4035.69,6799.29) AND col4 IS NULL OR col0 < 8248 OR col4 >= 9077.78 AND col0 < 7274 AND col3 >= 1505 AND (((col4 IS NULL AND col3 < 3136 AND (((col4 BETWEEN 956.6 AND 2168.6) AND col4 < 4625.60)))) AND col4 > 1726.56) OR (((col0 < 9276 AND (col3 IS NULL AND (((col3 <= 6385)))) OR col4 <= 4263.31)) AND col1 < 4574.33 AND col4 IS NULL AND ((((col1 IN (8683.7) OR (col0 > 6058) OR col1 >= 8619.56)))) AND col4 > 106.20 OR col3 = 6875 OR ((col3 >= 7460) AND col1 >= 8363.47 OR col0 >= 4654) AND col3 BETWEEN 6261 AND 17 AND ((col1 <= 5811.38 AND col3 < 9051)) AND ((col1 <= 6540.68 AND ((col4 IS NULL) AND (col0 < 4414)) AND (col0 < 512))) AND (col3 < 1625) AND col3 = 3594 OR (col3 = 8953) AND col1 < 5977.82 OR col0 > 2380) OR col4 > 9980.64 AND col1 IS NULL AND col0 >= 92 AND (col1 >= 4076.86) AND col3 < 8791 AND col0 IN (4914,8918,6280,2982,783) AND col0 > 5466 OR col0 > 5395 OR col4 >= 7731.4))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_786 UNION SELECT pk, col0 FROM view_2_tab2_786
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-4700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE ((col1 > 4325.40) AND ((col0 <= 3916)) OR col3 IN (SELECT col0 FROM tab2 WHERE col3 <= 5542) AND col0 < 1271 AND ((col1 <= 6281.58)) AND col0 >= 1752 AND col0 >= 7029 OR col0 IS NULL OR col4 IN (5103.11,7453.92,1996.85,5264.82,4035.69,6799.29) AND col4 IS NULL OR col0 < 8248 OR col4 >= 9077.78 AND col0 < 7274 AND col3 >= 1505 AND (((col4 IS NULL AND col3 < 3136 AND (((col4 BETWEEN 956.6 AND 2168.6) AND col4 < 4625.60)))) AND col4 > 1726.56) OR (((col0 < 9276 AND (col3 IS NULL AND (((col3 <= 6385)))) OR col4 <= 4263.31)) AND col1 < 4574.33 AND col4 IS NULL AND ((((col1 IN (8683.7) OR (col0 > 6058) OR col1 >= 8619.56)))) AND col4 > 106.20 OR col3 = 6875 OR ((col3 >= 7460) AND col1 >= 8363.47 OR col0 >= 4654) AND col3 BETWEEN 6261 AND 17 AND ((col1 <= 5811.38 AND col3 < 9051)) AND ((col1 <= 6540.68 AND ((col4 IS NULL) AND (col0 < 4414)) AND (col0 < 512))) AND (col3 < 1625) AND col3 = 3594 OR (col3 = 8953) AND col1 < 5977.82 OR col0 > 2380) OR col4 > 9980.64 AND col1 IS NULL AND col0 >= 92 AND (col1 >= 4076.86) AND col3 < 8791 AND col0 IN (4914,8918,6280,2982,783) AND col0 > 5466 OR col0 > 5395 OR col4 >= 7731.4) ) AS tab2_786
----
1000 values hashing to 30a3c33f4078cae93230de944dca2ac9

query I rowsort label-4700-3
SELECT * FROM view_3_tab2_786
----
1000 values hashing to 30a3c33f4078cae93230de944dca2ac9

query I rowsort label-4700-3
SELECT pk FROM tab2 WHERE ((col1 > 4325.40) AND ((col0 <= 3916)) OR col3 IN (SELECT col0 FROM tab2 WHERE col3 <= 5542) AND col0 < 1271 AND ((col1 <= 6281.58)) AND col0 >= 1752 AND col0 >= 7029 OR col0 IS NULL OR col4 IN (5103.11,7453.92,1996.85,5264.82,4035.69,6799.29) AND col4 IS NULL OR col0 < 8248 OR col4 >= 9077.78 AND col0 < 7274 AND col3 >= 1505 AND (((col4 IS NULL AND col3 < 3136 AND (((col4 BETWEEN 956.6 AND 2168.6) AND col4 < 4625.60)))) AND col4 > 1726.56) OR (((col0 < 9276 AND (col3 IS NULL AND (((col3 <= 6385)))) OR col4 <= 4263.31)) AND col1 < 4574.33 AND col4 IS NULL AND ((((col1 IN (8683.7) OR (col0 > 6058) OR col1 >= 8619.56)))) AND col4 > 106.20 OR col3 = 6875 OR ((col3 >= 7460) AND col1 >= 8363.47 OR col0 >= 4654) AND col3 BETWEEN 6261 AND 17 AND ((col1 <= 5811.38 AND col3 < 9051)) AND ((col1 <= 6540.68 AND ((col4 IS NULL) AND (col0 < 4414)) AND (col0 < 512))) AND (col3 < 1625) AND col3 = 3594 OR (col3 = 8953) AND col1 < 5977.82 OR col0 > 2380) OR col4 > 9980.64 AND col1 IS NULL AND col0 >= 92 AND (col1 >= 4076.86) AND col3 < 8791 AND col0 IN (4914,8918,6280,2982,783) AND col0 > 5466 OR col0 > 5395 OR col4 >= 7731.4)
----
1000 values hashing to 30a3c33f4078cae93230de944dca2ac9

statement ok
DROP VIEW view_1_tab2_786

statement ok
DROP VIEW view_2_tab2_786

statement ok
DROP VIEW view_3_tab2_786

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_786') DROP VIEW view_1_tab3_786

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_786

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_786') DROP VIEW view_2_tab3_786

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_786

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_786') DROP VIEW view_3_tab3_786

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_786

statement ok
CREATE VIEW view_1_tab3_786 AS SELECT pk, col0 FROM tab3 WHERE ((col1 > 4325.40) AND ((col0 <= 3916)) OR col3 IN (SELECT col0 FROM tab3 WHERE col3 <= 5542) AND col0 < 1271 AND ((col1 <= 6281.58)) AND col0 >= 1752 AND col0 >= 7029 OR col0 IS NULL OR col4 IN (5103.11,7453.92,1996.85,5264.82,4035.69,6799.29) AND col4 IS NULL OR col0 < 8248 OR col4 >= 9077.78 AND col0 < 7274 AND col3 >= 1505 AND (((col4 IS NULL AND col3 < 3136 AND (((col4 BETWEEN 956.6 AND 2168.6) AND col4 < 4625.60)))) AND col4 > 1726.56) OR (((col0 < 9276 AND (col3 IS NULL AND (((col3 <= 6385)))) OR col4 <= 4263.31)) AND col1 < 4574.33 AND col4 IS NULL AND ((((col1 IN (8683.7) OR (col0 > 6058) OR col1 >= 8619.56)))) AND col4 > 106.20 OR col3 = 6875 OR ((col3 >= 7460) AND col1 >= 8363.47 OR col0 >= 4654) AND col3 BETWEEN 6261 AND 17 AND ((col1 <= 5811.38 AND col3 < 9051)) AND ((col1 <= 6540.68 AND ((col4 IS NULL) AND (col0 < 4414)) AND (col0 < 512))) AND (col3 < 1625) AND col3 = 3594 OR (col3 = 8953) AND col1 < 5977.82 OR col0 > 2380) OR col4 > 9980.64 AND col1 IS NULL AND col0 >= 92 AND (col1 >= 4076.86) AND col3 < 8791 AND col0 IN (4914,8918,6280,2982,783) AND col0 > 5466 OR col0 > 5395 OR col4 >= 7731.4)

statement ok
CREATE VIEW view_2_tab3_786 AS SELECT pk, col0 FROM tab3 WHERE NOT (((col1 > 4325.40) AND ((col0 <= 3916)) OR col3 IN (SELECT col0 FROM tab3 WHERE col3 <= 5542) AND col0 < 1271 AND ((col1 <= 6281.58)) AND col0 >= 1752 AND col0 >= 7029 OR col0 IS NULL OR col4 IN (5103.11,7453.92,1996.85,5264.82,4035.69,6799.29) AND col4 IS NULL OR col0 < 8248 OR col4 >= 9077.78 AND col0 < 7274 AND col3 >= 1505 AND (((col4 IS NULL AND col3 < 3136 AND (((col4 BETWEEN 956.6 AND 2168.6) AND col4 < 4625.60)))) AND col4 > 1726.56) OR (((col0 < 9276 AND (col3 IS NULL AND (((col3 <= 6385)))) OR col4 <= 4263.31)) AND col1 < 4574.33 AND col4 IS NULL AND ((((col1 IN (8683.7) OR (col0 > 6058) OR col1 >= 8619.56)))) AND col4 > 106.20 OR col3 = 6875 OR ((col3 >= 7460) AND col1 >= 8363.47 OR col0 >= 4654) AND col3 BETWEEN 6261 AND 17 AND ((col1 <= 5811.38 AND col3 < 9051)) AND ((col1 <= 6540.68 AND ((col4 IS NULL) AND (col0 < 4414)) AND (col0 < 512))) AND (col3 < 1625) AND col3 = 3594 OR (col3 = 8953) AND col1 < 5977.82 OR col0 > 2380) OR col4 > 9980.64 AND col1 IS NULL AND col0 >= 92 AND (col1 >= 4076.86) AND col3 < 8791 AND col0 IN (4914,8918,6280,2982,783) AND col0 > 5466 OR col0 > 5395 OR col4 >= 7731.4))

statement ok
CREATE VIEW view_3_tab3_786 AS SELECT pk FROM view_1_tab3_786

query II rowsort label-4700-1
SELECT pk, col0 FROM tab3 WHERE ((col1 > 4325.40) AND ((col0 <= 3916)) OR col3 IN (SELECT col0 FROM tab3 WHERE col3 <= 5542) AND col0 < 1271 AND ((col1 <= 6281.58)) AND col0 >= 1752 AND col0 >= 7029 OR col0 IS NULL OR col4 IN (5103.11,7453.92,1996.85,5264.82,4035.69,6799.29) AND col4 IS NULL OR col0 < 8248 OR col4 >= 9077.78 AND col0 < 7274 AND col3 >= 1505 AND (((col4 IS NULL AND col3 < 3136 AND (((col4 BETWEEN 956.6 AND 2168.6) AND col4 < 4625.60)))) AND col4 > 1726.56) OR (((col0 < 9276 AND (col3 IS NULL AND (((col3 <= 6385)))) OR col4 <= 4263.31)) AND col1 < 4574.33 AND col4 IS NULL AND ((((col1 IN (8683.7) OR (col0 > 6058) OR col1 >= 8619.56)))) AND col4 > 106.20 OR col3 = 6875 OR ((col3 >= 7460) AND col1 >= 8363.47 OR col0 >= 4654) AND col3 BETWEEN 6261 AND 17 AND ((col1 <= 5811.38 AND col3 < 9051)) AND ((col1 <= 6540.68 AND ((col4 IS NULL) AND (col0 < 4414)) AND (col0 < 512))) AND (col3 < 1625) AND col3 = 3594 OR (col3 = 8953) AND col1 < 5977.82 OR col0 > 2380) OR col4 > 9980.64 AND col1 IS NULL AND col0 >= 92 AND (col1 >= 4076.86) AND col3 < 8791 AND col0 IN (4914,8918,6280,2982,783) AND col0 > 5466 OR col0 > 5395 OR col4 >= 7731.4)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-4700-2
SELECT pk, col0 FROM tab3 WHERE NOT (((col1 > 4325.40) AND ((col0 <= 3916)) OR col3 IN (SELECT col0 FROM tab3 WHERE col3 <= 5542) AND col0 < 1271 AND ((col1 <= 6281.58)) AND col0 >= 1752 AND col0 >= 7029 OR col0 IS NULL OR col4 IN (5103.11,7453.92,1996.85,5264.82,4035.69,6799.29) AND col4 IS NULL OR col0 < 8248 OR col4 >= 9077.78 AND col0 < 7274 AND col3 >= 1505 AND (((col4 IS NULL AND col3 < 3136 AND (((col4 BETWEEN 956.6 AND 2168.6) AND col4 < 4625.60)))) AND col4 > 1726.56) OR (((col0 < 9276 AND (col3 IS NULL AND (((col3 <= 6385)))) OR col4 <= 4263.31)) AND col1 < 4574.33 AND col4 IS NULL AND ((((col1 IN (8683.7) OR (col0 > 6058) OR col1 >= 8619.56)))) AND col4 > 106.20 OR col3 = 6875 OR ((col3 >= 7460) AND col1 >= 8363.47 OR col0 >= 4654) AND col3 BETWEEN 6261 AND 17 AND ((col1 <= 5811.38 AND col3 < 9051)) AND ((col1 <= 6540.68 AND ((col4 IS NULL) AND (col0 < 4414)) AND (col0 < 512))) AND (col3 < 1625) AND col3 = 3594 OR (col3 = 8953) AND col1 < 5977.82 OR col0 > 2380) OR col4 > 9980.64 AND col1 IS NULL AND col0 >= 92 AND (col1 >= 4076.86) AND col3 < 8791 AND col0 IN (4914,8918,6280,2982,783) AND col0 > 5466 OR col0 > 5395 OR col4 >= 7731.4))
----

query II rowsort label-4700-1
SELECT pk, col0 FROM view_1_tab3_786
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-4700-2
SELECT pk, col0 FROM view_2_tab3_786
----

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE ((col1 > 4325.40) AND ((col0 <= 3916)) OR col3 IN (SELECT col0 FROM tab3 WHERE col3 <= 5542) AND col0 < 1271 AND ((col1 <= 6281.58)) AND col0 >= 1752 AND col0 >= 7029 OR col0 IS NULL OR col4 IN (5103.11,7453.92,1996.85,5264.82,4035.69,6799.29) AND col4 IS NULL OR col0 < 8248 OR col4 >= 9077.78 AND col0 < 7274 AND col3 >= 1505 AND (((col4 IS NULL AND col3 < 3136 AND (((col4 BETWEEN 956.6 AND 2168.6) AND col4 < 4625.60)))) AND col4 > 1726.56) OR (((col0 < 9276 AND (col3 IS NULL AND (((col3 <= 6385)))) OR col4 <= 4263.31)) AND col1 < 4574.33 AND col4 IS NULL AND ((((col1 IN (8683.7) OR (col0 > 6058) OR col1 >= 8619.56)))) AND col4 > 106.20 OR col3 = 6875 OR ((col3 >= 7460) AND col1 >= 8363.47 OR col0 >= 4654) AND col3 BETWEEN 6261 AND 17 AND ((col1 <= 5811.38 AND col3 < 9051)) AND ((col1 <= 6540.68 AND ((col4 IS NULL) AND (col0 < 4414)) AND (col0 < 512))) AND (col3 < 1625) AND col3 = 3594 OR (col3 = 8953) AND col1 < 5977.82 OR col0 > 2380) OR col4 > 9980.64 AND col1 IS NULL AND col0 >= 92 AND (col1 >= 4076.86) AND col3 < 8791 AND col0 IN (4914,8918,6280,2982,783) AND col0 > 5466 OR col0 > 5395 OR col4 >= 7731.4) UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (((col1 > 4325.40) AND ((col0 <= 3916)) OR col3 IN (SELECT col0 FROM tab3 WHERE col3 <= 5542) AND col0 < 1271 AND ((col1 <= 6281.58)) AND col0 >= 1752 AND col0 >= 7029 OR col0 IS NULL OR col4 IN (5103.11,7453.92,1996.85,5264.82,4035.69,6799.29) AND col4 IS NULL OR col0 < 8248 OR col4 >= 9077.78 AND col0 < 7274 AND col3 >= 1505 AND (((col4 IS NULL AND col3 < 3136 AND (((col4 BETWEEN 956.6 AND 2168.6) AND col4 < 4625.60)))) AND col4 > 1726.56) OR (((col0 < 9276 AND (col3 IS NULL AND (((col3 <= 6385)))) OR col4 <= 4263.31)) AND col1 < 4574.33 AND col4 IS NULL AND ((((col1 IN (8683.7) OR (col0 > 6058) OR col1 >= 8619.56)))) AND col4 > 106.20 OR col3 = 6875 OR ((col3 >= 7460) AND col1 >= 8363.47 OR col0 >= 4654) AND col3 BETWEEN 6261 AND 17 AND ((col1 <= 5811.38 AND col3 < 9051)) AND ((col1 <= 6540.68 AND ((col4 IS NULL) AND (col0 < 4414)) AND (col0 < 512))) AND (col3 < 1625) AND col3 = 3594 OR (col3 = 8953) AND col1 < 5977.82 OR col0 > 2380) OR col4 > 9980.64 AND col1 IS NULL AND col0 >= 92 AND (col1 >= 4076.86) AND col3 < 8791 AND col0 IN (4914,8918,6280,2982,783) AND col0 > 5466 OR col0 > 5395 OR col4 >= 7731.4))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_786 UNION ALL SELECT pk, col0 FROM view_2_tab3_786
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE ((col1 > 4325.40) AND ((col0 <= 3916)) OR col3 IN (SELECT col0 FROM tab3 WHERE col3 <= 5542) AND col0 < 1271 AND ((col1 <= 6281.58)) AND col0 >= 1752 AND col0 >= 7029 OR col0 IS NULL OR col4 IN (5103.11,7453.92,1996.85,5264.82,4035.69,6799.29) AND col4 IS NULL OR col0 < 8248 OR col4 >= 9077.78 AND col0 < 7274 AND col3 >= 1505 AND (((col4 IS NULL AND col3 < 3136 AND (((col4 BETWEEN 956.6 AND 2168.6) AND col4 < 4625.60)))) AND col4 > 1726.56) OR (((col0 < 9276 AND (col3 IS NULL AND (((col3 <= 6385)))) OR col4 <= 4263.31)) AND col1 < 4574.33 AND col4 IS NULL AND ((((col1 IN (8683.7) OR (col0 > 6058) OR col1 >= 8619.56)))) AND col4 > 106.20 OR col3 = 6875 OR ((col3 >= 7460) AND col1 >= 8363.47 OR col0 >= 4654) AND col3 BETWEEN 6261 AND 17 AND ((col1 <= 5811.38 AND col3 < 9051)) AND ((col1 <= 6540.68 AND ((col4 IS NULL) AND (col0 < 4414)) AND (col0 < 512))) AND (col3 < 1625) AND col3 = 3594 OR (col3 = 8953) AND col1 < 5977.82 OR col0 > 2380) OR col4 > 9980.64 AND col1 IS NULL AND col0 >= 92 AND (col1 >= 4076.86) AND col3 < 8791 AND col0 IN (4914,8918,6280,2982,783) AND col0 > 5466 OR col0 > 5395 OR col4 >= 7731.4) UNION SELECT pk, col0 FROM tab3 WHERE NOT (((col1 > 4325.40) AND ((col0 <= 3916)) OR col3 IN (SELECT col0 FROM tab3 WHERE col3 <= 5542) AND col0 < 1271 AND ((col1 <= 6281.58)) AND col0 >= 1752 AND col0 >= 7029 OR col0 IS NULL OR col4 IN (5103.11,7453.92,1996.85,5264.82,4035.69,6799.29) AND col4 IS NULL OR col0 < 8248 OR col4 >= 9077.78 AND col0 < 7274 AND col3 >= 1505 AND (((col4 IS NULL AND col3 < 3136 AND (((col4 BETWEEN 956.6 AND 2168.6) AND col4 < 4625.60)))) AND col4 > 1726.56) OR (((col0 < 9276 AND (col3 IS NULL AND (((col3 <= 6385)))) OR col4 <= 4263.31)) AND col1 < 4574.33 AND col4 IS NULL AND ((((col1 IN (8683.7) OR (col0 > 6058) OR col1 >= 8619.56)))) AND col4 > 106.20 OR col3 = 6875 OR ((col3 >= 7460) AND col1 >= 8363.47 OR col0 >= 4654) AND col3 BETWEEN 6261 AND 17 AND ((col1 <= 5811.38 AND col3 < 9051)) AND ((col1 <= 6540.68 AND ((col4 IS NULL) AND (col0 < 4414)) AND (col0 < 512))) AND (col3 < 1625) AND col3 = 3594 OR (col3 = 8953) AND col1 < 5977.82 OR col0 > 2380) OR col4 > 9980.64 AND col1 IS NULL AND col0 >= 92 AND (col1 >= 4076.86) AND col3 < 8791 AND col0 IN (4914,8918,6280,2982,783) AND col0 > 5466 OR col0 > 5395 OR col4 >= 7731.4))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_786 UNION SELECT pk, col0 FROM view_2_tab3_786
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-4700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE ((col1 > 4325.40) AND ((col0 <= 3916)) OR col3 IN (SELECT col0 FROM tab3 WHERE col3 <= 5542) AND col0 < 1271 AND ((col1 <= 6281.58)) AND col0 >= 1752 AND col0 >= 7029 OR col0 IS NULL OR col4 IN (5103.11,7453.92,1996.85,5264.82,4035.69,6799.29) AND col4 IS NULL OR col0 < 8248 OR col4 >= 9077.78 AND col0 < 7274 AND col3 >= 1505 AND (((col4 IS NULL AND col3 < 3136 AND (((col4 BETWEEN 956.6 AND 2168.6) AND col4 < 4625.60)))) AND col4 > 1726.56) OR (((col0 < 9276 AND (col3 IS NULL AND (((col3 <= 6385)))) OR col4 <= 4263.31)) AND col1 < 4574.33 AND col4 IS NULL AND ((((col1 IN (8683.7) OR (col0 > 6058) OR col1 >= 8619.56)))) AND col4 > 106.20 OR col3 = 6875 OR ((col3 >= 7460) AND col1 >= 8363.47 OR col0 >= 4654) AND col3 BETWEEN 6261 AND 17 AND ((col1 <= 5811.38 AND col3 < 9051)) AND ((col1 <= 6540.68 AND ((col4 IS NULL) AND (col0 < 4414)) AND (col0 < 512))) AND (col3 < 1625) AND col3 = 3594 OR (col3 = 8953) AND col1 < 5977.82 OR col0 > 2380) OR col4 > 9980.64 AND col1 IS NULL AND col0 >= 92 AND (col1 >= 4076.86) AND col3 < 8791 AND col0 IN (4914,8918,6280,2982,783) AND col0 > 5466 OR col0 > 5395 OR col4 >= 7731.4) ) AS tab3_786
----
1000 values hashing to 30a3c33f4078cae93230de944dca2ac9

query I rowsort label-4700-3
SELECT * FROM view_3_tab3_786
----
1000 values hashing to 30a3c33f4078cae93230de944dca2ac9

query I rowsort label-4700-3
SELECT pk FROM tab3 WHERE ((col1 > 4325.40) AND ((col0 <= 3916)) OR col3 IN (SELECT col0 FROM tab3 WHERE col3 <= 5542) AND col0 < 1271 AND ((col1 <= 6281.58)) AND col0 >= 1752 AND col0 >= 7029 OR col0 IS NULL OR col4 IN (5103.11,7453.92,1996.85,5264.82,4035.69,6799.29) AND col4 IS NULL OR col0 < 8248 OR col4 >= 9077.78 AND col0 < 7274 AND col3 >= 1505 AND (((col4 IS NULL AND col3 < 3136 AND (((col4 BETWEEN 956.6 AND 2168.6) AND col4 < 4625.60)))) AND col4 > 1726.56) OR (((col0 < 9276 AND (col3 IS NULL AND (((col3 <= 6385)))) OR col4 <= 4263.31)) AND col1 < 4574.33 AND col4 IS NULL AND ((((col1 IN (8683.7) OR (col0 > 6058) OR col1 >= 8619.56)))) AND col4 > 106.20 OR col3 = 6875 OR ((col3 >= 7460) AND col1 >= 8363.47 OR col0 >= 4654) AND col3 BETWEEN 6261 AND 17 AND ((col1 <= 5811.38 AND col3 < 9051)) AND ((col1 <= 6540.68 AND ((col4 IS NULL) AND (col0 < 4414)) AND (col0 < 512))) AND (col3 < 1625) AND col3 = 3594 OR (col3 = 8953) AND col1 < 5977.82 OR col0 > 2380) OR col4 > 9980.64 AND col1 IS NULL AND col0 >= 92 AND (col1 >= 4076.86) AND col3 < 8791 AND col0 IN (4914,8918,6280,2982,783) AND col0 > 5466 OR col0 > 5395 OR col4 >= 7731.4)
----
1000 values hashing to 30a3c33f4078cae93230de944dca2ac9

statement ok
DROP VIEW view_1_tab3_786

statement ok
DROP VIEW view_2_tab3_786

statement ok
DROP VIEW view_3_tab3_786

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_786') DROP VIEW view_1_tab4_786

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_786

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_786') DROP VIEW view_2_tab4_786

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_786

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_786') DROP VIEW view_3_tab4_786

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_786

statement ok
CREATE VIEW view_1_tab4_786 AS SELECT pk, col0 FROM tab4 WHERE ((col1 > 4325.40) AND ((col0 <= 3916)) OR col3 IN (SELECT col0 FROM tab4 WHERE col3 <= 5542) AND col0 < 1271 AND ((col1 <= 6281.58)) AND col0 >= 1752 AND col0 >= 7029 OR col0 IS NULL OR col4 IN (5103.11,7453.92,1996.85,5264.82,4035.69,6799.29) AND col4 IS NULL OR col0 < 8248 OR col4 >= 9077.78 AND col0 < 7274 AND col3 >= 1505 AND (((col4 IS NULL AND col3 < 3136 AND (((col4 BETWEEN 956.6 AND 2168.6) AND col4 < 4625.60)))) AND col4 > 1726.56) OR (((col0 < 9276 AND (col3 IS NULL AND (((col3 <= 6385)))) OR col4 <= 4263.31)) AND col1 < 4574.33 AND col4 IS NULL AND ((((col1 IN (8683.7) OR (col0 > 6058) OR col1 >= 8619.56)))) AND col4 > 106.20 OR col3 = 6875 OR ((col3 >= 7460) AND col1 >= 8363.47 OR col0 >= 4654) AND col3 BETWEEN 6261 AND 17 AND ((col1 <= 5811.38 AND col3 < 9051)) AND ((col1 <= 6540.68 AND ((col4 IS NULL) AND (col0 < 4414)) AND (col0 < 512))) AND (col3 < 1625) AND col3 = 3594 OR (col3 = 8953) AND col1 < 5977.82 OR col0 > 2380) OR col4 > 9980.64 AND col1 IS NULL AND col0 >= 92 AND (col1 >= 4076.86) AND col3 < 8791 AND col0 IN (4914,8918,6280,2982,783) AND col0 > 5466 OR col0 > 5395 OR col4 >= 7731.4)

statement ok
CREATE VIEW view_2_tab4_786 AS SELECT pk, col0 FROM tab4 WHERE NOT (((col1 > 4325.40) AND ((col0 <= 3916)) OR col3 IN (SELECT col0 FROM tab4 WHERE col3 <= 5542) AND col0 < 1271 AND ((col1 <= 6281.58)) AND col0 >= 1752 AND col0 >= 7029 OR col0 IS NULL OR col4 IN (5103.11,7453.92,1996.85,5264.82,4035.69,6799.29) AND col4 IS NULL OR col0 < 8248 OR col4 >= 9077.78 AND col0 < 7274 AND col3 >= 1505 AND (((col4 IS NULL AND col3 < 3136 AND (((col4 BETWEEN 956.6 AND 2168.6) AND col4 < 4625.60)))) AND col4 > 1726.56) OR (((col0 < 9276 AND (col3 IS NULL AND (((col3 <= 6385)))) OR col4 <= 4263.31)) AND col1 < 4574.33 AND col4 IS NULL AND ((((col1 IN (8683.7) OR (col0 > 6058) OR col1 >= 8619.56)))) AND col4 > 106.20 OR col3 = 6875 OR ((col3 >= 7460) AND col1 >= 8363.47 OR col0 >= 4654) AND col3 BETWEEN 6261 AND 17 AND ((col1 <= 5811.38 AND col3 < 9051)) AND ((col1 <= 6540.68 AND ((col4 IS NULL) AND (col0 < 4414)) AND (col0 < 512))) AND (col3 < 1625) AND col3 = 3594 OR (col3 = 8953) AND col1 < 5977.82 OR col0 > 2380) OR col4 > 9980.64 AND col1 IS NULL AND col0 >= 92 AND (col1 >= 4076.86) AND col3 < 8791 AND col0 IN (4914,8918,6280,2982,783) AND col0 > 5466 OR col0 > 5395 OR col4 >= 7731.4))

statement ok
CREATE VIEW view_3_tab4_786 AS SELECT pk FROM view_1_tab4_786

query II rowsort label-4700-1
SELECT pk, col0 FROM tab4 WHERE ((col1 > 4325.40) AND ((col0 <= 3916)) OR col3 IN (SELECT col0 FROM tab4 WHERE col3 <= 5542) AND col0 < 1271 AND ((col1 <= 6281.58)) AND col0 >= 1752 AND col0 >= 7029 OR col0 IS NULL OR col4 IN (5103.11,7453.92,1996.85,5264.82,4035.69,6799.29) AND col4 IS NULL OR col0 < 8248 OR col4 >= 9077.78 AND col0 < 7274 AND col3 >= 1505 AND (((col4 IS NULL AND col3 < 3136 AND (((col4 BETWEEN 956.6 AND 2168.6) AND col4 < 4625.60)))) AND col4 > 1726.56) OR (((col0 < 9276 AND (col3 IS NULL AND (((col3 <= 6385)))) OR col4 <= 4263.31)) AND col1 < 4574.33 AND col4 IS NULL AND ((((col1 IN (8683.7) OR (col0 > 6058) OR col1 >= 8619.56)))) AND col4 > 106.20 OR col3 = 6875 OR ((col3 >= 7460) AND col1 >= 8363.47 OR col0 >= 4654) AND col3 BETWEEN 6261 AND 17 AND ((col1 <= 5811.38 AND col3 < 9051)) AND ((col1 <= 6540.68 AND ((col4 IS NULL) AND (col0 < 4414)) AND (col0 < 512))) AND (col3 < 1625) AND col3 = 3594 OR (col3 = 8953) AND col1 < 5977.82 OR col0 > 2380) OR col4 > 9980.64 AND col1 IS NULL AND col0 >= 92 AND (col1 >= 4076.86) AND col3 < 8791 AND col0 IN (4914,8918,6280,2982,783) AND col0 > 5466 OR col0 > 5395 OR col4 >= 7731.4)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-4700-2
SELECT pk, col0 FROM tab4 WHERE NOT (((col1 > 4325.40) AND ((col0 <= 3916)) OR col3 IN (SELECT col0 FROM tab4 WHERE col3 <= 5542) AND col0 < 1271 AND ((col1 <= 6281.58)) AND col0 >= 1752 AND col0 >= 7029 OR col0 IS NULL OR col4 IN (5103.11,7453.92,1996.85,5264.82,4035.69,6799.29) AND col4 IS NULL OR col0 < 8248 OR col4 >= 9077.78 AND col0 < 7274 AND col3 >= 1505 AND (((col4 IS NULL AND col3 < 3136 AND (((col4 BETWEEN 956.6 AND 2168.6) AND col4 < 4625.60)))) AND col4 > 1726.56) OR (((col0 < 9276 AND (col3 IS NULL AND (((col3 <= 6385)))) OR col4 <= 4263.31)) AND col1 < 4574.33 AND col4 IS NULL AND ((((col1 IN (8683.7) OR (col0 > 6058) OR col1 >= 8619.56)))) AND col4 > 106.20 OR col3 = 6875 OR ((col3 >= 7460) AND col1 >= 8363.47 OR col0 >= 4654) AND col3 BETWEEN 6261 AND 17 AND ((col1 <= 5811.38 AND col3 < 9051)) AND ((col1 <= 6540.68 AND ((col4 IS NULL) AND (col0 < 4414)) AND (col0 < 512))) AND (col3 < 1625) AND col3 = 3594 OR (col3 = 8953) AND col1 < 5977.82 OR col0 > 2380) OR col4 > 9980.64 AND col1 IS NULL AND col0 >= 92 AND (col1 >= 4076.86) AND col3 < 8791 AND col0 IN (4914,8918,6280,2982,783) AND col0 > 5466 OR col0 > 5395 OR col4 >= 7731.4))
----

query II rowsort label-4700-1
SELECT pk, col0 FROM view_1_tab4_786
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-4700-2
SELECT pk, col0 FROM view_2_tab4_786
----

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE ((col1 > 4325.40) AND ((col0 <= 3916)) OR col3 IN (SELECT col0 FROM tab4 WHERE col3 <= 5542) AND col0 < 1271 AND ((col1 <= 6281.58)) AND col0 >= 1752 AND col0 >= 7029 OR col0 IS NULL OR col4 IN (5103.11,7453.92,1996.85,5264.82,4035.69,6799.29) AND col4 IS NULL OR col0 < 8248 OR col4 >= 9077.78 AND col0 < 7274 AND col3 >= 1505 AND (((col4 IS NULL AND col3 < 3136 AND (((col4 BETWEEN 956.6 AND 2168.6) AND col4 < 4625.60)))) AND col4 > 1726.56) OR (((col0 < 9276 AND (col3 IS NULL AND (((col3 <= 6385)))) OR col4 <= 4263.31)) AND col1 < 4574.33 AND col4 IS NULL AND ((((col1 IN (8683.7) OR (col0 > 6058) OR col1 >= 8619.56)))) AND col4 > 106.20 OR col3 = 6875 OR ((col3 >= 7460) AND col1 >= 8363.47 OR col0 >= 4654) AND col3 BETWEEN 6261 AND 17 AND ((col1 <= 5811.38 AND col3 < 9051)) AND ((col1 <= 6540.68 AND ((col4 IS NULL) AND (col0 < 4414)) AND (col0 < 512))) AND (col3 < 1625) AND col3 = 3594 OR (col3 = 8953) AND col1 < 5977.82 OR col0 > 2380) OR col4 > 9980.64 AND col1 IS NULL AND col0 >= 92 AND (col1 >= 4076.86) AND col3 < 8791 AND col0 IN (4914,8918,6280,2982,783) AND col0 > 5466 OR col0 > 5395 OR col4 >= 7731.4) UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (((col1 > 4325.40) AND ((col0 <= 3916)) OR col3 IN (SELECT col0 FROM tab4 WHERE col3 <= 5542) AND col0 < 1271 AND ((col1 <= 6281.58)) AND col0 >= 1752 AND col0 >= 7029 OR col0 IS NULL OR col4 IN (5103.11,7453.92,1996.85,5264.82,4035.69,6799.29) AND col4 IS NULL OR col0 < 8248 OR col4 >= 9077.78 AND col0 < 7274 AND col3 >= 1505 AND (((col4 IS NULL AND col3 < 3136 AND (((col4 BETWEEN 956.6 AND 2168.6) AND col4 < 4625.60)))) AND col4 > 1726.56) OR (((col0 < 9276 AND (col3 IS NULL AND (((col3 <= 6385)))) OR col4 <= 4263.31)) AND col1 < 4574.33 AND col4 IS NULL AND ((((col1 IN (8683.7) OR (col0 > 6058) OR col1 >= 8619.56)))) AND col4 > 106.20 OR col3 = 6875 OR ((col3 >= 7460) AND col1 >= 8363.47 OR col0 >= 4654) AND col3 BETWEEN 6261 AND 17 AND ((col1 <= 5811.38 AND col3 < 9051)) AND ((col1 <= 6540.68 AND ((col4 IS NULL) AND (col0 < 4414)) AND (col0 < 512))) AND (col3 < 1625) AND col3 = 3594 OR (col3 = 8953) AND col1 < 5977.82 OR col0 > 2380) OR col4 > 9980.64 AND col1 IS NULL AND col0 >= 92 AND (col1 >= 4076.86) AND col3 < 8791 AND col0 IN (4914,8918,6280,2982,783) AND col0 > 5466 OR col0 > 5395 OR col4 >= 7731.4))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_786 UNION ALL SELECT pk, col0 FROM view_2_tab4_786
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE ((col1 > 4325.40) AND ((col0 <= 3916)) OR col3 IN (SELECT col0 FROM tab4 WHERE col3 <= 5542) AND col0 < 1271 AND ((col1 <= 6281.58)) AND col0 >= 1752 AND col0 >= 7029 OR col0 IS NULL OR col4 IN (5103.11,7453.92,1996.85,5264.82,4035.69,6799.29) AND col4 IS NULL OR col0 < 8248 OR col4 >= 9077.78 AND col0 < 7274 AND col3 >= 1505 AND (((col4 IS NULL AND col3 < 3136 AND (((col4 BETWEEN 956.6 AND 2168.6) AND col4 < 4625.60)))) AND col4 > 1726.56) OR (((col0 < 9276 AND (col3 IS NULL AND (((col3 <= 6385)))) OR col4 <= 4263.31)) AND col1 < 4574.33 AND col4 IS NULL AND ((((col1 IN (8683.7) OR (col0 > 6058) OR col1 >= 8619.56)))) AND col4 > 106.20 OR col3 = 6875 OR ((col3 >= 7460) AND col1 >= 8363.47 OR col0 >= 4654) AND col3 BETWEEN 6261 AND 17 AND ((col1 <= 5811.38 AND col3 < 9051)) AND ((col1 <= 6540.68 AND ((col4 IS NULL) AND (col0 < 4414)) AND (col0 < 512))) AND (col3 < 1625) AND col3 = 3594 OR (col3 = 8953) AND col1 < 5977.82 OR col0 > 2380) OR col4 > 9980.64 AND col1 IS NULL AND col0 >= 92 AND (col1 >= 4076.86) AND col3 < 8791 AND col0 IN (4914,8918,6280,2982,783) AND col0 > 5466 OR col0 > 5395 OR col4 >= 7731.4) UNION SELECT pk, col0 FROM tab4 WHERE NOT (((col1 > 4325.40) AND ((col0 <= 3916)) OR col3 IN (SELECT col0 FROM tab4 WHERE col3 <= 5542) AND col0 < 1271 AND ((col1 <= 6281.58)) AND col0 >= 1752 AND col0 >= 7029 OR col0 IS NULL OR col4 IN (5103.11,7453.92,1996.85,5264.82,4035.69,6799.29) AND col4 IS NULL OR col0 < 8248 OR col4 >= 9077.78 AND col0 < 7274 AND col3 >= 1505 AND (((col4 IS NULL AND col3 < 3136 AND (((col4 BETWEEN 956.6 AND 2168.6) AND col4 < 4625.60)))) AND col4 > 1726.56) OR (((col0 < 9276 AND (col3 IS NULL AND (((col3 <= 6385)))) OR col4 <= 4263.31)) AND col1 < 4574.33 AND col4 IS NULL AND ((((col1 IN (8683.7) OR (col0 > 6058) OR col1 >= 8619.56)))) AND col4 > 106.20 OR col3 = 6875 OR ((col3 >= 7460) AND col1 >= 8363.47 OR col0 >= 4654) AND col3 BETWEEN 6261 AND 17 AND ((col1 <= 5811.38 AND col3 < 9051)) AND ((col1 <= 6540.68 AND ((col4 IS NULL) AND (col0 < 4414)) AND (col0 < 512))) AND (col3 < 1625) AND col3 = 3594 OR (col3 = 8953) AND col1 < 5977.82 OR col0 > 2380) OR col4 > 9980.64 AND col1 IS NULL AND col0 >= 92 AND (col1 >= 4076.86) AND col3 < 8791 AND col0 IN (4914,8918,6280,2982,783) AND col0 > 5466 OR col0 > 5395 OR col4 >= 7731.4))
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_786 UNION SELECT pk, col0 FROM view_2_tab4_786
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-4700-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE ((col1 > 4325.40) AND ((col0 <= 3916)) OR col3 IN (SELECT col0 FROM tab4 WHERE col3 <= 5542) AND col0 < 1271 AND ((col1 <= 6281.58)) AND col0 >= 1752 AND col0 >= 7029 OR col0 IS NULL OR col4 IN (5103.11,7453.92,1996.85,5264.82,4035.69,6799.29) AND col4 IS NULL OR col0 < 8248 OR col4 >= 9077.78 AND col0 < 7274 AND col3 >= 1505 AND (((col4 IS NULL AND col3 < 3136 AND (((col4 BETWEEN 956.6 AND 2168.6) AND col4 < 4625.60)))) AND col4 > 1726.56) OR (((col0 < 9276 AND (col3 IS NULL AND (((col3 <= 6385)))) OR col4 <= 4263.31)) AND col1 < 4574.33 AND col4 IS NULL AND ((((col1 IN (8683.7) OR (col0 > 6058) OR col1 >= 8619.56)))) AND col4 > 106.20 OR col3 = 6875 OR ((col3 >= 7460) AND col1 >= 8363.47 OR col0 >= 4654) AND col3 BETWEEN 6261 AND 17 AND ((col1 <= 5811.38 AND col3 < 9051)) AND ((col1 <= 6540.68 AND ((col4 IS NULL) AND (col0 < 4414)) AND (col0 < 512))) AND (col3 < 1625) AND col3 = 3594 OR (col3 = 8953) AND col1 < 5977.82 OR col0 > 2380) OR col4 > 9980.64 AND col1 IS NULL AND col0 >= 92 AND (col1 >= 4076.86) AND col3 < 8791 AND col0 IN (4914,8918,6280,2982,783) AND col0 > 5466 OR col0 > 5395 OR col4 >= 7731.4) ) AS tab4_786
----
1000 values hashing to 30a3c33f4078cae93230de944dca2ac9

query I rowsort label-4700-3
SELECT * FROM view_3_tab4_786
----
1000 values hashing to 30a3c33f4078cae93230de944dca2ac9

query I rowsort label-4700-3
SELECT pk FROM tab4 WHERE ((col1 > 4325.40) AND ((col0 <= 3916)) OR col3 IN (SELECT col0 FROM tab4 WHERE col3 <= 5542) AND col0 < 1271 AND ((col1 <= 6281.58)) AND col0 >= 1752 AND col0 >= 7029 OR col0 IS NULL OR col4 IN (5103.11,7453.92,1996.85,5264.82,4035.69,6799.29) AND col4 IS NULL OR col0 < 8248 OR col4 >= 9077.78 AND col0 < 7274 AND col3 >= 1505 AND (((col4 IS NULL AND col3 < 3136 AND (((col4 BETWEEN 956.6 AND 2168.6) AND col4 < 4625.60)))) AND col4 > 1726.56) OR (((col0 < 9276 AND (col3 IS NULL AND (((col3 <= 6385)))) OR col4 <= 4263.31)) AND col1 < 4574.33 AND col4 IS NULL AND ((((col1 IN (8683.7) OR (col0 > 6058) OR col1 >= 8619.56)))) AND col4 > 106.20 OR col3 = 6875 OR ((col3 >= 7460) AND col1 >= 8363.47 OR col0 >= 4654) AND col3 BETWEEN 6261 AND 17 AND ((col1 <= 5811.38 AND col3 < 9051)) AND ((col1 <= 6540.68 AND ((col4 IS NULL) AND (col0 < 4414)) AND (col0 < 512))) AND (col3 < 1625) AND col3 = 3594 OR (col3 = 8953) AND col1 < 5977.82 OR col0 > 2380) OR col4 > 9980.64 AND col1 IS NULL AND col0 >= 92 AND (col1 >= 4076.86) AND col3 < 8791 AND col0 IN (4914,8918,6280,2982,783) AND col0 > 5466 OR col0 > 5395 OR col4 >= 7731.4)
----
1000 values hashing to 30a3c33f4078cae93230de944dca2ac9

statement ok
DROP VIEW view_1_tab4_786

statement ok
DROP VIEW view_2_tab4_786

statement ok
DROP VIEW view_3_tab4_786

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_787') DROP VIEW view_1_tab0_787

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_787

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_787') DROP VIEW view_2_tab0_787

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_787

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_787') DROP VIEW view_3_tab0_787

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_787

statement ok
CREATE VIEW view_1_tab0_787 AS SELECT pk, col0 FROM tab0 WHERE col3 < 2187

statement ok
CREATE VIEW view_2_tab0_787 AS SELECT pk, col0 FROM tab0 WHERE NOT (col3 < 2187)

statement ok
CREATE VIEW view_3_tab0_787 AS SELECT pk FROM view_1_tab0_787

query II rowsort label-4800-1
SELECT pk, col0 FROM tab0 WHERE col3 < 2187
----
426 values hashing to 23ba7ba5a1fb7be3d055763e0f8db8c4

query II rowsort label-4800-2
SELECT pk, col0 FROM tab0 WHERE NOT (col3 < 2187)
----
1574 values hashing to c6ac15b041f9f09faedb3df12644de5e

query II rowsort label-4800-1
SELECT pk, col0 FROM view_1_tab0_787
----
426 values hashing to 23ba7ba5a1fb7be3d055763e0f8db8c4

query II rowsort label-4800-2
SELECT pk, col0 FROM view_2_tab0_787
----
1574 values hashing to c6ac15b041f9f09faedb3df12644de5e

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 < 2187 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col3 < 2187)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_787 UNION ALL SELECT pk, col0 FROM view_2_tab0_787
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 < 2187 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col3 < 2187)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_787 UNION SELECT pk, col0 FROM view_2_tab0_787
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-4800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col3 < 2187 ) AS tab0_787
----
213 values hashing to afe3ff6a955f0245b443e3cf968c88b6

query I rowsort label-4800-3
SELECT * FROM view_3_tab0_787
----
213 values hashing to afe3ff6a955f0245b443e3cf968c88b6

query I rowsort label-4800-3
SELECT pk FROM tab0 WHERE col3 < 2187
----
213 values hashing to afe3ff6a955f0245b443e3cf968c88b6

statement ok
DROP VIEW view_1_tab0_787

statement ok
DROP VIEW view_2_tab0_787

statement ok
DROP VIEW view_3_tab0_787

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_787') DROP VIEW view_1_tab1_787

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_787

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_787') DROP VIEW view_2_tab1_787

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_787

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_787') DROP VIEW view_3_tab1_787

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_787

statement ok
CREATE VIEW view_1_tab1_787 AS SELECT pk, col0 FROM tab1 WHERE col3 < 2187

statement ok
CREATE VIEW view_2_tab1_787 AS SELECT pk, col0 FROM tab1 WHERE NOT (col3 < 2187)

statement ok
CREATE VIEW view_3_tab1_787 AS SELECT pk FROM view_1_tab1_787

query II rowsort label-4800-1
SELECT pk, col0 FROM tab1 WHERE col3 < 2187
----
426 values hashing to 23ba7ba5a1fb7be3d055763e0f8db8c4

query II rowsort label-4800-2
SELECT pk, col0 FROM tab1 WHERE NOT (col3 < 2187)
----
1574 values hashing to c6ac15b041f9f09faedb3df12644de5e

query II rowsort label-4800-1
SELECT pk, col0 FROM view_1_tab1_787
----
426 values hashing to 23ba7ba5a1fb7be3d055763e0f8db8c4

query II rowsort label-4800-2
SELECT pk, col0 FROM view_2_tab1_787
----
1574 values hashing to c6ac15b041f9f09faedb3df12644de5e

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 < 2187 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col3 < 2187)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_787 UNION ALL SELECT pk, col0 FROM view_2_tab1_787
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 < 2187 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col3 < 2187)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_787 UNION SELECT pk, col0 FROM view_2_tab1_787
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-4800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col3 < 2187 ) AS tab1_787
----
213 values hashing to afe3ff6a955f0245b443e3cf968c88b6

query I rowsort label-4800-3
SELECT * FROM view_3_tab1_787
----
213 values hashing to afe3ff6a955f0245b443e3cf968c88b6

query I rowsort label-4800-3
SELECT pk FROM tab1 WHERE col3 < 2187
----
213 values hashing to afe3ff6a955f0245b443e3cf968c88b6

statement ok
DROP VIEW view_1_tab1_787

statement ok
DROP VIEW view_2_tab1_787

statement ok
DROP VIEW view_3_tab1_787

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_787') DROP VIEW view_1_tab2_787

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_787

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_787') DROP VIEW view_2_tab2_787

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_787

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_787') DROP VIEW view_3_tab2_787

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_787

statement ok
CREATE VIEW view_1_tab2_787 AS SELECT pk, col0 FROM tab2 WHERE col3 < 2187

statement ok
CREATE VIEW view_2_tab2_787 AS SELECT pk, col0 FROM tab2 WHERE NOT (col3 < 2187)

statement ok
CREATE VIEW view_3_tab2_787 AS SELECT pk FROM view_1_tab2_787

query II rowsort label-4800-1
SELECT pk, col0 FROM tab2 WHERE col3 < 2187
----
426 values hashing to 23ba7ba5a1fb7be3d055763e0f8db8c4

query II rowsort label-4800-2
SELECT pk, col0 FROM tab2 WHERE NOT (col3 < 2187)
----
1574 values hashing to c6ac15b041f9f09faedb3df12644de5e

query II rowsort label-4800-1
SELECT pk, col0 FROM view_1_tab2_787
----
426 values hashing to 23ba7ba5a1fb7be3d055763e0f8db8c4

query II rowsort label-4800-2
SELECT pk, col0 FROM view_2_tab2_787
----
1574 values hashing to c6ac15b041f9f09faedb3df12644de5e

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 < 2187 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col3 < 2187)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_787 UNION ALL SELECT pk, col0 FROM view_2_tab2_787
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 < 2187 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col3 < 2187)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_787 UNION SELECT pk, col0 FROM view_2_tab2_787
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-4800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col3 < 2187 ) AS tab2_787
----
213 values hashing to afe3ff6a955f0245b443e3cf968c88b6

query I rowsort label-4800-3
SELECT * FROM view_3_tab2_787
----
213 values hashing to afe3ff6a955f0245b443e3cf968c88b6

query I rowsort label-4800-3
SELECT pk FROM tab2 WHERE col3 < 2187
----
213 values hashing to afe3ff6a955f0245b443e3cf968c88b6

statement ok
DROP VIEW view_1_tab2_787

statement ok
DROP VIEW view_2_tab2_787

statement ok
DROP VIEW view_3_tab2_787

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_787') DROP VIEW view_1_tab3_787

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_787

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_787') DROP VIEW view_2_tab3_787

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_787

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_787') DROP VIEW view_3_tab3_787

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_787

statement ok
CREATE VIEW view_1_tab3_787 AS SELECT pk, col0 FROM tab3 WHERE col3 < 2187

statement ok
CREATE VIEW view_2_tab3_787 AS SELECT pk, col0 FROM tab3 WHERE NOT (col3 < 2187)

statement ok
CREATE VIEW view_3_tab3_787 AS SELECT pk FROM view_1_tab3_787

query II rowsort label-4800-1
SELECT pk, col0 FROM tab3 WHERE col3 < 2187
----
426 values hashing to 23ba7ba5a1fb7be3d055763e0f8db8c4

query II rowsort label-4800-2
SELECT pk, col0 FROM tab3 WHERE NOT (col3 < 2187)
----
1574 values hashing to c6ac15b041f9f09faedb3df12644de5e

query II rowsort label-4800-1
SELECT pk, col0 FROM view_1_tab3_787
----
426 values hashing to 23ba7ba5a1fb7be3d055763e0f8db8c4

query II rowsort label-4800-2
SELECT pk, col0 FROM view_2_tab3_787
----
1574 values hashing to c6ac15b041f9f09faedb3df12644de5e

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 < 2187 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col3 < 2187)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_787 UNION ALL SELECT pk, col0 FROM view_2_tab3_787
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 < 2187 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col3 < 2187)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_787 UNION SELECT pk, col0 FROM view_2_tab3_787
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-4800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col3 < 2187 ) AS tab3_787
----
213 values hashing to afe3ff6a955f0245b443e3cf968c88b6

query I rowsort label-4800-3
SELECT * FROM view_3_tab3_787
----
213 values hashing to afe3ff6a955f0245b443e3cf968c88b6

query I rowsort label-4800-3
SELECT pk FROM tab3 WHERE col3 < 2187
----
213 values hashing to afe3ff6a955f0245b443e3cf968c88b6

statement ok
DROP VIEW view_1_tab3_787

statement ok
DROP VIEW view_2_tab3_787

statement ok
DROP VIEW view_3_tab3_787

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_787') DROP VIEW view_1_tab4_787

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_787

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_787') DROP VIEW view_2_tab4_787

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_787

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_787') DROP VIEW view_3_tab4_787

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_787

statement ok
CREATE VIEW view_1_tab4_787 AS SELECT pk, col0 FROM tab4 WHERE col3 < 2187

statement ok
CREATE VIEW view_2_tab4_787 AS SELECT pk, col0 FROM tab4 WHERE NOT (col3 < 2187)

statement ok
CREATE VIEW view_3_tab4_787 AS SELECT pk FROM view_1_tab4_787

query II rowsort label-4800-1
SELECT pk, col0 FROM tab4 WHERE col3 < 2187
----
426 values hashing to 23ba7ba5a1fb7be3d055763e0f8db8c4

query II rowsort label-4800-2
SELECT pk, col0 FROM tab4 WHERE NOT (col3 < 2187)
----
1574 values hashing to c6ac15b041f9f09faedb3df12644de5e

query II rowsort label-4800-1
SELECT pk, col0 FROM view_1_tab4_787
----
426 values hashing to 23ba7ba5a1fb7be3d055763e0f8db8c4

query II rowsort label-4800-2
SELECT pk, col0 FROM view_2_tab4_787
----
1574 values hashing to c6ac15b041f9f09faedb3df12644de5e

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 < 2187 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col3 < 2187)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_787 UNION ALL SELECT pk, col0 FROM view_2_tab4_787
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 < 2187 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col3 < 2187)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_787 UNION SELECT pk, col0 FROM view_2_tab4_787
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-4800-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col3 < 2187 ) AS tab4_787
----
213 values hashing to afe3ff6a955f0245b443e3cf968c88b6

query I rowsort label-4800-3
SELECT * FROM view_3_tab4_787
----
213 values hashing to afe3ff6a955f0245b443e3cf968c88b6

query I rowsort label-4800-3
SELECT pk FROM tab4 WHERE col3 < 2187
----
213 values hashing to afe3ff6a955f0245b443e3cf968c88b6

statement ok
DROP VIEW view_1_tab4_787

statement ok
DROP VIEW view_2_tab4_787

statement ok
DROP VIEW view_3_tab4_787

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_789') DROP VIEW view_1_tab0_789

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_789

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_789') DROP VIEW view_2_tab0_789

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_789

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_789') DROP VIEW view_3_tab0_789

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_789

statement ok
CREATE VIEW view_1_tab0_789 AS SELECT pk, col0 FROM tab0 WHERE col3 < 7244

statement ok
CREATE VIEW view_2_tab0_789 AS SELECT pk, col0 FROM tab0 WHERE NOT (col3 < 7244)

statement ok
CREATE VIEW view_3_tab0_789 AS SELECT pk FROM view_1_tab0_789

query II rowsort label-4900-1
SELECT pk, col0 FROM tab0 WHERE col3 < 7244
----
1466 values hashing to 4cdedc121c50fb1017237ccf1c24c677

query II rowsort label-4900-2
SELECT pk, col0 FROM tab0 WHERE NOT (col3 < 7244)
----
534 values hashing to ff1277ed8cf3b574c1d2e15bd0993a02

query II rowsort label-4900-1
SELECT pk, col0 FROM view_1_tab0_789
----
1466 values hashing to 4cdedc121c50fb1017237ccf1c24c677

query II rowsort label-4900-2
SELECT pk, col0 FROM view_2_tab0_789
----
534 values hashing to ff1277ed8cf3b574c1d2e15bd0993a02

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 < 7244 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col3 < 7244)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_789 UNION ALL SELECT pk, col0 FROM view_2_tab0_789
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col3 < 7244 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col3 < 7244)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_789 UNION SELECT pk, col0 FROM view_2_tab0_789
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-4900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col3 < 7244 ) AS tab0_789
----
733 values hashing to f93f97e29a441fe0bec443c1b2afbfac

query I rowsort label-4900-3
SELECT * FROM view_3_tab0_789
----
733 values hashing to f93f97e29a441fe0bec443c1b2afbfac

query I rowsort label-4900-3
SELECT pk FROM tab0 WHERE col3 < 7244
----
733 values hashing to f93f97e29a441fe0bec443c1b2afbfac

statement ok
DROP VIEW view_1_tab0_789

statement ok
DROP VIEW view_2_tab0_789

statement ok
DROP VIEW view_3_tab0_789

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_789') DROP VIEW view_1_tab1_789

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_789

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_789') DROP VIEW view_2_tab1_789

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_789

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_789') DROP VIEW view_3_tab1_789

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_789

statement ok
CREATE VIEW view_1_tab1_789 AS SELECT pk, col0 FROM tab1 WHERE col3 < 7244

statement ok
CREATE VIEW view_2_tab1_789 AS SELECT pk, col0 FROM tab1 WHERE NOT (col3 < 7244)

statement ok
CREATE VIEW view_3_tab1_789 AS SELECT pk FROM view_1_tab1_789

query II rowsort label-4900-1
SELECT pk, col0 FROM tab1 WHERE col3 < 7244
----
1466 values hashing to 4cdedc121c50fb1017237ccf1c24c677

query II rowsort label-4900-2
SELECT pk, col0 FROM tab1 WHERE NOT (col3 < 7244)
----
534 values hashing to ff1277ed8cf3b574c1d2e15bd0993a02

query II rowsort label-4900-1
SELECT pk, col0 FROM view_1_tab1_789
----
1466 values hashing to 4cdedc121c50fb1017237ccf1c24c677

query II rowsort label-4900-2
SELECT pk, col0 FROM view_2_tab1_789
----
534 values hashing to ff1277ed8cf3b574c1d2e15bd0993a02

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 < 7244 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col3 < 7244)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_789 UNION ALL SELECT pk, col0 FROM view_2_tab1_789
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col3 < 7244 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col3 < 7244)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_789 UNION SELECT pk, col0 FROM view_2_tab1_789
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-4900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col3 < 7244 ) AS tab1_789
----
733 values hashing to f93f97e29a441fe0bec443c1b2afbfac

query I rowsort label-4900-3
SELECT * FROM view_3_tab1_789
----
733 values hashing to f93f97e29a441fe0bec443c1b2afbfac

query I rowsort label-4900-3
SELECT pk FROM tab1 WHERE col3 < 7244
----
733 values hashing to f93f97e29a441fe0bec443c1b2afbfac

statement ok
DROP VIEW view_1_tab1_789

statement ok
DROP VIEW view_2_tab1_789

statement ok
DROP VIEW view_3_tab1_789

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_789') DROP VIEW view_1_tab2_789

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_789

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_789') DROP VIEW view_2_tab2_789

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_789

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_789') DROP VIEW view_3_tab2_789

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_789

statement ok
CREATE VIEW view_1_tab2_789 AS SELECT pk, col0 FROM tab2 WHERE col3 < 7244

statement ok
CREATE VIEW view_2_tab2_789 AS SELECT pk, col0 FROM tab2 WHERE NOT (col3 < 7244)

statement ok
CREATE VIEW view_3_tab2_789 AS SELECT pk FROM view_1_tab2_789

query II rowsort label-4900-1
SELECT pk, col0 FROM tab2 WHERE col3 < 7244
----
1466 values hashing to 4cdedc121c50fb1017237ccf1c24c677

query II rowsort label-4900-2
SELECT pk, col0 FROM tab2 WHERE NOT (col3 < 7244)
----
534 values hashing to ff1277ed8cf3b574c1d2e15bd0993a02

query II rowsort label-4900-1
SELECT pk, col0 FROM view_1_tab2_789
----
1466 values hashing to 4cdedc121c50fb1017237ccf1c24c677

query II rowsort label-4900-2
SELECT pk, col0 FROM view_2_tab2_789
----
534 values hashing to ff1277ed8cf3b574c1d2e15bd0993a02

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 < 7244 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col3 < 7244)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_789 UNION ALL SELECT pk, col0 FROM view_2_tab2_789
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col3 < 7244 UNION SELECT pk, col0 FROM tab2 WHERE NOT (col3 < 7244)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab2_789 UNION SELECT pk, col0 FROM view_2_tab2_789
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-4900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab2 WHERE col3 < 7244 ) AS tab2_789
----
733 values hashing to f93f97e29a441fe0bec443c1b2afbfac

query I rowsort label-4900-3
SELECT * FROM view_3_tab2_789
----
733 values hashing to f93f97e29a441fe0bec443c1b2afbfac

query I rowsort label-4900-3
SELECT pk FROM tab2 WHERE col3 < 7244
----
733 values hashing to f93f97e29a441fe0bec443c1b2afbfac

statement ok
DROP VIEW view_1_tab2_789

statement ok
DROP VIEW view_2_tab2_789

statement ok
DROP VIEW view_3_tab2_789

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab3_789') DROP VIEW view_1_tab3_789

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab3_789

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab3_789') DROP VIEW view_2_tab3_789

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab3_789

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab3_789') DROP VIEW view_3_tab3_789

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab3_789

statement ok
CREATE VIEW view_1_tab3_789 AS SELECT pk, col0 FROM tab3 WHERE col3 < 7244

statement ok
CREATE VIEW view_2_tab3_789 AS SELECT pk, col0 FROM tab3 WHERE NOT (col3 < 7244)

statement ok
CREATE VIEW view_3_tab3_789 AS SELECT pk FROM view_1_tab3_789

query II rowsort label-4900-1
SELECT pk, col0 FROM tab3 WHERE col3 < 7244
----
1466 values hashing to 4cdedc121c50fb1017237ccf1c24c677

query II rowsort label-4900-2
SELECT pk, col0 FROM tab3 WHERE NOT (col3 < 7244)
----
534 values hashing to ff1277ed8cf3b574c1d2e15bd0993a02

query II rowsort label-4900-1
SELECT pk, col0 FROM view_1_tab3_789
----
1466 values hashing to 4cdedc121c50fb1017237ccf1c24c677

query II rowsort label-4900-2
SELECT pk, col0 FROM view_2_tab3_789
----
534 values hashing to ff1277ed8cf3b574c1d2e15bd0993a02

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 < 7244 UNION ALL SELECT pk, col0 FROM tab3 WHERE NOT (col3 < 7244)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_789 UNION ALL SELECT pk, col0 FROM view_2_tab3_789
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab3 WHERE col3 < 7244 UNION SELECT pk, col0 FROM tab3 WHERE NOT (col3 < 7244)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab3_789 UNION SELECT pk, col0 FROM view_2_tab3_789
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-4900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab3 WHERE col3 < 7244 ) AS tab3_789
----
733 values hashing to f93f97e29a441fe0bec443c1b2afbfac

query I rowsort label-4900-3
SELECT * FROM view_3_tab3_789
----
733 values hashing to f93f97e29a441fe0bec443c1b2afbfac

query I rowsort label-4900-3
SELECT pk FROM tab3 WHERE col3 < 7244
----
733 values hashing to f93f97e29a441fe0bec443c1b2afbfac

statement ok
DROP VIEW view_1_tab3_789

statement ok
DROP VIEW view_2_tab3_789

statement ok
DROP VIEW view_3_tab3_789

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab4_789') DROP VIEW view_1_tab4_789

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab4_789

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab4_789') DROP VIEW view_2_tab4_789

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab4_789

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab4_789') DROP VIEW view_3_tab4_789

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab4_789

statement ok
CREATE VIEW view_1_tab4_789 AS SELECT pk, col0 FROM tab4 WHERE col3 < 7244

statement ok
CREATE VIEW view_2_tab4_789 AS SELECT pk, col0 FROM tab4 WHERE NOT (col3 < 7244)

statement ok
CREATE VIEW view_3_tab4_789 AS SELECT pk FROM view_1_tab4_789

query II rowsort label-4900-1
SELECT pk, col0 FROM tab4 WHERE col3 < 7244
----
1466 values hashing to 4cdedc121c50fb1017237ccf1c24c677

query II rowsort label-4900-2
SELECT pk, col0 FROM tab4 WHERE NOT (col3 < 7244)
----
534 values hashing to ff1277ed8cf3b574c1d2e15bd0993a02

query II rowsort label-4900-1
SELECT pk, col0 FROM view_1_tab4_789
----
1466 values hashing to 4cdedc121c50fb1017237ccf1c24c677

query II rowsort label-4900-2
SELECT pk, col0 FROM view_2_tab4_789
----
534 values hashing to ff1277ed8cf3b574c1d2e15bd0993a02

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 < 7244 UNION ALL SELECT pk, col0 FROM tab4 WHERE NOT (col3 < 7244)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_789 UNION ALL SELECT pk, col0 FROM view_2_tab4_789
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab4 WHERE col3 < 7244 UNION SELECT pk, col0 FROM tab4 WHERE NOT (col3 < 7244)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab4_789 UNION SELECT pk, col0 FROM view_2_tab4_789
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-4900-3
SELECT pk FROM ( SELECT pk, col0 FROM tab4 WHERE col3 < 7244 ) AS tab4_789
----
733 values hashing to f93f97e29a441fe0bec443c1b2afbfac

query I rowsort label-4900-3
SELECT * FROM view_3_tab4_789
----
733 values hashing to f93f97e29a441fe0bec443c1b2afbfac

query I rowsort label-4900-3
SELECT pk FROM tab4 WHERE col3 < 7244
----
733 values hashing to f93f97e29a441fe0bec443c1b2afbfac

statement ok
DROP VIEW view_1_tab4_789

statement ok
DROP VIEW view_2_tab4_789

statement ok
DROP VIEW view_3_tab4_789

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab0_790') DROP VIEW view_1_tab0_790

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab0_790

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab0_790') DROP VIEW view_2_tab0_790

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab0_790

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab0_790') DROP VIEW view_3_tab0_790

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab0_790

statement ok
CREATE VIEW view_1_tab0_790 AS SELECT pk, col0 FROM tab0 WHERE col0 > 9359

statement ok
CREATE VIEW view_2_tab0_790 AS SELECT pk, col0 FROM tab0 WHERE NOT (col0 > 9359)

statement ok
CREATE VIEW view_3_tab0_790 AS SELECT pk FROM view_1_tab0_790

query II rowsort label-5000-1
SELECT pk, col0 FROM tab0 WHERE col0 > 9359
----
112 values hashing to 2dee0223d12de51aaa191b0bd36d8fe0

query II rowsort label-5000-2
SELECT pk, col0 FROM tab0 WHERE NOT (col0 > 9359)
----
1888 values hashing to 34ba0c01a91689458103f2e13c8c9d44

query II rowsort label-5000-1
SELECT pk, col0 FROM view_1_tab0_790
----
112 values hashing to 2dee0223d12de51aaa191b0bd36d8fe0

query II rowsort label-5000-2
SELECT pk, col0 FROM view_2_tab0_790
----
1888 values hashing to 34ba0c01a91689458103f2e13c8c9d44

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col0 > 9359 UNION ALL SELECT pk, col0 FROM tab0 WHERE NOT (col0 > 9359)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_790 UNION ALL SELECT pk, col0 FROM view_2_tab0_790
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab0 WHERE col0 > 9359 UNION SELECT pk, col0 FROM tab0 WHERE NOT (col0 > 9359)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab0_790 UNION SELECT pk, col0 FROM view_2_tab0_790
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-5000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab0 WHERE col0 > 9359 ) AS tab0_790
----
56 values hashing to 0a6c8143f9b8b7a36b7237fc901ea6ee

query I rowsort label-5000-3
SELECT * FROM view_3_tab0_790
----
56 values hashing to 0a6c8143f9b8b7a36b7237fc901ea6ee

query I rowsort label-5000-3
SELECT pk FROM tab0 WHERE col0 > 9359
----
56 values hashing to 0a6c8143f9b8b7a36b7237fc901ea6ee

statement ok
DROP VIEW view_1_tab0_790

statement ok
DROP VIEW view_2_tab0_790

statement ok
DROP VIEW view_3_tab0_790

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab1_790') DROP VIEW view_1_tab1_790

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab1_790

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab1_790') DROP VIEW view_2_tab1_790

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab1_790

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab1_790') DROP VIEW view_3_tab1_790

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab1_790

statement ok
CREATE VIEW view_1_tab1_790 AS SELECT pk, col0 FROM tab1 WHERE col0 > 9359

statement ok
CREATE VIEW view_2_tab1_790 AS SELECT pk, col0 FROM tab1 WHERE NOT (col0 > 9359)

statement ok
CREATE VIEW view_3_tab1_790 AS SELECT pk FROM view_1_tab1_790

query II rowsort label-5000-1
SELECT pk, col0 FROM tab1 WHERE col0 > 9359
----
112 values hashing to 2dee0223d12de51aaa191b0bd36d8fe0

query II rowsort label-5000-2
SELECT pk, col0 FROM tab1 WHERE NOT (col0 > 9359)
----
1888 values hashing to 34ba0c01a91689458103f2e13c8c9d44

query II rowsort label-5000-1
SELECT pk, col0 FROM view_1_tab1_790
----
112 values hashing to 2dee0223d12de51aaa191b0bd36d8fe0

query II rowsort label-5000-2
SELECT pk, col0 FROM view_2_tab1_790
----
1888 values hashing to 34ba0c01a91689458103f2e13c8c9d44

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col0 > 9359 UNION ALL SELECT pk, col0 FROM tab1 WHERE NOT (col0 > 9359)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_790 UNION ALL SELECT pk, col0 FROM view_2_tab1_790
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM tab1 WHERE col0 > 9359 UNION SELECT pk, col0 FROM tab1 WHERE NOT (col0 > 9359)
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query II rowsort label-all
SELECT pk, col0 FROM view_1_tab1_790 UNION SELECT pk, col0 FROM view_2_tab1_790
----
2000 values hashing to 12d3c36b94ceab1b8f0956216e427d32

query I rowsort label-5000-3
SELECT pk FROM ( SELECT pk, col0 FROM tab1 WHERE col0 > 9359 ) AS tab1_790
----
56 values hashing to 0a6c8143f9b8b7a36b7237fc901ea6ee

query I rowsort label-5000-3
SELECT * FROM view_3_tab1_790
----
56 values hashing to 0a6c8143f9b8b7a36b7237fc901ea6ee

query I rowsort label-5000-3
SELECT pk FROM tab1 WHERE col0 > 9359
----
56 values hashing to 0a6c8143f9b8b7a36b7237fc901ea6ee

statement ok
DROP VIEW view_1_tab1_790

statement ok
DROP VIEW view_2_tab1_790

statement ok
DROP VIEW view_3_tab1_790

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_1_tab2_790') DROP VIEW view_1_tab2_790

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_1_tab2_790

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_2_tab2_790') DROP VIEW view_2_tab2_790

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_2_tab2_790

onlyif mssql # IF EXISTS support: 
statement ok
IF EXISTS (SELECT TABLE_NAME FROM INFORMATION_SCHEMA.VIEWS WHERE TABLE_NAME = 'view_3_tab2_790') DROP VIEW view_3_tab2_790

skipif mssql # not compatible
statement ok
DROP VIEW IF EXISTS view_3_tab2_790

statement ok
CREATE VIEW view_1_tab2_790 AS SELECT pk, col0 FROM tab2 WHERE col0 > 9359

statement ok
CREATE VIEW view_2_tab2_790 AS SELECT pk, col0 FROM tab2 WHERE NOT (col0 > 9359)

statement ok
CREATE VIEW view_3_tab2_790 AS SELECT pk FROM view_1_tab2_790

query II rowsort label-5000-1
SELECT pk, col0 FROM tab2 WHERE col0 > 9359
----
112 values hashing to 2dee0223d12de51aaa191b0bd36d8fe0

query II rowsort label-5000-2
SELECT pk, col0 FROM tab2 WHERE NOT (col0 > 9359)
----
1888 values hashing to 34ba0c01a91689458103f2e13c8c9d44

query II rowsort label-5000-1
SELECT pk, col0 FROM view_1_tab2_790
----
112 values hashing to 2dee0223d12de51aaa191b0bd36d8fe0

query II rowsort label-5000-2
SELECT pk, col0 FROM view_2_tab2_790
----
1888 values hashing to 34ba0c01a91689458103f2e13c8c9d44

query II rowsort label-all
SELECT pk, col0 FROM tab2 WHERE col0 > 9359 UNION ALL SELECT pk, col0 FROM tab2 WHERE NOT (col0 > 9359)
----
2000 values hashi