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,6,4.67,'wdbsg',4,2.89,'altmp')

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

statement ok
CREATE INDEX idx_tab1_0 on tab1 (col0)

statement ok
CREATE INDEX idx_tab1_1 on tab1 (col1)

statement ok
CREATE INDEX idx_tab1_3 on tab1 (col3)

statement ok
CREATE INDEX idx_tab1_4 on tab1 (col4)

statement ok
INSERT INTO tab1 SELECT * FROM tab0

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

statement ok
CREATE UNIQUE INDEX idx_tab2_0 ON tab2 (col3,col1 DESC)

statement ok
CREATE INDEX idx_tab2_1 ON tab2 (col1 DESC)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

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

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

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

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

statement ok
INSERT INTO tab3 SELECT * FROM tab0

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

statement ok
CREATE INDEX idx_tab4_0 ON tab4 (col4,col3 DESC)

statement ok
CREATE INDEX idx_tab4_2 ON tab4 (col4 DESC,col0 DESC)

statement ok
CREATE INDEX idx_tab4_4 ON tab4 (col3 DESC)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE col4 > 2.27

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col4 > 2.27
----

query I rowsort label-0
SELECT pk FROM tab0 WHERE NOT (col4 > 2.27)
----

statement ok
DELETE FROM tab1 WHERE col4 > 2.27

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col4 > 2.27
----

query I rowsort label-0
SELECT pk FROM tab1 WHERE NOT (col4 > 2.27)
----

statement ok
DELETE FROM tab2 WHERE col4 > 2.27

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col4 > 2.27
----

query I rowsort label-0
SELECT pk FROM tab2 WHERE NOT (col4 > 2.27)
----

statement ok
DELETE FROM tab3 WHERE col4 > 2.27

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col4 > 2.27
----

query I rowsort label-0
SELECT pk FROM tab3 WHERE NOT (col4 > 2.27)
----

statement ok
DELETE FROM tab4 WHERE col4 > 2.27

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col4 > 2.27
----

query I rowsort label-0
SELECT pk FROM tab4 WHERE NOT (col4 > 2.27)
----

statement ok
DROP TABLE tab0

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,5,3.7,'lsinl',7,5.65,'vjnly')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE UNIQUE INDEX idx_tab2_0 ON tab2 (col1)

statement ok
CREATE INDEX idx_tab2_4 ON tab2 (col3 DESC,col0 DESC)

statement ok
CREATE INDEX idx_tab2_5 ON tab2 (col0 DESC)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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 DESC,col3,col1 DESC)

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

statement ok
CREATE INDEX idx_tab3_4 ON tab3 (col0)

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

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

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

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

statement ok
CREATE INDEX idx_tab4_4 ON tab4 (col3)

statement ok
CREATE INDEX idx_tab4_5 ON tab4 (col1 DESC)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE (col0 > 5 AND col4 < 1.46 AND col3 <= 3 AND (((col0 <= 2 AND ((col3 > 2 OR col1 IN (0.65,5.48,6.60) AND (col1 < 7.35) AND ((col3 < 0) OR (((col1 > 5.97)))) OR col1 >= 4.0))) AND col4 IN (1.62,7.48,3.46,8.30,1.17))) AND (col1 > 5.40) AND col4 = 2.53)

query I rowsort label-empty
SELECT pk FROM tab0 WHERE (col0 > 5 AND col4 < 1.46 AND col3 <= 3 AND (((col0 <= 2 AND ((col3 > 2 OR col1 IN (0.65,5.48,6.60) AND (col1 < 7.35) AND ((col3 < 0) OR (((col1 > 5.97)))) OR col1 >= 4.0))) AND col4 IN (1.62,7.48,3.46,8.30,1.17))) AND (col1 > 5.40) AND col4 = 2.53)
----

query I rowsort label-15
SELECT pk FROM tab0 WHERE NOT ((col0 > 5 AND col4 < 1.46 AND col3 <= 3 AND (((col0 <= 2 AND ((col3 > 2 OR col1 IN (0.65,5.48,6.60) AND (col1 < 7.35) AND ((col3 < 0) OR (((col1 > 5.97)))) OR col1 >= 4.0))) AND col4 IN (1.62,7.48,3.46,8.30,1.17))) AND (col1 > 5.40) AND col4 = 2.53))
----
0

statement ok
DELETE FROM tab1 WHERE (col0 > 5 AND col4 < 1.46 AND col3 <= 3 AND (((col0 <= 2 AND ((col3 > 2 OR col1 IN (0.65,5.48,6.60) AND (col1 < 7.35) AND ((col3 < 0) OR (((col1 > 5.97)))) OR col1 >= 4.0))) AND col4 IN (1.62,7.48,3.46,8.30,1.17))) AND (col1 > 5.40) AND col4 = 2.53)

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (col0 > 5 AND col4 < 1.46 AND col3 <= 3 AND (((col0 <= 2 AND ((col3 > 2 OR col1 IN (0.65,5.48,6.60) AND (col1 < 7.35) AND ((col3 < 0) OR (((col1 > 5.97)))) OR col1 >= 4.0))) AND col4 IN (1.62,7.48,3.46,8.30,1.17))) AND (col1 > 5.40) AND col4 = 2.53)
----

query I rowsort label-15
SELECT pk FROM tab1 WHERE NOT ((col0 > 5 AND col4 < 1.46 AND col3 <= 3 AND (((col0 <= 2 AND ((col3 > 2 OR col1 IN (0.65,5.48,6.60) AND (col1 < 7.35) AND ((col3 < 0) OR (((col1 > 5.97)))) OR col1 >= 4.0))) AND col4 IN (1.62,7.48,3.46,8.30,1.17))) AND (col1 > 5.40) AND col4 = 2.53))
----
0

statement ok
DELETE FROM tab2 WHERE (col0 > 5 AND col4 < 1.46 AND col3 <= 3 AND (((col0 <= 2 AND ((col3 > 2 OR col1 IN (0.65,5.48,6.60) AND (col1 < 7.35) AND ((col3 < 0) OR (((col1 > 5.97)))) OR col1 >= 4.0))) AND col4 IN (1.62,7.48,3.46,8.30,1.17))) AND (col1 > 5.40) AND col4 = 2.53)

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (col0 > 5 AND col4 < 1.46 AND col3 <= 3 AND (((col0 <= 2 AND ((col3 > 2 OR col1 IN (0.65,5.48,6.60) AND (col1 < 7.35) AND ((col3 < 0) OR (((col1 > 5.97)))) OR col1 >= 4.0))) AND col4 IN (1.62,7.48,3.46,8.30,1.17))) AND (col1 > 5.40) AND col4 = 2.53)
----

query I rowsort label-15
SELECT pk FROM tab2 WHERE NOT ((col0 > 5 AND col4 < 1.46 AND col3 <= 3 AND (((col0 <= 2 AND ((col3 > 2 OR col1 IN (0.65,5.48,6.60) AND (col1 < 7.35) AND ((col3 < 0) OR (((col1 > 5.97)))) OR col1 >= 4.0))) AND col4 IN (1.62,7.48,3.46,8.30,1.17))) AND (col1 > 5.40) AND col4 = 2.53))
----
0

statement ok
DELETE FROM tab3 WHERE (col0 > 5 AND col4 < 1.46 AND col3 <= 3 AND (((col0 <= 2 AND ((col3 > 2 OR col1 IN (0.65,5.48,6.60) AND (col1 < 7.35) AND ((col3 < 0) OR (((col1 > 5.97)))) OR col1 >= 4.0))) AND col4 IN (1.62,7.48,3.46,8.30,1.17))) AND (col1 > 5.40) AND col4 = 2.53)

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (col0 > 5 AND col4 < 1.46 AND col3 <= 3 AND (((col0 <= 2 AND ((col3 > 2 OR col1 IN (0.65,5.48,6.60) AND (col1 < 7.35) AND ((col3 < 0) OR (((col1 > 5.97)))) OR col1 >= 4.0))) AND col4 IN (1.62,7.48,3.46,8.30,1.17))) AND (col1 > 5.40) AND col4 = 2.53)
----

query I rowsort label-15
SELECT pk FROM tab3 WHERE NOT ((col0 > 5 AND col4 < 1.46 AND col3 <= 3 AND (((col0 <= 2 AND ((col3 > 2 OR col1 IN (0.65,5.48,6.60) AND (col1 < 7.35) AND ((col3 < 0) OR (((col1 > 5.97)))) OR col1 >= 4.0))) AND col4 IN (1.62,7.48,3.46,8.30,1.17))) AND (col1 > 5.40) AND col4 = 2.53))
----
0

statement ok
DELETE FROM tab4 WHERE (col0 > 5 AND col4 < 1.46 AND col3 <= 3 AND (((col0 <= 2 AND ((col3 > 2 OR col1 IN (0.65,5.48,6.60) AND (col1 < 7.35) AND ((col3 < 0) OR (((col1 > 5.97)))) OR col1 >= 4.0))) AND col4 IN (1.62,7.48,3.46,8.30,1.17))) AND (col1 > 5.40) AND col4 = 2.53)

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (col0 > 5 AND col4 < 1.46 AND col3 <= 3 AND (((col0 <= 2 AND ((col3 > 2 OR col1 IN (0.65,5.48,6.60) AND (col1 < 7.35) AND ((col3 < 0) OR (((col1 > 5.97)))) OR col1 >= 4.0))) AND col4 IN (1.62,7.48,3.46,8.30,1.17))) AND (col1 > 5.40) AND col4 = 2.53)
----

query I rowsort label-15
SELECT pk FROM tab4 WHERE NOT ((col0 > 5 AND col4 < 1.46 AND col3 <= 3 AND (((col0 <= 2 AND ((col3 > 2 OR col1 IN (0.65,5.48,6.60) AND (col1 < 7.35) AND ((col3 < 0) OR (((col1 > 5.97)))) OR col1 >= 4.0))) AND col4 IN (1.62,7.48,3.46,8.30,1.17))) AND (col1 > 5.40) AND col4 = 2.53))
----
0

statement ok
DELETE FROM tab0 WHERE (col0 > 3)

query I rowsort label-empty
SELECT pk FROM tab0 WHERE (col0 > 3)
----

query I rowsort label-30
SELECT pk FROM tab0 WHERE NOT ((col0 > 3))
----

statement ok
DELETE FROM tab1 WHERE (col0 > 3)

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (col0 > 3)
----

query I rowsort label-30
SELECT pk FROM tab1 WHERE NOT ((col0 > 3))
----

statement ok
DELETE FROM tab2 WHERE (col0 > 3)

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (col0 > 3)
----

query I rowsort label-30
SELECT pk FROM tab2 WHERE NOT ((col0 > 3))
----

statement ok
DELETE FROM tab3 WHERE (col0 > 3)

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (col0 > 3)
----

query I rowsort label-30
SELECT pk FROM tab3 WHERE NOT ((col0 > 3))
----

statement ok
DELETE FROM tab4 WHERE (col0 > 3)

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (col0 > 3)
----

query I rowsort label-30
SELECT pk FROM tab4 WHERE NOT ((col0 > 3))
----

statement ok
DROP TABLE tab0

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,5,5.36,'agduw',1,3.54,'mcggq')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE UNIQUE INDEX idx_tab2_0 ON tab2 (col0 DESC)

statement ok
CREATE INDEX idx_tab2_3 ON tab2 (col3 DESC)

statement ok
CREATE INDEX idx_tab2_5 ON tab2 (col4 DESC)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

statement ok
CREATE INDEX idx_tab3_0 ON tab3 (col0)

statement ok
CREATE INDEX idx_tab3_2 ON tab3 (col4)

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

statement ok
CREATE INDEX idx_tab3_5 ON tab3 (col1 DESC)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE INDEX idx_tab4_0 ON tab4 (col0 DESC)

statement ok
CREATE INDEX idx_tab4_3 ON tab4 (col4)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE col0 > 3

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col0 > 3
----

query I rowsort label-45
SELECT pk FROM tab0 WHERE NOT (col0 > 3)
----

statement ok
DELETE FROM tab1 WHERE col0 > 3

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col0 > 3
----

query I rowsort label-45
SELECT pk FROM tab1 WHERE NOT (col0 > 3)
----

statement ok
DELETE FROM tab2 WHERE col0 > 3

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col0 > 3
----

query I rowsort label-45
SELECT pk FROM tab2 WHERE NOT (col0 > 3)
----

statement ok
DELETE FROM tab3 WHERE col0 > 3

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col0 > 3
----

query I rowsort label-45
SELECT pk FROM tab3 WHERE NOT (col0 > 3)
----

statement ok
DELETE FROM tab4 WHERE col0 > 3

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col0 > 3
----

query I rowsort label-45
SELECT pk FROM tab4 WHERE NOT (col0 > 3)
----

statement ok
DROP TABLE tab0

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,7,2.95,'iumjs',8,9.89,'sonng')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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,col1 DESC)

statement ok
CREATE INDEX idx_tab2_2 ON tab2 (col4)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

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

statement ok
CREATE UNIQUE INDEX idx_tab3_1 ON tab3 (col4)

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

statement ok
CREATE UNIQUE INDEX idx_tab3_4 ON tab3 (col1,col0)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE INDEX idx_tab4_0 ON tab4 (col4,col3 DESC)

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

statement ok
CREATE INDEX idx_tab4_2 ON tab4 (col1,col4 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab4_5 ON tab4 (col3 DESC,col0)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE col0 > 4

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col0 > 4
----

query I rowsort label-60
SELECT pk FROM tab0 WHERE NOT (col0 > 4)
----

statement ok
DELETE FROM tab1 WHERE col0 > 4

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col0 > 4
----

query I rowsort label-60
SELECT pk FROM tab1 WHERE NOT (col0 > 4)
----

statement ok
DELETE FROM tab2 WHERE col0 > 4

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col0 > 4
----

query I rowsort label-60
SELECT pk FROM tab2 WHERE NOT (col0 > 4)
----

statement ok
DELETE FROM tab3 WHERE col0 > 4

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col0 > 4
----

query I rowsort label-60
SELECT pk FROM tab3 WHERE NOT (col0 > 4)
----

statement ok
DELETE FROM tab4 WHERE col0 > 4

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col0 > 4
----

query I rowsort label-60
SELECT pk FROM tab4 WHERE NOT (col0 > 4)
----

statement ok
DROP TABLE tab0

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,3,8.33,'idqlg',5,7.37,'mduir')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE UNIQUE INDEX idx_tab2_0 ON tab2 (col1 DESC,col3)

statement ok
CREATE UNIQUE INDEX idx_tab2_1 ON tab2 (col0,col3)

statement ok
CREATE UNIQUE INDEX idx_tab2_3 ON tab2 (col0,col4)

statement ok
CREATE UNIQUE INDEX idx_tab2_4 ON tab2 (col4 DESC)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

statement ok
CREATE INDEX idx_tab3_0 ON tab3 (col1)

statement ok
CREATE UNIQUE INDEX idx_tab3_1 ON tab3 (col3 DESC)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE UNIQUE INDEX idx_tab4_0 ON tab4 (col1,col4 DESC)

statement ok
CREATE INDEX idx_tab4_1 ON tab4 (col0 DESC)

statement ok
CREATE INDEX idx_tab4_3 ON tab4 (col3)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE col3 IS NULL

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

query I rowsort label-75
SELECT pk FROM tab0 WHERE NOT (col3 IS NULL)
----
0

statement ok
DELETE FROM tab1 WHERE col3 IS NULL

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

query I rowsort label-75
SELECT pk FROM tab1 WHERE NOT (col3 IS NULL)
----
0

statement ok
DELETE FROM tab2 WHERE col3 IS NULL

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

query I rowsort label-75
SELECT pk FROM tab2 WHERE NOT (col3 IS NULL)
----
0

statement ok
DELETE FROM tab3 WHERE col3 IS NULL

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

query I rowsort label-75
SELECT pk FROM tab3 WHERE NOT (col3 IS NULL)
----
0

statement ok
DELETE FROM tab4 WHERE col3 IS NULL

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

query I rowsort label-75
SELECT pk FROM tab4 WHERE NOT (col3 IS NULL)
----
0

statement ok
DELETE FROM tab0 WHERE col0 IS NULL OR (col4 = 1.5)

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col0 IS NULL OR (col4 = 1.5)
----

query I rowsort label-90
SELECT pk FROM tab0 WHERE NOT (col0 IS NULL OR (col4 = 1.5))
----
0

statement ok
DELETE FROM tab1 WHERE col0 IS NULL OR (col4 = 1.5)

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col0 IS NULL OR (col4 = 1.5)
----

query I rowsort label-90
SELECT pk FROM tab1 WHERE NOT (col0 IS NULL OR (col4 = 1.5))
----
0

statement ok
DELETE FROM tab2 WHERE col0 IS NULL OR (col4 = 1.5)

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col0 IS NULL OR (col4 = 1.5)
----

query I rowsort label-90
SELECT pk FROM tab2 WHERE NOT (col0 IS NULL OR (col4 = 1.5))
----
0

statement ok
DELETE FROM tab3 WHERE col0 IS NULL OR (col4 = 1.5)

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col0 IS NULL OR (col4 = 1.5)
----

query I rowsort label-90
SELECT pk FROM tab3 WHERE NOT (col0 IS NULL OR (col4 = 1.5))
----
0

statement ok
DELETE FROM tab4 WHERE col0 IS NULL OR (col4 = 1.5)

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col0 IS NULL OR (col4 = 1.5)
----

query I rowsort label-90
SELECT pk FROM tab4 WHERE NOT (col0 IS NULL OR (col4 = 1.5))
----
0

statement ok
DELETE FROM tab0 WHERE (col4 > 3.71 AND col4 > 3.17)

query I rowsort label-empty
SELECT pk FROM tab0 WHERE (col4 > 3.71 AND col4 > 3.17)
----

query I rowsort label-105
SELECT pk FROM tab0 WHERE NOT ((col4 > 3.71 AND col4 > 3.17))
----

statement ok
DELETE FROM tab1 WHERE (col4 > 3.71 AND col4 > 3.17)

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (col4 > 3.71 AND col4 > 3.17)
----

query I rowsort label-105
SELECT pk FROM tab1 WHERE NOT ((col4 > 3.71 AND col4 > 3.17))
----

statement ok
DELETE FROM tab2 WHERE (col4 > 3.71 AND col4 > 3.17)

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (col4 > 3.71 AND col4 > 3.17)
----

query I rowsort label-105
SELECT pk FROM tab2 WHERE NOT ((col4 > 3.71 AND col4 > 3.17))
----

statement ok
DELETE FROM tab3 WHERE (col4 > 3.71 AND col4 > 3.17)

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (col4 > 3.71 AND col4 > 3.17)
----

query I rowsort label-105
SELECT pk FROM tab3 WHERE NOT ((col4 > 3.71 AND col4 > 3.17))
----

statement ok
DELETE FROM tab4 WHERE (col4 > 3.71 AND col4 > 3.17)

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (col4 > 3.71 AND col4 > 3.17)
----

query I rowsort label-105
SELECT pk FROM tab4 WHERE NOT ((col4 > 3.71 AND col4 > 3.17))
----

statement ok
DROP TABLE tab0

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,4,8.27,'jerky',0,8.73,'ksfzg')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE UNIQUE INDEX idx_tab2_0 ON tab2 (col4 DESC,col3,col1)

statement ok
CREATE INDEX idx_tab2_1 ON tab2 (col1,col0)

statement ok
CREATE INDEX idx_tab2_2 ON tab2 (col3)

statement ok
CREATE INDEX idx_tab2_5 ON tab2 (col4,col1)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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_2 ON tab3 (col4,col0)

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

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE UNIQUE INDEX idx_tab4_0 ON tab4 (col1 DESC,col4,col3 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab4_2 ON tab4 (col3 DESC)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE (col3 < 8) AND col3 BETWEEN 7 AND 2

query I rowsort label-empty
SELECT pk FROM tab0 WHERE (col3 < 8) AND col3 BETWEEN 7 AND 2
----

query I rowsort label-120
SELECT pk FROM tab0 WHERE NOT ((col3 < 8) AND col3 BETWEEN 7 AND 2)
----
0

statement ok
DELETE FROM tab1 WHERE (col3 < 8) AND col3 BETWEEN 7 AND 2

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (col3 < 8) AND col3 BETWEEN 7 AND 2
----

query I rowsort label-120
SELECT pk FROM tab1 WHERE NOT ((col3 < 8) AND col3 BETWEEN 7 AND 2)
----
0

statement ok
DELETE FROM tab2 WHERE (col3 < 8) AND col3 BETWEEN 7 AND 2

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (col3 < 8) AND col3 BETWEEN 7 AND 2
----

query I rowsort label-120
SELECT pk FROM tab2 WHERE NOT ((col3 < 8) AND col3 BETWEEN 7 AND 2)
----
0

statement ok
DELETE FROM tab3 WHERE (col3 < 8) AND col3 BETWEEN 7 AND 2

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (col3 < 8) AND col3 BETWEEN 7 AND 2
----

query I rowsort label-120
SELECT pk FROM tab3 WHERE NOT ((col3 < 8) AND col3 BETWEEN 7 AND 2)
----
0

statement ok
DELETE FROM tab4 WHERE (col3 < 8) AND col3 BETWEEN 7 AND 2

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (col3 < 8) AND col3 BETWEEN 7 AND 2
----

query I rowsort label-120
SELECT pk FROM tab4 WHERE NOT ((col3 < 8) AND col3 BETWEEN 7 AND 2)
----
0

statement ok
DELETE FROM tab0 WHERE col1 <= 8.73

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col1 <= 8.73
----

query I rowsort label-135
SELECT pk FROM tab0 WHERE NOT (col1 <= 8.73)
----

statement ok
DELETE FROM tab1 WHERE col1 <= 8.73

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col1 <= 8.73
----

query I rowsort label-135
SELECT pk FROM tab1 WHERE NOT (col1 <= 8.73)
----

statement ok
DELETE FROM tab2 WHERE col1 <= 8.73

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col1 <= 8.73
----

query I rowsort label-135
SELECT pk FROM tab2 WHERE NOT (col1 <= 8.73)
----

statement ok
DELETE FROM tab3 WHERE col1 <= 8.73

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col1 <= 8.73
----

query I rowsort label-135
SELECT pk FROM tab3 WHERE NOT (col1 <= 8.73)
----

statement ok
DELETE FROM tab4 WHERE col1 <= 8.73

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col1 <= 8.73
----

query I rowsort label-135
SELECT pk FROM tab4 WHERE NOT (col1 <= 8.73)
----

statement ok
DROP TABLE tab0

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,9,8.77,'biorb',3,3.78,'bnnvx')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE UNIQUE INDEX idx_tab2_0 ON tab2 (col0 DESC,col1)

statement ok
CREATE UNIQUE INDEX idx_tab2_1 ON tab2 (col4,col1,col3)

statement ok
CREATE UNIQUE INDEX idx_tab2_2 ON tab2 (col1)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

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

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

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE INDEX idx_tab4_1 ON tab4 (col4)

statement ok
CREATE UNIQUE INDEX idx_tab4_2 ON tab4 (col3 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab4_3 ON tab4 (col0)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE col4 >= 6.18

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col4 >= 6.18
----

query I rowsort label-150
SELECT pk FROM tab0 WHERE NOT (col4 >= 6.18)
----
0

statement ok
DELETE FROM tab1 WHERE col4 >= 6.18

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col4 >= 6.18
----

query I rowsort label-150
SELECT pk FROM tab1 WHERE NOT (col4 >= 6.18)
----
0

statement ok
DELETE FROM tab2 WHERE col4 >= 6.18

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col4 >= 6.18
----

query I rowsort label-150
SELECT pk FROM tab2 WHERE NOT (col4 >= 6.18)
----
0

statement ok
DELETE FROM tab3 WHERE col4 >= 6.18

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col4 >= 6.18
----

query I rowsort label-150
SELECT pk FROM tab3 WHERE NOT (col4 >= 6.18)
----
0

statement ok
DELETE FROM tab4 WHERE col4 >= 6.18

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col4 >= 6.18
----

query I rowsort label-150
SELECT pk FROM tab4 WHERE NOT (col4 >= 6.18)
----
0

statement ok
DELETE FROM tab0 WHERE ((col0 < 0))

query I rowsort label-empty
SELECT pk FROM tab0 WHERE ((col0 < 0))
----

query I rowsort label-165
SELECT pk FROM tab0 WHERE NOT (((col0 < 0)))
----
0

statement ok
DELETE FROM tab1 WHERE ((col0 < 0))

query I rowsort label-empty
SELECT pk FROM tab1 WHERE ((col0 < 0))
----

query I rowsort label-165
SELECT pk FROM tab1 WHERE NOT (((col0 < 0)))
----
0

statement ok
DELETE FROM tab2 WHERE ((col0 < 0))

query I rowsort label-empty
SELECT pk FROM tab2 WHERE ((col0 < 0))
----

query I rowsort label-165
SELECT pk FROM tab2 WHERE NOT (((col0 < 0)))
----
0

statement ok
DELETE FROM tab3 WHERE ((col0 < 0))

query I rowsort label-empty
SELECT pk FROM tab3 WHERE ((col0 < 0))
----

query I rowsort label-165
SELECT pk FROM tab3 WHERE NOT (((col0 < 0)))
----
0

statement ok
DELETE FROM tab4 WHERE ((col0 < 0))

query I rowsort label-empty
SELECT pk FROM tab4 WHERE ((col0 < 0))
----

query I rowsort label-165
SELECT pk FROM tab4 WHERE NOT (((col0 < 0)))
----
0

statement ok
DROP TABLE tab0

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,2,6.56,'lxnid',9,8.76,'arxav')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE UNIQUE INDEX idx_tab2_0 ON tab2 (col1 DESC)

statement ok
CREATE INDEX idx_tab2_1 ON tab2 (col0 DESC,col4 DESC)

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

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

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

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

statement ok
CREATE UNIQUE INDEX idx_tab3_2 ON tab3 (col0)

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

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE INDEX idx_tab4_0 ON tab4 (col0 DESC,col4)

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

statement ok
CREATE UNIQUE INDEX idx_tab4_5 ON tab4 (col1 DESC,col4)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE (col4 < 5.66 AND col3 > 3)

query I rowsort label-empty
SELECT pk FROM tab0 WHERE (col4 < 5.66 AND col3 > 3)
----

query I rowsort label-180
SELECT pk FROM tab0 WHERE NOT ((col4 < 5.66 AND col3 > 3))
----
0

statement ok
DELETE FROM tab1 WHERE (col4 < 5.66 AND col3 > 3)

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (col4 < 5.66 AND col3 > 3)
----

query I rowsort label-180
SELECT pk FROM tab1 WHERE NOT ((col4 < 5.66 AND col3 > 3))
----
0

statement ok
DELETE FROM tab2 WHERE (col4 < 5.66 AND col3 > 3)

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (col4 < 5.66 AND col3 > 3)
----

query I rowsort label-180
SELECT pk FROM tab2 WHERE NOT ((col4 < 5.66 AND col3 > 3))
----
0

statement ok
DELETE FROM tab3 WHERE (col4 < 5.66 AND col3 > 3)

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (col4 < 5.66 AND col3 > 3)
----

query I rowsort label-180
SELECT pk FROM tab3 WHERE NOT ((col4 < 5.66 AND col3 > 3))
----
0

statement ok
DELETE FROM tab4 WHERE (col4 < 5.66 AND col3 > 3)

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (col4 < 5.66 AND col3 > 3)
----

query I rowsort label-180
SELECT pk FROM tab4 WHERE NOT ((col4 < 5.66 AND col3 > 3))
----
0

statement ok
DELETE FROM tab0 WHERE col3 >= 1 AND col0 < 6 AND col0 >= 2

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col3 >= 1 AND col0 < 6 AND col0 >= 2
----

query I rowsort label-195
SELECT pk FROM tab0 WHERE NOT (col3 >= 1 AND col0 < 6 AND col0 >= 2)
----

statement ok
DELETE FROM tab1 WHERE col3 >= 1 AND col0 < 6 AND col0 >= 2

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col3 >= 1 AND col0 < 6 AND col0 >= 2
----

query I rowsort label-195
SELECT pk FROM tab1 WHERE NOT (col3 >= 1 AND col0 < 6 AND col0 >= 2)
----

statement ok
DELETE FROM tab2 WHERE col3 >= 1 AND col0 < 6 AND col0 >= 2

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col3 >= 1 AND col0 < 6 AND col0 >= 2
----

query I rowsort label-195
SELECT pk FROM tab2 WHERE NOT (col3 >= 1 AND col0 < 6 AND col0 >= 2)
----

statement ok
DELETE FROM tab3 WHERE col3 >= 1 AND col0 < 6 AND col0 >= 2

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col3 >= 1 AND col0 < 6 AND col0 >= 2
----

query I rowsort label-195
SELECT pk FROM tab3 WHERE NOT (col3 >= 1 AND col0 < 6 AND col0 >= 2)
----

statement ok
DELETE FROM tab4 WHERE col3 >= 1 AND col0 < 6 AND col0 >= 2

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col3 >= 1 AND col0 < 6 AND col0 >= 2
----

query I rowsort label-195
SELECT pk FROM tab4 WHERE NOT (col3 >= 1 AND col0 < 6 AND col0 >= 2)
----

statement ok
DROP TABLE tab0

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,6,3.7,'agwgo',0,9.29,'hccgq')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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 (col1 DESC,col0 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab2_1 ON tab2 (col0)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

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

statement ok
CREATE UNIQUE INDEX idx_tab3_1 ON tab3 (col3 DESC)

statement ok
CREATE INDEX idx_tab3_3 ON tab3 (col4 DESC)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE UNIQUE INDEX idx_tab4_0 ON tab4 (col4 DESC,col3)

statement ok
CREATE INDEX idx_tab4_1 ON tab4 (col3 DESC,col4 DESC)

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

statement ok
CREATE UNIQUE INDEX idx_tab4_4 ON tab4 (col0 DESC,col3)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE ((((((col3 = 4))) AND (((col3 > 2 OR ((col3 >= 3))))) OR ((col0 > 5) AND (col0 > 6) AND col1 < 6.69) OR ((col0 <= 0 AND col4 < 6.53 OR col3 >= 8 AND col0 IS NULL) AND col3 > 2 OR col0 > 2 AND col4 IS NULL AND col4 IS NULL) OR (((((col0 IS NULL))))) OR ((col0 < 7) OR col0 IS NULL) AND col3 <= 4) OR (col1 >= 9.36 OR (col1 < 7.70) AND col0 < 9) AND col3 < 0)) OR col1 IS NULL

query I rowsort label-empty
SELECT pk FROM tab0 WHERE ((((((col3 = 4))) AND (((col3 > 2 OR ((col3 >= 3))))) OR ((col0 > 5) AND (col0 > 6) AND col1 < 6.69) OR ((col0 <= 0 AND col4 < 6.53 OR col3 >= 8 AND col0 IS NULL) AND col3 > 2 OR col0 > 2 AND col4 IS NULL AND col4 IS NULL) OR (((((col0 IS NULL))))) OR ((col0 < 7) OR col0 IS NULL) AND col3 <= 4) OR (col1 >= 9.36 OR (col1 < 7.70) AND col0 < 9) AND col3 < 0)) OR col1 IS NULL
----

query I rowsort label-210
SELECT pk FROM tab0 WHERE NOT (((((((col3 = 4))) AND (((col3 > 2 OR ((col3 >= 3))))) OR ((col0 > 5) AND (col0 > 6) AND col1 < 6.69) OR ((col0 <= 0 AND col4 < 6.53 OR col3 >= 8 AND col0 IS NULL) AND col3 > 2 OR col0 > 2 AND col4 IS NULL AND col4 IS NULL) OR (((((col0 IS NULL))))) OR ((col0 < 7) OR col0 IS NULL) AND col3 <= 4) OR (col1 >= 9.36 OR (col1 < 7.70) AND col0 < 9) AND col3 < 0)) OR col1 IS NULL)
----

statement ok
DELETE FROM tab1 WHERE ((((((col3 = 4))) AND (((col3 > 2 OR ((col3 >= 3))))) OR ((col0 > 5) AND (col0 > 6) AND col1 < 6.69) OR ((col0 <= 0 AND col4 < 6.53 OR col3 >= 8 AND col0 IS NULL) AND col3 > 2 OR col0 > 2 AND col4 IS NULL AND col4 IS NULL) OR (((((col0 IS NULL))))) OR ((col0 < 7) OR col0 IS NULL) AND col3 <= 4) OR (col1 >= 9.36 OR (col1 < 7.70) AND col0 < 9) AND col3 < 0)) OR col1 IS NULL

query I rowsort label-empty
SELECT pk FROM tab1 WHERE ((((((col3 = 4))) AND (((col3 > 2 OR ((col3 >= 3))))) OR ((col0 > 5) AND (col0 > 6) AND col1 < 6.69) OR ((col0 <= 0 AND col4 < 6.53 OR col3 >= 8 AND col0 IS NULL) AND col3 > 2 OR col0 > 2 AND col4 IS NULL AND col4 IS NULL) OR (((((col0 IS NULL))))) OR ((col0 < 7) OR col0 IS NULL) AND col3 <= 4) OR (col1 >= 9.36 OR (col1 < 7.70) AND col0 < 9) AND col3 < 0)) OR col1 IS NULL
----

query I rowsort label-210
SELECT pk FROM tab1 WHERE NOT (((((((col3 = 4))) AND (((col3 > 2 OR ((col3 >= 3))))) OR ((col0 > 5) AND (col0 > 6) AND col1 < 6.69) OR ((col0 <= 0 AND col4 < 6.53 OR col3 >= 8 AND col0 IS NULL) AND col3 > 2 OR col0 > 2 AND col4 IS NULL AND col4 IS NULL) OR (((((col0 IS NULL))))) OR ((col0 < 7) OR col0 IS NULL) AND col3 <= 4) OR (col1 >= 9.36 OR (col1 < 7.70) AND col0 < 9) AND col3 < 0)) OR col1 IS NULL)
----

statement ok
DELETE FROM tab2 WHERE ((((((col3 = 4))) AND (((col3 > 2 OR ((col3 >= 3))))) OR ((col0 > 5) AND (col0 > 6) AND col1 < 6.69) OR ((col0 <= 0 AND col4 < 6.53 OR col3 >= 8 AND col0 IS NULL) AND col3 > 2 OR col0 > 2 AND col4 IS NULL AND col4 IS NULL) OR (((((col0 IS NULL))))) OR ((col0 < 7) OR col0 IS NULL) AND col3 <= 4) OR (col1 >= 9.36 OR (col1 < 7.70) AND col0 < 9) AND col3 < 0)) OR col1 IS NULL

query I rowsort label-empty
SELECT pk FROM tab2 WHERE ((((((col3 = 4))) AND (((col3 > 2 OR ((col3 >= 3))))) OR ((col0 > 5) AND (col0 > 6) AND col1 < 6.69) OR ((col0 <= 0 AND col4 < 6.53 OR col3 >= 8 AND col0 IS NULL) AND col3 > 2 OR col0 > 2 AND col4 IS NULL AND col4 IS NULL) OR (((((col0 IS NULL))))) OR ((col0 < 7) OR col0 IS NULL) AND col3 <= 4) OR (col1 >= 9.36 OR (col1 < 7.70) AND col0 < 9) AND col3 < 0)) OR col1 IS NULL
----

query I rowsort label-210
SELECT pk FROM tab2 WHERE NOT (((((((col3 = 4))) AND (((col3 > 2 OR ((col3 >= 3))))) OR ((col0 > 5) AND (col0 > 6) AND col1 < 6.69) OR ((col0 <= 0 AND col4 < 6.53 OR col3 >= 8 AND col0 IS NULL) AND col3 > 2 OR col0 > 2 AND col4 IS NULL AND col4 IS NULL) OR (((((col0 IS NULL))))) OR ((col0 < 7) OR col0 IS NULL) AND col3 <= 4) OR (col1 >= 9.36 OR (col1 < 7.70) AND col0 < 9) AND col3 < 0)) OR col1 IS NULL)
----

statement ok
DELETE FROM tab3 WHERE ((((((col3 = 4))) AND (((col3 > 2 OR ((col3 >= 3))))) OR ((col0 > 5) AND (col0 > 6) AND col1 < 6.69) OR ((col0 <= 0 AND col4 < 6.53 OR col3 >= 8 AND col0 IS NULL) AND col3 > 2 OR col0 > 2 AND col4 IS NULL AND col4 IS NULL) OR (((((col0 IS NULL))))) OR ((col0 < 7) OR col0 IS NULL) AND col3 <= 4) OR (col1 >= 9.36 OR (col1 < 7.70) AND col0 < 9) AND col3 < 0)) OR col1 IS NULL

query I rowsort label-empty
SELECT pk FROM tab3 WHERE ((((((col3 = 4))) AND (((col3 > 2 OR ((col3 >= 3))))) OR ((col0 > 5) AND (col0 > 6) AND col1 < 6.69) OR ((col0 <= 0 AND col4 < 6.53 OR col3 >= 8 AND col0 IS NULL) AND col3 > 2 OR col0 > 2 AND col4 IS NULL AND col4 IS NULL) OR (((((col0 IS NULL))))) OR ((col0 < 7) OR col0 IS NULL) AND col3 <= 4) OR (col1 >= 9.36 OR (col1 < 7.70) AND col0 < 9) AND col3 < 0)) OR col1 IS NULL
----

query I rowsort label-210
SELECT pk FROM tab3 WHERE NOT (((((((col3 = 4))) AND (((col3 > 2 OR ((col3 >= 3))))) OR ((col0 > 5) AND (col0 > 6) AND col1 < 6.69) OR ((col0 <= 0 AND col4 < 6.53 OR col3 >= 8 AND col0 IS NULL) AND col3 > 2 OR col0 > 2 AND col4 IS NULL AND col4 IS NULL) OR (((((col0 IS NULL))))) OR ((col0 < 7) OR col0 IS NULL) AND col3 <= 4) OR (col1 >= 9.36 OR (col1 < 7.70) AND col0 < 9) AND col3 < 0)) OR col1 IS NULL)
----

statement ok
DELETE FROM tab4 WHERE ((((((col3 = 4))) AND (((col3 > 2 OR ((col3 >= 3))))) OR ((col0 > 5) AND (col0 > 6) AND col1 < 6.69) OR ((col0 <= 0 AND col4 < 6.53 OR col3 >= 8 AND col0 IS NULL) AND col3 > 2 OR col0 > 2 AND col4 IS NULL AND col4 IS NULL) OR (((((col0 IS NULL))))) OR ((col0 < 7) OR col0 IS NULL) AND col3 <= 4) OR (col1 >= 9.36 OR (col1 < 7.70) AND col0 < 9) AND col3 < 0)) OR col1 IS NULL

query I rowsort label-empty
SELECT pk FROM tab4 WHERE ((((((col3 = 4))) AND (((col3 > 2 OR ((col3 >= 3))))) OR ((col0 > 5) AND (col0 > 6) AND col1 < 6.69) OR ((col0 <= 0 AND col4 < 6.53 OR col3 >= 8 AND col0 IS NULL) AND col3 > 2 OR col0 > 2 AND col4 IS NULL AND col4 IS NULL) OR (((((col0 IS NULL))))) OR ((col0 < 7) OR col0 IS NULL) AND col3 <= 4) OR (col1 >= 9.36 OR (col1 < 7.70) AND col0 < 9) AND col3 < 0)) OR col1 IS NULL
----

query I rowsort label-210
SELECT pk FROM tab4 WHERE NOT (((((((col3 = 4))) AND (((col3 > 2 OR ((col3 >= 3))))) OR ((col0 > 5) AND (col0 > 6) AND col1 < 6.69) OR ((col0 <= 0 AND col4 < 6.53 OR col3 >= 8 AND col0 IS NULL) AND col3 > 2 OR col0 > 2 AND col4 IS NULL AND col4 IS NULL) OR (((((col0 IS NULL))))) OR ((col0 < 7) OR col0 IS NULL) AND col3 <= 4) OR (col1 >= 9.36 OR (col1 < 7.70) AND col0 < 9) AND col3 < 0)) OR col1 IS NULL)
----

statement ok
DROP TABLE tab0

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,7,8.34,'cajje',7,1.44,'fyqyw')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE UNIQUE INDEX idx_tab2_0 ON tab2 (col3,col1)

statement ok
CREATE UNIQUE INDEX idx_tab2_1 ON tab2 (col1)

statement ok
CREATE UNIQUE INDEX idx_tab2_3 ON tab2 (col3,col0)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

statement ok
CREATE UNIQUE INDEX idx_tab3_4 ON tab3 (col4)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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,col1,col4 DESC)

statement ok
CREATE INDEX idx_tab4_4 ON tab4 (col4)

statement ok
CREATE UNIQUE INDEX idx_tab4_5 ON tab4 (col3)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE (col0 > 1)

query I rowsort label-empty
SELECT pk FROM tab0 WHERE (col0 > 1)
----

query I rowsort label-225
SELECT pk FROM tab0 WHERE NOT ((col0 > 1))
----

statement ok
DELETE FROM tab1 WHERE (col0 > 1)

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (col0 > 1)
----

query I rowsort label-225
SELECT pk FROM tab1 WHERE NOT ((col0 > 1))
----

statement ok
DELETE FROM tab2 WHERE (col0 > 1)

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (col0 > 1)
----

query I rowsort label-225
SELECT pk FROM tab2 WHERE NOT ((col0 > 1))
----

statement ok
DELETE FROM tab3 WHERE (col0 > 1)

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (col0 > 1)
----

query I rowsort label-225
SELECT pk FROM tab3 WHERE NOT ((col0 > 1))
----

statement ok
DELETE FROM tab4 WHERE (col0 > 1)

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (col0 > 1)
----

query I rowsort label-225
SELECT pk FROM tab4 WHERE NOT ((col0 > 1))
----

statement ok
DROP TABLE tab0

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,0,7.62,'ypycj',3,9.3,'edhrz')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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 (col1)

statement ok
CREATE INDEX idx_tab2_2 ON tab2 (col0)

statement ok
CREATE UNIQUE INDEX idx_tab2_3 ON tab2 (col3 DESC)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

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

statement ok
CREATE INDEX idx_tab3_3 ON tab3 (col4)

statement ok
CREATE UNIQUE INDEX idx_tab3_4 ON tab3 (col0)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE INDEX idx_tab4_0 ON tab4 (col0)

statement ok
CREATE UNIQUE INDEX idx_tab4_1 ON tab4 (col1)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE ((col4 = 9.77) AND col3 < 2 AND col3 >= 1 OR col0 <= 3 OR (col3 < 5))

query I rowsort label-empty
SELECT pk FROM tab0 WHERE ((col4 = 9.77) AND col3 < 2 AND col3 >= 1 OR col0 <= 3 OR (col3 < 5))
----

query I rowsort label-240
SELECT pk FROM tab0 WHERE NOT (((col4 = 9.77) AND col3 < 2 AND col3 >= 1 OR col0 <= 3 OR (col3 < 5)))
----

statement ok
DELETE FROM tab1 WHERE ((col4 = 9.77) AND col3 < 2 AND col3 >= 1 OR col0 <= 3 OR (col3 < 5))

query I rowsort label-empty
SELECT pk FROM tab1 WHERE ((col4 = 9.77) AND col3 < 2 AND col3 >= 1 OR col0 <= 3 OR (col3 < 5))
----

query I rowsort label-240
SELECT pk FROM tab1 WHERE NOT (((col4 = 9.77) AND col3 < 2 AND col3 >= 1 OR col0 <= 3 OR (col3 < 5)))
----

statement ok
DELETE FROM tab2 WHERE ((col4 = 9.77) AND col3 < 2 AND col3 >= 1 OR col0 <= 3 OR (col3 < 5))

query I rowsort label-empty
SELECT pk FROM tab2 WHERE ((col4 = 9.77) AND col3 < 2 AND col3 >= 1 OR col0 <= 3 OR (col3 < 5))
----

query I rowsort label-240
SELECT pk FROM tab2 WHERE NOT (((col4 = 9.77) AND col3 < 2 AND col3 >= 1 OR col0 <= 3 OR (col3 < 5)))
----

statement ok
DELETE FROM tab3 WHERE ((col4 = 9.77) AND col3 < 2 AND col3 >= 1 OR col0 <= 3 OR (col3 < 5))

query I rowsort label-empty
SELECT pk FROM tab3 WHERE ((col4 = 9.77) AND col3 < 2 AND col3 >= 1 OR col0 <= 3 OR (col3 < 5))
----

query I rowsort label-240
SELECT pk FROM tab3 WHERE NOT (((col4 = 9.77) AND col3 < 2 AND col3 >= 1 OR col0 <= 3 OR (col3 < 5)))
----

statement ok
DELETE FROM tab4 WHERE ((col4 = 9.77) AND col3 < 2 AND col3 >= 1 OR col0 <= 3 OR (col3 < 5))

query I rowsort label-empty
SELECT pk FROM tab4 WHERE ((col4 = 9.77) AND col3 < 2 AND col3 >= 1 OR col0 <= 3 OR (col3 < 5))
----

query I rowsort label-240
SELECT pk FROM tab4 WHERE NOT (((col4 = 9.77) AND col3 < 2 AND col3 >= 1 OR col0 <= 3 OR (col3 < 5)))
----

statement ok
DROP TABLE tab0

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,3,5.30,'qigwg',0,8.45,'foarb')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE UNIQUE INDEX idx_tab2_0 ON tab2 (col4 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab2_1 ON tab2 (col0 DESC)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

statement ok
CREATE UNIQUE INDEX idx_tab3_0 ON tab3 (col1)

statement ok
CREATE INDEX idx_tab3_1 ON tab3 (col3,col0)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

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

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

statement ok
CREATE INDEX idx_tab4_4 ON tab4 (col4)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE (col3 IN (3,8,3,6))

query I rowsort label-empty
SELECT pk FROM tab0 WHERE (col3 IN (3,8,3,6))
----

query I rowsort label-255
SELECT pk FROM tab0 WHERE NOT ((col3 IN (3,8,3,6)))
----
0

statement ok
DELETE FROM tab1 WHERE (col3 IN (3,8,3,6))

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (col3 IN (3,8,3,6))
----

query I rowsort label-255
SELECT pk FROM tab1 WHERE NOT ((col3 IN (3,8,3,6)))
----
0

statement ok
DELETE FROM tab2 WHERE (col3 IN (3,8,3,6))

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (col3 IN (3,8,3,6))
----

query I rowsort label-255
SELECT pk FROM tab2 WHERE NOT ((col3 IN (3,8,3,6)))
----
0

statement ok
DELETE FROM tab3 WHERE (col3 IN (3,8,3,6))

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (col3 IN (3,8,3,6))
----

query I rowsort label-255
SELECT pk FROM tab3 WHERE NOT ((col3 IN (3,8,3,6)))
----
0

statement ok
DELETE FROM tab4 WHERE (col3 IN (3,8,3,6))

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (col3 IN (3,8,3,6))
----

query I rowsort label-255
SELECT pk FROM tab4 WHERE NOT ((col3 IN (3,8,3,6)))
----
0

statement ok
DELETE FROM tab0 WHERE col0 >= 6

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col0 >= 6
----

query I rowsort label-270
SELECT pk FROM tab0 WHERE NOT (col0 >= 6)
----
0

statement ok
DELETE FROM tab1 WHERE col0 >= 6

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col0 >= 6
----

query I rowsort label-270
SELECT pk FROM tab1 WHERE NOT (col0 >= 6)
----
0

statement ok
DELETE FROM tab2 WHERE col0 >= 6

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col0 >= 6
----

query I rowsort label-270
SELECT pk FROM tab2 WHERE NOT (col0 >= 6)
----
0

statement ok
DELETE FROM tab3 WHERE col0 >= 6

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col0 >= 6
----

query I rowsort label-270
SELECT pk FROM tab3 WHERE NOT (col0 >= 6)
----
0

statement ok
DELETE FROM tab4 WHERE col0 >= 6

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col0 >= 6
----

query I rowsort label-270
SELECT pk FROM tab4 WHERE NOT (col0 >= 6)
----
0

statement ok
DELETE FROM tab0 WHERE ((col3 > 2))

query I rowsort label-empty
SELECT pk FROM tab0 WHERE ((col3 > 2))
----

query I rowsort label-285
SELECT pk FROM tab0 WHERE NOT (((col3 > 2)))
----
0

statement ok
DELETE FROM tab1 WHERE ((col3 > 2))

query I rowsort label-empty
SELECT pk FROM tab1 WHERE ((col3 > 2))
----

query I rowsort label-285
SELECT pk FROM tab1 WHERE NOT (((col3 > 2)))
----
0

statement ok
DELETE FROM tab2 WHERE ((col3 > 2))

query I rowsort label-empty
SELECT pk FROM tab2 WHERE ((col3 > 2))
----

query I rowsort label-285
SELECT pk FROM tab2 WHERE NOT (((col3 > 2)))
----
0

statement ok
DELETE FROM tab3 WHERE ((col3 > 2))

query I rowsort label-empty
SELECT pk FROM tab3 WHERE ((col3 > 2))
----

query I rowsort label-285
SELECT pk FROM tab3 WHERE NOT (((col3 > 2)))
----
0

statement ok
DELETE FROM tab4 WHERE ((col3 > 2))

query I rowsort label-empty
SELECT pk FROM tab4 WHERE ((col3 > 2))
----

query I rowsort label-285
SELECT pk FROM tab4 WHERE NOT (((col3 > 2)))
----
0

statement ok
DELETE FROM tab0 WHERE (((col0 <= 0)) OR col1 IS NULL OR col4 >= 6.64) AND (col1 >= 4.53 AND (col3 < 9 OR col0 > 4))

query I rowsort label-empty
SELECT pk FROM tab0 WHERE (((col0 <= 0)) OR col1 IS NULL OR col4 >= 6.64) AND (col1 >= 4.53 AND (col3 < 9 OR col0 > 4))
----

query I rowsort label-300
SELECT pk FROM tab0 WHERE NOT ((((col0 <= 0)) OR col1 IS NULL OR col4 >= 6.64) AND (col1 >= 4.53 AND (col3 < 9 OR col0 > 4)))
----

statement ok
DELETE FROM tab1 WHERE (((col0 <= 0)) OR col1 IS NULL OR col4 >= 6.64) AND (col1 >= 4.53 AND (col3 < 9 OR col0 > 4))

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (((col0 <= 0)) OR col1 IS NULL OR col4 >= 6.64) AND (col1 >= 4.53 AND (col3 < 9 OR col0 > 4))
----

query I rowsort label-300
SELECT pk FROM tab1 WHERE NOT ((((col0 <= 0)) OR col1 IS NULL OR col4 >= 6.64) AND (col1 >= 4.53 AND (col3 < 9 OR col0 > 4)))
----

statement ok
DELETE FROM tab2 WHERE (((col0 <= 0)) OR col1 IS NULL OR col4 >= 6.64) AND (col1 >= 4.53 AND (col3 < 9 OR col0 > 4))

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (((col0 <= 0)) OR col1 IS NULL OR col4 >= 6.64) AND (col1 >= 4.53 AND (col3 < 9 OR col0 > 4))
----

query I rowsort label-300
SELECT pk FROM tab2 WHERE NOT ((((col0 <= 0)) OR col1 IS NULL OR col4 >= 6.64) AND (col1 >= 4.53 AND (col3 < 9 OR col0 > 4)))
----

statement ok
DELETE FROM tab3 WHERE (((col0 <= 0)) OR col1 IS NULL OR col4 >= 6.64) AND (col1 >= 4.53 AND (col3 < 9 OR col0 > 4))

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (((col0 <= 0)) OR col1 IS NULL OR col4 >= 6.64) AND (col1 >= 4.53 AND (col3 < 9 OR col0 > 4))
----

query I rowsort label-300
SELECT pk FROM tab3 WHERE NOT ((((col0 <= 0)) OR col1 IS NULL OR col4 >= 6.64) AND (col1 >= 4.53 AND (col3 < 9 OR col0 > 4)))
----

statement ok
DELETE FROM tab4 WHERE (((col0 <= 0)) OR col1 IS NULL OR col4 >= 6.64) AND (col1 >= 4.53 AND (col3 < 9 OR col0 > 4))

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (((col0 <= 0)) OR col1 IS NULL OR col4 >= 6.64) AND (col1 >= 4.53 AND (col3 < 9 OR col0 > 4))
----

query I rowsort label-300
SELECT pk FROM tab4 WHERE NOT ((((col0 <= 0)) OR col1 IS NULL OR col4 >= 6.64) AND (col1 >= 4.53 AND (col3 < 9 OR col0 > 4)))
----

statement ok
DROP TABLE tab0

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,9,5.44,'jfvum',4,1.74,'vuinf')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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)

statement ok
CREATE INDEX idx_tab2_2 ON tab2 (col4)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

statement ok
CREATE INDEX idx_tab3_1 ON tab3 (col3)

statement ok
CREATE UNIQUE INDEX idx_tab3_5 ON tab3 (col0)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE INDEX idx_tab4_0 ON tab4 (col1)

statement ok
CREATE UNIQUE INDEX idx_tab4_1 ON tab4 (col3 DESC,col4)

statement ok
CREATE UNIQUE INDEX idx_tab4_2 ON tab4 (col4,col3)

statement ok
CREATE UNIQUE INDEX idx_tab4_3 ON tab4 (col0 DESC)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE col0 > 1 AND ((col4 > 9.34 OR col0 > 8) OR col1 < 2.13)

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col0 > 1 AND ((col4 > 9.34 OR col0 > 8) OR col1 < 2.13)
----

query I rowsort label-315
SELECT pk FROM tab0 WHERE NOT (col0 > 1 AND ((col4 > 9.34 OR col0 > 8) OR col1 < 2.13))
----

statement ok
DELETE FROM tab1 WHERE col0 > 1 AND ((col4 > 9.34 OR col0 > 8) OR col1 < 2.13)

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col0 > 1 AND ((col4 > 9.34 OR col0 > 8) OR col1 < 2.13)
----

query I rowsort label-315
SELECT pk FROM tab1 WHERE NOT (col0 > 1 AND ((col4 > 9.34 OR col0 > 8) OR col1 < 2.13))
----

statement ok
DELETE FROM tab2 WHERE col0 > 1 AND ((col4 > 9.34 OR col0 > 8) OR col1 < 2.13)

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col0 > 1 AND ((col4 > 9.34 OR col0 > 8) OR col1 < 2.13)
----

query I rowsort label-315
SELECT pk FROM tab2 WHERE NOT (col0 > 1 AND ((col4 > 9.34 OR col0 > 8) OR col1 < 2.13))
----

statement ok
DELETE FROM tab3 WHERE col0 > 1 AND ((col4 > 9.34 OR col0 > 8) OR col1 < 2.13)

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col0 > 1 AND ((col4 > 9.34 OR col0 > 8) OR col1 < 2.13)
----

query I rowsort label-315
SELECT pk FROM tab3 WHERE NOT (col0 > 1 AND ((col4 > 9.34 OR col0 > 8) OR col1 < 2.13))
----

statement ok
DELETE FROM tab4 WHERE col0 > 1 AND ((col4 > 9.34 OR col0 > 8) OR col1 < 2.13)

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col0 > 1 AND ((col4 > 9.34 OR col0 > 8) OR col1 < 2.13)
----

query I rowsort label-315
SELECT pk FROM tab4 WHERE NOT (col0 > 1 AND ((col4 > 9.34 OR col0 > 8) OR col1 < 2.13))
----

statement ok
DROP TABLE tab0

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,2,8.93,'khzzd',5,0.32,'gnqnp')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE UNIQUE INDEX idx_tab2_0 ON tab2 (col1 DESC)

statement ok
CREATE INDEX idx_tab2_1 ON tab2 (col4,col0)

statement ok
CREATE INDEX idx_tab2_2 ON tab2 (col3 DESC)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

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

statement ok
CREATE UNIQUE INDEX idx_tab3_1 ON tab3 (col0 DESC)

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

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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 INDEX idx_tab4_1 ON tab4 (col4)

statement ok
CREATE UNIQUE INDEX idx_tab4_3 ON tab4 (col3 DESC)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE col0 > 4 AND col0 < 9 OR (col1 IN (2.90,6.47) OR col4 > 0.52)

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col0 > 4 AND col0 < 9 OR (col1 IN (2.90,6.47) OR col4 > 0.52)
----

query I rowsort label-330
SELECT pk FROM tab0 WHERE NOT (col0 > 4 AND col0 < 9 OR (col1 IN (2.90,6.47) OR col4 > 0.52))
----
0

statement ok
DELETE FROM tab1 WHERE col0 > 4 AND col0 < 9 OR (col1 IN (2.90,6.47) OR col4 > 0.52)

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col0 > 4 AND col0 < 9 OR (col1 IN (2.90,6.47) OR col4 > 0.52)
----

query I rowsort label-330
SELECT pk FROM tab1 WHERE NOT (col0 > 4 AND col0 < 9 OR (col1 IN (2.90,6.47) OR col4 > 0.52))
----
0

statement ok
DELETE FROM tab2 WHERE col0 > 4 AND col0 < 9 OR (col1 IN (2.90,6.47) OR col4 > 0.52)

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col0 > 4 AND col0 < 9 OR (col1 IN (2.90,6.47) OR col4 > 0.52)
----

query I rowsort label-330
SELECT pk FROM tab2 WHERE NOT (col0 > 4 AND col0 < 9 OR (col1 IN (2.90,6.47) OR col4 > 0.52))
----
0

statement ok
DELETE FROM tab3 WHERE col0 > 4 AND col0 < 9 OR (col1 IN (2.90,6.47) OR col4 > 0.52)

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col0 > 4 AND col0 < 9 OR (col1 IN (2.90,6.47) OR col4 > 0.52)
----

query I rowsort label-330
SELECT pk FROM tab3 WHERE NOT (col0 > 4 AND col0 < 9 OR (col1 IN (2.90,6.47) OR col4 > 0.52))
----
0

statement ok
DELETE FROM tab4 WHERE col0 > 4 AND col0 < 9 OR (col1 IN (2.90,6.47) OR col4 > 0.52)

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col0 > 4 AND col0 < 9 OR (col1 IN (2.90,6.47) OR col4 > 0.52)
----

query I rowsort label-330
SELECT pk FROM tab4 WHERE NOT (col0 > 4 AND col0 < 9 OR (col1 IN (2.90,6.47) OR col4 > 0.52))
----
0

statement ok
DELETE FROM tab0 WHERE col3 <= 1

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col3 <= 1
----

query I rowsort label-345
SELECT pk FROM tab0 WHERE NOT (col3 <= 1)
----
0

statement ok
DELETE FROM tab1 WHERE col3 <= 1

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col3 <= 1
----

query I rowsort label-345
SELECT pk FROM tab1 WHERE NOT (col3 <= 1)
----
0

statement ok
DELETE FROM tab2 WHERE col3 <= 1

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col3 <= 1
----

query I rowsort label-345
SELECT pk FROM tab2 WHERE NOT (col3 <= 1)
----
0

statement ok
DELETE FROM tab3 WHERE col3 <= 1

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col3 <= 1
----

query I rowsort label-345
SELECT pk FROM tab3 WHERE NOT (col3 <= 1)
----
0

statement ok
DELETE FROM tab4 WHERE col3 <= 1

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col3 <= 1
----

query I rowsort label-345
SELECT pk FROM tab4 WHERE NOT (col3 <= 1)
----
0

statement ok
DELETE FROM tab0 WHERE ((col0 < 0 AND col1 > 3.16 AND ((col0 >= 8)) AND ((col4 < 9.24)))) OR (col3 < 4 AND col4 < 1.24 AND ((col0 > 7)) OR col0 > 6 AND ((col0 IN (5,5,1,1) AND ((((col4 < 9.44 OR ((col0 IS NULL) AND col1 < 8.0 OR ((col1 = 5.86 AND (col1 >= 7.23))) OR col0 BETWEEN 3 AND 8 AND (col1 > 8.18)) OR col3 <= 0)) AND col3 < 4)) AND (col3 > 8 AND col3 > 4)) AND (col3 >= 0 AND col0 IN (6) OR col3 >= 7 AND ((col4 <= 2.26 OR (col3 = 0) AND (col0 > 4) OR col3 > 5 AND ((col0 < 1 OR col4 >= 6.7)) OR (col1 > 2.33) AND ((col0 < 3 AND (col4 > 9.44)) AND col1 >= 2.79 AND (col0 >= 1 OR (((col3 > 2)) AND col3 < 4) AND col3 > 3 OR col3 >= 5 OR (col3 = 2 AND col0 > 3 AND col3 >= 0) AND (col0 > 8) AND ((col3 < 0) AND col3 > 5) OR col0 <= 1 OR col3 > 0 AND (col0 >= 5) OR (col0 < 1))) AND (col0 IS NULL OR ((col3 > 3))) AND col3 > 1 AND col3 > 7)) OR (col1 = 1.22) AND col3 IS NULL OR col3 IS NULL AND ((col3 < 9) AND col0 <= 6))))

query I rowsort label-empty
SELECT pk FROM tab0 WHERE ((col0 < 0 AND col1 > 3.16 AND ((col0 >= 8)) AND ((col4 < 9.24)))) OR (col3 < 4 AND col4 < 1.24 AND ((col0 > 7)) OR col0 > 6 AND ((col0 IN (5,5,1,1) AND ((((col4 < 9.44 OR ((col0 IS NULL) AND col1 < 8.0 OR ((col1 = 5.86 AND (col1 >= 7.23))) OR col0 BETWEEN 3 AND 8 AND (col1 > 8.18)) OR col3 <= 0)) AND col3 < 4)) AND (col3 > 8 AND col3 > 4)) AND (col3 >= 0 AND col0 IN (6) OR col3 >= 7 AND ((col4 <= 2.26 OR (col3 = 0) AND (col0 > 4) OR col3 > 5 AND ((col0 < 1 OR col4 >= 6.7)) OR (col1 > 2.33) AND ((col0 < 3 AND (col4 > 9.44)) AND col1 >= 2.79 AND (col0 >= 1 OR (((col3 > 2)) AND col3 < 4) AND col3 > 3 OR col3 >= 5 OR (col3 = 2 AND col0 > 3 AND col3 >= 0) AND (col0 > 8) AND ((col3 < 0) AND col3 > 5) OR col0 <= 1 OR col3 > 0 AND (col0 >= 5) OR (col0 < 1))) AND (col0 IS NULL OR ((col3 > 3))) AND col3 > 1 AND col3 > 7)) OR (col1 = 1.22) AND col3 IS NULL OR col3 IS NULL AND ((col3 < 9) AND col0 <= 6))))
----

query I rowsort label-360
SELECT pk FROM tab0 WHERE NOT (((col0 < 0 AND col1 > 3.16 AND ((col0 >= 8)) AND ((col4 < 9.24)))) OR (col3 < 4 AND col4 < 1.24 AND ((col0 > 7)) OR col0 > 6 AND ((col0 IN (5,5,1,1) AND ((((col4 < 9.44 OR ((col0 IS NULL) AND col1 < 8.0 OR ((col1 = 5.86 AND (col1 >= 7.23))) OR col0 BETWEEN 3 AND 8 AND (col1 > 8.18)) OR col3 <= 0)) AND col3 < 4)) AND (col3 > 8 AND col3 > 4)) AND (col3 >= 0 AND col0 IN (6) OR col3 >= 7 AND ((col4 <= 2.26 OR (col3 = 0) AND (col0 > 4) OR col3 > 5 AND ((col0 < 1 OR col4 >= 6.7)) OR (col1 > 2.33) AND ((col0 < 3 AND (col4 > 9.44)) AND col1 >= 2.79 AND (col0 >= 1 OR (((col3 > 2)) AND col3 < 4) AND col3 > 3 OR col3 >= 5 OR (col3 = 2 AND col0 > 3 AND col3 >= 0) AND (col0 > 8) AND ((col3 < 0) AND col3 > 5) OR col0 <= 1 OR col3 > 0 AND (col0 >= 5) OR (col0 < 1))) AND (col0 IS NULL OR ((col3 > 3))) AND col3 > 1 AND col3 > 7)) OR (col1 = 1.22) AND col3 IS NULL OR col3 IS NULL AND ((col3 < 9) AND col0 <= 6)))))
----
0

statement ok
DELETE FROM tab1 WHERE ((col0 < 0 AND col1 > 3.16 AND ((col0 >= 8)) AND ((col4 < 9.24)))) OR (col3 < 4 AND col4 < 1.24 AND ((col0 > 7)) OR col0 > 6 AND ((col0 IN (5,5,1,1) AND ((((col4 < 9.44 OR ((col0 IS NULL) AND col1 < 8.0 OR ((col1 = 5.86 AND (col1 >= 7.23))) OR col0 BETWEEN 3 AND 8 AND (col1 > 8.18)) OR col3 <= 0)) AND col3 < 4)) AND (col3 > 8 AND col3 > 4)) AND (col3 >= 0 AND col0 IN (6) OR col3 >= 7 AND ((col4 <= 2.26 OR (col3 = 0) AND (col0 > 4) OR col3 > 5 AND ((col0 < 1 OR col4 >= 6.7)) OR (col1 > 2.33) AND ((col0 < 3 AND (col4 > 9.44)) AND col1 >= 2.79 AND (col0 >= 1 OR (((col3 > 2)) AND col3 < 4) AND col3 > 3 OR col3 >= 5 OR (col3 = 2 AND col0 > 3 AND col3 >= 0) AND (col0 > 8) AND ((col3 < 0) AND col3 > 5) OR col0 <= 1 OR col3 > 0 AND (col0 >= 5) OR (col0 < 1))) AND (col0 IS NULL OR ((col3 > 3))) AND col3 > 1 AND col3 > 7)) OR (col1 = 1.22) AND col3 IS NULL OR col3 IS NULL AND ((col3 < 9) AND col0 <= 6))))

query I rowsort label-empty
SELECT pk FROM tab1 WHERE ((col0 < 0 AND col1 > 3.16 AND ((col0 >= 8)) AND ((col4 < 9.24)))) OR (col3 < 4 AND col4 < 1.24 AND ((col0 > 7)) OR col0 > 6 AND ((col0 IN (5,5,1,1) AND ((((col4 < 9.44 OR ((col0 IS NULL) AND col1 < 8.0 OR ((col1 = 5.86 AND (col1 >= 7.23))) OR col0 BETWEEN 3 AND 8 AND (col1 > 8.18)) OR col3 <= 0)) AND col3 < 4)) AND (col3 > 8 AND col3 > 4)) AND (col3 >= 0 AND col0 IN (6) OR col3 >= 7 AND ((col4 <= 2.26 OR (col3 = 0) AND (col0 > 4) OR col3 > 5 AND ((col0 < 1 OR col4 >= 6.7)) OR (col1 > 2.33) AND ((col0 < 3 AND (col4 > 9.44)) AND col1 >= 2.79 AND (col0 >= 1 OR (((col3 > 2)) AND col3 < 4) AND col3 > 3 OR col3 >= 5 OR (col3 = 2 AND col0 > 3 AND col3 >= 0) AND (col0 > 8) AND ((col3 < 0) AND col3 > 5) OR col0 <= 1 OR col3 > 0 AND (col0 >= 5) OR (col0 < 1))) AND (col0 IS NULL OR ((col3 > 3))) AND col3 > 1 AND col3 > 7)) OR (col1 = 1.22) AND col3 IS NULL OR col3 IS NULL AND ((col3 < 9) AND col0 <= 6))))
----

query I rowsort label-360
SELECT pk FROM tab1 WHERE NOT (((col0 < 0 AND col1 > 3.16 AND ((col0 >= 8)) AND ((col4 < 9.24)))) OR (col3 < 4 AND col4 < 1.24 AND ((col0 > 7)) OR col0 > 6 AND ((col0 IN (5,5,1,1) AND ((((col4 < 9.44 OR ((col0 IS NULL) AND col1 < 8.0 OR ((col1 = 5.86 AND (col1 >= 7.23))) OR col0 BETWEEN 3 AND 8 AND (col1 > 8.18)) OR col3 <= 0)) AND col3 < 4)) AND (col3 > 8 AND col3 > 4)) AND (col3 >= 0 AND col0 IN (6) OR col3 >= 7 AND ((col4 <= 2.26 OR (col3 = 0) AND (col0 > 4) OR col3 > 5 AND ((col0 < 1 OR col4 >= 6.7)) OR (col1 > 2.33) AND ((col0 < 3 AND (col4 > 9.44)) AND col1 >= 2.79 AND (col0 >= 1 OR (((col3 > 2)) AND col3 < 4) AND col3 > 3 OR col3 >= 5 OR (col3 = 2 AND col0 > 3 AND col3 >= 0) AND (col0 > 8) AND ((col3 < 0) AND col3 > 5) OR col0 <= 1 OR col3 > 0 AND (col0 >= 5) OR (col0 < 1))) AND (col0 IS NULL OR ((col3 > 3))) AND col3 > 1 AND col3 > 7)) OR (col1 = 1.22) AND col3 IS NULL OR col3 IS NULL AND ((col3 < 9) AND col0 <= 6)))))
----
0

statement ok
DELETE FROM tab2 WHERE ((col0 < 0 AND col1 > 3.16 AND ((col0 >= 8)) AND ((col4 < 9.24)))) OR (col3 < 4 AND col4 < 1.24 AND ((col0 > 7)) OR col0 > 6 AND ((col0 IN (5,5,1,1) AND ((((col4 < 9.44 OR ((col0 IS NULL) AND col1 < 8.0 OR ((col1 = 5.86 AND (col1 >= 7.23))) OR col0 BETWEEN 3 AND 8 AND (col1 > 8.18)) OR col3 <= 0)) AND col3 < 4)) AND (col3 > 8 AND col3 > 4)) AND (col3 >= 0 AND col0 IN (6) OR col3 >= 7 AND ((col4 <= 2.26 OR (col3 = 0) AND (col0 > 4) OR col3 > 5 AND ((col0 < 1 OR col4 >= 6.7)) OR (col1 > 2.33) AND ((col0 < 3 AND (col4 > 9.44)) AND col1 >= 2.79 AND (col0 >= 1 OR (((col3 > 2)) AND col3 < 4) AND col3 > 3 OR col3 >= 5 OR (col3 = 2 AND col0 > 3 AND col3 >= 0) AND (col0 > 8) AND ((col3 < 0) AND col3 > 5) OR col0 <= 1 OR col3 > 0 AND (col0 >= 5) OR (col0 < 1))) AND (col0 IS NULL OR ((col3 > 3))) AND col3 > 1 AND col3 > 7)) OR (col1 = 1.22) AND col3 IS NULL OR col3 IS NULL AND ((col3 < 9) AND col0 <= 6))))

query I rowsort label-empty
SELECT pk FROM tab2 WHERE ((col0 < 0 AND col1 > 3.16 AND ((col0 >= 8)) AND ((col4 < 9.24)))) OR (col3 < 4 AND col4 < 1.24 AND ((col0 > 7)) OR col0 > 6 AND ((col0 IN (5,5,1,1) AND ((((col4 < 9.44 OR ((col0 IS NULL) AND col1 < 8.0 OR ((col1 = 5.86 AND (col1 >= 7.23))) OR col0 BETWEEN 3 AND 8 AND (col1 > 8.18)) OR col3 <= 0)) AND col3 < 4)) AND (col3 > 8 AND col3 > 4)) AND (col3 >= 0 AND col0 IN (6) OR col3 >= 7 AND ((col4 <= 2.26 OR (col3 = 0) AND (col0 > 4) OR col3 > 5 AND ((col0 < 1 OR col4 >= 6.7)) OR (col1 > 2.33) AND ((col0 < 3 AND (col4 > 9.44)) AND col1 >= 2.79 AND (col0 >= 1 OR (((col3 > 2)) AND col3 < 4) AND col3 > 3 OR col3 >= 5 OR (col3 = 2 AND col0 > 3 AND col3 >= 0) AND (col0 > 8) AND ((col3 < 0) AND col3 > 5) OR col0 <= 1 OR col3 > 0 AND (col0 >= 5) OR (col0 < 1))) AND (col0 IS NULL OR ((col3 > 3))) AND col3 > 1 AND col3 > 7)) OR (col1 = 1.22) AND col3 IS NULL OR col3 IS NULL AND ((col3 < 9) AND col0 <= 6))))
----

query I rowsort label-360
SELECT pk FROM tab2 WHERE NOT (((col0 < 0 AND col1 > 3.16 AND ((col0 >= 8)) AND ((col4 < 9.24)))) OR (col3 < 4 AND col4 < 1.24 AND ((col0 > 7)) OR col0 > 6 AND ((col0 IN (5,5,1,1) AND ((((col4 < 9.44 OR ((col0 IS NULL) AND col1 < 8.0 OR ((col1 = 5.86 AND (col1 >= 7.23))) OR col0 BETWEEN 3 AND 8 AND (col1 > 8.18)) OR col3 <= 0)) AND col3 < 4)) AND (col3 > 8 AND col3 > 4)) AND (col3 >= 0 AND col0 IN (6) OR col3 >= 7 AND ((col4 <= 2.26 OR (col3 = 0) AND (col0 > 4) OR col3 > 5 AND ((col0 < 1 OR col4 >= 6.7)) OR (col1 > 2.33) AND ((col0 < 3 AND (col4 > 9.44)) AND col1 >= 2.79 AND (col0 >= 1 OR (((col3 > 2)) AND col3 < 4) AND col3 > 3 OR col3 >= 5 OR (col3 = 2 AND col0 > 3 AND col3 >= 0) AND (col0 > 8) AND ((col3 < 0) AND col3 > 5) OR col0 <= 1 OR col3 > 0 AND (col0 >= 5) OR (col0 < 1))) AND (col0 IS NULL OR ((col3 > 3))) AND col3 > 1 AND col3 > 7)) OR (col1 = 1.22) AND col3 IS NULL OR col3 IS NULL AND ((col3 < 9) AND col0 <= 6)))))
----
0

statement ok
DELETE FROM tab3 WHERE ((col0 < 0 AND col1 > 3.16 AND ((col0 >= 8)) AND ((col4 < 9.24)))) OR (col3 < 4 AND col4 < 1.24 AND ((col0 > 7)) OR col0 > 6 AND ((col0 IN (5,5,1,1) AND ((((col4 < 9.44 OR ((col0 IS NULL) AND col1 < 8.0 OR ((col1 = 5.86 AND (col1 >= 7.23))) OR col0 BETWEEN 3 AND 8 AND (col1 > 8.18)) OR col3 <= 0)) AND col3 < 4)) AND (col3 > 8 AND col3 > 4)) AND (col3 >= 0 AND col0 IN (6) OR col3 >= 7 AND ((col4 <= 2.26 OR (col3 = 0) AND (col0 > 4) OR col3 > 5 AND ((col0 < 1 OR col4 >= 6.7)) OR (col1 > 2.33) AND ((col0 < 3 AND (col4 > 9.44)) AND col1 >= 2.79 AND (col0 >= 1 OR (((col3 > 2)) AND col3 < 4) AND col3 > 3 OR col3 >= 5 OR (col3 = 2 AND col0 > 3 AND col3 >= 0) AND (col0 > 8) AND ((col3 < 0) AND col3 > 5) OR col0 <= 1 OR col3 > 0 AND (col0 >= 5) OR (col0 < 1))) AND (col0 IS NULL OR ((col3 > 3))) AND col3 > 1 AND col3 > 7)) OR (col1 = 1.22) AND col3 IS NULL OR col3 IS NULL AND ((col3 < 9) AND col0 <= 6))))

query I rowsort label-empty
SELECT pk FROM tab3 WHERE ((col0 < 0 AND col1 > 3.16 AND ((col0 >= 8)) AND ((col4 < 9.24)))) OR (col3 < 4 AND col4 < 1.24 AND ((col0 > 7)) OR col0 > 6 AND ((col0 IN (5,5,1,1) AND ((((col4 < 9.44 OR ((col0 IS NULL) AND col1 < 8.0 OR ((col1 = 5.86 AND (col1 >= 7.23))) OR col0 BETWEEN 3 AND 8 AND (col1 > 8.18)) OR col3 <= 0)) AND col3 < 4)) AND (col3 > 8 AND col3 > 4)) AND (col3 >= 0 AND col0 IN (6) OR col3 >= 7 AND ((col4 <= 2.26 OR (col3 = 0) AND (col0 > 4) OR col3 > 5 AND ((col0 < 1 OR col4 >= 6.7)) OR (col1 > 2.33) AND ((col0 < 3 AND (col4 > 9.44)) AND col1 >= 2.79 AND (col0 >= 1 OR (((col3 > 2)) AND col3 < 4) AND col3 > 3 OR col3 >= 5 OR (col3 = 2 AND col0 > 3 AND col3 >= 0) AND (col0 > 8) AND ((col3 < 0) AND col3 > 5) OR col0 <= 1 OR col3 > 0 AND (col0 >= 5) OR (col0 < 1))) AND (col0 IS NULL OR ((col3 > 3))) AND col3 > 1 AND col3 > 7)) OR (col1 = 1.22) AND col3 IS NULL OR col3 IS NULL AND ((col3 < 9) AND col0 <= 6))))
----

query I rowsort label-360
SELECT pk FROM tab3 WHERE NOT (((col0 < 0 AND col1 > 3.16 AND ((col0 >= 8)) AND ((col4 < 9.24)))) OR (col3 < 4 AND col4 < 1.24 AND ((col0 > 7)) OR col0 > 6 AND ((col0 IN (5,5,1,1) AND ((((col4 < 9.44 OR ((col0 IS NULL) AND col1 < 8.0 OR ((col1 = 5.86 AND (col1 >= 7.23))) OR col0 BETWEEN 3 AND 8 AND (col1 > 8.18)) OR col3 <= 0)) AND col3 < 4)) AND (col3 > 8 AND col3 > 4)) AND (col3 >= 0 AND col0 IN (6) OR col3 >= 7 AND ((col4 <= 2.26 OR (col3 = 0) AND (col0 > 4) OR col3 > 5 AND ((col0 < 1 OR col4 >= 6.7)) OR (col1 > 2.33) AND ((col0 < 3 AND (col4 > 9.44)) AND col1 >= 2.79 AND (col0 >= 1 OR (((col3 > 2)) AND col3 < 4) AND col3 > 3 OR col3 >= 5 OR (col3 = 2 AND col0 > 3 AND col3 >= 0) AND (col0 > 8) AND ((col3 < 0) AND col3 > 5) OR col0 <= 1 OR col3 > 0 AND (col0 >= 5) OR (col0 < 1))) AND (col0 IS NULL OR ((col3 > 3))) AND col3 > 1 AND col3 > 7)) OR (col1 = 1.22) AND col3 IS NULL OR col3 IS NULL AND ((col3 < 9) AND col0 <= 6)))))
----
0

statement ok
DELETE FROM tab4 WHERE ((col0 < 0 AND col1 > 3.16 AND ((col0 >= 8)) AND ((col4 < 9.24)))) OR (col3 < 4 AND col4 < 1.24 AND ((col0 > 7)) OR col0 > 6 AND ((col0 IN (5,5,1,1) AND ((((col4 < 9.44 OR ((col0 IS NULL) AND col1 < 8.0 OR ((col1 = 5.86 AND (col1 >= 7.23))) OR col0 BETWEEN 3 AND 8 AND (col1 > 8.18)) OR col3 <= 0)) AND col3 < 4)) AND (col3 > 8 AND col3 > 4)) AND (col3 >= 0 AND col0 IN (6) OR col3 >= 7 AND ((col4 <= 2.26 OR (col3 = 0) AND (col0 > 4) OR col3 > 5 AND ((col0 < 1 OR col4 >= 6.7)) OR (col1 > 2.33) AND ((col0 < 3 AND (col4 > 9.44)) AND col1 >= 2.79 AND (col0 >= 1 OR (((col3 > 2)) AND col3 < 4) AND col3 > 3 OR col3 >= 5 OR (col3 = 2 AND col0 > 3 AND col3 >= 0) AND (col0 > 8) AND ((col3 < 0) AND col3 > 5) OR col0 <= 1 OR col3 > 0 AND (col0 >= 5) OR (col0 < 1))) AND (col0 IS NULL OR ((col3 > 3))) AND col3 > 1 AND col3 > 7)) OR (col1 = 1.22) AND col3 IS NULL OR col3 IS NULL AND ((col3 < 9) AND col0 <= 6))))

query I rowsort label-empty
SELECT pk FROM tab4 WHERE ((col0 < 0 AND col1 > 3.16 AND ((col0 >= 8)) AND ((col4 < 9.24)))) OR (col3 < 4 AND col4 < 1.24 AND ((col0 > 7)) OR col0 > 6 AND ((col0 IN (5,5,1,1) AND ((((col4 < 9.44 OR ((col0 IS NULL) AND col1 < 8.0 OR ((col1 = 5.86 AND (col1 >= 7.23))) OR col0 BETWEEN 3 AND 8 AND (col1 > 8.18)) OR col3 <= 0)) AND col3 < 4)) AND (col3 > 8 AND col3 > 4)) AND (col3 >= 0 AND col0 IN (6) OR col3 >= 7 AND ((col4 <= 2.26 OR (col3 = 0) AND (col0 > 4) OR col3 > 5 AND ((col0 < 1 OR col4 >= 6.7)) OR (col1 > 2.33) AND ((col0 < 3 AND (col4 > 9.44)) AND col1 >= 2.79 AND (col0 >= 1 OR (((col3 > 2)) AND col3 < 4) AND col3 > 3 OR col3 >= 5 OR (col3 = 2 AND col0 > 3 AND col3 >= 0) AND (col0 > 8) AND ((col3 < 0) AND col3 > 5) OR col0 <= 1 OR col3 > 0 AND (col0 >= 5) OR (col0 < 1))) AND (col0 IS NULL OR ((col3 > 3))) AND col3 > 1 AND col3 > 7)) OR (col1 = 1.22) AND col3 IS NULL OR col3 IS NULL AND ((col3 < 9) AND col0 <= 6))))
----

query I rowsort label-360
SELECT pk FROM tab4 WHERE NOT (((col0 < 0 AND col1 > 3.16 AND ((col0 >= 8)) AND ((col4 < 9.24)))) OR (col3 < 4 AND col4 < 1.24 AND ((col0 > 7)) OR col0 > 6 AND ((col0 IN (5,5,1,1) AND ((((col4 < 9.44 OR ((col0 IS NULL) AND col1 < 8.0 OR ((col1 = 5.86 AND (col1 >= 7.23))) OR col0 BETWEEN 3 AND 8 AND (col1 > 8.18)) OR col3 <= 0)) AND col3 < 4)) AND (col3 > 8 AND col3 > 4)) AND (col3 >= 0 AND col0 IN (6) OR col3 >= 7 AND ((col4 <= 2.26 OR (col3 = 0) AND (col0 > 4) OR col3 > 5 AND ((col0 < 1 OR col4 >= 6.7)) OR (col1 > 2.33) AND ((col0 < 3 AND (col4 > 9.44)) AND col1 >= 2.79 AND (col0 >= 1 OR (((col3 > 2)) AND col3 < 4) AND col3 > 3 OR col3 >= 5 OR (col3 = 2 AND col0 > 3 AND col3 >= 0) AND (col0 > 8) AND ((col3 < 0) AND col3 > 5) OR col0 <= 1 OR col3 > 0 AND (col0 >= 5) OR (col0 < 1))) AND (col0 IS NULL OR ((col3 > 3))) AND col3 > 1 AND col3 > 7)) OR (col1 = 1.22) AND col3 IS NULL OR col3 IS NULL AND ((col3 < 9) AND col0 <= 6)))))
----
0

statement ok
DELETE FROM tab0 WHERE (col1 IN (4.69,1.53,9.82,5.8,7.30,4.39))

query I rowsort label-empty
SELECT pk FROM tab0 WHERE (col1 IN (4.69,1.53,9.82,5.8,7.30,4.39))
----

query I rowsort label-375
SELECT pk FROM tab0 WHERE NOT ((col1 IN (4.69,1.53,9.82,5.8,7.30,4.39)))
----
0

statement ok
DELETE FROM tab1 WHERE (col1 IN (4.69,1.53,9.82,5.8,7.30,4.39))

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (col1 IN (4.69,1.53,9.82,5.8,7.30,4.39))
----

query I rowsort label-375
SELECT pk FROM tab1 WHERE NOT ((col1 IN (4.69,1.53,9.82,5.8,7.30,4.39)))
----
0

statement ok
DELETE FROM tab2 WHERE (col1 IN (4.69,1.53,9.82,5.8,7.30,4.39))

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (col1 IN (4.69,1.53,9.82,5.8,7.30,4.39))
----

query I rowsort label-375
SELECT pk FROM tab2 WHERE NOT ((col1 IN (4.69,1.53,9.82,5.8,7.30,4.39)))
----
0

statement ok
DELETE FROM tab3 WHERE (col1 IN (4.69,1.53,9.82,5.8,7.30,4.39))

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (col1 IN (4.69,1.53,9.82,5.8,7.30,4.39))
----

query I rowsort label-375
SELECT pk FROM tab3 WHERE NOT ((col1 IN (4.69,1.53,9.82,5.8,7.30,4.39)))
----
0

statement ok
DELETE FROM tab4 WHERE (col1 IN (4.69,1.53,9.82,5.8,7.30,4.39))

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (col1 IN (4.69,1.53,9.82,5.8,7.30,4.39))
----

query I rowsort label-375
SELECT pk FROM tab4 WHERE NOT ((col1 IN (4.69,1.53,9.82,5.8,7.30,4.39)))
----
0

statement ok
DELETE FROM tab0 WHERE col1 >= 4.91

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col1 >= 4.91
----

query I rowsort label-390
SELECT pk FROM tab0 WHERE NOT (col1 >= 4.91)
----

statement ok
DELETE FROM tab1 WHERE col1 >= 4.91

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col1 >= 4.91
----

query I rowsort label-390
SELECT pk FROM tab1 WHERE NOT (col1 >= 4.91)
----

statement ok
DELETE FROM tab2 WHERE col1 >= 4.91

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col1 >= 4.91
----

query I rowsort label-390
SELECT pk FROM tab2 WHERE NOT (col1 >= 4.91)
----

statement ok
DELETE FROM tab3 WHERE col1 >= 4.91

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col1 >= 4.91
----

query I rowsort label-390
SELECT pk FROM tab3 WHERE NOT (col1 >= 4.91)
----

statement ok
DELETE FROM tab4 WHERE col1 >= 4.91

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col1 >= 4.91
----

query I rowsort label-390
SELECT pk FROM tab4 WHERE NOT (col1 >= 4.91)
----

statement ok
DROP TABLE tab0

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,8,9.62,'ugbgw',2,0.26,'fonqr')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE UNIQUE INDEX idx_tab2_0 ON tab2 (col4,col0 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab2_1 ON tab2 (col3)

statement ok
CREATE UNIQUE INDEX idx_tab2_2 ON tab2 (col1)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

statement ok
CREATE INDEX idx_tab3_0 ON tab3 (col1)

statement ok
CREATE INDEX idx_tab3_4 ON tab3 (col0 DESC)

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

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE UNIQUE INDEX idx_tab4_0 ON tab4 (col1)

statement ok
CREATE UNIQUE INDEX idx_tab4_1 ON tab4 (col3 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab4_3 ON tab4 (col0 DESC,col4)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE col4 IS NULL AND col4 = 4.23

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col4 IS NULL AND col4 = 4.23
----

query I rowsort label-405
SELECT pk FROM tab0 WHERE NOT (col4 IS NULL AND col4 = 4.23)
----
0

statement ok
DELETE FROM tab1 WHERE col4 IS NULL AND col4 = 4.23

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col4 IS NULL AND col4 = 4.23
----

query I rowsort label-405
SELECT pk FROM tab1 WHERE NOT (col4 IS NULL AND col4 = 4.23)
----
0

statement ok
DELETE FROM tab2 WHERE col4 IS NULL AND col4 = 4.23

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col4 IS NULL AND col4 = 4.23
----

query I rowsort label-405
SELECT pk FROM tab2 WHERE NOT (col4 IS NULL AND col4 = 4.23)
----
0

statement ok
DELETE FROM tab3 WHERE col4 IS NULL AND col4 = 4.23

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col4 IS NULL AND col4 = 4.23
----

query I rowsort label-405
SELECT pk FROM tab3 WHERE NOT (col4 IS NULL AND col4 = 4.23)
----
0

statement ok
DELETE FROM tab4 WHERE col4 IS NULL AND col4 = 4.23

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col4 IS NULL AND col4 = 4.23
----

query I rowsort label-405
SELECT pk FROM tab4 WHERE NOT (col4 IS NULL AND col4 = 4.23)
----
0

statement ok
DELETE FROM tab0 WHERE (col4 > 2.95)

query I rowsort label-empty
SELECT pk FROM tab0 WHERE (col4 > 2.95)
----

query I rowsort label-420
SELECT pk FROM tab0 WHERE NOT ((col4 > 2.95))
----
0

statement ok
DELETE FROM tab1 WHERE (col4 > 2.95)

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (col4 > 2.95)
----

query I rowsort label-420
SELECT pk FROM tab1 WHERE NOT ((col4 > 2.95))
----
0

statement ok
DELETE FROM tab2 WHERE (col4 > 2.95)

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (col4 > 2.95)
----

query I rowsort label-420
SELECT pk FROM tab2 WHERE NOT ((col4 > 2.95))
----
0

statement ok
DELETE FROM tab3 WHERE (col4 > 2.95)

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (col4 > 2.95)
----

query I rowsort label-420
SELECT pk FROM tab3 WHERE NOT ((col4 > 2.95))
----
0

statement ok
DELETE FROM tab4 WHERE (col4 > 2.95)

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (col4 > 2.95)
----

query I rowsort label-420
SELECT pk FROM tab4 WHERE NOT ((col4 > 2.95))
----
0

statement ok
DELETE FROM tab0 WHERE (col0 < 0 AND ((col4 >= 5.9 OR (col1 BETWEEN 8.26 AND 4.99) AND ((((col1 >= 6.17)) OR col0 IN (5,2,8,2,8,0) OR ((col0 >= 4) OR col3 < 5) AND ((col3 > 7)))) AND col4 IS NULL AND col3 > 7 AND (col0 >= 0) AND (col0 > 4 OR col3 > 5) OR col1 > 3.59 AND col0 < 9 OR (col0 BETWEEN 8 AND 6) AND col4 > 3.10 OR (col0 < 4) AND col0 < 8 AND (col0 IN (2,9,7,1,1,9) AND (col0 > 1) OR (col3 <= 6)) OR ((col0 < 2) OR (col0 <= 3)) AND col4 IS NULL AND col0 <= 9 AND col3 < 4 OR (((col4 BETWEEN 4.13 AND 6.59) OR col1 > 5.6 OR col1 >= 1.86 AND col0 < 4)) AND (col3 > 9) OR (col0 > 6) AND (col4 > 5.56 OR col4 >= 6.4 OR col4 < 3.36 AND col0 > 4 OR col1 < 0.36) OR (col1 IS NULL))))

query I rowsort label-empty
SELECT pk FROM tab0 WHERE (col0 < 0 AND ((col4 >= 5.9 OR (col1 BETWEEN 8.26 AND 4.99) AND ((((col1 >= 6.17)) OR col0 IN (5,2,8,2,8,0) OR ((col0 >= 4) OR col3 < 5) AND ((col3 > 7)))) AND col4 IS NULL AND col3 > 7 AND (col0 >= 0) AND (col0 > 4 OR col3 > 5) OR col1 > 3.59 AND col0 < 9 OR (col0 BETWEEN 8 AND 6) AND col4 > 3.10 OR (col0 < 4) AND col0 < 8 AND (col0 IN (2,9,7,1,1,9) AND (col0 > 1) OR (col3 <= 6)) OR ((col0 < 2) OR (col0 <= 3)) AND col4 IS NULL AND col0 <= 9 AND col3 < 4 OR (((col4 BETWEEN 4.13 AND 6.59) OR col1 > 5.6 OR col1 >= 1.86 AND col0 < 4)) AND (col3 > 9) OR (col0 > 6) AND (col4 > 5.56 OR col4 >= 6.4 OR col4 < 3.36 AND col0 > 4 OR col1 < 0.36) OR (col1 IS NULL))))
----

query I rowsort label-435
SELECT pk FROM tab0 WHERE NOT ((col0 < 0 AND ((col4 >= 5.9 OR (col1 BETWEEN 8.26 AND 4.99) AND ((((col1 >= 6.17)) OR col0 IN (5,2,8,2,8,0) OR ((col0 >= 4) OR col3 < 5) AND ((col3 > 7)))) AND col4 IS NULL AND col3 > 7 AND (col0 >= 0) AND (col0 > 4 OR col3 > 5) OR col1 > 3.59 AND col0 < 9 OR (col0 BETWEEN 8 AND 6) AND col4 > 3.10 OR (col0 < 4) AND col0 < 8 AND (col0 IN (2,9,7,1,1,9) AND (col0 > 1) OR (col3 <= 6)) OR ((col0 < 2) OR (col0 <= 3)) AND col4 IS NULL AND col0 <= 9 AND col3 < 4 OR (((col4 BETWEEN 4.13 AND 6.59) OR col1 > 5.6 OR col1 >= 1.86 AND col0 < 4)) AND (col3 > 9) OR (col0 > 6) AND (col4 > 5.56 OR col4 >= 6.4 OR col4 < 3.36 AND col0 > 4 OR col1 < 0.36) OR (col1 IS NULL)))))
----
0

statement ok
DELETE FROM tab1 WHERE (col0 < 0 AND ((col4 >= 5.9 OR (col1 BETWEEN 8.26 AND 4.99) AND ((((col1 >= 6.17)) OR col0 IN (5,2,8,2,8,0) OR ((col0 >= 4) OR col3 < 5) AND ((col3 > 7)))) AND col4 IS NULL AND col3 > 7 AND (col0 >= 0) AND (col0 > 4 OR col3 > 5) OR col1 > 3.59 AND col0 < 9 OR (col0 BETWEEN 8 AND 6) AND col4 > 3.10 OR (col0 < 4) AND col0 < 8 AND (col0 IN (2,9,7,1,1,9) AND (col0 > 1) OR (col3 <= 6)) OR ((col0 < 2) OR (col0 <= 3)) AND col4 IS NULL AND col0 <= 9 AND col3 < 4 OR (((col4 BETWEEN 4.13 AND 6.59) OR col1 > 5.6 OR col1 >= 1.86 AND col0 < 4)) AND (col3 > 9) OR (col0 > 6) AND (col4 > 5.56 OR col4 >= 6.4 OR col4 < 3.36 AND col0 > 4 OR col1 < 0.36) OR (col1 IS NULL))))

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (col0 < 0 AND ((col4 >= 5.9 OR (col1 BETWEEN 8.26 AND 4.99) AND ((((col1 >= 6.17)) OR col0 IN (5,2,8,2,8,0) OR ((col0 >= 4) OR col3 < 5) AND ((col3 > 7)))) AND col4 IS NULL AND col3 > 7 AND (col0 >= 0) AND (col0 > 4 OR col3 > 5) OR col1 > 3.59 AND col0 < 9 OR (col0 BETWEEN 8 AND 6) AND col4 > 3.10 OR (col0 < 4) AND col0 < 8 AND (col0 IN (2,9,7,1,1,9) AND (col0 > 1) OR (col3 <= 6)) OR ((col0 < 2) OR (col0 <= 3)) AND col4 IS NULL AND col0 <= 9 AND col3 < 4 OR (((col4 BETWEEN 4.13 AND 6.59) OR col1 > 5.6 OR col1 >= 1.86 AND col0 < 4)) AND (col3 > 9) OR (col0 > 6) AND (col4 > 5.56 OR col4 >= 6.4 OR col4 < 3.36 AND col0 > 4 OR col1 < 0.36) OR (col1 IS NULL))))
----

query I rowsort label-435
SELECT pk FROM tab1 WHERE NOT ((col0 < 0 AND ((col4 >= 5.9 OR (col1 BETWEEN 8.26 AND 4.99) AND ((((col1 >= 6.17)) OR col0 IN (5,2,8,2,8,0) OR ((col0 >= 4) OR col3 < 5) AND ((col3 > 7)))) AND col4 IS NULL AND col3 > 7 AND (col0 >= 0) AND (col0 > 4 OR col3 > 5) OR col1 > 3.59 AND col0 < 9 OR (col0 BETWEEN 8 AND 6) AND col4 > 3.10 OR (col0 < 4) AND col0 < 8 AND (col0 IN (2,9,7,1,1,9) AND (col0 > 1) OR (col3 <= 6)) OR ((col0 < 2) OR (col0 <= 3)) AND col4 IS NULL AND col0 <= 9 AND col3 < 4 OR (((col4 BETWEEN 4.13 AND 6.59) OR col1 > 5.6 OR col1 >= 1.86 AND col0 < 4)) AND (col3 > 9) OR (col0 > 6) AND (col4 > 5.56 OR col4 >= 6.4 OR col4 < 3.36 AND col0 > 4 OR col1 < 0.36) OR (col1 IS NULL)))))
----
0

statement ok
DELETE FROM tab2 WHERE (col0 < 0 AND ((col4 >= 5.9 OR (col1 BETWEEN 8.26 AND 4.99) AND ((((col1 >= 6.17)) OR col0 IN (5,2,8,2,8,0) OR ((col0 >= 4) OR col3 < 5) AND ((col3 > 7)))) AND col4 IS NULL AND col3 > 7 AND (col0 >= 0) AND (col0 > 4 OR col3 > 5) OR col1 > 3.59 AND col0 < 9 OR (col0 BETWEEN 8 AND 6) AND col4 > 3.10 OR (col0 < 4) AND col0 < 8 AND (col0 IN (2,9,7,1,1,9) AND (col0 > 1) OR (col3 <= 6)) OR ((col0 < 2) OR (col0 <= 3)) AND col4 IS NULL AND col0 <= 9 AND col3 < 4 OR (((col4 BETWEEN 4.13 AND 6.59) OR col1 > 5.6 OR col1 >= 1.86 AND col0 < 4)) AND (col3 > 9) OR (col0 > 6) AND (col4 > 5.56 OR col4 >= 6.4 OR col4 < 3.36 AND col0 > 4 OR col1 < 0.36) OR (col1 IS NULL))))

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (col0 < 0 AND ((col4 >= 5.9 OR (col1 BETWEEN 8.26 AND 4.99) AND ((((col1 >= 6.17)) OR col0 IN (5,2,8,2,8,0) OR ((col0 >= 4) OR col3 < 5) AND ((col3 > 7)))) AND col4 IS NULL AND col3 > 7 AND (col0 >= 0) AND (col0 > 4 OR col3 > 5) OR col1 > 3.59 AND col0 < 9 OR (col0 BETWEEN 8 AND 6) AND col4 > 3.10 OR (col0 < 4) AND col0 < 8 AND (col0 IN (2,9,7,1,1,9) AND (col0 > 1) OR (col3 <= 6)) OR ((col0 < 2) OR (col0 <= 3)) AND col4 IS NULL AND col0 <= 9 AND col3 < 4 OR (((col4 BETWEEN 4.13 AND 6.59) OR col1 > 5.6 OR col1 >= 1.86 AND col0 < 4)) AND (col3 > 9) OR (col0 > 6) AND (col4 > 5.56 OR col4 >= 6.4 OR col4 < 3.36 AND col0 > 4 OR col1 < 0.36) OR (col1 IS NULL))))
----

query I rowsort label-435
SELECT pk FROM tab2 WHERE NOT ((col0 < 0 AND ((col4 >= 5.9 OR (col1 BETWEEN 8.26 AND 4.99) AND ((((col1 >= 6.17)) OR col0 IN (5,2,8,2,8,0) OR ((col0 >= 4) OR col3 < 5) AND ((col3 > 7)))) AND col4 IS NULL AND col3 > 7 AND (col0 >= 0) AND (col0 > 4 OR col3 > 5) OR col1 > 3.59 AND col0 < 9 OR (col0 BETWEEN 8 AND 6) AND col4 > 3.10 OR (col0 < 4) AND col0 < 8 AND (col0 IN (2,9,7,1,1,9) AND (col0 > 1) OR (col3 <= 6)) OR ((col0 < 2) OR (col0 <= 3)) AND col4 IS NULL AND col0 <= 9 AND col3 < 4 OR (((col4 BETWEEN 4.13 AND 6.59) OR col1 > 5.6 OR col1 >= 1.86 AND col0 < 4)) AND (col3 > 9) OR (col0 > 6) AND (col4 > 5.56 OR col4 >= 6.4 OR col4 < 3.36 AND col0 > 4 OR col1 < 0.36) OR (col1 IS NULL)))))
----
0

statement ok
DELETE FROM tab3 WHERE (col0 < 0 AND ((col4 >= 5.9 OR (col1 BETWEEN 8.26 AND 4.99) AND ((((col1 >= 6.17)) OR col0 IN (5,2,8,2,8,0) OR ((col0 >= 4) OR col3 < 5) AND ((col3 > 7)))) AND col4 IS NULL AND col3 > 7 AND (col0 >= 0) AND (col0 > 4 OR col3 > 5) OR col1 > 3.59 AND col0 < 9 OR (col0 BETWEEN 8 AND 6) AND col4 > 3.10 OR (col0 < 4) AND col0 < 8 AND (col0 IN (2,9,7,1,1,9) AND (col0 > 1) OR (col3 <= 6)) OR ((col0 < 2) OR (col0 <= 3)) AND col4 IS NULL AND col0 <= 9 AND col3 < 4 OR (((col4 BETWEEN 4.13 AND 6.59) OR col1 > 5.6 OR col1 >= 1.86 AND col0 < 4)) AND (col3 > 9) OR (col0 > 6) AND (col4 > 5.56 OR col4 >= 6.4 OR col4 < 3.36 AND col0 > 4 OR col1 < 0.36) OR (col1 IS NULL))))

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (col0 < 0 AND ((col4 >= 5.9 OR (col1 BETWEEN 8.26 AND 4.99) AND ((((col1 >= 6.17)) OR col0 IN (5,2,8,2,8,0) OR ((col0 >= 4) OR col3 < 5) AND ((col3 > 7)))) AND col4 IS NULL AND col3 > 7 AND (col0 >= 0) AND (col0 > 4 OR col3 > 5) OR col1 > 3.59 AND col0 < 9 OR (col0 BETWEEN 8 AND 6) AND col4 > 3.10 OR (col0 < 4) AND col0 < 8 AND (col0 IN (2,9,7,1,1,9) AND (col0 > 1) OR (col3 <= 6)) OR ((col0 < 2) OR (col0 <= 3)) AND col4 IS NULL AND col0 <= 9 AND col3 < 4 OR (((col4 BETWEEN 4.13 AND 6.59) OR col1 > 5.6 OR col1 >= 1.86 AND col0 < 4)) AND (col3 > 9) OR (col0 > 6) AND (col4 > 5.56 OR col4 >= 6.4 OR col4 < 3.36 AND col0 > 4 OR col1 < 0.36) OR (col1 IS NULL))))
----

query I rowsort label-435
SELECT pk FROM tab3 WHERE NOT ((col0 < 0 AND ((col4 >= 5.9 OR (col1 BETWEEN 8.26 AND 4.99) AND ((((col1 >= 6.17)) OR col0 IN (5,2,8,2,8,0) OR ((col0 >= 4) OR col3 < 5) AND ((col3 > 7)))) AND col4 IS NULL AND col3 > 7 AND (col0 >= 0) AND (col0 > 4 OR col3 > 5) OR col1 > 3.59 AND col0 < 9 OR (col0 BETWEEN 8 AND 6) AND col4 > 3.10 OR (col0 < 4) AND col0 < 8 AND (col0 IN (2,9,7,1,1,9) AND (col0 > 1) OR (col3 <= 6)) OR ((col0 < 2) OR (col0 <= 3)) AND col4 IS NULL AND col0 <= 9 AND col3 < 4 OR (((col4 BETWEEN 4.13 AND 6.59) OR col1 > 5.6 OR col1 >= 1.86 AND col0 < 4)) AND (col3 > 9) OR (col0 > 6) AND (col4 > 5.56 OR col4 >= 6.4 OR col4 < 3.36 AND col0 > 4 OR col1 < 0.36) OR (col1 IS NULL)))))
----
0

statement ok
DELETE FROM tab4 WHERE (col0 < 0 AND ((col4 >= 5.9 OR (col1 BETWEEN 8.26 AND 4.99) AND ((((col1 >= 6.17)) OR col0 IN (5,2,8,2,8,0) OR ((col0 >= 4) OR col3 < 5) AND ((col3 > 7)))) AND col4 IS NULL AND col3 > 7 AND (col0 >= 0) AND (col0 > 4 OR col3 > 5) OR col1 > 3.59 AND col0 < 9 OR (col0 BETWEEN 8 AND 6) AND col4 > 3.10 OR (col0 < 4) AND col0 < 8 AND (col0 IN (2,9,7,1,1,9) AND (col0 > 1) OR (col3 <= 6)) OR ((col0 < 2) OR (col0 <= 3)) AND col4 IS NULL AND col0 <= 9 AND col3 < 4 OR (((col4 BETWEEN 4.13 AND 6.59) OR col1 > 5.6 OR col1 >= 1.86 AND col0 < 4)) AND (col3 > 9) OR (col0 > 6) AND (col4 > 5.56 OR col4 >= 6.4 OR col4 < 3.36 AND col0 > 4 OR col1 < 0.36) OR (col1 IS NULL))))

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (col0 < 0 AND ((col4 >= 5.9 OR (col1 BETWEEN 8.26 AND 4.99) AND ((((col1 >= 6.17)) OR col0 IN (5,2,8,2,8,0) OR ((col0 >= 4) OR col3 < 5) AND ((col3 > 7)))) AND col4 IS NULL AND col3 > 7 AND (col0 >= 0) AND (col0 > 4 OR col3 > 5) OR col1 > 3.59 AND col0 < 9 OR (col0 BETWEEN 8 AND 6) AND col4 > 3.10 OR (col0 < 4) AND col0 < 8 AND (col0 IN (2,9,7,1,1,9) AND (col0 > 1) OR (col3 <= 6)) OR ((col0 < 2) OR (col0 <= 3)) AND col4 IS NULL AND col0 <= 9 AND col3 < 4 OR (((col4 BETWEEN 4.13 AND 6.59) OR col1 > 5.6 OR col1 >= 1.86 AND col0 < 4)) AND (col3 > 9) OR (col0 > 6) AND (col4 > 5.56 OR col4 >= 6.4 OR col4 < 3.36 AND col0 > 4 OR col1 < 0.36) OR (col1 IS NULL))))
----

query I rowsort label-435
SELECT pk FROM tab4 WHERE NOT ((col0 < 0 AND ((col4 >= 5.9 OR (col1 BETWEEN 8.26 AND 4.99) AND ((((col1 >= 6.17)) OR col0 IN (5,2,8,2,8,0) OR ((col0 >= 4) OR col3 < 5) AND ((col3 > 7)))) AND col4 IS NULL AND col3 > 7 AND (col0 >= 0) AND (col0 > 4 OR col3 > 5) OR col1 > 3.59 AND col0 < 9 OR (col0 BETWEEN 8 AND 6) AND col4 > 3.10 OR (col0 < 4) AND col0 < 8 AND (col0 IN (2,9,7,1,1,9) AND (col0 > 1) OR (col3 <= 6)) OR ((col0 < 2) OR (col0 <= 3)) AND col4 IS NULL AND col0 <= 9 AND col3 < 4 OR (((col4 BETWEEN 4.13 AND 6.59) OR col1 > 5.6 OR col1 >= 1.86 AND col0 < 4)) AND (col3 > 9) OR (col0 > 6) AND (col4 > 5.56 OR col4 >= 6.4 OR col4 < 3.36 AND col0 > 4 OR col1 < 0.36) OR (col1 IS NULL)))))
----
0

statement ok
DELETE FROM tab0 WHERE col4 >= 2.83

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col4 >= 2.83
----

query I rowsort label-450
SELECT pk FROM tab0 WHERE NOT (col4 >= 2.83)
----
0

statement ok
DELETE FROM tab1 WHERE col4 >= 2.83

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col4 >= 2.83
----

query I rowsort label-450
SELECT pk FROM tab1 WHERE NOT (col4 >= 2.83)
----
0

statement ok
DELETE FROM tab2 WHERE col4 >= 2.83

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col4 >= 2.83
----

query I rowsort label-450
SELECT pk FROM tab2 WHERE NOT (col4 >= 2.83)
----
0

statement ok
DELETE FROM tab3 WHERE col4 >= 2.83

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col4 >= 2.83
----

query I rowsort label-450
SELECT pk FROM tab3 WHERE NOT (col4 >= 2.83)
----
0

statement ok
DELETE FROM tab4 WHERE col4 >= 2.83

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col4 >= 2.83
----

query I rowsort label-450
SELECT pk FROM tab4 WHERE NOT (col4 >= 2.83)
----
0

statement ok
DELETE FROM tab0 WHERE col3 <= 1 OR ((col3 < 5 OR (col3 IS NULL))) AND ((col0 >= 8)) AND (col0 = 9 AND (((col3 < 9 AND (col4 > 7.18 AND col3 > 3))) AND col3 = 3 AND col0 < 1)) OR col3 IN (3,9,6,8,4) AND (col0 > 1)

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col3 <= 1 OR ((col3 < 5 OR (col3 IS NULL))) AND ((col0 >= 8)) AND (col0 = 9 AND (((col3 < 9 AND (col4 > 7.18 AND col3 > 3))) AND col3 = 3 AND col0 < 1)) OR col3 IN (3,9,6,8,4) AND (col0 > 1)
----

query I rowsort label-465
SELECT pk FROM tab0 WHERE NOT (col3 <= 1 OR ((col3 < 5 OR (col3 IS NULL))) AND ((col0 >= 8)) AND (col0 = 9 AND (((col3 < 9 AND (col4 > 7.18 AND col3 > 3))) AND col3 = 3 AND col0 < 1)) OR col3 IN (3,9,6,8,4) AND (col0 > 1))
----
0

statement ok
DELETE FROM tab1 WHERE col3 <= 1 OR ((col3 < 5 OR (col3 IS NULL))) AND ((col0 >= 8)) AND (col0 = 9 AND (((col3 < 9 AND (col4 > 7.18 AND col3 > 3))) AND col3 = 3 AND col0 < 1)) OR col3 IN (3,9,6,8,4) AND (col0 > 1)

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col3 <= 1 OR ((col3 < 5 OR (col3 IS NULL))) AND ((col0 >= 8)) AND (col0 = 9 AND (((col3 < 9 AND (col4 > 7.18 AND col3 > 3))) AND col3 = 3 AND col0 < 1)) OR col3 IN (3,9,6,8,4) AND (col0 > 1)
----

query I rowsort label-465
SELECT pk FROM tab1 WHERE NOT (col3 <= 1 OR ((col3 < 5 OR (col3 IS NULL))) AND ((col0 >= 8)) AND (col0 = 9 AND (((col3 < 9 AND (col4 > 7.18 AND col3 > 3))) AND col3 = 3 AND col0 < 1)) OR col3 IN (3,9,6,8,4) AND (col0 > 1))
----
0

statement ok
DELETE FROM tab2 WHERE col3 <= 1 OR ((col3 < 5 OR (col3 IS NULL))) AND ((col0 >= 8)) AND (col0 = 9 AND (((col3 < 9 AND (col4 > 7.18 AND col3 > 3))) AND col3 = 3 AND col0 < 1)) OR col3 IN (3,9,6,8,4) AND (col0 > 1)

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col3 <= 1 OR ((col3 < 5 OR (col3 IS NULL))) AND ((col0 >= 8)) AND (col0 = 9 AND (((col3 < 9 AND (col4 > 7.18 AND col3 > 3))) AND col3 = 3 AND col0 < 1)) OR col3 IN (3,9,6,8,4) AND (col0 > 1)
----

query I rowsort label-465
SELECT pk FROM tab2 WHERE NOT (col3 <= 1 OR ((col3 < 5 OR (col3 IS NULL))) AND ((col0 >= 8)) AND (col0 = 9 AND (((col3 < 9 AND (col4 > 7.18 AND col3 > 3))) AND col3 = 3 AND col0 < 1)) OR col3 IN (3,9,6,8,4) AND (col0 > 1))
----
0

statement ok
DELETE FROM tab3 WHERE col3 <= 1 OR ((col3 < 5 OR (col3 IS NULL))) AND ((col0 >= 8)) AND (col0 = 9 AND (((col3 < 9 AND (col4 > 7.18 AND col3 > 3))) AND col3 = 3 AND col0 < 1)) OR col3 IN (3,9,6,8,4) AND (col0 > 1)

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col3 <= 1 OR ((col3 < 5 OR (col3 IS NULL))) AND ((col0 >= 8)) AND (col0 = 9 AND (((col3 < 9 AND (col4 > 7.18 AND col3 > 3))) AND col3 = 3 AND col0 < 1)) OR col3 IN (3,9,6,8,4) AND (col0 > 1)
----

query I rowsort label-465
SELECT pk FROM tab3 WHERE NOT (col3 <= 1 OR ((col3 < 5 OR (col3 IS NULL))) AND ((col0 >= 8)) AND (col0 = 9 AND (((col3 < 9 AND (col4 > 7.18 AND col3 > 3))) AND col3 = 3 AND col0 < 1)) OR col3 IN (3,9,6,8,4) AND (col0 > 1))
----
0

statement ok
DELETE FROM tab4 WHERE col3 <= 1 OR ((col3 < 5 OR (col3 IS NULL))) AND ((col0 >= 8)) AND (col0 = 9 AND (((col3 < 9 AND (col4 > 7.18 AND col3 > 3))) AND col3 = 3 AND col0 < 1)) OR col3 IN (3,9,6,8,4) AND (col0 > 1)

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col3 <= 1 OR ((col3 < 5 OR (col3 IS NULL))) AND ((col0 >= 8)) AND (col0 = 9 AND (((col3 < 9 AND (col4 > 7.18 AND col3 > 3))) AND col3 = 3 AND col0 < 1)) OR col3 IN (3,9,6,8,4) AND (col0 > 1)
----

query I rowsort label-465
SELECT pk FROM tab4 WHERE NOT (col3 <= 1 OR ((col3 < 5 OR (col3 IS NULL))) AND ((col0 >= 8)) AND (col0 = 9 AND (((col3 < 9 AND (col4 > 7.18 AND col3 > 3))) AND col3 = 3 AND col0 < 1)) OR col3 IN (3,9,6,8,4) AND (col0 > 1))
----
0

statement ok
DELETE FROM tab0 WHERE ((col0 > 1 OR (col3 >= 2)) OR (col3 < 8 OR ((col3 >= 9) AND (col1 BETWEEN 3.75 AND 2.30)) OR col1 <= 8.58))

query I rowsort label-empty
SELECT pk FROM tab0 WHERE ((col0 > 1 OR (col3 >= 2)) OR (col3 < 8 OR ((col3 >= 9) AND (col1 BETWEEN 3.75 AND 2.30)) OR col1 <= 8.58))
----

query I rowsort label-480
SELECT pk FROM tab0 WHERE NOT (((col0 > 1 OR (col3 >= 2)) OR (col3 < 8 OR ((col3 >= 9) AND (col1 BETWEEN 3.75 AND 2.30)) OR col1 <= 8.58)))
----

statement ok
DELETE FROM tab1 WHERE ((col0 > 1 OR (col3 >= 2)) OR (col3 < 8 OR ((col3 >= 9) AND (col1 BETWEEN 3.75 AND 2.30)) OR col1 <= 8.58))

query I rowsort label-empty
SELECT pk FROM tab1 WHERE ((col0 > 1 OR (col3 >= 2)) OR (col3 < 8 OR ((col3 >= 9) AND (col1 BETWEEN 3.75 AND 2.30)) OR col1 <= 8.58))
----

query I rowsort label-480
SELECT pk FROM tab1 WHERE NOT (((col0 > 1 OR (col3 >= 2)) OR (col3 < 8 OR ((col3 >= 9) AND (col1 BETWEEN 3.75 AND 2.30)) OR col1 <= 8.58)))
----

statement ok
DELETE FROM tab2 WHERE ((col0 > 1 OR (col3 >= 2)) OR (col3 < 8 OR ((col3 >= 9) AND (col1 BETWEEN 3.75 AND 2.30)) OR col1 <= 8.58))

query I rowsort label-empty
SELECT pk FROM tab2 WHERE ((col0 > 1 OR (col3 >= 2)) OR (col3 < 8 OR ((col3 >= 9) AND (col1 BETWEEN 3.75 AND 2.30)) OR col1 <= 8.58))
----

query I rowsort label-480
SELECT pk FROM tab2 WHERE NOT (((col0 > 1 OR (col3 >= 2)) OR (col3 < 8 OR ((col3 >= 9) AND (col1 BETWEEN 3.75 AND 2.30)) OR col1 <= 8.58)))
----

statement ok
DELETE FROM tab3 WHERE ((col0 > 1 OR (col3 >= 2)) OR (col3 < 8 OR ((col3 >= 9) AND (col1 BETWEEN 3.75 AND 2.30)) OR col1 <= 8.58))

query I rowsort label-empty
SELECT pk FROM tab3 WHERE ((col0 > 1 OR (col3 >= 2)) OR (col3 < 8 OR ((col3 >= 9) AND (col1 BETWEEN 3.75 AND 2.30)) OR col1 <= 8.58))
----

query I rowsort label-480
SELECT pk FROM tab3 WHERE NOT (((col0 > 1 OR (col3 >= 2)) OR (col3 < 8 OR ((col3 >= 9) AND (col1 BETWEEN 3.75 AND 2.30)) OR col1 <= 8.58)))
----

statement ok
DELETE FROM tab4 WHERE ((col0 > 1 OR (col3 >= 2)) OR (col3 < 8 OR ((col3 >= 9) AND (col1 BETWEEN 3.75 AND 2.30)) OR col1 <= 8.58))

query I rowsort label-empty
SELECT pk FROM tab4 WHERE ((col0 > 1 OR (col3 >= 2)) OR (col3 < 8 OR ((col3 >= 9) AND (col1 BETWEEN 3.75 AND 2.30)) OR col1 <= 8.58))
----

query I rowsort label-480
SELECT pk FROM tab4 WHERE NOT (((col0 > 1 OR (col3 >= 2)) OR (col3 < 8 OR ((col3 >= 9) AND (col1 BETWEEN 3.75 AND 2.30)) OR col1 <= 8.58)))
----

statement ok
DROP TABLE tab0

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,8,7.35,'okbhs',0,3.65,'lfqjc')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE UNIQUE INDEX idx_tab2_0 ON tab2 (col3,col4)

statement ok
CREATE UNIQUE INDEX idx_tab2_1 ON tab2 (col0)

statement ok
CREATE UNIQUE INDEX idx_tab2_5 ON tab2 (col4,col1 DESC)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

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

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

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

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE INDEX idx_tab4_0 ON tab4 (col0)

statement ok
CREATE UNIQUE INDEX idx_tab4_1 ON tab4 (col1)

statement ok
CREATE INDEX idx_tab4_5 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
----

statement ok
DELETE FROM tab0 WHERE col3 < 8 AND col3 < 9 OR (col0 = 5) AND col3 IS NULL OR col3 > 0 OR col0 >= 8 OR col4 > 8.31 AND col3 IS NULL AND col0 <= 8

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col3 < 8 AND col3 < 9 OR (col0 = 5) AND col3 IS NULL OR col3 > 0 OR col0 >= 8 OR col4 > 8.31 AND col3 IS NULL AND col0 <= 8
----

query I rowsort label-495
SELECT pk FROM tab0 WHERE NOT (col3 < 8 AND col3 < 9 OR (col0 = 5) AND col3 IS NULL OR col3 > 0 OR col0 >= 8 OR col4 > 8.31 AND col3 IS NULL AND col0 <= 8)
----

statement ok
DELETE FROM tab1 WHERE col3 < 8 AND col3 < 9 OR (col0 = 5) AND col3 IS NULL OR col3 > 0 OR col0 >= 8 OR col4 > 8.31 AND col3 IS NULL AND col0 <= 8

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col3 < 8 AND col3 < 9 OR (col0 = 5) AND col3 IS NULL OR col3 > 0 OR col0 >= 8 OR col4 > 8.31 AND col3 IS NULL AND col0 <= 8
----

query I rowsort label-495
SELECT pk FROM tab1 WHERE NOT (col3 < 8 AND col3 < 9 OR (col0 = 5) AND col3 IS NULL OR col3 > 0 OR col0 >= 8 OR col4 > 8.31 AND col3 IS NULL AND col0 <= 8)
----

statement ok
DELETE FROM tab2 WHERE col3 < 8 AND col3 < 9 OR (col0 = 5) AND col3 IS NULL OR col3 > 0 OR col0 >= 8 OR col4 > 8.31 AND col3 IS NULL AND col0 <= 8

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col3 < 8 AND col3 < 9 OR (col0 = 5) AND col3 IS NULL OR col3 > 0 OR col0 >= 8 OR col4 > 8.31 AND col3 IS NULL AND col0 <= 8
----

query I rowsort label-495
SELECT pk FROM tab2 WHERE NOT (col3 < 8 AND col3 < 9 OR (col0 = 5) AND col3 IS NULL OR col3 > 0 OR col0 >= 8 OR col4 > 8.31 AND col3 IS NULL AND col0 <= 8)
----

statement ok
DELETE FROM tab3 WHERE col3 < 8 AND col3 < 9 OR (col0 = 5) AND col3 IS NULL OR col3 > 0 OR col0 >= 8 OR col4 > 8.31 AND col3 IS NULL AND col0 <= 8

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col3 < 8 AND col3 < 9 OR (col0 = 5) AND col3 IS NULL OR col3 > 0 OR col0 >= 8 OR col4 > 8.31 AND col3 IS NULL AND col0 <= 8
----

query I rowsort label-495
SELECT pk FROM tab3 WHERE NOT (col3 < 8 AND col3 < 9 OR (col0 = 5) AND col3 IS NULL OR col3 > 0 OR col0 >= 8 OR col4 > 8.31 AND col3 IS NULL AND col0 <= 8)
----

statement ok
DELETE FROM tab4 WHERE col3 < 8 AND col3 < 9 OR (col0 = 5) AND col3 IS NULL OR col3 > 0 OR col0 >= 8 OR col4 > 8.31 AND col3 IS NULL AND col0 <= 8

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col3 < 8 AND col3 < 9 OR (col0 = 5) AND col3 IS NULL OR col3 > 0 OR col0 >= 8 OR col4 > 8.31 AND col3 IS NULL AND col0 <= 8
----

query I rowsort label-495
SELECT pk FROM tab4 WHERE NOT (col3 < 8 AND col3 < 9 OR (col0 = 5) AND col3 IS NULL OR col3 > 0 OR col0 >= 8 OR col4 > 8.31 AND col3 IS NULL AND col0 <= 8)
----

statement ok
DROP TABLE tab0

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,3,9.36,'qznyc',1,0.88,'mlwbt')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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)

statement ok
CREATE INDEX idx_tab2_1 ON tab2 (col1)

statement ok
CREATE UNIQUE INDEX idx_tab2_3 ON tab2 (col3)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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,col3 DESC)

statement ok
CREATE INDEX idx_tab4_1 ON tab4 (col3)

statement ok
CREATE UNIQUE INDEX idx_tab4_2 ON tab4 (col1)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE ((col3 > 6) AND (col4 < 7.84)) OR (col4 >= 5.70 OR col0 IN (1))

query I rowsort label-empty
SELECT pk FROM tab0 WHERE ((col3 > 6) AND (col4 < 7.84)) OR (col4 >= 5.70 OR col0 IN (1))
----

query I rowsort label-510
SELECT pk FROM tab0 WHERE NOT (((col3 > 6) AND (col4 < 7.84)) OR (col4 >= 5.70 OR col0 IN (1)))
----
0

statement ok
DELETE FROM tab1 WHERE ((col3 > 6) AND (col4 < 7.84)) OR (col4 >= 5.70 OR col0 IN (1))

query I rowsort label-empty
SELECT pk FROM tab1 WHERE ((col3 > 6) AND (col4 < 7.84)) OR (col4 >= 5.70 OR col0 IN (1))
----

query I rowsort label-510
SELECT pk FROM tab1 WHERE NOT (((col3 > 6) AND (col4 < 7.84)) OR (col4 >= 5.70 OR col0 IN (1)))
----
0

statement ok
DELETE FROM tab2 WHERE ((col3 > 6) AND (col4 < 7.84)) OR (col4 >= 5.70 OR col0 IN (1))

query I rowsort label-empty
SELECT pk FROM tab2 WHERE ((col3 > 6) AND (col4 < 7.84)) OR (col4 >= 5.70 OR col0 IN (1))
----

query I rowsort label-510
SELECT pk FROM tab2 WHERE NOT (((col3 > 6) AND (col4 < 7.84)) OR (col4 >= 5.70 OR col0 IN (1)))
----
0

statement ok
DELETE FROM tab3 WHERE ((col3 > 6) AND (col4 < 7.84)) OR (col4 >= 5.70 OR col0 IN (1))

query I rowsort label-empty
SELECT pk FROM tab3 WHERE ((col3 > 6) AND (col4 < 7.84)) OR (col4 >= 5.70 OR col0 IN (1))
----

query I rowsort label-510
SELECT pk FROM tab3 WHERE NOT (((col3 > 6) AND (col4 < 7.84)) OR (col4 >= 5.70 OR col0 IN (1)))
----
0

statement ok
DELETE FROM tab4 WHERE ((col3 > 6) AND (col4 < 7.84)) OR (col4 >= 5.70 OR col0 IN (1))

query I rowsort label-empty
SELECT pk FROM tab4 WHERE ((col3 > 6) AND (col4 < 7.84)) OR (col4 >= 5.70 OR col0 IN (1))
----

query I rowsort label-510
SELECT pk FROM tab4 WHERE NOT (((col3 > 6) AND (col4 < 7.84)) OR (col4 >= 5.70 OR col0 IN (1)))
----
0

statement ok
DELETE FROM tab0 WHERE ((col1 < 3.69 AND col0 = 4)) OR (col3 > 3) AND (col0 < 3) OR (col3 = 2)

query I rowsort label-empty
SELECT pk FROM tab0 WHERE ((col1 < 3.69 AND col0 = 4)) OR (col3 > 3) AND (col0 < 3) OR (col3 = 2)
----

query I rowsort label-525
SELECT pk FROM tab0 WHERE NOT (((col1 < 3.69 AND col0 = 4)) OR (col3 > 3) AND (col0 < 3) OR (col3 = 2))
----
0

statement ok
DELETE FROM tab1 WHERE ((col1 < 3.69 AND col0 = 4)) OR (col3 > 3) AND (col0 < 3) OR (col3 = 2)

query I rowsort label-empty
SELECT pk FROM tab1 WHERE ((col1 < 3.69 AND col0 = 4)) OR (col3 > 3) AND (col0 < 3) OR (col3 = 2)
----

query I rowsort label-525
SELECT pk FROM tab1 WHERE NOT (((col1 < 3.69 AND col0 = 4)) OR (col3 > 3) AND (col0 < 3) OR (col3 = 2))
----
0

statement ok
DELETE FROM tab2 WHERE ((col1 < 3.69 AND col0 = 4)) OR (col3 > 3) AND (col0 < 3) OR (col3 = 2)

query I rowsort label-empty
SELECT pk FROM tab2 WHERE ((col1 < 3.69 AND col0 = 4)) OR (col3 > 3) AND (col0 < 3) OR (col3 = 2)
----

query I rowsort label-525
SELECT pk FROM tab2 WHERE NOT (((col1 < 3.69 AND col0 = 4)) OR (col3 > 3) AND (col0 < 3) OR (col3 = 2))
----
0

statement ok
DELETE FROM tab3 WHERE ((col1 < 3.69 AND col0 = 4)) OR (col3 > 3) AND (col0 < 3) OR (col3 = 2)

query I rowsort label-empty
SELECT pk FROM tab3 WHERE ((col1 < 3.69 AND col0 = 4)) OR (col3 > 3) AND (col0 < 3) OR (col3 = 2)
----

query I rowsort label-525
SELECT pk FROM tab3 WHERE NOT (((col1 < 3.69 AND col0 = 4)) OR (col3 > 3) AND (col0 < 3) OR (col3 = 2))
----
0

statement ok
DELETE FROM tab4 WHERE ((col1 < 3.69 AND col0 = 4)) OR (col3 > 3) AND (col0 < 3) OR (col3 = 2)

query I rowsort label-empty
SELECT pk FROM tab4 WHERE ((col1 < 3.69 AND col0 = 4)) OR (col3 > 3) AND (col0 < 3) OR (col3 = 2)
----

query I rowsort label-525
SELECT pk FROM tab4 WHERE NOT (((col1 < 3.69 AND col0 = 4)) OR (col3 > 3) AND (col0 < 3) OR (col3 = 2))
----
0

statement ok
DELETE FROM tab0 WHERE col0 >= 1

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col0 >= 1
----

query I rowsort label-540
SELECT pk FROM tab0 WHERE NOT (col0 >= 1)
----

statement ok
DELETE FROM tab1 WHERE col0 >= 1

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col0 >= 1
----

query I rowsort label-540
SELECT pk FROM tab1 WHERE NOT (col0 >= 1)
----

statement ok
DELETE FROM tab2 WHERE col0 >= 1

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col0 >= 1
----

query I rowsort label-540
SELECT pk FROM tab2 WHERE NOT (col0 >= 1)
----

statement ok
DELETE FROM tab3 WHERE col0 >= 1

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col0 >= 1
----

query I rowsort label-540
SELECT pk FROM tab3 WHERE NOT (col0 >= 1)
----

statement ok
DELETE FROM tab4 WHERE col0 >= 1

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col0 >= 1
----

query I rowsort label-540
SELECT pk FROM tab4 WHERE NOT (col0 >= 1)
----

statement ok
DROP TABLE tab0

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,8,4.8,'tohud',7,2.94,'sbhvo')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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,col4 DESC,col1)

statement ok
CREATE INDEX idx_tab2_1 ON tab2 (col4,col0 DESC,col1 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab2_2 ON tab2 (col3)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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 DESC,col0 DESC,col3)

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

statement ok
CREATE UNIQUE INDEX idx_tab3_4 ON tab3 (col0,col3)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

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

statement ok
CREATE UNIQUE INDEX idx_tab4_3 ON tab4 (col3 DESC,col4)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE col1 < 5.18

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col1 < 5.18
----

query I rowsort label-555
SELECT pk FROM tab0 WHERE NOT (col1 < 5.18)
----

statement ok
DELETE FROM tab1 WHERE col1 < 5.18

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col1 < 5.18
----

query I rowsort label-555
SELECT pk FROM tab1 WHERE NOT (col1 < 5.18)
----

statement ok
DELETE FROM tab2 WHERE col1 < 5.18

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col1 < 5.18
----

query I rowsort label-555
SELECT pk FROM tab2 WHERE NOT (col1 < 5.18)
----

statement ok
DELETE FROM tab3 WHERE col1 < 5.18

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col1 < 5.18
----

query I rowsort label-555
SELECT pk FROM tab3 WHERE NOT (col1 < 5.18)
----

statement ok
DELETE FROM tab4 WHERE col1 < 5.18

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col1 < 5.18
----

query I rowsort label-555
SELECT pk FROM tab4 WHERE NOT (col1 < 5.18)
----

statement ok
DROP TABLE tab0

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,3,5.56,'xzxgp',2,4.22,'ytjbr')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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,col1 DESC)

statement ok
CREATE INDEX idx_tab2_3 ON tab2 (col3 DESC,col4 DESC)

statement ok
CREATE INDEX idx_tab2_4 ON tab2 (col1)

statement ok
CREATE UNIQUE INDEX idx_tab2_5 ON tab2 (col4)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

statement ok
CREATE INDEX idx_tab3_0 ON tab3 (col4)

statement ok
CREATE INDEX idx_tab3_1 ON tab3 (col1 DESC)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE INDEX idx_tab4_0 ON tab4 (col1)

statement ok
CREATE INDEX idx_tab4_1 ON tab4 (col3 DESC,col4)

statement ok
CREATE INDEX idx_tab4_3 ON tab4 (col3,col0 DESC)

statement ok
CREATE INDEX idx_tab4_4 ON tab4 (col4 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab4_5 ON tab4 (col0 DESC)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE (col0 IS NULL)

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

query I rowsort label-570
SELECT pk FROM tab0 WHERE NOT ((col0 IS NULL))
----
0

statement ok
DELETE FROM tab1 WHERE (col0 IS NULL)

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (col0 IS NULL)
----

query I rowsort label-570
SELECT pk FROM tab1 WHERE NOT ((col0 IS NULL))
----
0

statement ok
DELETE FROM tab2 WHERE (col0 IS NULL)

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (col0 IS NULL)
----

query I rowsort label-570
SELECT pk FROM tab2 WHERE NOT ((col0 IS NULL))
----
0

statement ok
DELETE FROM tab3 WHERE (col0 IS NULL)

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (col0 IS NULL)
----

query I rowsort label-570
SELECT pk FROM tab3 WHERE NOT ((col0 IS NULL))
----
0

statement ok
DELETE FROM tab4 WHERE (col0 IS NULL)

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (col0 IS NULL)
----

query I rowsort label-570
SELECT pk FROM tab4 WHERE NOT ((col0 IS NULL))
----
0

statement ok
DELETE FROM tab0 WHERE (col4 <= 2.77)

query I rowsort label-empty
SELECT pk FROM tab0 WHERE (col4 <= 2.77)
----

query I rowsort label-585
SELECT pk FROM tab0 WHERE NOT ((col4 <= 2.77))
----
0

statement ok
DELETE FROM tab1 WHERE (col4 <= 2.77)

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (col4 <= 2.77)
----

query I rowsort label-585
SELECT pk FROM tab1 WHERE NOT ((col4 <= 2.77))
----
0

statement ok
DELETE FROM tab2 WHERE (col4 <= 2.77)

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (col4 <= 2.77)
----

query I rowsort label-585
SELECT pk FROM tab2 WHERE NOT ((col4 <= 2.77))
----
0

statement ok
DELETE FROM tab3 WHERE (col4 <= 2.77)

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (col4 <= 2.77)
----

query I rowsort label-585
SELECT pk FROM tab3 WHERE NOT ((col4 <= 2.77))
----
0

statement ok
DELETE FROM tab4 WHERE (col4 <= 2.77)

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (col4 <= 2.77)
----

query I rowsort label-585
SELECT pk FROM tab4 WHERE NOT ((col4 <= 2.77))
----
0

statement ok
DELETE FROM tab0 WHERE (col1 < 0.69) AND col3 >= 3 OR col4 >= 2.9 AND col1 > 6.4 AND col3 < 8 OR (col3 = 0 OR col0 IS NULL AND col3 < 6)

query I rowsort label-empty
SELECT pk FROM tab0 WHERE (col1 < 0.69) AND col3 >= 3 OR col4 >= 2.9 AND col1 > 6.4 AND col3 < 8 OR (col3 = 0 OR col0 IS NULL AND col3 < 6)
----

query I rowsort label-600
SELECT pk FROM tab0 WHERE NOT ((col1 < 0.69) AND col3 >= 3 OR col4 >= 2.9 AND col1 > 6.4 AND col3 < 8 OR (col3 = 0 OR col0 IS NULL AND col3 < 6))
----
0

statement ok
DELETE FROM tab1 WHERE (col1 < 0.69) AND col3 >= 3 OR col4 >= 2.9 AND col1 > 6.4 AND col3 < 8 OR (col3 = 0 OR col0 IS NULL AND col3 < 6)

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (col1 < 0.69) AND col3 >= 3 OR col4 >= 2.9 AND col1 > 6.4 AND col3 < 8 OR (col3 = 0 OR col0 IS NULL AND col3 < 6)
----

query I rowsort label-600
SELECT pk FROM tab1 WHERE NOT ((col1 < 0.69) AND col3 >= 3 OR col4 >= 2.9 AND col1 > 6.4 AND col3 < 8 OR (col3 = 0 OR col0 IS NULL AND col3 < 6))
----
0

statement ok
DELETE FROM tab2 WHERE (col1 < 0.69) AND col3 >= 3 OR col4 >= 2.9 AND col1 > 6.4 AND col3 < 8 OR (col3 = 0 OR col0 IS NULL AND col3 < 6)

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (col1 < 0.69) AND col3 >= 3 OR col4 >= 2.9 AND col1 > 6.4 AND col3 < 8 OR (col3 = 0 OR col0 IS NULL AND col3 < 6)
----

query I rowsort label-600
SELECT pk FROM tab2 WHERE NOT ((col1 < 0.69) AND col3 >= 3 OR col4 >= 2.9 AND col1 > 6.4 AND col3 < 8 OR (col3 = 0 OR col0 IS NULL AND col3 < 6))
----
0

statement ok
DELETE FROM tab3 WHERE (col1 < 0.69) AND col3 >= 3 OR col4 >= 2.9 AND col1 > 6.4 AND col3 < 8 OR (col3 = 0 OR col0 IS NULL AND col3 < 6)

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (col1 < 0.69) AND col3 >= 3 OR col4 >= 2.9 AND col1 > 6.4 AND col3 < 8 OR (col3 = 0 OR col0 IS NULL AND col3 < 6)
----

query I rowsort label-600
SELECT pk FROM tab3 WHERE NOT ((col1 < 0.69) AND col3 >= 3 OR col4 >= 2.9 AND col1 > 6.4 AND col3 < 8 OR (col3 = 0 OR col0 IS NULL AND col3 < 6))
----
0

statement ok
DELETE FROM tab4 WHERE (col1 < 0.69) AND col3 >= 3 OR col4 >= 2.9 AND col1 > 6.4 AND col3 < 8 OR (col3 = 0 OR col0 IS NULL AND col3 < 6)

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (col1 < 0.69) AND col3 >= 3 OR col4 >= 2.9 AND col1 > 6.4 AND col3 < 8 OR (col3 = 0 OR col0 IS NULL AND col3 < 6)
----

query I rowsort label-600
SELECT pk FROM tab4 WHERE NOT ((col1 < 0.69) AND col3 >= 3 OR col4 >= 2.9 AND col1 > 6.4 AND col3 < 8 OR (col3 = 0 OR col0 IS NULL AND col3 < 6))
----
0

statement ok
DELETE FROM tab0 WHERE (col3 > 5)

query I rowsort label-empty
SELECT pk FROM tab0 WHERE (col3 > 5)
----

query I rowsort label-615
SELECT pk FROM tab0 WHERE NOT ((col3 > 5))
----
0

statement ok
DELETE FROM tab1 WHERE (col3 > 5)

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (col3 > 5)
----

query I rowsort label-615
SELECT pk FROM tab1 WHERE NOT ((col3 > 5))
----
0

statement ok
DELETE FROM tab2 WHERE (col3 > 5)

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (col3 > 5)
----

query I rowsort label-615
SELECT pk FROM tab2 WHERE NOT ((col3 > 5))
----
0

statement ok
DELETE FROM tab3 WHERE (col3 > 5)

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (col3 > 5)
----

query I rowsort label-615
SELECT pk FROM tab3 WHERE NOT ((col3 > 5))
----
0

statement ok
DELETE FROM tab4 WHERE (col3 > 5)

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (col3 > 5)
----

query I rowsort label-615
SELECT pk FROM tab4 WHERE NOT ((col3 > 5))
----
0

statement ok
DELETE FROM tab0 WHERE col1 >= 5.12

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col1 >= 5.12
----

query I rowsort label-630
SELECT pk FROM tab0 WHERE NOT (col1 >= 5.12)
----

statement ok
DELETE FROM tab1 WHERE col1 >= 5.12

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col1 >= 5.12
----

query I rowsort label-630
SELECT pk FROM tab1 WHERE NOT (col1 >= 5.12)
----

statement ok
DELETE FROM tab2 WHERE col1 >= 5.12

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col1 >= 5.12
----

query I rowsort label-630
SELECT pk FROM tab2 WHERE NOT (col1 >= 5.12)
----

statement ok
DELETE FROM tab3 WHERE col1 >= 5.12

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col1 >= 5.12
----

query I rowsort label-630
SELECT pk FROM tab3 WHERE NOT (col1 >= 5.12)
----

statement ok
DELETE FROM tab4 WHERE col1 >= 5.12

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col1 >= 5.12
----

query I rowsort label-630
SELECT pk FROM tab4 WHERE NOT (col1 >= 5.12)
----

statement ok
DROP TABLE tab0

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,0,1.3,'wisbe',8,9.47,'rxwfb')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE INDEX idx_tab2_0 ON tab2 (col3 DESC,col4 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab2_1 ON tab2 (col0 DESC,col3 DESC)

statement ok
CREATE INDEX idx_tab2_2 ON tab2 (col4,col3 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab2_3 ON tab2 (col1)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

statement ok
CREATE INDEX idx_tab3_0 ON tab3 (col0 DESC)

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

statement ok
CREATE INDEX idx_tab3_2 ON tab3 (col3)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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,col1)

statement ok
CREATE UNIQUE INDEX idx_tab4_3 ON tab4 (col3 DESC)

statement ok
CREATE INDEX idx_tab4_4 ON tab4 (col1 DESC)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE col4 IS NULL OR col4 < 9.67 AND col3 IS NULL OR (((((col0 > 5)))) AND (col0 < 9) AND col0 >= 6) AND col3 IS NULL OR (col4 IS NULL) OR col3 IN (9,3,0,5)

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col4 IS NULL OR col4 < 9.67 AND col3 IS NULL OR (((((col0 > 5)))) AND (col0 < 9) AND col0 >= 6) AND col3 IS NULL OR (col4 IS NULL) OR col3 IN (9,3,0,5)
----

query I rowsort label-645
SELECT pk FROM tab0 WHERE NOT (col4 IS NULL OR col4 < 9.67 AND col3 IS NULL OR (((((col0 > 5)))) AND (col0 < 9) AND col0 >= 6) AND col3 IS NULL OR (col4 IS NULL) OR col3 IN (9,3,0,5))
----
0

statement ok
DELETE FROM tab1 WHERE col4 IS NULL OR col4 < 9.67 AND col3 IS NULL OR (((((col0 > 5)))) AND (col0 < 9) AND col0 >= 6) AND col3 IS NULL OR (col4 IS NULL) OR col3 IN (9,3,0,5)

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col4 IS NULL OR col4 < 9.67 AND col3 IS NULL OR (((((col0 > 5)))) AND (col0 < 9) AND col0 >= 6) AND col3 IS NULL OR (col4 IS NULL) OR col3 IN (9,3,0,5)
----

query I rowsort label-645
SELECT pk FROM tab1 WHERE NOT (col4 IS NULL OR col4 < 9.67 AND col3 IS NULL OR (((((col0 > 5)))) AND (col0 < 9) AND col0 >= 6) AND col3 IS NULL OR (col4 IS NULL) OR col3 IN (9,3,0,5))
----
0

statement ok
DELETE FROM tab2 WHERE col4 IS NULL OR col4 < 9.67 AND col3 IS NULL OR (((((col0 > 5)))) AND (col0 < 9) AND col0 >= 6) AND col3 IS NULL OR (col4 IS NULL) OR col3 IN (9,3,0,5)

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col4 IS NULL OR col4 < 9.67 AND col3 IS NULL OR (((((col0 > 5)))) AND (col0 < 9) AND col0 >= 6) AND col3 IS NULL OR (col4 IS NULL) OR col3 IN (9,3,0,5)
----

query I rowsort label-645
SELECT pk FROM tab2 WHERE NOT (col4 IS NULL OR col4 < 9.67 AND col3 IS NULL OR (((((col0 > 5)))) AND (col0 < 9) AND col0 >= 6) AND col3 IS NULL OR (col4 IS NULL) OR col3 IN (9,3,0,5))
----
0

statement ok
DELETE FROM tab3 WHERE col4 IS NULL OR col4 < 9.67 AND col3 IS NULL OR (((((col0 > 5)))) AND (col0 < 9) AND col0 >= 6) AND col3 IS NULL OR (col4 IS NULL) OR col3 IN (9,3,0,5)

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col4 IS NULL OR col4 < 9.67 AND col3 IS NULL OR (((((col0 > 5)))) AND (col0 < 9) AND col0 >= 6) AND col3 IS NULL OR (col4 IS NULL) OR col3 IN (9,3,0,5)
----

query I rowsort label-645
SELECT pk FROM tab3 WHERE NOT (col4 IS NULL OR col4 < 9.67 AND col3 IS NULL OR (((((col0 > 5)))) AND (col0 < 9) AND col0 >= 6) AND col3 IS NULL OR (col4 IS NULL) OR col3 IN (9,3,0,5))
----
0

statement ok
DELETE FROM tab4 WHERE col4 IS NULL OR col4 < 9.67 AND col3 IS NULL OR (((((col0 > 5)))) AND (col0 < 9) AND col0 >= 6) AND col3 IS NULL OR (col4 IS NULL) OR col3 IN (9,3,0,5)

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col4 IS NULL OR col4 < 9.67 AND col3 IS NULL OR (((((col0 > 5)))) AND (col0 < 9) AND col0 >= 6) AND col3 IS NULL OR (col4 IS NULL) OR col3 IN (9,3,0,5)
----

query I rowsort label-645
SELECT pk FROM tab4 WHERE NOT (col4 IS NULL OR col4 < 9.67 AND col3 IS NULL OR (((((col0 > 5)))) AND (col0 < 9) AND col0 >= 6) AND col3 IS NULL OR (col4 IS NULL) OR col3 IN (9,3,0,5))
----
0

statement ok
DELETE FROM tab0 WHERE ((col0 > 8 AND ((((col4 <= 8.51 OR (col3 > 6))))) OR (col0 = 6 OR (col4 > 8.29) AND col3 IN (7,3,0)) AND col0 IS NULL OR col0 <= 4 OR ((col0 >= 1) AND col0 <= 9 OR (col3 <= 2) AND col3 < 7)) AND col0 < 0 AND col4 > 9.71 AND col4 > 6.66) AND (((col1 > 9.92 AND col0 > 8 AND (col1 <= 2.22)) OR (col0 >= 6 AND ((col1 >= 6.4)) OR (col0 < 2)) OR ((col0 > 3) OR ((((((((col0 = 6)) AND col0 IS NULL) AND (((col3 <= 8) OR col1 = 7.10) OR col3 = 8 OR (col1 IS NULL AND col0 <= 6) OR col1 <= 0.56 AND col3 BETWEEN 1 AND 7 OR col0 > 8 AND (((col4 <= 3.91) AND col0 BETWEEN 8 AND 5 AND (col1 IN (8.63,6.46,4.47,3.1,6.55))) AND (col3 > 7) OR col3 < 1 OR col1 > 9.83 AND col4 < 4.14)))))))) OR col0 < 1 OR ((((((col0 >= 0 OR (col3 < 1) OR (col1 IN (8.10,0.67,1.37,8.43,9.5,6.79) OR (col3 < 5)) OR col1 > 3.95)) AND col3 = 8) AND col3 >= 9 AND ((((col1 IN (1.4,5.92,4.38,8.95) OR ((col1 = 1.8) AND col4 <= 1.42)))) AND ((col0 > 1 AND ((col0 > 0 OR col0 > 1)) AND ((col3 IS NULL AND col0 >= 8 AND col3 >= 6)) OR col0 >= 7 OR col3 IS NULL OR ((col4 < 6.91)) OR col4 < 5.6 AND col0 > 7)))))) OR (col3 <= 9)))

query I rowsort label-empty
SELECT pk FROM tab0 WHERE ((col0 > 8 AND ((((col4 <= 8.51 OR (col3 > 6))))) OR (col0 = 6 OR (col4 > 8.29) AND col3 IN (7,3,0)) AND col0 IS NULL OR col0 <= 4 OR ((col0 >= 1) AND col0 <= 9 OR (col3 <= 2) AND col3 < 7)) AND col0 < 0 AND col4 > 9.71 AND col4 > 6.66) AND (((col1 > 9.92 AND col0 > 8 AND (col1 <= 2.22)) OR (col0 >= 6 AND ((col1 >= 6.4)) OR (col0 < 2)) OR ((col0 > 3) OR ((((((((col0 = 6)) AND col0 IS NULL) AND (((col3 <= 8) OR col1 = 7.10) OR col3 = 8 OR (col1 IS NULL AND col0 <= 6) OR col1 <= 0.56 AND col3 BETWEEN 1 AND 7 OR col0 > 8 AND (((col4 <= 3.91) AND col0 BETWEEN 8 AND 5 AND (col1 IN (8.63,6.46,4.47,3.1,6.55))) AND (col3 > 7) OR col3 < 1 OR col1 > 9.83 AND col4 < 4.14)))))))) OR col0 < 1 OR ((((((col0 >= 0 OR (col3 < 1) OR (col1 IN (8.10,0.67,1.37,8.43,9.5,6.79) OR (col3 < 5)) OR col1 > 3.95)) AND col3 = 8) AND col3 >= 9 AND ((((col1 IN (1.4,5.92,4.38,8.95) OR ((col1 = 1.8) AND col4 <= 1.42)))) AND ((col0 > 1 AND ((col0 > 0 OR col0 > 1)) AND ((col3 IS NULL AND col0 >= 8 AND col3 >= 6)) OR col0 >= 7 OR col3 IS NULL OR ((col4 < 6.91)) OR col4 < 5.6 AND col0 > 7)))))) OR (col3 <= 9)))
----

query I rowsort label-660
SELECT pk FROM tab0 WHERE NOT (((col0 > 8 AND ((((col4 <= 8.51 OR (col3 > 6))))) OR (col0 = 6 OR (col4 > 8.29) AND col3 IN (7,3,0)) AND col0 IS NULL OR col0 <= 4 OR ((col0 >= 1) AND col0 <= 9 OR (col3 <= 2) AND col3 < 7)) AND col0 < 0 AND col4 > 9.71 AND col4 > 6.66) AND (((col1 > 9.92 AND col0 > 8 AND (col1 <= 2.22)) OR (col0 >= 6 AND ((col1 >= 6.4)) OR (col0 < 2)) OR ((col0 > 3) OR ((((((((col0 = 6)) AND col0 IS NULL) AND (((col3 <= 8) OR col1 = 7.10) OR col3 = 8 OR (col1 IS NULL AND col0 <= 6) OR col1 <= 0.56 AND col3 BETWEEN 1 AND 7 OR col0 > 8 AND (((col4 <= 3.91) AND col0 BETWEEN 8 AND 5 AND (col1 IN (8.63,6.46,4.47,3.1,6.55))) AND (col3 > 7) OR col3 < 1 OR col1 > 9.83 AND col4 < 4.14)))))))) OR col0 < 1 OR ((((((col0 >= 0 OR (col3 < 1) OR (col1 IN (8.10,0.67,1.37,8.43,9.5,6.79) OR (col3 < 5)) OR col1 > 3.95)) AND col3 = 8) AND col3 >= 9 AND ((((col1 IN (1.4,5.92,4.38,8.95) OR ((col1 = 1.8) AND col4 <= 1.42)))) AND ((col0 > 1 AND ((col0 > 0 OR col0 > 1)) AND ((col3 IS NULL AND col0 >= 8 AND col3 >= 6)) OR col0 >= 7 OR col3 IS NULL OR ((col4 < 6.91)) OR col4 < 5.6 AND col0 > 7)))))) OR (col3 <= 9))))
----
0

statement ok
DELETE FROM tab1 WHERE ((col0 > 8 AND ((((col4 <= 8.51 OR (col3 > 6))))) OR (col0 = 6 OR (col4 > 8.29) AND col3 IN (7,3,0)) AND col0 IS NULL OR col0 <= 4 OR ((col0 >= 1) AND col0 <= 9 OR (col3 <= 2) AND col3 < 7)) AND col0 < 0 AND col4 > 9.71 AND col4 > 6.66) AND (((col1 > 9.92 AND col0 > 8 AND (col1 <= 2.22)) OR (col0 >= 6 AND ((col1 >= 6.4)) OR (col0 < 2)) OR ((col0 > 3) OR ((((((((col0 = 6)) AND col0 IS NULL) AND (((col3 <= 8) OR col1 = 7.10) OR col3 = 8 OR (col1 IS NULL AND col0 <= 6) OR col1 <= 0.56 AND col3 BETWEEN 1 AND 7 OR col0 > 8 AND (((col4 <= 3.91) AND col0 BETWEEN 8 AND 5 AND (col1 IN (8.63,6.46,4.47,3.1,6.55))) AND (col3 > 7) OR col3 < 1 OR col1 > 9.83 AND col4 < 4.14)))))))) OR col0 < 1 OR ((((((col0 >= 0 OR (col3 < 1) OR (col1 IN (8.10,0.67,1.37,8.43,9.5,6.79) OR (col3 < 5)) OR col1 > 3.95)) AND col3 = 8) AND col3 >= 9 AND ((((col1 IN (1.4,5.92,4.38,8.95) OR ((col1 = 1.8) AND col4 <= 1.42)))) AND ((col0 > 1 AND ((col0 > 0 OR col0 > 1)) AND ((col3 IS NULL AND col0 >= 8 AND col3 >= 6)) OR col0 >= 7 OR col3 IS NULL OR ((col4 < 6.91)) OR col4 < 5.6 AND col0 > 7)))))) OR (col3 <= 9)))

query I rowsort label-empty
SELECT pk FROM tab1 WHERE ((col0 > 8 AND ((((col4 <= 8.51 OR (col3 > 6))))) OR (col0 = 6 OR (col4 > 8.29) AND col3 IN (7,3,0)) AND col0 IS NULL OR col0 <= 4 OR ((col0 >= 1) AND col0 <= 9 OR (col3 <= 2) AND col3 < 7)) AND col0 < 0 AND col4 > 9.71 AND col4 > 6.66) AND (((col1 > 9.92 AND col0 > 8 AND (col1 <= 2.22)) OR (col0 >= 6 AND ((col1 >= 6.4)) OR (col0 < 2)) OR ((col0 > 3) OR ((((((((col0 = 6)) AND col0 IS NULL) AND (((col3 <= 8) OR col1 = 7.10) OR col3 = 8 OR (col1 IS NULL AND col0 <= 6) OR col1 <= 0.56 AND col3 BETWEEN 1 AND 7 OR col0 > 8 AND (((col4 <= 3.91) AND col0 BETWEEN 8 AND 5 AND (col1 IN (8.63,6.46,4.47,3.1,6.55))) AND (col3 > 7) OR col3 < 1 OR col1 > 9.83 AND col4 < 4.14)))))))) OR col0 < 1 OR ((((((col0 >= 0 OR (col3 < 1) OR (col1 IN (8.10,0.67,1.37,8.43,9.5,6.79) OR (col3 < 5)) OR col1 > 3.95)) AND col3 = 8) AND col3 >= 9 AND ((((col1 IN (1.4,5.92,4.38,8.95) OR ((col1 = 1.8) AND col4 <= 1.42)))) AND ((col0 > 1 AND ((col0 > 0 OR col0 > 1)) AND ((col3 IS NULL AND col0 >= 8 AND col3 >= 6)) OR col0 >= 7 OR col3 IS NULL OR ((col4 < 6.91)) OR col4 < 5.6 AND col0 > 7)))))) OR (col3 <= 9)))
----

query I rowsort label-660
SELECT pk FROM tab1 WHERE NOT (((col0 > 8 AND ((((col4 <= 8.51 OR (col3 > 6))))) OR (col0 = 6 OR (col4 > 8.29) AND col3 IN (7,3,0)) AND col0 IS NULL OR col0 <= 4 OR ((col0 >= 1) AND col0 <= 9 OR (col3 <= 2) AND col3 < 7)) AND col0 < 0 AND col4 > 9.71 AND col4 > 6.66) AND (((col1 > 9.92 AND col0 > 8 AND (col1 <= 2.22)) OR (col0 >= 6 AND ((col1 >= 6.4)) OR (col0 < 2)) OR ((col0 > 3) OR ((((((((col0 = 6)) AND col0 IS NULL) AND (((col3 <= 8) OR col1 = 7.10) OR col3 = 8 OR (col1 IS NULL AND col0 <= 6) OR col1 <= 0.56 AND col3 BETWEEN 1 AND 7 OR col0 > 8 AND (((col4 <= 3.91) AND col0 BETWEEN 8 AND 5 AND (col1 IN (8.63,6.46,4.47,3.1,6.55))) AND (col3 > 7) OR col3 < 1 OR col1 > 9.83 AND col4 < 4.14)))))))) OR col0 < 1 OR ((((((col0 >= 0 OR (col3 < 1) OR (col1 IN (8.10,0.67,1.37,8.43,9.5,6.79) OR (col3 < 5)) OR col1 > 3.95)) AND col3 = 8) AND col3 >= 9 AND ((((col1 IN (1.4,5.92,4.38,8.95) OR ((col1 = 1.8) AND col4 <= 1.42)))) AND ((col0 > 1 AND ((col0 > 0 OR col0 > 1)) AND ((col3 IS NULL AND col0 >= 8 AND col3 >= 6)) OR col0 >= 7 OR col3 IS NULL OR ((col4 < 6.91)) OR col4 < 5.6 AND col0 > 7)))))) OR (col3 <= 9))))
----
0

statement ok
DELETE FROM tab2 WHERE ((col0 > 8 AND ((((col4 <= 8.51 OR (col3 > 6))))) OR (col0 = 6 OR (col4 > 8.29) AND col3 IN (7,3,0)) AND col0 IS NULL OR col0 <= 4 OR ((col0 >= 1) AND col0 <= 9 OR (col3 <= 2) AND col3 < 7)) AND col0 < 0 AND col4 > 9.71 AND col4 > 6.66) AND (((col1 > 9.92 AND col0 > 8 AND (col1 <= 2.22)) OR (col0 >= 6 AND ((col1 >= 6.4)) OR (col0 < 2)) OR ((col0 > 3) OR ((((((((col0 = 6)) AND col0 IS NULL) AND (((col3 <= 8) OR col1 = 7.10) OR col3 = 8 OR (col1 IS NULL AND col0 <= 6) OR col1 <= 0.56 AND col3 BETWEEN 1 AND 7 OR col0 > 8 AND (((col4 <= 3.91) AND col0 BETWEEN 8 AND 5 AND (col1 IN (8.63,6.46,4.47,3.1,6.55))) AND (col3 > 7) OR col3 < 1 OR col1 > 9.83 AND col4 < 4.14)))))))) OR col0 < 1 OR ((((((col0 >= 0 OR (col3 < 1) OR (col1 IN (8.10,0.67,1.37,8.43,9.5,6.79) OR (col3 < 5)) OR col1 > 3.95)) AND col3 = 8) AND col3 >= 9 AND ((((col1 IN (1.4,5.92,4.38,8.95) OR ((col1 = 1.8) AND col4 <= 1.42)))) AND ((col0 > 1 AND ((col0 > 0 OR col0 > 1)) AND ((col3 IS NULL AND col0 >= 8 AND col3 >= 6)) OR col0 >= 7 OR col3 IS NULL OR ((col4 < 6.91)) OR col4 < 5.6 AND col0 > 7)))))) OR (col3 <= 9)))

query I rowsort label-empty
SELECT pk FROM tab2 WHERE ((col0 > 8 AND ((((col4 <= 8.51 OR (col3 > 6))))) OR (col0 = 6 OR (col4 > 8.29) AND col3 IN (7,3,0)) AND col0 IS NULL OR col0 <= 4 OR ((col0 >= 1) AND col0 <= 9 OR (col3 <= 2) AND col3 < 7)) AND col0 < 0 AND col4 > 9.71 AND col4 > 6.66) AND (((col1 > 9.92 AND col0 > 8 AND (col1 <= 2.22)) OR (col0 >= 6 AND ((col1 >= 6.4)) OR (col0 < 2)) OR ((col0 > 3) OR ((((((((col0 = 6)) AND col0 IS NULL) AND (((col3 <= 8) OR col1 = 7.10) OR col3 = 8 OR (col1 IS NULL AND col0 <= 6) OR col1 <= 0.56 AND col3 BETWEEN 1 AND 7 OR col0 > 8 AND (((col4 <= 3.91) AND col0 BETWEEN 8 AND 5 AND (col1 IN (8.63,6.46,4.47,3.1,6.55))) AND (col3 > 7) OR col3 < 1 OR col1 > 9.83 AND col4 < 4.14)))))))) OR col0 < 1 OR ((((((col0 >= 0 OR (col3 < 1) OR (col1 IN (8.10,0.67,1.37,8.43,9.5,6.79) OR (col3 < 5)) OR col1 > 3.95)) AND col3 = 8) AND col3 >= 9 AND ((((col1 IN (1.4,5.92,4.38,8.95) OR ((col1 = 1.8) AND col4 <= 1.42)))) AND ((col0 > 1 AND ((col0 > 0 OR col0 > 1)) AND ((col3 IS NULL AND col0 >= 8 AND col3 >= 6)) OR col0 >= 7 OR col3 IS NULL OR ((col4 < 6.91)) OR col4 < 5.6 AND col0 > 7)))))) OR (col3 <= 9)))
----

query I rowsort label-660
SELECT pk FROM tab2 WHERE NOT (((col0 > 8 AND ((((col4 <= 8.51 OR (col3 > 6))))) OR (col0 = 6 OR (col4 > 8.29) AND col3 IN (7,3,0)) AND col0 IS NULL OR col0 <= 4 OR ((col0 >= 1) AND col0 <= 9 OR (col3 <= 2) AND col3 < 7)) AND col0 < 0 AND col4 > 9.71 AND col4 > 6.66) AND (((col1 > 9.92 AND col0 > 8 AND (col1 <= 2.22)) OR (col0 >= 6 AND ((col1 >= 6.4)) OR (col0 < 2)) OR ((col0 > 3) OR ((((((((col0 = 6)) AND col0 IS NULL) AND (((col3 <= 8) OR col1 = 7.10) OR col3 = 8 OR (col1 IS NULL AND col0 <= 6) OR col1 <= 0.56 AND col3 BETWEEN 1 AND 7 OR col0 > 8 AND (((col4 <= 3.91) AND col0 BETWEEN 8 AND 5 AND (col1 IN (8.63,6.46,4.47,3.1,6.55))) AND (col3 > 7) OR col3 < 1 OR col1 > 9.83 AND col4 < 4.14)))))))) OR col0 < 1 OR ((((((col0 >= 0 OR (col3 < 1) OR (col1 IN (8.10,0.67,1.37,8.43,9.5,6.79) OR (col3 < 5)) OR col1 > 3.95)) AND col3 = 8) AND col3 >= 9 AND ((((col1 IN (1.4,5.92,4.38,8.95) OR ((col1 = 1.8) AND col4 <= 1.42)))) AND ((col0 > 1 AND ((col0 > 0 OR col0 > 1)) AND ((col3 IS NULL AND col0 >= 8 AND col3 >= 6)) OR col0 >= 7 OR col3 IS NULL OR ((col4 < 6.91)) OR col4 < 5.6 AND col0 > 7)))))) OR (col3 <= 9))))
----
0

statement ok
DELETE FROM tab3 WHERE ((col0 > 8 AND ((((col4 <= 8.51 OR (col3 > 6))))) OR (col0 = 6 OR (col4 > 8.29) AND col3 IN (7,3,0)) AND col0 IS NULL OR col0 <= 4 OR ((col0 >= 1) AND col0 <= 9 OR (col3 <= 2) AND col3 < 7)) AND col0 < 0 AND col4 > 9.71 AND col4 > 6.66) AND (((col1 > 9.92 AND col0 > 8 AND (col1 <= 2.22)) OR (col0 >= 6 AND ((col1 >= 6.4)) OR (col0 < 2)) OR ((col0 > 3) OR ((((((((col0 = 6)) AND col0 IS NULL) AND (((col3 <= 8) OR col1 = 7.10) OR col3 = 8 OR (col1 IS NULL AND col0 <= 6) OR col1 <= 0.56 AND col3 BETWEEN 1 AND 7 OR col0 > 8 AND (((col4 <= 3.91) AND col0 BETWEEN 8 AND 5 AND (col1 IN (8.63,6.46,4.47,3.1,6.55))) AND (col3 > 7) OR col3 < 1 OR col1 > 9.83 AND col4 < 4.14)))))))) OR col0 < 1 OR ((((((col0 >= 0 OR (col3 < 1) OR (col1 IN (8.10,0.67,1.37,8.43,9.5,6.79) OR (col3 < 5)) OR col1 > 3.95)) AND col3 = 8) AND col3 >= 9 AND ((((col1 IN (1.4,5.92,4.38,8.95) OR ((col1 = 1.8) AND col4 <= 1.42)))) AND ((col0 > 1 AND ((col0 > 0 OR col0 > 1)) AND ((col3 IS NULL AND col0 >= 8 AND col3 >= 6)) OR col0 >= 7 OR col3 IS NULL OR ((col4 < 6.91)) OR col4 < 5.6 AND col0 > 7)))))) OR (col3 <= 9)))

query I rowsort label-empty
SELECT pk FROM tab3 WHERE ((col0 > 8 AND ((((col4 <= 8.51 OR (col3 > 6))))) OR (col0 = 6 OR (col4 > 8.29) AND col3 IN (7,3,0)) AND col0 IS NULL OR col0 <= 4 OR ((col0 >= 1) AND col0 <= 9 OR (col3 <= 2) AND col3 < 7)) AND col0 < 0 AND col4 > 9.71 AND col4 > 6.66) AND (((col1 > 9.92 AND col0 > 8 AND (col1 <= 2.22)) OR (col0 >= 6 AND ((col1 >= 6.4)) OR (col0 < 2)) OR ((col0 > 3) OR ((((((((col0 = 6)) AND col0 IS NULL) AND (((col3 <= 8) OR col1 = 7.10) OR col3 = 8 OR (col1 IS NULL AND col0 <= 6) OR col1 <= 0.56 AND col3 BETWEEN 1 AND 7 OR col0 > 8 AND (((col4 <= 3.91) AND col0 BETWEEN 8 AND 5 AND (col1 IN (8.63,6.46,4.47,3.1,6.55))) AND (col3 > 7) OR col3 < 1 OR col1 > 9.83 AND col4 < 4.14)))))))) OR col0 < 1 OR ((((((col0 >= 0 OR (col3 < 1) OR (col1 IN (8.10,0.67,1.37,8.43,9.5,6.79) OR (col3 < 5)) OR col1 > 3.95)) AND col3 = 8) AND col3 >= 9 AND ((((col1 IN (1.4,5.92,4.38,8.95) OR ((col1 = 1.8) AND col4 <= 1.42)))) AND ((col0 > 1 AND ((col0 > 0 OR col0 > 1)) AND ((col3 IS NULL AND col0 >= 8 AND col3 >= 6)) OR col0 >= 7 OR col3 IS NULL OR ((col4 < 6.91)) OR col4 < 5.6 AND col0 > 7)))))) OR (col3 <= 9)))
----

query I rowsort label-660
SELECT pk FROM tab3 WHERE NOT (((col0 > 8 AND ((((col4 <= 8.51 OR (col3 > 6))))) OR (col0 = 6 OR (col4 > 8.29) AND col3 IN (7,3,0)) AND col0 IS NULL OR col0 <= 4 OR ((col0 >= 1) AND col0 <= 9 OR (col3 <= 2) AND col3 < 7)) AND col0 < 0 AND col4 > 9.71 AND col4 > 6.66) AND (((col1 > 9.92 AND col0 > 8 AND (col1 <= 2.22)) OR (col0 >= 6 AND ((col1 >= 6.4)) OR (col0 < 2)) OR ((col0 > 3) OR ((((((((col0 = 6)) AND col0 IS NULL) AND (((col3 <= 8) OR col1 = 7.10) OR col3 = 8 OR (col1 IS NULL AND col0 <= 6) OR col1 <= 0.56 AND col3 BETWEEN 1 AND 7 OR col0 > 8 AND (((col4 <= 3.91) AND col0 BETWEEN 8 AND 5 AND (col1 IN (8.63,6.46,4.47,3.1,6.55))) AND (col3 > 7) OR col3 < 1 OR col1 > 9.83 AND col4 < 4.14)))))))) OR col0 < 1 OR ((((((col0 >= 0 OR (col3 < 1) OR (col1 IN (8.10,0.67,1.37,8.43,9.5,6.79) OR (col3 < 5)) OR col1 > 3.95)) AND col3 = 8) AND col3 >= 9 AND ((((col1 IN (1.4,5.92,4.38,8.95) OR ((col1 = 1.8) AND col4 <= 1.42)))) AND ((col0 > 1 AND ((col0 > 0 OR col0 > 1)) AND ((col3 IS NULL AND col0 >= 8 AND col3 >= 6)) OR col0 >= 7 OR col3 IS NULL OR ((col4 < 6.91)) OR col4 < 5.6 AND col0 > 7)))))) OR (col3 <= 9))))
----
0

statement ok
DELETE FROM tab4 WHERE ((col0 > 8 AND ((((col4 <= 8.51 OR (col3 > 6))))) OR (col0 = 6 OR (col4 > 8.29) AND col3 IN (7,3,0)) AND col0 IS NULL OR col0 <= 4 OR ((col0 >= 1) AND col0 <= 9 OR (col3 <= 2) AND col3 < 7)) AND col0 < 0 AND col4 > 9.71 AND col4 > 6.66) AND (((col1 > 9.92 AND col0 > 8 AND (col1 <= 2.22)) OR (col0 >= 6 AND ((col1 >= 6.4)) OR (col0 < 2)) OR ((col0 > 3) OR ((((((((col0 = 6)) AND col0 IS NULL) AND (((col3 <= 8) OR col1 = 7.10) OR col3 = 8 OR (col1 IS NULL AND col0 <= 6) OR col1 <= 0.56 AND col3 BETWEEN 1 AND 7 OR col0 > 8 AND (((col4 <= 3.91) AND col0 BETWEEN 8 AND 5 AND (col1 IN (8.63,6.46,4.47,3.1,6.55))) AND (col3 > 7) OR col3 < 1 OR col1 > 9.83 AND col4 < 4.14)))))))) OR col0 < 1 OR ((((((col0 >= 0 OR (col3 < 1) OR (col1 IN (8.10,0.67,1.37,8.43,9.5,6.79) OR (col3 < 5)) OR col1 > 3.95)) AND col3 = 8) AND col3 >= 9 AND ((((col1 IN (1.4,5.92,4.38,8.95) OR ((col1 = 1.8) AND col4 <= 1.42)))) AND ((col0 > 1 AND ((col0 > 0 OR col0 > 1)) AND ((col3 IS NULL AND col0 >= 8 AND col3 >= 6)) OR col0 >= 7 OR col3 IS NULL OR ((col4 < 6.91)) OR col4 < 5.6 AND col0 > 7)))))) OR (col3 <= 9)))

query I rowsort label-empty
SELECT pk FROM tab4 WHERE ((col0 > 8 AND ((((col4 <= 8.51 OR (col3 > 6))))) OR (col0 = 6 OR (col4 > 8.29) AND col3 IN (7,3,0)) AND col0 IS NULL OR col0 <= 4 OR ((col0 >= 1) AND col0 <= 9 OR (col3 <= 2) AND col3 < 7)) AND col0 < 0 AND col4 > 9.71 AND col4 > 6.66) AND (((col1 > 9.92 AND col0 > 8 AND (col1 <= 2.22)) OR (col0 >= 6 AND ((col1 >= 6.4)) OR (col0 < 2)) OR ((col0 > 3) OR ((((((((col0 = 6)) AND col0 IS NULL) AND (((col3 <= 8) OR col1 = 7.10) OR col3 = 8 OR (col1 IS NULL AND col0 <= 6) OR col1 <= 0.56 AND col3 BETWEEN 1 AND 7 OR col0 > 8 AND (((col4 <= 3.91) AND col0 BETWEEN 8 AND 5 AND (col1 IN (8.63,6.46,4.47,3.1,6.55))) AND (col3 > 7) OR col3 < 1 OR col1 > 9.83 AND col4 < 4.14)))))))) OR col0 < 1 OR ((((((col0 >= 0 OR (col3 < 1) OR (col1 IN (8.10,0.67,1.37,8.43,9.5,6.79) OR (col3 < 5)) OR col1 > 3.95)) AND col3 = 8) AND col3 >= 9 AND ((((col1 IN (1.4,5.92,4.38,8.95) OR ((col1 = 1.8) AND col4 <= 1.42)))) AND ((col0 > 1 AND ((col0 > 0 OR col0 > 1)) AND ((col3 IS NULL AND col0 >= 8 AND col3 >= 6)) OR col0 >= 7 OR col3 IS NULL OR ((col4 < 6.91)) OR col4 < 5.6 AND col0 > 7)))))) OR (col3 <= 9)))
----

query I rowsort label-660
SELECT pk FROM tab4 WHERE NOT (((col0 > 8 AND ((((col4 <= 8.51 OR (col3 > 6))))) OR (col0 = 6 OR (col4 > 8.29) AND col3 IN (7,3,0)) AND col0 IS NULL OR col0 <= 4 OR ((col0 >= 1) AND col0 <= 9 OR (col3 <= 2) AND col3 < 7)) AND col0 < 0 AND col4 > 9.71 AND col4 > 6.66) AND (((col1 > 9.92 AND col0 > 8 AND (col1 <= 2.22)) OR (col0 >= 6 AND ((col1 >= 6.4)) OR (col0 < 2)) OR ((col0 > 3) OR ((((((((col0 = 6)) AND col0 IS NULL) AND (((col3 <= 8) OR col1 = 7.10) OR col3 = 8 OR (col1 IS NULL AND col0 <= 6) OR col1 <= 0.56 AND col3 BETWEEN 1 AND 7 OR col0 > 8 AND (((col4 <= 3.91) AND col0 BETWEEN 8 AND 5 AND (col1 IN (8.63,6.46,4.47,3.1,6.55))) AND (col3 > 7) OR col3 < 1 OR col1 > 9.83 AND col4 < 4.14)))))))) OR col0 < 1 OR ((((((col0 >= 0 OR (col3 < 1) OR (col1 IN (8.10,0.67,1.37,8.43,9.5,6.79) OR (col3 < 5)) OR col1 > 3.95)) AND col3 = 8) AND col3 >= 9 AND ((((col1 IN (1.4,5.92,4.38,8.95) OR ((col1 = 1.8) AND col4 <= 1.42)))) AND ((col0 > 1 AND ((col0 > 0 OR col0 > 1)) AND ((col3 IS NULL AND col0 >= 8 AND col3 >= 6)) OR col0 >= 7 OR col3 IS NULL OR ((col4 < 6.91)) OR col4 < 5.6 AND col0 > 7)))))) OR (col3 <= 9))))
----
0

statement ok
DELETE FROM tab0 WHERE ((col1 BETWEEN 6.74 AND 9.38) AND (col3 = 9))

query I rowsort label-empty
SELECT pk FROM tab0 WHERE ((col1 BETWEEN 6.74 AND 9.38) AND (col3 = 9))
----

query I rowsort label-675
SELECT pk FROM tab0 WHERE NOT (((col1 BETWEEN 6.74 AND 9.38) AND (col3 = 9)))
----
0

statement ok
DELETE FROM tab1 WHERE ((col1 BETWEEN 6.74 AND 9.38) AND (col3 = 9))

query I rowsort label-empty
SELECT pk FROM tab1 WHERE ((col1 BETWEEN 6.74 AND 9.38) AND (col3 = 9))
----

query I rowsort label-675
SELECT pk FROM tab1 WHERE NOT (((col1 BETWEEN 6.74 AND 9.38) AND (col3 = 9)))
----
0

statement ok
DELETE FROM tab2 WHERE ((col1 BETWEEN 6.74 AND 9.38) AND (col3 = 9))

query I rowsort label-empty
SELECT pk FROM tab2 WHERE ((col1 BETWEEN 6.74 AND 9.38) AND (col3 = 9))
----

query I rowsort label-675
SELECT pk FROM tab2 WHERE NOT (((col1 BETWEEN 6.74 AND 9.38) AND (col3 = 9)))
----
0

statement ok
DELETE FROM tab3 WHERE ((col1 BETWEEN 6.74 AND 9.38) AND (col3 = 9))

query I rowsort label-empty
SELECT pk FROM tab3 WHERE ((col1 BETWEEN 6.74 AND 9.38) AND (col3 = 9))
----

query I rowsort label-675
SELECT pk FROM tab3 WHERE NOT (((col1 BETWEEN 6.74 AND 9.38) AND (col3 = 9)))
----
0

statement ok
DELETE FROM tab4 WHERE ((col1 BETWEEN 6.74 AND 9.38) AND (col3 = 9))

query I rowsort label-empty
SELECT pk FROM tab4 WHERE ((col1 BETWEEN 6.74 AND 9.38) AND (col3 = 9))
----

query I rowsort label-675
SELECT pk FROM tab4 WHERE NOT (((col1 BETWEEN 6.74 AND 9.38) AND (col3 = 9)))
----
0

statement ok
DELETE FROM tab0 WHERE col4 < 9.10

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col4 < 9.10
----

query I rowsort label-690
SELECT pk FROM tab0 WHERE NOT (col4 < 9.10)
----
0

statement ok
DELETE FROM tab1 WHERE col4 < 9.10

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col4 < 9.10
----

query I rowsort label-690
SELECT pk FROM tab1 WHERE NOT (col4 < 9.10)
----
0

statement ok
DELETE FROM tab2 WHERE col4 < 9.10

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col4 < 9.10
----

query I rowsort label-690
SELECT pk FROM tab2 WHERE NOT (col4 < 9.10)
----
0

statement ok
DELETE FROM tab3 WHERE col4 < 9.10

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col4 < 9.10
----

query I rowsort label-690
SELECT pk FROM tab3 WHERE NOT (col4 < 9.10)
----
0

statement ok
DELETE FROM tab4 WHERE col4 < 9.10

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col4 < 9.10
----

query I rowsort label-690
SELECT pk FROM tab4 WHERE NOT (col4 < 9.10)
----
0

statement ok
DELETE FROM tab0 WHERE col4 > 1.49

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col4 > 1.49
----

query I rowsort label-705
SELECT pk FROM tab0 WHERE NOT (col4 > 1.49)
----

statement ok
DELETE FROM tab1 WHERE col4 > 1.49

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col4 > 1.49
----

query I rowsort label-705
SELECT pk FROM tab1 WHERE NOT (col4 > 1.49)
----

statement ok
DELETE FROM tab2 WHERE col4 > 1.49

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col4 > 1.49
----

query I rowsort label-705
SELECT pk FROM tab2 WHERE NOT (col4 > 1.49)
----

statement ok
DELETE FROM tab3 WHERE col4 > 1.49

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col4 > 1.49
----

query I rowsort label-705
SELECT pk FROM tab3 WHERE NOT (col4 > 1.49)
----

statement ok
DELETE FROM tab4 WHERE col4 > 1.49

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col4 > 1.49
----

query I rowsort label-705
SELECT pk FROM tab4 WHERE NOT (col4 > 1.49)
----

statement ok
DROP TABLE tab0

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,7,6.84,'cnmch',2,9.45,'idphr')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE UNIQUE INDEX idx_tab2_0 ON tab2 (col4 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab2_1 ON tab2 (col1,col3,col0)

statement ok
CREATE INDEX idx_tab2_2 ON tab2 (col3 DESC)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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 DESC,col0)

statement ok
CREATE UNIQUE INDEX idx_tab3_1 ON tab3 (col3 DESC,col1 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab3_3 ON tab3 (col1)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

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

statement ok
CREATE UNIQUE INDEX idx_tab4_1 ON tab4 (col3 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab4_4 ON tab4 (col0)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE (((col3 < 7 AND (col3 > 9) OR col3 > 2 OR col1 <= 8.82 AND (col0 = 5 AND (col0 IS NULL)) AND (col3 < 8 OR col4 IN (1.57,1.43,2.78,6.64,6.48,6.40) AND (col1 > 2.9) OR col1 > 1.50 AND (col4 < 3.39)) AND (col3 > 0) AND col3 <= 4 AND col0 < 0 AND col4 <= 2.74 AND col0 < 2 AND col0 < 7 OR col0 < 1 OR ((col4 < 6.37)) AND ((col0 > 3 AND col0 <= 7)) OR col0 < 9 AND col3 IN (3,7,0,9) AND col0 > 7)))

query I rowsort label-empty
SELECT pk FROM tab0 WHERE (((col3 < 7 AND (col3 > 9) OR col3 > 2 OR col1 <= 8.82 AND (col0 = 5 AND (col0 IS NULL)) AND (col3 < 8 OR col4 IN (1.57,1.43,2.78,6.64,6.48,6.40) AND (col1 > 2.9) OR col1 > 1.50 AND (col4 < 3.39)) AND (col3 > 0) AND col3 <= 4 AND col0 < 0 AND col4 <= 2.74 AND col0 < 2 AND col0 < 7 OR col0 < 1 OR ((col4 < 6.37)) AND ((col0 > 3 AND col0 <= 7)) OR col0 < 9 AND col3 IN (3,7,0,9) AND col0 > 7)))
----

query I rowsort label-720
SELECT pk FROM tab0 WHERE NOT ((((col3 < 7 AND (col3 > 9) OR col3 > 2 OR col1 <= 8.82 AND (col0 = 5 AND (col0 IS NULL)) AND (col3 < 8 OR col4 IN (1.57,1.43,2.78,6.64,6.48,6.40) AND (col1 > 2.9) OR col1 > 1.50 AND (col4 < 3.39)) AND (col3 > 0) AND col3 <= 4 AND col0 < 0 AND col4 <= 2.74 AND col0 < 2 AND col0 < 7 OR col0 < 1 OR ((col4 < 6.37)) AND ((col0 > 3 AND col0 <= 7)) OR col0 < 9 AND col3 IN (3,7,0,9) AND col0 > 7))))
----
0

statement ok
DELETE FROM tab1 WHERE (((col3 < 7 AND (col3 > 9) OR col3 > 2 OR col1 <= 8.82 AND (col0 = 5 AND (col0 IS NULL)) AND (col3 < 8 OR col4 IN (1.57,1.43,2.78,6.64,6.48,6.40) AND (col1 > 2.9) OR col1 > 1.50 AND (col4 < 3.39)) AND (col3 > 0) AND col3 <= 4 AND col0 < 0 AND col4 <= 2.74 AND col0 < 2 AND col0 < 7 OR col0 < 1 OR ((col4 < 6.37)) AND ((col0 > 3 AND col0 <= 7)) OR col0 < 9 AND col3 IN (3,7,0,9) AND col0 > 7)))

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (((col3 < 7 AND (col3 > 9) OR col3 > 2 OR col1 <= 8.82 AND (col0 = 5 AND (col0 IS NULL)) AND (col3 < 8 OR col4 IN (1.57,1.43,2.78,6.64,6.48,6.40) AND (col1 > 2.9) OR col1 > 1.50 AND (col4 < 3.39)) AND (col3 > 0) AND col3 <= 4 AND col0 < 0 AND col4 <= 2.74 AND col0 < 2 AND col0 < 7 OR col0 < 1 OR ((col4 < 6.37)) AND ((col0 > 3 AND col0 <= 7)) OR col0 < 9 AND col3 IN (3,7,0,9) AND col0 > 7)))
----

query I rowsort label-720
SELECT pk FROM tab1 WHERE NOT ((((col3 < 7 AND (col3 > 9) OR col3 > 2 OR col1 <= 8.82 AND (col0 = 5 AND (col0 IS NULL)) AND (col3 < 8 OR col4 IN (1.57,1.43,2.78,6.64,6.48,6.40) AND (col1 > 2.9) OR col1 > 1.50 AND (col4 < 3.39)) AND (col3 > 0) AND col3 <= 4 AND col0 < 0 AND col4 <= 2.74 AND col0 < 2 AND col0 < 7 OR col0 < 1 OR ((col4 < 6.37)) AND ((col0 > 3 AND col0 <= 7)) OR col0 < 9 AND col3 IN (3,7,0,9) AND col0 > 7))))
----
0

statement ok
DELETE FROM tab2 WHERE (((col3 < 7 AND (col3 > 9) OR col3 > 2 OR col1 <= 8.82 AND (col0 = 5 AND (col0 IS NULL)) AND (col3 < 8 OR col4 IN (1.57,1.43,2.78,6.64,6.48,6.40) AND (col1 > 2.9) OR col1 > 1.50 AND (col4 < 3.39)) AND (col3 > 0) AND col3 <= 4 AND col0 < 0 AND col4 <= 2.74 AND col0 < 2 AND col0 < 7 OR col0 < 1 OR ((col4 < 6.37)) AND ((col0 > 3 AND col0 <= 7)) OR col0 < 9 AND col3 IN (3,7,0,9) AND col0 > 7)))

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (((col3 < 7 AND (col3 > 9) OR col3 > 2 OR col1 <= 8.82 AND (col0 = 5 AND (col0 IS NULL)) AND (col3 < 8 OR col4 IN (1.57,1.43,2.78,6.64,6.48,6.40) AND (col1 > 2.9) OR col1 > 1.50 AND (col4 < 3.39)) AND (col3 > 0) AND col3 <= 4 AND col0 < 0 AND col4 <= 2.74 AND col0 < 2 AND col0 < 7 OR col0 < 1 OR ((col4 < 6.37)) AND ((col0 > 3 AND col0 <= 7)) OR col0 < 9 AND col3 IN (3,7,0,9) AND col0 > 7)))
----

query I rowsort label-720
SELECT pk FROM tab2 WHERE NOT ((((col3 < 7 AND (col3 > 9) OR col3 > 2 OR col1 <= 8.82 AND (col0 = 5 AND (col0 IS NULL)) AND (col3 < 8 OR col4 IN (1.57,1.43,2.78,6.64,6.48,6.40) AND (col1 > 2.9) OR col1 > 1.50 AND (col4 < 3.39)) AND (col3 > 0) AND col3 <= 4 AND col0 < 0 AND col4 <= 2.74 AND col0 < 2 AND col0 < 7 OR col0 < 1 OR ((col4 < 6.37)) AND ((col0 > 3 AND col0 <= 7)) OR col0 < 9 AND col3 IN (3,7,0,9) AND col0 > 7))))
----
0

statement ok
DELETE FROM tab3 WHERE (((col3 < 7 AND (col3 > 9) OR col3 > 2 OR col1 <= 8.82 AND (col0 = 5 AND (col0 IS NULL)) AND (col3 < 8 OR col4 IN (1.57,1.43,2.78,6.64,6.48,6.40) AND (col1 > 2.9) OR col1 > 1.50 AND (col4 < 3.39)) AND (col3 > 0) AND col3 <= 4 AND col0 < 0 AND col4 <= 2.74 AND col0 < 2 AND col0 < 7 OR col0 < 1 OR ((col4 < 6.37)) AND ((col0 > 3 AND col0 <= 7)) OR col0 < 9 AND col3 IN (3,7,0,9) AND col0 > 7)))

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (((col3 < 7 AND (col3 > 9) OR col3 > 2 OR col1 <= 8.82 AND (col0 = 5 AND (col0 IS NULL)) AND (col3 < 8 OR col4 IN (1.57,1.43,2.78,6.64,6.48,6.40) AND (col1 > 2.9) OR col1 > 1.50 AND (col4 < 3.39)) AND (col3 > 0) AND col3 <= 4 AND col0 < 0 AND col4 <= 2.74 AND col0 < 2 AND col0 < 7 OR col0 < 1 OR ((col4 < 6.37)) AND ((col0 > 3 AND col0 <= 7)) OR col0 < 9 AND col3 IN (3,7,0,9) AND col0 > 7)))
----

query I rowsort label-720
SELECT pk FROM tab3 WHERE NOT ((((col3 < 7 AND (col3 > 9) OR col3 > 2 OR col1 <= 8.82 AND (col0 = 5 AND (col0 IS NULL)) AND (col3 < 8 OR col4 IN (1.57,1.43,2.78,6.64,6.48,6.40) AND (col1 > 2.9) OR col1 > 1.50 AND (col4 < 3.39)) AND (col3 > 0) AND col3 <= 4 AND col0 < 0 AND col4 <= 2.74 AND col0 < 2 AND col0 < 7 OR col0 < 1 OR ((col4 < 6.37)) AND ((col0 > 3 AND col0 <= 7)) OR col0 < 9 AND col3 IN (3,7,0,9) AND col0 > 7))))
----
0

statement ok
DELETE FROM tab4 WHERE (((col3 < 7 AND (col3 > 9) OR col3 > 2 OR col1 <= 8.82 AND (col0 = 5 AND (col0 IS NULL)) AND (col3 < 8 OR col4 IN (1.57,1.43,2.78,6.64,6.48,6.40) AND (col1 > 2.9) OR col1 > 1.50 AND (col4 < 3.39)) AND (col3 > 0) AND col3 <= 4 AND col0 < 0 AND col4 <= 2.74 AND col0 < 2 AND col0 < 7 OR col0 < 1 OR ((col4 < 6.37)) AND ((col0 > 3 AND col0 <= 7)) OR col0 < 9 AND col3 IN (3,7,0,9) AND col0 > 7)))

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (((col3 < 7 AND (col3 > 9) OR col3 > 2 OR col1 <= 8.82 AND (col0 = 5 AND (col0 IS NULL)) AND (col3 < 8 OR col4 IN (1.57,1.43,2.78,6.64,6.48,6.40) AND (col1 > 2.9) OR col1 > 1.50 AND (col4 < 3.39)) AND (col3 > 0) AND col3 <= 4 AND col0 < 0 AND col4 <= 2.74 AND col0 < 2 AND col0 < 7 OR col0 < 1 OR ((col4 < 6.37)) AND ((col0 > 3 AND col0 <= 7)) OR col0 < 9 AND col3 IN (3,7,0,9) AND col0 > 7)))
----

query I rowsort label-720
SELECT pk FROM tab4 WHERE NOT ((((col3 < 7 AND (col3 > 9) OR col3 > 2 OR col1 <= 8.82 AND (col0 = 5 AND (col0 IS NULL)) AND (col3 < 8 OR col4 IN (1.57,1.43,2.78,6.64,6.48,6.40) AND (col1 > 2.9) OR col1 > 1.50 AND (col4 < 3.39)) AND (col3 > 0) AND col3 <= 4 AND col0 < 0 AND col4 <= 2.74 AND col0 < 2 AND col0 < 7 OR col0 < 1 OR ((col4 < 6.37)) AND ((col0 > 3 AND col0 <= 7)) OR col0 < 9 AND col3 IN (3,7,0,9) AND col0 > 7))))
----
0

statement ok
DELETE FROM tab0 WHERE col3 > 0

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col3 > 0
----

query I rowsort label-735
SELECT pk FROM tab0 WHERE NOT (col3 > 0)
----

statement ok
DELETE FROM tab1 WHERE col3 > 0

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col3 > 0
----

query I rowsort label-735
SELECT pk FROM tab1 WHERE NOT (col3 > 0)
----

statement ok
DELETE FROM tab2 WHERE col3 > 0

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col3 > 0
----

query I rowsort label-735
SELECT pk FROM tab2 WHERE NOT (col3 > 0)
----

statement ok
DELETE FROM tab3 WHERE col3 > 0

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col3 > 0
----

query I rowsort label-735
SELECT pk FROM tab3 WHERE NOT (col3 > 0)
----

statement ok
DELETE FROM tab4 WHERE col3 > 0

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col3 > 0
----

query I rowsort label-735
SELECT pk FROM tab4 WHERE NOT (col3 > 0)
----

statement ok
DROP TABLE tab0

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,9,2.72,'gkdww',4,8.53,'uopfq')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE INDEX idx_tab2_0 ON tab2 (col3)

statement ok
CREATE UNIQUE INDEX idx_tab2_2 ON tab2 (col0 DESC,col1)

statement ok
CREATE INDEX idx_tab2_3 ON tab2 (col4 DESC)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

statement ok
CREATE INDEX idx_tab3_1 ON tab3 (col0 DESC)

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

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

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

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

statement ok
CREATE UNIQUE INDEX idx_tab4_3 ON tab4 (col4 DESC,col3)

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

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE col4 BETWEEN 2.21 AND 1.17

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col4 BETWEEN 2.21 AND 1.17
----

query I rowsort label-750
SELECT pk FROM tab0 WHERE NOT (col4 BETWEEN 2.21 AND 1.17)
----
0

statement ok
DELETE FROM tab1 WHERE col4 BETWEEN 2.21 AND 1.17

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col4 BETWEEN 2.21 AND 1.17
----

query I rowsort label-750
SELECT pk FROM tab1 WHERE NOT (col4 BETWEEN 2.21 AND 1.17)
----
0

statement ok
DELETE FROM tab2 WHERE col4 BETWEEN 2.21 AND 1.17

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col4 BETWEEN 2.21 AND 1.17
----

query I rowsort label-750
SELECT pk FROM tab2 WHERE NOT (col4 BETWEEN 2.21 AND 1.17)
----
0

statement ok
DELETE FROM tab3 WHERE col4 BETWEEN 2.21 AND 1.17

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col4 BETWEEN 2.21 AND 1.17
----

query I rowsort label-750
SELECT pk FROM tab3 WHERE NOT (col4 BETWEEN 2.21 AND 1.17)
----
0

statement ok
DELETE FROM tab4 WHERE col4 BETWEEN 2.21 AND 1.17

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col4 BETWEEN 2.21 AND 1.17
----

query I rowsort label-750
SELECT pk FROM tab4 WHERE NOT (col4 BETWEEN 2.21 AND 1.17)
----
0

statement ok
DELETE FROM tab0 WHERE col0 < 2

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col0 < 2
----

query I rowsort label-765
SELECT pk FROM tab0 WHERE NOT (col0 < 2)
----
0

statement ok
DELETE FROM tab1 WHERE col0 < 2

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col0 < 2
----

query I rowsort label-765
SELECT pk FROM tab1 WHERE NOT (col0 < 2)
----
0

statement ok
DELETE FROM tab2 WHERE col0 < 2

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col0 < 2
----

query I rowsort label-765
SELECT pk FROM tab2 WHERE NOT (col0 < 2)
----
0

statement ok
DELETE FROM tab3 WHERE col0 < 2

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col0 < 2
----

query I rowsort label-765
SELECT pk FROM tab3 WHERE NOT (col0 < 2)
----
0

statement ok
DELETE FROM tab4 WHERE col0 < 2

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col0 < 2
----

query I rowsort label-765
SELECT pk FROM tab4 WHERE NOT (col0 < 2)
----
0

statement ok
DELETE FROM tab0 WHERE col0 < 7 AND col3 >= 4 AND col0 <= 9 OR col1 < 3.38 AND (col3 < 6 OR ((((col0 >= 8)) AND col0 > 2))) OR col0 > 8 OR ((col0 > 0)) AND col4 >= 3.40

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col0 < 7 AND col3 >= 4 AND col0 <= 9 OR col1 < 3.38 AND (col3 < 6 OR ((((col0 >= 8)) AND col0 > 2))) OR col0 > 8 OR ((col0 > 0)) AND col4 >= 3.40
----

query I rowsort label-780
SELECT pk FROM tab0 WHERE NOT (col0 < 7 AND col3 >= 4 AND col0 <= 9 OR col1 < 3.38 AND (col3 < 6 OR ((((col0 >= 8)) AND col0 > 2))) OR col0 > 8 OR ((col0 > 0)) AND col4 >= 3.40)
----

statement ok
DELETE FROM tab1 WHERE col0 < 7 AND col3 >= 4 AND col0 <= 9 OR col1 < 3.38 AND (col3 < 6 OR ((((col0 >= 8)) AND col0 > 2))) OR col0 > 8 OR ((col0 > 0)) AND col4 >= 3.40

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col0 < 7 AND col3 >= 4 AND col0 <= 9 OR col1 < 3.38 AND (col3 < 6 OR ((((col0 >= 8)) AND col0 > 2))) OR col0 > 8 OR ((col0 > 0)) AND col4 >= 3.40
----

query I rowsort label-780
SELECT pk FROM tab1 WHERE NOT (col0 < 7 AND col3 >= 4 AND col0 <= 9 OR col1 < 3.38 AND (col3 < 6 OR ((((col0 >= 8)) AND col0 > 2))) OR col0 > 8 OR ((col0 > 0)) AND col4 >= 3.40)
----

statement ok
DELETE FROM tab2 WHERE col0 < 7 AND col3 >= 4 AND col0 <= 9 OR col1 < 3.38 AND (col3 < 6 OR ((((col0 >= 8)) AND col0 > 2))) OR col0 > 8 OR ((col0 > 0)) AND col4 >= 3.40

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col0 < 7 AND col3 >= 4 AND col0 <= 9 OR col1 < 3.38 AND (col3 < 6 OR ((((col0 >= 8)) AND col0 > 2))) OR col0 > 8 OR ((col0 > 0)) AND col4 >= 3.40
----

query I rowsort label-780
SELECT pk FROM tab2 WHERE NOT (col0 < 7 AND col3 >= 4 AND col0 <= 9 OR col1 < 3.38 AND (col3 < 6 OR ((((col0 >= 8)) AND col0 > 2))) OR col0 > 8 OR ((col0 > 0)) AND col4 >= 3.40)
----

statement ok
DELETE FROM tab3 WHERE col0 < 7 AND col3 >= 4 AND col0 <= 9 OR col1 < 3.38 AND (col3 < 6 OR ((((col0 >= 8)) AND col0 > 2))) OR col0 > 8 OR ((col0 > 0)) AND col4 >= 3.40

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col0 < 7 AND col3 >= 4 AND col0 <= 9 OR col1 < 3.38 AND (col3 < 6 OR ((((col0 >= 8)) AND col0 > 2))) OR col0 > 8 OR ((col0 > 0)) AND col4 >= 3.40
----

query I rowsort label-780
SELECT pk FROM tab3 WHERE NOT (col0 < 7 AND col3 >= 4 AND col0 <= 9 OR col1 < 3.38 AND (col3 < 6 OR ((((col0 >= 8)) AND col0 > 2))) OR col0 > 8 OR ((col0 > 0)) AND col4 >= 3.40)
----

statement ok
DELETE FROM tab4 WHERE col0 < 7 AND col3 >= 4 AND col0 <= 9 OR col1 < 3.38 AND (col3 < 6 OR ((((col0 >= 8)) AND col0 > 2))) OR col0 > 8 OR ((col0 > 0)) AND col4 >= 3.40

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col0 < 7 AND col3 >= 4 AND col0 <= 9 OR col1 < 3.38 AND (col3 < 6 OR ((((col0 >= 8)) AND col0 > 2))) OR col0 > 8 OR ((col0 > 0)) AND col4 >= 3.40
----

query I rowsort label-780
SELECT pk FROM tab4 WHERE NOT (col0 < 7 AND col3 >= 4 AND col0 <= 9 OR col1 < 3.38 AND (col3 < 6 OR ((((col0 >= 8)) AND col0 > 2))) OR col0 > 8 OR ((col0 > 0)) AND col4 >= 3.40)
----

statement ok
DROP TABLE tab0

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,5,0.6,'iqdng',7,7.48,'ymsan')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE UNIQUE INDEX idx_tab2_0 ON tab2 (col4,col1 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab2_1 ON tab2 (col0 DESC,col3)

statement ok
CREATE INDEX idx_tab2_3 ON tab2 (col1 DESC,col4)

statement ok
CREATE UNIQUE INDEX idx_tab2_4 ON tab2 (col4,col3)

statement ok
CREATE INDEX idx_tab2_5 ON tab2 (col1 DESC,col0)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

statement ok
CREATE INDEX idx_tab3_0 ON tab3 (col4 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab3_1 ON tab3 (col3,col1 DESC)

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

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE UNIQUE INDEX idx_tab4_0 ON tab4 (col4 DESC,col3 DESC)

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

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE (((col1 > 3.87)))

query I rowsort label-empty
SELECT pk FROM tab0 WHERE (((col1 > 3.87)))
----

query I rowsort label-795
SELECT pk FROM tab0 WHERE NOT ((((col1 > 3.87))))
----
0

statement ok
DELETE FROM tab1 WHERE (((col1 > 3.87)))

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (((col1 > 3.87)))
----

query I rowsort label-795
SELECT pk FROM tab1 WHERE NOT ((((col1 > 3.87))))
----
0

statement ok
DELETE FROM tab2 WHERE (((col1 > 3.87)))

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (((col1 > 3.87)))
----

query I rowsort label-795
SELECT pk FROM tab2 WHERE NOT ((((col1 > 3.87))))
----
0

statement ok
DELETE FROM tab3 WHERE (((col1 > 3.87)))

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (((col1 > 3.87)))
----

query I rowsort label-795
SELECT pk FROM tab3 WHERE NOT ((((col1 > 3.87))))
----
0

statement ok
DELETE FROM tab4 WHERE (((col1 > 3.87)))

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (((col1 > 3.87)))
----

query I rowsort label-795
SELECT pk FROM tab4 WHERE NOT ((((col1 > 3.87))))
----
0

statement ok
DELETE FROM tab0 WHERE ((col3 >= 6 AND (col3 = 4) AND col0 < 4 AND col0 >= 7 AND col0 > 6 OR col1 < 4.91 AND ((((col0 = 9 OR ((col0 IN (5)))))) OR col1 < 8.86 OR col0 > 3 AND col0 <= 1)))

query I rowsort label-empty
SELECT pk FROM tab0 WHERE ((col3 >= 6 AND (col3 = 4) AND col0 < 4 AND col0 >= 7 AND col0 > 6 OR col1 < 4.91 AND ((((col0 = 9 OR ((col0 IN (5)))))) OR col1 < 8.86 OR col0 > 3 AND col0 <= 1)))
----

query I rowsort label-810
SELECT pk FROM tab0 WHERE NOT (((col3 >= 6 AND (col3 = 4) AND col0 < 4 AND col0 >= 7 AND col0 > 6 OR col1 < 4.91 AND ((((col0 = 9 OR ((col0 IN (5)))))) OR col1 < 8.86 OR col0 > 3 AND col0 <= 1))))
----

statement ok
DELETE FROM tab1 WHERE ((col3 >= 6 AND (col3 = 4) AND col0 < 4 AND col0 >= 7 AND col0 > 6 OR col1 < 4.91 AND ((((col0 = 9 OR ((col0 IN (5)))))) OR col1 < 8.86 OR col0 > 3 AND col0 <= 1)))

query I rowsort label-empty
SELECT pk FROM tab1 WHERE ((col3 >= 6 AND (col3 = 4) AND col0 < 4 AND col0 >= 7 AND col0 > 6 OR col1 < 4.91 AND ((((col0 = 9 OR ((col0 IN (5)))))) OR col1 < 8.86 OR col0 > 3 AND col0 <= 1)))
----

query I rowsort label-810
SELECT pk FROM tab1 WHERE NOT (((col3 >= 6 AND (col3 = 4) AND col0 < 4 AND col0 >= 7 AND col0 > 6 OR col1 < 4.91 AND ((((col0 = 9 OR ((col0 IN (5)))))) OR col1 < 8.86 OR col0 > 3 AND col0 <= 1))))
----

statement ok
DELETE FROM tab2 WHERE ((col3 >= 6 AND (col3 = 4) AND col0 < 4 AND col0 >= 7 AND col0 > 6 OR col1 < 4.91 AND ((((col0 = 9 OR ((col0 IN (5)))))) OR col1 < 8.86 OR col0 > 3 AND col0 <= 1)))

query I rowsort label-empty
SELECT pk FROM tab2 WHERE ((col3 >= 6 AND (col3 = 4) AND col0 < 4 AND col0 >= 7 AND col0 > 6 OR col1 < 4.91 AND ((((col0 = 9 OR ((col0 IN (5)))))) OR col1 < 8.86 OR col0 > 3 AND col0 <= 1)))
----

query I rowsort label-810
SELECT pk FROM tab2 WHERE NOT (((col3 >= 6 AND (col3 = 4) AND col0 < 4 AND col0 >= 7 AND col0 > 6 OR col1 < 4.91 AND ((((col0 = 9 OR ((col0 IN (5)))))) OR col1 < 8.86 OR col0 > 3 AND col0 <= 1))))
----

statement ok
DELETE FROM tab3 WHERE ((col3 >= 6 AND (col3 = 4) AND col0 < 4 AND col0 >= 7 AND col0 > 6 OR col1 < 4.91 AND ((((col0 = 9 OR ((col0 IN (5)))))) OR col1 < 8.86 OR col0 > 3 AND col0 <= 1)))

query I rowsort label-empty
SELECT pk FROM tab3 WHERE ((col3 >= 6 AND (col3 = 4) AND col0 < 4 AND col0 >= 7 AND col0 > 6 OR col1 < 4.91 AND ((((col0 = 9 OR ((col0 IN (5)))))) OR col1 < 8.86 OR col0 > 3 AND col0 <= 1)))
----

query I rowsort label-810
SELECT pk FROM tab3 WHERE NOT (((col3 >= 6 AND (col3 = 4) AND col0 < 4 AND col0 >= 7 AND col0 > 6 OR col1 < 4.91 AND ((((col0 = 9 OR ((col0 IN (5)))))) OR col1 < 8.86 OR col0 > 3 AND col0 <= 1))))
----

statement ok
DELETE FROM tab4 WHERE ((col3 >= 6 AND (col3 = 4) AND col0 < 4 AND col0 >= 7 AND col0 > 6 OR col1 < 4.91 AND ((((col0 = 9 OR ((col0 IN (5)))))) OR col1 < 8.86 OR col0 > 3 AND col0 <= 1)))

query I rowsort label-empty
SELECT pk FROM tab4 WHERE ((col3 >= 6 AND (col3 = 4) AND col0 < 4 AND col0 >= 7 AND col0 > 6 OR col1 < 4.91 AND ((((col0 = 9 OR ((col0 IN (5)))))) OR col1 < 8.86 OR col0 > 3 AND col0 <= 1)))
----

query I rowsort label-810
SELECT pk FROM tab4 WHERE NOT (((col3 >= 6 AND (col3 = 4) AND col0 < 4 AND col0 >= 7 AND col0 > 6 OR col1 < 4.91 AND ((((col0 = 9 OR ((col0 IN (5)))))) OR col1 < 8.86 OR col0 > 3 AND col0 <= 1))))
----

statement ok
DROP TABLE tab0

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,2,6.63,'gllmx',9,2.33,'jfklo')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE UNIQUE INDEX idx_tab2_0 ON tab2 (col0 DESC,col4)

statement ok
CREATE UNIQUE INDEX idx_tab2_1 ON tab2 (col3 DESC)

statement ok
CREATE INDEX idx_tab2_4 ON tab2 (col4 DESC)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

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

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

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE INDEX idx_tab4_0 ON tab4 (col1)

statement ok
CREATE INDEX idx_tab4_2 ON tab4 (col3 DESC)

statement ok
CREATE INDEX idx_tab4_3 ON tab4 (col0)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE col0 < 9

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col0 < 9
----

query I rowsort label-825
SELECT pk FROM tab0 WHERE NOT (col0 < 9)
----

statement ok
DELETE FROM tab1 WHERE col0 < 9

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col0 < 9
----

query I rowsort label-825
SELECT pk FROM tab1 WHERE NOT (col0 < 9)
----

statement ok
DELETE FROM tab2 WHERE col0 < 9

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col0 < 9
----

query I rowsort label-825
SELECT pk FROM tab2 WHERE NOT (col0 < 9)
----

statement ok
DELETE FROM tab3 WHERE col0 < 9

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col0 < 9
----

query I rowsort label-825
SELECT pk FROM tab3 WHERE NOT (col0 < 9)
----

statement ok
DELETE FROM tab4 WHERE col0 < 9

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col0 < 9
----

query I rowsort label-825
SELECT pk FROM tab4 WHERE NOT (col0 < 9)
----

statement ok
DROP TABLE tab0

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,7,0.12,'vrcaj',5,2.2,'cfufr')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE UNIQUE INDEX idx_tab2_0 ON tab2 (col1 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab2_5 ON tab2 (col0)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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 (col3)

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

statement ok
CREATE INDEX idx_tab3_3 ON tab3 (col4,col0)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE INDEX idx_tab4_0 ON tab4 (col0 DESC,col4)

statement ok
CREATE INDEX idx_tab4_1 ON tab4 (col1 DESC)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE ((col4 < 1.74) AND col4 IS NULL) AND col4 = 4.8 AND (col0 < 4 OR (col0 < 7 AND col4 > 2.6))

query I rowsort label-empty
SELECT pk FROM tab0 WHERE ((col4 < 1.74) AND col4 IS NULL) AND col4 = 4.8 AND (col0 < 4 OR (col0 < 7 AND col4 > 2.6))
----

query I rowsort label-840
SELECT pk FROM tab0 WHERE NOT (((col4 < 1.74) AND col4 IS NULL) AND col4 = 4.8 AND (col0 < 4 OR (col0 < 7 AND col4 > 2.6)))
----
0

statement ok
DELETE FROM tab1 WHERE ((col4 < 1.74) AND col4 IS NULL) AND col4 = 4.8 AND (col0 < 4 OR (col0 < 7 AND col4 > 2.6))

query I rowsort label-empty
SELECT pk FROM tab1 WHERE ((col4 < 1.74) AND col4 IS NULL) AND col4 = 4.8 AND (col0 < 4 OR (col0 < 7 AND col4 > 2.6))
----

query I rowsort label-840
SELECT pk FROM tab1 WHERE NOT (((col4 < 1.74) AND col4 IS NULL) AND col4 = 4.8 AND (col0 < 4 OR (col0 < 7 AND col4 > 2.6)))
----
0

statement ok
DELETE FROM tab2 WHERE ((col4 < 1.74) AND col4 IS NULL) AND col4 = 4.8 AND (col0 < 4 OR (col0 < 7 AND col4 > 2.6))

query I rowsort label-empty
SELECT pk FROM tab2 WHERE ((col4 < 1.74) AND col4 IS NULL) AND col4 = 4.8 AND (col0 < 4 OR (col0 < 7 AND col4 > 2.6))
----

query I rowsort label-840
SELECT pk FROM tab2 WHERE NOT (((col4 < 1.74) AND col4 IS NULL) AND col4 = 4.8 AND (col0 < 4 OR (col0 < 7 AND col4 > 2.6)))
----
0

statement ok
DELETE FROM tab3 WHERE ((col4 < 1.74) AND col4 IS NULL) AND col4 = 4.8 AND (col0 < 4 OR (col0 < 7 AND col4 > 2.6))

query I rowsort label-empty
SELECT pk FROM tab3 WHERE ((col4 < 1.74) AND col4 IS NULL) AND col4 = 4.8 AND (col0 < 4 OR (col0 < 7 AND col4 > 2.6))
----

query I rowsort label-840
SELECT pk FROM tab3 WHERE NOT (((col4 < 1.74) AND col4 IS NULL) AND col4 = 4.8 AND (col0 < 4 OR (col0 < 7 AND col4 > 2.6)))
----
0

statement ok
DELETE FROM tab4 WHERE ((col4 < 1.74) AND col4 IS NULL) AND col4 = 4.8 AND (col0 < 4 OR (col0 < 7 AND col4 > 2.6))

query I rowsort label-empty
SELECT pk FROM tab4 WHERE ((col4 < 1.74) AND col4 IS NULL) AND col4 = 4.8 AND (col0 < 4 OR (col0 < 7 AND col4 > 2.6))
----

query I rowsort label-840
SELECT pk FROM tab4 WHERE NOT (((col4 < 1.74) AND col4 IS NULL) AND col4 = 4.8 AND (col0 < 4 OR (col0 < 7 AND col4 > 2.6)))
----
0

statement ok
DELETE FROM tab0 WHERE col4 > 3.48

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col4 > 3.48
----

query I rowsort label-855
SELECT pk FROM tab0 WHERE NOT (col4 > 3.48)
----
0

statement ok
DELETE FROM tab1 WHERE col4 > 3.48

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col4 > 3.48
----

query I rowsort label-855
SELECT pk FROM tab1 WHERE NOT (col4 > 3.48)
----
0

statement ok
DELETE FROM tab2 WHERE col4 > 3.48

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col4 > 3.48
----

query I rowsort label-855
SELECT pk FROM tab2 WHERE NOT (col4 > 3.48)
----
0

statement ok
DELETE FROM tab3 WHERE col4 > 3.48

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col4 > 3.48
----

query I rowsort label-855
SELECT pk FROM tab3 WHERE NOT (col4 > 3.48)
----
0

statement ok
DELETE FROM tab4 WHERE col4 > 3.48

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col4 > 3.48
----

query I rowsort label-855
SELECT pk FROM tab4 WHERE NOT (col4 > 3.48)
----
0

statement ok
DELETE FROM tab0 WHERE col3 < 1 AND col0 < 6 AND (col0 <= 7) OR col3 IS NULL AND col4 > 4.11 AND col0 = 8 AND col3 <= 8

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col3 < 1 AND col0 < 6 AND (col0 <= 7) OR col3 IS NULL AND col4 > 4.11 AND col0 = 8 AND col3 <= 8
----

query I rowsort label-870
SELECT pk FROM tab0 WHERE NOT (col3 < 1 AND col0 < 6 AND (col0 <= 7) OR col3 IS NULL AND col4 > 4.11 AND col0 = 8 AND col3 <= 8)
----
0

statement ok
DELETE FROM tab1 WHERE col3 < 1 AND col0 < 6 AND (col0 <= 7) OR col3 IS NULL AND col4 > 4.11 AND col0 = 8 AND col3 <= 8

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col3 < 1 AND col0 < 6 AND (col0 <= 7) OR col3 IS NULL AND col4 > 4.11 AND col0 = 8 AND col3 <= 8
----

query I rowsort label-870
SELECT pk FROM tab1 WHERE NOT (col3 < 1 AND col0 < 6 AND (col0 <= 7) OR col3 IS NULL AND col4 > 4.11 AND col0 = 8 AND col3 <= 8)
----
0

statement ok
DELETE FROM tab2 WHERE col3 < 1 AND col0 < 6 AND (col0 <= 7) OR col3 IS NULL AND col4 > 4.11 AND col0 = 8 AND col3 <= 8

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col3 < 1 AND col0 < 6 AND (col0 <= 7) OR col3 IS NULL AND col4 > 4.11 AND col0 = 8 AND col3 <= 8
----

query I rowsort label-870
SELECT pk FROM tab2 WHERE NOT (col3 < 1 AND col0 < 6 AND (col0 <= 7) OR col3 IS NULL AND col4 > 4.11 AND col0 = 8 AND col3 <= 8)
----
0

statement ok
DELETE FROM tab3 WHERE col3 < 1 AND col0 < 6 AND (col0 <= 7) OR col3 IS NULL AND col4 > 4.11 AND col0 = 8 AND col3 <= 8

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col3 < 1 AND col0 < 6 AND (col0 <= 7) OR col3 IS NULL AND col4 > 4.11 AND col0 = 8 AND col3 <= 8
----

query I rowsort label-870
SELECT pk FROM tab3 WHERE NOT (col3 < 1 AND col0 < 6 AND (col0 <= 7) OR col3 IS NULL AND col4 > 4.11 AND col0 = 8 AND col3 <= 8)
----
0

statement ok
DELETE FROM tab4 WHERE col3 < 1 AND col0 < 6 AND (col0 <= 7) OR col3 IS NULL AND col4 > 4.11 AND col0 = 8 AND col3 <= 8

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col3 < 1 AND col0 < 6 AND (col0 <= 7) OR col3 IS NULL AND col4 > 4.11 AND col0 = 8 AND col3 <= 8
----

query I rowsort label-870
SELECT pk FROM tab4 WHERE NOT (col3 < 1 AND col0 < 6 AND (col0 <= 7) OR col3 IS NULL AND col4 > 4.11 AND col0 = 8 AND col3 <= 8)
----
0

statement ok
DELETE FROM tab0 WHERE ((((col3 < 6 OR col3 >= 4)) AND (col3 = 5)) AND col3 < 2) OR col3 = 4 OR (col1 > 7.44)

query I rowsort label-empty
SELECT pk FROM tab0 WHERE ((((col3 < 6 OR col3 >= 4)) AND (col3 = 5)) AND col3 < 2) OR col3 = 4 OR (col1 > 7.44)
----

query I rowsort label-885
SELECT pk FROM tab0 WHERE NOT (((((col3 < 6 OR col3 >= 4)) AND (col3 = 5)) AND col3 < 2) OR col3 = 4 OR (col1 > 7.44))
----
0

statement ok
DELETE FROM tab1 WHERE ((((col3 < 6 OR col3 >= 4)) AND (col3 = 5)) AND col3 < 2) OR col3 = 4 OR (col1 > 7.44)

query I rowsort label-empty
SELECT pk FROM tab1 WHERE ((((col3 < 6 OR col3 >= 4)) AND (col3 = 5)) AND col3 < 2) OR col3 = 4 OR (col1 > 7.44)
----

query I rowsort label-885
SELECT pk FROM tab1 WHERE NOT (((((col3 < 6 OR col3 >= 4)) AND (col3 = 5)) AND col3 < 2) OR col3 = 4 OR (col1 > 7.44))
----
0

statement ok
DELETE FROM tab2 WHERE ((((col3 < 6 OR col3 >= 4)) AND (col3 = 5)) AND col3 < 2) OR col3 = 4 OR (col1 > 7.44)

query I rowsort label-empty
SELECT pk FROM tab2 WHERE ((((col3 < 6 OR col3 >= 4)) AND (col3 = 5)) AND col3 < 2) OR col3 = 4 OR (col1 > 7.44)
----

query I rowsort label-885
SELECT pk FROM tab2 WHERE NOT (((((col3 < 6 OR col3 >= 4)) AND (col3 = 5)) AND col3 < 2) OR col3 = 4 OR (col1 > 7.44))
----
0

statement ok
DELETE FROM tab3 WHERE ((((col3 < 6 OR col3 >= 4)) AND (col3 = 5)) AND col3 < 2) OR col3 = 4 OR (col1 > 7.44)

query I rowsort label-empty
SELECT pk FROM tab3 WHERE ((((col3 < 6 OR col3 >= 4)) AND (col3 = 5)) AND col3 < 2) OR col3 = 4 OR (col1 > 7.44)
----

query I rowsort label-885
SELECT pk FROM tab3 WHERE NOT (((((col3 < 6 OR col3 >= 4)) AND (col3 = 5)) AND col3 < 2) OR col3 = 4 OR (col1 > 7.44))
----
0

statement ok
DELETE FROM tab4 WHERE ((((col3 < 6 OR col3 >= 4)) AND (col3 = 5)) AND col3 < 2) OR col3 = 4 OR (col1 > 7.44)

query I rowsort label-empty
SELECT pk FROM tab4 WHERE ((((col3 < 6 OR col3 >= 4)) AND (col3 = 5)) AND col3 < 2) OR col3 = 4 OR (col1 > 7.44)
----

query I rowsort label-885
SELECT pk FROM tab4 WHERE NOT (((((col3 < 6 OR col3 >= 4)) AND (col3 = 5)) AND col3 < 2) OR col3 = 4 OR (col1 > 7.44))
----
0

statement ok
DELETE FROM tab0 WHERE col0 < 3

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col0 < 3
----

query I rowsort label-900
SELECT pk FROM tab0 WHERE NOT (col0 < 3)
----
0

statement ok
DELETE FROM tab1 WHERE col0 < 3

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col0 < 3
----

query I rowsort label-900
SELECT pk FROM tab1 WHERE NOT (col0 < 3)
----
0

statement ok
DELETE FROM tab2 WHERE col0 < 3

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col0 < 3
----

query I rowsort label-900
SELECT pk FROM tab2 WHERE NOT (col0 < 3)
----
0

statement ok
DELETE FROM tab3 WHERE col0 < 3

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col0 < 3
----

query I rowsort label-900
SELECT pk FROM tab3 WHERE NOT (col0 < 3)
----
0

statement ok
DELETE FROM tab4 WHERE col0 < 3

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col0 < 3
----

query I rowsort label-900
SELECT pk FROM tab4 WHERE NOT (col0 < 3)
----
0

statement ok
DELETE FROM tab0 WHERE (col1 >= 8.59 OR (col3 < 6 OR (((col4 > 3.47)))))

query I rowsort label-empty
SELECT pk FROM tab0 WHERE (col1 >= 8.59 OR (col3 < 6 OR (((col4 > 3.47)))))
----

query I rowsort label-915
SELECT pk FROM tab0 WHERE NOT ((col1 >= 8.59 OR (col3 < 6 OR (((col4 > 3.47))))))
----

statement ok
DELETE FROM tab1 WHERE (col1 >= 8.59 OR (col3 < 6 OR (((col4 > 3.47)))))

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (col1 >= 8.59 OR (col3 < 6 OR (((col4 > 3.47)))))
----

query I rowsort label-915
SELECT pk FROM tab1 WHERE NOT ((col1 >= 8.59 OR (col3 < 6 OR (((col4 > 3.47))))))
----

statement ok
DELETE FROM tab2 WHERE (col1 >= 8.59 OR (col3 < 6 OR (((col4 > 3.47)))))

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (col1 >= 8.59 OR (col3 < 6 OR (((col4 > 3.47)))))
----

query I rowsort label-915
SELECT pk FROM tab2 WHERE NOT ((col1 >= 8.59 OR (col3 < 6 OR (((col4 > 3.47))))))
----

statement ok
DELETE FROM tab3 WHERE (col1 >= 8.59 OR (col3 < 6 OR (((col4 > 3.47)))))

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (col1 >= 8.59 OR (col3 < 6 OR (((col4 > 3.47)))))
----

query I rowsort label-915
SELECT pk FROM tab3 WHERE NOT ((col1 >= 8.59 OR (col3 < 6 OR (((col4 > 3.47))))))
----

statement ok
DELETE FROM tab4 WHERE (col1 >= 8.59 OR (col3 < 6 OR (((col4 > 3.47)))))

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (col1 >= 8.59 OR (col3 < 6 OR (((col4 > 3.47)))))
----

query I rowsort label-915
SELECT pk FROM tab4 WHERE NOT ((col1 >= 8.59 OR (col3 < 6 OR (((col4 > 3.47))))))
----

statement ok
DROP TABLE tab0

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,5,4.33,'hkfav',1,6.96,'ocnue')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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)

statement ok
CREATE UNIQUE INDEX idx_tab2_3 ON tab2 (col3)

statement ok
CREATE UNIQUE INDEX idx_tab2_5 ON tab2 (col4)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

statement ok
CREATE INDEX idx_tab3_0 ON tab3 (col4 DESC)

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

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

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE UNIQUE INDEX idx_tab4_0 ON tab4 (col1 DESC,col3)

statement ok
CREATE INDEX idx_tab4_1 ON tab4 (col3,col4)

statement ok
CREATE INDEX idx_tab4_3 ON tab4 (col3 DESC,col1)

statement ok
CREATE UNIQUE INDEX idx_tab4_4 ON tab4 (col0 DESC)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE (col3 IN (6,5))

query I rowsort label-empty
SELECT pk FROM tab0 WHERE (col3 IN (6,5))
----

query I rowsort label-930
SELECT pk FROM tab0 WHERE NOT ((col3 IN (6,5)))
----
0

statement ok
DELETE FROM tab1 WHERE (col3 IN (6,5))

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (col3 IN (6,5))
----

query I rowsort label-930
SELECT pk FROM tab1 WHERE NOT ((col3 IN (6,5)))
----
0

statement ok
DELETE FROM tab2 WHERE (col3 IN (6,5))

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (col3 IN (6,5))
----

query I rowsort label-930
SELECT pk FROM tab2 WHERE NOT ((col3 IN (6,5)))
----
0

statement ok
DELETE FROM tab3 WHERE (col3 IN (6,5))

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (col3 IN (6,5))
----

query I rowsort label-930
SELECT pk FROM tab3 WHERE NOT ((col3 IN (6,5)))
----
0

statement ok
DELETE FROM tab4 WHERE (col3 IN (6,5))

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (col3 IN (6,5))
----

query I rowsort label-930
SELECT pk FROM tab4 WHERE NOT ((col3 IN (6,5)))
----
0

statement ok
DELETE FROM tab0 WHERE ((col0 >= 7 AND col4 > 8.78))

query I rowsort label-empty
SELECT pk FROM tab0 WHERE ((col0 >= 7 AND col4 > 8.78))
----

query I rowsort label-945
SELECT pk FROM tab0 WHERE NOT (((col0 >= 7 AND col4 > 8.78)))
----
0

statement ok
DELETE FROM tab1 WHERE ((col0 >= 7 AND col4 > 8.78))

query I rowsort label-empty
SELECT pk FROM tab1 WHERE ((col0 >= 7 AND col4 > 8.78))
----

query I rowsort label-945
SELECT pk FROM tab1 WHERE NOT (((col0 >= 7 AND col4 > 8.78)))
----
0

statement ok
DELETE FROM tab2 WHERE ((col0 >= 7 AND col4 > 8.78))

query I rowsort label-empty
SELECT pk FROM tab2 WHERE ((col0 >= 7 AND col4 > 8.78))
----

query I rowsort label-945
SELECT pk FROM tab2 WHERE NOT (((col0 >= 7 AND col4 > 8.78)))
----
0

statement ok
DELETE FROM tab3 WHERE ((col0 >= 7 AND col4 > 8.78))

query I rowsort label-empty
SELECT pk FROM tab3 WHERE ((col0 >= 7 AND col4 > 8.78))
----

query I rowsort label-945
SELECT pk FROM tab3 WHERE NOT (((col0 >= 7 AND col4 > 8.78)))
----
0

statement ok
DELETE FROM tab4 WHERE ((col0 >= 7 AND col4 > 8.78))

query I rowsort label-empty
SELECT pk FROM tab4 WHERE ((col0 >= 7 AND col4 > 8.78))
----

query I rowsort label-945
SELECT pk FROM tab4 WHERE NOT (((col0 >= 7 AND col4 > 8.78)))
----
0

statement ok
DELETE FROM tab0 WHERE col1 > 2.50

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col1 > 2.50
----

query I rowsort label-960
SELECT pk FROM tab0 WHERE NOT (col1 > 2.50)
----

statement ok
DELETE FROM tab1 WHERE col1 > 2.50

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col1 > 2.50
----

query I rowsort label-960
SELECT pk FROM tab1 WHERE NOT (col1 > 2.50)
----

statement ok
DELETE FROM tab2 WHERE col1 > 2.50

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col1 > 2.50
----

query I rowsort label-960
SELECT pk FROM tab2 WHERE NOT (col1 > 2.50)
----

statement ok
DELETE FROM tab3 WHERE col1 > 2.50

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col1 > 2.50
----

query I rowsort label-960
SELECT pk FROM tab3 WHERE NOT (col1 > 2.50)
----

statement ok
DELETE FROM tab4 WHERE col1 > 2.50

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col1 > 2.50
----

query I rowsort label-960
SELECT pk FROM tab4 WHERE NOT (col1 > 2.50)
----

statement ok
DROP TABLE tab0

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,5,6.5,'owiuf',9,3.17,'kzbyc')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE INDEX idx_tab2_0 ON tab2 (col3 DESC,col0 DESC)

statement ok
CREATE INDEX idx_tab2_1 ON tab2 (col4,col1 DESC)

statement ok
CREATE INDEX idx_tab2_2 ON tab2 (col1 DESC,col4 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab2_3 ON tab2 (col0)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

statement ok
CREATE INDEX idx_tab3_0 ON tab3 (col4 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab3_1 ON tab3 (col1)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE UNIQUE INDEX idx_tab4_0 ON tab4 (col1 DESC,col4 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab4_1 ON tab4 (col3 DESC)

statement ok
CREATE INDEX idx_tab4_2 ON tab4 (col0)

statement ok
CREATE INDEX idx_tab4_3 ON tab4 (col4 DESC,col1)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE (col4 = 7.97)

query I rowsort label-empty
SELECT pk FROM tab0 WHERE (col4 = 7.97)
----

query I rowsort label-975
SELECT pk FROM tab0 WHERE NOT ((col4 = 7.97))
----
0

statement ok
DELETE FROM tab1 WHERE (col4 = 7.97)

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (col4 = 7.97)
----

query I rowsort label-975
SELECT pk FROM tab1 WHERE NOT ((col4 = 7.97))
----
0

statement ok
DELETE FROM tab2 WHERE (col4 = 7.97)

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (col4 = 7.97)
----

query I rowsort label-975
SELECT pk FROM tab2 WHERE NOT ((col4 = 7.97))
----
0

statement ok
DELETE FROM tab3 WHERE (col4 = 7.97)

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (col4 = 7.97)
----

query I rowsort label-975
SELECT pk FROM tab3 WHERE NOT ((col4 = 7.97))
----
0

statement ok
DELETE FROM tab4 WHERE (col4 = 7.97)

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (col4 = 7.97)
----

query I rowsort label-975
SELECT pk FROM tab4 WHERE NOT ((col4 = 7.97))
----
0

statement ok
DELETE FROM tab0 WHERE (col0 = 7)

query I rowsort label-empty
SELECT pk FROM tab0 WHERE (col0 = 7)
----

query I rowsort label-990
SELECT pk FROM tab0 WHERE NOT ((col0 = 7))
----
0

statement ok
DELETE FROM tab1 WHERE (col0 = 7)

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (col0 = 7)
----

query I rowsort label-990
SELECT pk FROM tab1 WHERE NOT ((col0 = 7))
----
0

statement ok
DELETE FROM tab2 WHERE (col0 = 7)

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (col0 = 7)
----

query I rowsort label-990
SELECT pk FROM tab2 WHERE NOT ((col0 = 7))
----
0

statement ok
DELETE FROM tab3 WHERE (col0 = 7)

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (col0 = 7)
----

query I rowsort label-990
SELECT pk FROM tab3 WHERE NOT ((col0 = 7))
----
0

statement ok
DELETE FROM tab4 WHERE (col0 = 7)

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (col0 = 7)
----

query I rowsort label-990
SELECT pk FROM tab4 WHERE NOT ((col0 = 7))
----
0

statement ok
DELETE FROM tab0 WHERE col1 < 3.65 OR col3 < 2 AND (((col3 BETWEEN 9 AND 0) AND col3 > 4) OR col1 BETWEEN 5.59 AND 6.81)

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col1 < 3.65 OR col3 < 2 AND (((col3 BETWEEN 9 AND 0) AND col3 > 4) OR col1 BETWEEN 5.59 AND 6.81)
----

query I rowsort label-1005
SELECT pk FROM tab0 WHERE NOT (col1 < 3.65 OR col3 < 2 AND (((col3 BETWEEN 9 AND 0) AND col3 > 4) OR col1 BETWEEN 5.59 AND 6.81))
----
0

statement ok
DELETE FROM tab1 WHERE col1 < 3.65 OR col3 < 2 AND (((col3 BETWEEN 9 AND 0) AND col3 > 4) OR col1 BETWEEN 5.59 AND 6.81)

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col1 < 3.65 OR col3 < 2 AND (((col3 BETWEEN 9 AND 0) AND col3 > 4) OR col1 BETWEEN 5.59 AND 6.81)
----

query I rowsort label-1005
SELECT pk FROM tab1 WHERE NOT (col1 < 3.65 OR col3 < 2 AND (((col3 BETWEEN 9 AND 0) AND col3 > 4) OR col1 BETWEEN 5.59 AND 6.81))
----
0

statement ok
DELETE FROM tab2 WHERE col1 < 3.65 OR col3 < 2 AND (((col3 BETWEEN 9 AND 0) AND col3 > 4) OR col1 BETWEEN 5.59 AND 6.81)

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col1 < 3.65 OR col3 < 2 AND (((col3 BETWEEN 9 AND 0) AND col3 > 4) OR col1 BETWEEN 5.59 AND 6.81)
----

query I rowsort label-1005
SELECT pk FROM tab2 WHERE NOT (col1 < 3.65 OR col3 < 2 AND (((col3 BETWEEN 9 AND 0) AND col3 > 4) OR col1 BETWEEN 5.59 AND 6.81))
----
0

statement ok
DELETE FROM tab3 WHERE col1 < 3.65 OR col3 < 2 AND (((col3 BETWEEN 9 AND 0) AND col3 > 4) OR col1 BETWEEN 5.59 AND 6.81)

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col1 < 3.65 OR col3 < 2 AND (((col3 BETWEEN 9 AND 0) AND col3 > 4) OR col1 BETWEEN 5.59 AND 6.81)
----

query I rowsort label-1005
SELECT pk FROM tab3 WHERE NOT (col1 < 3.65 OR col3 < 2 AND (((col3 BETWEEN 9 AND 0) AND col3 > 4) OR col1 BETWEEN 5.59 AND 6.81))
----
0

statement ok
DELETE FROM tab4 WHERE col1 < 3.65 OR col3 < 2 AND (((col3 BETWEEN 9 AND 0) AND col3 > 4) OR col1 BETWEEN 5.59 AND 6.81)

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col1 < 3.65 OR col3 < 2 AND (((col3 BETWEEN 9 AND 0) AND col3 > 4) OR col1 BETWEEN 5.59 AND 6.81)
----

query I rowsort label-1005
SELECT pk FROM tab4 WHERE NOT (col1 < 3.65 OR col3 < 2 AND (((col3 BETWEEN 9 AND 0) AND col3 > 4) OR col1 BETWEEN 5.59 AND 6.81))
----
0

statement ok
DELETE FROM tab0 WHERE col0 IN (3,4,6,7,4,8)

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col0 IN (3,4,6,7,4,8)
----

query I rowsort label-1020
SELECT pk FROM tab0 WHERE NOT (col0 IN (3,4,6,7,4,8))
----
0

statement ok
DELETE FROM tab1 WHERE col0 IN (3,4,6,7,4,8)

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col0 IN (3,4,6,7,4,8)
----

query I rowsort label-1020
SELECT pk FROM tab1 WHERE NOT (col0 IN (3,4,6,7,4,8))
----
0

statement ok
DELETE FROM tab2 WHERE col0 IN (3,4,6,7,4,8)

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col0 IN (3,4,6,7,4,8)
----

query I rowsort label-1020
SELECT pk FROM tab2 WHERE NOT (col0 IN (3,4,6,7,4,8))
----
0

statement ok
DELETE FROM tab3 WHERE col0 IN (3,4,6,7,4,8)

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col0 IN (3,4,6,7,4,8)
----

query I rowsort label-1020
SELECT pk FROM tab3 WHERE NOT (col0 IN (3,4,6,7,4,8))
----
0

statement ok
DELETE FROM tab4 WHERE col0 IN (3,4,6,7,4,8)

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col0 IN (3,4,6,7,4,8)
----

query I rowsort label-1020
SELECT pk FROM tab4 WHERE NOT (col0 IN (3,4,6,7,4,8))
----
0

statement ok
DELETE FROM tab0 WHERE ((((col1 < 8.42)) OR col3 = 6)) OR col3 <= 8

query I rowsort label-empty
SELECT pk FROM tab0 WHERE ((((col1 < 8.42)) OR col3 = 6)) OR col3 <= 8
----

query I rowsort label-1035
SELECT pk FROM tab0 WHERE NOT (((((col1 < 8.42)) OR col3 = 6)) OR col3 <= 8)
----

statement ok
DELETE FROM tab1 WHERE ((((col1 < 8.42)) OR col3 = 6)) OR col3 <= 8

query I rowsort label-empty
SELECT pk FROM tab1 WHERE ((((col1 < 8.42)) OR col3 = 6)) OR col3 <= 8
----

query I rowsort label-1035
SELECT pk FROM tab1 WHERE NOT (((((col1 < 8.42)) OR col3 = 6)) OR col3 <= 8)
----

statement ok
DELETE FROM tab2 WHERE ((((col1 < 8.42)) OR col3 = 6)) OR col3 <= 8

query I rowsort label-empty
SELECT pk FROM tab2 WHERE ((((col1 < 8.42)) OR col3 = 6)) OR col3 <= 8
----

query I rowsort label-1035
SELECT pk FROM tab2 WHERE NOT (((((col1 < 8.42)) OR col3 = 6)) OR col3 <= 8)
----

statement ok
DELETE FROM tab3 WHERE ((((col1 < 8.42)) OR col3 = 6)) OR col3 <= 8

query I rowsort label-empty
SELECT pk FROM tab3 WHERE ((((col1 < 8.42)) OR col3 = 6)) OR col3 <= 8
----

query I rowsort label-1035
SELECT pk FROM tab3 WHERE NOT (((((col1 < 8.42)) OR col3 = 6)) OR col3 <= 8)
----

statement ok
DELETE FROM tab4 WHERE ((((col1 < 8.42)) OR col3 = 6)) OR col3 <= 8

query I rowsort label-empty
SELECT pk FROM tab4 WHERE ((((col1 < 8.42)) OR col3 = 6)) OR col3 <= 8
----

query I rowsort label-1035
SELECT pk FROM tab4 WHERE NOT (((((col1 < 8.42)) OR col3 = 6)) OR col3 <= 8)
----

statement ok
DROP TABLE tab0

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,9,4.29,'uesly',6,6.92,'hdeil')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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_1 ON tab2 (col4)

statement ok
CREATE UNIQUE INDEX idx_tab2_2 ON tab2 (col0)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

statement ok
CREATE UNIQUE INDEX idx_tab3_0 ON tab3 (col1)

statement ok
CREATE INDEX idx_tab3_2 ON tab3 (col3,col4)

statement ok
CREATE UNIQUE INDEX idx_tab3_3 ON tab3 (col4,col0)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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_1 ON tab4 (col4 DESC,col1)

statement ok
CREATE INDEX idx_tab4_2 ON tab4 (col3)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE col4 > 9.31

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col4 > 9.31
----

query I rowsort label-1050
SELECT pk FROM tab0 WHERE NOT (col4 > 9.31)
----
0

statement ok
DELETE FROM tab1 WHERE col4 > 9.31

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col4 > 9.31
----

query I rowsort label-1050
SELECT pk FROM tab1 WHERE NOT (col4 > 9.31)
----
0

statement ok
DELETE FROM tab2 WHERE col4 > 9.31

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col4 > 9.31
----

query I rowsort label-1050
SELECT pk FROM tab2 WHERE NOT (col4 > 9.31)
----
0

statement ok
DELETE FROM tab3 WHERE col4 > 9.31

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col4 > 9.31
----

query I rowsort label-1050
SELECT pk FROM tab3 WHERE NOT (col4 > 9.31)
----
0

statement ok
DELETE FROM tab4 WHERE col4 > 9.31

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col4 > 9.31
----

query I rowsort label-1050
SELECT pk FROM tab4 WHERE NOT (col4 > 9.31)
----
0

statement ok
DELETE FROM tab0 WHERE (col0 >= 5 OR col0 < 6)

query I rowsort label-empty
SELECT pk FROM tab0 WHERE (col0 >= 5 OR col0 < 6)
----

query I rowsort label-1065
SELECT pk FROM tab0 WHERE NOT ((col0 >= 5 OR col0 < 6))
----

statement ok
DELETE FROM tab1 WHERE (col0 >= 5 OR col0 < 6)

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (col0 >= 5 OR col0 < 6)
----

query I rowsort label-1065
SELECT pk FROM tab1 WHERE NOT ((col0 >= 5 OR col0 < 6))
----

statement ok
DELETE FROM tab2 WHERE (col0 >= 5 OR col0 < 6)

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (col0 >= 5 OR col0 < 6)
----

query I rowsort label-1065
SELECT pk FROM tab2 WHERE NOT ((col0 >= 5 OR col0 < 6))
----

statement ok
DELETE FROM tab3 WHERE (col0 >= 5 OR col0 < 6)

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (col0 >= 5 OR col0 < 6)
----

query I rowsort label-1065
SELECT pk FROM tab3 WHERE NOT ((col0 >= 5 OR col0 < 6))
----

statement ok
DELETE FROM tab4 WHERE (col0 >= 5 OR col0 < 6)

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (col0 >= 5 OR col0 < 6)
----

query I rowsort label-1065
SELECT pk FROM tab4 WHERE NOT ((col0 >= 5 OR col0 < 6))
----

statement ok
DROP TABLE tab0

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,3,8.94,'zsfkd',5,7.47,'vfkes')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE UNIQUE INDEX idx_tab2_0 ON tab2 (col1)

statement ok
CREATE INDEX idx_tab2_1 ON tab2 (col0)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

statement ok
CREATE UNIQUE INDEX idx_tab3_0 ON tab3 (col1)

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

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

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

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

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

statement ok
CREATE UNIQUE INDEX idx_tab4_2 ON tab4 (col4,col3)

statement ok
CREATE INDEX idx_tab4_4 ON tab4 (col1 DESC)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE col1 BETWEEN 8.49 AND 9.24

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col1 BETWEEN 8.49 AND 9.24
----

query I rowsort label-1080
SELECT pk FROM tab0 WHERE NOT (col1 BETWEEN 8.49 AND 9.24)
----

statement ok
DELETE FROM tab1 WHERE col1 BETWEEN 8.49 AND 9.24

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col1 BETWEEN 8.49 AND 9.24
----

query I rowsort label-1080
SELECT pk FROM tab1 WHERE NOT (col1 BETWEEN 8.49 AND 9.24)
----

statement ok
DELETE FROM tab2 WHERE col1 BETWEEN 8.49 AND 9.24

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col1 BETWEEN 8.49 AND 9.24
----

query I rowsort label-1080
SELECT pk FROM tab2 WHERE NOT (col1 BETWEEN 8.49 AND 9.24)
----

statement ok
DELETE FROM tab3 WHERE col1 BETWEEN 8.49 AND 9.24

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col1 BETWEEN 8.49 AND 9.24
----

query I rowsort label-1080
SELECT pk FROM tab3 WHERE NOT (col1 BETWEEN 8.49 AND 9.24)
----

statement ok
DELETE FROM tab4 WHERE col1 BETWEEN 8.49 AND 9.24

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col1 BETWEEN 8.49 AND 9.24
----

query I rowsort label-1080
SELECT pk FROM tab4 WHERE NOT (col1 BETWEEN 8.49 AND 9.24)
----

statement ok
DROP TABLE tab0

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,3,6.91,'bjhkv',5,1.48,'bbcrk')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE UNIQUE INDEX idx_tab2_0 ON tab2 (col4)

statement ok
CREATE INDEX idx_tab2_1 ON tab2 (col3 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab2_4 ON tab2 (col0)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

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

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

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE INDEX idx_tab4_2 ON tab4 (col4)

statement ok
CREATE UNIQUE INDEX idx_tab4_3 ON tab4 (col0)

statement ok
CREATE UNIQUE INDEX idx_tab4_5 ON tab4 (col3)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE col0 < 1

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col0 < 1
----

query I rowsort label-1095
SELECT pk FROM tab0 WHERE NOT (col0 < 1)
----
0

statement ok
DELETE FROM tab1 WHERE col0 < 1

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col0 < 1
----

query I rowsort label-1095
SELECT pk FROM tab1 WHERE NOT (col0 < 1)
----
0

statement ok
DELETE FROM tab2 WHERE col0 < 1

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col0 < 1
----

query I rowsort label-1095
SELECT pk FROM tab2 WHERE NOT (col0 < 1)
----
0

statement ok
DELETE FROM tab3 WHERE col0 < 1

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col0 < 1
----

query I rowsort label-1095
SELECT pk FROM tab3 WHERE NOT (col0 < 1)
----
0

statement ok
DELETE FROM tab4 WHERE col0 < 1

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col0 < 1
----

query I rowsort label-1095
SELECT pk FROM tab4 WHERE NOT (col0 < 1)
----
0

statement ok
DELETE FROM tab0 WHERE ((col4 > 4.29 OR col3 > 9 OR (col0 IS NULL) OR (col0 > 3))) OR col0 >= 3

query I rowsort label-empty
SELECT pk FROM tab0 WHERE ((col4 > 4.29 OR col3 > 9 OR (col0 IS NULL) OR (col0 > 3))) OR col0 >= 3
----

query I rowsort label-1110
SELECT pk FROM tab0 WHERE NOT (((col4 > 4.29 OR col3 > 9 OR (col0 IS NULL) OR (col0 > 3))) OR col0 >= 3)
----

statement ok
DELETE FROM tab1 WHERE ((col4 > 4.29 OR col3 > 9 OR (col0 IS NULL) OR (col0 > 3))) OR col0 >= 3

query I rowsort label-empty
SELECT pk FROM tab1 WHERE ((col4 > 4.29 OR col3 > 9 OR (col0 IS NULL) OR (col0 > 3))) OR col0 >= 3
----

query I rowsort label-1110
SELECT pk FROM tab1 WHERE NOT (((col4 > 4.29 OR col3 > 9 OR (col0 IS NULL) OR (col0 > 3))) OR col0 >= 3)
----

statement ok
DELETE FROM tab2 WHERE ((col4 > 4.29 OR col3 > 9 OR (col0 IS NULL) OR (col0 > 3))) OR col0 >= 3

query I rowsort label-empty
SELECT pk FROM tab2 WHERE ((col4 > 4.29 OR col3 > 9 OR (col0 IS NULL) OR (col0 > 3))) OR col0 >= 3
----

query I rowsort label-1110
SELECT pk FROM tab2 WHERE NOT (((col4 > 4.29 OR col3 > 9 OR (col0 IS NULL) OR (col0 > 3))) OR col0 >= 3)
----

statement ok
DELETE FROM tab3 WHERE ((col4 > 4.29 OR col3 > 9 OR (col0 IS NULL) OR (col0 > 3))) OR col0 >= 3

query I rowsort label-empty
SELECT pk FROM tab3 WHERE ((col4 > 4.29 OR col3 > 9 OR (col0 IS NULL) OR (col0 > 3))) OR col0 >= 3
----

query I rowsort label-1110
SELECT pk FROM tab3 WHERE NOT (((col4 > 4.29 OR col3 > 9 OR (col0 IS NULL) OR (col0 > 3))) OR col0 >= 3)
----

statement ok
DELETE FROM tab4 WHERE ((col4 > 4.29 OR col3 > 9 OR (col0 IS NULL) OR (col0 > 3))) OR col0 >= 3

query I rowsort label-empty
SELECT pk FROM tab4 WHERE ((col4 > 4.29 OR col3 > 9 OR (col0 IS NULL) OR (col0 > 3))) OR col0 >= 3
----

query I rowsort label-1110
SELECT pk FROM tab4 WHERE NOT (((col4 > 4.29 OR col3 > 9 OR (col0 IS NULL) OR (col0 > 3))) OR col0 >= 3)
----

statement ok
DROP TABLE tab0

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,0,7.66,'gadfh',7,1.1,'rahxv')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE INDEX idx_tab2_0 ON tab2 (col3)

statement ok
CREATE INDEX idx_tab2_1 ON tab2 (col4 DESC,col1)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

statement ok
CREATE INDEX idx_tab3_3 ON tab3 (col1 DESC)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE UNIQUE INDEX idx_tab4_0 ON tab4 (col3)

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

statement ok
CREATE UNIQUE INDEX idx_tab4_2 ON tab4 (col0 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab4_5 ON tab4 (col4)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE col0 <= 4 OR col3 > 9 AND col4 < 1.16

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col0 <= 4 OR col3 > 9 AND col4 < 1.16
----

query I rowsort label-1125
SELECT pk FROM tab0 WHERE NOT (col0 <= 4 OR col3 > 9 AND col4 < 1.16)
----

statement ok
DELETE FROM tab1 WHERE col0 <= 4 OR col3 > 9 AND col4 < 1.16

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col0 <= 4 OR col3 > 9 AND col4 < 1.16
----

query I rowsort label-1125
SELECT pk FROM tab1 WHERE NOT (col0 <= 4 OR col3 > 9 AND col4 < 1.16)
----

statement ok
DELETE FROM tab2 WHERE col0 <= 4 OR col3 > 9 AND col4 < 1.16

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col0 <= 4 OR col3 > 9 AND col4 < 1.16
----

query I rowsort label-1125
SELECT pk FROM tab2 WHERE NOT (col0 <= 4 OR col3 > 9 AND col4 < 1.16)
----

statement ok
DELETE FROM tab3 WHERE col0 <= 4 OR col3 > 9 AND col4 < 1.16

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col0 <= 4 OR col3 > 9 AND col4 < 1.16
----

query I rowsort label-1125
SELECT pk FROM tab3 WHERE NOT (col0 <= 4 OR col3 > 9 AND col4 < 1.16)
----

statement ok
DELETE FROM tab4 WHERE col0 <= 4 OR col3 > 9 AND col4 < 1.16

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col0 <= 4 OR col3 > 9 AND col4 < 1.16
----

query I rowsort label-1125
SELECT pk FROM tab4 WHERE NOT (col0 <= 4 OR col3 > 9 AND col4 < 1.16)
----

statement ok
DROP TABLE tab0

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,7,1.56,'xkdvb',8,6.93,'ppigp')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE UNIQUE INDEX idx_tab2_0 ON tab2 (col4)

statement ok
CREATE INDEX idx_tab2_1 ON tab2 (col3)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

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

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE UNIQUE INDEX idx_tab4_0 ON tab4 (col3,col4 DESC)

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

statement ok
CREATE INDEX idx_tab4_4 ON tab4 (col0 DESC)

statement ok
CREATE INDEX idx_tab4_5 ON tab4 (col4)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DROP TABLE tab0

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,0,5.11,'lndbm',6,8.73,'szqix')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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 (col1,col4)

statement ok
CREATE INDEX idx_tab2_1 ON tab2 (col0 DESC,col3 DESC,col1 DESC)

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

statement ok
CREATE UNIQUE INDEX idx_tab2_4 ON tab2 (col0 DESC,col4)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

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

statement ok
CREATE UNIQUE INDEX idx_tab3_1 ON tab3 (col0 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab3_5 ON tab3 (col4)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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,col1 DESC)

statement ok
CREATE INDEX idx_tab4_1 ON tab4 (col3 DESC)

statement ok
CREATE INDEX idx_tab4_2 ON tab4 (col4)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE (col4 <= 2.9) OR (col0 BETWEEN 0 AND 6 AND col3 >= 5) AND col3 > 7 OR (col4 <= 4.48 AND col4 > 3.92) AND (col1 IS NULL) AND (col3 IS NULL AND col0 < 3 AND col0 BETWEEN 9 AND 0)

query I rowsort label-empty
SELECT pk FROM tab0 WHERE (col4 <= 2.9) OR (col0 BETWEEN 0 AND 6 AND col3 >= 5) AND col3 > 7 OR (col4 <= 4.48 AND col4 > 3.92) AND (col1 IS NULL) AND (col3 IS NULL AND col0 < 3 AND col0 BETWEEN 9 AND 0)
----

query I rowsort label-1140
SELECT pk FROM tab0 WHERE NOT ((col4 <= 2.9) OR (col0 BETWEEN 0 AND 6 AND col3 >= 5) AND col3 > 7 OR (col4 <= 4.48 AND col4 > 3.92) AND (col1 IS NULL) AND (col3 IS NULL AND col0 < 3 AND col0 BETWEEN 9 AND 0))
----
0

statement ok
DELETE FROM tab1 WHERE (col4 <= 2.9) OR (col0 BETWEEN 0 AND 6 AND col3 >= 5) AND col3 > 7 OR (col4 <= 4.48 AND col4 > 3.92) AND (col1 IS NULL) AND (col3 IS NULL AND col0 < 3 AND col0 BETWEEN 9 AND 0)

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (col4 <= 2.9) OR (col0 BETWEEN 0 AND 6 AND col3 >= 5) AND col3 > 7 OR (col4 <= 4.48 AND col4 > 3.92) AND (col1 IS NULL) AND (col3 IS NULL AND col0 < 3 AND col0 BETWEEN 9 AND 0)
----

query I rowsort label-1140
SELECT pk FROM tab1 WHERE NOT ((col4 <= 2.9) OR (col0 BETWEEN 0 AND 6 AND col3 >= 5) AND col3 > 7 OR (col4 <= 4.48 AND col4 > 3.92) AND (col1 IS NULL) AND (col3 IS NULL AND col0 < 3 AND col0 BETWEEN 9 AND 0))
----
0

statement ok
DELETE FROM tab2 WHERE (col4 <= 2.9) OR (col0 BETWEEN 0 AND 6 AND col3 >= 5) AND col3 > 7 OR (col4 <= 4.48 AND col4 > 3.92) AND (col1 IS NULL) AND (col3 IS NULL AND col0 < 3 AND col0 BETWEEN 9 AND 0)

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (col4 <= 2.9) OR (col0 BETWEEN 0 AND 6 AND col3 >= 5) AND col3 > 7 OR (col4 <= 4.48 AND col4 > 3.92) AND (col1 IS NULL) AND (col3 IS NULL AND col0 < 3 AND col0 BETWEEN 9 AND 0)
----

query I rowsort label-1140
SELECT pk FROM tab2 WHERE NOT ((col4 <= 2.9) OR (col0 BETWEEN 0 AND 6 AND col3 >= 5) AND col3 > 7 OR (col4 <= 4.48 AND col4 > 3.92) AND (col1 IS NULL) AND (col3 IS NULL AND col0 < 3 AND col0 BETWEEN 9 AND 0))
----
0

statement ok
DELETE FROM tab3 WHERE (col4 <= 2.9) OR (col0 BETWEEN 0 AND 6 AND col3 >= 5) AND col3 > 7 OR (col4 <= 4.48 AND col4 > 3.92) AND (col1 IS NULL) AND (col3 IS NULL AND col0 < 3 AND col0 BETWEEN 9 AND 0)

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (col4 <= 2.9) OR (col0 BETWEEN 0 AND 6 AND col3 >= 5) AND col3 > 7 OR (col4 <= 4.48 AND col4 > 3.92) AND (col1 IS NULL) AND (col3 IS NULL AND col0 < 3 AND col0 BETWEEN 9 AND 0)
----

query I rowsort label-1140
SELECT pk FROM tab3 WHERE NOT ((col4 <= 2.9) OR (col0 BETWEEN 0 AND 6 AND col3 >= 5) AND col3 > 7 OR (col4 <= 4.48 AND col4 > 3.92) AND (col1 IS NULL) AND (col3 IS NULL AND col0 < 3 AND col0 BETWEEN 9 AND 0))
----
0

statement ok
DELETE FROM tab4 WHERE (col4 <= 2.9) OR (col0 BETWEEN 0 AND 6 AND col3 >= 5) AND col3 > 7 OR (col4 <= 4.48 AND col4 > 3.92) AND (col1 IS NULL) AND (col3 IS NULL AND col0 < 3 AND col0 BETWEEN 9 AND 0)

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (col4 <= 2.9) OR (col0 BETWEEN 0 AND 6 AND col3 >= 5) AND col3 > 7 OR (col4 <= 4.48 AND col4 > 3.92) AND (col1 IS NULL) AND (col3 IS NULL AND col0 < 3 AND col0 BETWEEN 9 AND 0)
----

query I rowsort label-1140
SELECT pk FROM tab4 WHERE NOT ((col4 <= 2.9) OR (col0 BETWEEN 0 AND 6 AND col3 >= 5) AND col3 > 7 OR (col4 <= 4.48 AND col4 > 3.92) AND (col1 IS NULL) AND (col3 IS NULL AND col0 < 3 AND col0 BETWEEN 9 AND 0))
----
0

statement ok
DELETE FROM tab0 WHERE ((col3 IS NULL) AND (col4 > 8.74))

query I rowsort label-empty
SELECT pk FROM tab0 WHERE ((col3 IS NULL) AND (col4 > 8.74))
----

query I rowsort label-1155
SELECT pk FROM tab0 WHERE NOT (((col3 IS NULL) AND (col4 > 8.74)))
----
0

statement ok
DELETE FROM tab1 WHERE ((col3 IS NULL) AND (col4 > 8.74))

query I rowsort label-empty
SELECT pk FROM tab1 WHERE ((col3 IS NULL) AND (col4 > 8.74))
----

query I rowsort label-1155
SELECT pk FROM tab1 WHERE NOT (((col3 IS NULL) AND (col4 > 8.74)))
----
0

statement ok
DELETE FROM tab2 WHERE ((col3 IS NULL) AND (col4 > 8.74))

query I rowsort label-empty
SELECT pk FROM tab2 WHERE ((col3 IS NULL) AND (col4 > 8.74))
----

query I rowsort label-1155
SELECT pk FROM tab2 WHERE NOT (((col3 IS NULL) AND (col4 > 8.74)))
----
0

statement ok
DELETE FROM tab3 WHERE ((col3 IS NULL) AND (col4 > 8.74))

query I rowsort label-empty
SELECT pk FROM tab3 WHERE ((col3 IS NULL) AND (col4 > 8.74))
----

query I rowsort label-1155
SELECT pk FROM tab3 WHERE NOT (((col3 IS NULL) AND (col4 > 8.74)))
----
0

statement ok
DELETE FROM tab4 WHERE ((col3 IS NULL) AND (col4 > 8.74))

query I rowsort label-empty
SELECT pk FROM tab4 WHERE ((col3 IS NULL) AND (col4 > 8.74))
----

query I rowsort label-1155
SELECT pk FROM tab4 WHERE NOT (((col3 IS NULL) AND (col4 > 8.74)))
----
0

statement ok
DELETE FROM tab0 WHERE col3 > 9

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col3 > 9
----

query I rowsort label-1170
SELECT pk FROM tab0 WHERE NOT (col3 > 9)
----
0

statement ok
DELETE FROM tab1 WHERE col3 > 9

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col3 > 9
----

query I rowsort label-1170
SELECT pk FROM tab1 WHERE NOT (col3 > 9)
----
0

statement ok
DELETE FROM tab2 WHERE col3 > 9

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col3 > 9
----

query I rowsort label-1170
SELECT pk FROM tab2 WHERE NOT (col3 > 9)
----
0

statement ok
DELETE FROM tab3 WHERE col3 > 9

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col3 > 9
----

query I rowsort label-1170
SELECT pk FROM tab3 WHERE NOT (col3 > 9)
----
0

statement ok
DELETE FROM tab4 WHERE col3 > 9

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col3 > 9
----

query I rowsort label-1170
SELECT pk FROM tab4 WHERE NOT (col3 > 9)
----
0

statement ok
DELETE FROM tab0 WHERE col1 = 5.30

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col1 = 5.30
----

query I rowsort label-1185
SELECT pk FROM tab0 WHERE NOT (col1 = 5.30)
----
0

statement ok
DELETE FROM tab1 WHERE col1 = 5.30

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col1 = 5.30
----

query I rowsort label-1185
SELECT pk FROM tab1 WHERE NOT (col1 = 5.30)
----
0

statement ok
DELETE FROM tab2 WHERE col1 = 5.30

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col1 = 5.30
----

query I rowsort label-1185
SELECT pk FROM tab2 WHERE NOT (col1 = 5.30)
----
0

statement ok
DELETE FROM tab3 WHERE col1 = 5.30

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col1 = 5.30
----

query I rowsort label-1185
SELECT pk FROM tab3 WHERE NOT (col1 = 5.30)
----
0

statement ok
DELETE FROM tab4 WHERE col1 = 5.30

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col1 = 5.30
----

query I rowsort label-1185
SELECT pk FROM tab4 WHERE NOT (col1 = 5.30)
----
0

statement ok
DROP TABLE tab0

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,8,2.10,'zwxjq',4,5.51,'zvltv')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE UNIQUE INDEX idx_tab2_0 ON tab2 (col1 DESC,col0 DESC,col3 DESC)

statement ok
CREATE INDEX idx_tab2_2 ON tab2 (col4,col0 DESC)

statement ok
CREATE INDEX idx_tab2_4 ON tab2 (col1 DESC,col4 DESC)

statement ok
CREATE INDEX idx_tab2_5 ON tab2 (col0)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

statement ok
CREATE INDEX idx_tab3_0 ON tab3 (col4 DESC)

statement ok
CREATE INDEX idx_tab3_1 ON tab3 (col3 DESC,col1 DESC)

statement ok
CREATE INDEX idx_tab3_2 ON tab3 (col1)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE UNIQUE INDEX idx_tab4_0 ON tab4 (col4 DESC,col0 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab4_3 ON tab4 (col4 DESC,col3 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab4_4 ON tab4 (col4 DESC,col1)

statement ok
CREATE UNIQUE INDEX idx_tab4_5 ON tab4 (col3 DESC)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE col0 IN (5,7,4,8,8,4)

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col0 IN (5,7,4,8,8,4)
----

query I rowsort label-1200
SELECT pk FROM tab0 WHERE NOT (col0 IN (5,7,4,8,8,4))
----

statement ok
DELETE FROM tab1 WHERE col0 IN (5,7,4,8,8,4)

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col0 IN (5,7,4,8,8,4)
----

query I rowsort label-1200
SELECT pk FROM tab1 WHERE NOT (col0 IN (5,7,4,8,8,4))
----

statement ok
DELETE FROM tab2 WHERE col0 IN (5,7,4,8,8,4)

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col0 IN (5,7,4,8,8,4)
----

query I rowsort label-1200
SELECT pk FROM tab2 WHERE NOT (col0 IN (5,7,4,8,8,4))
----

statement ok
DELETE FROM tab3 WHERE col0 IN (5,7,4,8,8,4)

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col0 IN (5,7,4,8,8,4)
----

query I rowsort label-1200
SELECT pk FROM tab3 WHERE NOT (col0 IN (5,7,4,8,8,4))
----

statement ok
DELETE FROM tab4 WHERE col0 IN (5,7,4,8,8,4)

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col0 IN (5,7,4,8,8,4)
----

query I rowsort label-1200
SELECT pk FROM tab4 WHERE NOT (col0 IN (5,7,4,8,8,4))
----

statement ok
DROP TABLE tab0

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,3,6.91,'vspbj',7,5.85,'qhgoa')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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 (col1)

statement ok
CREATE INDEX idx_tab2_1 ON tab2 (col3)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

statement ok
CREATE INDEX idx_tab3_1 ON tab3 (col4)

statement ok
CREATE INDEX idx_tab3_2 ON tab3 (col3 DESC)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

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

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

statement ok
CREATE INDEX idx_tab4_2 ON tab4 (col0,col4,col1)

statement ok
CREATE UNIQUE INDEX idx_tab4_4 ON tab4 (col3 DESC)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE col0 > 6 OR col3 = 7

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col0 > 6 OR col3 = 7
----

query I rowsort label-1215
SELECT pk FROM tab0 WHERE NOT (col0 > 6 OR col3 = 7)
----

statement ok
DELETE FROM tab1 WHERE col0 > 6 OR col3 = 7

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col0 > 6 OR col3 = 7
----

query I rowsort label-1215
SELECT pk FROM tab1 WHERE NOT (col0 > 6 OR col3 = 7)
----

statement ok
DELETE FROM tab2 WHERE col0 > 6 OR col3 = 7

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col0 > 6 OR col3 = 7
----

query I rowsort label-1215
SELECT pk FROM tab2 WHERE NOT (col0 > 6 OR col3 = 7)
----

statement ok
DELETE FROM tab3 WHERE col0 > 6 OR col3 = 7

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col0 > 6 OR col3 = 7
----

query I rowsort label-1215
SELECT pk FROM tab3 WHERE NOT (col0 > 6 OR col3 = 7)
----

statement ok
DELETE FROM tab4 WHERE col0 > 6 OR col3 = 7

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col0 > 6 OR col3 = 7
----

query I rowsort label-1215
SELECT pk FROM tab4 WHERE NOT (col0 > 6 OR col3 = 7)
----

statement ok
DROP TABLE tab0

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,9,1.83,'dmhqi',9,3.26,'rehyl')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE UNIQUE INDEX idx_tab2_0 ON tab2 (col3 DESC,col0)

statement ok
CREATE UNIQUE INDEX idx_tab2_1 ON tab2 (col4,col3)

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

statement ok
CREATE UNIQUE INDEX idx_tab2_3 ON tab2 (col3 DESC,col4)

statement ok
CREATE INDEX idx_tab2_4 ON tab2 (col1 DESC,col0)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

statement ok
CREATE INDEX idx_tab3_0 ON tab3 (col0 DESC)

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

statement ok
CREATE INDEX idx_tab3_5 ON tab3 (col4)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE INDEX idx_tab4_0 ON tab4 (col0)

statement ok
CREATE UNIQUE INDEX idx_tab4_1 ON tab4 (col1 DESC)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE col1 <= 9.95

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col1 <= 9.95
----

query I rowsort label-1230
SELECT pk FROM tab0 WHERE NOT (col1 <= 9.95)
----

statement ok
DELETE FROM tab1 WHERE col1 <= 9.95

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col1 <= 9.95
----

query I rowsort label-1230
SELECT pk FROM tab1 WHERE NOT (col1 <= 9.95)
----

statement ok
DELETE FROM tab2 WHERE col1 <= 9.95

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col1 <= 9.95
----

query I rowsort label-1230
SELECT pk FROM tab2 WHERE NOT (col1 <= 9.95)
----

statement ok
DELETE FROM tab3 WHERE col1 <= 9.95

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col1 <= 9.95
----

query I rowsort label-1230
SELECT pk FROM tab3 WHERE NOT (col1 <= 9.95)
----

statement ok
DELETE FROM tab4 WHERE col1 <= 9.95

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col1 <= 9.95
----

query I rowsort label-1230
SELECT pk FROM tab4 WHERE NOT (col1 <= 9.95)
----

statement ok
DROP TABLE tab0

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,4,5.13,'zwhmr',4,3.63,'chuqp')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE UNIQUE INDEX idx_tab2_0 ON tab2 (col1)

statement ok
CREATE INDEX idx_tab2_1 ON tab2 (col0 DESC)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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 (col0)

statement ok
CREATE INDEX idx_tab3_1 ON tab3 (col1)

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

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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,col3 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab4_1 ON tab4 (col4)

statement ok
CREATE UNIQUE INDEX idx_tab4_3 ON tab4 (col1)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE ((col1 > 0.67 OR (col1 = 2.82) AND col3 > 6 OR (col0 < 5 AND col4 < 7.69 AND col3 > 1) OR col0 > 4) AND ((col3 >= 2 OR col3 = 7)))

query I rowsort label-empty
SELECT pk FROM tab0 WHERE ((col1 > 0.67 OR (col1 = 2.82) AND col3 > 6 OR (col0 < 5 AND col4 < 7.69 AND col3 > 1) OR col0 > 4) AND ((col3 >= 2 OR col3 = 7)))
----

query I rowsort label-1245
SELECT pk FROM tab0 WHERE NOT (((col1 > 0.67 OR (col1 = 2.82) AND col3 > 6 OR (col0 < 5 AND col4 < 7.69 AND col3 > 1) OR col0 > 4) AND ((col3 >= 2 OR col3 = 7))))
----

statement ok
DELETE FROM tab1 WHERE ((col1 > 0.67 OR (col1 = 2.82) AND col3 > 6 OR (col0 < 5 AND col4 < 7.69 AND col3 > 1) OR col0 > 4) AND ((col3 >= 2 OR col3 = 7)))

query I rowsort label-empty
SELECT pk FROM tab1 WHERE ((col1 > 0.67 OR (col1 = 2.82) AND col3 > 6 OR (col0 < 5 AND col4 < 7.69 AND col3 > 1) OR col0 > 4) AND ((col3 >= 2 OR col3 = 7)))
----

query I rowsort label-1245
SELECT pk FROM tab1 WHERE NOT (((col1 > 0.67 OR (col1 = 2.82) AND col3 > 6 OR (col0 < 5 AND col4 < 7.69 AND col3 > 1) OR col0 > 4) AND ((col3 >= 2 OR col3 = 7))))
----

statement ok
DELETE FROM tab2 WHERE ((col1 > 0.67 OR (col1 = 2.82) AND col3 > 6 OR (col0 < 5 AND col4 < 7.69 AND col3 > 1) OR col0 > 4) AND ((col3 >= 2 OR col3 = 7)))

query I rowsort label-empty
SELECT pk FROM tab2 WHERE ((col1 > 0.67 OR (col1 = 2.82) AND col3 > 6 OR (col0 < 5 AND col4 < 7.69 AND col3 > 1) OR col0 > 4) AND ((col3 >= 2 OR col3 = 7)))
----

query I rowsort label-1245
SELECT pk FROM tab2 WHERE NOT (((col1 > 0.67 OR (col1 = 2.82) AND col3 > 6 OR (col0 < 5 AND col4 < 7.69 AND col3 > 1) OR col0 > 4) AND ((col3 >= 2 OR col3 = 7))))
----

statement ok
DELETE FROM tab3 WHERE ((col1 > 0.67 OR (col1 = 2.82) AND col3 > 6 OR (col0 < 5 AND col4 < 7.69 AND col3 > 1) OR col0 > 4) AND ((col3 >= 2 OR col3 = 7)))

query I rowsort label-empty
SELECT pk FROM tab3 WHERE ((col1 > 0.67 OR (col1 = 2.82) AND col3 > 6 OR (col0 < 5 AND col4 < 7.69 AND col3 > 1) OR col0 > 4) AND ((col3 >= 2 OR col3 = 7)))
----

query I rowsort label-1245
SELECT pk FROM tab3 WHERE NOT (((col1 > 0.67 OR (col1 = 2.82) AND col3 > 6 OR (col0 < 5 AND col4 < 7.69 AND col3 > 1) OR col0 > 4) AND ((col3 >= 2 OR col3 = 7))))
----

statement ok
DELETE FROM tab4 WHERE ((col1 > 0.67 OR (col1 = 2.82) AND col3 > 6 OR (col0 < 5 AND col4 < 7.69 AND col3 > 1) OR col0 > 4) AND ((col3 >= 2 OR col3 = 7)))

query I rowsort label-empty
SELECT pk FROM tab4 WHERE ((col1 > 0.67 OR (col1 = 2.82) AND col3 > 6 OR (col0 < 5 AND col4 < 7.69 AND col3 > 1) OR col0 > 4) AND ((col3 >= 2 OR col3 = 7)))
----

query I rowsort label-1245
SELECT pk FROM tab4 WHERE NOT (((col1 > 0.67 OR (col1 = 2.82) AND col3 > 6 OR (col0 < 5 AND col4 < 7.69 AND col3 > 1) OR col0 > 4) AND ((col3 >= 2 OR col3 = 7))))
----

statement ok
DROP TABLE tab0

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,2,9.10,'onllt',5,0.41,'pnwcb')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE UNIQUE INDEX idx_tab2_2 ON tab2 (col4 DESC,col1)

statement ok
CREATE UNIQUE INDEX idx_tab2_3 ON tab2 (col1)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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 (col3,col0)

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

statement ok
CREATE INDEX idx_tab3_3 ON tab3 (col0)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE INDEX idx_tab4_0 ON tab4 (col3,col0,col1,col4 DESC)

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

statement ok
CREATE UNIQUE INDEX idx_tab4_2 ON tab4 (col4 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab4_5 ON tab4 (col0,col1)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE col3 > 2

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col3 > 2
----

query I rowsort label-1260
SELECT pk FROM tab0 WHERE NOT (col3 > 2)
----

statement ok
DELETE FROM tab1 WHERE col3 > 2

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col3 > 2
----

query I rowsort label-1260
SELECT pk FROM tab1 WHERE NOT (col3 > 2)
----

statement ok
DELETE FROM tab2 WHERE col3 > 2

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col3 > 2
----

query I rowsort label-1260
SELECT pk FROM tab2 WHERE NOT (col3 > 2)
----

statement ok
DELETE FROM tab3 WHERE col3 > 2

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col3 > 2
----

query I rowsort label-1260
SELECT pk FROM tab3 WHERE NOT (col3 > 2)
----

statement ok
DELETE FROM tab4 WHERE col3 > 2

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col3 > 2
----

query I rowsort label-1260
SELECT pk FROM tab4 WHERE NOT (col3 > 2)
----

statement ok
DROP TABLE tab0

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,3,6.35,'hriqd',2,2.80,'wsydw')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE UNIQUE INDEX idx_tab2_1 ON tab2 (col3)

statement ok
CREATE UNIQUE INDEX idx_tab2_2 ON tab2 (col0 DESC)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

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

statement ok
CREATE UNIQUE INDEX idx_tab3_1 ON tab3 (col4,col3)

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

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

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

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE INDEX idx_tab4_0 ON tab4 (col4 DESC,col3,col0 DESC)

statement ok
CREATE INDEX idx_tab4_1 ON tab4 (col1 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab4_4 ON tab4 (col0 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab4_5 ON tab4 (col3)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DROP TABLE tab0

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,0,6.61,'axsie',1,4.2,'gnubf')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE INDEX idx_tab2_0 ON tab2 (col3 DESC)

statement ok
CREATE INDEX idx_tab2_2 ON tab2 (col1 DESC,col4)

statement ok
CREATE UNIQUE INDEX idx_tab2_3 ON tab2 (col0,col4)

statement ok
CREATE INDEX idx_tab2_5 ON tab2 (col4)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

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

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

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

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

statement ok
CREATE UNIQUE INDEX idx_tab3_5 ON tab3 (col0 DESC)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE INDEX idx_tab4_0 ON tab4 (col0 DESC)

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

statement ok
CREATE UNIQUE INDEX idx_tab4_5 ON tab4 (col3 DESC,col1)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE col3 = 3 AND ((col1 <= 3.82)) OR col4 < 5.42

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col3 = 3 AND ((col1 <= 3.82)) OR col4 < 5.42
----

query I rowsort label-1275
SELECT pk FROM tab0 WHERE NOT (col3 = 3 AND ((col1 <= 3.82)) OR col4 < 5.42)
----

statement ok
DELETE FROM tab1 WHERE col3 = 3 AND ((col1 <= 3.82)) OR col4 < 5.42

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col3 = 3 AND ((col1 <= 3.82)) OR col4 < 5.42
----

query I rowsort label-1275
SELECT pk FROM tab1 WHERE NOT (col3 = 3 AND ((col1 <= 3.82)) OR col4 < 5.42)
----

statement ok
DELETE FROM tab2 WHERE col3 = 3 AND ((col1 <= 3.82)) OR col4 < 5.42

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col3 = 3 AND ((col1 <= 3.82)) OR col4 < 5.42
----

query I rowsort label-1275
SELECT pk FROM tab2 WHERE NOT (col3 = 3 AND ((col1 <= 3.82)) OR col4 < 5.42)
----

statement ok
DELETE FROM tab3 WHERE col3 = 3 AND ((col1 <= 3.82)) OR col4 < 5.42

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col3 = 3 AND ((col1 <= 3.82)) OR col4 < 5.42
----

query I rowsort label-1275
SELECT pk FROM tab3 WHERE NOT (col3 = 3 AND ((col1 <= 3.82)) OR col4 < 5.42)
----

statement ok
DELETE FROM tab4 WHERE col3 = 3 AND ((col1 <= 3.82)) OR col4 < 5.42

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col3 = 3 AND ((col1 <= 3.82)) OR col4 < 5.42
----

query I rowsort label-1275
SELECT pk FROM tab4 WHERE NOT (col3 = 3 AND ((col1 <= 3.82)) OR col4 < 5.42)
----

statement ok
DROP TABLE tab0

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,1,2.87,'dcvtq',2,2.38,'sohgk')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE UNIQUE INDEX idx_tab2_0 ON tab2 (col1 DESC,col4,col3 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab2_1 ON tab2 (col0)

statement ok
CREATE INDEX idx_tab2_5 ON tab2 (col3)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

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

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

statement ok
CREATE INDEX idx_tab3_2 ON tab3 (col3)

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

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE INDEX idx_tab4_1 ON tab4 (col3 DESC,col4)

statement ok
CREATE UNIQUE INDEX idx_tab4_3 ON tab4 (col0,col4 DESC)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE col3 < 4

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col3 < 4
----

query I rowsort label-1290
SELECT pk FROM tab0 WHERE NOT (col3 < 4)
----

statement ok
DELETE FROM tab1 WHERE col3 < 4

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col3 < 4
----

query I rowsort label-1290
SELECT pk FROM tab1 WHERE NOT (col3 < 4)
----

statement ok
DELETE FROM tab2 WHERE col3 < 4

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col3 < 4
----

query I rowsort label-1290
SELECT pk FROM tab2 WHERE NOT (col3 < 4)
----

statement ok
DELETE FROM tab3 WHERE col3 < 4

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col3 < 4
----

query I rowsort label-1290
SELECT pk FROM tab3 WHERE NOT (col3 < 4)
----

statement ok
DELETE FROM tab4 WHERE col3 < 4

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col3 < 4
----

query I rowsort label-1290
SELECT pk FROM tab4 WHERE NOT (col3 < 4)
----

statement ok
DROP TABLE tab0

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,5,3.91,'faviv',3,7.97,'mmjhf')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE UNIQUE INDEX idx_tab2_0 ON tab2 (col0,col3,col4 DESC)

statement ok
CREATE INDEX idx_tab2_3 ON tab2 (col4)

statement ok
CREATE INDEX idx_tab2_4 ON tab2 (col0,col1,col3)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

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

statement ok
CREATE INDEX idx_tab3_1 ON tab3 (col0 DESC)

statement ok
CREATE INDEX idx_tab3_2 ON tab3 (col4)

statement ok
CREATE INDEX idx_tab3_5 ON tab3 (col3 DESC)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE UNIQUE INDEX idx_tab4_0 ON tab4 (col4,col3,col0,col1 DESC)

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

statement ok
CREATE INDEX idx_tab4_2 ON tab4 (col4 DESC,col1)

statement ok
CREATE UNIQUE INDEX idx_tab4_3 ON tab4 (col0 DESC)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE (((col3 <= 1) AND (col1 = 0.43)))

query I rowsort label-empty
SELECT pk FROM tab0 WHERE (((col3 <= 1) AND (col1 = 0.43)))
----

query I rowsort label-1305
SELECT pk FROM tab0 WHERE NOT ((((col3 <= 1) AND (col1 = 0.43))))
----
0

statement ok
DELETE FROM tab1 WHERE (((col3 <= 1) AND (col1 = 0.43)))

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (((col3 <= 1) AND (col1 = 0.43)))
----

query I rowsort label-1305
SELECT pk FROM tab1 WHERE NOT ((((col3 <= 1) AND (col1 = 0.43))))
----
0

statement ok
DELETE FROM tab2 WHERE (((col3 <= 1) AND (col1 = 0.43)))

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (((col3 <= 1) AND (col1 = 0.43)))
----

query I rowsort label-1305
SELECT pk FROM tab2 WHERE NOT ((((col3 <= 1) AND (col1 = 0.43))))
----
0

statement ok
DELETE FROM tab3 WHERE (((col3 <= 1) AND (col1 = 0.43)))

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (((col3 <= 1) AND (col1 = 0.43)))
----

query I rowsort label-1305
SELECT pk FROM tab3 WHERE NOT ((((col3 <= 1) AND (col1 = 0.43))))
----
0

statement ok
DELETE FROM tab4 WHERE (((col3 <= 1) AND (col1 = 0.43)))

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (((col3 <= 1) AND (col1 = 0.43)))
----

query I rowsort label-1305
SELECT pk FROM tab4 WHERE NOT ((((col3 <= 1) AND (col1 = 0.43))))
----
0

statement ok
DELETE FROM tab0 WHERE ((col3 = 4)) OR col0 IN (0,9,5,9,9,2)

query I rowsort label-empty
SELECT pk FROM tab0 WHERE ((col3 = 4)) OR col0 IN (0,9,5,9,9,2)
----

query I rowsort label-1320
SELECT pk FROM tab0 WHERE NOT (((col3 = 4)) OR col0 IN (0,9,5,9,9,2))
----

statement ok
DELETE FROM tab1 WHERE ((col3 = 4)) OR col0 IN (0,9,5,9,9,2)

query I rowsort label-empty
SELECT pk FROM tab1 WHERE ((col3 = 4)) OR col0 IN (0,9,5,9,9,2)
----

query I rowsort label-1320
SELECT pk FROM tab1 WHERE NOT (((col3 = 4)) OR col0 IN (0,9,5,9,9,2))
----

statement ok
DELETE FROM tab2 WHERE ((col3 = 4)) OR col0 IN (0,9,5,9,9,2)

query I rowsort label-empty
SELECT pk FROM tab2 WHERE ((col3 = 4)) OR col0 IN (0,9,5,9,9,2)
----

query I rowsort label-1320
SELECT pk FROM tab2 WHERE NOT (((col3 = 4)) OR col0 IN (0,9,5,9,9,2))
----

statement ok
DELETE FROM tab3 WHERE ((col3 = 4)) OR col0 IN (0,9,5,9,9,2)

query I rowsort label-empty
SELECT pk FROM tab3 WHERE ((col3 = 4)) OR col0 IN (0,9,5,9,9,2)
----

query I rowsort label-1320
SELECT pk FROM tab3 WHERE NOT (((col3 = 4)) OR col0 IN (0,9,5,9,9,2))
----

statement ok
DELETE FROM tab4 WHERE ((col3 = 4)) OR col0 IN (0,9,5,9,9,2)

query I rowsort label-empty
SELECT pk FROM tab4 WHERE ((col3 = 4)) OR col0 IN (0,9,5,9,9,2)
----

query I rowsort label-1320
SELECT pk FROM tab4 WHERE NOT (((col3 = 4)) OR col0 IN (0,9,5,9,9,2))
----

statement ok
DROP TABLE tab0

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,2,0.41,'dxznz',4,8.76,'oqbku')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE UNIQUE INDEX idx_tab2_0 ON tab2 (col0)

statement ok
CREATE UNIQUE INDEX idx_tab2_1 ON tab2 (col4 DESC)

statement ok
CREATE INDEX idx_tab2_2 ON tab2 (col1 DESC,col3 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab2_5 ON tab2 (col3,col1)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

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

statement ok
CREATE INDEX idx_tab3_2 ON tab3 (col4)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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_1 ON tab4 (col1,col3)

statement ok
CREATE INDEX idx_tab4_3 ON tab4 (col4 DESC,col3)

statement ok
CREATE UNIQUE INDEX idx_tab4_4 ON tab4 (col0 DESC,col3)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE (col0 < 6) OR ((col0 > 9) AND col4 > 5.74) OR (col0 < 3) OR ((col3 > 0))

query I rowsort label-empty
SELECT pk FROM tab0 WHERE (col0 < 6) OR ((col0 > 9) AND col4 > 5.74) OR (col0 < 3) OR ((col3 > 0))
----

query I rowsort label-1335
SELECT pk FROM tab0 WHERE NOT ((col0 < 6) OR ((col0 > 9) AND col4 > 5.74) OR (col0 < 3) OR ((col3 > 0)))
----

statement ok
DELETE FROM tab1 WHERE (col0 < 6) OR ((col0 > 9) AND col4 > 5.74) OR (col0 < 3) OR ((col3 > 0))

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (col0 < 6) OR ((col0 > 9) AND col4 > 5.74) OR (col0 < 3) OR ((col3 > 0))
----

query I rowsort label-1335
SELECT pk FROM tab1 WHERE NOT ((col0 < 6) OR ((col0 > 9) AND col4 > 5.74) OR (col0 < 3) OR ((col3 > 0)))
----

statement ok
DELETE FROM tab2 WHERE (col0 < 6) OR ((col0 > 9) AND col4 > 5.74) OR (col0 < 3) OR ((col3 > 0))

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (col0 < 6) OR ((col0 > 9) AND col4 > 5.74) OR (col0 < 3) OR ((col3 > 0))
----

query I rowsort label-1335
SELECT pk FROM tab2 WHERE NOT ((col0 < 6) OR ((col0 > 9) AND col4 > 5.74) OR (col0 < 3) OR ((col3 > 0)))
----

statement ok
DELETE FROM tab3 WHERE (col0 < 6) OR ((col0 > 9) AND col4 > 5.74) OR (col0 < 3) OR ((col3 > 0))

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (col0 < 6) OR ((col0 > 9) AND col4 > 5.74) OR (col0 < 3) OR ((col3 > 0))
----

query I rowsort label-1335
SELECT pk FROM tab3 WHERE NOT ((col0 < 6) OR ((col0 > 9) AND col4 > 5.74) OR (col0 < 3) OR ((col3 > 0)))
----

statement ok
DELETE FROM tab4 WHERE (col0 < 6) OR ((col0 > 9) AND col4 > 5.74) OR (col0 < 3) OR ((col3 > 0))

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (col0 < 6) OR ((col0 > 9) AND col4 > 5.74) OR (col0 < 3) OR ((col3 > 0))
----

query I rowsort label-1335
SELECT pk FROM tab4 WHERE NOT ((col0 < 6) OR ((col0 > 9) AND col4 > 5.74) OR (col0 < 3) OR ((col3 > 0)))
----

statement ok
DROP TABLE tab0

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,5,2.46,'jktix',3,6.41,'oeueh')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE INDEX idx_tab2_0 ON tab2 (col3)

statement ok
CREATE INDEX idx_tab2_1 ON tab2 (col4 DESC,col1)

statement ok
CREATE UNIQUE INDEX idx_tab2_4 ON tab2 (col0)

statement ok
CREATE UNIQUE INDEX idx_tab2_5 ON tab2 (col1)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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 (col3,col4)

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

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

statement ok
CREATE INDEX idx_tab3_5 ON tab3 (col1)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE UNIQUE INDEX idx_tab4_0 ON tab4 (col3)

statement ok
CREATE INDEX idx_tab4_3 ON tab4 (col0 DESC,col4)

statement ok
CREATE INDEX idx_tab4_5 ON tab4 (col1,col4 DESC)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE col1 > 9.49

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col1 > 9.49
----

query I rowsort label-1350
SELECT pk FROM tab0 WHERE NOT (col1 > 9.49)
----
0

statement ok
DELETE FROM tab1 WHERE col1 > 9.49

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col1 > 9.49
----

query I rowsort label-1350
SELECT pk FROM tab1 WHERE NOT (col1 > 9.49)
----
0

statement ok
DELETE FROM tab2 WHERE col1 > 9.49

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col1 > 9.49
----

query I rowsort label-1350
SELECT pk FROM tab2 WHERE NOT (col1 > 9.49)
----
0

statement ok
DELETE FROM tab3 WHERE col1 > 9.49

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col1 > 9.49
----

query I rowsort label-1350
SELECT pk FROM tab3 WHERE NOT (col1 > 9.49)
----
0

statement ok
DELETE FROM tab4 WHERE col1 > 9.49

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col1 > 9.49
----

query I rowsort label-1350
SELECT pk FROM tab4 WHERE NOT (col1 > 9.49)
----
0

statement ok
DELETE FROM tab0 WHERE col4 BETWEEN 0.88 AND 9.49

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col4 BETWEEN 0.88 AND 9.49
----

query I rowsort label-1365
SELECT pk FROM tab0 WHERE NOT (col4 BETWEEN 0.88 AND 9.49)
----

statement ok
DELETE FROM tab1 WHERE col4 BETWEEN 0.88 AND 9.49

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col4 BETWEEN 0.88 AND 9.49
----

query I rowsort label-1365
SELECT pk FROM tab1 WHERE NOT (col4 BETWEEN 0.88 AND 9.49)
----

statement ok
DELETE FROM tab2 WHERE col4 BETWEEN 0.88 AND 9.49

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col4 BETWEEN 0.88 AND 9.49
----

query I rowsort label-1365
SELECT pk FROM tab2 WHERE NOT (col4 BETWEEN 0.88 AND 9.49)
----

statement ok
DELETE FROM tab3 WHERE col4 BETWEEN 0.88 AND 9.49

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col4 BETWEEN 0.88 AND 9.49
----

query I rowsort label-1365
SELECT pk FROM tab3 WHERE NOT (col4 BETWEEN 0.88 AND 9.49)
----

statement ok
DELETE FROM tab4 WHERE col4 BETWEEN 0.88 AND 9.49

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col4 BETWEEN 0.88 AND 9.49
----

query I rowsort label-1365
SELECT pk FROM tab4 WHERE NOT (col4 BETWEEN 0.88 AND 9.49)
----

statement ok
DROP TABLE tab0

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,8,7.61,'ucphy',8,2.9,'ufaxk')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE UNIQUE INDEX idx_tab2_1 ON tab2 (col3 DESC)

statement ok
CREATE INDEX idx_tab2_2 ON tab2 (col0,col1 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab2_3 ON tab2 (col4 DESC)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

statement ok
CREATE INDEX idx_tab3_4 ON tab3 (col1 DESC)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE INDEX idx_tab4_0 ON tab4 (col0,col4 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab4_1 ON tab4 (col4)

statement ok
CREATE INDEX idx_tab4_2 ON tab4 (col3)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DROP TABLE tab0

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,6,9.60,'lhstx',7,3.9,'ekfdo')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE UNIQUE INDEX idx_tab2_0 ON tab2 (col1 DESC,col4 DESC)

statement ok
CREATE INDEX idx_tab2_2 ON tab2 (col3)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

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

statement ok
CREATE INDEX idx_tab3_1 ON tab3 (col3 DESC)

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

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE UNIQUE INDEX idx_tab4_0 ON tab4 (col3 DESC)

statement ok
CREATE INDEX idx_tab4_2 ON tab4 (col4 DESC)

statement ok
CREATE INDEX idx_tab4_5 ON tab4 (col0)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE col3 < 9 AND (col0 > 2) OR col3 IS NULL

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col3 < 9 AND (col0 > 2) OR col3 IS NULL
----

query I rowsort label-1380
SELECT pk FROM tab0 WHERE NOT (col3 < 9 AND (col0 > 2) OR col3 IS NULL)
----

statement ok
DELETE FROM tab1 WHERE col3 < 9 AND (col0 > 2) OR col3 IS NULL

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col3 < 9 AND (col0 > 2) OR col3 IS NULL
----

query I rowsort label-1380
SELECT pk FROM tab1 WHERE NOT (col3 < 9 AND (col0 > 2) OR col3 IS NULL)
----

statement ok
DELETE FROM tab2 WHERE col3 < 9 AND (col0 > 2) OR col3 IS NULL

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col3 < 9 AND (col0 > 2) OR col3 IS NULL
----

query I rowsort label-1380
SELECT pk FROM tab2 WHERE NOT (col3 < 9 AND (col0 > 2) OR col3 IS NULL)
----

statement ok
DELETE FROM tab3 WHERE col3 < 9 AND (col0 > 2) OR col3 IS NULL

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col3 < 9 AND (col0 > 2) OR col3 IS NULL
----

query I rowsort label-1380
SELECT pk FROM tab3 WHERE NOT (col3 < 9 AND (col0 > 2) OR col3 IS NULL)
----

statement ok
DELETE FROM tab4 WHERE col3 < 9 AND (col0 > 2) OR col3 IS NULL

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col3 < 9 AND (col0 > 2) OR col3 IS NULL
----

query I rowsort label-1380
SELECT pk FROM tab4 WHERE NOT (col3 < 9 AND (col0 > 2) OR col3 IS NULL)
----

statement ok
DROP TABLE tab0

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,6,0.92,'wpdnd',9,7.34,'uhfgw')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE INDEX idx_tab2_0 ON tab2 (col4,col3,col1 DESC)

statement ok
CREATE INDEX idx_tab2_2 ON tab2 (col1 DESC,col0 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab2_4 ON tab2 (col0 DESC,col4)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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 (col0)

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

statement ok
CREATE UNIQUE INDEX idx_tab3_3 ON tab3 (col1)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE INDEX idx_tab4_0 ON tab4 (col3,col0)

statement ok
CREATE UNIQUE INDEX idx_tab4_1 ON tab4 (col4 DESC)

statement ok
CREATE INDEX idx_tab4_4 ON tab4 (col0)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE col3 = 5 AND ((col0 <= 0))

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col3 = 5 AND ((col0 <= 0))
----

query I rowsort label-1395
SELECT pk FROM tab0 WHERE NOT (col3 = 5 AND ((col0 <= 0)))
----
0

statement ok
DELETE FROM tab1 WHERE col3 = 5 AND ((col0 <= 0))

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col3 = 5 AND ((col0 <= 0))
----

query I rowsort label-1395
SELECT pk FROM tab1 WHERE NOT (col3 = 5 AND ((col0 <= 0)))
----
0

statement ok
DELETE FROM tab2 WHERE col3 = 5 AND ((col0 <= 0))

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col3 = 5 AND ((col0 <= 0))
----

query I rowsort label-1395
SELECT pk FROM tab2 WHERE NOT (col3 = 5 AND ((col0 <= 0)))
----
0

statement ok
DELETE FROM tab3 WHERE col3 = 5 AND ((col0 <= 0))

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col3 = 5 AND ((col0 <= 0))
----

query I rowsort label-1395
SELECT pk FROM tab3 WHERE NOT (col3 = 5 AND ((col0 <= 0)))
----
0

statement ok
DELETE FROM tab4 WHERE col3 = 5 AND ((col0 <= 0))

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col3 = 5 AND ((col0 <= 0))
----

query I rowsort label-1395
SELECT pk FROM tab4 WHERE NOT (col3 = 5 AND ((col0 <= 0)))
----
0

statement ok
DELETE FROM tab0 WHERE col0 <= 2

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col0 <= 2
----

query I rowsort label-1410
SELECT pk FROM tab0 WHERE NOT (col0 <= 2)
----
0

statement ok
DELETE FROM tab1 WHERE col0 <= 2

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col0 <= 2
----

query I rowsort label-1410
SELECT pk FROM tab1 WHERE NOT (col0 <= 2)
----
0

statement ok
DELETE FROM tab2 WHERE col0 <= 2

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col0 <= 2
----

query I rowsort label-1410
SELECT pk FROM tab2 WHERE NOT (col0 <= 2)
----
0

statement ok
DELETE FROM tab3 WHERE col0 <= 2

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col0 <= 2
----

query I rowsort label-1410
SELECT pk FROM tab3 WHERE NOT (col0 <= 2)
----
0

statement ok
DELETE FROM tab4 WHERE col0 <= 2

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col0 <= 2
----

query I rowsort label-1410
SELECT pk FROM tab4 WHERE NOT (col0 <= 2)
----
0

statement ok
DELETE FROM tab0 WHERE (col3 > 6 OR (col0 < 8))

query I rowsort label-empty
SELECT pk FROM tab0 WHERE (col3 > 6 OR (col0 < 8))
----

query I rowsort label-1425
SELECT pk FROM tab0 WHERE NOT ((col3 > 6 OR (col0 < 8)))
----

statement ok
DELETE FROM tab1 WHERE (col3 > 6 OR (col0 < 8))

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (col3 > 6 OR (col0 < 8))
----

query I rowsort label-1425
SELECT pk FROM tab1 WHERE NOT ((col3 > 6 OR (col0 < 8)))
----

statement ok
DELETE FROM tab2 WHERE (col3 > 6 OR (col0 < 8))

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (col3 > 6 OR (col0 < 8))
----

query I rowsort label-1425
SELECT pk FROM tab2 WHERE NOT ((col3 > 6 OR (col0 < 8)))
----

statement ok
DELETE FROM tab3 WHERE (col3 > 6 OR (col0 < 8))

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (col3 > 6 OR (col0 < 8))
----

query I rowsort label-1425
SELECT pk FROM tab3 WHERE NOT ((col3 > 6 OR (col0 < 8)))
----

statement ok
DELETE FROM tab4 WHERE (col3 > 6 OR (col0 < 8))

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (col3 > 6 OR (col0 < 8))
----

query I rowsort label-1425
SELECT pk FROM tab4 WHERE NOT ((col3 > 6 OR (col0 < 8)))
----

statement ok
DROP TABLE tab0

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,4,1.98,'kvfpt',6,2.86,'kmrjx')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE UNIQUE INDEX idx_tab2_1 ON tab2 (col4,col0 DESC,col3 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab2_2 ON tab2 (col0)

statement ok
CREATE UNIQUE INDEX idx_tab2_3 ON tab2 (col1 DESC)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

statement ok
CREATE UNIQUE INDEX idx_tab3_0 ON tab3 (col1,col0)

statement ok
CREATE UNIQUE INDEX idx_tab3_1 ON tab3 (col0 DESC)

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

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE UNIQUE INDEX idx_tab4_0 ON tab4 (col3 DESC,col0 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab4_1 ON tab4 (col0 DESC)

statement ok
CREATE INDEX idx_tab4_2 ON tab4 (col3,col1 DESC)

statement ok
CREATE INDEX idx_tab4_5 ON tab4 (col1,col4 DESC)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE col3 BETWEEN 1 AND 0 AND col4 > 3.68

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col3 BETWEEN 1 AND 0 AND col4 > 3.68
----

query I rowsort label-1440
SELECT pk FROM tab0 WHERE NOT (col3 BETWEEN 1 AND 0 AND col4 > 3.68)
----
0

statement ok
DELETE FROM tab1 WHERE col3 BETWEEN 1 AND 0 AND col4 > 3.68

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col3 BETWEEN 1 AND 0 AND col4 > 3.68
----

query I rowsort label-1440
SELECT pk FROM tab1 WHERE NOT (col3 BETWEEN 1 AND 0 AND col4 > 3.68)
----
0

statement ok
DELETE FROM tab2 WHERE col3 BETWEEN 1 AND 0 AND col4 > 3.68

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col3 BETWEEN 1 AND 0 AND col4 > 3.68
----

query I rowsort label-1440
SELECT pk FROM tab2 WHERE NOT (col3 BETWEEN 1 AND 0 AND col4 > 3.68)
----
0

statement ok
DELETE FROM tab3 WHERE col3 BETWEEN 1 AND 0 AND col4 > 3.68

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col3 BETWEEN 1 AND 0 AND col4 > 3.68
----

query I rowsort label-1440
SELECT pk FROM tab3 WHERE NOT (col3 BETWEEN 1 AND 0 AND col4 > 3.68)
----
0

statement ok
DELETE FROM tab4 WHERE col3 BETWEEN 1 AND 0 AND col4 > 3.68

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col3 BETWEEN 1 AND 0 AND col4 > 3.68
----

query I rowsort label-1440
SELECT pk FROM tab4 WHERE NOT (col3 BETWEEN 1 AND 0 AND col4 > 3.68)
----
0

statement ok
DELETE FROM tab0 WHERE col0 <= 3

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col0 <= 3
----

query I rowsort label-1455
SELECT pk FROM tab0 WHERE NOT (col0 <= 3)
----
0

statement ok
DELETE FROM tab1 WHERE col0 <= 3

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col0 <= 3
----

query I rowsort label-1455
SELECT pk FROM tab1 WHERE NOT (col0 <= 3)
----
0

statement ok
DELETE FROM tab2 WHERE col0 <= 3

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col0 <= 3
----

query I rowsort label-1455
SELECT pk FROM tab2 WHERE NOT (col0 <= 3)
----
0

statement ok
DELETE FROM tab3 WHERE col0 <= 3

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col0 <= 3
----

query I rowsort label-1455
SELECT pk FROM tab3 WHERE NOT (col0 <= 3)
----
0

statement ok
DELETE FROM tab4 WHERE col0 <= 3

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col0 <= 3
----

query I rowsort label-1455
SELECT pk FROM tab4 WHERE NOT (col0 <= 3)
----
0

statement ok
DELETE FROM tab0 WHERE ((col0 < 4 OR (col3 >= 6) AND ((col3 >= 2 OR col4 <= 8.4))))

query I rowsort label-empty
SELECT pk FROM tab0 WHERE ((col0 < 4 OR (col3 >= 6) AND ((col3 >= 2 OR col4 <= 8.4))))
----

query I rowsort label-1470
SELECT pk FROM tab0 WHERE NOT (((col0 < 4 OR (col3 >= 6) AND ((col3 >= 2 OR col4 <= 8.4)))))
----

statement ok
DELETE FROM tab1 WHERE ((col0 < 4 OR (col3 >= 6) AND ((col3 >= 2 OR col4 <= 8.4))))

query I rowsort label-empty
SELECT pk FROM tab1 WHERE ((col0 < 4 OR (col3 >= 6) AND ((col3 >= 2 OR col4 <= 8.4))))
----

query I rowsort label-1470
SELECT pk FROM tab1 WHERE NOT (((col0 < 4 OR (col3 >= 6) AND ((col3 >= 2 OR col4 <= 8.4)))))
----

statement ok
DELETE FROM tab2 WHERE ((col0 < 4 OR (col3 >= 6) AND ((col3 >= 2 OR col4 <= 8.4))))

query I rowsort label-empty
SELECT pk FROM tab2 WHERE ((col0 < 4 OR (col3 >= 6) AND ((col3 >= 2 OR col4 <= 8.4))))
----

query I rowsort label-1470
SELECT pk FROM tab2 WHERE NOT (((col0 < 4 OR (col3 >= 6) AND ((col3 >= 2 OR col4 <= 8.4)))))
----

statement ok
DELETE FROM tab3 WHERE ((col0 < 4 OR (col3 >= 6) AND ((col3 >= 2 OR col4 <= 8.4))))

query I rowsort label-empty
SELECT pk FROM tab3 WHERE ((col0 < 4 OR (col3 >= 6) AND ((col3 >= 2 OR col4 <= 8.4))))
----

query I rowsort label-1470
SELECT pk FROM tab3 WHERE NOT (((col0 < 4 OR (col3 >= 6) AND ((col3 >= 2 OR col4 <= 8.4)))))
----

statement ok
DELETE FROM tab4 WHERE ((col0 < 4 OR (col3 >= 6) AND ((col3 >= 2 OR col4 <= 8.4))))

query I rowsort label-empty
SELECT pk FROM tab4 WHERE ((col0 < 4 OR (col3 >= 6) AND ((col3 >= 2 OR col4 <= 8.4))))
----

query I rowsort label-1470
SELECT pk FROM tab4 WHERE NOT (((col0 < 4 OR (col3 >= 6) AND ((col3 >= 2 OR col4 <= 8.4)))))
----

statement ok
DROP TABLE tab0

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,6,8.19,'ygaup',0,0.26,'xsbba')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE UNIQUE INDEX idx_tab2_0 ON tab2 (col4 DESC)

statement ok
CREATE INDEX idx_tab2_2 ON tab2 (col1)

statement ok
CREATE UNIQUE INDEX idx_tab2_3 ON tab2 (col3)

statement ok
CREATE INDEX idx_tab2_5 ON tab2 (col0 DESC)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

statement ok
CREATE INDEX idx_tab3_0 ON tab3 (col0 DESC)

statement ok
CREATE INDEX idx_tab3_1 ON tab3 (col4 DESC)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

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

statement ok
CREATE UNIQUE INDEX idx_tab4_2 ON tab4 (col0)

statement ok
CREATE UNIQUE INDEX idx_tab4_3 ON tab4 (col3 DESC,col1 DESC)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE (col0 <= 3)

query I rowsort label-empty
SELECT pk FROM tab0 WHERE (col0 <= 3)
----

query I rowsort label-1485
SELECT pk FROM tab0 WHERE NOT ((col0 <= 3))
----
0

statement ok
DELETE FROM tab1 WHERE (col0 <= 3)

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (col0 <= 3)
----

query I rowsort label-1485
SELECT pk FROM tab1 WHERE NOT ((col0 <= 3))
----
0

statement ok
DELETE FROM tab2 WHERE (col0 <= 3)

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (col0 <= 3)
----

query I rowsort label-1485
SELECT pk FROM tab2 WHERE NOT ((col0 <= 3))
----
0

statement ok
DELETE FROM tab3 WHERE (col0 <= 3)

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (col0 <= 3)
----

query I rowsort label-1485
SELECT pk FROM tab3 WHERE NOT ((col0 <= 3))
----
0

statement ok
DELETE FROM tab4 WHERE (col0 <= 3)

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (col0 <= 3)
----

query I rowsort label-1485
SELECT pk FROM tab4 WHERE NOT ((col0 <= 3))
----
0

statement ok
DELETE FROM tab0 WHERE col0 = 3

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col0 = 3
----

query I rowsort label-1500
SELECT pk FROM tab0 WHERE NOT (col0 = 3)
----
0

statement ok
DELETE FROM tab1 WHERE col0 = 3

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col0 = 3
----

query I rowsort label-1500
SELECT pk FROM tab1 WHERE NOT (col0 = 3)
----
0

statement ok
DELETE FROM tab2 WHERE col0 = 3

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col0 = 3
----

query I rowsort label-1500
SELECT pk FROM tab2 WHERE NOT (col0 = 3)
----
0

statement ok
DELETE FROM tab3 WHERE col0 = 3

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col0 = 3
----

query I rowsort label-1500
SELECT pk FROM tab3 WHERE NOT (col0 = 3)
----
0

statement ok
DELETE FROM tab4 WHERE col0 = 3

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col0 = 3
----

query I rowsort label-1500
SELECT pk FROM tab4 WHERE NOT (col0 = 3)
----
0

statement ok
DELETE FROM tab0 WHERE col1 < 8.28 AND col0 > 9

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col1 < 8.28 AND col0 > 9
----

query I rowsort label-1515
SELECT pk FROM tab0 WHERE NOT (col1 < 8.28 AND col0 > 9)
----
0

statement ok
DELETE FROM tab1 WHERE col1 < 8.28 AND col0 > 9

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col1 < 8.28 AND col0 > 9
----

query I rowsort label-1515
SELECT pk FROM tab1 WHERE NOT (col1 < 8.28 AND col0 > 9)
----
0

statement ok
DELETE FROM tab2 WHERE col1 < 8.28 AND col0 > 9

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col1 < 8.28 AND col0 > 9
----

query I rowsort label-1515
SELECT pk FROM tab2 WHERE NOT (col1 < 8.28 AND col0 > 9)
----
0

statement ok
DELETE FROM tab3 WHERE col1 < 8.28 AND col0 > 9

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col1 < 8.28 AND col0 > 9
----

query I rowsort label-1515
SELECT pk FROM tab3 WHERE NOT (col1 < 8.28 AND col0 > 9)
----
0

statement ok
DELETE FROM tab4 WHERE col1 < 8.28 AND col0 > 9

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col1 < 8.28 AND col0 > 9
----

query I rowsort label-1515
SELECT pk FROM tab4 WHERE NOT (col1 < 8.28 AND col0 > 9)
----
0

statement ok
DELETE FROM tab0 WHERE col1 < 1.3 OR col1 = 8.35 AND col4 < 4.78

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col1 < 1.3 OR col1 = 8.35 AND col4 < 4.78
----

query I rowsort label-1530
SELECT pk FROM tab0 WHERE NOT (col1 < 1.3 OR col1 = 8.35 AND col4 < 4.78)
----
0

statement ok
DELETE FROM tab1 WHERE col1 < 1.3 OR col1 = 8.35 AND col4 < 4.78

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col1 < 1.3 OR col1 = 8.35 AND col4 < 4.78
----

query I rowsort label-1530
SELECT pk FROM tab1 WHERE NOT (col1 < 1.3 OR col1 = 8.35 AND col4 < 4.78)
----
0

statement ok
DELETE FROM tab2 WHERE col1 < 1.3 OR col1 = 8.35 AND col4 < 4.78

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col1 < 1.3 OR col1 = 8.35 AND col4 < 4.78
----

query I rowsort label-1530
SELECT pk FROM tab2 WHERE NOT (col1 < 1.3 OR col1 = 8.35 AND col4 < 4.78)
----
0

statement ok
DELETE FROM tab3 WHERE col1 < 1.3 OR col1 = 8.35 AND col4 < 4.78

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col1 < 1.3 OR col1 = 8.35 AND col4 < 4.78
----

query I rowsort label-1530
SELECT pk FROM tab3 WHERE NOT (col1 < 1.3 OR col1 = 8.35 AND col4 < 4.78)
----
0

statement ok
DELETE FROM tab4 WHERE col1 < 1.3 OR col1 = 8.35 AND col4 < 4.78

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col1 < 1.3 OR col1 = 8.35 AND col4 < 4.78
----

query I rowsort label-1530
SELECT pk FROM tab4 WHERE NOT (col1 < 1.3 OR col1 = 8.35 AND col4 < 4.78)
----
0

statement ok
DELETE FROM tab0 WHERE (col1 >= 4.29) AND (col0 < 3)

query I rowsort label-empty
SELECT pk FROM tab0 WHERE (col1 >= 4.29) AND (col0 < 3)
----

query I rowsort label-1545
SELECT pk FROM tab0 WHERE NOT ((col1 >= 4.29) AND (col0 < 3))
----
0

statement ok
DELETE FROM tab1 WHERE (col1 >= 4.29) AND (col0 < 3)

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (col1 >= 4.29) AND (col0 < 3)
----

query I rowsort label-1545
SELECT pk FROM tab1 WHERE NOT ((col1 >= 4.29) AND (col0 < 3))
----
0

statement ok
DELETE FROM tab2 WHERE (col1 >= 4.29) AND (col0 < 3)

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (col1 >= 4.29) AND (col0 < 3)
----

query I rowsort label-1545
SELECT pk FROM tab2 WHERE NOT ((col1 >= 4.29) AND (col0 < 3))
----
0

statement ok
DELETE FROM tab3 WHERE (col1 >= 4.29) AND (col0 < 3)

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (col1 >= 4.29) AND (col0 < 3)
----

query I rowsort label-1545
SELECT pk FROM tab3 WHERE NOT ((col1 >= 4.29) AND (col0 < 3))
----
0

statement ok
DELETE FROM tab4 WHERE (col1 >= 4.29) AND (col0 < 3)

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (col1 >= 4.29) AND (col0 < 3)
----

query I rowsort label-1545
SELECT pk FROM tab4 WHERE NOT ((col1 >= 4.29) AND (col0 < 3))
----
0

statement ok
DELETE FROM tab0 WHERE col0 < 5

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col0 < 5
----

query I rowsort label-1560
SELECT pk FROM tab0 WHERE NOT (col0 < 5)
----
0

statement ok
DELETE FROM tab1 WHERE col0 < 5

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col0 < 5
----

query I rowsort label-1560
SELECT pk FROM tab1 WHERE NOT (col0 < 5)
----
0

statement ok
DELETE FROM tab2 WHERE col0 < 5

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col0 < 5
----

query I rowsort label-1560
SELECT pk FROM tab2 WHERE NOT (col0 < 5)
----
0

statement ok
DELETE FROM tab3 WHERE col0 < 5

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col0 < 5
----

query I rowsort label-1560
SELECT pk FROM tab3 WHERE NOT (col0 < 5)
----
0

statement ok
DELETE FROM tab4 WHERE col0 < 5

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col0 < 5
----

query I rowsort label-1560
SELECT pk FROM tab4 WHERE NOT (col0 < 5)
----
0

statement ok
DELETE FROM tab0 WHERE col1 >= 7.23

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col1 >= 7.23
----

query I rowsort label-1575
SELECT pk FROM tab0 WHERE NOT (col1 >= 7.23)
----

statement ok
DELETE FROM tab1 WHERE col1 >= 7.23

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col1 >= 7.23
----

query I rowsort label-1575
SELECT pk FROM tab1 WHERE NOT (col1 >= 7.23)
----

statement ok
DELETE FROM tab2 WHERE col1 >= 7.23

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col1 >= 7.23
----

query I rowsort label-1575
SELECT pk FROM tab2 WHERE NOT (col1 >= 7.23)
----

statement ok
DELETE FROM tab3 WHERE col1 >= 7.23

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col1 >= 7.23
----

query I rowsort label-1575
SELECT pk FROM tab3 WHERE NOT (col1 >= 7.23)
----

statement ok
DELETE FROM tab4 WHERE col1 >= 7.23

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col1 >= 7.23
----

query I rowsort label-1575
SELECT pk FROM tab4 WHERE NOT (col1 >= 7.23)
----

statement ok
DROP TABLE tab0

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,1,5.55,'goeoi',0,2.43,'jxdnw')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE UNIQUE INDEX idx_tab2_0 ON tab2 (col0,col4 DESC)

statement ok
CREATE INDEX idx_tab2_1 ON tab2 (col3,col0 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab2_2 ON tab2 (col4)

statement ok
CREATE INDEX idx_tab2_3 ON tab2 (col0 DESC,col3)

statement ok
CREATE INDEX idx_tab2_4 ON tab2 (col1,col0)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

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

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

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE INDEX idx_tab4_0 ON tab4 (col1 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab4_1 ON tab4 (col3 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab4_4 ON tab4 (col0)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE (col3 IN (2,3,4))

query I rowsort label-empty
SELECT pk FROM tab0 WHERE (col3 IN (2,3,4))
----

query I rowsort label-1590
SELECT pk FROM tab0 WHERE NOT ((col3 IN (2,3,4)))
----
0

statement ok
DELETE FROM tab1 WHERE (col3 IN (2,3,4))

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (col3 IN (2,3,4))
----

query I rowsort label-1590
SELECT pk FROM tab1 WHERE NOT ((col3 IN (2,3,4)))
----
0

statement ok
DELETE FROM tab2 WHERE (col3 IN (2,3,4))

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (col3 IN (2,3,4))
----

query I rowsort label-1590
SELECT pk FROM tab2 WHERE NOT ((col3 IN (2,3,4)))
----
0

statement ok
DELETE FROM tab3 WHERE (col3 IN (2,3,4))

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (col3 IN (2,3,4))
----

query I rowsort label-1590
SELECT pk FROM tab3 WHERE NOT ((col3 IN (2,3,4)))
----
0

statement ok
DELETE FROM tab4 WHERE (col3 IN (2,3,4))

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (col3 IN (2,3,4))
----

query I rowsort label-1590
SELECT pk FROM tab4 WHERE NOT ((col3 IN (2,3,4)))
----
0

statement ok
DELETE FROM tab0 WHERE col1 < 7.89

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col1 < 7.89
----

query I rowsort label-1605
SELECT pk FROM tab0 WHERE NOT (col1 < 7.89)
----

statement ok
DELETE FROM tab1 WHERE col1 < 7.89

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col1 < 7.89
----

query I rowsort label-1605
SELECT pk FROM tab1 WHERE NOT (col1 < 7.89)
----

statement ok
DELETE FROM tab2 WHERE col1 < 7.89

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col1 < 7.89
----

query I rowsort label-1605
SELECT pk FROM tab2 WHERE NOT (col1 < 7.89)
----

statement ok
DELETE FROM tab3 WHERE col1 < 7.89

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col1 < 7.89
----

query I rowsort label-1605
SELECT pk FROM tab3 WHERE NOT (col1 < 7.89)
----

statement ok
DELETE FROM tab4 WHERE col1 < 7.89

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col1 < 7.89
----

query I rowsort label-1605
SELECT pk FROM tab4 WHERE NOT (col1 < 7.89)
----

statement ok
DROP TABLE tab0

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,5,6.62,'hhruj',8,7.58,'ukmbu')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE UNIQUE INDEX idx_tab2_0 ON tab2 (col1,col4)

statement ok
CREATE UNIQUE INDEX idx_tab2_1 ON tab2 (col3 DESC)

statement ok
CREATE INDEX idx_tab2_2 ON tab2 (col0 DESC)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

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

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

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

statement ok
CREATE UNIQUE INDEX idx_tab4_1 ON tab4 (col0,col4)

statement ok
CREATE INDEX idx_tab4_2 ON tab4 (col4)

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

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE col0 > 6

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col0 > 6
----

query I rowsort label-1620
SELECT pk FROM tab0 WHERE NOT (col0 > 6)
----
0

statement ok
DELETE FROM tab1 WHERE col0 > 6

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col0 > 6
----

query I rowsort label-1620
SELECT pk FROM tab1 WHERE NOT (col0 > 6)
----
0

statement ok
DELETE FROM tab2 WHERE col0 > 6

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col0 > 6
----

query I rowsort label-1620
SELECT pk FROM tab2 WHERE NOT (col0 > 6)
----
0

statement ok
DELETE FROM tab3 WHERE col0 > 6

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col0 > 6
----

query I rowsort label-1620
SELECT pk FROM tab3 WHERE NOT (col0 > 6)
----
0

statement ok
DELETE FROM tab4 WHERE col0 > 6

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col0 > 6
----

query I rowsort label-1620
SELECT pk FROM tab4 WHERE NOT (col0 > 6)
----
0

statement ok
DELETE FROM tab0 WHERE (col0 >= 9)

query I rowsort label-empty
SELECT pk FROM tab0 WHERE (col0 >= 9)
----

query I rowsort label-1635
SELECT pk FROM tab0 WHERE NOT ((col0 >= 9))
----
0

statement ok
DELETE FROM tab1 WHERE (col0 >= 9)

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (col0 >= 9)
----

query I rowsort label-1635
SELECT pk FROM tab1 WHERE NOT ((col0 >= 9))
----
0

statement ok
DELETE FROM tab2 WHERE (col0 >= 9)

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (col0 >= 9)
----

query I rowsort label-1635
SELECT pk FROM tab2 WHERE NOT ((col0 >= 9))
----
0

statement ok
DELETE FROM tab3 WHERE (col0 >= 9)

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (col0 >= 9)
----

query I rowsort label-1635
SELECT pk FROM tab3 WHERE NOT ((col0 >= 9))
----
0

statement ok
DELETE FROM tab4 WHERE (col0 >= 9)

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (col0 >= 9)
----

query I rowsort label-1635
SELECT pk FROM tab4 WHERE NOT ((col0 >= 9))
----
0

statement ok
DELETE FROM tab0 WHERE col4 IN (1.71,6.68,6.68)

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col4 IN (1.71,6.68,6.68)
----

query I rowsort label-1650
SELECT pk FROM tab0 WHERE NOT (col4 IN (1.71,6.68,6.68))
----
0

statement ok
DELETE FROM tab1 WHERE col4 IN (1.71,6.68,6.68)

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col4 IN (1.71,6.68,6.68)
----

query I rowsort label-1650
SELECT pk FROM tab1 WHERE NOT (col4 IN (1.71,6.68,6.68))
----
0

statement ok
DELETE FROM tab2 WHERE col4 IN (1.71,6.68,6.68)

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col4 IN (1.71,6.68,6.68)
----

query I rowsort label-1650
SELECT pk FROM tab2 WHERE NOT (col4 IN (1.71,6.68,6.68))
----
0

statement ok
DELETE FROM tab3 WHERE col4 IN (1.71,6.68,6.68)

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col4 IN (1.71,6.68,6.68)
----

query I rowsort label-1650
SELECT pk FROM tab3 WHERE NOT (col4 IN (1.71,6.68,6.68))
----
0

statement ok
DELETE FROM tab4 WHERE col4 IN (1.71,6.68,6.68)

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col4 IN (1.71,6.68,6.68)
----

query I rowsort label-1650
SELECT pk FROM tab4 WHERE NOT (col4 IN (1.71,6.68,6.68))
----
0

statement ok
DELETE FROM tab0 WHERE ((col3 IN (3)))

query I rowsort label-empty
SELECT pk FROM tab0 WHERE ((col3 IN (3)))
----

query I rowsort label-1665
SELECT pk FROM tab0 WHERE NOT (((col3 IN (3))))
----
0

statement ok
DELETE FROM tab1 WHERE ((col3 IN (3)))

query I rowsort label-empty
SELECT pk FROM tab1 WHERE ((col3 IN (3)))
----

query I rowsort label-1665
SELECT pk FROM tab1 WHERE NOT (((col3 IN (3))))
----
0

statement ok
DELETE FROM tab2 WHERE ((col3 IN (3)))

query I rowsort label-empty
SELECT pk FROM tab2 WHERE ((col3 IN (3)))
----

query I rowsort label-1665
SELECT pk FROM tab2 WHERE NOT (((col3 IN (3))))
----
0

statement ok
DELETE FROM tab3 WHERE ((col3 IN (3)))

query I rowsort label-empty
SELECT pk FROM tab3 WHERE ((col3 IN (3)))
----

query I rowsort label-1665
SELECT pk FROM tab3 WHERE NOT (((col3 IN (3))))
----
0

statement ok
DELETE FROM tab4 WHERE ((col3 IN (3)))

query I rowsort label-empty
SELECT pk FROM tab4 WHERE ((col3 IN (3)))
----

query I rowsort label-1665
SELECT pk FROM tab4 WHERE NOT (((col3 IN (3))))
----
0

statement ok
DELETE FROM tab0 WHERE col3 <= 9

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col3 <= 9
----

query I rowsort label-1680
SELECT pk FROM tab0 WHERE NOT (col3 <= 9)
----

statement ok
DELETE FROM tab1 WHERE col3 <= 9

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col3 <= 9
----

query I rowsort label-1680
SELECT pk FROM tab1 WHERE NOT (col3 <= 9)
----

statement ok
DELETE FROM tab2 WHERE col3 <= 9

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col3 <= 9
----

query I rowsort label-1680
SELECT pk FROM tab2 WHERE NOT (col3 <= 9)
----

statement ok
DELETE FROM tab3 WHERE col3 <= 9

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col3 <= 9
----

query I rowsort label-1680
SELECT pk FROM tab3 WHERE NOT (col3 <= 9)
----

statement ok
DELETE FROM tab4 WHERE col3 <= 9

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col3 <= 9
----

query I rowsort label-1680
SELECT pk FROM tab4 WHERE NOT (col3 <= 9)
----

statement ok
DROP TABLE tab0

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,2,9.69,'dngbd',7,8.74,'izofe')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE UNIQUE INDEX idx_tab2_0 ON tab2 (col1 DESC)

statement ok
CREATE INDEX idx_tab2_4 ON tab2 (col4,col0 DESC)

statement ok
CREATE INDEX idx_tab2_5 ON tab2 (col0)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

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

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

statement ok
CREATE INDEX idx_tab3_2 ON tab3 (col4 DESC)

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

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

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE UNIQUE INDEX idx_tab4_0 ON tab4 (col3)

statement ok
CREATE INDEX idx_tab4_1 ON tab4 (col4,col0)

statement ok
CREATE UNIQUE INDEX idx_tab4_3 ON tab4 (col0,col4)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE col4 > 0.94

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col4 > 0.94
----

query I rowsort label-1695
SELECT pk FROM tab0 WHERE NOT (col4 > 0.94)
----

statement ok
DELETE FROM tab1 WHERE col4 > 0.94

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col4 > 0.94
----

query I rowsort label-1695
SELECT pk FROM tab1 WHERE NOT (col4 > 0.94)
----

statement ok
DELETE FROM tab2 WHERE col4 > 0.94

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col4 > 0.94
----

query I rowsort label-1695
SELECT pk FROM tab2 WHERE NOT (col4 > 0.94)
----

statement ok
DELETE FROM tab3 WHERE col4 > 0.94

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col4 > 0.94
----

query I rowsort label-1695
SELECT pk FROM tab3 WHERE NOT (col4 > 0.94)
----

statement ok
DELETE FROM tab4 WHERE col4 > 0.94

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col4 > 0.94
----

query I rowsort label-1695
SELECT pk FROM tab4 WHERE NOT (col4 > 0.94)
----

statement ok
DROP TABLE tab0

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,2,1.31,'dkvue',9,3.96,'aubun')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE UNIQUE INDEX idx_tab2_0 ON tab2 (col1 DESC)

statement ok
CREATE INDEX idx_tab2_1 ON tab2 (col0 DESC,col4)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

statement ok
CREATE INDEX idx_tab3_0 ON tab3 (col4)

statement ok
CREATE UNIQUE INDEX idx_tab3_1 ON tab3 (col3)

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

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE UNIQUE INDEX idx_tab4_0 ON tab4 (col4 DESC)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE ((col3 > 5 AND col0 > 2))

query I rowsort label-empty
SELECT pk FROM tab0 WHERE ((col3 > 5 AND col0 > 2))
----

query I rowsort label-1710
SELECT pk FROM tab0 WHERE NOT (((col3 > 5 AND col0 > 2)))
----
0

statement ok
DELETE FROM tab1 WHERE ((col3 > 5 AND col0 > 2))

query I rowsort label-empty
SELECT pk FROM tab1 WHERE ((col3 > 5 AND col0 > 2))
----

query I rowsort label-1710
SELECT pk FROM tab1 WHERE NOT (((col3 > 5 AND col0 > 2)))
----
0

statement ok
DELETE FROM tab2 WHERE ((col3 > 5 AND col0 > 2))

query I rowsort label-empty
SELECT pk FROM tab2 WHERE ((col3 > 5 AND col0 > 2))
----

query I rowsort label-1710
SELECT pk FROM tab2 WHERE NOT (((col3 > 5 AND col0 > 2)))
----
0

statement ok
DELETE FROM tab3 WHERE ((col3 > 5 AND col0 > 2))

query I rowsort label-empty
SELECT pk FROM tab3 WHERE ((col3 > 5 AND col0 > 2))
----

query I rowsort label-1710
SELECT pk FROM tab3 WHERE NOT (((col3 > 5 AND col0 > 2)))
----
0

statement ok
DELETE FROM tab4 WHERE ((col3 > 5 AND col0 > 2))

query I rowsort label-empty
SELECT pk FROM tab4 WHERE ((col3 > 5 AND col0 > 2))
----

query I rowsort label-1710
SELECT pk FROM tab4 WHERE NOT (((col3 > 5 AND col0 > 2)))
----
0

statement ok
DELETE FROM tab0 WHERE col1 = 4.63 AND col0 >= 4 OR col1 <= 8.84

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col1 = 4.63 AND col0 >= 4 OR col1 <= 8.84
----

query I rowsort label-1725
SELECT pk FROM tab0 WHERE NOT (col1 = 4.63 AND col0 >= 4 OR col1 <= 8.84)
----

statement ok
DELETE FROM tab1 WHERE col1 = 4.63 AND col0 >= 4 OR col1 <= 8.84

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col1 = 4.63 AND col0 >= 4 OR col1 <= 8.84
----

query I rowsort label-1725
SELECT pk FROM tab1 WHERE NOT (col1 = 4.63 AND col0 >= 4 OR col1 <= 8.84)
----

statement ok
DELETE FROM tab2 WHERE col1 = 4.63 AND col0 >= 4 OR col1 <= 8.84

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col1 = 4.63 AND col0 >= 4 OR col1 <= 8.84
----

query I rowsort label-1725
SELECT pk FROM tab2 WHERE NOT (col1 = 4.63 AND col0 >= 4 OR col1 <= 8.84)
----

statement ok
DELETE FROM tab3 WHERE col1 = 4.63 AND col0 >= 4 OR col1 <= 8.84

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col1 = 4.63 AND col0 >= 4 OR col1 <= 8.84
----

query I rowsort label-1725
SELECT pk FROM tab3 WHERE NOT (col1 = 4.63 AND col0 >= 4 OR col1 <= 8.84)
----

statement ok
DELETE FROM tab4 WHERE col1 = 4.63 AND col0 >= 4 OR col1 <= 8.84

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col1 = 4.63 AND col0 >= 4 OR col1 <= 8.84
----

query I rowsort label-1725
SELECT pk FROM tab4 WHERE NOT (col1 = 4.63 AND col0 >= 4 OR col1 <= 8.84)
----

statement ok
DROP TABLE tab0

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,9,9.90,'crqua',5,6.83,'jxwql')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE UNIQUE INDEX idx_tab2_0 ON tab2 (col4 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab2_2 ON tab2 (col0 DESC)

statement ok
CREATE INDEX idx_tab2_4 ON tab2 (col1)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

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

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE INDEX idx_tab4_0 ON tab4 (col1)

statement ok
CREATE UNIQUE INDEX idx_tab4_1 ON tab4 (col4,col0)

statement ok
CREATE INDEX idx_tab4_2 ON tab4 (col0)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE col3 BETWEEN 5 AND 9

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col3 BETWEEN 5 AND 9
----

query I rowsort label-1740
SELECT pk FROM tab0 WHERE NOT (col3 BETWEEN 5 AND 9)
----

statement ok
DELETE FROM tab1 WHERE col3 BETWEEN 5 AND 9

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col3 BETWEEN 5 AND 9
----

query I rowsort label-1740
SELECT pk FROM tab1 WHERE NOT (col3 BETWEEN 5 AND 9)
----

statement ok
DELETE FROM tab2 WHERE col3 BETWEEN 5 AND 9

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col3 BETWEEN 5 AND 9
----

query I rowsort label-1740
SELECT pk FROM tab2 WHERE NOT (col3 BETWEEN 5 AND 9)
----

statement ok
DELETE FROM tab3 WHERE col3 BETWEEN 5 AND 9

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col3 BETWEEN 5 AND 9
----

query I rowsort label-1740
SELECT pk FROM tab3 WHERE NOT (col3 BETWEEN 5 AND 9)
----

statement ok
DELETE FROM tab4 WHERE col3 BETWEEN 5 AND 9

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col3 BETWEEN 5 AND 9
----

query I rowsort label-1740
SELECT pk FROM tab4 WHERE NOT (col3 BETWEEN 5 AND 9)
----

statement ok
DROP TABLE tab0

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,8,4.86,'chfxj',2,3.94,'oipmq')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE UNIQUE INDEX idx_tab2_0 ON tab2 (col3)

statement ok
CREATE UNIQUE INDEX idx_tab2_2 ON tab2 (col1)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

statement ok
CREATE INDEX idx_tab3_0 ON tab3 (col1)

statement ok
CREATE INDEX idx_tab3_1 ON tab3 (col0,col3)

statement ok
CREATE INDEX idx_tab3_3 ON tab3 (col4 DESC)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

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

statement ok
CREATE INDEX idx_tab4_2 ON tab4 (col1 DESC,col4 DESC,col3)

statement ok
CREATE UNIQUE INDEX idx_tab4_3 ON tab4 (col0,col4 DESC)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE ((col3 >= 9) AND col4 > 3.28 OR col0 > 4 OR (col1 IS NULL))

query I rowsort label-empty
SELECT pk FROM tab0 WHERE ((col3 >= 9) AND col4 > 3.28 OR col0 > 4 OR (col1 IS NULL))
----

query I rowsort label-1755
SELECT pk FROM tab0 WHERE NOT (((col3 >= 9) AND col4 > 3.28 OR col0 > 4 OR (col1 IS NULL)))
----

statement ok
DELETE FROM tab1 WHERE ((col3 >= 9) AND col4 > 3.28 OR col0 > 4 OR (col1 IS NULL))

query I rowsort label-empty
SELECT pk FROM tab1 WHERE ((col3 >= 9) AND col4 > 3.28 OR col0 > 4 OR (col1 IS NULL))
----

query I rowsort label-1755
SELECT pk FROM tab1 WHERE NOT (((col3 >= 9) AND col4 > 3.28 OR col0 > 4 OR (col1 IS NULL)))
----

statement ok
DELETE FROM tab2 WHERE ((col3 >= 9) AND col4 > 3.28 OR col0 > 4 OR (col1 IS NULL))

query I rowsort label-empty
SELECT pk FROM tab2 WHERE ((col3 >= 9) AND col4 > 3.28 OR col0 > 4 OR (col1 IS NULL))
----

query I rowsort label-1755
SELECT pk FROM tab2 WHERE NOT (((col3 >= 9) AND col4 > 3.28 OR col0 > 4 OR (col1 IS NULL)))
----

statement ok
DELETE FROM tab3 WHERE ((col3 >= 9) AND col4 > 3.28 OR col0 > 4 OR (col1 IS NULL))

query I rowsort label-empty
SELECT pk FROM tab3 WHERE ((col3 >= 9) AND col4 > 3.28 OR col0 > 4 OR (col1 IS NULL))
----

query I rowsort label-1755
SELECT pk FROM tab3 WHERE NOT (((col3 >= 9) AND col4 > 3.28 OR col0 > 4 OR (col1 IS NULL)))
----

statement ok
DELETE FROM tab4 WHERE ((col3 >= 9) AND col4 > 3.28 OR col0 > 4 OR (col1 IS NULL))

query I rowsort label-empty
SELECT pk FROM tab4 WHERE ((col3 >= 9) AND col4 > 3.28 OR col0 > 4 OR (col1 IS NULL))
----

query I rowsort label-1755
SELECT pk FROM tab4 WHERE NOT (((col3 >= 9) AND col4 > 3.28 OR col0 > 4 OR (col1 IS NULL)))
----

statement ok
DROP TABLE tab0

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,9,9.52,'gfeoa',9,8.30,'ehyfj')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE INDEX idx_tab2_0 ON tab2 (col3 DESC)

statement ok
CREATE INDEX idx_tab2_1 ON tab2 (col0 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab2_2 ON tab2 (col4 DESC,col1)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

statement ok
CREATE INDEX idx_tab3_1 ON tab3 (col3 DESC)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE INDEX idx_tab4_0 ON tab4 (col4 DESC,col1 DESC)

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

statement ok
CREATE UNIQUE INDEX idx_tab4_2 ON tab4 (col3 DESC)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE col0 > 0

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col0 > 0
----

query I rowsort label-1770
SELECT pk FROM tab0 WHERE NOT (col0 > 0)
----

statement ok
DELETE FROM tab1 WHERE col0 > 0

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col0 > 0
----

query I rowsort label-1770
SELECT pk FROM tab1 WHERE NOT (col0 > 0)
----

statement ok
DELETE FROM tab2 WHERE col0 > 0

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col0 > 0
----

query I rowsort label-1770
SELECT pk FROM tab2 WHERE NOT (col0 > 0)
----

statement ok
DELETE FROM tab3 WHERE col0 > 0

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col0 > 0
----

query I rowsort label-1770
SELECT pk FROM tab3 WHERE NOT (col0 > 0)
----

statement ok
DELETE FROM tab4 WHERE col0 > 0

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col0 > 0
----

query I rowsort label-1770
SELECT pk FROM tab4 WHERE NOT (col0 > 0)
----

statement ok
DROP TABLE tab0

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,2,4.19,'nkwhf',4,1.73,'xniuf')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE UNIQUE INDEX idx_tab2_0 ON tab2 (col0)

statement ok
CREATE INDEX idx_tab2_1 ON tab2 (col3 DESC)

statement ok
CREATE INDEX idx_tab2_2 ON tab2 (col4)

statement ok
CREATE INDEX idx_tab2_3 ON tab2 (col1)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

statement ok
CREATE INDEX idx_tab3_0 ON tab3 (col0)

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

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

statement ok
CREATE UNIQUE INDEX idx_tab3_5 ON tab3 (col3)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE INDEX idx_tab4_0 ON tab4 (col4 DESC,col0 DESC)

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

statement ok
CREATE INDEX idx_tab4_3 ON tab4 (col1 DESC)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE ((col0 > 9 OR col0 BETWEEN 3 AND 1))

query I rowsort label-empty
SELECT pk FROM tab0 WHERE ((col0 > 9 OR col0 BETWEEN 3 AND 1))
----

query I rowsort label-1785
SELECT pk FROM tab0 WHERE NOT (((col0 > 9 OR col0 BETWEEN 3 AND 1)))
----
0

statement ok
DELETE FROM tab1 WHERE ((col0 > 9 OR col0 BETWEEN 3 AND 1))

query I rowsort label-empty
SELECT pk FROM tab1 WHERE ((col0 > 9 OR col0 BETWEEN 3 AND 1))
----

query I rowsort label-1785
SELECT pk FROM tab1 WHERE NOT (((col0 > 9 OR col0 BETWEEN 3 AND 1)))
----
0

statement ok
DELETE FROM tab2 WHERE ((col0 > 9 OR col0 BETWEEN 3 AND 1))

query I rowsort label-empty
SELECT pk FROM tab2 WHERE ((col0 > 9 OR col0 BETWEEN 3 AND 1))
----

query I rowsort label-1785
SELECT pk FROM tab2 WHERE NOT (((col0 > 9 OR col0 BETWEEN 3 AND 1)))
----
0

statement ok
DELETE FROM tab3 WHERE ((col0 > 9 OR col0 BETWEEN 3 AND 1))

query I rowsort label-empty
SELECT pk FROM tab3 WHERE ((col0 > 9 OR col0 BETWEEN 3 AND 1))
----

query I rowsort label-1785
SELECT pk FROM tab3 WHERE NOT (((col0 > 9 OR col0 BETWEEN 3 AND 1)))
----
0

statement ok
DELETE FROM tab4 WHERE ((col0 > 9 OR col0 BETWEEN 3 AND 1))

query I rowsort label-empty
SELECT pk FROM tab4 WHERE ((col0 > 9 OR col0 BETWEEN 3 AND 1))
----

query I rowsort label-1785
SELECT pk FROM tab4 WHERE NOT (((col0 > 9 OR col0 BETWEEN 3 AND 1)))
----
0

statement ok
DELETE FROM tab0 WHERE ((col3 <= 6))

query I rowsort label-empty
SELECT pk FROM tab0 WHERE ((col3 <= 6))
----

query I rowsort label-1800
SELECT pk FROM tab0 WHERE NOT (((col3 <= 6)))
----

statement ok
DELETE FROM tab1 WHERE ((col3 <= 6))

query I rowsort label-empty
SELECT pk FROM tab1 WHERE ((col3 <= 6))
----

query I rowsort label-1800
SELECT pk FROM tab1 WHERE NOT (((col3 <= 6)))
----

statement ok
DELETE FROM tab2 WHERE ((col3 <= 6))

query I rowsort label-empty
SELECT pk FROM tab2 WHERE ((col3 <= 6))
----

query I rowsort label-1800
SELECT pk FROM tab2 WHERE NOT (((col3 <= 6)))
----

statement ok
DELETE FROM tab3 WHERE ((col3 <= 6))

query I rowsort label-empty
SELECT pk FROM tab3 WHERE ((col3 <= 6))
----

query I rowsort label-1800
SELECT pk FROM tab3 WHERE NOT (((col3 <= 6)))
----

statement ok
DELETE FROM tab4 WHERE ((col3 <= 6))

query I rowsort label-empty
SELECT pk FROM tab4 WHERE ((col3 <= 6))
----

query I rowsort label-1800
SELECT pk FROM tab4 WHERE NOT (((col3 <= 6)))
----

statement ok
DROP TABLE tab0

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,2,6.15,'mxeuz',8,5.15,'xapmn')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE UNIQUE INDEX idx_tab2_1 ON tab2 (col3,col0 DESC)

statement ok
CREATE INDEX idx_tab2_4 ON tab2 (col3 DESC,col4 DESC)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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 DESC,col3 DESC)

statement ok
CREATE INDEX idx_tab3_1 ON tab3 (col0)

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

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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_1 ON tab4 (col1 DESC,col3 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab4_3 ON tab4 (col4 DESC,col3 DESC,col1 DESC)

statement ok
CREATE INDEX idx_tab4_4 ON tab4 (col0,col4 DESC)

statement ok
CREATE INDEX idx_tab4_5 ON tab4 (col0 DESC,col3 DESC)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE col4 >= 3.44

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col4 >= 3.44
----

query I rowsort label-1815
SELECT pk FROM tab0 WHERE NOT (col4 >= 3.44)
----

statement ok
DELETE FROM tab1 WHERE col4 >= 3.44

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col4 >= 3.44
----

query I rowsort label-1815
SELECT pk FROM tab1 WHERE NOT (col4 >= 3.44)
----

statement ok
DELETE FROM tab2 WHERE col4 >= 3.44

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col4 >= 3.44
----

query I rowsort label-1815
SELECT pk FROM tab2 WHERE NOT (col4 >= 3.44)
----

statement ok
DELETE FROM tab3 WHERE col4 >= 3.44

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col4 >= 3.44
----

query I rowsort label-1815
SELECT pk FROM tab3 WHERE NOT (col4 >= 3.44)
----

statement ok
DELETE FROM tab4 WHERE col4 >= 3.44

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col4 >= 3.44
----

query I rowsort label-1815
SELECT pk FROM tab4 WHERE NOT (col4 >= 3.44)
----

statement ok
DROP TABLE tab0

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,0,4.10,'xaktj',1,5.70,'wdhql')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE UNIQUE INDEX idx_tab2_0 ON tab2 (col0 DESC,col4)

statement ok
CREATE INDEX idx_tab2_2 ON tab2 (col4 DESC)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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,col3)

statement ok
CREATE UNIQUE INDEX idx_tab3_1 ON tab3 (col3)

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

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE INDEX idx_tab4_0 ON tab4 (col1,col4)

statement ok
CREATE INDEX idx_tab4_1 ON tab4 (col0 DESC)

statement ok
CREATE INDEX idx_tab4_2 ON tab4 (col3)

statement ok
CREATE INDEX idx_tab4_3 ON tab4 (col4)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE ((col0 = 0 AND (((col1 < 6.12)))) AND col1 > 2.62)

query I rowsort label-empty
SELECT pk FROM tab0 WHERE ((col0 = 0 AND (((col1 < 6.12)))) AND col1 > 2.62)
----

query I rowsort label-1830
SELECT pk FROM tab0 WHERE NOT (((col0 = 0 AND (((col1 < 6.12)))) AND col1 > 2.62))
----

statement ok
DELETE FROM tab1 WHERE ((col0 = 0 AND (((col1 < 6.12)))) AND col1 > 2.62)

query I rowsort label-empty
SELECT pk FROM tab1 WHERE ((col0 = 0 AND (((col1 < 6.12)))) AND col1 > 2.62)
----

query I rowsort label-1830
SELECT pk FROM tab1 WHERE NOT (((col0 = 0 AND (((col1 < 6.12)))) AND col1 > 2.62))
----

statement ok
DELETE FROM tab2 WHERE ((col0 = 0 AND (((col1 < 6.12)))) AND col1 > 2.62)

query I rowsort label-empty
SELECT pk FROM tab2 WHERE ((col0 = 0 AND (((col1 < 6.12)))) AND col1 > 2.62)
----

query I rowsort label-1830
SELECT pk FROM tab2 WHERE NOT (((col0 = 0 AND (((col1 < 6.12)))) AND col1 > 2.62))
----

statement ok
DELETE FROM tab3 WHERE ((col0 = 0 AND (((col1 < 6.12)))) AND col1 > 2.62)

query I rowsort label-empty
SELECT pk FROM tab3 WHERE ((col0 = 0 AND (((col1 < 6.12)))) AND col1 > 2.62)
----

query I rowsort label-1830
SELECT pk FROM tab3 WHERE NOT (((col0 = 0 AND (((col1 < 6.12)))) AND col1 > 2.62))
----

statement ok
DELETE FROM tab4 WHERE ((col0 = 0 AND (((col1 < 6.12)))) AND col1 > 2.62)

query I rowsort label-empty
SELECT pk FROM tab4 WHERE ((col0 = 0 AND (((col1 < 6.12)))) AND col1 > 2.62)
----

query I rowsort label-1830
SELECT pk FROM tab4 WHERE NOT (((col0 = 0 AND (((col1 < 6.12)))) AND col1 > 2.62))
----

statement ok
DROP TABLE tab0

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,0,3.58,'edhne',5,1.99,'xojmv')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE UNIQUE INDEX idx_tab2_0 ON tab2 (col4 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab2_1 ON tab2 (col3 DESC)

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

statement ok
CREATE INDEX idx_tab2_4 ON tab2 (col0 DESC)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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,col3 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab3_1 ON tab3 (col0)

statement ok
CREATE UNIQUE INDEX idx_tab3_5 ON tab3 (col3)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE INDEX idx_tab4_0 ON tab4 (col4,col0 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab4_1 ON tab4 (col4 DESC,col3)

statement ok
CREATE INDEX idx_tab4_2 ON tab4 (col3,col1)

statement ok
CREATE INDEX idx_tab4_4 ON tab4 (col3,col4 DESC)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE (col4 >= 6.96) OR col0 <= 5

query I rowsort label-empty
SELECT pk FROM tab0 WHERE (col4 >= 6.96) OR col0 <= 5
----

query I rowsort label-1845
SELECT pk FROM tab0 WHERE NOT ((col4 >= 6.96) OR col0 <= 5)
----

statement ok
DELETE FROM tab1 WHERE (col4 >= 6.96) OR col0 <= 5

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (col4 >= 6.96) OR col0 <= 5
----

query I rowsort label-1845
SELECT pk FROM tab1 WHERE NOT ((col4 >= 6.96) OR col0 <= 5)
----

statement ok
DELETE FROM tab2 WHERE (col4 >= 6.96) OR col0 <= 5

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (col4 >= 6.96) OR col0 <= 5
----

query I rowsort label-1845
SELECT pk FROM tab2 WHERE NOT ((col4 >= 6.96) OR col0 <= 5)
----

statement ok
DELETE FROM tab3 WHERE (col4 >= 6.96) OR col0 <= 5

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (col4 >= 6.96) OR col0 <= 5
----

query I rowsort label-1845
SELECT pk FROM tab3 WHERE NOT ((col4 >= 6.96) OR col0 <= 5)
----

statement ok
DELETE FROM tab4 WHERE (col4 >= 6.96) OR col0 <= 5

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (col4 >= 6.96) OR col0 <= 5
----

query I rowsort label-1845
SELECT pk FROM tab4 WHERE NOT ((col4 >= 6.96) OR col0 <= 5)
----

statement ok
DROP TABLE tab0

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,0,4.93,'pcktb',1,0.95,'nnrng')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE INDEX idx_tab2_0 ON tab2 (col3 DESC,col0)

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

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

statement ok
CREATE INDEX idx_tab2_3 ON tab2 (col4,col1)

statement ok
CREATE INDEX idx_tab2_4 ON tab2 (col0,col1 DESC)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

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

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

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

statement ok
CREATE INDEX idx_tab4_1 ON tab4 (col4 DESC,col3)

statement ok
CREATE INDEX idx_tab4_4 ON tab4 (col3 DESC,col0)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE (col1 > 4.99)

query I rowsort label-empty
SELECT pk FROM tab0 WHERE (col1 > 4.99)
----

query I rowsort label-1860
SELECT pk FROM tab0 WHERE NOT ((col1 > 4.99))
----
0

statement ok
DELETE FROM tab1 WHERE (col1 > 4.99)

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (col1 > 4.99)
----

query I rowsort label-1860
SELECT pk FROM tab1 WHERE NOT ((col1 > 4.99))
----
0

statement ok
DELETE FROM tab2 WHERE (col1 > 4.99)

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (col1 > 4.99)
----

query I rowsort label-1860
SELECT pk FROM tab2 WHERE NOT ((col1 > 4.99))
----
0

statement ok
DELETE FROM tab3 WHERE (col1 > 4.99)

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (col1 > 4.99)
----

query I rowsort label-1860
SELECT pk FROM tab3 WHERE NOT ((col1 > 4.99))
----
0

statement ok
DELETE FROM tab4 WHERE (col1 > 4.99)

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (col1 > 4.99)
----

query I rowsort label-1860
SELECT pk FROM tab4 WHERE NOT ((col1 > 4.99))
----
0

statement ok
DELETE FROM tab0 WHERE col1 <= 9.38

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col1 <= 9.38
----

query I rowsort label-1875
SELECT pk FROM tab0 WHERE NOT (col1 <= 9.38)
----

statement ok
DELETE FROM tab1 WHERE col1 <= 9.38

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col1 <= 9.38
----

query I rowsort label-1875
SELECT pk FROM tab1 WHERE NOT (col1 <= 9.38)
----

statement ok
DELETE FROM tab2 WHERE col1 <= 9.38

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col1 <= 9.38
----

query I rowsort label-1875
SELECT pk FROM tab2 WHERE NOT (col1 <= 9.38)
----

statement ok
DELETE FROM tab3 WHERE col1 <= 9.38

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col1 <= 9.38
----

query I rowsort label-1875
SELECT pk FROM tab3 WHERE NOT (col1 <= 9.38)
----

statement ok
DELETE FROM tab4 WHERE col1 <= 9.38

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col1 <= 9.38
----

query I rowsort label-1875
SELECT pk FROM tab4 WHERE NOT (col1 <= 9.38)
----

statement ok
DROP TABLE tab0

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,0,7.28,'ybvla',8,0.84,'uvlgk')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE UNIQUE INDEX idx_tab2_0 ON tab2 (col0 DESC,col1)

statement ok
CREATE UNIQUE INDEX idx_tab2_1 ON tab2 (col3,col4)

statement ok
CREATE UNIQUE INDEX idx_tab2_3 ON tab2 (col4)

statement ok
CREATE INDEX idx_tab2_5 ON tab2 (col0 DESC,col3 DESC)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

statement ok
CREATE INDEX idx_tab3_0 ON tab3 (col0)

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

statement ok
CREATE INDEX idx_tab3_5 ON tab3 (col3 DESC)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE INDEX idx_tab4_0 ON tab4 (col0,col3 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab4_2 ON tab4 (col0 DESC,col4 DESC)

statement ok
CREATE INDEX idx_tab4_5 ON tab4 (col3 DESC)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE ((col4 > 9.0))

query I rowsort label-empty
SELECT pk FROM tab0 WHERE ((col4 > 9.0))
----

query I rowsort label-1890
SELECT pk FROM tab0 WHERE NOT (((col4 > 9.0)))
----
0

statement ok
DELETE FROM tab1 WHERE ((col4 > 9.0))

query I rowsort label-empty
SELECT pk FROM tab1 WHERE ((col4 > 9.0))
----

query I rowsort label-1890
SELECT pk FROM tab1 WHERE NOT (((col4 > 9.0)))
----
0

statement ok
DELETE FROM tab2 WHERE ((col4 > 9.0))

query I rowsort label-empty
SELECT pk FROM tab2 WHERE ((col4 > 9.0))
----

query I rowsort label-1890
SELECT pk FROM tab2 WHERE NOT (((col4 > 9.0)))
----
0

statement ok
DELETE FROM tab3 WHERE ((col4 > 9.0))

query I rowsort label-empty
SELECT pk FROM tab3 WHERE ((col4 > 9.0))
----

query I rowsort label-1890
SELECT pk FROM tab3 WHERE NOT (((col4 > 9.0)))
----
0

statement ok
DELETE FROM tab4 WHERE ((col4 > 9.0))

query I rowsort label-empty
SELECT pk FROM tab4 WHERE ((col4 > 9.0))
----

query I rowsort label-1890
SELECT pk FROM tab4 WHERE NOT (((col4 > 9.0)))
----
0

statement ok
DELETE FROM tab0 WHERE (col0 <= 7)

query I rowsort label-empty
SELECT pk FROM tab0 WHERE (col0 <= 7)
----

query I rowsort label-1905
SELECT pk FROM tab0 WHERE NOT ((col0 <= 7))
----

statement ok
DELETE FROM tab1 WHERE (col0 <= 7)

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (col0 <= 7)
----

query I rowsort label-1905
SELECT pk FROM tab1 WHERE NOT ((col0 <= 7))
----

statement ok
DELETE FROM tab2 WHERE (col0 <= 7)

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (col0 <= 7)
----

query I rowsort label-1905
SELECT pk FROM tab2 WHERE NOT ((col0 <= 7))
----

statement ok
DELETE FROM tab3 WHERE (col0 <= 7)

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (col0 <= 7)
----

query I rowsort label-1905
SELECT pk FROM tab3 WHERE NOT ((col0 <= 7))
----

statement ok
DELETE FROM tab4 WHERE (col0 <= 7)

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (col0 <= 7)
----

query I rowsort label-1905
SELECT pk FROM tab4 WHERE NOT ((col0 <= 7))
----

statement ok
DROP TABLE tab0

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,9,4.55,'eknin',3,5.11,'mcqos')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE UNIQUE INDEX idx_tab2_0 ON tab2 (col4)

statement ok
CREATE INDEX idx_tab2_1 ON tab2 (col3 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab2_3 ON tab2 (col1 DESC)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

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

statement ok
CREATE INDEX idx_tab3_5 ON tab3 (col0 DESC,col4)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE INDEX idx_tab4_0 ON tab4 (col1,col4 DESC)

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

statement ok
CREATE INDEX idx_tab4_3 ON tab4 (col3 DESC,col1 DESC)

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

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE col3 = 0

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col3 = 0
----

query I rowsort label-1920
SELECT pk FROM tab0 WHERE NOT (col3 = 0)
----
0

statement ok
DELETE FROM tab1 WHERE col3 = 0

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col3 = 0
----

query I rowsort label-1920
SELECT pk FROM tab1 WHERE NOT (col3 = 0)
----
0

statement ok
DELETE FROM tab2 WHERE col3 = 0

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col3 = 0
----

query I rowsort label-1920
SELECT pk FROM tab2 WHERE NOT (col3 = 0)
----
0

statement ok
DELETE FROM tab3 WHERE col3 = 0

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col3 = 0
----

query I rowsort label-1920
SELECT pk FROM tab3 WHERE NOT (col3 = 0)
----
0

statement ok
DELETE FROM tab4 WHERE col3 = 0

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col3 = 0
----

query I rowsort label-1920
SELECT pk FROM tab4 WHERE NOT (col3 = 0)
----
0

statement ok
DELETE FROM tab0 WHERE col1 IN (2.89,2.97,5.2,5.84,3.62)

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col1 IN (2.89,2.97,5.2,5.84,3.62)
----

query I rowsort label-1935
SELECT pk FROM tab0 WHERE NOT (col1 IN (2.89,2.97,5.2,5.84,3.62))
----
0

statement ok
DELETE FROM tab1 WHERE col1 IN (2.89,2.97,5.2,5.84,3.62)

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col1 IN (2.89,2.97,5.2,5.84,3.62)
----

query I rowsort label-1935
SELECT pk FROM tab1 WHERE NOT (col1 IN (2.89,2.97,5.2,5.84,3.62))
----
0

statement ok
DELETE FROM tab2 WHERE col1 IN (2.89,2.97,5.2,5.84,3.62)

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col1 IN (2.89,2.97,5.2,5.84,3.62)
----

query I rowsort label-1935
SELECT pk FROM tab2 WHERE NOT (col1 IN (2.89,2.97,5.2,5.84,3.62))
----
0

statement ok
DELETE FROM tab3 WHERE col1 IN (2.89,2.97,5.2,5.84,3.62)

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col1 IN (2.89,2.97,5.2,5.84,3.62)
----

query I rowsort label-1935
SELECT pk FROM tab3 WHERE NOT (col1 IN (2.89,2.97,5.2,5.84,3.62))
----
0

statement ok
DELETE FROM tab4 WHERE col1 IN (2.89,2.97,5.2,5.84,3.62)

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col1 IN (2.89,2.97,5.2,5.84,3.62)
----

query I rowsort label-1935
SELECT pk FROM tab4 WHERE NOT (col1 IN (2.89,2.97,5.2,5.84,3.62))
----
0

statement ok
DROP TABLE tab0

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,6,6.26,'qgorp',2,3.23,'djaam')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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,col4)

statement ok
CREATE UNIQUE INDEX idx_tab2_1 ON tab2 (col4 DESC)

statement ok
CREATE INDEX idx_tab2_3 ON tab2 (col3 DESC,col0)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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_1 ON tab3 (col4 DESC,col3,col1)

statement ok
CREATE INDEX idx_tab3_2 ON tab3 (col0 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab3_5 ON tab3 (col3 DESC)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE INDEX idx_tab4_0 ON tab4 (col4 DESC,col0)

statement ok
CREATE INDEX idx_tab4_1 ON tab4 (col0)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE ((col3 < 1))

query I rowsort label-empty
SELECT pk FROM tab0 WHERE ((col3 < 1))
----

query I rowsort label-1950
SELECT pk FROM tab0 WHERE NOT (((col3 < 1)))
----
0

statement ok
DELETE FROM tab1 WHERE ((col3 < 1))

query I rowsort label-empty
SELECT pk FROM tab1 WHERE ((col3 < 1))
----

query I rowsort label-1950
SELECT pk FROM tab1 WHERE NOT (((col3 < 1)))
----
0

statement ok
DELETE FROM tab2 WHERE ((col3 < 1))

query I rowsort label-empty
SELECT pk FROM tab2 WHERE ((col3 < 1))
----

query I rowsort label-1950
SELECT pk FROM tab2 WHERE NOT (((col3 < 1)))
----
0

statement ok
DELETE FROM tab3 WHERE ((col3 < 1))

query I rowsort label-empty
SELECT pk FROM tab3 WHERE ((col3 < 1))
----

query I rowsort label-1950
SELECT pk FROM tab3 WHERE NOT (((col3 < 1)))
----
0

statement ok
DELETE FROM tab4 WHERE ((col3 < 1))

query I rowsort label-empty
SELECT pk FROM tab4 WHERE ((col3 < 1))
----

query I rowsort label-1950
SELECT pk FROM tab4 WHERE NOT (((col3 < 1)))
----
0

statement ok
DELETE FROM tab0 WHERE (((col1 > 0.20 AND col3 >= 5)) AND (col0 > 1))

query I rowsort label-empty
SELECT pk FROM tab0 WHERE (((col1 > 0.20 AND col3 >= 5)) AND (col0 > 1))
----

query I rowsort label-1965
SELECT pk FROM tab0 WHERE NOT ((((col1 > 0.20 AND col3 >= 5)) AND (col0 > 1)))
----
0

statement ok
DELETE FROM tab1 WHERE (((col1 > 0.20 AND col3 >= 5)) AND (col0 > 1))

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (((col1 > 0.20 AND col3 >= 5)) AND (col0 > 1))
----

query I rowsort label-1965
SELECT pk FROM tab1 WHERE NOT ((((col1 > 0.20 AND col3 >= 5)) AND (col0 > 1)))
----
0

statement ok
DELETE FROM tab2 WHERE (((col1 > 0.20 AND col3 >= 5)) AND (col0 > 1))

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (((col1 > 0.20 AND col3 >= 5)) AND (col0 > 1))
----

query I rowsort label-1965
SELECT pk FROM tab2 WHERE NOT ((((col1 > 0.20 AND col3 >= 5)) AND (col0 > 1)))
----
0

statement ok
DELETE FROM tab3 WHERE (((col1 > 0.20 AND col3 >= 5)) AND (col0 > 1))

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (((col1 > 0.20 AND col3 >= 5)) AND (col0 > 1))
----

query I rowsort label-1965
SELECT pk FROM tab3 WHERE NOT ((((col1 > 0.20 AND col3 >= 5)) AND (col0 > 1)))
----
0

statement ok
DELETE FROM tab4 WHERE (((col1 > 0.20 AND col3 >= 5)) AND (col0 > 1))

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (((col1 > 0.20 AND col3 >= 5)) AND (col0 > 1))
----

query I rowsort label-1965
SELECT pk FROM tab4 WHERE NOT ((((col1 > 0.20 AND col3 >= 5)) AND (col0 > 1)))
----
0

statement ok
DELETE FROM tab0 WHERE col3 < 2

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col3 < 2
----

query I rowsort label-1980
SELECT pk FROM tab0 WHERE NOT (col3 < 2)
----
0

statement ok
DELETE FROM tab1 WHERE col3 < 2

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col3 < 2
----

query I rowsort label-1980
SELECT pk FROM tab1 WHERE NOT (col3 < 2)
----
0

statement ok
DELETE FROM tab2 WHERE col3 < 2

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col3 < 2
----

query I rowsort label-1980
SELECT pk FROM tab2 WHERE NOT (col3 < 2)
----
0

statement ok
DELETE FROM tab3 WHERE col3 < 2

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col3 < 2
----

query I rowsort label-1980
SELECT pk FROM tab3 WHERE NOT (col3 < 2)
----
0

statement ok
DELETE FROM tab4 WHERE col3 < 2

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col3 < 2
----

query I rowsort label-1980
SELECT pk FROM tab4 WHERE NOT (col3 < 2)
----
0

statement ok
DELETE FROM tab0 WHERE col3 IN (7,1,4,7) AND (col1 = 1.21) AND col4 IN (9.51,4.74,3.92,1.83,1.59,0.99) AND (col3 <= 2 OR ((col1 < 7.31)))

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col3 IN (7,1,4,7) AND (col1 = 1.21) AND col4 IN (9.51,4.74,3.92,1.83,1.59,0.99) AND (col3 <= 2 OR ((col1 < 7.31)))
----

query I rowsort label-1995
SELECT pk FROM tab0 WHERE NOT (col3 IN (7,1,4,7) AND (col1 = 1.21) AND col4 IN (9.51,4.74,3.92,1.83,1.59,0.99) AND (col3 <= 2 OR ((col1 < 7.31))))
----
0

statement ok
DELETE FROM tab1 WHERE col3 IN (7,1,4,7) AND (col1 = 1.21) AND col4 IN (9.51,4.74,3.92,1.83,1.59,0.99) AND (col3 <= 2 OR ((col1 < 7.31)))

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col3 IN (7,1,4,7) AND (col1 = 1.21) AND col4 IN (9.51,4.74,3.92,1.83,1.59,0.99) AND (col3 <= 2 OR ((col1 < 7.31)))
----

query I rowsort label-1995
SELECT pk FROM tab1 WHERE NOT (col3 IN (7,1,4,7) AND (col1 = 1.21) AND col4 IN (9.51,4.74,3.92,1.83,1.59,0.99) AND (col3 <= 2 OR ((col1 < 7.31))))
----
0

statement ok
DELETE FROM tab2 WHERE col3 IN (7,1,4,7) AND (col1 = 1.21) AND col4 IN (9.51,4.74,3.92,1.83,1.59,0.99) AND (col3 <= 2 OR ((col1 < 7.31)))

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col3 IN (7,1,4,7) AND (col1 = 1.21) AND col4 IN (9.51,4.74,3.92,1.83,1.59,0.99) AND (col3 <= 2 OR ((col1 < 7.31)))
----

query I rowsort label-1995
SELECT pk FROM tab2 WHERE NOT (col3 IN (7,1,4,7) AND (col1 = 1.21) AND col4 IN (9.51,4.74,3.92,1.83,1.59,0.99) AND (col3 <= 2 OR ((col1 < 7.31))))
----
0

statement ok
DELETE FROM tab3 WHERE col3 IN (7,1,4,7) AND (col1 = 1.21) AND col4 IN (9.51,4.74,3.92,1.83,1.59,0.99) AND (col3 <= 2 OR ((col1 < 7.31)))

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col3 IN (7,1,4,7) AND (col1 = 1.21) AND col4 IN (9.51,4.74,3.92,1.83,1.59,0.99) AND (col3 <= 2 OR ((col1 < 7.31)))
----

query I rowsort label-1995
SELECT pk FROM tab3 WHERE NOT (col3 IN (7,1,4,7) AND (col1 = 1.21) AND col4 IN (9.51,4.74,3.92,1.83,1.59,0.99) AND (col3 <= 2 OR ((col1 < 7.31))))
----
0

statement ok
DELETE FROM tab4 WHERE col3 IN (7,1,4,7) AND (col1 = 1.21) AND col4 IN (9.51,4.74,3.92,1.83,1.59,0.99) AND (col3 <= 2 OR ((col1 < 7.31)))

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col3 IN (7,1,4,7) AND (col1 = 1.21) AND col4 IN (9.51,4.74,3.92,1.83,1.59,0.99) AND (col3 <= 2 OR ((col1 < 7.31)))
----

query I rowsort label-1995
SELECT pk FROM tab4 WHERE NOT (col3 IN (7,1,4,7) AND (col1 = 1.21) AND col4 IN (9.51,4.74,3.92,1.83,1.59,0.99) AND (col3 <= 2 OR ((col1 < 7.31))))
----
0

statement ok
DELETE FROM tab0 WHERE (col3 >= 8 AND (((col0 >= 0))) AND ((col3 > 1 AND col0 <= 4 AND col4 < 0.1 AND col4 >= 8.16)) AND ((col3 >= 9)))

query I rowsort label-empty
SELECT pk FROM tab0 WHERE (col3 >= 8 AND (((col0 >= 0))) AND ((col3 > 1 AND col0 <= 4 AND col4 < 0.1 AND col4 >= 8.16)) AND ((col3 >= 9)))
----

query I rowsort label-2010
SELECT pk FROM tab0 WHERE NOT ((col3 >= 8 AND (((col0 >= 0))) AND ((col3 > 1 AND col0 <= 4 AND col4 < 0.1 AND col4 >= 8.16)) AND ((col3 >= 9))))
----
0

statement ok
DELETE FROM tab1 WHERE (col3 >= 8 AND (((col0 >= 0))) AND ((col3 > 1 AND col0 <= 4 AND col4 < 0.1 AND col4 >= 8.16)) AND ((col3 >= 9)))

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (col3 >= 8 AND (((col0 >= 0))) AND ((col3 > 1 AND col0 <= 4 AND col4 < 0.1 AND col4 >= 8.16)) AND ((col3 >= 9)))
----

query I rowsort label-2010
SELECT pk FROM tab1 WHERE NOT ((col3 >= 8 AND (((col0 >= 0))) AND ((col3 > 1 AND col0 <= 4 AND col4 < 0.1 AND col4 >= 8.16)) AND ((col3 >= 9))))
----
0

statement ok
DELETE FROM tab2 WHERE (col3 >= 8 AND (((col0 >= 0))) AND ((col3 > 1 AND col0 <= 4 AND col4 < 0.1 AND col4 >= 8.16)) AND ((col3 >= 9)))

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (col3 >= 8 AND (((col0 >= 0))) AND ((col3 > 1 AND col0 <= 4 AND col4 < 0.1 AND col4 >= 8.16)) AND ((col3 >= 9)))
----

query I rowsort label-2010
SELECT pk FROM tab2 WHERE NOT ((col3 >= 8 AND (((col0 >= 0))) AND ((col3 > 1 AND col0 <= 4 AND col4 < 0.1 AND col4 >= 8.16)) AND ((col3 >= 9))))
----
0

statement ok
DELETE FROM tab3 WHERE (col3 >= 8 AND (((col0 >= 0))) AND ((col3 > 1 AND col0 <= 4 AND col4 < 0.1 AND col4 >= 8.16)) AND ((col3 >= 9)))

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (col3 >= 8 AND (((col0 >= 0))) AND ((col3 > 1 AND col0 <= 4 AND col4 < 0.1 AND col4 >= 8.16)) AND ((col3 >= 9)))
----

query I rowsort label-2010
SELECT pk FROM tab3 WHERE NOT ((col3 >= 8 AND (((col0 >= 0))) AND ((col3 > 1 AND col0 <= 4 AND col4 < 0.1 AND col4 >= 8.16)) AND ((col3 >= 9))))
----
0

statement ok
DELETE FROM tab4 WHERE (col3 >= 8 AND (((col0 >= 0))) AND ((col3 > 1 AND col0 <= 4 AND col4 < 0.1 AND col4 >= 8.16)) AND ((col3 >= 9)))

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (col3 >= 8 AND (((col0 >= 0))) AND ((col3 > 1 AND col0 <= 4 AND col4 < 0.1 AND col4 >= 8.16)) AND ((col3 >= 9)))
----

query I rowsort label-2010
SELECT pk FROM tab4 WHERE NOT ((col3 >= 8 AND (((col0 >= 0))) AND ((col3 > 1 AND col0 <= 4 AND col4 < 0.1 AND col4 >= 8.16)) AND ((col3 >= 9))))
----
0

statement ok
DELETE FROM tab0 WHERE col3 > 5

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col3 > 5
----

query I rowsort label-2025
SELECT pk FROM tab0 WHERE NOT (col3 > 5)
----
0

statement ok
DELETE FROM tab1 WHERE col3 > 5

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col3 > 5
----

query I rowsort label-2025
SELECT pk FROM tab1 WHERE NOT (col3 > 5)
----
0

statement ok
DELETE FROM tab2 WHERE col3 > 5

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col3 > 5
----

query I rowsort label-2025
SELECT pk FROM tab2 WHERE NOT (col3 > 5)
----
0

statement ok
DELETE FROM tab3 WHERE col3 > 5

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col3 > 5
----

query I rowsort label-2025
SELECT pk FROM tab3 WHERE NOT (col3 > 5)
----
0

statement ok
DELETE FROM tab4 WHERE col3 > 5

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col3 > 5
----

query I rowsort label-2025
SELECT pk FROM tab4 WHERE NOT (col3 > 5)
----
0

statement ok
DELETE FROM tab0 WHERE (((col3 IN (0))))

query I rowsort label-empty
SELECT pk FROM tab0 WHERE (((col3 IN (0))))
----

query I rowsort label-2040
SELECT pk FROM tab0 WHERE NOT ((((col3 IN (0)))))
----
0

statement ok
DELETE FROM tab1 WHERE (((col3 IN (0))))

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (((col3 IN (0))))
----

query I rowsort label-2040
SELECT pk FROM tab1 WHERE NOT ((((col3 IN (0)))))
----
0

statement ok
DELETE FROM tab2 WHERE (((col3 IN (0))))

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (((col3 IN (0))))
----

query I rowsort label-2040
SELECT pk FROM tab2 WHERE NOT ((((col3 IN (0)))))
----
0

statement ok
DELETE FROM tab3 WHERE (((col3 IN (0))))

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (((col3 IN (0))))
----

query I rowsort label-2040
SELECT pk FROM tab3 WHERE NOT ((((col3 IN (0)))))
----
0

statement ok
DELETE FROM tab4 WHERE (((col3 IN (0))))

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (((col3 IN (0))))
----

query I rowsort label-2040
SELECT pk FROM tab4 WHERE NOT ((((col3 IN (0)))))
----
0

statement ok
DELETE FROM tab0 WHERE col3 >= 7

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col3 >= 7
----

query I rowsort label-2055
SELECT pk FROM tab0 WHERE NOT (col3 >= 7)
----
0

statement ok
DELETE FROM tab1 WHERE col3 >= 7

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col3 >= 7
----

query I rowsort label-2055
SELECT pk FROM tab1 WHERE NOT (col3 >= 7)
----
0

statement ok
DELETE FROM tab2 WHERE col3 >= 7

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col3 >= 7
----

query I rowsort label-2055
SELECT pk FROM tab2 WHERE NOT (col3 >= 7)
----
0

statement ok
DELETE FROM tab3 WHERE col3 >= 7

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col3 >= 7
----

query I rowsort label-2055
SELECT pk FROM tab3 WHERE NOT (col3 >= 7)
----
0

statement ok
DELETE FROM tab4 WHERE col3 >= 7

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col3 >= 7
----

query I rowsort label-2055
SELECT pk FROM tab4 WHERE NOT (col3 >= 7)
----
0

statement ok
DELETE FROM tab0 WHERE (col0 > 2)

query I rowsort label-empty
SELECT pk FROM tab0 WHERE (col0 > 2)
----

query I rowsort label-2070
SELECT pk FROM tab0 WHERE NOT ((col0 > 2))
----

statement ok
DELETE FROM tab1 WHERE (col0 > 2)

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (col0 > 2)
----

query I rowsort label-2070
SELECT pk FROM tab1 WHERE NOT ((col0 > 2))
----

statement ok
DELETE FROM tab2 WHERE (col0 > 2)

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (col0 > 2)
----

query I rowsort label-2070
SELECT pk FROM tab2 WHERE NOT ((col0 > 2))
----

statement ok
DELETE FROM tab3 WHERE (col0 > 2)

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (col0 > 2)
----

query I rowsort label-2070
SELECT pk FROM tab3 WHERE NOT ((col0 > 2))
----

statement ok
DELETE FROM tab4 WHERE (col0 > 2)

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (col0 > 2)
----

query I rowsort label-2070
SELECT pk FROM tab4 WHERE NOT ((col0 > 2))
----

statement ok
DROP TABLE tab0

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,5,6.60,'gbzsy',7,9.45,'cbgdr')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE UNIQUE INDEX idx_tab2_0 ON tab2 (col4,col3 DESC)

statement ok
CREATE INDEX idx_tab2_1 ON tab2 (col3 DESC)

statement ok
CREATE INDEX idx_tab2_2 ON tab2 (col1 DESC)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

statement ok
CREATE INDEX idx_tab3_0 ON tab3 (col3,col0)

statement ok
CREATE INDEX idx_tab3_1 ON tab3 (col4,col0)

statement ok
CREATE UNIQUE INDEX idx_tab3_4 ON tab3 (col0 DESC)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE UNIQUE INDEX idx_tab4_0 ON tab4 (col4,col3)

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

statement ok
CREATE UNIQUE INDEX idx_tab4_3 ON tab4 (col0 DESC)

statement ok
CREATE INDEX idx_tab4_4 ON tab4 (col1)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE (col0 > 0)

query I rowsort label-empty
SELECT pk FROM tab0 WHERE (col0 > 0)
----

query I rowsort label-2085
SELECT pk FROM tab0 WHERE NOT ((col0 > 0))
----

statement ok
DELETE FROM tab1 WHERE (col0 > 0)

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (col0 > 0)
----

query I rowsort label-2085
SELECT pk FROM tab1 WHERE NOT ((col0 > 0))
----

statement ok
DELETE FROM tab2 WHERE (col0 > 0)

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (col0 > 0)
----

query I rowsort label-2085
SELECT pk FROM tab2 WHERE NOT ((col0 > 0))
----

statement ok
DELETE FROM tab3 WHERE (col0 > 0)

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (col0 > 0)
----

query I rowsort label-2085
SELECT pk FROM tab3 WHERE NOT ((col0 > 0))
----

statement ok
DELETE FROM tab4 WHERE (col0 > 0)

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (col0 > 0)
----

query I rowsort label-2085
SELECT pk FROM tab4 WHERE NOT ((col0 > 0))
----

statement ok
DROP TABLE tab0

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,6,8.39,'vznsy',0,7.46,'dsvoe')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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 (col1,col3 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab2_3 ON tab2 (col4 DESC)

statement ok
CREATE INDEX idx_tab2_4 ON tab2 (col0 DESC)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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_1 ON tab3 (col0)

statement ok
CREATE INDEX idx_tab3_3 ON tab3 (col3 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab3_5 ON tab3 (col4)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE UNIQUE INDEX idx_tab4_0 ON tab4 (col4)

statement ok
CREATE UNIQUE INDEX idx_tab4_1 ON tab4 (col1 DESC)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE col3 < 5

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col3 < 5
----

query I rowsort label-2100
SELECT pk FROM tab0 WHERE NOT (col3 < 5)
----

statement ok
DELETE FROM tab1 WHERE col3 < 5

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col3 < 5
----

query I rowsort label-2100
SELECT pk FROM tab1 WHERE NOT (col3 < 5)
----

statement ok
DELETE FROM tab2 WHERE col3 < 5

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col3 < 5
----

query I rowsort label-2100
SELECT pk FROM tab2 WHERE NOT (col3 < 5)
----

statement ok
DELETE FROM tab3 WHERE col3 < 5

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col3 < 5
----

query I rowsort label-2100
SELECT pk FROM tab3 WHERE NOT (col3 < 5)
----

statement ok
DELETE FROM tab4 WHERE col3 < 5

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col3 < 5
----

query I rowsort label-2100
SELECT pk FROM tab4 WHERE NOT (col3 < 5)
----

statement ok
DROP TABLE tab0

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,5,4.91,'nnnag',9,5.64,'iaxkf')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE INDEX idx_tab2_1 ON tab2 (col0 DESC)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

statement ok
CREATE INDEX idx_tab3_0 ON tab3 (col4 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab3_1 ON tab3 (col1)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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_1 ON tab4 (col0 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab4_2 ON tab4 (col3 DESC)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE col4 IN (7.62,9.1,4.10,1.38)

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col4 IN (7.62,9.1,4.10,1.38)
----

query I rowsort label-2115
SELECT pk FROM tab0 WHERE NOT (col4 IN (7.62,9.1,4.10,1.38))
----
0

statement ok
DELETE FROM tab1 WHERE col4 IN (7.62,9.1,4.10,1.38)

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col4 IN (7.62,9.1,4.10,1.38)
----

query I rowsort label-2115
SELECT pk FROM tab1 WHERE NOT (col4 IN (7.62,9.1,4.10,1.38))
----
0

statement ok
DELETE FROM tab2 WHERE col4 IN (7.62,9.1,4.10,1.38)

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col4 IN (7.62,9.1,4.10,1.38)
----

query I rowsort label-2115
SELECT pk FROM tab2 WHERE NOT (col4 IN (7.62,9.1,4.10,1.38))
----
0

statement ok
DELETE FROM tab3 WHERE col4 IN (7.62,9.1,4.10,1.38)

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col4 IN (7.62,9.1,4.10,1.38)
----

query I rowsort label-2115
SELECT pk FROM tab3 WHERE NOT (col4 IN (7.62,9.1,4.10,1.38))
----
0

statement ok
DELETE FROM tab4 WHERE col4 IN (7.62,9.1,4.10,1.38)

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col4 IN (7.62,9.1,4.10,1.38)
----

query I rowsort label-2115
SELECT pk FROM tab4 WHERE NOT (col4 IN (7.62,9.1,4.10,1.38))
----
0

statement ok
DELETE FROM tab0 WHERE (col3 < 9)

query I rowsort label-empty
SELECT pk FROM tab0 WHERE (col3 < 9)
----

query I rowsort label-2130
SELECT pk FROM tab0 WHERE NOT ((col3 < 9))
----
0

statement ok
DELETE FROM tab1 WHERE (col3 < 9)

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (col3 < 9)
----

query I rowsort label-2130
SELECT pk FROM tab1 WHERE NOT ((col3 < 9))
----
0

statement ok
DELETE FROM tab2 WHERE (col3 < 9)

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (col3 < 9)
----

query I rowsort label-2130
SELECT pk FROM tab2 WHERE NOT ((col3 < 9))
----
0

statement ok
DELETE FROM tab3 WHERE (col3 < 9)

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (col3 < 9)
----

query I rowsort label-2130
SELECT pk FROM tab3 WHERE NOT ((col3 < 9))
----
0

statement ok
DELETE FROM tab4 WHERE (col3 < 9)

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (col3 < 9)
----

query I rowsort label-2130
SELECT pk FROM tab4 WHERE NOT ((col3 < 9))
----
0

statement ok
DELETE FROM tab0 WHERE col0 >= 2

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col0 >= 2
----

query I rowsort label-2145
SELECT pk FROM tab0 WHERE NOT (col0 >= 2)
----

statement ok
DELETE FROM tab1 WHERE col0 >= 2

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col0 >= 2
----

query I rowsort label-2145
SELECT pk FROM tab1 WHERE NOT (col0 >= 2)
----

statement ok
DELETE FROM tab2 WHERE col0 >= 2

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col0 >= 2
----

query I rowsort label-2145
SELECT pk FROM tab2 WHERE NOT (col0 >= 2)
----

statement ok
DELETE FROM tab3 WHERE col0 >= 2

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col0 >= 2
----

query I rowsort label-2145
SELECT pk FROM tab3 WHERE NOT (col0 >= 2)
----

statement ok
DELETE FROM tab4 WHERE col0 >= 2

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col0 >= 2
----

query I rowsort label-2145
SELECT pk FROM tab4 WHERE NOT (col0 >= 2)
----

statement ok
DROP TABLE tab0

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,3,7.41,'wxrxr',0,3.3,'zcgxu')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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_1 ON tab2 (col0 DESC)

statement ok
CREATE INDEX idx_tab2_3 ON tab2 (col4 DESC,col1)

statement ok
CREATE INDEX idx_tab2_4 ON tab2 (col3)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

statement ok
CREATE INDEX idx_tab3_0 ON tab3 (col1,col0)

statement ok
CREATE INDEX idx_tab3_1 ON tab3 (col3 DESC)

statement ok
CREATE INDEX idx_tab3_3 ON tab3 (col4,col0)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE UNIQUE INDEX idx_tab4_0 ON tab4 (col4 DESC,col1 DESC)

statement ok
CREATE INDEX idx_tab4_2 ON tab4 (col0)

statement ok
CREATE UNIQUE INDEX idx_tab4_3 ON tab4 (col1,col4)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE ((col1 >= 1.58)) OR col4 < 7.84 AND col3 <= 2

query I rowsort label-empty
SELECT pk FROM tab0 WHERE ((col1 >= 1.58)) OR col4 < 7.84 AND col3 <= 2
----

query I rowsort label-2160
SELECT pk FROM tab0 WHERE NOT (((col1 >= 1.58)) OR col4 < 7.84 AND col3 <= 2)
----

statement ok
DELETE FROM tab1 WHERE ((col1 >= 1.58)) OR col4 < 7.84 AND col3 <= 2

query I rowsort label-empty
SELECT pk FROM tab1 WHERE ((col1 >= 1.58)) OR col4 < 7.84 AND col3 <= 2
----

query I rowsort label-2160
SELECT pk FROM tab1 WHERE NOT (((col1 >= 1.58)) OR col4 < 7.84 AND col3 <= 2)
----

statement ok
DELETE FROM tab2 WHERE ((col1 >= 1.58)) OR col4 < 7.84 AND col3 <= 2

query I rowsort label-empty
SELECT pk FROM tab2 WHERE ((col1 >= 1.58)) OR col4 < 7.84 AND col3 <= 2
----

query I rowsort label-2160
SELECT pk FROM tab2 WHERE NOT (((col1 >= 1.58)) OR col4 < 7.84 AND col3 <= 2)
----

statement ok
DELETE FROM tab3 WHERE ((col1 >= 1.58)) OR col4 < 7.84 AND col3 <= 2

query I rowsort label-empty
SELECT pk FROM tab3 WHERE ((col1 >= 1.58)) OR col4 < 7.84 AND col3 <= 2
----

query I rowsort label-2160
SELECT pk FROM tab3 WHERE NOT (((col1 >= 1.58)) OR col4 < 7.84 AND col3 <= 2)
----

statement ok
DELETE FROM tab4 WHERE ((col1 >= 1.58)) OR col4 < 7.84 AND col3 <= 2

query I rowsort label-empty
SELECT pk FROM tab4 WHERE ((col1 >= 1.58)) OR col4 < 7.84 AND col3 <= 2
----

query I rowsort label-2160
SELECT pk FROM tab4 WHERE NOT (((col1 >= 1.58)) OR col4 < 7.84 AND col3 <= 2)
----

statement ok
DROP TABLE tab0

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,2,2.96,'gviwe',2,8.87,'xypgl')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE UNIQUE INDEX idx_tab2_0 ON tab2 (col0 DESC)

statement ok
CREATE INDEX idx_tab2_1 ON tab2 (col4,col3 DESC)

statement ok
CREATE INDEX idx_tab2_5 ON tab2 (col3 DESC,col1)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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_1 ON tab3 (col1)

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

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE INDEX idx_tab4_0 ON tab4 (col1 DESC,col3 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab4_1 ON tab4 (col3 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab4_3 ON tab4 (col0)

statement ok
CREATE UNIQUE INDEX idx_tab4_5 ON tab4 (col4)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE (((((((col1 IN (7.32,3.9,2.69,5.87))))))))

query I rowsort label-empty
SELECT pk FROM tab0 WHERE (((((((col1 IN (7.32,3.9,2.69,5.87))))))))
----

query I rowsort label-2175
SELECT pk FROM tab0 WHERE NOT ((((((((col1 IN (7.32,3.9,2.69,5.87)))))))))
----
0

statement ok
DELETE FROM tab1 WHERE (((((((col1 IN (7.32,3.9,2.69,5.87))))))))

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (((((((col1 IN (7.32,3.9,2.69,5.87))))))))
----

query I rowsort label-2175
SELECT pk FROM tab1 WHERE NOT ((((((((col1 IN (7.32,3.9,2.69,5.87)))))))))
----
0

statement ok
DELETE FROM tab2 WHERE (((((((col1 IN (7.32,3.9,2.69,5.87))))))))

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (((((((col1 IN (7.32,3.9,2.69,5.87))))))))
----

query I rowsort label-2175
SELECT pk FROM tab2 WHERE NOT ((((((((col1 IN (7.32,3.9,2.69,5.87)))))))))
----
0

statement ok
DELETE FROM tab3 WHERE (((((((col1 IN (7.32,3.9,2.69,5.87))))))))

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (((((((col1 IN (7.32,3.9,2.69,5.87))))))))
----

query I rowsort label-2175
SELECT pk FROM tab3 WHERE NOT ((((((((col1 IN (7.32,3.9,2.69,5.87)))))))))
----
0

statement ok
DELETE FROM tab4 WHERE (((((((col1 IN (7.32,3.9,2.69,5.87))))))))

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (((((((col1 IN (7.32,3.9,2.69,5.87))))))))
----

query I rowsort label-2175
SELECT pk FROM tab4 WHERE NOT ((((((((col1 IN (7.32,3.9,2.69,5.87)))))))))
----
0

statement ok
DELETE FROM tab0 WHERE ((col4 IS NULL OR (col3 > 9 AND col1 = 7.46 OR (col4 > 1.92 AND (col3 > 9 OR col3 = 1)) AND ((((((col3 = 6)))) AND col0 >= 1) AND (col0 < 4) OR col3 = 3 AND ((((col4 > 9.64 AND (col0 = 0)) OR ((col4 >= 4.61) OR col3 > 4) AND col0 >= 0 AND (col0 > 3) OR col0 >= 5))) AND (col1 > 3.88 OR col1 > 4.23))))) OR (col4 < 3.38)

query I rowsort label-empty
SELECT pk FROM tab0 WHERE ((col4 IS NULL OR (col3 > 9 AND col1 = 7.46 OR (col4 > 1.92 AND (col3 > 9 OR col3 = 1)) AND ((((((col3 = 6)))) AND col0 >= 1) AND (col0 < 4) OR col3 = 3 AND ((((col4 > 9.64 AND (col0 = 0)) OR ((col4 >= 4.61) OR col3 > 4) AND col0 >= 0 AND (col0 > 3) OR col0 >= 5))) AND (col1 > 3.88 OR col1 > 4.23))))) OR (col4 < 3.38)
----

query I rowsort label-2190
SELECT pk FROM tab0 WHERE NOT (((col4 IS NULL OR (col3 > 9 AND col1 = 7.46 OR (col4 > 1.92 AND (col3 > 9 OR col3 = 1)) AND ((((((col3 = 6)))) AND col0 >= 1) AND (col0 < 4) OR col3 = 3 AND ((((col4 > 9.64 AND (col0 = 0)) OR ((col4 >= 4.61) OR col3 > 4) AND col0 >= 0 AND (col0 > 3) OR col0 >= 5))) AND (col1 > 3.88 OR col1 > 4.23))))) OR (col4 < 3.38))
----
0

statement ok
DELETE FROM tab1 WHERE ((col4 IS NULL OR (col3 > 9 AND col1 = 7.46 OR (col4 > 1.92 AND (col3 > 9 OR col3 = 1)) AND ((((((col3 = 6)))) AND col0 >= 1) AND (col0 < 4) OR col3 = 3 AND ((((col4 > 9.64 AND (col0 = 0)) OR ((col4 >= 4.61) OR col3 > 4) AND col0 >= 0 AND (col0 > 3) OR col0 >= 5))) AND (col1 > 3.88 OR col1 > 4.23))))) OR (col4 < 3.38)

query I rowsort label-empty
SELECT pk FROM tab1 WHERE ((col4 IS NULL OR (col3 > 9 AND col1 = 7.46 OR (col4 > 1.92 AND (col3 > 9 OR col3 = 1)) AND ((((((col3 = 6)))) AND col0 >= 1) AND (col0 < 4) OR col3 = 3 AND ((((col4 > 9.64 AND (col0 = 0)) OR ((col4 >= 4.61) OR col3 > 4) AND col0 >= 0 AND (col0 > 3) OR col0 >= 5))) AND (col1 > 3.88 OR col1 > 4.23))))) OR (col4 < 3.38)
----

query I rowsort label-2190
SELECT pk FROM tab1 WHERE NOT (((col4 IS NULL OR (col3 > 9 AND col1 = 7.46 OR (col4 > 1.92 AND (col3 > 9 OR col3 = 1)) AND ((((((col3 = 6)))) AND col0 >= 1) AND (col0 < 4) OR col3 = 3 AND ((((col4 > 9.64 AND (col0 = 0)) OR ((col4 >= 4.61) OR col3 > 4) AND col0 >= 0 AND (col0 > 3) OR col0 >= 5))) AND (col1 > 3.88 OR col1 > 4.23))))) OR (col4 < 3.38))
----
0

statement ok
DELETE FROM tab2 WHERE ((col4 IS NULL OR (col3 > 9 AND col1 = 7.46 OR (col4 > 1.92 AND (col3 > 9 OR col3 = 1)) AND ((((((col3 = 6)))) AND col0 >= 1) AND (col0 < 4) OR col3 = 3 AND ((((col4 > 9.64 AND (col0 = 0)) OR ((col4 >= 4.61) OR col3 > 4) AND col0 >= 0 AND (col0 > 3) OR col0 >= 5))) AND (col1 > 3.88 OR col1 > 4.23))))) OR (col4 < 3.38)

query I rowsort label-empty
SELECT pk FROM tab2 WHERE ((col4 IS NULL OR (col3 > 9 AND col1 = 7.46 OR (col4 > 1.92 AND (col3 > 9 OR col3 = 1)) AND ((((((col3 = 6)))) AND col0 >= 1) AND (col0 < 4) OR col3 = 3 AND ((((col4 > 9.64 AND (col0 = 0)) OR ((col4 >= 4.61) OR col3 > 4) AND col0 >= 0 AND (col0 > 3) OR col0 >= 5))) AND (col1 > 3.88 OR col1 > 4.23))))) OR (col4 < 3.38)
----

query I rowsort label-2190
SELECT pk FROM tab2 WHERE NOT (((col4 IS NULL OR (col3 > 9 AND col1 = 7.46 OR (col4 > 1.92 AND (col3 > 9 OR col3 = 1)) AND ((((((col3 = 6)))) AND col0 >= 1) AND (col0 < 4) OR col3 = 3 AND ((((col4 > 9.64 AND (col0 = 0)) OR ((col4 >= 4.61) OR col3 > 4) AND col0 >= 0 AND (col0 > 3) OR col0 >= 5))) AND (col1 > 3.88 OR col1 > 4.23))))) OR (col4 < 3.38))
----
0

statement ok
DELETE FROM tab3 WHERE ((col4 IS NULL OR (col3 > 9 AND col1 = 7.46 OR (col4 > 1.92 AND (col3 > 9 OR col3 = 1)) AND ((((((col3 = 6)))) AND col0 >= 1) AND (col0 < 4) OR col3 = 3 AND ((((col4 > 9.64 AND (col0 = 0)) OR ((col4 >= 4.61) OR col3 > 4) AND col0 >= 0 AND (col0 > 3) OR col0 >= 5))) AND (col1 > 3.88 OR col1 > 4.23))))) OR (col4 < 3.38)

query I rowsort label-empty
SELECT pk FROM tab3 WHERE ((col4 IS NULL OR (col3 > 9 AND col1 = 7.46 OR (col4 > 1.92 AND (col3 > 9 OR col3 = 1)) AND ((((((col3 = 6)))) AND col0 >= 1) AND (col0 < 4) OR col3 = 3 AND ((((col4 > 9.64 AND (col0 = 0)) OR ((col4 >= 4.61) OR col3 > 4) AND col0 >= 0 AND (col0 > 3) OR col0 >= 5))) AND (col1 > 3.88 OR col1 > 4.23))))) OR (col4 < 3.38)
----

query I rowsort label-2190
SELECT pk FROM tab3 WHERE NOT (((col4 IS NULL OR (col3 > 9 AND col1 = 7.46 OR (col4 > 1.92 AND (col3 > 9 OR col3 = 1)) AND ((((((col3 = 6)))) AND col0 >= 1) AND (col0 < 4) OR col3 = 3 AND ((((col4 > 9.64 AND (col0 = 0)) OR ((col4 >= 4.61) OR col3 > 4) AND col0 >= 0 AND (col0 > 3) OR col0 >= 5))) AND (col1 > 3.88 OR col1 > 4.23))))) OR (col4 < 3.38))
----
0

statement ok
DELETE FROM tab4 WHERE ((col4 IS NULL OR (col3 > 9 AND col1 = 7.46 OR (col4 > 1.92 AND (col3 > 9 OR col3 = 1)) AND ((((((col3 = 6)))) AND col0 >= 1) AND (col0 < 4) OR col3 = 3 AND ((((col4 > 9.64 AND (col0 = 0)) OR ((col4 >= 4.61) OR col3 > 4) AND col0 >= 0 AND (col0 > 3) OR col0 >= 5))) AND (col1 > 3.88 OR col1 > 4.23))))) OR (col4 < 3.38)

query I rowsort label-empty
SELECT pk FROM tab4 WHERE ((col4 IS NULL OR (col3 > 9 AND col1 = 7.46 OR (col4 > 1.92 AND (col3 > 9 OR col3 = 1)) AND ((((((col3 = 6)))) AND col0 >= 1) AND (col0 < 4) OR col3 = 3 AND ((((col4 > 9.64 AND (col0 = 0)) OR ((col4 >= 4.61) OR col3 > 4) AND col0 >= 0 AND (col0 > 3) OR col0 >= 5))) AND (col1 > 3.88 OR col1 > 4.23))))) OR (col4 < 3.38)
----

query I rowsort label-2190
SELECT pk FROM tab4 WHERE NOT (((col4 IS NULL OR (col3 > 9 AND col1 = 7.46 OR (col4 > 1.92 AND (col3 > 9 OR col3 = 1)) AND ((((((col3 = 6)))) AND col0 >= 1) AND (col0 < 4) OR col3 = 3 AND ((((col4 > 9.64 AND (col0 = 0)) OR ((col4 >= 4.61) OR col3 > 4) AND col0 >= 0 AND (col0 > 3) OR col0 >= 5))) AND (col1 > 3.88 OR col1 > 4.23))))) OR (col4 < 3.38))
----
0

statement ok
DELETE FROM tab0 WHERE col4 < 6.35

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col4 < 6.35
----

query I rowsort label-2205
SELECT pk FROM tab0 WHERE NOT (col4 < 6.35)
----
0

statement ok
DELETE FROM tab1 WHERE col4 < 6.35

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col4 < 6.35
----

query I rowsort label-2205
SELECT pk FROM tab1 WHERE NOT (col4 < 6.35)
----
0

statement ok
DELETE FROM tab2 WHERE col4 < 6.35

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col4 < 6.35
----

query I rowsort label-2205
SELECT pk FROM tab2 WHERE NOT (col4 < 6.35)
----
0

statement ok
DELETE FROM tab3 WHERE col4 < 6.35

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col4 < 6.35
----

query I rowsort label-2205
SELECT pk FROM tab3 WHERE NOT (col4 < 6.35)
----
0

statement ok
DELETE FROM tab4 WHERE col4 < 6.35

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col4 < 6.35
----

query I rowsort label-2205
SELECT pk FROM tab4 WHERE NOT (col4 < 6.35)
----
0

statement ok
DELETE FROM tab0 WHERE col4 > 3.94

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col4 > 3.94
----

query I rowsort label-2220
SELECT pk FROM tab0 WHERE NOT (col4 > 3.94)
----

statement ok
DELETE FROM tab1 WHERE col4 > 3.94

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col4 > 3.94
----

query I rowsort label-2220
SELECT pk FROM tab1 WHERE NOT (col4 > 3.94)
----

statement ok
DELETE FROM tab2 WHERE col4 > 3.94

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col4 > 3.94
----

query I rowsort label-2220
SELECT pk FROM tab2 WHERE NOT (col4 > 3.94)
----

statement ok
DELETE FROM tab3 WHERE col4 > 3.94

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col4 > 3.94
----

query I rowsort label-2220
SELECT pk FROM tab3 WHERE NOT (col4 > 3.94)
----

statement ok
DELETE FROM tab4 WHERE col4 > 3.94

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col4 > 3.94
----

query I rowsort label-2220
SELECT pk FROM tab4 WHERE NOT (col4 > 3.94)
----

statement ok
DROP TABLE tab0

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,3,1.96,'dbqug',1,9.81,'fprot')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE INDEX idx_tab2_2 ON tab2 (col3)

statement ok
CREATE INDEX idx_tab2_3 ON tab2 (col4 DESC)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

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

statement ok
CREATE UNIQUE INDEX idx_tab3_1 ON tab3 (col0)

statement ok
CREATE UNIQUE INDEX idx_tab3_2 ON tab3 (col4)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE UNIQUE INDEX idx_tab4_0 ON tab4 (col3)

statement ok
CREATE UNIQUE INDEX idx_tab4_2 ON tab4 (col4,col1 DESC)

statement ok
CREATE INDEX idx_tab4_3 ON tab4 (col0)

statement ok
CREATE UNIQUE INDEX idx_tab4_4 ON tab4 (col1)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE ((col3 >= 5))

query I rowsort label-empty
SELECT pk FROM tab0 WHERE ((col3 >= 5))
----

query I rowsort label-2235
SELECT pk FROM tab0 WHERE NOT (((col3 >= 5)))
----
0

statement ok
DELETE FROM tab1 WHERE ((col3 >= 5))

query I rowsort label-empty
SELECT pk FROM tab1 WHERE ((col3 >= 5))
----

query I rowsort label-2235
SELECT pk FROM tab1 WHERE NOT (((col3 >= 5)))
----
0

statement ok
DELETE FROM tab2 WHERE ((col3 >= 5))

query I rowsort label-empty
SELECT pk FROM tab2 WHERE ((col3 >= 5))
----

query I rowsort label-2235
SELECT pk FROM tab2 WHERE NOT (((col3 >= 5)))
----
0

statement ok
DELETE FROM tab3 WHERE ((col3 >= 5))

query I rowsort label-empty
SELECT pk FROM tab3 WHERE ((col3 >= 5))
----

query I rowsort label-2235
SELECT pk FROM tab3 WHERE NOT (((col3 >= 5)))
----
0

statement ok
DELETE FROM tab4 WHERE ((col3 >= 5))

query I rowsort label-empty
SELECT pk FROM tab4 WHERE ((col3 >= 5))
----

query I rowsort label-2235
SELECT pk FROM tab4 WHERE NOT (((col3 >= 5)))
----
0

statement ok
DELETE FROM tab0 WHERE col0 < 6 AND ((col3 > 5)) AND col3 IS NULL AND col1 = 9.21 AND (((col0 = 2))) OR (col3 < 1) AND col0 IN (2,5,7,4,5) AND (col4 = 0.95 AND col3 = 8) AND col3 < 8 AND col3 > 0 AND col3 IS NULL AND col0 IS NULL OR col0 >= 8 AND (col1 > 6.3 AND col0 BETWEEN 4 AND 5 OR (col1 > 5.83)) OR (((((col0 < 4 OR col4 <= 4.55 AND (col4 >= 1.1) OR col3 <= 9 AND ((((col1 = 4.32)) AND col4 IN (8.49,5.15,5.37,1.87,5.0)) AND col3 = 2 AND (col4 = 1.63) AND ((col1 > 5.84)) OR (col0 BETWEEN 5 AND 8) AND (col0 < 5))) OR col1 IN (7.42))))) AND (col3 <= 2) OR col0 > 1

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col0 < 6 AND ((col3 > 5)) AND col3 IS NULL AND col1 = 9.21 AND (((col0 = 2))) OR (col3 < 1) AND col0 IN (2,5,7,4,5) AND (col4 = 0.95 AND col3 = 8) AND col3 < 8 AND col3 > 0 AND col3 IS NULL AND col0 IS NULL OR col0 >= 8 AND (col1 > 6.3 AND col0 BETWEEN 4 AND 5 OR (col1 > 5.83)) OR (((((col0 < 4 OR col4 <= 4.55 AND (col4 >= 1.1) OR col3 <= 9 AND ((((col1 = 4.32)) AND col4 IN (8.49,5.15,5.37,1.87,5.0)) AND col3 = 2 AND (col4 = 1.63) AND ((col1 > 5.84)) OR (col0 BETWEEN 5 AND 8) AND (col0 < 5))) OR col1 IN (7.42))))) AND (col3 <= 2) OR col0 > 1
----

query I rowsort label-2250
SELECT pk FROM tab0 WHERE NOT (col0 < 6 AND ((col3 > 5)) AND col3 IS NULL AND col1 = 9.21 AND (((col0 = 2))) OR (col3 < 1) AND col0 IN (2,5,7,4,5) AND (col4 = 0.95 AND col3 = 8) AND col3 < 8 AND col3 > 0 AND col3 IS NULL AND col0 IS NULL OR col0 >= 8 AND (col1 > 6.3 AND col0 BETWEEN 4 AND 5 OR (col1 > 5.83)) OR (((((col0 < 4 OR col4 <= 4.55 AND (col4 >= 1.1) OR col3 <= 9 AND ((((col1 = 4.32)) AND col4 IN (8.49,5.15,5.37,1.87,5.0)) AND col3 = 2 AND (col4 = 1.63) AND ((col1 > 5.84)) OR (col0 BETWEEN 5 AND 8) AND (col0 < 5))) OR col1 IN (7.42))))) AND (col3 <= 2) OR col0 > 1)
----

statement ok
DELETE FROM tab1 WHERE col0 < 6 AND ((col3 > 5)) AND col3 IS NULL AND col1 = 9.21 AND (((col0 = 2))) OR (col3 < 1) AND col0 IN (2,5,7,4,5) AND (col4 = 0.95 AND col3 = 8) AND col3 < 8 AND col3 > 0 AND col3 IS NULL AND col0 IS NULL OR col0 >= 8 AND (col1 > 6.3 AND col0 BETWEEN 4 AND 5 OR (col1 > 5.83)) OR (((((col0 < 4 OR col4 <= 4.55 AND (col4 >= 1.1) OR col3 <= 9 AND ((((col1 = 4.32)) AND col4 IN (8.49,5.15,5.37,1.87,5.0)) AND col3 = 2 AND (col4 = 1.63) AND ((col1 > 5.84)) OR (col0 BETWEEN 5 AND 8) AND (col0 < 5))) OR col1 IN (7.42))))) AND (col3 <= 2) OR col0 > 1

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col0 < 6 AND ((col3 > 5)) AND col3 IS NULL AND col1 = 9.21 AND (((col0 = 2))) OR (col3 < 1) AND col0 IN (2,5,7,4,5) AND (col4 = 0.95 AND col3 = 8) AND col3 < 8 AND col3 > 0 AND col3 IS NULL AND col0 IS NULL OR col0 >= 8 AND (col1 > 6.3 AND col0 BETWEEN 4 AND 5 OR (col1 > 5.83)) OR (((((col0 < 4 OR col4 <= 4.55 AND (col4 >= 1.1) OR col3 <= 9 AND ((((col1 = 4.32)) AND col4 IN (8.49,5.15,5.37,1.87,5.0)) AND col3 = 2 AND (col4 = 1.63) AND ((col1 > 5.84)) OR (col0 BETWEEN 5 AND 8) AND (col0 < 5))) OR col1 IN (7.42))))) AND (col3 <= 2) OR col0 > 1
----

query I rowsort label-2250
SELECT pk FROM tab1 WHERE NOT (col0 < 6 AND ((col3 > 5)) AND col3 IS NULL AND col1 = 9.21 AND (((col0 = 2))) OR (col3 < 1) AND col0 IN (2,5,7,4,5) AND (col4 = 0.95 AND col3 = 8) AND col3 < 8 AND col3 > 0 AND col3 IS NULL AND col0 IS NULL OR col0 >= 8 AND (col1 > 6.3 AND col0 BETWEEN 4 AND 5 OR (col1 > 5.83)) OR (((((col0 < 4 OR col4 <= 4.55 AND (col4 >= 1.1) OR col3 <= 9 AND ((((col1 = 4.32)) AND col4 IN (8.49,5.15,5.37,1.87,5.0)) AND col3 = 2 AND (col4 = 1.63) AND ((col1 > 5.84)) OR (col0 BETWEEN 5 AND 8) AND (col0 < 5))) OR col1 IN (7.42))))) AND (col3 <= 2) OR col0 > 1)
----

statement ok
DELETE FROM tab2 WHERE col0 < 6 AND ((col3 > 5)) AND col3 IS NULL AND col1 = 9.21 AND (((col0 = 2))) OR (col3 < 1) AND col0 IN (2,5,7,4,5) AND (col4 = 0.95 AND col3 = 8) AND col3 < 8 AND col3 > 0 AND col3 IS NULL AND col0 IS NULL OR col0 >= 8 AND (col1 > 6.3 AND col0 BETWEEN 4 AND 5 OR (col1 > 5.83)) OR (((((col0 < 4 OR col4 <= 4.55 AND (col4 >= 1.1) OR col3 <= 9 AND ((((col1 = 4.32)) AND col4 IN (8.49,5.15,5.37,1.87,5.0)) AND col3 = 2 AND (col4 = 1.63) AND ((col1 > 5.84)) OR (col0 BETWEEN 5 AND 8) AND (col0 < 5))) OR col1 IN (7.42))))) AND (col3 <= 2) OR col0 > 1

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col0 < 6 AND ((col3 > 5)) AND col3 IS NULL AND col1 = 9.21 AND (((col0 = 2))) OR (col3 < 1) AND col0 IN (2,5,7,4,5) AND (col4 = 0.95 AND col3 = 8) AND col3 < 8 AND col3 > 0 AND col3 IS NULL AND col0 IS NULL OR col0 >= 8 AND (col1 > 6.3 AND col0 BETWEEN 4 AND 5 OR (col1 > 5.83)) OR (((((col0 < 4 OR col4 <= 4.55 AND (col4 >= 1.1) OR col3 <= 9 AND ((((col1 = 4.32)) AND col4 IN (8.49,5.15,5.37,1.87,5.0)) AND col3 = 2 AND (col4 = 1.63) AND ((col1 > 5.84)) OR (col0 BETWEEN 5 AND 8) AND (col0 < 5))) OR col1 IN (7.42))))) AND (col3 <= 2) OR col0 > 1
----

query I rowsort label-2250
SELECT pk FROM tab2 WHERE NOT (col0 < 6 AND ((col3 > 5)) AND col3 IS NULL AND col1 = 9.21 AND (((col0 = 2))) OR (col3 < 1) AND col0 IN (2,5,7,4,5) AND (col4 = 0.95 AND col3 = 8) AND col3 < 8 AND col3 > 0 AND col3 IS NULL AND col0 IS NULL OR col0 >= 8 AND (col1 > 6.3 AND col0 BETWEEN 4 AND 5 OR (col1 > 5.83)) OR (((((col0 < 4 OR col4 <= 4.55 AND (col4 >= 1.1) OR col3 <= 9 AND ((((col1 = 4.32)) AND col4 IN (8.49,5.15,5.37,1.87,5.0)) AND col3 = 2 AND (col4 = 1.63) AND ((col1 > 5.84)) OR (col0 BETWEEN 5 AND 8) AND (col0 < 5))) OR col1 IN (7.42))))) AND (col3 <= 2) OR col0 > 1)
----

statement ok
DELETE FROM tab3 WHERE col0 < 6 AND ((col3 > 5)) AND col3 IS NULL AND col1 = 9.21 AND (((col0 = 2))) OR (col3 < 1) AND col0 IN (2,5,7,4,5) AND (col4 = 0.95 AND col3 = 8) AND col3 < 8 AND col3 > 0 AND col3 IS NULL AND col0 IS NULL OR col0 >= 8 AND (col1 > 6.3 AND col0 BETWEEN 4 AND 5 OR (col1 > 5.83)) OR (((((col0 < 4 OR col4 <= 4.55 AND (col4 >= 1.1) OR col3 <= 9 AND ((((col1 = 4.32)) AND col4 IN (8.49,5.15,5.37,1.87,5.0)) AND col3 = 2 AND (col4 = 1.63) AND ((col1 > 5.84)) OR (col0 BETWEEN 5 AND 8) AND (col0 < 5))) OR col1 IN (7.42))))) AND (col3 <= 2) OR col0 > 1

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col0 < 6 AND ((col3 > 5)) AND col3 IS NULL AND col1 = 9.21 AND (((col0 = 2))) OR (col3 < 1) AND col0 IN (2,5,7,4,5) AND (col4 = 0.95 AND col3 = 8) AND col3 < 8 AND col3 > 0 AND col3 IS NULL AND col0 IS NULL OR col0 >= 8 AND (col1 > 6.3 AND col0 BETWEEN 4 AND 5 OR (col1 > 5.83)) OR (((((col0 < 4 OR col4 <= 4.55 AND (col4 >= 1.1) OR col3 <= 9 AND ((((col1 = 4.32)) AND col4 IN (8.49,5.15,5.37,1.87,5.0)) AND col3 = 2 AND (col4 = 1.63) AND ((col1 > 5.84)) OR (col0 BETWEEN 5 AND 8) AND (col0 < 5))) OR col1 IN (7.42))))) AND (col3 <= 2) OR col0 > 1
----

query I rowsort label-2250
SELECT pk FROM tab3 WHERE NOT (col0 < 6 AND ((col3 > 5)) AND col3 IS NULL AND col1 = 9.21 AND (((col0 = 2))) OR (col3 < 1) AND col0 IN (2,5,7,4,5) AND (col4 = 0.95 AND col3 = 8) AND col3 < 8 AND col3 > 0 AND col3 IS NULL AND col0 IS NULL OR col0 >= 8 AND (col1 > 6.3 AND col0 BETWEEN 4 AND 5 OR (col1 > 5.83)) OR (((((col0 < 4 OR col4 <= 4.55 AND (col4 >= 1.1) OR col3 <= 9 AND ((((col1 = 4.32)) AND col4 IN (8.49,5.15,5.37,1.87,5.0)) AND col3 = 2 AND (col4 = 1.63) AND ((col1 > 5.84)) OR (col0 BETWEEN 5 AND 8) AND (col0 < 5))) OR col1 IN (7.42))))) AND (col3 <= 2) OR col0 > 1)
----

statement ok
DELETE FROM tab4 WHERE col0 < 6 AND ((col3 > 5)) AND col3 IS NULL AND col1 = 9.21 AND (((col0 = 2))) OR (col3 < 1) AND col0 IN (2,5,7,4,5) AND (col4 = 0.95 AND col3 = 8) AND col3 < 8 AND col3 > 0 AND col3 IS NULL AND col0 IS NULL OR col0 >= 8 AND (col1 > 6.3 AND col0 BETWEEN 4 AND 5 OR (col1 > 5.83)) OR (((((col0 < 4 OR col4 <= 4.55 AND (col4 >= 1.1) OR col3 <= 9 AND ((((col1 = 4.32)) AND col4 IN (8.49,5.15,5.37,1.87,5.0)) AND col3 = 2 AND (col4 = 1.63) AND ((col1 > 5.84)) OR (col0 BETWEEN 5 AND 8) AND (col0 < 5))) OR col1 IN (7.42))))) AND (col3 <= 2) OR col0 > 1

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col0 < 6 AND ((col3 > 5)) AND col3 IS NULL AND col1 = 9.21 AND (((col0 = 2))) OR (col3 < 1) AND col0 IN (2,5,7,4,5) AND (col4 = 0.95 AND col3 = 8) AND col3 < 8 AND col3 > 0 AND col3 IS NULL AND col0 IS NULL OR col0 >= 8 AND (col1 > 6.3 AND col0 BETWEEN 4 AND 5 OR (col1 > 5.83)) OR (((((col0 < 4 OR col4 <= 4.55 AND (col4 >= 1.1) OR col3 <= 9 AND ((((col1 = 4.32)) AND col4 IN (8.49,5.15,5.37,1.87,5.0)) AND col3 = 2 AND (col4 = 1.63) AND ((col1 > 5.84)) OR (col0 BETWEEN 5 AND 8) AND (col0 < 5))) OR col1 IN (7.42))))) AND (col3 <= 2) OR col0 > 1
----

query I rowsort label-2250
SELECT pk FROM tab4 WHERE NOT (col0 < 6 AND ((col3 > 5)) AND col3 IS NULL AND col1 = 9.21 AND (((col0 = 2))) OR (col3 < 1) AND col0 IN (2,5,7,4,5) AND (col4 = 0.95 AND col3 = 8) AND col3 < 8 AND col3 > 0 AND col3 IS NULL AND col0 IS NULL OR col0 >= 8 AND (col1 > 6.3 AND col0 BETWEEN 4 AND 5 OR (col1 > 5.83)) OR (((((col0 < 4 OR col4 <= 4.55 AND (col4 >= 1.1) OR col3 <= 9 AND ((((col1 = 4.32)) AND col4 IN (8.49,5.15,5.37,1.87,5.0)) AND col3 = 2 AND (col4 = 1.63) AND ((col1 > 5.84)) OR (col0 BETWEEN 5 AND 8) AND (col0 < 5))) OR col1 IN (7.42))))) AND (col3 <= 2) OR col0 > 1)
----

statement ok
DROP TABLE tab0

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,8,5.65,'sgqxg',4,3.96,'ubsyq')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE INDEX idx_tab2_0 ON tab2 (col3,col0 DESC,col4)

statement ok
CREATE UNIQUE INDEX idx_tab2_1 ON tab2 (col4)

statement ok
CREATE INDEX idx_tab2_2 ON tab2 (col1 DESC,col0 DESC)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

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

statement ok
CREATE INDEX idx_tab3_1 ON tab3 (col0,col4 DESC)

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

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

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE UNIQUE INDEX idx_tab4_0 ON tab4 (col3 DESC,col4 DESC)

statement ok
CREATE INDEX idx_tab4_3 ON tab4 (col4)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DROP TABLE tab0

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,8,3.9,'lzkki',9,4.52,'ondxl')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE INDEX idx_tab2_0 ON tab2 (col3 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab2_1 ON tab2 (col1,col0 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab2_2 ON tab2 (col0,col4 DESC)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

statement ok
CREATE UNIQUE INDEX idx_tab3_4 ON tab3 (col0 DESC)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

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

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

statement ok
CREATE UNIQUE INDEX idx_tab4_2 ON tab4 (col4 DESC)

statement ok
CREATE INDEX idx_tab4_4 ON tab4 (col0 DESC,col3)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE (((col3 < 0) AND ((col0 > 4 AND col3 < 7 AND (col4 >= 0.15 OR col4 IS NULL AND (((col3 <= 3)))) OR col3 IN (6,6))) AND col0 = 0 OR (((col0 < 7))) AND col4 = 7.57))

query I rowsort label-empty
SELECT pk FROM tab0 WHERE (((col3 < 0) AND ((col0 > 4 AND col3 < 7 AND (col4 >= 0.15 OR col4 IS NULL AND (((col3 <= 3)))) OR col3 IN (6,6))) AND col0 = 0 OR (((col0 < 7))) AND col4 = 7.57))
----

query I rowsort label-2265
SELECT pk FROM tab0 WHERE NOT ((((col3 < 0) AND ((col0 > 4 AND col3 < 7 AND (col4 >= 0.15 OR col4 IS NULL AND (((col3 <= 3)))) OR col3 IN (6,6))) AND col0 = 0 OR (((col0 < 7))) AND col4 = 7.57)))
----
0

statement ok
DELETE FROM tab1 WHERE (((col3 < 0) AND ((col0 > 4 AND col3 < 7 AND (col4 >= 0.15 OR col4 IS NULL AND (((col3 <= 3)))) OR col3 IN (6,6))) AND col0 = 0 OR (((col0 < 7))) AND col4 = 7.57))

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (((col3 < 0) AND ((col0 > 4 AND col3 < 7 AND (col4 >= 0.15 OR col4 IS NULL AND (((col3 <= 3)))) OR col3 IN (6,6))) AND col0 = 0 OR (((col0 < 7))) AND col4 = 7.57))
----

query I rowsort label-2265
SELECT pk FROM tab1 WHERE NOT ((((col3 < 0) AND ((col0 > 4 AND col3 < 7 AND (col4 >= 0.15 OR col4 IS NULL AND (((col3 <= 3)))) OR col3 IN (6,6))) AND col0 = 0 OR (((col0 < 7))) AND col4 = 7.57)))
----
0

statement ok
DELETE FROM tab2 WHERE (((col3 < 0) AND ((col0 > 4 AND col3 < 7 AND (col4 >= 0.15 OR col4 IS NULL AND (((col3 <= 3)))) OR col3 IN (6,6))) AND col0 = 0 OR (((col0 < 7))) AND col4 = 7.57))

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (((col3 < 0) AND ((col0 > 4 AND col3 < 7 AND (col4 >= 0.15 OR col4 IS NULL AND (((col3 <= 3)))) OR col3 IN (6,6))) AND col0 = 0 OR (((col0 < 7))) AND col4 = 7.57))
----

query I rowsort label-2265
SELECT pk FROM tab2 WHERE NOT ((((col3 < 0) AND ((col0 > 4 AND col3 < 7 AND (col4 >= 0.15 OR col4 IS NULL AND (((col3 <= 3)))) OR col3 IN (6,6))) AND col0 = 0 OR (((col0 < 7))) AND col4 = 7.57)))
----
0

statement ok
DELETE FROM tab3 WHERE (((col3 < 0) AND ((col0 > 4 AND col3 < 7 AND (col4 >= 0.15 OR col4 IS NULL AND (((col3 <= 3)))) OR col3 IN (6,6))) AND col0 = 0 OR (((col0 < 7))) AND col4 = 7.57))

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (((col3 < 0) AND ((col0 > 4 AND col3 < 7 AND (col4 >= 0.15 OR col4 IS NULL AND (((col3 <= 3)))) OR col3 IN (6,6))) AND col0 = 0 OR (((col0 < 7))) AND col4 = 7.57))
----

query I rowsort label-2265
SELECT pk FROM tab3 WHERE NOT ((((col3 < 0) AND ((col0 > 4 AND col3 < 7 AND (col4 >= 0.15 OR col4 IS NULL AND (((col3 <= 3)))) OR col3 IN (6,6))) AND col0 = 0 OR (((col0 < 7))) AND col4 = 7.57)))
----
0

statement ok
DELETE FROM tab4 WHERE (((col3 < 0) AND ((col0 > 4 AND col3 < 7 AND (col4 >= 0.15 OR col4 IS NULL AND (((col3 <= 3)))) OR col3 IN (6,6))) AND col0 = 0 OR (((col0 < 7))) AND col4 = 7.57))

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (((col3 < 0) AND ((col0 > 4 AND col3 < 7 AND (col4 >= 0.15 OR col4 IS NULL AND (((col3 <= 3)))) OR col3 IN (6,6))) AND col0 = 0 OR (((col0 < 7))) AND col4 = 7.57))
----

query I rowsort label-2265
SELECT pk FROM tab4 WHERE NOT ((((col3 < 0) AND ((col0 > 4 AND col3 < 7 AND (col4 >= 0.15 OR col4 IS NULL AND (((col3 <= 3)))) OR col3 IN (6,6))) AND col0 = 0 OR (((col0 < 7))) AND col4 = 7.57)))
----
0

statement ok
DELETE FROM tab0 WHERE (col3 > 7) AND col4 > 9.20 OR col1 <= 8.62 AND col3 < 1

query I rowsort label-empty
SELECT pk FROM tab0 WHERE (col3 > 7) AND col4 > 9.20 OR col1 <= 8.62 AND col3 < 1
----

query I rowsort label-2280
SELECT pk FROM tab0 WHERE NOT ((col3 > 7) AND col4 > 9.20 OR col1 <= 8.62 AND col3 < 1)
----
0

statement ok
DELETE FROM tab1 WHERE (col3 > 7) AND col4 > 9.20 OR col1 <= 8.62 AND col3 < 1

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (col3 > 7) AND col4 > 9.20 OR col1 <= 8.62 AND col3 < 1
----

query I rowsort label-2280
SELECT pk FROM tab1 WHERE NOT ((col3 > 7) AND col4 > 9.20 OR col1 <= 8.62 AND col3 < 1)
----
0

statement ok
DELETE FROM tab2 WHERE (col3 > 7) AND col4 > 9.20 OR col1 <= 8.62 AND col3 < 1

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (col3 > 7) AND col4 > 9.20 OR col1 <= 8.62 AND col3 < 1
----

query I rowsort label-2280
SELECT pk FROM tab2 WHERE NOT ((col3 > 7) AND col4 > 9.20 OR col1 <= 8.62 AND col3 < 1)
----
0

statement ok
DELETE FROM tab3 WHERE (col3 > 7) AND col4 > 9.20 OR col1 <= 8.62 AND col3 < 1

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (col3 > 7) AND col4 > 9.20 OR col1 <= 8.62 AND col3 < 1
----

query I rowsort label-2280
SELECT pk FROM tab3 WHERE NOT ((col3 > 7) AND col4 > 9.20 OR col1 <= 8.62 AND col3 < 1)
----
0

statement ok
DELETE FROM tab4 WHERE (col3 > 7) AND col4 > 9.20 OR col1 <= 8.62 AND col3 < 1

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (col3 > 7) AND col4 > 9.20 OR col1 <= 8.62 AND col3 < 1
----

query I rowsort label-2280
SELECT pk FROM tab4 WHERE NOT ((col3 > 7) AND col4 > 9.20 OR col1 <= 8.62 AND col3 < 1)
----
0

statement ok
DELETE FROM tab0 WHERE (col4 < 7.94)

query I rowsort label-empty
SELECT pk FROM tab0 WHERE (col4 < 7.94)
----

query I rowsort label-2295
SELECT pk FROM tab0 WHERE NOT ((col4 < 7.94))
----

statement ok
DELETE FROM tab1 WHERE (col4 < 7.94)

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (col4 < 7.94)
----

query I rowsort label-2295
SELECT pk FROM tab1 WHERE NOT ((col4 < 7.94))
----

statement ok
DELETE FROM tab2 WHERE (col4 < 7.94)

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (col4 < 7.94)
----

query I rowsort label-2295
SELECT pk FROM tab2 WHERE NOT ((col4 < 7.94))
----

statement ok
DELETE FROM tab3 WHERE (col4 < 7.94)

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (col4 < 7.94)
----

query I rowsort label-2295
SELECT pk FROM tab3 WHERE NOT ((col4 < 7.94))
----

statement ok
DELETE FROM tab4 WHERE (col4 < 7.94)

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (col4 < 7.94)
----

query I rowsort label-2295
SELECT pk FROM tab4 WHERE NOT ((col4 < 7.94))
----

statement ok
DROP TABLE tab0

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,5,6.71,'rgwgb',8,7.10,'wqtaf')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE UNIQUE INDEX idx_tab2_0 ON tab2 (col1)

statement ok
CREATE INDEX idx_tab2_1 ON tab2 (col0 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab2_5 ON tab2 (col4 DESC)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

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

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

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

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE INDEX idx_tab4_0 ON tab4 (col1 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab4_1 ON tab4 (col3 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab4_5 ON tab4 (col0 DESC)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE (((col3 > 5)) OR col0 < 0 AND (col1 >= 8.43)) OR (col4 > 2.84 AND col4 <= 0.19)

query I rowsort label-empty
SELECT pk FROM tab0 WHERE (((col3 > 5)) OR col0 < 0 AND (col1 >= 8.43)) OR (col4 > 2.84 AND col4 <= 0.19)
----

query I rowsort label-2310
SELECT pk FROM tab0 WHERE NOT ((((col3 > 5)) OR col0 < 0 AND (col1 >= 8.43)) OR (col4 > 2.84 AND col4 <= 0.19))
----

statement ok
DELETE FROM tab1 WHERE (((col3 > 5)) OR col0 < 0 AND (col1 >= 8.43)) OR (col4 > 2.84 AND col4 <= 0.19)

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (((col3 > 5)) OR col0 < 0 AND (col1 >= 8.43)) OR (col4 > 2.84 AND col4 <= 0.19)
----

query I rowsort label-2310
SELECT pk FROM tab1 WHERE NOT ((((col3 > 5)) OR col0 < 0 AND (col1 >= 8.43)) OR (col4 > 2.84 AND col4 <= 0.19))
----

statement ok
DELETE FROM tab2 WHERE (((col3 > 5)) OR col0 < 0 AND (col1 >= 8.43)) OR (col4 > 2.84 AND col4 <= 0.19)

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (((col3 > 5)) OR col0 < 0 AND (col1 >= 8.43)) OR (col4 > 2.84 AND col4 <= 0.19)
----

query I rowsort label-2310
SELECT pk FROM tab2 WHERE NOT ((((col3 > 5)) OR col0 < 0 AND (col1 >= 8.43)) OR (col4 > 2.84 AND col4 <= 0.19))
----

statement ok
DELETE FROM tab3 WHERE (((col3 > 5)) OR col0 < 0 AND (col1 >= 8.43)) OR (col4 > 2.84 AND col4 <= 0.19)

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (((col3 > 5)) OR col0 < 0 AND (col1 >= 8.43)) OR (col4 > 2.84 AND col4 <= 0.19)
----

query I rowsort label-2310
SELECT pk FROM tab3 WHERE NOT ((((col3 > 5)) OR col0 < 0 AND (col1 >= 8.43)) OR (col4 > 2.84 AND col4 <= 0.19))
----

statement ok
DELETE FROM tab4 WHERE (((col3 > 5)) OR col0 < 0 AND (col1 >= 8.43)) OR (col4 > 2.84 AND col4 <= 0.19)

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (((col3 > 5)) OR col0 < 0 AND (col1 >= 8.43)) OR (col4 > 2.84 AND col4 <= 0.19)
----

query I rowsort label-2310
SELECT pk FROM tab4 WHERE NOT ((((col3 > 5)) OR col0 < 0 AND (col1 >= 8.43)) OR (col4 > 2.84 AND col4 <= 0.19))
----

statement ok
DROP TABLE tab0

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,2,1.74,'jtnpf',7,8.85,'lwkmb')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE UNIQUE INDEX idx_tab2_0 ON tab2 (col3 DESC,col0)

statement ok
CREATE INDEX idx_tab2_1 ON tab2 (col0)

statement ok
CREATE INDEX idx_tab2_2 ON tab2 (col4 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab2_3 ON tab2 (col1)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

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

statement ok
CREATE UNIQUE INDEX idx_tab3_4 ON tab3 (col4 DESC,col0,col3)

statement ok
CREATE UNIQUE INDEX idx_tab3_5 ON tab3 (col3,col1 DESC)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE UNIQUE INDEX idx_tab4_0 ON tab4 (col4 DESC)

statement ok
CREATE INDEX idx_tab4_2 ON tab4 (col3 DESC)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE col1 IS NULL AND (col3 < 7) AND col4 < 8.3

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col1 IS NULL AND (col3 < 7) AND col4 < 8.3
----

query I rowsort label-2325
SELECT pk FROM tab0 WHERE NOT (col1 IS NULL AND (col3 < 7) AND col4 < 8.3)
----
0

statement ok
DELETE FROM tab1 WHERE col1 IS NULL AND (col3 < 7) AND col4 < 8.3

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col1 IS NULL AND (col3 < 7) AND col4 < 8.3
----

query I rowsort label-2325
SELECT pk FROM tab1 WHERE NOT (col1 IS NULL AND (col3 < 7) AND col4 < 8.3)
----
0

statement ok
DELETE FROM tab2 WHERE col1 IS NULL AND (col3 < 7) AND col4 < 8.3

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col1 IS NULL AND (col3 < 7) AND col4 < 8.3
----

query I rowsort label-2325
SELECT pk FROM tab2 WHERE NOT (col1 IS NULL AND (col3 < 7) AND col4 < 8.3)
----
0

statement ok
DELETE FROM tab3 WHERE col1 IS NULL AND (col3 < 7) AND col4 < 8.3

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col1 IS NULL AND (col3 < 7) AND col4 < 8.3
----

query I rowsort label-2325
SELECT pk FROM tab3 WHERE NOT (col1 IS NULL AND (col3 < 7) AND col4 < 8.3)
----
0

statement ok
DELETE FROM tab4 WHERE col1 IS NULL AND (col3 < 7) AND col4 < 8.3

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col1 IS NULL AND (col3 < 7) AND col4 < 8.3
----

query I rowsort label-2325
SELECT pk FROM tab4 WHERE NOT (col1 IS NULL AND (col3 < 7) AND col4 < 8.3)
----
0

statement ok
DELETE FROM tab0 WHERE (col3 > 5) AND col0 < 4 AND (((col3 < 2)))

query I rowsort label-empty
SELECT pk FROM tab0 WHERE (col3 > 5) AND col0 < 4 AND (((col3 < 2)))
----

query I rowsort label-2340
SELECT pk FROM tab0 WHERE NOT ((col3 > 5) AND col0 < 4 AND (((col3 < 2))))
----
0

statement ok
DELETE FROM tab1 WHERE (col3 > 5) AND col0 < 4 AND (((col3 < 2)))

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (col3 > 5) AND col0 < 4 AND (((col3 < 2)))
----

query I rowsort label-2340
SELECT pk FROM tab1 WHERE NOT ((col3 > 5) AND col0 < 4 AND (((col3 < 2))))
----
0

statement ok
DELETE FROM tab2 WHERE (col3 > 5) AND col0 < 4 AND (((col3 < 2)))

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (col3 > 5) AND col0 < 4 AND (((col3 < 2)))
----

query I rowsort label-2340
SELECT pk FROM tab2 WHERE NOT ((col3 > 5) AND col0 < 4 AND (((col3 < 2))))
----
0

statement ok
DELETE FROM tab3 WHERE (col3 > 5) AND col0 < 4 AND (((col3 < 2)))

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (col3 > 5) AND col0 < 4 AND (((col3 < 2)))
----

query I rowsort label-2340
SELECT pk FROM tab3 WHERE NOT ((col3 > 5) AND col0 < 4 AND (((col3 < 2))))
----
0

statement ok
DELETE FROM tab4 WHERE (col3 > 5) AND col0 < 4 AND (((col3 < 2)))

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (col3 > 5) AND col0 < 4 AND (((col3 < 2)))
----

query I rowsort label-2340
SELECT pk FROM tab4 WHERE NOT ((col3 > 5) AND col0 < 4 AND (((col3 < 2))))
----
0

statement ok
DELETE FROM tab0 WHERE col0 > 1

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col0 > 1
----

query I rowsort label-2355
SELECT pk FROM tab0 WHERE NOT (col0 > 1)
----

statement ok
DELETE FROM tab1 WHERE col0 > 1

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col0 > 1
----

query I rowsort label-2355
SELECT pk FROM tab1 WHERE NOT (col0 > 1)
----

statement ok
DELETE FROM tab2 WHERE col0 > 1

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col0 > 1
----

query I rowsort label-2355
SELECT pk FROM tab2 WHERE NOT (col0 > 1)
----

statement ok
DELETE FROM tab3 WHERE col0 > 1

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col0 > 1
----

query I rowsort label-2355
SELECT pk FROM tab3 WHERE NOT (col0 > 1)
----

statement ok
DELETE FROM tab4 WHERE col0 > 1

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col0 > 1
----

query I rowsort label-2355
SELECT pk FROM tab4 WHERE NOT (col0 > 1)
----

statement ok
DROP TABLE tab0

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,9,6.54,'niamk',5,2.72,'ztobo')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE UNIQUE INDEX idx_tab2_0 ON tab2 (col3)

statement ok
CREATE UNIQUE INDEX idx_tab2_4 ON tab2 (col0 DESC)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

statement ok
CREATE INDEX idx_tab3_0 ON tab3 (col0,col4)

statement ok
CREATE INDEX idx_tab3_1 ON tab3 (col1,col4,col3)

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

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

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE UNIQUE INDEX idx_tab4_0 ON tab4 (col1)

statement ok
CREATE UNIQUE INDEX idx_tab4_2 ON tab4 (col0)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE col1 < 3.48 AND col3 IS NULL

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col1 < 3.48 AND col3 IS NULL
----

query I rowsort label-2370
SELECT pk FROM tab0 WHERE NOT (col1 < 3.48 AND col3 IS NULL)
----
0

statement ok
DELETE FROM tab1 WHERE col1 < 3.48 AND col3 IS NULL

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col1 < 3.48 AND col3 IS NULL
----

query I rowsort label-2370
SELECT pk FROM tab1 WHERE NOT (col1 < 3.48 AND col3 IS NULL)
----
0

statement ok
DELETE FROM tab2 WHERE col1 < 3.48 AND col3 IS NULL

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col1 < 3.48 AND col3 IS NULL
----

query I rowsort label-2370
SELECT pk FROM tab2 WHERE NOT (col1 < 3.48 AND col3 IS NULL)
----
0

statement ok
DELETE FROM tab3 WHERE col1 < 3.48 AND col3 IS NULL

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col1 < 3.48 AND col3 IS NULL
----

query I rowsort label-2370
SELECT pk FROM tab3 WHERE NOT (col1 < 3.48 AND col3 IS NULL)
----
0

statement ok
DELETE FROM tab4 WHERE col1 < 3.48 AND col3 IS NULL

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col1 < 3.48 AND col3 IS NULL
----

query I rowsort label-2370
SELECT pk FROM tab4 WHERE NOT (col1 < 3.48 AND col3 IS NULL)
----
0

statement ok
DELETE FROM tab0 WHERE (col1 = 2.88)

query I rowsort label-empty
SELECT pk FROM tab0 WHERE (col1 = 2.88)
----

query I rowsort label-2385
SELECT pk FROM tab0 WHERE NOT ((col1 = 2.88))
----
0

statement ok
DELETE FROM tab1 WHERE (col1 = 2.88)

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (col1 = 2.88)
----

query I rowsort label-2385
SELECT pk FROM tab1 WHERE NOT ((col1 = 2.88))
----
0

statement ok
DELETE FROM tab2 WHERE (col1 = 2.88)

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (col1 = 2.88)
----

query I rowsort label-2385
SELECT pk FROM tab2 WHERE NOT ((col1 = 2.88))
----
0

statement ok
DELETE FROM tab3 WHERE (col1 = 2.88)

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (col1 = 2.88)
----

query I rowsort label-2385
SELECT pk FROM tab3 WHERE NOT ((col1 = 2.88))
----
0

statement ok
DELETE FROM tab4 WHERE (col1 = 2.88)

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (col1 = 2.88)
----

query I rowsort label-2385
SELECT pk FROM tab4 WHERE NOT ((col1 = 2.88))
----
0

statement ok
DELETE FROM tab0 WHERE (col1 < 4.73 OR col3 BETWEEN 1 AND 3)

query I rowsort label-empty
SELECT pk FROM tab0 WHERE (col1 < 4.73 OR col3 BETWEEN 1 AND 3)
----

query I rowsort label-2400
SELECT pk FROM tab0 WHERE NOT ((col1 < 4.73 OR col3 BETWEEN 1 AND 3))
----
0

statement ok
DELETE FROM tab1 WHERE (col1 < 4.73 OR col3 BETWEEN 1 AND 3)

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (col1 < 4.73 OR col3 BETWEEN 1 AND 3)
----

query I rowsort label-2400
SELECT pk FROM tab1 WHERE NOT ((col1 < 4.73 OR col3 BETWEEN 1 AND 3))
----
0

statement ok
DELETE FROM tab2 WHERE (col1 < 4.73 OR col3 BETWEEN 1 AND 3)

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (col1 < 4.73 OR col3 BETWEEN 1 AND 3)
----

query I rowsort label-2400
SELECT pk FROM tab2 WHERE NOT ((col1 < 4.73 OR col3 BETWEEN 1 AND 3))
----
0

statement ok
DELETE FROM tab3 WHERE (col1 < 4.73 OR col3 BETWEEN 1 AND 3)

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (col1 < 4.73 OR col3 BETWEEN 1 AND 3)
----

query I rowsort label-2400
SELECT pk FROM tab3 WHERE NOT ((col1 < 4.73 OR col3 BETWEEN 1 AND 3))
----
0

statement ok
DELETE FROM tab4 WHERE (col1 < 4.73 OR col3 BETWEEN 1 AND 3)

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (col1 < 4.73 OR col3 BETWEEN 1 AND 3)
----

query I rowsort label-2400
SELECT pk FROM tab4 WHERE NOT ((col1 < 4.73 OR col3 BETWEEN 1 AND 3))
----
0

statement ok
DELETE FROM tab0 WHERE col1 = 1.30

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col1 = 1.30
----

query I rowsort label-2415
SELECT pk FROM tab0 WHERE NOT (col1 = 1.30)
----
0

statement ok
DELETE FROM tab1 WHERE col1 = 1.30

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col1 = 1.30
----

query I rowsort label-2415
SELECT pk FROM tab1 WHERE NOT (col1 = 1.30)
----
0

statement ok
DELETE FROM tab2 WHERE col1 = 1.30

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col1 = 1.30
----

query I rowsort label-2415
SELECT pk FROM tab2 WHERE NOT (col1 = 1.30)
----
0

statement ok
DELETE FROM tab3 WHERE col1 = 1.30

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col1 = 1.30
----

query I rowsort label-2415
SELECT pk FROM tab3 WHERE NOT (col1 = 1.30)
----
0

statement ok
DELETE FROM tab4 WHERE col1 = 1.30

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col1 = 1.30
----

query I rowsort label-2415
SELECT pk FROM tab4 WHERE NOT (col1 = 1.30)
----
0

statement ok
DELETE FROM tab0 WHERE col1 < 6.55

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col1 < 6.55
----

query I rowsort label-2430
SELECT pk FROM tab0 WHERE NOT (col1 < 6.55)
----

statement ok
DELETE FROM tab1 WHERE col1 < 6.55

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col1 < 6.55
----

query I rowsort label-2430
SELECT pk FROM tab1 WHERE NOT (col1 < 6.55)
----

statement ok
DELETE FROM tab2 WHERE col1 < 6.55

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col1 < 6.55
----

query I rowsort label-2430
SELECT pk FROM tab2 WHERE NOT (col1 < 6.55)
----

statement ok
DELETE FROM tab3 WHERE col1 < 6.55

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col1 < 6.55
----

query I rowsort label-2430
SELECT pk FROM tab3 WHERE NOT (col1 < 6.55)
----

statement ok
DELETE FROM tab4 WHERE col1 < 6.55

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col1 < 6.55
----

query I rowsort label-2430
SELECT pk FROM tab4 WHERE NOT (col1 < 6.55)
----

statement ok
DROP TABLE tab0

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,6,0.81,'gouig',1,9.87,'zoqej')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE UNIQUE INDEX idx_tab2_0 ON tab2 (col3)

statement ok
CREATE UNIQUE INDEX idx_tab2_2 ON tab2 (col4)

statement ok
CREATE UNIQUE INDEX idx_tab2_5 ON tab2 (col0,col1 DESC)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

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

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

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

statement ok
CREATE UNIQUE INDEX idx_tab3_5 ON tab3 (col1)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE UNIQUE INDEX idx_tab4_0 ON tab4 (col1 DESC,col4)

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

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

statement ok
CREATE INDEX idx_tab4_4 ON tab4 (col4 DESC,col3 DESC)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE col1 > 9.90

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col1 > 9.90
----

query I rowsort label-2445
SELECT pk FROM tab0 WHERE NOT (col1 > 9.90)
----
0

statement ok
DELETE FROM tab1 WHERE col1 > 9.90

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col1 > 9.90
----

query I rowsort label-2445
SELECT pk FROM tab1 WHERE NOT (col1 > 9.90)
----
0

statement ok
DELETE FROM tab2 WHERE col1 > 9.90

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col1 > 9.90
----

query I rowsort label-2445
SELECT pk FROM tab2 WHERE NOT (col1 > 9.90)
----
0

statement ok
DELETE FROM tab3 WHERE col1 > 9.90

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col1 > 9.90
----

query I rowsort label-2445
SELECT pk FROM tab3 WHERE NOT (col1 > 9.90)
----
0

statement ok
DELETE FROM tab4 WHERE col1 > 9.90

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col1 > 9.90
----

query I rowsort label-2445
SELECT pk FROM tab4 WHERE NOT (col1 > 9.90)
----
0

statement ok
DELETE FROM tab0 WHERE (col4 < 0.75)

query I rowsort label-empty
SELECT pk FROM tab0 WHERE (col4 < 0.75)
----

query I rowsort label-2460
SELECT pk FROM tab0 WHERE NOT ((col4 < 0.75))
----
0

statement ok
DELETE FROM tab1 WHERE (col4 < 0.75)

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (col4 < 0.75)
----

query I rowsort label-2460
SELECT pk FROM tab1 WHERE NOT ((col4 < 0.75))
----
0

statement ok
DELETE FROM tab2 WHERE (col4 < 0.75)

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (col4 < 0.75)
----

query I rowsort label-2460
SELECT pk FROM tab2 WHERE NOT ((col4 < 0.75))
----
0

statement ok
DELETE FROM tab3 WHERE (col4 < 0.75)

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (col4 < 0.75)
----

query I rowsort label-2460
SELECT pk FROM tab3 WHERE NOT ((col4 < 0.75))
----
0

statement ok
DELETE FROM tab4 WHERE (col4 < 0.75)

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (col4 < 0.75)
----

query I rowsort label-2460
SELECT pk FROM tab4 WHERE NOT ((col4 < 0.75))
----
0

statement ok
DELETE FROM tab0 WHERE col3 > 7

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col3 > 7
----

query I rowsort label-2475
SELECT pk FROM tab0 WHERE NOT (col3 > 7)
----
0

statement ok
DELETE FROM tab1 WHERE col3 > 7

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col3 > 7
----

query I rowsort label-2475
SELECT pk FROM tab1 WHERE NOT (col3 > 7)
----
0

statement ok
DELETE FROM tab2 WHERE col3 > 7

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col3 > 7
----

query I rowsort label-2475
SELECT pk FROM tab2 WHERE NOT (col3 > 7)
----
0

statement ok
DELETE FROM tab3 WHERE col3 > 7

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col3 > 7
----

query I rowsort label-2475
SELECT pk FROM tab3 WHERE NOT (col3 > 7)
----
0

statement ok
DELETE FROM tab4 WHERE col3 > 7

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col3 > 7
----

query I rowsort label-2475
SELECT pk FROM tab4 WHERE NOT (col3 > 7)
----
0

statement ok
DELETE FROM tab0 WHERE (col0 > 8 AND ((col4 <= 9.8)))

query I rowsort label-empty
SELECT pk FROM tab0 WHERE (col0 > 8 AND ((col4 <= 9.8)))
----

query I rowsort label-2490
SELECT pk FROM tab0 WHERE NOT ((col0 > 8 AND ((col4 <= 9.8))))
----
0

statement ok
DELETE FROM tab1 WHERE (col0 > 8 AND ((col4 <= 9.8)))

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (col0 > 8 AND ((col4 <= 9.8)))
----

query I rowsort label-2490
SELECT pk FROM tab1 WHERE NOT ((col0 > 8 AND ((col4 <= 9.8))))
----
0

statement ok
DELETE FROM tab2 WHERE (col0 > 8 AND ((col4 <= 9.8)))

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (col0 > 8 AND ((col4 <= 9.8)))
----

query I rowsort label-2490
SELECT pk FROM tab2 WHERE NOT ((col0 > 8 AND ((col4 <= 9.8))))
----
0

statement ok
DELETE FROM tab3 WHERE (col0 > 8 AND ((col4 <= 9.8)))

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (col0 > 8 AND ((col4 <= 9.8)))
----

query I rowsort label-2490
SELECT pk FROM tab3 WHERE NOT ((col0 > 8 AND ((col4 <= 9.8))))
----
0

statement ok
DELETE FROM tab4 WHERE (col0 > 8 AND ((col4 <= 9.8)))

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (col0 > 8 AND ((col4 <= 9.8)))
----

query I rowsort label-2490
SELECT pk FROM tab4 WHERE NOT ((col0 > 8 AND ((col4 <= 9.8))))
----
0

statement ok
DELETE FROM tab0 WHERE col0 IN (7,2)

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col0 IN (7,2)
----

query I rowsort label-2505
SELECT pk FROM tab0 WHERE NOT (col0 IN (7,2))
----
0

statement ok
DELETE FROM tab1 WHERE col0 IN (7,2)

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col0 IN (7,2)
----

query I rowsort label-2505
SELECT pk FROM tab1 WHERE NOT (col0 IN (7,2))
----
0

statement ok
DELETE FROM tab2 WHERE col0 IN (7,2)

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col0 IN (7,2)
----

query I rowsort label-2505
SELECT pk FROM tab2 WHERE NOT (col0 IN (7,2))
----
0

statement ok
DELETE FROM tab3 WHERE col0 IN (7,2)

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col0 IN (7,2)
----

query I rowsort label-2505
SELECT pk FROM tab3 WHERE NOT (col0 IN (7,2))
----
0

statement ok
DELETE FROM tab4 WHERE col0 IN (7,2)

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col0 IN (7,2)
----

query I rowsort label-2505
SELECT pk FROM tab4 WHERE NOT (col0 IN (7,2))
----
0

statement ok
DELETE FROM tab0 WHERE col0 <= 4 AND ((col3 >= 7) OR col0 > 8 AND col4 <= 5.33)

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col0 <= 4 AND ((col3 >= 7) OR col0 > 8 AND col4 <= 5.33)
----

query I rowsort label-2520
SELECT pk FROM tab0 WHERE NOT (col0 <= 4 AND ((col3 >= 7) OR col0 > 8 AND col4 <= 5.33))
----
0

statement ok
DELETE FROM tab1 WHERE col0 <= 4 AND ((col3 >= 7) OR col0 > 8 AND col4 <= 5.33)

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col0 <= 4 AND ((col3 >= 7) OR col0 > 8 AND col4 <= 5.33)
----

query I rowsort label-2520
SELECT pk FROM tab1 WHERE NOT (col0 <= 4 AND ((col3 >= 7) OR col0 > 8 AND col4 <= 5.33))
----
0

statement ok
DELETE FROM tab2 WHERE col0 <= 4 AND ((col3 >= 7) OR col0 > 8 AND col4 <= 5.33)

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col0 <= 4 AND ((col3 >= 7) OR col0 > 8 AND col4 <= 5.33)
----

query I rowsort label-2520
SELECT pk FROM tab2 WHERE NOT (col0 <= 4 AND ((col3 >= 7) OR col0 > 8 AND col4 <= 5.33))
----
0

statement ok
DELETE FROM tab3 WHERE col0 <= 4 AND ((col3 >= 7) OR col0 > 8 AND col4 <= 5.33)

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col0 <= 4 AND ((col3 >= 7) OR col0 > 8 AND col4 <= 5.33)
----

query I rowsort label-2520
SELECT pk FROM tab3 WHERE NOT (col0 <= 4 AND ((col3 >= 7) OR col0 > 8 AND col4 <= 5.33))
----
0

statement ok
DELETE FROM tab4 WHERE col0 <= 4 AND ((col3 >= 7) OR col0 > 8 AND col4 <= 5.33)

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col0 <= 4 AND ((col3 >= 7) OR col0 > 8 AND col4 <= 5.33)
----

query I rowsort label-2520
SELECT pk FROM tab4 WHERE NOT (col0 <= 4 AND ((col3 >= 7) OR col0 > 8 AND col4 <= 5.33))
----
0

statement ok
DELETE FROM tab0 WHERE col0 > 5

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col0 > 5
----

query I rowsort label-2535
SELECT pk FROM tab0 WHERE NOT (col0 > 5)
----

statement ok
DELETE FROM tab1 WHERE col0 > 5

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col0 > 5
----

query I rowsort label-2535
SELECT pk FROM tab1 WHERE NOT (col0 > 5)
----

statement ok
DELETE FROM tab2 WHERE col0 > 5

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col0 > 5
----

query I rowsort label-2535
SELECT pk FROM tab2 WHERE NOT (col0 > 5)
----

statement ok
DELETE FROM tab3 WHERE col0 > 5

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col0 > 5
----

query I rowsort label-2535
SELECT pk FROM tab3 WHERE NOT (col0 > 5)
----

statement ok
DELETE FROM tab4 WHERE col0 > 5

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col0 > 5
----

query I rowsort label-2535
SELECT pk FROM tab4 WHERE NOT (col0 > 5)
----

statement ok
DROP TABLE tab0

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,2,8.63,'beovp',0,5.57,'wzmug')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE UNIQUE INDEX idx_tab2_0 ON tab2 (col0,col3)

statement ok
CREATE INDEX idx_tab2_1 ON tab2 (col0,col4,col1 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab2_3 ON tab2 (col3,col1 DESC,col4)

statement ok
CREATE INDEX idx_tab2_4 ON tab2 (col1 DESC)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

statement ok
CREATE INDEX idx_tab3_0 ON tab3 (col4,col1)

statement ok
CREATE INDEX idx_tab3_1 ON tab3 (col3)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE UNIQUE INDEX idx_tab4_0 ON tab4 (col3 DESC,col4)

statement ok
CREATE UNIQUE INDEX idx_tab4_1 ON tab4 (col0)

statement ok
CREATE INDEX idx_tab4_3 ON tab4 (col1)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DROP TABLE tab0

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,8,3.64,'neyib',6,3.51,'kibvw')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE UNIQUE INDEX idx_tab2_0 ON tab2 (col4 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab2_2 ON tab2 (col3)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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 (col0,col3 DESC)

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

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

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE INDEX idx_tab4_1 ON tab4 (col4)

statement ok
CREATE UNIQUE INDEX idx_tab4_3 ON tab4 (col0 DESC)

statement ok
CREATE INDEX idx_tab4_5 ON tab4 (col1 DESC)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DROP TABLE tab0

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,6,5.65,'dghew',2,2.75,'bhbgj')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE UNIQUE INDEX idx_tab2_0 ON tab2 (col0 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab2_1 ON tab2 (col4)

statement ok
CREATE INDEX idx_tab2_4 ON tab2 (col1)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

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

statement ok
CREATE UNIQUE INDEX idx_tab3_1 ON tab3 (col0 DESC)

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

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE INDEX idx_tab4_0 ON tab4 (col0 DESC)

statement ok
CREATE INDEX idx_tab4_2 ON tab4 (col4 DESC,col1 DESC)

statement ok
CREATE INDEX idx_tab4_3 ON tab4 (col3)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE col0 >= 3

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col0 >= 3
----

query I rowsort label-2550
SELECT pk FROM tab0 WHERE NOT (col0 >= 3)
----

statement ok
DELETE FROM tab1 WHERE col0 >= 3

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col0 >= 3
----

query I rowsort label-2550
SELECT pk FROM tab1 WHERE NOT (col0 >= 3)
----

statement ok
DELETE FROM tab2 WHERE col0 >= 3

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col0 >= 3
----

query I rowsort label-2550
SELECT pk FROM tab2 WHERE NOT (col0 >= 3)
----

statement ok
DELETE FROM tab3 WHERE col0 >= 3

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col0 >= 3
----

query I rowsort label-2550
SELECT pk FROM tab3 WHERE NOT (col0 >= 3)
----

statement ok
DELETE FROM tab4 WHERE col0 >= 3

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col0 >= 3
----

query I rowsort label-2550
SELECT pk FROM tab4 WHERE NOT (col0 >= 3)
----

statement ok
DROP TABLE tab0

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,7,7.66,'pcvwz',6,5.34,'zsluv')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE UNIQUE INDEX idx_tab2_0 ON tab2 (col1)

statement ok
CREATE INDEX idx_tab2_1 ON tab2 (col0 DESC,col3)

statement ok
CREATE UNIQUE INDEX idx_tab2_2 ON tab2 (col4)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

statement ok
CREATE INDEX idx_tab3_0 ON tab3 (col3)

statement ok
CREATE INDEX idx_tab3_1 ON tab3 (col0 DESC)

statement ok
CREATE INDEX idx_tab3_3 ON tab3 (col1)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE UNIQUE INDEX idx_tab4_0 ON tab4 (col3 DESC)

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

statement ok
CREATE INDEX idx_tab4_2 ON tab4 (col0 DESC)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE col0 = 1

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col0 = 1
----

query I rowsort label-2565
SELECT pk FROM tab0 WHERE NOT (col0 = 1)
----
0

statement ok
DELETE FROM tab1 WHERE col0 = 1

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col0 = 1
----

query I rowsort label-2565
SELECT pk FROM tab1 WHERE NOT (col0 = 1)
----
0

statement ok
DELETE FROM tab2 WHERE col0 = 1

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col0 = 1
----

query I rowsort label-2565
SELECT pk FROM tab2 WHERE NOT (col0 = 1)
----
0

statement ok
DELETE FROM tab3 WHERE col0 = 1

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col0 = 1
----

query I rowsort label-2565
SELECT pk FROM tab3 WHERE NOT (col0 = 1)
----
0

statement ok
DELETE FROM tab4 WHERE col0 = 1

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col0 = 1
----

query I rowsort label-2565
SELECT pk FROM tab4 WHERE NOT (col0 = 1)
----
0

statement ok
DELETE FROM tab0 WHERE ((col3 <= 6 AND col1 < 9.82)) AND col0 > 9

query I rowsort label-empty
SELECT pk FROM tab0 WHERE ((col3 <= 6 AND col1 < 9.82)) AND col0 > 9
----

query I rowsort label-2580
SELECT pk FROM tab0 WHERE NOT (((col3 <= 6 AND col1 < 9.82)) AND col0 > 9)
----
0

statement ok
DELETE FROM tab1 WHERE ((col3 <= 6 AND col1 < 9.82)) AND col0 > 9

query I rowsort label-empty
SELECT pk FROM tab1 WHERE ((col3 <= 6 AND col1 < 9.82)) AND col0 > 9
----

query I rowsort label-2580
SELECT pk FROM tab1 WHERE NOT (((col3 <= 6 AND col1 < 9.82)) AND col0 > 9)
----
0

statement ok
DELETE FROM tab2 WHERE ((col3 <= 6 AND col1 < 9.82)) AND col0 > 9

query I rowsort label-empty
SELECT pk FROM tab2 WHERE ((col3 <= 6 AND col1 < 9.82)) AND col0 > 9
----

query I rowsort label-2580
SELECT pk FROM tab2 WHERE NOT (((col3 <= 6 AND col1 < 9.82)) AND col0 > 9)
----
0

statement ok
DELETE FROM tab3 WHERE ((col3 <= 6 AND col1 < 9.82)) AND col0 > 9

query I rowsort label-empty
SELECT pk FROM tab3 WHERE ((col3 <= 6 AND col1 < 9.82)) AND col0 > 9
----

query I rowsort label-2580
SELECT pk FROM tab3 WHERE NOT (((col3 <= 6 AND col1 < 9.82)) AND col0 > 9)
----
0

statement ok
DELETE FROM tab4 WHERE ((col3 <= 6 AND col1 < 9.82)) AND col0 > 9

query I rowsort label-empty
SELECT pk FROM tab4 WHERE ((col3 <= 6 AND col1 < 9.82)) AND col0 > 9
----

query I rowsort label-2580
SELECT pk FROM tab4 WHERE NOT (((col3 <= 6 AND col1 < 9.82)) AND col0 > 9)
----
0

statement ok
DELETE FROM tab0 WHERE col0 = 0

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col0 = 0
----

query I rowsort label-2595
SELECT pk FROM tab0 WHERE NOT (col0 = 0)
----
0

statement ok
DELETE FROM tab1 WHERE col0 = 0

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col0 = 0
----

query I rowsort label-2595
SELECT pk FROM tab1 WHERE NOT (col0 = 0)
----
0

statement ok
DELETE FROM tab2 WHERE col0 = 0

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col0 = 0
----

query I rowsort label-2595
SELECT pk FROM tab2 WHERE NOT (col0 = 0)
----
0

statement ok
DELETE FROM tab3 WHERE col0 = 0

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col0 = 0
----

query I rowsort label-2595
SELECT pk FROM tab3 WHERE NOT (col0 = 0)
----
0

statement ok
DELETE FROM tab4 WHERE col0 = 0

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col0 = 0
----

query I rowsort label-2595
SELECT pk FROM tab4 WHERE NOT (col0 = 0)
----
0

statement ok
DELETE FROM tab0 WHERE col3 <= 0

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col3 <= 0
----

query I rowsort label-2610
SELECT pk FROM tab0 WHERE NOT (col3 <= 0)
----
0

statement ok
DELETE FROM tab1 WHERE col3 <= 0

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col3 <= 0
----

query I rowsort label-2610
SELECT pk FROM tab1 WHERE NOT (col3 <= 0)
----
0

statement ok
DELETE FROM tab2 WHERE col3 <= 0

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col3 <= 0
----

query I rowsort label-2610
SELECT pk FROM tab2 WHERE NOT (col3 <= 0)
----
0

statement ok
DELETE FROM tab3 WHERE col3 <= 0

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col3 <= 0
----

query I rowsort label-2610
SELECT pk FROM tab3 WHERE NOT (col3 <= 0)
----
0

statement ok
DELETE FROM tab4 WHERE col3 <= 0

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col3 <= 0
----

query I rowsort label-2610
SELECT pk FROM tab4 WHERE NOT (col3 <= 0)
----
0

statement ok
DELETE FROM tab0 WHERE col3 = 3 AND col0 > 5 OR col0 >= 2 OR col1 <= 1.57 AND (col3 > 8)

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col3 = 3 AND col0 > 5 OR col0 >= 2 OR col1 <= 1.57 AND (col3 > 8)
----

query I rowsort label-2625
SELECT pk FROM tab0 WHERE NOT (col3 = 3 AND col0 > 5 OR col0 >= 2 OR col1 <= 1.57 AND (col3 > 8))
----

statement ok
DELETE FROM tab1 WHERE col3 = 3 AND col0 > 5 OR col0 >= 2 OR col1 <= 1.57 AND (col3 > 8)

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col3 = 3 AND col0 > 5 OR col0 >= 2 OR col1 <= 1.57 AND (col3 > 8)
----

query I rowsort label-2625
SELECT pk FROM tab1 WHERE NOT (col3 = 3 AND col0 > 5 OR col0 >= 2 OR col1 <= 1.57 AND (col3 > 8))
----

statement ok
DELETE FROM tab2 WHERE col3 = 3 AND col0 > 5 OR col0 >= 2 OR col1 <= 1.57 AND (col3 > 8)

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col3 = 3 AND col0 > 5 OR col0 >= 2 OR col1 <= 1.57 AND (col3 > 8)
----

query I rowsort label-2625
SELECT pk FROM tab2 WHERE NOT (col3 = 3 AND col0 > 5 OR col0 >= 2 OR col1 <= 1.57 AND (col3 > 8))
----

statement ok
DELETE FROM tab3 WHERE col3 = 3 AND col0 > 5 OR col0 >= 2 OR col1 <= 1.57 AND (col3 > 8)

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col3 = 3 AND col0 > 5 OR col0 >= 2 OR col1 <= 1.57 AND (col3 > 8)
----

query I rowsort label-2625
SELECT pk FROM tab3 WHERE NOT (col3 = 3 AND col0 > 5 OR col0 >= 2 OR col1 <= 1.57 AND (col3 > 8))
----

statement ok
DELETE FROM tab4 WHERE col3 = 3 AND col0 > 5 OR col0 >= 2 OR col1 <= 1.57 AND (col3 > 8)

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col3 = 3 AND col0 > 5 OR col0 >= 2 OR col1 <= 1.57 AND (col3 > 8)
----

query I rowsort label-2625
SELECT pk FROM tab4 WHERE NOT (col3 = 3 AND col0 > 5 OR col0 >= 2 OR col1 <= 1.57 AND (col3 > 8))
----

statement ok
DROP TABLE tab0

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,8,3.22,'lnwoc',4,8.20,'fndad')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE INDEX idx_tab2_2 ON tab2 (col4 DESC,col0 DESC)

statement ok
CREATE INDEX idx_tab2_4 ON tab2 (col4 DESC,col3)

statement ok
CREATE UNIQUE INDEX idx_tab2_5 ON tab2 (col1 DESC,col0 DESC)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

statement ok
CREATE INDEX idx_tab3_0 ON tab3 (col1 DESC)

statement ok
CREATE INDEX idx_tab3_1 ON tab3 (col3)

statement ok
CREATE INDEX idx_tab3_2 ON tab3 (col0 DESC)

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

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE INDEX idx_tab4_0 ON tab4 (col4,col0)

statement ok
CREATE UNIQUE INDEX idx_tab4_1 ON tab4 (col3)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE col3 = 3

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col3 = 3
----

query I rowsort label-2640
SELECT pk FROM tab0 WHERE NOT (col3 = 3)
----
0

statement ok
DELETE FROM tab1 WHERE col3 = 3

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col3 = 3
----

query I rowsort label-2640
SELECT pk FROM tab1 WHERE NOT (col3 = 3)
----
0

statement ok
DELETE FROM tab2 WHERE col3 = 3

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col3 = 3
----

query I rowsort label-2640
SELECT pk FROM tab2 WHERE NOT (col3 = 3)
----
0

statement ok
DELETE FROM tab3 WHERE col3 = 3

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col3 = 3
----

query I rowsort label-2640
SELECT pk FROM tab3 WHERE NOT (col3 = 3)
----
0

statement ok
DELETE FROM tab4 WHERE col3 = 3

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col3 = 3
----

query I rowsort label-2640
SELECT pk FROM tab4 WHERE NOT (col3 = 3)
----
0

statement ok
DELETE FROM tab0 WHERE col1 >= 1.74

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col1 >= 1.74
----

query I rowsort label-2655
SELECT pk FROM tab0 WHERE NOT (col1 >= 1.74)
----

statement ok
DELETE FROM tab1 WHERE col1 >= 1.74

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col1 >= 1.74
----

query I rowsort label-2655
SELECT pk FROM tab1 WHERE NOT (col1 >= 1.74)
----

statement ok
DELETE FROM tab2 WHERE col1 >= 1.74

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col1 >= 1.74
----

query I rowsort label-2655
SELECT pk FROM tab2 WHERE NOT (col1 >= 1.74)
----

statement ok
DELETE FROM tab3 WHERE col1 >= 1.74

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col1 >= 1.74
----

query I rowsort label-2655
SELECT pk FROM tab3 WHERE NOT (col1 >= 1.74)
----

statement ok
DELETE FROM tab4 WHERE col1 >= 1.74

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col1 >= 1.74
----

query I rowsort label-2655
SELECT pk FROM tab4 WHERE NOT (col1 >= 1.74)
----

statement ok
DROP TABLE tab0

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,5,9.28,'gxthw',2,1.96,'rntey')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE UNIQUE INDEX idx_tab2_0 ON tab2 (col4,col1 DESC)

statement ok
CREATE INDEX idx_tab2_1 ON tab2 (col1,col0 DESC,col3 DESC)

statement ok
CREATE INDEX idx_tab2_2 ON tab2 (col4,col0 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab2_4 ON tab2 (col0 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab2_5 ON tab2 (col3,col4 DESC)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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,col3 DESC)

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

statement ok
CREATE INDEX idx_tab3_2 ON tab3 (col3,col1)

statement ok
CREATE UNIQUE INDEX idx_tab3_3 ON tab3 (col4,col1)

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

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE INDEX idx_tab4_0 ON tab4 (col3 DESC,col1)

statement ok
CREATE INDEX idx_tab4_1 ON tab4 (col1,col4)

statement ok
CREATE INDEX idx_tab4_2 ON tab4 (col4,col3)

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

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE (col0 > 9 AND col3 >= 1 OR col3 < 7 OR ((col3 < 1)))

query I rowsort label-empty
SELECT pk FROM tab0 WHERE (col0 > 9 AND col3 >= 1 OR col3 < 7 OR ((col3 < 1)))
----

query I rowsort label-2670
SELECT pk FROM tab0 WHERE NOT ((col0 > 9 AND col3 >= 1 OR col3 < 7 OR ((col3 < 1))))
----

statement ok
DELETE FROM tab1 WHERE (col0 > 9 AND col3 >= 1 OR col3 < 7 OR ((col3 < 1)))

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (col0 > 9 AND col3 >= 1 OR col3 < 7 OR ((col3 < 1)))
----

query I rowsort label-2670
SELECT pk FROM tab1 WHERE NOT ((col0 > 9 AND col3 >= 1 OR col3 < 7 OR ((col3 < 1))))
----

statement ok
DELETE FROM tab2 WHERE (col0 > 9 AND col3 >= 1 OR col3 < 7 OR ((col3 < 1)))

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (col0 > 9 AND col3 >= 1 OR col3 < 7 OR ((col3 < 1)))
----

query I rowsort label-2670
SELECT pk FROM tab2 WHERE NOT ((col0 > 9 AND col3 >= 1 OR col3 < 7 OR ((col3 < 1))))
----

statement ok
DELETE FROM tab3 WHERE (col0 > 9 AND col3 >= 1 OR col3 < 7 OR ((col3 < 1)))

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (col0 > 9 AND col3 >= 1 OR col3 < 7 OR ((col3 < 1)))
----

query I rowsort label-2670
SELECT pk FROM tab3 WHERE NOT ((col0 > 9 AND col3 >= 1 OR col3 < 7 OR ((col3 < 1))))
----

statement ok
DELETE FROM tab4 WHERE (col0 > 9 AND col3 >= 1 OR col3 < 7 OR ((col3 < 1)))

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (col0 > 9 AND col3 >= 1 OR col3 < 7 OR ((col3 < 1)))
----

query I rowsort label-2670
SELECT pk FROM tab4 WHERE NOT ((col0 > 9 AND col3 >= 1 OR col3 < 7 OR ((col3 < 1))))
----

statement ok
DROP TABLE tab0

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,1,8.70,'muctp',3,8.54,'ywvdb')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE UNIQUE INDEX idx_tab2_0 ON tab2 (col3)

statement ok
CREATE INDEX idx_tab2_3 ON tab2 (col1 DESC,col0 DESC)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

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

statement ok
CREATE UNIQUE INDEX idx_tab3_1 ON tab3 (col0 DESC)

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

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE UNIQUE INDEX idx_tab4_0 ON tab4 (col4)

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

statement ok
CREATE INDEX idx_tab4_4 ON tab4 (col0)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DROP TABLE tab0

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,2,3.33,'dyoah',0,0.91,'quzdz')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE UNIQUE INDEX idx_tab2_0 ON tab2 (col3 DESC)

statement ok
CREATE INDEX idx_tab2_1 ON tab2 (col1 DESC,col0)

statement ok
CREATE UNIQUE INDEX idx_tab2_5 ON tab2 (col1 DESC,col4 DESC)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

statement ok
CREATE UNIQUE INDEX idx_tab3_1 ON tab3 (col0)

statement ok
CREATE UNIQUE INDEX idx_tab3_2 ON tab3 (col1)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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 (col1)

statement ok
CREATE INDEX idx_tab4_3 ON tab4 (col4)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE (col0 > 5)

query I rowsort label-empty
SELECT pk FROM tab0 WHERE (col0 > 5)
----

query I rowsort label-2685
SELECT pk FROM tab0 WHERE NOT ((col0 > 5))
----
0

statement ok
DELETE FROM tab1 WHERE (col0 > 5)

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (col0 > 5)
----

query I rowsort label-2685
SELECT pk FROM tab1 WHERE NOT ((col0 > 5))
----
0

statement ok
DELETE FROM tab2 WHERE (col0 > 5)

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (col0 > 5)
----

query I rowsort label-2685
SELECT pk FROM tab2 WHERE NOT ((col0 > 5))
----
0

statement ok
DELETE FROM tab3 WHERE (col0 > 5)

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (col0 > 5)
----

query I rowsort label-2685
SELECT pk FROM tab3 WHERE NOT ((col0 > 5))
----
0

statement ok
DELETE FROM tab4 WHERE (col0 > 5)

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (col0 > 5)
----

query I rowsort label-2685
SELECT pk FROM tab4 WHERE NOT ((col0 > 5))
----
0

statement ok
DELETE FROM tab0 WHERE col4 < 4.16

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col4 < 4.16
----

query I rowsort label-2700
SELECT pk FROM tab0 WHERE NOT (col4 < 4.16)
----

statement ok
DELETE FROM tab1 WHERE col4 < 4.16

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col4 < 4.16
----

query I rowsort label-2700
SELECT pk FROM tab1 WHERE NOT (col4 < 4.16)
----

statement ok
DELETE FROM tab2 WHERE col4 < 4.16

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col4 < 4.16
----

query I rowsort label-2700
SELECT pk FROM tab2 WHERE NOT (col4 < 4.16)
----

statement ok
DELETE FROM tab3 WHERE col4 < 4.16

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col4 < 4.16
----

query I rowsort label-2700
SELECT pk FROM tab3 WHERE NOT (col4 < 4.16)
----

statement ok
DELETE FROM tab4 WHERE col4 < 4.16

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col4 < 4.16
----

query I rowsort label-2700
SELECT pk FROM tab4 WHERE NOT (col4 < 4.16)
----

statement ok
DROP TABLE tab0

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,5,8.8,'gwmpb',1,5.14,'kxrkw')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE UNIQUE INDEX idx_tab2_0 ON tab2 (col1 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab2_1 ON tab2 (col4 DESC)

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

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

statement ok
CREATE INDEX idx_tab3_0 ON tab3 (col4)

statement ok
CREATE INDEX idx_tab3_1 ON tab3 (col0 DESC)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE INDEX idx_tab4_1 ON tab4 (col3)

statement ok
CREATE UNIQUE INDEX idx_tab4_3 ON tab4 (col0 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab4_4 ON tab4 (col1 DESC)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE col1 = 9.29

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col1 = 9.29
----

query I rowsort label-2715
SELECT pk FROM tab0 WHERE NOT (col1 = 9.29)
----
0

statement ok
DELETE FROM tab1 WHERE col1 = 9.29

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col1 = 9.29
----

query I rowsort label-2715
SELECT pk FROM tab1 WHERE NOT (col1 = 9.29)
----
0

statement ok
DELETE FROM tab2 WHERE col1 = 9.29

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col1 = 9.29
----

query I rowsort label-2715
SELECT pk FROM tab2 WHERE NOT (col1 = 9.29)
----
0

statement ok
DELETE FROM tab3 WHERE col1 = 9.29

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col1 = 9.29
----

query I rowsort label-2715
SELECT pk FROM tab3 WHERE NOT (col1 = 9.29)
----
0

statement ok
DELETE FROM tab4 WHERE col1 = 9.29

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col1 = 9.29
----

query I rowsort label-2715
SELECT pk FROM tab4 WHERE NOT (col1 = 9.29)
----
0

statement ok
DELETE FROM tab0 WHERE col3 > 9 AND ((col3 < 3))

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col3 > 9 AND ((col3 < 3))
----

query I rowsort label-2730
SELECT pk FROM tab0 WHERE NOT (col3 > 9 AND ((col3 < 3)))
----
0

statement ok
DELETE FROM tab1 WHERE col3 > 9 AND ((col3 < 3))

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col3 > 9 AND ((col3 < 3))
----

query I rowsort label-2730
SELECT pk FROM tab1 WHERE NOT (col3 > 9 AND ((col3 < 3)))
----
0

statement ok
DELETE FROM tab2 WHERE col3 > 9 AND ((col3 < 3))

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col3 > 9 AND ((col3 < 3))
----

query I rowsort label-2730
SELECT pk FROM tab2 WHERE NOT (col3 > 9 AND ((col3 < 3)))
----
0

statement ok
DELETE FROM tab3 WHERE col3 > 9 AND ((col3 < 3))

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col3 > 9 AND ((col3 < 3))
----

query I rowsort label-2730
SELECT pk FROM tab3 WHERE NOT (col3 > 9 AND ((col3 < 3)))
----
0

statement ok
DELETE FROM tab4 WHERE col3 > 9 AND ((col3 < 3))

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col3 > 9 AND ((col3 < 3))
----

query I rowsort label-2730
SELECT pk FROM tab4 WHERE NOT (col3 > 9 AND ((col3 < 3)))
----
0

statement ok
DELETE FROM tab0 WHERE col4 >= 0.92 OR col3 >= 7

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col4 >= 0.92 OR col3 >= 7
----

query I rowsort label-2745
SELECT pk FROM tab0 WHERE NOT (col4 >= 0.92 OR col3 >= 7)
----

statement ok
DELETE FROM tab1 WHERE col4 >= 0.92 OR col3 >= 7

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col4 >= 0.92 OR col3 >= 7
----

query I rowsort label-2745
SELECT pk FROM tab1 WHERE NOT (col4 >= 0.92 OR col3 >= 7)
----

statement ok
DELETE FROM tab2 WHERE col4 >= 0.92 OR col3 >= 7

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col4 >= 0.92 OR col3 >= 7
----

query I rowsort label-2745
SELECT pk FROM tab2 WHERE NOT (col4 >= 0.92 OR col3 >= 7)
----

statement ok
DELETE FROM tab3 WHERE col4 >= 0.92 OR col3 >= 7

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col4 >= 0.92 OR col3 >= 7
----

query I rowsort label-2745
SELECT pk FROM tab3 WHERE NOT (col4 >= 0.92 OR col3 >= 7)
----

statement ok
DELETE FROM tab4 WHERE col4 >= 0.92 OR col3 >= 7

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col4 >= 0.92 OR col3 >= 7
----

query I rowsort label-2745
SELECT pk FROM tab4 WHERE NOT (col4 >= 0.92 OR col3 >= 7)
----

statement ok
DROP TABLE tab0

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,2,2.93,'lsfdi',3,9.3,'pifvz')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE UNIQUE INDEX idx_tab2_0 ON tab2 (col3,col4 DESC,col1)

statement ok
CREATE INDEX idx_tab2_1 ON tab2 (col4 DESC,col1)

statement ok
CREATE INDEX idx_tab2_2 ON tab2 (col1 DESC,col0 DESC)

statement ok
CREATE INDEX idx_tab2_3 ON tab2 (col1 DESC,col3 DESC,col4,col0 DESC)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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_2 ON tab3 (col1 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab3_5 ON tab3 (col0 DESC)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE INDEX idx_tab4_1 ON tab4 (col1 DESC)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE (col3 <= 4)

query I rowsort label-empty
SELECT pk FROM tab0 WHERE (col3 <= 4)
----

query I rowsort label-2760
SELECT pk FROM tab0 WHERE NOT ((col3 <= 4))
----

statement ok
DELETE FROM tab1 WHERE (col3 <= 4)

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (col3 <= 4)
----

query I rowsort label-2760
SELECT pk FROM tab1 WHERE NOT ((col3 <= 4))
----

statement ok
DELETE FROM tab2 WHERE (col3 <= 4)

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (col3 <= 4)
----

query I rowsort label-2760
SELECT pk FROM tab2 WHERE NOT ((col3 <= 4))
----

statement ok
DELETE FROM tab3 WHERE (col3 <= 4)

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (col3 <= 4)
----

query I rowsort label-2760
SELECT pk FROM tab3 WHERE NOT ((col3 <= 4))
----

statement ok
DELETE FROM tab4 WHERE (col3 <= 4)

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (col3 <= 4)
----

query I rowsort label-2760
SELECT pk FROM tab4 WHERE NOT ((col3 <= 4))
----

statement ok
DROP TABLE tab0

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,4,5.30,'pbyyr',1,9.71,'onrcw')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE UNIQUE INDEX idx_tab2_0 ON tab2 (col1 DESC,col3)

statement ok
CREATE INDEX idx_tab2_1 ON tab2 (col1,col0 DESC,col3 DESC)

statement ok
CREATE INDEX idx_tab2_3 ON tab2 (col4 DESC)

statement ok
CREATE INDEX idx_tab2_5 ON tab2 (col0 DESC)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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,col3 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab3_2 ON tab3 (col1)

statement ok
CREATE UNIQUE INDEX idx_tab3_4 ON tab3 (col0)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE UNIQUE INDEX idx_tab4_0 ON tab4 (col1 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab4_1 ON tab4 (col4 DESC)

statement ok
CREATE INDEX idx_tab4_5 ON tab4 (col0,col3)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE (col4 <= 3.10) AND ((col1 = 4.78) AND ((((col0 >= 8) AND (col0 < 0 AND col3 >= 4 OR col3 < 4 AND col0 > 6)) OR col0 >= 8) AND (col4 > 1.44) OR col3 >= 8 AND (((col3 <= 7)) AND (col3 >= 6)) AND col4 < 4.94 OR (((col4 = 3.45 AND ((col0 > 9) AND col3 <= 3))) AND col1 > 1.78) OR (((col0 BETWEEN 6 AND 2)) AND (col1 IN (5.14,1.4)))) AND col0 IS NULL)

query I rowsort label-empty
SELECT pk FROM tab0 WHERE (col4 <= 3.10) AND ((col1 = 4.78) AND ((((col0 >= 8) AND (col0 < 0 AND col3 >= 4 OR col3 < 4 AND col0 > 6)) OR col0 >= 8) AND (col4 > 1.44) OR col3 >= 8 AND (((col3 <= 7)) AND (col3 >= 6)) AND col4 < 4.94 OR (((col4 = 3.45 AND ((col0 > 9) AND col3 <= 3))) AND col1 > 1.78) OR (((col0 BETWEEN 6 AND 2)) AND (col1 IN (5.14,1.4)))) AND col0 IS NULL)
----

query I rowsort label-2775
SELECT pk FROM tab0 WHERE NOT ((col4 <= 3.10) AND ((col1 = 4.78) AND ((((col0 >= 8) AND (col0 < 0 AND col3 >= 4 OR col3 < 4 AND col0 > 6)) OR col0 >= 8) AND (col4 > 1.44) OR col3 >= 8 AND (((col3 <= 7)) AND (col3 >= 6)) AND col4 < 4.94 OR (((col4 = 3.45 AND ((col0 > 9) AND col3 <= 3))) AND col1 > 1.78) OR (((col0 BETWEEN 6 AND 2)) AND (col1 IN (5.14,1.4)))) AND col0 IS NULL))
----
0

statement ok
DELETE FROM tab1 WHERE (col4 <= 3.10) AND ((col1 = 4.78) AND ((((col0 >= 8) AND (col0 < 0 AND col3 >= 4 OR col3 < 4 AND col0 > 6)) OR col0 >= 8) AND (col4 > 1.44) OR col3 >= 8 AND (((col3 <= 7)) AND (col3 >= 6)) AND col4 < 4.94 OR (((col4 = 3.45 AND ((col0 > 9) AND col3 <= 3))) AND col1 > 1.78) OR (((col0 BETWEEN 6 AND 2)) AND (col1 IN (5.14,1.4)))) AND col0 IS NULL)

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (col4 <= 3.10) AND ((col1 = 4.78) AND ((((col0 >= 8) AND (col0 < 0 AND col3 >= 4 OR col3 < 4 AND col0 > 6)) OR col0 >= 8) AND (col4 > 1.44) OR col3 >= 8 AND (((col3 <= 7)) AND (col3 >= 6)) AND col4 < 4.94 OR (((col4 = 3.45 AND ((col0 > 9) AND col3 <= 3))) AND col1 > 1.78) OR (((col0 BETWEEN 6 AND 2)) AND (col1 IN (5.14,1.4)))) AND col0 IS NULL)
----

query I rowsort label-2775
SELECT pk FROM tab1 WHERE NOT ((col4 <= 3.10) AND ((col1 = 4.78) AND ((((col0 >= 8) AND (col0 < 0 AND col3 >= 4 OR col3 < 4 AND col0 > 6)) OR col0 >= 8) AND (col4 > 1.44) OR col3 >= 8 AND (((col3 <= 7)) AND (col3 >= 6)) AND col4 < 4.94 OR (((col4 = 3.45 AND ((col0 > 9) AND col3 <= 3))) AND col1 > 1.78) OR (((col0 BETWEEN 6 AND 2)) AND (col1 IN (5.14,1.4)))) AND col0 IS NULL))
----
0

statement ok
DELETE FROM tab2 WHERE (col4 <= 3.10) AND ((col1 = 4.78) AND ((((col0 >= 8) AND (col0 < 0 AND col3 >= 4 OR col3 < 4 AND col0 > 6)) OR col0 >= 8) AND (col4 > 1.44) OR col3 >= 8 AND (((col3 <= 7)) AND (col3 >= 6)) AND col4 < 4.94 OR (((col4 = 3.45 AND ((col0 > 9) AND col3 <= 3))) AND col1 > 1.78) OR (((col0 BETWEEN 6 AND 2)) AND (col1 IN (5.14,1.4)))) AND col0 IS NULL)

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (col4 <= 3.10) AND ((col1 = 4.78) AND ((((col0 >= 8) AND (col0 < 0 AND col3 >= 4 OR col3 < 4 AND col0 > 6)) OR col0 >= 8) AND (col4 > 1.44) OR col3 >= 8 AND (((col3 <= 7)) AND (col3 >= 6)) AND col4 < 4.94 OR (((col4 = 3.45 AND ((col0 > 9) AND col3 <= 3))) AND col1 > 1.78) OR (((col0 BETWEEN 6 AND 2)) AND (col1 IN (5.14,1.4)))) AND col0 IS NULL)
----

query I rowsort label-2775
SELECT pk FROM tab2 WHERE NOT ((col4 <= 3.10) AND ((col1 = 4.78) AND ((((col0 >= 8) AND (col0 < 0 AND col3 >= 4 OR col3 < 4 AND col0 > 6)) OR col0 >= 8) AND (col4 > 1.44) OR col3 >= 8 AND (((col3 <= 7)) AND (col3 >= 6)) AND col4 < 4.94 OR (((col4 = 3.45 AND ((col0 > 9) AND col3 <= 3))) AND col1 > 1.78) OR (((col0 BETWEEN 6 AND 2)) AND (col1 IN (5.14,1.4)))) AND col0 IS NULL))
----
0

statement ok
DELETE FROM tab3 WHERE (col4 <= 3.10) AND ((col1 = 4.78) AND ((((col0 >= 8) AND (col0 < 0 AND col3 >= 4 OR col3 < 4 AND col0 > 6)) OR col0 >= 8) AND (col4 > 1.44) OR col3 >= 8 AND (((col3 <= 7)) AND (col3 >= 6)) AND col4 < 4.94 OR (((col4 = 3.45 AND ((col0 > 9) AND col3 <= 3))) AND col1 > 1.78) OR (((col0 BETWEEN 6 AND 2)) AND (col1 IN (5.14,1.4)))) AND col0 IS NULL)

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (col4 <= 3.10) AND ((col1 = 4.78) AND ((((col0 >= 8) AND (col0 < 0 AND col3 >= 4 OR col3 < 4 AND col0 > 6)) OR col0 >= 8) AND (col4 > 1.44) OR col3 >= 8 AND (((col3 <= 7)) AND (col3 >= 6)) AND col4 < 4.94 OR (((col4 = 3.45 AND ((col0 > 9) AND col3 <= 3))) AND col1 > 1.78) OR (((col0 BETWEEN 6 AND 2)) AND (col1 IN (5.14,1.4)))) AND col0 IS NULL)
----

query I rowsort label-2775
SELECT pk FROM tab3 WHERE NOT ((col4 <= 3.10) AND ((col1 = 4.78) AND ((((col0 >= 8) AND (col0 < 0 AND col3 >= 4 OR col3 < 4 AND col0 > 6)) OR col0 >= 8) AND (col4 > 1.44) OR col3 >= 8 AND (((col3 <= 7)) AND (col3 >= 6)) AND col4 < 4.94 OR (((col4 = 3.45 AND ((col0 > 9) AND col3 <= 3))) AND col1 > 1.78) OR (((col0 BETWEEN 6 AND 2)) AND (col1 IN (5.14,1.4)))) AND col0 IS NULL))
----
0

statement ok
DELETE FROM tab4 WHERE (col4 <= 3.10) AND ((col1 = 4.78) AND ((((col0 >= 8) AND (col0 < 0 AND col3 >= 4 OR col3 < 4 AND col0 > 6)) OR col0 >= 8) AND (col4 > 1.44) OR col3 >= 8 AND (((col3 <= 7)) AND (col3 >= 6)) AND col4 < 4.94 OR (((col4 = 3.45 AND ((col0 > 9) AND col3 <= 3))) AND col1 > 1.78) OR (((col0 BETWEEN 6 AND 2)) AND (col1 IN (5.14,1.4)))) AND col0 IS NULL)

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (col4 <= 3.10) AND ((col1 = 4.78) AND ((((col0 >= 8) AND (col0 < 0 AND col3 >= 4 OR col3 < 4 AND col0 > 6)) OR col0 >= 8) AND (col4 > 1.44) OR col3 >= 8 AND (((col3 <= 7)) AND (col3 >= 6)) AND col4 < 4.94 OR (((col4 = 3.45 AND ((col0 > 9) AND col3 <= 3))) AND col1 > 1.78) OR (((col0 BETWEEN 6 AND 2)) AND (col1 IN (5.14,1.4)))) AND col0 IS NULL)
----

query I rowsort label-2775
SELECT pk FROM tab4 WHERE NOT ((col4 <= 3.10) AND ((col1 = 4.78) AND ((((col0 >= 8) AND (col0 < 0 AND col3 >= 4 OR col3 < 4 AND col0 > 6)) OR col0 >= 8) AND (col4 > 1.44) OR col3 >= 8 AND (((col3 <= 7)) AND (col3 >= 6)) AND col4 < 4.94 OR (((col4 = 3.45 AND ((col0 > 9) AND col3 <= 3))) AND col1 > 1.78) OR (((col0 BETWEEN 6 AND 2)) AND (col1 IN (5.14,1.4)))) AND col0 IS NULL))
----
0

statement ok
DELETE FROM tab0 WHERE (((col3 > 2) AND (((col0 < 6 OR col3 <= 1) AND col1 > 6.3) AND (col4 >= 2.12) AND (col3 >= 0 OR col3 >= 4 OR (col3 >= 0 AND col0 >= 0 AND col3 IS NULL OR col3 > 5)) AND col3 IS NULL AND col0 < 0 OR (col0 <= 7 AND (col0 > 8) OR ((col3 = 2) AND ((((((col3 IN (3,5,2,2,6)) OR col1 BETWEEN 1.15 AND 5.79)))) OR (col4 < 3.11) AND col0 <= 6)) OR col0 > 2 AND col0 = 2 AND (col0 IN (2,1,2,4,0,3) AND col1 < 7.95) AND ((col3 IS NULL AND ((col3 = 9 OR col0 > 6 AND col0 IS NULL OR (col0 < 5 AND col3 IS NULL OR (((col4 IN (7.52)) AND col0 IS NULL AND col3 < 7) OR col3 > 1 AND (col1 > 8.12))) AND col0 > 7 AND (((col0 >= 9 AND col1 <= 2.46 OR (col0 = 5)))) OR ((col4 < 4.43) AND col0 <= 1) AND ((col3 > 2)) AND (col0 IN (5) OR col4 <= 9.16)))) AND ((col1 > 5.90)) AND col0 < 9) AND col3 > 2) AND col4 > 6.85 OR col0 IN (0,0,6,0,8) OR col3 BETWEEN 9 AND 0 OR col0 < 8 OR col0 IN (0,3,2)) OR col0 <= 7) AND col1 = 0.81 OR col4 < 3.87 AND col0 <= 3)

query I rowsort label-empty
SELECT pk FROM tab0 WHERE (((col3 > 2) AND (((col0 < 6 OR col3 <= 1) AND col1 > 6.3) AND (col4 >= 2.12) AND (col3 >= 0 OR col3 >= 4 OR (col3 >= 0 AND col0 >= 0 AND col3 IS NULL OR col3 > 5)) AND col3 IS NULL AND col0 < 0 OR (col0 <= 7 AND (col0 > 8) OR ((col3 = 2) AND ((((((col3 IN (3,5,2,2,6)) OR col1 BETWEEN 1.15 AND 5.79)))) OR (col4 < 3.11) AND col0 <= 6)) OR col0 > 2 AND col0 = 2 AND (col0 IN (2,1,2,4,0,3) AND col1 < 7.95) AND ((col3 IS NULL AND ((col3 = 9 OR col0 > 6 AND col0 IS NULL OR (col0 < 5 AND col3 IS NULL OR (((col4 IN (7.52)) AND col0 IS NULL AND col3 < 7) OR col3 > 1 AND (col1 > 8.12))) AND col0 > 7 AND (((col0 >= 9 AND col1 <= 2.46 OR (col0 = 5)))) OR ((col4 < 4.43) AND col0 <= 1) AND ((col3 > 2)) AND (col0 IN (5) OR col4 <= 9.16)))) AND ((col1 > 5.90)) AND col0 < 9) AND col3 > 2) AND col4 > 6.85 OR col0 IN (0,0,6,0,8) OR col3 BETWEEN 9 AND 0 OR col0 < 8 OR col0 IN (0,3,2)) OR col0 <= 7) AND col1 = 0.81 OR col4 < 3.87 AND col0 <= 3)
----

query I rowsort label-2790
SELECT pk FROM tab0 WHERE NOT ((((col3 > 2) AND (((col0 < 6 OR col3 <= 1) AND col1 > 6.3) AND (col4 >= 2.12) AND (col3 >= 0 OR col3 >= 4 OR (col3 >= 0 AND col0 >= 0 AND col3 IS NULL OR col3 > 5)) AND col3 IS NULL AND col0 < 0 OR (col0 <= 7 AND (col0 > 8) OR ((col3 = 2) AND ((((((col3 IN (3,5,2,2,6)) OR col1 BETWEEN 1.15 AND 5.79)))) OR (col4 < 3.11) AND col0 <= 6)) OR col0 > 2 AND col0 = 2 AND (col0 IN (2,1,2,4,0,3) AND col1 < 7.95) AND ((col3 IS NULL AND ((col3 = 9 OR col0 > 6 AND col0 IS NULL OR (col0 < 5 AND col3 IS NULL OR (((col4 IN (7.52)) AND col0 IS NULL AND col3 < 7) OR col3 > 1 AND (col1 > 8.12))) AND col0 > 7 AND (((col0 >= 9 AND col1 <= 2.46 OR (col0 = 5)))) OR ((col4 < 4.43) AND col0 <= 1) AND ((col3 > 2)) AND (col0 IN (5) OR col4 <= 9.16)))) AND ((col1 > 5.90)) AND col0 < 9) AND col3 > 2) AND col4 > 6.85 OR col0 IN (0,0,6,0,8) OR col3 BETWEEN 9 AND 0 OR col0 < 8 OR col0 IN (0,3,2)) OR col0 <= 7) AND col1 = 0.81 OR col4 < 3.87 AND col0 <= 3))
----
0

statement ok
DELETE FROM tab1 WHERE (((col3 > 2) AND (((col0 < 6 OR col3 <= 1) AND col1 > 6.3) AND (col4 >= 2.12) AND (col3 >= 0 OR col3 >= 4 OR (col3 >= 0 AND col0 >= 0 AND col3 IS NULL OR col3 > 5)) AND col3 IS NULL AND col0 < 0 OR (col0 <= 7 AND (col0 > 8) OR ((col3 = 2) AND ((((((col3 IN (3,5,2,2,6)) OR col1 BETWEEN 1.15 AND 5.79)))) OR (col4 < 3.11) AND col0 <= 6)) OR col0 > 2 AND col0 = 2 AND (col0 IN (2,1,2,4,0,3) AND col1 < 7.95) AND ((col3 IS NULL AND ((col3 = 9 OR col0 > 6 AND col0 IS NULL OR (col0 < 5 AND col3 IS NULL OR (((col4 IN (7.52)) AND col0 IS NULL AND col3 < 7) OR col3 > 1 AND (col1 > 8.12))) AND col0 > 7 AND (((col0 >= 9 AND col1 <= 2.46 OR (col0 = 5)))) OR ((col4 < 4.43) AND col0 <= 1) AND ((col3 > 2)) AND (col0 IN (5) OR col4 <= 9.16)))) AND ((col1 > 5.90)) AND col0 < 9) AND col3 > 2) AND col4 > 6.85 OR col0 IN (0,0,6,0,8) OR col3 BETWEEN 9 AND 0 OR col0 < 8 OR col0 IN (0,3,2)) OR col0 <= 7) AND col1 = 0.81 OR col4 < 3.87 AND col0 <= 3)

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (((col3 > 2) AND (((col0 < 6 OR col3 <= 1) AND col1 > 6.3) AND (col4 >= 2.12) AND (col3 >= 0 OR col3 >= 4 OR (col3 >= 0 AND col0 >= 0 AND col3 IS NULL OR col3 > 5)) AND col3 IS NULL AND col0 < 0 OR (col0 <= 7 AND (col0 > 8) OR ((col3 = 2) AND ((((((col3 IN (3,5,2,2,6)) OR col1 BETWEEN 1.15 AND 5.79)))) OR (col4 < 3.11) AND col0 <= 6)) OR col0 > 2 AND col0 = 2 AND (col0 IN (2,1,2,4,0,3) AND col1 < 7.95) AND ((col3 IS NULL AND ((col3 = 9 OR col0 > 6 AND col0 IS NULL OR (col0 < 5 AND col3 IS NULL OR (((col4 IN (7.52)) AND col0 IS NULL AND col3 < 7) OR col3 > 1 AND (col1 > 8.12))) AND col0 > 7 AND (((col0 >= 9 AND col1 <= 2.46 OR (col0 = 5)))) OR ((col4 < 4.43) AND col0 <= 1) AND ((col3 > 2)) AND (col0 IN (5) OR col4 <= 9.16)))) AND ((col1 > 5.90)) AND col0 < 9) AND col3 > 2) AND col4 > 6.85 OR col0 IN (0,0,6,0,8) OR col3 BETWEEN 9 AND 0 OR col0 < 8 OR col0 IN (0,3,2)) OR col0 <= 7) AND col1 = 0.81 OR col4 < 3.87 AND col0 <= 3)
----

query I rowsort label-2790
SELECT pk FROM tab1 WHERE NOT ((((col3 > 2) AND (((col0 < 6 OR col3 <= 1) AND col1 > 6.3) AND (col4 >= 2.12) AND (col3 >= 0 OR col3 >= 4 OR (col3 >= 0 AND col0 >= 0 AND col3 IS NULL OR col3 > 5)) AND col3 IS NULL AND col0 < 0 OR (col0 <= 7 AND (col0 > 8) OR ((col3 = 2) AND ((((((col3 IN (3,5,2,2,6)) OR col1 BETWEEN 1.15 AND 5.79)))) OR (col4 < 3.11) AND col0 <= 6)) OR col0 > 2 AND col0 = 2 AND (col0 IN (2,1,2,4,0,3) AND col1 < 7.95) AND ((col3 IS NULL AND ((col3 = 9 OR col0 > 6 AND col0 IS NULL OR (col0 < 5 AND col3 IS NULL OR (((col4 IN (7.52)) AND col0 IS NULL AND col3 < 7) OR col3 > 1 AND (col1 > 8.12))) AND col0 > 7 AND (((col0 >= 9 AND col1 <= 2.46 OR (col0 = 5)))) OR ((col4 < 4.43) AND col0 <= 1) AND ((col3 > 2)) AND (col0 IN (5) OR col4 <= 9.16)))) AND ((col1 > 5.90)) AND col0 < 9) AND col3 > 2) AND col4 > 6.85 OR col0 IN (0,0,6,0,8) OR col3 BETWEEN 9 AND 0 OR col0 < 8 OR col0 IN (0,3,2)) OR col0 <= 7) AND col1 = 0.81 OR col4 < 3.87 AND col0 <= 3))
----
0

statement ok
DELETE FROM tab2 WHERE (((col3 > 2) AND (((col0 < 6 OR col3 <= 1) AND col1 > 6.3) AND (col4 >= 2.12) AND (col3 >= 0 OR col3 >= 4 OR (col3 >= 0 AND col0 >= 0 AND col3 IS NULL OR col3 > 5)) AND col3 IS NULL AND col0 < 0 OR (col0 <= 7 AND (col0 > 8) OR ((col3 = 2) AND ((((((col3 IN (3,5,2,2,6)) OR col1 BETWEEN 1.15 AND 5.79)))) OR (col4 < 3.11) AND col0 <= 6)) OR col0 > 2 AND col0 = 2 AND (col0 IN (2,1,2,4,0,3) AND col1 < 7.95) AND ((col3 IS NULL AND ((col3 = 9 OR col0 > 6 AND col0 IS NULL OR (col0 < 5 AND col3 IS NULL OR (((col4 IN (7.52)) AND col0 IS NULL AND col3 < 7) OR col3 > 1 AND (col1 > 8.12))) AND col0 > 7 AND (((col0 >= 9 AND col1 <= 2.46 OR (col0 = 5)))) OR ((col4 < 4.43) AND col0 <= 1) AND ((col3 > 2)) AND (col0 IN (5) OR col4 <= 9.16)))) AND ((col1 > 5.90)) AND col0 < 9) AND col3 > 2) AND col4 > 6.85 OR col0 IN (0,0,6,0,8) OR col3 BETWEEN 9 AND 0 OR col0 < 8 OR col0 IN (0,3,2)) OR col0 <= 7) AND col1 = 0.81 OR col4 < 3.87 AND col0 <= 3)

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (((col3 > 2) AND (((col0 < 6 OR col3 <= 1) AND col1 > 6.3) AND (col4 >= 2.12) AND (col3 >= 0 OR col3 >= 4 OR (col3 >= 0 AND col0 >= 0 AND col3 IS NULL OR col3 > 5)) AND col3 IS NULL AND col0 < 0 OR (col0 <= 7 AND (col0 > 8) OR ((col3 = 2) AND ((((((col3 IN (3,5,2,2,6)) OR col1 BETWEEN 1.15 AND 5.79)))) OR (col4 < 3.11) AND col0 <= 6)) OR col0 > 2 AND col0 = 2 AND (col0 IN (2,1,2,4,0,3) AND col1 < 7.95) AND ((col3 IS NULL AND ((col3 = 9 OR col0 > 6 AND col0 IS NULL OR (col0 < 5 AND col3 IS NULL OR (((col4 IN (7.52)) AND col0 IS NULL AND col3 < 7) OR col3 > 1 AND (col1 > 8.12))) AND col0 > 7 AND (((col0 >= 9 AND col1 <= 2.46 OR (col0 = 5)))) OR ((col4 < 4.43) AND col0 <= 1) AND ((col3 > 2)) AND (col0 IN (5) OR col4 <= 9.16)))) AND ((col1 > 5.90)) AND col0 < 9) AND col3 > 2) AND col4 > 6.85 OR col0 IN (0,0,6,0,8) OR col3 BETWEEN 9 AND 0 OR col0 < 8 OR col0 IN (0,3,2)) OR col0 <= 7) AND col1 = 0.81 OR col4 < 3.87 AND col0 <= 3)
----

query I rowsort label-2790
SELECT pk FROM tab2 WHERE NOT ((((col3 > 2) AND (((col0 < 6 OR col3 <= 1) AND col1 > 6.3) AND (col4 >= 2.12) AND (col3 >= 0 OR col3 >= 4 OR (col3 >= 0 AND col0 >= 0 AND col3 IS NULL OR col3 > 5)) AND col3 IS NULL AND col0 < 0 OR (col0 <= 7 AND (col0 > 8) OR ((col3 = 2) AND ((((((col3 IN (3,5,2,2,6)) OR col1 BETWEEN 1.15 AND 5.79)))) OR (col4 < 3.11) AND col0 <= 6)) OR col0 > 2 AND col0 = 2 AND (col0 IN (2,1,2,4,0,3) AND col1 < 7.95) AND ((col3 IS NULL AND ((col3 = 9 OR col0 > 6 AND col0 IS NULL OR (col0 < 5 AND col3 IS NULL OR (((col4 IN (7.52)) AND col0 IS NULL AND col3 < 7) OR col3 > 1 AND (col1 > 8.12))) AND col0 > 7 AND (((col0 >= 9 AND col1 <= 2.46 OR (col0 = 5)))) OR ((col4 < 4.43) AND col0 <= 1) AND ((col3 > 2)) AND (col0 IN (5) OR col4 <= 9.16)))) AND ((col1 > 5.90)) AND col0 < 9) AND col3 > 2) AND col4 > 6.85 OR col0 IN (0,0,6,0,8) OR col3 BETWEEN 9 AND 0 OR col0 < 8 OR col0 IN (0,3,2)) OR col0 <= 7) AND col1 = 0.81 OR col4 < 3.87 AND col0 <= 3))
----
0

statement ok
DELETE FROM tab3 WHERE (((col3 > 2) AND (((col0 < 6 OR col3 <= 1) AND col1 > 6.3) AND (col4 >= 2.12) AND (col3 >= 0 OR col3 >= 4 OR (col3 >= 0 AND col0 >= 0 AND col3 IS NULL OR col3 > 5)) AND col3 IS NULL AND col0 < 0 OR (col0 <= 7 AND (col0 > 8) OR ((col3 = 2) AND ((((((col3 IN (3,5,2,2,6)) OR col1 BETWEEN 1.15 AND 5.79)))) OR (col4 < 3.11) AND col0 <= 6)) OR col0 > 2 AND col0 = 2 AND (col0 IN (2,1,2,4,0,3) AND col1 < 7.95) AND ((col3 IS NULL AND ((col3 = 9 OR col0 > 6 AND col0 IS NULL OR (col0 < 5 AND col3 IS NULL OR (((col4 IN (7.52)) AND col0 IS NULL AND col3 < 7) OR col3 > 1 AND (col1 > 8.12))) AND col0 > 7 AND (((col0 >= 9 AND col1 <= 2.46 OR (col0 = 5)))) OR ((col4 < 4.43) AND col0 <= 1) AND ((col3 > 2)) AND (col0 IN (5) OR col4 <= 9.16)))) AND ((col1 > 5.90)) AND col0 < 9) AND col3 > 2) AND col4 > 6.85 OR col0 IN (0,0,6,0,8) OR col3 BETWEEN 9 AND 0 OR col0 < 8 OR col0 IN (0,3,2)) OR col0 <= 7) AND col1 = 0.81 OR col4 < 3.87 AND col0 <= 3)

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (((col3 > 2) AND (((col0 < 6 OR col3 <= 1) AND col1 > 6.3) AND (col4 >= 2.12) AND (col3 >= 0 OR col3 >= 4 OR (col3 >= 0 AND col0 >= 0 AND col3 IS NULL OR col3 > 5)) AND col3 IS NULL AND col0 < 0 OR (col0 <= 7 AND (col0 > 8) OR ((col3 = 2) AND ((((((col3 IN (3,5,2,2,6)) OR col1 BETWEEN 1.15 AND 5.79)))) OR (col4 < 3.11) AND col0 <= 6)) OR col0 > 2 AND col0 = 2 AND (col0 IN (2,1,2,4,0,3) AND col1 < 7.95) AND ((col3 IS NULL AND ((col3 = 9 OR col0 > 6 AND col0 IS NULL OR (col0 < 5 AND col3 IS NULL OR (((col4 IN (7.52)) AND col0 IS NULL AND col3 < 7) OR col3 > 1 AND (col1 > 8.12))) AND col0 > 7 AND (((col0 >= 9 AND col1 <= 2.46 OR (col0 = 5)))) OR ((col4 < 4.43) AND col0 <= 1) AND ((col3 > 2)) AND (col0 IN (5) OR col4 <= 9.16)))) AND ((col1 > 5.90)) AND col0 < 9) AND col3 > 2) AND col4 > 6.85 OR col0 IN (0,0,6,0,8) OR col3 BETWEEN 9 AND 0 OR col0 < 8 OR col0 IN (0,3,2)) OR col0 <= 7) AND col1 = 0.81 OR col4 < 3.87 AND col0 <= 3)
----

query I rowsort label-2790
SELECT pk FROM tab3 WHERE NOT ((((col3 > 2) AND (((col0 < 6 OR col3 <= 1) AND col1 > 6.3) AND (col4 >= 2.12) AND (col3 >= 0 OR col3 >= 4 OR (col3 >= 0 AND col0 >= 0 AND col3 IS NULL OR col3 > 5)) AND col3 IS NULL AND col0 < 0 OR (col0 <= 7 AND (col0 > 8) OR ((col3 = 2) AND ((((((col3 IN (3,5,2,2,6)) OR col1 BETWEEN 1.15 AND 5.79)))) OR (col4 < 3.11) AND col0 <= 6)) OR col0 > 2 AND col0 = 2 AND (col0 IN (2,1,2,4,0,3) AND col1 < 7.95) AND ((col3 IS NULL AND ((col3 = 9 OR col0 > 6 AND col0 IS NULL OR (col0 < 5 AND col3 IS NULL OR (((col4 IN (7.52)) AND col0 IS NULL AND col3 < 7) OR col3 > 1 AND (col1 > 8.12))) AND col0 > 7 AND (((col0 >= 9 AND col1 <= 2.46 OR (col0 = 5)))) OR ((col4 < 4.43) AND col0 <= 1) AND ((col3 > 2)) AND (col0 IN (5) OR col4 <= 9.16)))) AND ((col1 > 5.90)) AND col0 < 9) AND col3 > 2) AND col4 > 6.85 OR col0 IN (0,0,6,0,8) OR col3 BETWEEN 9 AND 0 OR col0 < 8 OR col0 IN (0,3,2)) OR col0 <= 7) AND col1 = 0.81 OR col4 < 3.87 AND col0 <= 3))
----
0

statement ok
DELETE FROM tab4 WHERE (((col3 > 2) AND (((col0 < 6 OR col3 <= 1) AND col1 > 6.3) AND (col4 >= 2.12) AND (col3 >= 0 OR col3 >= 4 OR (col3 >= 0 AND col0 >= 0 AND col3 IS NULL OR col3 > 5)) AND col3 IS NULL AND col0 < 0 OR (col0 <= 7 AND (col0 > 8) OR ((col3 = 2) AND ((((((col3 IN (3,5,2,2,6)) OR col1 BETWEEN 1.15 AND 5.79)))) OR (col4 < 3.11) AND col0 <= 6)) OR col0 > 2 AND col0 = 2 AND (col0 IN (2,1,2,4,0,3) AND col1 < 7.95) AND ((col3 IS NULL AND ((col3 = 9 OR col0 > 6 AND col0 IS NULL OR (col0 < 5 AND col3 IS NULL OR (((col4 IN (7.52)) AND col0 IS NULL AND col3 < 7) OR col3 > 1 AND (col1 > 8.12))) AND col0 > 7 AND (((col0 >= 9 AND col1 <= 2.46 OR (col0 = 5)))) OR ((col4 < 4.43) AND col0 <= 1) AND ((col3 > 2)) AND (col0 IN (5) OR col4 <= 9.16)))) AND ((col1 > 5.90)) AND col0 < 9) AND col3 > 2) AND col4 > 6.85 OR col0 IN (0,0,6,0,8) OR col3 BETWEEN 9 AND 0 OR col0 < 8 OR col0 IN (0,3,2)) OR col0 <= 7) AND col1 = 0.81 OR col4 < 3.87 AND col0 <= 3)

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (((col3 > 2) AND (((col0 < 6 OR col3 <= 1) AND col1 > 6.3) AND (col4 >= 2.12) AND (col3 >= 0 OR col3 >= 4 OR (col3 >= 0 AND col0 >= 0 AND col3 IS NULL OR col3 > 5)) AND col3 IS NULL AND col0 < 0 OR (col0 <= 7 AND (col0 > 8) OR ((col3 = 2) AND ((((((col3 IN (3,5,2,2,6)) OR col1 BETWEEN 1.15 AND 5.79)))) OR (col4 < 3.11) AND col0 <= 6)) OR col0 > 2 AND col0 = 2 AND (col0 IN (2,1,2,4,0,3) AND col1 < 7.95) AND ((col3 IS NULL AND ((col3 = 9 OR col0 > 6 AND col0 IS NULL OR (col0 < 5 AND col3 IS NULL OR (((col4 IN (7.52)) AND col0 IS NULL AND col3 < 7) OR col3 > 1 AND (col1 > 8.12))) AND col0 > 7 AND (((col0 >= 9 AND col1 <= 2.46 OR (col0 = 5)))) OR ((col4 < 4.43) AND col0 <= 1) AND ((col3 > 2)) AND (col0 IN (5) OR col4 <= 9.16)))) AND ((col1 > 5.90)) AND col0 < 9) AND col3 > 2) AND col4 > 6.85 OR col0 IN (0,0,6,0,8) OR col3 BETWEEN 9 AND 0 OR col0 < 8 OR col0 IN (0,3,2)) OR col0 <= 7) AND col1 = 0.81 OR col4 < 3.87 AND col0 <= 3)
----

query I rowsort label-2790
SELECT pk FROM tab4 WHERE NOT ((((col3 > 2) AND (((col0 < 6 OR col3 <= 1) AND col1 > 6.3) AND (col4 >= 2.12) AND (col3 >= 0 OR col3 >= 4 OR (col3 >= 0 AND col0 >= 0 AND col3 IS NULL OR col3 > 5)) AND col3 IS NULL AND col0 < 0 OR (col0 <= 7 AND (col0 > 8) OR ((col3 = 2) AND ((((((col3 IN (3,5,2,2,6)) OR col1 BETWEEN 1.15 AND 5.79)))) OR (col4 < 3.11) AND col0 <= 6)) OR col0 > 2 AND col0 = 2 AND (col0 IN (2,1,2,4,0,3) AND col1 < 7.95) AND ((col3 IS NULL AND ((col3 = 9 OR col0 > 6 AND col0 IS NULL OR (col0 < 5 AND col3 IS NULL OR (((col4 IN (7.52)) AND col0 IS NULL AND col3 < 7) OR col3 > 1 AND (col1 > 8.12))) AND col0 > 7 AND (((col0 >= 9 AND col1 <= 2.46 OR (col0 = 5)))) OR ((col4 < 4.43) AND col0 <= 1) AND ((col3 > 2)) AND (col0 IN (5) OR col4 <= 9.16)))) AND ((col1 > 5.90)) AND col0 < 9) AND col3 > 2) AND col4 > 6.85 OR col0 IN (0,0,6,0,8) OR col3 BETWEEN 9 AND 0 OR col0 < 8 OR col0 IN (0,3,2)) OR col0 <= 7) AND col1 = 0.81 OR col4 < 3.87 AND col0 <= 3))
----
0

statement ok
DELETE FROM tab0 WHERE col4 = 0.68

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col4 = 0.68
----

query I rowsort label-2805
SELECT pk FROM tab0 WHERE NOT (col4 = 0.68)
----
0

statement ok
DELETE FROM tab1 WHERE col4 = 0.68

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col4 = 0.68
----

query I rowsort label-2805
SELECT pk FROM tab1 WHERE NOT (col4 = 0.68)
----
0

statement ok
DELETE FROM tab2 WHERE col4 = 0.68

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col4 = 0.68
----

query I rowsort label-2805
SELECT pk FROM tab2 WHERE NOT (col4 = 0.68)
----
0

statement ok
DELETE FROM tab3 WHERE col4 = 0.68

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col4 = 0.68
----

query I rowsort label-2805
SELECT pk FROM tab3 WHERE NOT (col4 = 0.68)
----
0

statement ok
DELETE FROM tab4 WHERE col4 = 0.68

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col4 = 0.68
----

query I rowsort label-2805
SELECT pk FROM tab4 WHERE NOT (col4 = 0.68)
----
0

statement ok
DELETE FROM tab0 WHERE col4 <= 2.28

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col4 <= 2.28
----

query I rowsort label-2820
SELECT pk FROM tab0 WHERE NOT (col4 <= 2.28)
----
0

statement ok
DELETE FROM tab1 WHERE col4 <= 2.28

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col4 <= 2.28
----

query I rowsort label-2820
SELECT pk FROM tab1 WHERE NOT (col4 <= 2.28)
----
0

statement ok
DELETE FROM tab2 WHERE col4 <= 2.28

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col4 <= 2.28
----

query I rowsort label-2820
SELECT pk FROM tab2 WHERE NOT (col4 <= 2.28)
----
0

statement ok
DELETE FROM tab3 WHERE col4 <= 2.28

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col4 <= 2.28
----

query I rowsort label-2820
SELECT pk FROM tab3 WHERE NOT (col4 <= 2.28)
----
0

statement ok
DELETE FROM tab4 WHERE col4 <= 2.28

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col4 <= 2.28
----

query I rowsort label-2820
SELECT pk FROM tab4 WHERE NOT (col4 <= 2.28)
----
0

statement ok
DELETE FROM tab0 WHERE col0 > 8

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col0 > 8
----

query I rowsort label-2835
SELECT pk FROM tab0 WHERE NOT (col0 > 8)
----
0

statement ok
DELETE FROM tab1 WHERE col0 > 8

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col0 > 8
----

query I rowsort label-2835
SELECT pk FROM tab1 WHERE NOT (col0 > 8)
----
0

statement ok
DELETE FROM tab2 WHERE col0 > 8

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col0 > 8
----

query I rowsort label-2835
SELECT pk FROM tab2 WHERE NOT (col0 > 8)
----
0

statement ok
DELETE FROM tab3 WHERE col0 > 8

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col0 > 8
----

query I rowsort label-2835
SELECT pk FROM tab3 WHERE NOT (col0 > 8)
----
0

statement ok
DELETE FROM tab4 WHERE col0 > 8

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col0 > 8
----

query I rowsort label-2835
SELECT pk FROM tab4 WHERE NOT (col0 > 8)
----
0

statement ok
DELETE FROM tab0 WHERE col1 = 8.42 AND (((col0 IN (1,2,0,4,9,5)))) OR ((((col0 = 3)))) AND ((col0 <= 5 AND col0 > 7))

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col1 = 8.42 AND (((col0 IN (1,2,0,4,9,5)))) OR ((((col0 = 3)))) AND ((col0 <= 5 AND col0 > 7))
----

query I rowsort label-2850
SELECT pk FROM tab0 WHERE NOT (col1 = 8.42 AND (((col0 IN (1,2,0,4,9,5)))) OR ((((col0 = 3)))) AND ((col0 <= 5 AND col0 > 7)))
----
0

statement ok
DELETE FROM tab1 WHERE col1 = 8.42 AND (((col0 IN (1,2,0,4,9,5)))) OR ((((col0 = 3)))) AND ((col0 <= 5 AND col0 > 7))

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col1 = 8.42 AND (((col0 IN (1,2,0,4,9,5)))) OR ((((col0 = 3)))) AND ((col0 <= 5 AND col0 > 7))
----

query I rowsort label-2850
SELECT pk FROM tab1 WHERE NOT (col1 = 8.42 AND (((col0 IN (1,2,0,4,9,5)))) OR ((((col0 = 3)))) AND ((col0 <= 5 AND col0 > 7)))
----
0

statement ok
DELETE FROM tab2 WHERE col1 = 8.42 AND (((col0 IN (1,2,0,4,9,5)))) OR ((((col0 = 3)))) AND ((col0 <= 5 AND col0 > 7))

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col1 = 8.42 AND (((col0 IN (1,2,0,4,9,5)))) OR ((((col0 = 3)))) AND ((col0 <= 5 AND col0 > 7))
----

query I rowsort label-2850
SELECT pk FROM tab2 WHERE NOT (col1 = 8.42 AND (((col0 IN (1,2,0,4,9,5)))) OR ((((col0 = 3)))) AND ((col0 <= 5 AND col0 > 7)))
----
0

statement ok
DELETE FROM tab3 WHERE col1 = 8.42 AND (((col0 IN (1,2,0,4,9,5)))) OR ((((col0 = 3)))) AND ((col0 <= 5 AND col0 > 7))

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col1 = 8.42 AND (((col0 IN (1,2,0,4,9,5)))) OR ((((col0 = 3)))) AND ((col0 <= 5 AND col0 > 7))
----

query I rowsort label-2850
SELECT pk FROM tab3 WHERE NOT (col1 = 8.42 AND (((col0 IN (1,2,0,4,9,5)))) OR ((((col0 = 3)))) AND ((col0 <= 5 AND col0 > 7)))
----
0

statement ok
DELETE FROM tab4 WHERE col1 = 8.42 AND (((col0 IN (1,2,0,4,9,5)))) OR ((((col0 = 3)))) AND ((col0 <= 5 AND col0 > 7))

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col1 = 8.42 AND (((col0 IN (1,2,0,4,9,5)))) OR ((((col0 = 3)))) AND ((col0 <= 5 AND col0 > 7))
----

query I rowsort label-2850
SELECT pk FROM tab4 WHERE NOT (col1 = 8.42 AND (((col0 IN (1,2,0,4,9,5)))) OR ((((col0 = 3)))) AND ((col0 <= 5 AND col0 > 7)))
----
0

statement ok
DELETE FROM tab0 WHERE (col3 < 8) OR (col3 > 1 AND col0 >= 0) AND col0 IN (2,8)

query I rowsort label-empty
SELECT pk FROM tab0 WHERE (col3 < 8) OR (col3 > 1 AND col0 >= 0) AND col0 IN (2,8)
----

query I rowsort label-2865
SELECT pk FROM tab0 WHERE NOT ((col3 < 8) OR (col3 > 1 AND col0 >= 0) AND col0 IN (2,8))
----

statement ok
DELETE FROM tab1 WHERE (col3 < 8) OR (col3 > 1 AND col0 >= 0) AND col0 IN (2,8)

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (col3 < 8) OR (col3 > 1 AND col0 >= 0) AND col0 IN (2,8)
----

query I rowsort label-2865
SELECT pk FROM tab1 WHERE NOT ((col3 < 8) OR (col3 > 1 AND col0 >= 0) AND col0 IN (2,8))
----

statement ok
DELETE FROM tab2 WHERE (col3 < 8) OR (col3 > 1 AND col0 >= 0) AND col0 IN (2,8)

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (col3 < 8) OR (col3 > 1 AND col0 >= 0) AND col0 IN (2,8)
----

query I rowsort label-2865
SELECT pk FROM tab2 WHERE NOT ((col3 < 8) OR (col3 > 1 AND col0 >= 0) AND col0 IN (2,8))
----

statement ok
DELETE FROM tab3 WHERE (col3 < 8) OR (col3 > 1 AND col0 >= 0) AND col0 IN (2,8)

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (col3 < 8) OR (col3 > 1 AND col0 >= 0) AND col0 IN (2,8)
----

query I rowsort label-2865
SELECT pk FROM tab3 WHERE NOT ((col3 < 8) OR (col3 > 1 AND col0 >= 0) AND col0 IN (2,8))
----

statement ok
DELETE FROM tab4 WHERE (col3 < 8) OR (col3 > 1 AND col0 >= 0) AND col0 IN (2,8)

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (col3 < 8) OR (col3 > 1 AND col0 >= 0) AND col0 IN (2,8)
----

query I rowsort label-2865
SELECT pk FROM tab4 WHERE NOT ((col3 < 8) OR (col3 > 1 AND col0 >= 0) AND col0 IN (2,8))
----

statement ok
DROP TABLE tab0

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,1,8.16,'bcegs',6,1.97,'knlwu')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE UNIQUE INDEX idx_tab2_0 ON tab2 (col4 DESC,col3 DESC,col1)

statement ok
CREATE UNIQUE INDEX idx_tab2_2 ON tab2 (col0)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

statement ok
CREATE INDEX idx_tab3_0 ON tab3 (col3)

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

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE UNIQUE INDEX idx_tab4_0 ON tab4 (col4 DESC)

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

statement ok
CREATE UNIQUE INDEX idx_tab4_4 ON tab4 (col3,col1 DESC)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE (col1 < 4.78 OR (col4 <= 5.34) AND col3 <= 9 OR col3 BETWEEN 3 AND 8 OR (col3 < 9 OR col3 = 9 AND (col1 < 3.69 AND (col3 = 2) OR (col0 <= 0 AND col3 < 3 OR col0 < 8 AND col1 = 0.93)) OR col4 > 1.98 AND col0 < 8 AND (((col3 IS NULL) AND col3 >= 0) AND (col4 >= 6.14) OR col0 > 3 OR col0 > 9 OR (col0 < 9) AND col4 < 2.27 OR col4 < 0.57 AND col1 BETWEEN 3.69 AND 4.51) AND col0 <= 2)) AND (col1 BETWEEN 7.16 AND 9.49) OR (col4 IN (3.84,1.31,1.90,7.12,9.42) OR col0 BETWEEN 6 AND 2 AND (col3 <= 4))

query I rowsort label-empty
SELECT pk FROM tab0 WHERE (col1 < 4.78 OR (col4 <= 5.34) AND col3 <= 9 OR col3 BETWEEN 3 AND 8 OR (col3 < 9 OR col3 = 9 AND (col1 < 3.69 AND (col3 = 2) OR (col0 <= 0 AND col3 < 3 OR col0 < 8 AND col1 = 0.93)) OR col4 > 1.98 AND col0 < 8 AND (((col3 IS NULL) AND col3 >= 0) AND (col4 >= 6.14) OR col0 > 3 OR col0 > 9 OR (col0 < 9) AND col4 < 2.27 OR col4 < 0.57 AND col1 BETWEEN 3.69 AND 4.51) AND col0 <= 2)) AND (col1 BETWEEN 7.16 AND 9.49) OR (col4 IN (3.84,1.31,1.90,7.12,9.42) OR col0 BETWEEN 6 AND 2 AND (col3 <= 4))
----

query I rowsort label-2880
SELECT pk FROM tab0 WHERE NOT ((col1 < 4.78 OR (col4 <= 5.34) AND col3 <= 9 OR col3 BETWEEN 3 AND 8 OR (col3 < 9 OR col3 = 9 AND (col1 < 3.69 AND (col3 = 2) OR (col0 <= 0 AND col3 < 3 OR col0 < 8 AND col1 = 0.93)) OR col4 > 1.98 AND col0 < 8 AND (((col3 IS NULL) AND col3 >= 0) AND (col4 >= 6.14) OR col0 > 3 OR col0 > 9 OR (col0 < 9) AND col4 < 2.27 OR col4 < 0.57 AND col1 BETWEEN 3.69 AND 4.51) AND col0 <= 2)) AND (col1 BETWEEN 7.16 AND 9.49) OR (col4 IN (3.84,1.31,1.90,7.12,9.42) OR col0 BETWEEN 6 AND 2 AND (col3 <= 4)))
----

statement ok
DELETE FROM tab1 WHERE (col1 < 4.78 OR (col4 <= 5.34) AND col3 <= 9 OR col3 BETWEEN 3 AND 8 OR (col3 < 9 OR col3 = 9 AND (col1 < 3.69 AND (col3 = 2) OR (col0 <= 0 AND col3 < 3 OR col0 < 8 AND col1 = 0.93)) OR col4 > 1.98 AND col0 < 8 AND (((col3 IS NULL) AND col3 >= 0) AND (col4 >= 6.14) OR col0 > 3 OR col0 > 9 OR (col0 < 9) AND col4 < 2.27 OR col4 < 0.57 AND col1 BETWEEN 3.69 AND 4.51) AND col0 <= 2)) AND (col1 BETWEEN 7.16 AND 9.49) OR (col4 IN (3.84,1.31,1.90,7.12,9.42) OR col0 BETWEEN 6 AND 2 AND (col3 <= 4))

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (col1 < 4.78 OR (col4 <= 5.34) AND col3 <= 9 OR col3 BETWEEN 3 AND 8 OR (col3 < 9 OR col3 = 9 AND (col1 < 3.69 AND (col3 = 2) OR (col0 <= 0 AND col3 < 3 OR col0 < 8 AND col1 = 0.93)) OR col4 > 1.98 AND col0 < 8 AND (((col3 IS NULL) AND col3 >= 0) AND (col4 >= 6.14) OR col0 > 3 OR col0 > 9 OR (col0 < 9) AND col4 < 2.27 OR col4 < 0.57 AND col1 BETWEEN 3.69 AND 4.51) AND col0 <= 2)) AND (col1 BETWEEN 7.16 AND 9.49) OR (col4 IN (3.84,1.31,1.90,7.12,9.42) OR col0 BETWEEN 6 AND 2 AND (col3 <= 4))
----

query I rowsort label-2880
SELECT pk FROM tab1 WHERE NOT ((col1 < 4.78 OR (col4 <= 5.34) AND col3 <= 9 OR col3 BETWEEN 3 AND 8 OR (col3 < 9 OR col3 = 9 AND (col1 < 3.69 AND (col3 = 2) OR (col0 <= 0 AND col3 < 3 OR col0 < 8 AND col1 = 0.93)) OR col4 > 1.98 AND col0 < 8 AND (((col3 IS NULL) AND col3 >= 0) AND (col4 >= 6.14) OR col0 > 3 OR col0 > 9 OR (col0 < 9) AND col4 < 2.27 OR col4 < 0.57 AND col1 BETWEEN 3.69 AND 4.51) AND col0 <= 2)) AND (col1 BETWEEN 7.16 AND 9.49) OR (col4 IN (3.84,1.31,1.90,7.12,9.42) OR col0 BETWEEN 6 AND 2 AND (col3 <= 4)))
----

statement ok
DELETE FROM tab2 WHERE (col1 < 4.78 OR (col4 <= 5.34) AND col3 <= 9 OR col3 BETWEEN 3 AND 8 OR (col3 < 9 OR col3 = 9 AND (col1 < 3.69 AND (col3 = 2) OR (col0 <= 0 AND col3 < 3 OR col0 < 8 AND col1 = 0.93)) OR col4 > 1.98 AND col0 < 8 AND (((col3 IS NULL) AND col3 >= 0) AND (col4 >= 6.14) OR col0 > 3 OR col0 > 9 OR (col0 < 9) AND col4 < 2.27 OR col4 < 0.57 AND col1 BETWEEN 3.69 AND 4.51) AND col0 <= 2)) AND (col1 BETWEEN 7.16 AND 9.49) OR (col4 IN (3.84,1.31,1.90,7.12,9.42) OR col0 BETWEEN 6 AND 2 AND (col3 <= 4))

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (col1 < 4.78 OR (col4 <= 5.34) AND col3 <= 9 OR col3 BETWEEN 3 AND 8 OR (col3 < 9 OR col3 = 9 AND (col1 < 3.69 AND (col3 = 2) OR (col0 <= 0 AND col3 < 3 OR col0 < 8 AND col1 = 0.93)) OR col4 > 1.98 AND col0 < 8 AND (((col3 IS NULL) AND col3 >= 0) AND (col4 >= 6.14) OR col0 > 3 OR col0 > 9 OR (col0 < 9) AND col4 < 2.27 OR col4 < 0.57 AND col1 BETWEEN 3.69 AND 4.51) AND col0 <= 2)) AND (col1 BETWEEN 7.16 AND 9.49) OR (col4 IN (3.84,1.31,1.90,7.12,9.42) OR col0 BETWEEN 6 AND 2 AND (col3 <= 4))
----

query I rowsort label-2880
SELECT pk FROM tab2 WHERE NOT ((col1 < 4.78 OR (col4 <= 5.34) AND col3 <= 9 OR col3 BETWEEN 3 AND 8 OR (col3 < 9 OR col3 = 9 AND (col1 < 3.69 AND (col3 = 2) OR (col0 <= 0 AND col3 < 3 OR col0 < 8 AND col1 = 0.93)) OR col4 > 1.98 AND col0 < 8 AND (((col3 IS NULL) AND col3 >= 0) AND (col4 >= 6.14) OR col0 > 3 OR col0 > 9 OR (col0 < 9) AND col4 < 2.27 OR col4 < 0.57 AND col1 BETWEEN 3.69 AND 4.51) AND col0 <= 2)) AND (col1 BETWEEN 7.16 AND 9.49) OR (col4 IN (3.84,1.31,1.90,7.12,9.42) OR col0 BETWEEN 6 AND 2 AND (col3 <= 4)))
----

statement ok
DELETE FROM tab3 WHERE (col1 < 4.78 OR (col4 <= 5.34) AND col3 <= 9 OR col3 BETWEEN 3 AND 8 OR (col3 < 9 OR col3 = 9 AND (col1 < 3.69 AND (col3 = 2) OR (col0 <= 0 AND col3 < 3 OR col0 < 8 AND col1 = 0.93)) OR col4 > 1.98 AND col0 < 8 AND (((col3 IS NULL) AND col3 >= 0) AND (col4 >= 6.14) OR col0 > 3 OR col0 > 9 OR (col0 < 9) AND col4 < 2.27 OR col4 < 0.57 AND col1 BETWEEN 3.69 AND 4.51) AND col0 <= 2)) AND (col1 BETWEEN 7.16 AND 9.49) OR (col4 IN (3.84,1.31,1.90,7.12,9.42) OR col0 BETWEEN 6 AND 2 AND (col3 <= 4))

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (col1 < 4.78 OR (col4 <= 5.34) AND col3 <= 9 OR col3 BETWEEN 3 AND 8 OR (col3 < 9 OR col3 = 9 AND (col1 < 3.69 AND (col3 = 2) OR (col0 <= 0 AND col3 < 3 OR col0 < 8 AND col1 = 0.93)) OR col4 > 1.98 AND col0 < 8 AND (((col3 IS NULL) AND col3 >= 0) AND (col4 >= 6.14) OR col0 > 3 OR col0 > 9 OR (col0 < 9) AND col4 < 2.27 OR col4 < 0.57 AND col1 BETWEEN 3.69 AND 4.51) AND col0 <= 2)) AND (col1 BETWEEN 7.16 AND 9.49) OR (col4 IN (3.84,1.31,1.90,7.12,9.42) OR col0 BETWEEN 6 AND 2 AND (col3 <= 4))
----

query I rowsort label-2880
SELECT pk FROM tab3 WHERE NOT ((col1 < 4.78 OR (col4 <= 5.34) AND col3 <= 9 OR col3 BETWEEN 3 AND 8 OR (col3 < 9 OR col3 = 9 AND (col1 < 3.69 AND (col3 = 2) OR (col0 <= 0 AND col3 < 3 OR col0 < 8 AND col1 = 0.93)) OR col4 > 1.98 AND col0 < 8 AND (((col3 IS NULL) AND col3 >= 0) AND (col4 >= 6.14) OR col0 > 3 OR col0 > 9 OR (col0 < 9) AND col4 < 2.27 OR col4 < 0.57 AND col1 BETWEEN 3.69 AND 4.51) AND col0 <= 2)) AND (col1 BETWEEN 7.16 AND 9.49) OR (col4 IN (3.84,1.31,1.90,7.12,9.42) OR col0 BETWEEN 6 AND 2 AND (col3 <= 4)))
----

statement ok
DELETE FROM tab4 WHERE (col1 < 4.78 OR (col4 <= 5.34) AND col3 <= 9 OR col3 BETWEEN 3 AND 8 OR (col3 < 9 OR col3 = 9 AND (col1 < 3.69 AND (col3 = 2) OR (col0 <= 0 AND col3 < 3 OR col0 < 8 AND col1 = 0.93)) OR col4 > 1.98 AND col0 < 8 AND (((col3 IS NULL) AND col3 >= 0) AND (col4 >= 6.14) OR col0 > 3 OR col0 > 9 OR (col0 < 9) AND col4 < 2.27 OR col4 < 0.57 AND col1 BETWEEN 3.69 AND 4.51) AND col0 <= 2)) AND (col1 BETWEEN 7.16 AND 9.49) OR (col4 IN (3.84,1.31,1.90,7.12,9.42) OR col0 BETWEEN 6 AND 2 AND (col3 <= 4))

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (col1 < 4.78 OR (col4 <= 5.34) AND col3 <= 9 OR col3 BETWEEN 3 AND 8 OR (col3 < 9 OR col3 = 9 AND (col1 < 3.69 AND (col3 = 2) OR (col0 <= 0 AND col3 < 3 OR col0 < 8 AND col1 = 0.93)) OR col4 > 1.98 AND col0 < 8 AND (((col3 IS NULL) AND col3 >= 0) AND (col4 >= 6.14) OR col0 > 3 OR col0 > 9 OR (col0 < 9) AND col4 < 2.27 OR col4 < 0.57 AND col1 BETWEEN 3.69 AND 4.51) AND col0 <= 2)) AND (col1 BETWEEN 7.16 AND 9.49) OR (col4 IN (3.84,1.31,1.90,7.12,9.42) OR col0 BETWEEN 6 AND 2 AND (col3 <= 4))
----

query I rowsort label-2880
SELECT pk FROM tab4 WHERE NOT ((col1 < 4.78 OR (col4 <= 5.34) AND col3 <= 9 OR col3 BETWEEN 3 AND 8 OR (col3 < 9 OR col3 = 9 AND (col1 < 3.69 AND (col3 = 2) OR (col0 <= 0 AND col3 < 3 OR col0 < 8 AND col1 = 0.93)) OR col4 > 1.98 AND col0 < 8 AND (((col3 IS NULL) AND col3 >= 0) AND (col4 >= 6.14) OR col0 > 3 OR col0 > 9 OR (col0 < 9) AND col4 < 2.27 OR col4 < 0.57 AND col1 BETWEEN 3.69 AND 4.51) AND col0 <= 2)) AND (col1 BETWEEN 7.16 AND 9.49) OR (col4 IN (3.84,1.31,1.90,7.12,9.42) OR col0 BETWEEN 6 AND 2 AND (col3 <= 4)))
----

statement ok
DROP TABLE tab0

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,4,7.19,'vswcn',3,0.30,'joelm')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE UNIQUE INDEX idx_tab2_0 ON tab2 (col3)

statement ok
CREATE INDEX idx_tab2_2 ON tab2 (col4 DESC)

statement ok
CREATE INDEX idx_tab2_3 ON tab2 (col0,col1 DESC)

statement ok
CREATE INDEX idx_tab2_5 ON tab2 (col1 DESC)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

statement ok
CREATE INDEX idx_tab3_0 ON tab3 (col1 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab3_1 ON tab3 (col4)

statement ok
CREATE UNIQUE INDEX idx_tab3_2 ON tab3 (col0)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE INDEX idx_tab4_0 ON tab4 (col3)

statement ok
CREATE UNIQUE INDEX idx_tab4_2 ON tab4 (col4)

statement ok
CREATE INDEX idx_tab4_5 ON tab4 (col0 DESC)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DROP TABLE tab0

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,3,4.50,'jxliw',2,3.73,'rsios')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE UNIQUE INDEX idx_tab2_0 ON tab2 (col0 DESC,col1)

statement ok
CREATE UNIQUE INDEX idx_tab2_1 ON tab2 (col1,col4)

statement ok
CREATE UNIQUE INDEX idx_tab2_2 ON tab2 (col4 DESC)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

statement ok
CREATE INDEX idx_tab3_0 ON tab3 (col1,col3)

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

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

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

statement ok
CREATE UNIQUE INDEX idx_tab3_5 ON tab3 (col3 DESC,col1 DESC)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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_3 ON tab4 (col4,col3)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DROP TABLE tab0

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,6,1.13,'jrwlr',8,7.76,'ghvtt')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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_1 ON tab2 (col4 DESC,col3 DESC,col1 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab2_3 ON tab2 (col0)

statement ok
CREATE UNIQUE INDEX idx_tab2_5 ON tab2 (col1 DESC)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

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

statement ok
CREATE INDEX idx_tab3_2 ON tab3 (col4 DESC)

statement ok
CREATE INDEX idx_tab3_3 ON tab3 (col3)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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_1 ON tab4 (col3 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab4_3 ON tab4 (col0 DESC)

statement ok
CREATE INDEX idx_tab4_5 ON tab4 (col1)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE ((col4 IS NULL))

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

query I rowsort label-2895
SELECT pk FROM tab0 WHERE NOT (((col4 IS NULL)))
----
0

statement ok
DELETE FROM tab1 WHERE ((col4 IS NULL))

query I rowsort label-empty
SELECT pk FROM tab1 WHERE ((col4 IS NULL))
----

query I rowsort label-2895
SELECT pk FROM tab1 WHERE NOT (((col4 IS NULL)))
----
0

statement ok
DELETE FROM tab2 WHERE ((col4 IS NULL))

query I rowsort label-empty
SELECT pk FROM tab2 WHERE ((col4 IS NULL))
----

query I rowsort label-2895
SELECT pk FROM tab2 WHERE NOT (((col4 IS NULL)))
----
0

statement ok
DELETE FROM tab3 WHERE ((col4 IS NULL))

query I rowsort label-empty
SELECT pk FROM tab3 WHERE ((col4 IS NULL))
----

query I rowsort label-2895
SELECT pk FROM tab3 WHERE NOT (((col4 IS NULL)))
----
0

statement ok
DELETE FROM tab4 WHERE ((col4 IS NULL))

query I rowsort label-empty
SELECT pk FROM tab4 WHERE ((col4 IS NULL))
----

query I rowsort label-2895
SELECT pk FROM tab4 WHERE NOT (((col4 IS NULL)))
----
0

statement ok
DELETE FROM tab0 WHERE col3 >= 5

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col3 >= 5
----

query I rowsort label-2910
SELECT pk FROM tab0 WHERE NOT (col3 >= 5)
----

statement ok
DELETE FROM tab1 WHERE col3 >= 5

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col3 >= 5
----

query I rowsort label-2910
SELECT pk FROM tab1 WHERE NOT (col3 >= 5)
----

statement ok
DELETE FROM tab2 WHERE col3 >= 5

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col3 >= 5
----

query I rowsort label-2910
SELECT pk FROM tab2 WHERE NOT (col3 >= 5)
----

statement ok
DELETE FROM tab3 WHERE col3 >= 5

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col3 >= 5
----

query I rowsort label-2910
SELECT pk FROM tab3 WHERE NOT (col3 >= 5)
----

statement ok
DELETE FROM tab4 WHERE col3 >= 5

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col3 >= 5
----

query I rowsort label-2910
SELECT pk FROM tab4 WHERE NOT (col3 >= 5)
----

statement ok
DROP TABLE tab0

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,5,7.28,'wggss',3,5.76,'vrjbg')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE UNIQUE INDEX idx_tab2_0 ON tab2 (col0 DESC,col1 DESC)

statement ok
CREATE INDEX idx_tab2_1 ON tab2 (col4 DESC,col3 DESC)

statement ok
CREATE INDEX idx_tab2_3 ON tab2 (col3 DESC)

statement ok
CREATE INDEX idx_tab2_5 ON tab2 (col1 DESC)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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 DESC,col1,col3 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab3_1 ON tab3 (col1,col3 DESC)

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

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE UNIQUE INDEX idx_tab4_0 ON tab4 (col4)

statement ok
CREATE INDEX idx_tab4_2 ON tab4 (col1 DESC)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DROP TABLE tab0

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,6,3.61,'cswfj',9,2.95,'sjvpp')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE UNIQUE INDEX idx_tab2_0 ON tab2 (col0 DESC,col1 DESC)

statement ok
CREATE INDEX idx_tab2_1 ON tab2 (col1,col3 DESC)

statement ok
CREATE INDEX idx_tab2_4 ON tab2 (col3 DESC,col4)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

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

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

statement ok
CREATE INDEX idx_tab3_3 ON tab3 (col3 DESC)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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,col3)

statement ok
CREATE UNIQUE INDEX idx_tab4_1 ON tab4 (col3)

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

statement ok
CREATE UNIQUE INDEX idx_tab4_5 ON tab4 (col4,col0)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE (((col3 > 0))) OR col0 <= 3

query I rowsort label-empty
SELECT pk FROM tab0 WHERE (((col3 > 0))) OR col0 <= 3
----

query I rowsort label-2925
SELECT pk FROM tab0 WHERE NOT ((((col3 > 0))) OR col0 <= 3)
----

statement ok
DELETE FROM tab1 WHERE (((col3 > 0))) OR col0 <= 3

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (((col3 > 0))) OR col0 <= 3
----

query I rowsort label-2925
SELECT pk FROM tab1 WHERE NOT ((((col3 > 0))) OR col0 <= 3)
----

statement ok
DELETE FROM tab2 WHERE (((col3 > 0))) OR col0 <= 3

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (((col3 > 0))) OR col0 <= 3
----

query I rowsort label-2925
SELECT pk FROM tab2 WHERE NOT ((((col3 > 0))) OR col0 <= 3)
----

statement ok
DELETE FROM tab3 WHERE (((col3 > 0))) OR col0 <= 3

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (((col3 > 0))) OR col0 <= 3
----

query I rowsort label-2925
SELECT pk FROM tab3 WHERE NOT ((((col3 > 0))) OR col0 <= 3)
----

statement ok
DELETE FROM tab4 WHERE (((col3 > 0))) OR col0 <= 3

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (((col3 > 0))) OR col0 <= 3
----

query I rowsort label-2925
SELECT pk FROM tab4 WHERE NOT ((((col3 > 0))) OR col0 <= 3)
----

statement ok
DROP TABLE tab0

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,6,3.68,'yfzcr',3,5.72,'qaymk')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE INDEX idx_tab2_0 ON tab2 (col3 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab2_3 ON tab2 (col1 DESC,col0)

statement ok
CREATE UNIQUE INDEX idx_tab2_4 ON tab2 (col0 DESC)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

statement ok
CREATE INDEX idx_tab3_0 ON tab3 (col3 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab3_1 ON tab3 (col0)

statement ok
CREATE INDEX idx_tab3_2 ON tab3 (col1)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE UNIQUE INDEX idx_tab4_0 ON tab4 (col4 DESC,col3 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab4_2 ON tab4 (col1 DESC,col3)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE col4 > 4.29 OR (((col3 > 4))) AND (col3 < 4)

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col4 > 4.29 OR (((col3 > 4))) AND (col3 < 4)
----

query I rowsort label-2940
SELECT pk FROM tab0 WHERE NOT (col4 > 4.29 OR (((col3 > 4))) AND (col3 < 4))
----

statement ok
DELETE FROM tab1 WHERE col4 > 4.29 OR (((col3 > 4))) AND (col3 < 4)

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col4 > 4.29 OR (((col3 > 4))) AND (col3 < 4)
----

query I rowsort label-2940
SELECT pk FROM tab1 WHERE NOT (col4 > 4.29 OR (((col3 > 4))) AND (col3 < 4))
----

statement ok
DELETE FROM tab2 WHERE col4 > 4.29 OR (((col3 > 4))) AND (col3 < 4)

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col4 > 4.29 OR (((col3 > 4))) AND (col3 < 4)
----

query I rowsort label-2940
SELECT pk FROM tab2 WHERE NOT (col4 > 4.29 OR (((col3 > 4))) AND (col3 < 4))
----

statement ok
DELETE FROM tab3 WHERE col4 > 4.29 OR (((col3 > 4))) AND (col3 < 4)

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col4 > 4.29 OR (((col3 > 4))) AND (col3 < 4)
----

query I rowsort label-2940
SELECT pk FROM tab3 WHERE NOT (col4 > 4.29 OR (((col3 > 4))) AND (col3 < 4))
----

statement ok
DELETE FROM tab4 WHERE col4 > 4.29 OR (((col3 > 4))) AND (col3 < 4)

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col4 > 4.29 OR (((col3 > 4))) AND (col3 < 4)
----

query I rowsort label-2940
SELECT pk FROM tab4 WHERE NOT (col4 > 4.29 OR (((col3 > 4))) AND (col3 < 4))
----

statement ok
DROP TABLE tab0

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,1,2.62,'notfi',7,5.46,'gpuij')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE INDEX idx_tab2_0 ON tab2 (col3,col0 DESC)

statement ok
CREATE INDEX idx_tab2_1 ON tab2 (col1)

statement ok
CREATE INDEX idx_tab2_2 ON tab2 (col0)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

statement ok
CREATE INDEX idx_tab3_0 ON tab3 (col3)

statement ok
CREATE INDEX idx_tab3_3 ON tab3 (col0)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE INDEX idx_tab4_0 ON tab4 (col0 DESC)

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

statement ok
CREATE INDEX idx_tab4_3 ON tab4 (col3,col4)

statement ok
CREATE INDEX idx_tab4_5 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
----

statement ok
DELETE FROM tab0 WHERE col0 < 7 AND col1 < 9.55 AND ((col3 >= 9 AND (col4 > 9.53 AND col1 = 0.93 OR (col3 IS NULL AND ((col4 <= 7.72) OR col0 > 6 AND (col3 > 4) AND col1 > 3.68 AND (col1 = 7.94) AND col0 IN (9,2)) AND (col0 > 0 OR col0 IS NULL)) AND ((col3 < 8)) AND (((col1 < 0.59 OR (col1 >= 6.25 AND (col0 >= 1 AND col3 < 6)))) OR col4 = 5.21 OR col1 < 7.56) AND col0 <= 8 AND col3 > 1 AND (((col3 <= 8)) OR col0 <= 1 OR col3 > 8 OR col3 < 0 AND col1 BETWEEN 7.50 AND 3.16 AND (col0 IS NULL AND ((col0 > 7)) AND (col0 > 1) OR col3 >= 6 AND col0 < 6) AND col3 <= 7) OR ((((col3 < 0)) AND col4 < 1.34 OR col4 > 6.7 AND ((((((col3 > 4)) AND (col0 IS NULL) OR col3 < 0) AND ((col1 > 8.92) OR col3 >= 3 AND col3 > 9 AND col4 < 6.81 AND col4 >= 3.40 AND (col3 > 1 OR col1 < 2.80 AND ((col1 >= 8.54 OR col4 >= 7.58 AND col3 > 1 OR col3 IS NULL AND (col1 IN (7.80,9.42,9.44,7.23,2.68,8.23)) OR col3 IS NULL AND ((col0 IS NULL)) OR col3 > 0 AND col1 <= 0.39)) OR col0 > 2) AND (((col3 < 2 AND col4 < 9.36)))))) AND (((col1 = 9.85))) OR col1 IN (9.39,5.89)) AND col4 >= 9.37 AND col0 > 1 AND col3 <= 1 AND col1 = 2.15) AND (((col3 <= 0)) AND col0 = 1)) OR (((col0 > 6) AND (col3 IN (6,3,9)) AND col0 > 6 OR col0 > 0 AND ((col0 IN (1))) AND (((col0 < 5) OR ((col0 < 3))) AND col3 = 7 OR (col0 >= 3)))))) AND ((col3 >= 2)) OR col3 < 9 AND (col0 < 7) OR (col3 BETWEEN 6 AND 3) OR col3 BETWEEN 8 AND 0 AND ((col0 > 0)) OR (col0 <= 7 OR col0 > 8) OR (col1 IN (2.81,1.98,4.8,8.71,3.26,6.99)) OR col3 > 7 OR col3 < 3 AND col1 >= 9.31 OR ((col3 > 6)) AND col4 < 7.51 AND col0 >= 9) AND (col0 > 0) AND col1 = 0.62 AND ((col3 < 6)) AND (col3 IN (1,0)) AND (col3 < 0) OR (col0 < 3)

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col0 < 7 AND col1 < 9.55 AND ((col3 >= 9 AND (col4 > 9.53 AND col1 = 0.93 OR (col3 IS NULL AND ((col4 <= 7.72) OR col0 > 6 AND (col3 > 4) AND col1 > 3.68 AND (col1 = 7.94) AND col0 IN (9,2)) AND (col0 > 0 OR col0 IS NULL)) AND ((col3 < 8)) AND (((col1 < 0.59 OR (col1 >= 6.25 AND (col0 >= 1 AND col3 < 6)))) OR col4 = 5.21 OR col1 < 7.56) AND col0 <= 8 AND col3 > 1 AND (((col3 <= 8)) OR col0 <= 1 OR col3 > 8 OR col3 < 0 AND col1 BETWEEN 7.50 AND 3.16 AND (col0 IS NULL AND ((col0 > 7)) AND (col0 > 1) OR col3 >= 6 AND col0 < 6) AND col3 <= 7) OR ((((col3 < 0)) AND col4 < 1.34 OR col4 > 6.7 AND ((((((col3 > 4)) AND (col0 IS NULL) OR col3 < 0) AND ((col1 > 8.92) OR col3 >= 3 AND col3 > 9 AND col4 < 6.81 AND col4 >= 3.40 AND (col3 > 1 OR col1 < 2.80 AND ((col1 >= 8.54 OR col4 >= 7.58 AND col3 > 1 OR col3 IS NULL AND (col1 IN (7.80,9.42,9.44,7.23,2.68,8.23)) OR col3 IS NULL AND ((col0 IS NULL)) OR col3 > 0 AND col1 <= 0.39)) OR col0 > 2) AND (((col3 < 2 AND col4 < 9.36)))))) AND (((col1 = 9.85))) OR col1 IN (9.39,5.89)) AND col4 >= 9.37 AND col0 > 1 AND col3 <= 1 AND col1 = 2.15) AND (((col3 <= 0)) AND col0 = 1)) OR (((col0 > 6) AND (col3 IN (6,3,9)) AND col0 > 6 OR col0 > 0 AND ((col0 IN (1))) AND (((col0 < 5) OR ((col0 < 3))) AND col3 = 7 OR (col0 >= 3)))))) AND ((col3 >= 2)) OR col3 < 9 AND (col0 < 7) OR (col3 BETWEEN 6 AND 3) OR col3 BETWEEN 8 AND 0 AND ((col0 > 0)) OR (col0 <= 7 OR col0 > 8) OR (col1 IN (2.81,1.98,4.8,8.71,3.26,6.99)) OR col3 > 7 OR col3 < 3 AND col1 >= 9.31 OR ((col3 > 6)) AND col4 < 7.51 AND col0 >= 9) AND (col0 > 0) AND col1 = 0.62 AND ((col3 < 6)) AND (col3 IN (1,0)) AND (col3 < 0) OR (col0 < 3)
----

query I rowsort label-2955
SELECT pk FROM tab0 WHERE NOT (col0 < 7 AND col1 < 9.55 AND ((col3 >= 9 AND (col4 > 9.53 AND col1 = 0.93 OR (col3 IS NULL AND ((col4 <= 7.72) OR col0 > 6 AND (col3 > 4) AND col1 > 3.68 AND (col1 = 7.94) AND col0 IN (9,2)) AND (col0 > 0 OR col0 IS NULL)) AND ((col3 < 8)) AND (((col1 < 0.59 OR (col1 >= 6.25 AND (col0 >= 1 AND col3 < 6)))) OR col4 = 5.21 OR col1 < 7.56) AND col0 <= 8 AND col3 > 1 AND (((col3 <= 8)) OR col0 <= 1 OR col3 > 8 OR col3 < 0 AND col1 BETWEEN 7.50 AND 3.16 AND (col0 IS NULL AND ((col0 > 7)) AND (col0 > 1) OR col3 >= 6 AND col0 < 6) AND col3 <= 7) OR ((((col3 < 0)) AND col4 < 1.34 OR col4 > 6.7 AND ((((((col3 > 4)) AND (col0 IS NULL) OR col3 < 0) AND ((col1 > 8.92) OR col3 >= 3 AND col3 > 9 AND col4 < 6.81 AND col4 >= 3.40 AND (col3 > 1 OR col1 < 2.80 AND ((col1 >= 8.54 OR col4 >= 7.58 AND col3 > 1 OR col3 IS NULL AND (col1 IN (7.80,9.42,9.44,7.23,2.68,8.23)) OR col3 IS NULL AND ((col0 IS NULL)) OR col3 > 0 AND col1 <= 0.39)) OR col0 > 2) AND (((col3 < 2 AND col4 < 9.36)))))) AND (((col1 = 9.85))) OR col1 IN (9.39,5.89)) AND col4 >= 9.37 AND col0 > 1 AND col3 <= 1 AND col1 = 2.15) AND (((col3 <= 0)) AND col0 = 1)) OR (((col0 > 6) AND (col3 IN (6,3,9)) AND col0 > 6 OR col0 > 0 AND ((col0 IN (1))) AND (((col0 < 5) OR ((col0 < 3))) AND col3 = 7 OR (col0 >= 3)))))) AND ((col3 >= 2)) OR col3 < 9 AND (col0 < 7) OR (col3 BETWEEN 6 AND 3) OR col3 BETWEEN 8 AND 0 AND ((col0 > 0)) OR (col0 <= 7 OR col0 > 8) OR (col1 IN (2.81,1.98,4.8,8.71,3.26,6.99)) OR col3 > 7 OR col3 < 3 AND col1 >= 9.31 OR ((col3 > 6)) AND col4 < 7.51 AND col0 >= 9) AND (col0 > 0) AND col1 = 0.62 AND ((col3 < 6)) AND (col3 IN (1,0)) AND (col3 < 0) OR (col0 < 3))
----

statement ok
DELETE FROM tab1 WHERE col0 < 7 AND col1 < 9.55 AND ((col3 >= 9 AND (col4 > 9.53 AND col1 = 0.93 OR (col3 IS NULL AND ((col4 <= 7.72) OR col0 > 6 AND (col3 > 4) AND col1 > 3.68 AND (col1 = 7.94) AND col0 IN (9,2)) AND (col0 > 0 OR col0 IS NULL)) AND ((col3 < 8)) AND (((col1 < 0.59 OR (col1 >= 6.25 AND (col0 >= 1 AND col3 < 6)))) OR col4 = 5.21 OR col1 < 7.56) AND col0 <= 8 AND col3 > 1 AND (((col3 <= 8)) OR col0 <= 1 OR col3 > 8 OR col3 < 0 AND col1 BETWEEN 7.50 AND 3.16 AND (col0 IS NULL AND ((col0 > 7)) AND (col0 > 1) OR col3 >= 6 AND col0 < 6) AND col3 <= 7) OR ((((col3 < 0)) AND col4 < 1.34 OR col4 > 6.7 AND ((((((col3 > 4)) AND (col0 IS NULL) OR col3 < 0) AND ((col1 > 8.92) OR col3 >= 3 AND col3 > 9 AND col4 < 6.81 AND col4 >= 3.40 AND (col3 > 1 OR col1 < 2.80 AND ((col1 >= 8.54 OR col4 >= 7.58 AND col3 > 1 OR col3 IS NULL AND (col1 IN (7.80,9.42,9.44,7.23,2.68,8.23)) OR col3 IS NULL AND ((col0 IS NULL)) OR col3 > 0 AND col1 <= 0.39)) OR col0 > 2) AND (((col3 < 2 AND col4 < 9.36)))))) AND (((col1 = 9.85))) OR col1 IN (9.39,5.89)) AND col4 >= 9.37 AND col0 > 1 AND col3 <= 1 AND col1 = 2.15) AND (((col3 <= 0)) AND col0 = 1)) OR (((col0 > 6) AND (col3 IN (6,3,9)) AND col0 > 6 OR col0 > 0 AND ((col0 IN (1))) AND (((col0 < 5) OR ((col0 < 3))) AND col3 = 7 OR (col0 >= 3)))))) AND ((col3 >= 2)) OR col3 < 9 AND (col0 < 7) OR (col3 BETWEEN 6 AND 3) OR col3 BETWEEN 8 AND 0 AND ((col0 > 0)) OR (col0 <= 7 OR col0 > 8) OR (col1 IN (2.81,1.98,4.8,8.71,3.26,6.99)) OR col3 > 7 OR col3 < 3 AND col1 >= 9.31 OR ((col3 > 6)) AND col4 < 7.51 AND col0 >= 9) AND (col0 > 0) AND col1 = 0.62 AND ((col3 < 6)) AND (col3 IN (1,0)) AND (col3 < 0) OR (col0 < 3)

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col0 < 7 AND col1 < 9.55 AND ((col3 >= 9 AND (col4 > 9.53 AND col1 = 0.93 OR (col3 IS NULL AND ((col4 <= 7.72) OR col0 > 6 AND (col3 > 4) AND col1 > 3.68 AND (col1 = 7.94) AND col0 IN (9,2)) AND (col0 > 0 OR col0 IS NULL)) AND ((col3 < 8)) AND (((col1 < 0.59 OR (col1 >= 6.25 AND (col0 >= 1 AND col3 < 6)))) OR col4 = 5.21 OR col1 < 7.56) AND col0 <= 8 AND col3 > 1 AND (((col3 <= 8)) OR col0 <= 1 OR col3 > 8 OR col3 < 0 AND col1 BETWEEN 7.50 AND 3.16 AND (col0 IS NULL AND ((col0 > 7)) AND (col0 > 1) OR col3 >= 6 AND col0 < 6) AND col3 <= 7) OR ((((col3 < 0)) AND col4 < 1.34 OR col4 > 6.7 AND ((((((col3 > 4)) AND (col0 IS NULL) OR col3 < 0) AND ((col1 > 8.92) OR col3 >= 3 AND col3 > 9 AND col4 < 6.81 AND col4 >= 3.40 AND (col3 > 1 OR col1 < 2.80 AND ((col1 >= 8.54 OR col4 >= 7.58 AND col3 > 1 OR col3 IS NULL AND (col1 IN (7.80,9.42,9.44,7.23,2.68,8.23)) OR col3 IS NULL AND ((col0 IS NULL)) OR col3 > 0 AND col1 <= 0.39)) OR col0 > 2) AND (((col3 < 2 AND col4 < 9.36)))))) AND (((col1 = 9.85))) OR col1 IN (9.39,5.89)) AND col4 >= 9.37 AND col0 > 1 AND col3 <= 1 AND col1 = 2.15) AND (((col3 <= 0)) AND col0 = 1)) OR (((col0 > 6) AND (col3 IN (6,3,9)) AND col0 > 6 OR col0 > 0 AND ((col0 IN (1))) AND (((col0 < 5) OR ((col0 < 3))) AND col3 = 7 OR (col0 >= 3)))))) AND ((col3 >= 2)) OR col3 < 9 AND (col0 < 7) OR (col3 BETWEEN 6 AND 3) OR col3 BETWEEN 8 AND 0 AND ((col0 > 0)) OR (col0 <= 7 OR col0 > 8) OR (col1 IN (2.81,1.98,4.8,8.71,3.26,6.99)) OR col3 > 7 OR col3 < 3 AND col1 >= 9.31 OR ((col3 > 6)) AND col4 < 7.51 AND col0 >= 9) AND (col0 > 0) AND col1 = 0.62 AND ((col3 < 6)) AND (col3 IN (1,0)) AND (col3 < 0) OR (col0 < 3)
----

query I rowsort label-2955
SELECT pk FROM tab1 WHERE NOT (col0 < 7 AND col1 < 9.55 AND ((col3 >= 9 AND (col4 > 9.53 AND col1 = 0.93 OR (col3 IS NULL AND ((col4 <= 7.72) OR col0 > 6 AND (col3 > 4) AND col1 > 3.68 AND (col1 = 7.94) AND col0 IN (9,2)) AND (col0 > 0 OR col0 IS NULL)) AND ((col3 < 8)) AND (((col1 < 0.59 OR (col1 >= 6.25 AND (col0 >= 1 AND col3 < 6)))) OR col4 = 5.21 OR col1 < 7.56) AND col0 <= 8 AND col3 > 1 AND (((col3 <= 8)) OR col0 <= 1 OR col3 > 8 OR col3 < 0 AND col1 BETWEEN 7.50 AND 3.16 AND (col0 IS NULL AND ((col0 > 7)) AND (col0 > 1) OR col3 >= 6 AND col0 < 6) AND col3 <= 7) OR ((((col3 < 0)) AND col4 < 1.34 OR col4 > 6.7 AND ((((((col3 > 4)) AND (col0 IS NULL) OR col3 < 0) AND ((col1 > 8.92) OR col3 >= 3 AND col3 > 9 AND col4 < 6.81 AND col4 >= 3.40 AND (col3 > 1 OR col1 < 2.80 AND ((col1 >= 8.54 OR col4 >= 7.58 AND col3 > 1 OR col3 IS NULL AND (col1 IN (7.80,9.42,9.44,7.23,2.68,8.23)) OR col3 IS NULL AND ((col0 IS NULL)) OR col3 > 0 AND col1 <= 0.39)) OR col0 > 2) AND (((col3 < 2 AND col4 < 9.36)))))) AND (((col1 = 9.85))) OR col1 IN (9.39,5.89)) AND col4 >= 9.37 AND col0 > 1 AND col3 <= 1 AND col1 = 2.15) AND (((col3 <= 0)) AND col0 = 1)) OR (((col0 > 6) AND (col3 IN (6,3,9)) AND col0 > 6 OR col0 > 0 AND ((col0 IN (1))) AND (((col0 < 5) OR ((col0 < 3))) AND col3 = 7 OR (col0 >= 3)))))) AND ((col3 >= 2)) OR col3 < 9 AND (col0 < 7) OR (col3 BETWEEN 6 AND 3) OR col3 BETWEEN 8 AND 0 AND ((col0 > 0)) OR (col0 <= 7 OR col0 > 8) OR (col1 IN (2.81,1.98,4.8,8.71,3.26,6.99)) OR col3 > 7 OR col3 < 3 AND col1 >= 9.31 OR ((col3 > 6)) AND col4 < 7.51 AND col0 >= 9) AND (col0 > 0) AND col1 = 0.62 AND ((col3 < 6)) AND (col3 IN (1,0)) AND (col3 < 0) OR (col0 < 3))
----

statement ok
DELETE FROM tab2 WHERE col0 < 7 AND col1 < 9.55 AND ((col3 >= 9 AND (col4 > 9.53 AND col1 = 0.93 OR (col3 IS NULL AND ((col4 <= 7.72) OR col0 > 6 AND (col3 > 4) AND col1 > 3.68 AND (col1 = 7.94) AND col0 IN (9,2)) AND (col0 > 0 OR col0 IS NULL)) AND ((col3 < 8)) AND (((col1 < 0.59 OR (col1 >= 6.25 AND (col0 >= 1 AND col3 < 6)))) OR col4 = 5.21 OR col1 < 7.56) AND col0 <= 8 AND col3 > 1 AND (((col3 <= 8)) OR col0 <= 1 OR col3 > 8 OR col3 < 0 AND col1 BETWEEN 7.50 AND 3.16 AND (col0 IS NULL AND ((col0 > 7)) AND (col0 > 1) OR col3 >= 6 AND col0 < 6) AND col3 <= 7) OR ((((col3 < 0)) AND col4 < 1.34 OR col4 > 6.7 AND ((((((col3 > 4)) AND (col0 IS NULL) OR col3 < 0) AND ((col1 > 8.92) OR col3 >= 3 AND col3 > 9 AND col4 < 6.81 AND col4 >= 3.40 AND (col3 > 1 OR col1 < 2.80 AND ((col1 >= 8.54 OR col4 >= 7.58 AND col3 > 1 OR col3 IS NULL AND (col1 IN (7.80,9.42,9.44,7.23,2.68,8.23)) OR col3 IS NULL AND ((col0 IS NULL)) OR col3 > 0 AND col1 <= 0.39)) OR col0 > 2) AND (((col3 < 2 AND col4 < 9.36)))))) AND (((col1 = 9.85))) OR col1 IN (9.39,5.89)) AND col4 >= 9.37 AND col0 > 1 AND col3 <= 1 AND col1 = 2.15) AND (((col3 <= 0)) AND col0 = 1)) OR (((col0 > 6) AND (col3 IN (6,3,9)) AND col0 > 6 OR col0 > 0 AND ((col0 IN (1))) AND (((col0 < 5) OR ((col0 < 3))) AND col3 = 7 OR (col0 >= 3)))))) AND ((col3 >= 2)) OR col3 < 9 AND (col0 < 7) OR (col3 BETWEEN 6 AND 3) OR col3 BETWEEN 8 AND 0 AND ((col0 > 0)) OR (col0 <= 7 OR col0 > 8) OR (col1 IN (2.81,1.98,4.8,8.71,3.26,6.99)) OR col3 > 7 OR col3 < 3 AND col1 >= 9.31 OR ((col3 > 6)) AND col4 < 7.51 AND col0 >= 9) AND (col0 > 0) AND col1 = 0.62 AND ((col3 < 6)) AND (col3 IN (1,0)) AND (col3 < 0) OR (col0 < 3)

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col0 < 7 AND col1 < 9.55 AND ((col3 >= 9 AND (col4 > 9.53 AND col1 = 0.93 OR (col3 IS NULL AND ((col4 <= 7.72) OR col0 > 6 AND (col3 > 4) AND col1 > 3.68 AND (col1 = 7.94) AND col0 IN (9,2)) AND (col0 > 0 OR col0 IS NULL)) AND ((col3 < 8)) AND (((col1 < 0.59 OR (col1 >= 6.25 AND (col0 >= 1 AND col3 < 6)))) OR col4 = 5.21 OR col1 < 7.56) AND col0 <= 8 AND col3 > 1 AND (((col3 <= 8)) OR col0 <= 1 OR col3 > 8 OR col3 < 0 AND col1 BETWEEN 7.50 AND 3.16 AND (col0 IS NULL AND ((col0 > 7)) AND (col0 > 1) OR col3 >= 6 AND col0 < 6) AND col3 <= 7) OR ((((col3 < 0)) AND col4 < 1.34 OR col4 > 6.7 AND ((((((col3 > 4)) AND (col0 IS NULL) OR col3 < 0) AND ((col1 > 8.92) OR col3 >= 3 AND col3 > 9 AND col4 < 6.81 AND col4 >= 3.40 AND (col3 > 1 OR col1 < 2.80 AND ((col1 >= 8.54 OR col4 >= 7.58 AND col3 > 1 OR col3 IS NULL AND (col1 IN (7.80,9.42,9.44,7.23,2.68,8.23)) OR col3 IS NULL AND ((col0 IS NULL)) OR col3 > 0 AND col1 <= 0.39)) OR col0 > 2) AND (((col3 < 2 AND col4 < 9.36)))))) AND (((col1 = 9.85))) OR col1 IN (9.39,5.89)) AND col4 >= 9.37 AND col0 > 1 AND col3 <= 1 AND col1 = 2.15) AND (((col3 <= 0)) AND col0 = 1)) OR (((col0 > 6) AND (col3 IN (6,3,9)) AND col0 > 6 OR col0 > 0 AND ((col0 IN (1))) AND (((col0 < 5) OR ((col0 < 3))) AND col3 = 7 OR (col0 >= 3)))))) AND ((col3 >= 2)) OR col3 < 9 AND (col0 < 7) OR (col3 BETWEEN 6 AND 3) OR col3 BETWEEN 8 AND 0 AND ((col0 > 0)) OR (col0 <= 7 OR col0 > 8) OR (col1 IN (2.81,1.98,4.8,8.71,3.26,6.99)) OR col3 > 7 OR col3 < 3 AND col1 >= 9.31 OR ((col3 > 6)) AND col4 < 7.51 AND col0 >= 9) AND (col0 > 0) AND col1 = 0.62 AND ((col3 < 6)) AND (col3 IN (1,0)) AND (col3 < 0) OR (col0 < 3)
----

query I rowsort label-2955
SELECT pk FROM tab2 WHERE NOT (col0 < 7 AND col1 < 9.55 AND ((col3 >= 9 AND (col4 > 9.53 AND col1 = 0.93 OR (col3 IS NULL AND ((col4 <= 7.72) OR col0 > 6 AND (col3 > 4) AND col1 > 3.68 AND (col1 = 7.94) AND col0 IN (9,2)) AND (col0 > 0 OR col0 IS NULL)) AND ((col3 < 8)) AND (((col1 < 0.59 OR (col1 >= 6.25 AND (col0 >= 1 AND col3 < 6)))) OR col4 = 5.21 OR col1 < 7.56) AND col0 <= 8 AND col3 > 1 AND (((col3 <= 8)) OR col0 <= 1 OR col3 > 8 OR col3 < 0 AND col1 BETWEEN 7.50 AND 3.16 AND (col0 IS NULL AND ((col0 > 7)) AND (col0 > 1) OR col3 >= 6 AND col0 < 6) AND col3 <= 7) OR ((((col3 < 0)) AND col4 < 1.34 OR col4 > 6.7 AND ((((((col3 > 4)) AND (col0 IS NULL) OR col3 < 0) AND ((col1 > 8.92) OR col3 >= 3 AND col3 > 9 AND col4 < 6.81 AND col4 >= 3.40 AND (col3 > 1 OR col1 < 2.80 AND ((col1 >= 8.54 OR col4 >= 7.58 AND col3 > 1 OR col3 IS NULL AND (col1 IN (7.80,9.42,9.44,7.23,2.68,8.23)) OR col3 IS NULL AND ((col0 IS NULL)) OR col3 > 0 AND col1 <= 0.39)) OR col0 > 2) AND (((col3 < 2 AND col4 < 9.36)))))) AND (((col1 = 9.85))) OR col1 IN (9.39,5.89)) AND col4 >= 9.37 AND col0 > 1 AND col3 <= 1 AND col1 = 2.15) AND (((col3 <= 0)) AND col0 = 1)) OR (((col0 > 6) AND (col3 IN (6,3,9)) AND col0 > 6 OR col0 > 0 AND ((col0 IN (1))) AND (((col0 < 5) OR ((col0 < 3))) AND col3 = 7 OR (col0 >= 3)))))) AND ((col3 >= 2)) OR col3 < 9 AND (col0 < 7) OR (col3 BETWEEN 6 AND 3) OR col3 BETWEEN 8 AND 0 AND ((col0 > 0)) OR (col0 <= 7 OR col0 > 8) OR (col1 IN (2.81,1.98,4.8,8.71,3.26,6.99)) OR col3 > 7 OR col3 < 3 AND col1 >= 9.31 OR ((col3 > 6)) AND col4 < 7.51 AND col0 >= 9) AND (col0 > 0) AND col1 = 0.62 AND ((col3 < 6)) AND (col3 IN (1,0)) AND (col3 < 0) OR (col0 < 3))
----

statement ok
DELETE FROM tab3 WHERE col0 < 7 AND col1 < 9.55 AND ((col3 >= 9 AND (col4 > 9.53 AND col1 = 0.93 OR (col3 IS NULL AND ((col4 <= 7.72) OR col0 > 6 AND (col3 > 4) AND col1 > 3.68 AND (col1 = 7.94) AND col0 IN (9,2)) AND (col0 > 0 OR col0 IS NULL)) AND ((col3 < 8)) AND (((col1 < 0.59 OR (col1 >= 6.25 AND (col0 >= 1 AND col3 < 6)))) OR col4 = 5.21 OR col1 < 7.56) AND col0 <= 8 AND col3 > 1 AND (((col3 <= 8)) OR col0 <= 1 OR col3 > 8 OR col3 < 0 AND col1 BETWEEN 7.50 AND 3.16 AND (col0 IS NULL AND ((col0 > 7)) AND (col0 > 1) OR col3 >= 6 AND col0 < 6) AND col3 <= 7) OR ((((col3 < 0)) AND col4 < 1.34 OR col4 > 6.7 AND ((((((col3 > 4)) AND (col0 IS NULL) OR col3 < 0) AND ((col1 > 8.92) OR col3 >= 3 AND col3 > 9 AND col4 < 6.81 AND col4 >= 3.40 AND (col3 > 1 OR col1 < 2.80 AND ((col1 >= 8.54 OR col4 >= 7.58 AND col3 > 1 OR col3 IS NULL AND (col1 IN (7.80,9.42,9.44,7.23,2.68,8.23)) OR col3 IS NULL AND ((col0 IS NULL)) OR col3 > 0 AND col1 <= 0.39)) OR col0 > 2) AND (((col3 < 2 AND col4 < 9.36)))))) AND (((col1 = 9.85))) OR col1 IN (9.39,5.89)) AND col4 >= 9.37 AND col0 > 1 AND col3 <= 1 AND col1 = 2.15) AND (((col3 <= 0)) AND col0 = 1)) OR (((col0 > 6) AND (col3 IN (6,3,9)) AND col0 > 6 OR col0 > 0 AND ((col0 IN (1))) AND (((col0 < 5) OR ((col0 < 3))) AND col3 = 7 OR (col0 >= 3)))))) AND ((col3 >= 2)) OR col3 < 9 AND (col0 < 7) OR (col3 BETWEEN 6 AND 3) OR col3 BETWEEN 8 AND 0 AND ((col0 > 0)) OR (col0 <= 7 OR col0 > 8) OR (col1 IN (2.81,1.98,4.8,8.71,3.26,6.99)) OR col3 > 7 OR col3 < 3 AND col1 >= 9.31 OR ((col3 > 6)) AND col4 < 7.51 AND col0 >= 9) AND (col0 > 0) AND col1 = 0.62 AND ((col3 < 6)) AND (col3 IN (1,0)) AND (col3 < 0) OR (col0 < 3)

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col0 < 7 AND col1 < 9.55 AND ((col3 >= 9 AND (col4 > 9.53 AND col1 = 0.93 OR (col3 IS NULL AND ((col4 <= 7.72) OR col0 > 6 AND (col3 > 4) AND col1 > 3.68 AND (col1 = 7.94) AND col0 IN (9,2)) AND (col0 > 0 OR col0 IS NULL)) AND ((col3 < 8)) AND (((col1 < 0.59 OR (col1 >= 6.25 AND (col0 >= 1 AND col3 < 6)))) OR col4 = 5.21 OR col1 < 7.56) AND col0 <= 8 AND col3 > 1 AND (((col3 <= 8)) OR col0 <= 1 OR col3 > 8 OR col3 < 0 AND col1 BETWEEN 7.50 AND 3.16 AND (col0 IS NULL AND ((col0 > 7)) AND (col0 > 1) OR col3 >= 6 AND col0 < 6) AND col3 <= 7) OR ((((col3 < 0)) AND col4 < 1.34 OR col4 > 6.7 AND ((((((col3 > 4)) AND (col0 IS NULL) OR col3 < 0) AND ((col1 > 8.92) OR col3 >= 3 AND col3 > 9 AND col4 < 6.81 AND col4 >= 3.40 AND (col3 > 1 OR col1 < 2.80 AND ((col1 >= 8.54 OR col4 >= 7.58 AND col3 > 1 OR col3 IS NULL AND (col1 IN (7.80,9.42,9.44,7.23,2.68,8.23)) OR col3 IS NULL AND ((col0 IS NULL)) OR col3 > 0 AND col1 <= 0.39)) OR col0 > 2) AND (((col3 < 2 AND col4 < 9.36)))))) AND (((col1 = 9.85))) OR col1 IN (9.39,5.89)) AND col4 >= 9.37 AND col0 > 1 AND col3 <= 1 AND col1 = 2.15) AND (((col3 <= 0)) AND col0 = 1)) OR (((col0 > 6) AND (col3 IN (6,3,9)) AND col0 > 6 OR col0 > 0 AND ((col0 IN (1))) AND (((col0 < 5) OR ((col0 < 3))) AND col3 = 7 OR (col0 >= 3)))))) AND ((col3 >= 2)) OR col3 < 9 AND (col0 < 7) OR (col3 BETWEEN 6 AND 3) OR col3 BETWEEN 8 AND 0 AND ((col0 > 0)) OR (col0 <= 7 OR col0 > 8) OR (col1 IN (2.81,1.98,4.8,8.71,3.26,6.99)) OR col3 > 7 OR col3 < 3 AND col1 >= 9.31 OR ((col3 > 6)) AND col4 < 7.51 AND col0 >= 9) AND (col0 > 0) AND col1 = 0.62 AND ((col3 < 6)) AND (col3 IN (1,0)) AND (col3 < 0) OR (col0 < 3)
----

query I rowsort label-2955
SELECT pk FROM tab3 WHERE NOT (col0 < 7 AND col1 < 9.55 AND ((col3 >= 9 AND (col4 > 9.53 AND col1 = 0.93 OR (col3 IS NULL AND ((col4 <= 7.72) OR col0 > 6 AND (col3 > 4) AND col1 > 3.68 AND (col1 = 7.94) AND col0 IN (9,2)) AND (col0 > 0 OR col0 IS NULL)) AND ((col3 < 8)) AND (((col1 < 0.59 OR (col1 >= 6.25 AND (col0 >= 1 AND col3 < 6)))) OR col4 = 5.21 OR col1 < 7.56) AND col0 <= 8 AND col3 > 1 AND (((col3 <= 8)) OR col0 <= 1 OR col3 > 8 OR col3 < 0 AND col1 BETWEEN 7.50 AND 3.16 AND (col0 IS NULL AND ((col0 > 7)) AND (col0 > 1) OR col3 >= 6 AND col0 < 6) AND col3 <= 7) OR ((((col3 < 0)) AND col4 < 1.34 OR col4 > 6.7 AND ((((((col3 > 4)) AND (col0 IS NULL) OR col3 < 0) AND ((col1 > 8.92) OR col3 >= 3 AND col3 > 9 AND col4 < 6.81 AND col4 >= 3.40 AND (col3 > 1 OR col1 < 2.80 AND ((col1 >= 8.54 OR col4 >= 7.58 AND col3 > 1 OR col3 IS NULL AND (col1 IN (7.80,9.42,9.44,7.23,2.68,8.23)) OR col3 IS NULL AND ((col0 IS NULL)) OR col3 > 0 AND col1 <= 0.39)) OR col0 > 2) AND (((col3 < 2 AND col4 < 9.36)))))) AND (((col1 = 9.85))) OR col1 IN (9.39,5.89)) AND col4 >= 9.37 AND col0 > 1 AND col3 <= 1 AND col1 = 2.15) AND (((col3 <= 0)) AND col0 = 1)) OR (((col0 > 6) AND (col3 IN (6,3,9)) AND col0 > 6 OR col0 > 0 AND ((col0 IN (1))) AND (((col0 < 5) OR ((col0 < 3))) AND col3 = 7 OR (col0 >= 3)))))) AND ((col3 >= 2)) OR col3 < 9 AND (col0 < 7) OR (col3 BETWEEN 6 AND 3) OR col3 BETWEEN 8 AND 0 AND ((col0 > 0)) OR (col0 <= 7 OR col0 > 8) OR (col1 IN (2.81,1.98,4.8,8.71,3.26,6.99)) OR col3 > 7 OR col3 < 3 AND col1 >= 9.31 OR ((col3 > 6)) AND col4 < 7.51 AND col0 >= 9) AND (col0 > 0) AND col1 = 0.62 AND ((col3 < 6)) AND (col3 IN (1,0)) AND (col3 < 0) OR (col0 < 3))
----

statement ok
DELETE FROM tab4 WHERE col0 < 7 AND col1 < 9.55 AND ((col3 >= 9 AND (col4 > 9.53 AND col1 = 0.93 OR (col3 IS NULL AND ((col4 <= 7.72) OR col0 > 6 AND (col3 > 4) AND col1 > 3.68 AND (col1 = 7.94) AND col0 IN (9,2)) AND (col0 > 0 OR col0 IS NULL)) AND ((col3 < 8)) AND (((col1 < 0.59 OR (col1 >= 6.25 AND (col0 >= 1 AND col3 < 6)))) OR col4 = 5.21 OR col1 < 7.56) AND col0 <= 8 AND col3 > 1 AND (((col3 <= 8)) OR col0 <= 1 OR col3 > 8 OR col3 < 0 AND col1 BETWEEN 7.50 AND 3.16 AND (col0 IS NULL AND ((col0 > 7)) AND (col0 > 1) OR col3 >= 6 AND col0 < 6) AND col3 <= 7) OR ((((col3 < 0)) AND col4 < 1.34 OR col4 > 6.7 AND ((((((col3 > 4)) AND (col0 IS NULL) OR col3 < 0) AND ((col1 > 8.92) OR col3 >= 3 AND col3 > 9 AND col4 < 6.81 AND col4 >= 3.40 AND (col3 > 1 OR col1 < 2.80 AND ((col1 >= 8.54 OR col4 >= 7.58 AND col3 > 1 OR col3 IS NULL AND (col1 IN (7.80,9.42,9.44,7.23,2.68,8.23)) OR col3 IS NULL AND ((col0 IS NULL)) OR col3 > 0 AND col1 <= 0.39)) OR col0 > 2) AND (((col3 < 2 AND col4 < 9.36)))))) AND (((col1 = 9.85))) OR col1 IN (9.39,5.89)) AND col4 >= 9.37 AND col0 > 1 AND col3 <= 1 AND col1 = 2.15) AND (((col3 <= 0)) AND col0 = 1)) OR (((col0 > 6) AND (col3 IN (6,3,9)) AND col0 > 6 OR col0 > 0 AND ((col0 IN (1))) AND (((col0 < 5) OR ((col0 < 3))) AND col3 = 7 OR (col0 >= 3)))))) AND ((col3 >= 2)) OR col3 < 9 AND (col0 < 7) OR (col3 BETWEEN 6 AND 3) OR col3 BETWEEN 8 AND 0 AND ((col0 > 0)) OR (col0 <= 7 OR col0 > 8) OR (col1 IN (2.81,1.98,4.8,8.71,3.26,6.99)) OR col3 > 7 OR col3 < 3 AND col1 >= 9.31 OR ((col3 > 6)) AND col4 < 7.51 AND col0 >= 9) AND (col0 > 0) AND col1 = 0.62 AND ((col3 < 6)) AND (col3 IN (1,0)) AND (col3 < 0) OR (col0 < 3)

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col0 < 7 AND col1 < 9.55 AND ((col3 >= 9 AND (col4 > 9.53 AND col1 = 0.93 OR (col3 IS NULL AND ((col4 <= 7.72) OR col0 > 6 AND (col3 > 4) AND col1 > 3.68 AND (col1 = 7.94) AND col0 IN (9,2)) AND (col0 > 0 OR col0 IS NULL)) AND ((col3 < 8)) AND (((col1 < 0.59 OR (col1 >= 6.25 AND (col0 >= 1 AND col3 < 6)))) OR col4 = 5.21 OR col1 < 7.56) AND col0 <= 8 AND col3 > 1 AND (((col3 <= 8)) OR col0 <= 1 OR col3 > 8 OR col3 < 0 AND col1 BETWEEN 7.50 AND 3.16 AND (col0 IS NULL AND ((col0 > 7)) AND (col0 > 1) OR col3 >= 6 AND col0 < 6) AND col3 <= 7) OR ((((col3 < 0)) AND col4 < 1.34 OR col4 > 6.7 AND ((((((col3 > 4)) AND (col0 IS NULL) OR col3 < 0) AND ((col1 > 8.92) OR col3 >= 3 AND col3 > 9 AND col4 < 6.81 AND col4 >= 3.40 AND (col3 > 1 OR col1 < 2.80 AND ((col1 >= 8.54 OR col4 >= 7.58 AND col3 > 1 OR col3 IS NULL AND (col1 IN (7.80,9.42,9.44,7.23,2.68,8.23)) OR col3 IS NULL AND ((col0 IS NULL)) OR col3 > 0 AND col1 <= 0.39)) OR col0 > 2) AND (((col3 < 2 AND col4 < 9.36)))))) AND (((col1 = 9.85))) OR col1 IN (9.39,5.89)) AND col4 >= 9.37 AND col0 > 1 AND col3 <= 1 AND col1 = 2.15) AND (((col3 <= 0)) AND col0 = 1)) OR (((col0 > 6) AND (col3 IN (6,3,9)) AND col0 > 6 OR col0 > 0 AND ((col0 IN (1))) AND (((col0 < 5) OR ((col0 < 3))) AND col3 = 7 OR (col0 >= 3)))))) AND ((col3 >= 2)) OR col3 < 9 AND (col0 < 7) OR (col3 BETWEEN 6 AND 3) OR col3 BETWEEN 8 AND 0 AND ((col0 > 0)) OR (col0 <= 7 OR col0 > 8) OR (col1 IN (2.81,1.98,4.8,8.71,3.26,6.99)) OR col3 > 7 OR col3 < 3 AND col1 >= 9.31 OR ((col3 > 6)) AND col4 < 7.51 AND col0 >= 9) AND (col0 > 0) AND col1 = 0.62 AND ((col3 < 6)) AND (col3 IN (1,0)) AND (col3 < 0) OR (col0 < 3)
----

query I rowsort label-2955
SELECT pk FROM tab4 WHERE NOT (col0 < 7 AND col1 < 9.55 AND ((col3 >= 9 AND (col4 > 9.53 AND col1 = 0.93 OR (col3 IS NULL AND ((col4 <= 7.72) OR col0 > 6 AND (col3 > 4) AND col1 > 3.68 AND (col1 = 7.94) AND col0 IN (9,2)) AND (col0 > 0 OR col0 IS NULL)) AND ((col3 < 8)) AND (((col1 < 0.59 OR (col1 >= 6.25 AND (col0 >= 1 AND col3 < 6)))) OR col4 = 5.21 OR col1 < 7.56) AND col0 <= 8 AND col3 > 1 AND (((col3 <= 8)) OR col0 <= 1 OR col3 > 8 OR col3 < 0 AND col1 BETWEEN 7.50 AND 3.16 AND (col0 IS NULL AND ((col0 > 7)) AND (col0 > 1) OR col3 >= 6 AND col0 < 6) AND col3 <= 7) OR ((((col3 < 0)) AND col4 < 1.34 OR col4 > 6.7 AND ((((((col3 > 4)) AND (col0 IS NULL) OR col3 < 0) AND ((col1 > 8.92) OR col3 >= 3 AND col3 > 9 AND col4 < 6.81 AND col4 >= 3.40 AND (col3 > 1 OR col1 < 2.80 AND ((col1 >= 8.54 OR col4 >= 7.58 AND col3 > 1 OR col3 IS NULL AND (col1 IN (7.80,9.42,9.44,7.23,2.68,8.23)) OR col3 IS NULL AND ((col0 IS NULL)) OR col3 > 0 AND col1 <= 0.39)) OR col0 > 2) AND (((col3 < 2 AND col4 < 9.36)))))) AND (((col1 = 9.85))) OR col1 IN (9.39,5.89)) AND col4 >= 9.37 AND col0 > 1 AND col3 <= 1 AND col1 = 2.15) AND (((col3 <= 0)) AND col0 = 1)) OR (((col0 > 6) AND (col3 IN (6,3,9)) AND col0 > 6 OR col0 > 0 AND ((col0 IN (1))) AND (((col0 < 5) OR ((col0 < 3))) AND col3 = 7 OR (col0 >= 3)))))) AND ((col3 >= 2)) OR col3 < 9 AND (col0 < 7) OR (col3 BETWEEN 6 AND 3) OR col3 BETWEEN 8 AND 0 AND ((col0 > 0)) OR (col0 <= 7 OR col0 > 8) OR (col1 IN (2.81,1.98,4.8,8.71,3.26,6.99)) OR col3 > 7 OR col3 < 3 AND col1 >= 9.31 OR ((col3 > 6)) AND col4 < 7.51 AND col0 >= 9) AND (col0 > 0) AND col1 = 0.62 AND ((col3 < 6)) AND (col3 IN (1,0)) AND (col3 < 0) OR (col0 < 3))
----

statement ok
DROP TABLE tab0

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,9,6.70,'fgwxp',2,5.73,'emglu')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE UNIQUE INDEX idx_tab2_0 ON tab2 (col0)

statement ok
CREATE INDEX idx_tab2_1 ON tab2 (col4)

statement ok
CREATE INDEX idx_tab2_2 ON tab2 (col1 DESC,col3 DESC)

statement ok
CREATE INDEX idx_tab2_5 ON tab2 (col3 DESC)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

statement ok
CREATE INDEX idx_tab3_0 ON tab3 (col3 DESC)

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

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE INDEX idx_tab4_0 ON tab4 (col3)

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

statement ok
DELETE FROM tab0 WHERE col0 < 8

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col0 < 8
----

query I rowsort label-2970
SELECT pk FROM tab0 WHERE NOT (col0 < 8)
----
0

statement ok
DELETE FROM tab1 WHERE col0 < 8

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col0 < 8
----

query I rowsort label-2970
SELECT pk FROM tab1 WHERE NOT (col0 < 8)
----
0

statement ok
DELETE FROM tab2 WHERE col0 < 8

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col0 < 8
----

query I rowsort label-2970
SELECT pk FROM tab2 WHERE NOT (col0 < 8)
----
0

statement ok
DELETE FROM tab3 WHERE col0 < 8

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col0 < 8
----

query I rowsort label-2970
SELECT pk FROM tab3 WHERE NOT (col0 < 8)
----
0

statement ok
DELETE FROM tab4 WHERE col0 < 8

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col0 < 8
----

query I rowsort label-2970
SELECT pk FROM tab4 WHERE NOT (col0 < 8)
----
0

statement ok
DELETE FROM tab0 WHERE ((col3 < 0) AND ((col1 IS NULL)) OR ((col3 IN (7,2,3) OR (((col0 IN (7,8))))) OR col0 <= 5) OR ((col1 > 8.51)) AND col0 >= 9 AND col4 < 5.7 AND col3 < 3 AND (col0 > 0 OR col0 < 9 OR (col0 > 6)) OR col0 IN (8,4,1,7,5))

query I rowsort label-empty
SELECT pk FROM tab0 WHERE ((col3 < 0) AND ((col1 IS NULL)) OR ((col3 IN (7,2,3) OR (((col0 IN (7,8))))) OR col0 <= 5) OR ((col1 > 8.51)) AND col0 >= 9 AND col4 < 5.7 AND col3 < 3 AND (col0 > 0 OR col0 < 9 OR (col0 > 6)) OR col0 IN (8,4,1,7,5))
----

query I rowsort label-2985
SELECT pk FROM tab0 WHERE NOT (((col3 < 0) AND ((col1 IS NULL)) OR ((col3 IN (7,2,3) OR (((col0 IN (7,8))))) OR col0 <= 5) OR ((col1 > 8.51)) AND col0 >= 9 AND col4 < 5.7 AND col3 < 3 AND (col0 > 0 OR col0 < 9 OR (col0 > 6)) OR col0 IN (8,4,1,7,5)))
----

statement ok
DELETE FROM tab1 WHERE ((col3 < 0) AND ((col1 IS NULL)) OR ((col3 IN (7,2,3) OR (((col0 IN (7,8))))) OR col0 <= 5) OR ((col1 > 8.51)) AND col0 >= 9 AND col4 < 5.7 AND col3 < 3 AND (col0 > 0 OR col0 < 9 OR (col0 > 6)) OR col0 IN (8,4,1,7,5))

query I rowsort label-empty
SELECT pk FROM tab1 WHERE ((col3 < 0) AND ((col1 IS NULL)) OR ((col3 IN (7,2,3) OR (((col0 IN (7,8))))) OR col0 <= 5) OR ((col1 > 8.51)) AND col0 >= 9 AND col4 < 5.7 AND col3 < 3 AND (col0 > 0 OR col0 < 9 OR (col0 > 6)) OR col0 IN (8,4,1,7,5))
----

query I rowsort label-2985
SELECT pk FROM tab1 WHERE NOT (((col3 < 0) AND ((col1 IS NULL)) OR ((col3 IN (7,2,3) OR (((col0 IN (7,8))))) OR col0 <= 5) OR ((col1 > 8.51)) AND col0 >= 9 AND col4 < 5.7 AND col3 < 3 AND (col0 > 0 OR col0 < 9 OR (col0 > 6)) OR col0 IN (8,4,1,7,5)))
----

statement ok
DELETE FROM tab2 WHERE ((col3 < 0) AND ((col1 IS NULL)) OR ((col3 IN (7,2,3) OR (((col0 IN (7,8))))) OR col0 <= 5) OR ((col1 > 8.51)) AND col0 >= 9 AND col4 < 5.7 AND col3 < 3 AND (col0 > 0 OR col0 < 9 OR (col0 > 6)) OR col0 IN (8,4,1,7,5))

query I rowsort label-empty
SELECT pk FROM tab2 WHERE ((col3 < 0) AND ((col1 IS NULL)) OR ((col3 IN (7,2,3) OR (((col0 IN (7,8))))) OR col0 <= 5) OR ((col1 > 8.51)) AND col0 >= 9 AND col4 < 5.7 AND col3 < 3 AND (col0 > 0 OR col0 < 9 OR (col0 > 6)) OR col0 IN (8,4,1,7,5))
----

query I rowsort label-2985
SELECT pk FROM tab2 WHERE NOT (((col3 < 0) AND ((col1 IS NULL)) OR ((col3 IN (7,2,3) OR (((col0 IN (7,8))))) OR col0 <= 5) OR ((col1 > 8.51)) AND col0 >= 9 AND col4 < 5.7 AND col3 < 3 AND (col0 > 0 OR col0 < 9 OR (col0 > 6)) OR col0 IN (8,4,1,7,5)))
----

statement ok
DELETE FROM tab3 WHERE ((col3 < 0) AND ((col1 IS NULL)) OR ((col3 IN (7,2,3) OR (((col0 IN (7,8))))) OR col0 <= 5) OR ((col1 > 8.51)) AND col0 >= 9 AND col4 < 5.7 AND col3 < 3 AND (col0 > 0 OR col0 < 9 OR (col0 > 6)) OR col0 IN (8,4,1,7,5))

query I rowsort label-empty
SELECT pk FROM tab3 WHERE ((col3 < 0) AND ((col1 IS NULL)) OR ((col3 IN (7,2,3) OR (((col0 IN (7,8))))) OR col0 <= 5) OR ((col1 > 8.51)) AND col0 >= 9 AND col4 < 5.7 AND col3 < 3 AND (col0 > 0 OR col0 < 9 OR (col0 > 6)) OR col0 IN (8,4,1,7,5))
----

query I rowsort label-2985
SELECT pk FROM tab3 WHERE NOT (((col3 < 0) AND ((col1 IS NULL)) OR ((col3 IN (7,2,3) OR (((col0 IN (7,8))))) OR col0 <= 5) OR ((col1 > 8.51)) AND col0 >= 9 AND col4 < 5.7 AND col3 < 3 AND (col0 > 0 OR col0 < 9 OR (col0 > 6)) OR col0 IN (8,4,1,7,5)))
----

statement ok
DELETE FROM tab4 WHERE ((col3 < 0) AND ((col1 IS NULL)) OR ((col3 IN (7,2,3) OR (((col0 IN (7,8))))) OR col0 <= 5) OR ((col1 > 8.51)) AND col0 >= 9 AND col4 < 5.7 AND col3 < 3 AND (col0 > 0 OR col0 < 9 OR (col0 > 6)) OR col0 IN (8,4,1,7,5))

query I rowsort label-empty
SELECT pk FROM tab4 WHERE ((col3 < 0) AND ((col1 IS NULL)) OR ((col3 IN (7,2,3) OR (((col0 IN (7,8))))) OR col0 <= 5) OR ((col1 > 8.51)) AND col0 >= 9 AND col4 < 5.7 AND col3 < 3 AND (col0 > 0 OR col0 < 9 OR (col0 > 6)) OR col0 IN (8,4,1,7,5))
----

query I rowsort label-2985
SELECT pk FROM tab4 WHERE NOT (((col3 < 0) AND ((col1 IS NULL)) OR ((col3 IN (7,2,3) OR (((col0 IN (7,8))))) OR col0 <= 5) OR ((col1 > 8.51)) AND col0 >= 9 AND col4 < 5.7 AND col3 < 3 AND (col0 > 0 OR col0 < 9 OR (col0 > 6)) OR col0 IN (8,4,1,7,5)))
----

statement ok
DROP TABLE tab0

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,8,1.10,'gkwyf',1,4.62,'mrvvr')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE UNIQUE INDEX idx_tab2_0 ON tab2 (col4 DESC)

statement ok
CREATE INDEX idx_tab2_2 ON tab2 (col3)

statement ok
CREATE UNIQUE INDEX idx_tab2_5 ON tab2 (col1)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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 (col0)

statement ok
CREATE INDEX idx_tab3_1 ON tab3 (col3 DESC,col1)

statement ok
CREATE INDEX idx_tab3_5 ON tab3 (col1,col3 DESC)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE UNIQUE INDEX idx_tab4_0 ON tab4 (col3 DESC,col4 DESC,col1)

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

statement ok
CREATE UNIQUE INDEX idx_tab4_2 ON tab4 (col1 DESC,col3 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab4_3 ON tab4 (col0 DESC,col3 DESC,col4 DESC)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DROP TABLE tab0

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,4,5.89,'pgzit',2,1.83,'kerrg')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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,col1)

statement ok
CREATE INDEX idx_tab2_1 ON tab2 (col0,col4,col3)

statement ok
CREATE UNIQUE INDEX idx_tab2_2 ON tab2 (col4,col3)

statement ok
CREATE UNIQUE INDEX idx_tab2_3 ON tab2 (col1,col3 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab2_4 ON tab2 (col3)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

statement ok
CREATE INDEX idx_tab3_1 ON tab3 (col4)

statement ok
CREATE INDEX idx_tab3_3 ON tab3 (col1 DESC)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

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

statement ok
CREATE UNIQUE INDEX idx_tab4_2 ON tab4 (col3,col4 DESC,col1)

statement ok
CREATE INDEX idx_tab4_3 ON tab4 (col0,col4 DESC)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DROP TABLE tab0

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,3,3.88,'fotld',4,0.60,'gaiqq')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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_1 ON tab2 (col4,col3 DESC)

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

statement ok
CREATE UNIQUE INDEX idx_tab2_3 ON tab2 (col1 DESC,col3)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

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

statement ok
CREATE UNIQUE INDEX idx_tab3_1 ON tab3 (col4)

statement ok
CREATE INDEX idx_tab3_4 ON tab3 (col0)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE INDEX idx_tab4_0 ON tab4 (col4 DESC)

statement ok
CREATE INDEX idx_tab4_1 ON tab4 (col3 DESC)

statement ok
CREATE INDEX idx_tab4_4 ON tab4 (col0 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab4_5 ON tab4 (col1)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE col0 IN (8,6,8,8) OR col3 < 8

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col0 IN (8,6,8,8) OR col3 < 8
----

query I rowsort label-3000
SELECT pk FROM tab0 WHERE NOT (col0 IN (8,6,8,8) OR col3 < 8)
----

statement ok
DELETE FROM tab1 WHERE col0 IN (8,6,8,8) OR col3 < 8

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col0 IN (8,6,8,8) OR col3 < 8
----

query I rowsort label-3000
SELECT pk FROM tab1 WHERE NOT (col0 IN (8,6,8,8) OR col3 < 8)
----

statement ok
DELETE FROM tab2 WHERE col0 IN (8,6,8,8) OR col3 < 8

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col0 IN (8,6,8,8) OR col3 < 8
----

query I rowsort label-3000
SELECT pk FROM tab2 WHERE NOT (col0 IN (8,6,8,8) OR col3 < 8)
----

statement ok
DELETE FROM tab3 WHERE col0 IN (8,6,8,8) OR col3 < 8

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col0 IN (8,6,8,8) OR col3 < 8
----

query I rowsort label-3000
SELECT pk FROM tab3 WHERE NOT (col0 IN (8,6,8,8) OR col3 < 8)
----

statement ok
DELETE FROM tab4 WHERE col0 IN (8,6,8,8) OR col3 < 8

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col0 IN (8,6,8,8) OR col3 < 8
----

query I rowsort label-3000
SELECT pk FROM tab4 WHERE NOT (col0 IN (8,6,8,8) OR col3 < 8)
----

statement ok
DROP TABLE tab0

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,8,6.75,'crgam',9,0.47,'prbrh')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE UNIQUE INDEX idx_tab2_0 ON tab2 (col3 DESC,col0)

statement ok
CREATE UNIQUE INDEX idx_tab2_2 ON tab2 (col4,col1)

statement ok
CREATE INDEX idx_tab2_4 ON tab2 (col0,col1 DESC)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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 DESC,col3 DESC,col0)

statement ok
CREATE UNIQUE INDEX idx_tab3_1 ON tab3 (col0)

statement ok
CREATE UNIQUE INDEX idx_tab3_3 ON tab3 (col1,col3 DESC,col4)

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

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

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE INDEX idx_tab4_0 ON tab4 (col4 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab4_2 ON tab4 (col3)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE ((col0 < 4))

query I rowsort label-empty
SELECT pk FROM tab0 WHERE ((col0 < 4))
----

query I rowsort label-3015
SELECT pk FROM tab0 WHERE NOT (((col0 < 4)))
----
0

statement ok
DELETE FROM tab1 WHERE ((col0 < 4))

query I rowsort label-empty
SELECT pk FROM tab1 WHERE ((col0 < 4))
----

query I rowsort label-3015
SELECT pk FROM tab1 WHERE NOT (((col0 < 4)))
----
0

statement ok
DELETE FROM tab2 WHERE ((col0 < 4))

query I rowsort label-empty
SELECT pk FROM tab2 WHERE ((col0 < 4))
----

query I rowsort label-3015
SELECT pk FROM tab2 WHERE NOT (((col0 < 4)))
----
0

statement ok
DELETE FROM tab3 WHERE ((col0 < 4))

query I rowsort label-empty
SELECT pk FROM tab3 WHERE ((col0 < 4))
----

query I rowsort label-3015
SELECT pk FROM tab3 WHERE NOT (((col0 < 4)))
----
0

statement ok
DELETE FROM tab4 WHERE ((col0 < 4))

query I rowsort label-empty
SELECT pk FROM tab4 WHERE ((col0 < 4))
----

query I rowsort label-3015
SELECT pk FROM tab4 WHERE NOT (((col0 < 4)))
----
0

statement ok
DELETE FROM tab0 WHERE col1 >= 2.8

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col1 >= 2.8
----

query I rowsort label-3030
SELECT pk FROM tab0 WHERE NOT (col1 >= 2.8)
----

statement ok
DELETE FROM tab1 WHERE col1 >= 2.8

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col1 >= 2.8
----

query I rowsort label-3030
SELECT pk FROM tab1 WHERE NOT (col1 >= 2.8)
----

statement ok
DELETE FROM tab2 WHERE col1 >= 2.8

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col1 >= 2.8
----

query I rowsort label-3030
SELECT pk FROM tab2 WHERE NOT (col1 >= 2.8)
----

statement ok
DELETE FROM tab3 WHERE col1 >= 2.8

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col1 >= 2.8
----

query I rowsort label-3030
SELECT pk FROM tab3 WHERE NOT (col1 >= 2.8)
----

statement ok
DELETE FROM tab4 WHERE col1 >= 2.8

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col1 >= 2.8
----

query I rowsort label-3030
SELECT pk FROM tab4 WHERE NOT (col1 >= 2.8)
----

statement ok
DROP TABLE tab0

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,3,3.44,'vqexi',4,0.13,'dxkov')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE INDEX idx_tab2_0 ON tab2 (col4,col0 DESC)

statement ok
CREATE INDEX idx_tab2_1 ON tab2 (col0 DESC,col3)

statement ok
CREATE INDEX idx_tab2_4 ON tab2 (col1)

statement ok
CREATE INDEX idx_tab2_5 ON tab2 (col3 DESC)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

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

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

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE UNIQUE INDEX idx_tab4_0 ON tab4 (col1,col3)

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

statement ok
CREATE UNIQUE INDEX idx_tab4_2 ON tab4 (col3)

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

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE ((((col4 >= 6.79)) AND col0 < 5) AND col0 IS NULL AND col3 IS NULL AND (col0 > 2) AND (col0 <= 8) OR col4 >= 0.71)

query I rowsort label-empty
SELECT pk FROM tab0 WHERE ((((col4 >= 6.79)) AND col0 < 5) AND col0 IS NULL AND col3 IS NULL AND (col0 > 2) AND (col0 <= 8) OR col4 >= 0.71)
----

query I rowsort label-3045
SELECT pk FROM tab0 WHERE NOT (((((col4 >= 6.79)) AND col0 < 5) AND col0 IS NULL AND col3 IS NULL AND (col0 > 2) AND (col0 <= 8) OR col4 >= 0.71))
----
0

statement ok
DELETE FROM tab1 WHERE ((((col4 >= 6.79)) AND col0 < 5) AND col0 IS NULL AND col3 IS NULL AND (col0 > 2) AND (col0 <= 8) OR col4 >= 0.71)

query I rowsort label-empty
SELECT pk FROM tab1 WHERE ((((col4 >= 6.79)) AND col0 < 5) AND col0 IS NULL AND col3 IS NULL AND (col0 > 2) AND (col0 <= 8) OR col4 >= 0.71)
----

query I rowsort label-3045
SELECT pk FROM tab1 WHERE NOT (((((col4 >= 6.79)) AND col0 < 5) AND col0 IS NULL AND col3 IS NULL AND (col0 > 2) AND (col0 <= 8) OR col4 >= 0.71))
----
0

statement ok
DELETE FROM tab2 WHERE ((((col4 >= 6.79)) AND col0 < 5) AND col0 IS NULL AND col3 IS NULL AND (col0 > 2) AND (col0 <= 8) OR col4 >= 0.71)

query I rowsort label-empty
SELECT pk FROM tab2 WHERE ((((col4 >= 6.79)) AND col0 < 5) AND col0 IS NULL AND col3 IS NULL AND (col0 > 2) AND (col0 <= 8) OR col4 >= 0.71)
----

query I rowsort label-3045
SELECT pk FROM tab2 WHERE NOT (((((col4 >= 6.79)) AND col0 < 5) AND col0 IS NULL AND col3 IS NULL AND (col0 > 2) AND (col0 <= 8) OR col4 >= 0.71))
----
0

statement ok
DELETE FROM tab3 WHERE ((((col4 >= 6.79)) AND col0 < 5) AND col0 IS NULL AND col3 IS NULL AND (col0 > 2) AND (col0 <= 8) OR col4 >= 0.71)

query I rowsort label-empty
SELECT pk FROM tab3 WHERE ((((col4 >= 6.79)) AND col0 < 5) AND col0 IS NULL AND col3 IS NULL AND (col0 > 2) AND (col0 <= 8) OR col4 >= 0.71)
----

query I rowsort label-3045
SELECT pk FROM tab3 WHERE NOT (((((col4 >= 6.79)) AND col0 < 5) AND col0 IS NULL AND col3 IS NULL AND (col0 > 2) AND (col0 <= 8) OR col4 >= 0.71))
----
0

statement ok
DELETE FROM tab4 WHERE ((((col4 >= 6.79)) AND col0 < 5) AND col0 IS NULL AND col3 IS NULL AND (col0 > 2) AND (col0 <= 8) OR col4 >= 0.71)

query I rowsort label-empty
SELECT pk FROM tab4 WHERE ((((col4 >= 6.79)) AND col0 < 5) AND col0 IS NULL AND col3 IS NULL AND (col0 > 2) AND (col0 <= 8) OR col4 >= 0.71)
----

query I rowsort label-3045
SELECT pk FROM tab4 WHERE NOT (((((col4 >= 6.79)) AND col0 < 5) AND col0 IS NULL AND col3 IS NULL AND (col0 > 2) AND (col0 <= 8) OR col4 >= 0.71))
----
0

statement ok
DELETE FROM tab0 WHERE (col4 >= 9.67 AND (col0 > 4))

query I rowsort label-empty
SELECT pk FROM tab0 WHERE (col4 >= 9.67 AND (col0 > 4))
----

query I rowsort label-3060
SELECT pk FROM tab0 WHERE NOT ((col4 >= 9.67 AND (col0 > 4)))
----
0

statement ok
DELETE FROM tab1 WHERE (col4 >= 9.67 AND (col0 > 4))

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (col4 >= 9.67 AND (col0 > 4))
----

query I rowsort label-3060
SELECT pk FROM tab1 WHERE NOT ((col4 >= 9.67 AND (col0 > 4)))
----
0

statement ok
DELETE FROM tab2 WHERE (col4 >= 9.67 AND (col0 > 4))

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (col4 >= 9.67 AND (col0 > 4))
----

query I rowsort label-3060
SELECT pk FROM tab2 WHERE NOT ((col4 >= 9.67 AND (col0 > 4)))
----
0

statement ok
DELETE FROM tab3 WHERE (col4 >= 9.67 AND (col0 > 4))

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (col4 >= 9.67 AND (col0 > 4))
----

query I rowsort label-3060
SELECT pk FROM tab3 WHERE NOT ((col4 >= 9.67 AND (col0 > 4)))
----
0

statement ok
DELETE FROM tab4 WHERE (col4 >= 9.67 AND (col0 > 4))

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (col4 >= 9.67 AND (col0 > 4))
----

query I rowsort label-3060
SELECT pk FROM tab4 WHERE NOT ((col4 >= 9.67 AND (col0 > 4)))
----
0

statement ok
DROP TABLE tab0

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,8,5.60,'uvskv',4,8.47,'jzlkg')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE UNIQUE INDEX idx_tab2_0 ON tab2 (col1,col0)

statement ok
CREATE UNIQUE INDEX idx_tab2_2 ON tab2 (col0 DESC)

statement ok
CREATE INDEX idx_tab2_3 ON tab2 (col3 DESC)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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,col0 DESC)

statement ok
CREATE INDEX idx_tab3_1 ON tab3 (col3,col0)

statement ok
CREATE INDEX idx_tab3_5 ON tab3 (col0)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE UNIQUE INDEX idx_tab4_2 ON tab4 (col4,col3)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE col1 > 0.38 OR col3 >= 3

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col1 > 0.38 OR col3 >= 3
----

query I rowsort label-3075
SELECT pk FROM tab0 WHERE NOT (col1 > 0.38 OR col3 >= 3)
----

statement ok
DELETE FROM tab1 WHERE col1 > 0.38 OR col3 >= 3

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col1 > 0.38 OR col3 >= 3
----

query I rowsort label-3075
SELECT pk FROM tab1 WHERE NOT (col1 > 0.38 OR col3 >= 3)
----

statement ok
DELETE FROM tab2 WHERE col1 > 0.38 OR col3 >= 3

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col1 > 0.38 OR col3 >= 3
----

query I rowsort label-3075
SELECT pk FROM tab2 WHERE NOT (col1 > 0.38 OR col3 >= 3)
----

statement ok
DELETE FROM tab3 WHERE col1 > 0.38 OR col3 >= 3

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col1 > 0.38 OR col3 >= 3
----

query I rowsort label-3075
SELECT pk FROM tab3 WHERE NOT (col1 > 0.38 OR col3 >= 3)
----

statement ok
DELETE FROM tab4 WHERE col1 > 0.38 OR col3 >= 3

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col1 > 0.38 OR col3 >= 3
----

query I rowsort label-3075
SELECT pk FROM tab4 WHERE NOT (col1 > 0.38 OR col3 >= 3)
----

statement ok
DROP TABLE tab0

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,2,6.42,'tuift',6,6.70,'prndh')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE UNIQUE INDEX idx_tab2_0 ON tab2 (col3)

statement ok
CREATE UNIQUE INDEX idx_tab2_1 ON tab2 (col0,col1)

statement ok
CREATE INDEX idx_tab2_2 ON tab2 (col4 DESC)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

statement ok
CREATE INDEX idx_tab3_0 ON tab3 (col1,col4)

statement ok
CREATE INDEX idx_tab3_1 ON tab3 (col1,col3 DESC)

statement ok
CREATE INDEX idx_tab3_2 ON tab3 (col4)

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

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE UNIQUE INDEX idx_tab4_0 ON tab4 (col1,col4)

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

statement ok
CREATE INDEX idx_tab4_2 ON tab4 (col0 DESC,col3)

statement ok
CREATE UNIQUE INDEX idx_tab4_3 ON tab4 (col3 DESC,col4)

statement ok
CREATE INDEX idx_tab4_4 ON tab4 (col4 DESC,col3)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE (col3 > 4)

query I rowsort label-empty
SELECT pk FROM tab0 WHERE (col3 > 4)
----

query I rowsort label-3090
SELECT pk FROM tab0 WHERE NOT ((col3 > 4))
----

statement ok
DELETE FROM tab1 WHERE (col3 > 4)

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (col3 > 4)
----

query I rowsort label-3090
SELECT pk FROM tab1 WHERE NOT ((col3 > 4))
----

statement ok
DELETE FROM tab2 WHERE (col3 > 4)

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (col3 > 4)
----

query I rowsort label-3090
SELECT pk FROM tab2 WHERE NOT ((col3 > 4))
----

statement ok
DELETE FROM tab3 WHERE (col3 > 4)

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (col3 > 4)
----

query I rowsort label-3090
SELECT pk FROM tab3 WHERE NOT ((col3 > 4))
----

statement ok
DELETE FROM tab4 WHERE (col3 > 4)

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (col3 > 4)
----

query I rowsort label-3090
SELECT pk FROM tab4 WHERE NOT ((col3 > 4))
----

statement ok
DROP TABLE tab0

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,9,2.86,'tfoji',7,3.94,'jqowc')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE UNIQUE INDEX idx_tab2_1 ON tab2 (col0 DESC,col1 DESC)

statement ok
CREATE INDEX idx_tab2_3 ON tab2 (col4 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab2_5 ON tab2 (col3)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

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

statement ok
CREATE UNIQUE INDEX idx_tab3_1 ON tab3 (col0 DESC)

statement ok
CREATE INDEX idx_tab3_2 ON tab3 (col1 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab3_3 ON tab3 (col3,col4)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE UNIQUE INDEX idx_tab4_0 ON tab4 (col1)

statement ok
CREATE UNIQUE INDEX idx_tab4_4 ON tab4 (col3)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE (((((col3 < 6)) AND col3 IN (8) OR (col1 IS NULL OR col4 > 0.65))))

query I rowsort label-empty
SELECT pk FROM tab0 WHERE (((((col3 < 6)) AND col3 IN (8) OR (col1 IS NULL OR col4 > 0.65))))
----

query I rowsort label-3105
SELECT pk FROM tab0 WHERE NOT ((((((col3 < 6)) AND col3 IN (8) OR (col1 IS NULL OR col4 > 0.65)))))
----

statement ok
DELETE FROM tab1 WHERE (((((col3 < 6)) AND col3 IN (8) OR (col1 IS NULL OR col4 > 0.65))))

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (((((col3 < 6)) AND col3 IN (8) OR (col1 IS NULL OR col4 > 0.65))))
----

query I rowsort label-3105
SELECT pk FROM tab1 WHERE NOT ((((((col3 < 6)) AND col3 IN (8) OR (col1 IS NULL OR col4 > 0.65)))))
----

statement ok
DELETE FROM tab2 WHERE (((((col3 < 6)) AND col3 IN (8) OR (col1 IS NULL OR col4 > 0.65))))

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (((((col3 < 6)) AND col3 IN (8) OR (col1 IS NULL OR col4 > 0.65))))
----

query I rowsort label-3105
SELECT pk FROM tab2 WHERE NOT ((((((col3 < 6)) AND col3 IN (8) OR (col1 IS NULL OR col4 > 0.65)))))
----

statement ok
DELETE FROM tab3 WHERE (((((col3 < 6)) AND col3 IN (8) OR (col1 IS NULL OR col4 > 0.65))))

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (((((col3 < 6)) AND col3 IN (8) OR (col1 IS NULL OR col4 > 0.65))))
----

query I rowsort label-3105
SELECT pk FROM tab3 WHERE NOT ((((((col3 < 6)) AND col3 IN (8) OR (col1 IS NULL OR col4 > 0.65)))))
----

statement ok
DELETE FROM tab4 WHERE (((((col3 < 6)) AND col3 IN (8) OR (col1 IS NULL OR col4 > 0.65))))

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (((((col3 < 6)) AND col3 IN (8) OR (col1 IS NULL OR col4 > 0.65))))
----

query I rowsort label-3105
SELECT pk FROM tab4 WHERE NOT ((((((col3 < 6)) AND col3 IN (8) OR (col1 IS NULL OR col4 > 0.65)))))
----

statement ok
DROP TABLE tab0

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,7,8.14,'orphr',1,0.11,'ldmkw')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE INDEX idx_tab2_1 ON tab2 (col4)

statement ok
CREATE UNIQUE INDEX idx_tab2_2 ON tab2 (col3)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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_2 ON tab3 (col1,col0)

statement ok
CREATE INDEX idx_tab3_3 ON tab3 (col0 DESC)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE UNIQUE INDEX idx_tab4_0 ON tab4 (col3 DESC)

statement ok
CREATE INDEX idx_tab4_1 ON tab4 (col4 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab4_2 ON tab4 (col1 DESC)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE col4 <= 2.1

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col4 <= 2.1
----

query I rowsort label-3120
SELECT pk FROM tab0 WHERE NOT (col4 <= 2.1)
----

statement ok
DELETE FROM tab1 WHERE col4 <= 2.1

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col4 <= 2.1
----

query I rowsort label-3120
SELECT pk FROM tab1 WHERE NOT (col4 <= 2.1)
----

statement ok
DELETE FROM tab2 WHERE col4 <= 2.1

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col4 <= 2.1
----

query I rowsort label-3120
SELECT pk FROM tab2 WHERE NOT (col4 <= 2.1)
----

statement ok
DELETE FROM tab3 WHERE col4 <= 2.1

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col4 <= 2.1
----

query I rowsort label-3120
SELECT pk FROM tab3 WHERE NOT (col4 <= 2.1)
----

statement ok
DELETE FROM tab4 WHERE col4 <= 2.1

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col4 <= 2.1
----

query I rowsort label-3120
SELECT pk FROM tab4 WHERE NOT (col4 <= 2.1)
----

statement ok
DROP TABLE tab0

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,7,3.32,'koetc',9,6.27,'byyrp')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE INDEX idx_tab2_0 ON tab2 (col3)

statement ok
CREATE UNIQUE INDEX idx_tab2_2 ON tab2 (col0,col4 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab2_3 ON tab2 (col4 DESC,col1 DESC)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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_1 ON tab3 (col1 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab3_2 ON tab3 (col0)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE UNIQUE INDEX idx_tab4_2 ON tab4 (col4 DESC,col1 DESC)

statement ok
CREATE INDEX idx_tab4_5 ON tab4 (col3,col4 DESC)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE (col0 < 4 OR col3 <= 5)

query I rowsort label-empty
SELECT pk FROM tab0 WHERE (col0 < 4 OR col3 <= 5)
----

query I rowsort label-3135
SELECT pk FROM tab0 WHERE NOT ((col0 < 4 OR col3 <= 5))
----
0

statement ok
DELETE FROM tab1 WHERE (col0 < 4 OR col3 <= 5)

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (col0 < 4 OR col3 <= 5)
----

query I rowsort label-3135
SELECT pk FROM tab1 WHERE NOT ((col0 < 4 OR col3 <= 5))
----
0

statement ok
DELETE FROM tab2 WHERE (col0 < 4 OR col3 <= 5)

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (col0 < 4 OR col3 <= 5)
----

query I rowsort label-3135
SELECT pk FROM tab2 WHERE NOT ((col0 < 4 OR col3 <= 5))
----
0

statement ok
DELETE FROM tab3 WHERE (col0 < 4 OR col3 <= 5)

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (col0 < 4 OR col3 <= 5)
----

query I rowsort label-3135
SELECT pk FROM tab3 WHERE NOT ((col0 < 4 OR col3 <= 5))
----
0

statement ok
DELETE FROM tab4 WHERE (col0 < 4 OR col3 <= 5)

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (col0 < 4 OR col3 <= 5)
----

query I rowsort label-3135
SELECT pk FROM tab4 WHERE NOT ((col0 < 4 OR col3 <= 5))
----
0

statement ok
DELETE FROM tab0 WHERE col4 < 3.3

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col4 < 3.3
----

query I rowsort label-3150
SELECT pk FROM tab0 WHERE NOT (col4 < 3.3)
----
0

statement ok
DELETE FROM tab1 WHERE col4 < 3.3

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col4 < 3.3
----

query I rowsort label-3150
SELECT pk FROM tab1 WHERE NOT (col4 < 3.3)
----
0

statement ok
DELETE FROM tab2 WHERE col4 < 3.3

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col4 < 3.3
----

query I rowsort label-3150
SELECT pk FROM tab2 WHERE NOT (col4 < 3.3)
----
0

statement ok
DELETE FROM tab3 WHERE col4 < 3.3

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col4 < 3.3
----

query I rowsort label-3150
SELECT pk FROM tab3 WHERE NOT (col4 < 3.3)
----
0

statement ok
DELETE FROM tab4 WHERE col4 < 3.3

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col4 < 3.3
----

query I rowsort label-3150
SELECT pk FROM tab4 WHERE NOT (col4 < 3.3)
----
0

statement ok
DELETE FROM tab0 WHERE (col4 < 3.16)

query I rowsort label-empty
SELECT pk FROM tab0 WHERE (col4 < 3.16)
----

query I rowsort label-3165
SELECT pk FROM tab0 WHERE NOT ((col4 < 3.16))
----
0

statement ok
DELETE FROM tab1 WHERE (col4 < 3.16)

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (col4 < 3.16)
----

query I rowsort label-3165
SELECT pk FROM tab1 WHERE NOT ((col4 < 3.16))
----
0

statement ok
DELETE FROM tab2 WHERE (col4 < 3.16)

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (col4 < 3.16)
----

query I rowsort label-3165
SELECT pk FROM tab2 WHERE NOT ((col4 < 3.16))
----
0

statement ok
DELETE FROM tab3 WHERE (col4 < 3.16)

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (col4 < 3.16)
----

query I rowsort label-3165
SELECT pk FROM tab3 WHERE NOT ((col4 < 3.16))
----
0

statement ok
DELETE FROM tab4 WHERE (col4 < 3.16)

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (col4 < 3.16)
----

query I rowsort label-3165
SELECT pk FROM tab4 WHERE NOT ((col4 < 3.16))
----
0

statement ok
DELETE FROM tab0 WHERE col0 = 9 OR col3 < 6

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col0 = 9 OR col3 < 6
----

query I rowsort label-3180
SELECT pk FROM tab0 WHERE NOT (col0 = 9 OR col3 < 6)
----
0

statement ok
DELETE FROM tab1 WHERE col0 = 9 OR col3 < 6

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col0 = 9 OR col3 < 6
----

query I rowsort label-3180
SELECT pk FROM tab1 WHERE NOT (col0 = 9 OR col3 < 6)
----
0

statement ok
DELETE FROM tab2 WHERE col0 = 9 OR col3 < 6

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col0 = 9 OR col3 < 6
----

query I rowsort label-3180
SELECT pk FROM tab2 WHERE NOT (col0 = 9 OR col3 < 6)
----
0

statement ok
DELETE FROM tab3 WHERE col0 = 9 OR col3 < 6

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col0 = 9 OR col3 < 6
----

query I rowsort label-3180
SELECT pk FROM tab3 WHERE NOT (col0 = 9 OR col3 < 6)
----
0

statement ok
DELETE FROM tab4 WHERE col0 = 9 OR col3 < 6

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col0 = 9 OR col3 < 6
----

query I rowsort label-3180
SELECT pk FROM tab4 WHERE NOT (col0 = 9 OR col3 < 6)
----
0

statement ok
DELETE FROM tab0 WHERE (((col3 < 1))) OR ((col0 IS NULL) AND (col3 >= 7) AND ((col0 IS NULL)) OR col3 = 4 OR col0 >= 8 AND col3 >= 8 AND col4 IS NULL AND col0 >= 2 AND col3 < 1 AND col0 <= 7 AND (col0 > 1) OR (col3 >= 3)) OR col0 >= 9

query I rowsort label-empty
SELECT pk FROM tab0 WHERE (((col3 < 1))) OR ((col0 IS NULL) AND (col3 >= 7) AND ((col0 IS NULL)) OR col3 = 4 OR col0 >= 8 AND col3 >= 8 AND col4 IS NULL AND col0 >= 2 AND col3 < 1 AND col0 <= 7 AND (col0 > 1) OR (col3 >= 3)) OR col0 >= 9
----

query I rowsort label-3195
SELECT pk FROM tab0 WHERE NOT ((((col3 < 1))) OR ((col0 IS NULL) AND (col3 >= 7) AND ((col0 IS NULL)) OR col3 = 4 OR col0 >= 8 AND col3 >= 8 AND col4 IS NULL AND col0 >= 2 AND col3 < 1 AND col0 <= 7 AND (col0 > 1) OR (col3 >= 3)) OR col0 >= 9)
----

statement ok
DELETE FROM tab1 WHERE (((col3 < 1))) OR ((col0 IS NULL) AND (col3 >= 7) AND ((col0 IS NULL)) OR col3 = 4 OR col0 >= 8 AND col3 >= 8 AND col4 IS NULL AND col0 >= 2 AND col3 < 1 AND col0 <= 7 AND (col0 > 1) OR (col3 >= 3)) OR col0 >= 9

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (((col3 < 1))) OR ((col0 IS NULL) AND (col3 >= 7) AND ((col0 IS NULL)) OR col3 = 4 OR col0 >= 8 AND col3 >= 8 AND col4 IS NULL AND col0 >= 2 AND col3 < 1 AND col0 <= 7 AND (col0 > 1) OR (col3 >= 3)) OR col0 >= 9
----

query I rowsort label-3195
SELECT pk FROM tab1 WHERE NOT ((((col3 < 1))) OR ((col0 IS NULL) AND (col3 >= 7) AND ((col0 IS NULL)) OR col3 = 4 OR col0 >= 8 AND col3 >= 8 AND col4 IS NULL AND col0 >= 2 AND col3 < 1 AND col0 <= 7 AND (col0 > 1) OR (col3 >= 3)) OR col0 >= 9)
----

statement ok
DELETE FROM tab2 WHERE (((col3 < 1))) OR ((col0 IS NULL) AND (col3 >= 7) AND ((col0 IS NULL)) OR col3 = 4 OR col0 >= 8 AND col3 >= 8 AND col4 IS NULL AND col0 >= 2 AND col3 < 1 AND col0 <= 7 AND (col0 > 1) OR (col3 >= 3)) OR col0 >= 9

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (((col3 < 1))) OR ((col0 IS NULL) AND (col3 >= 7) AND ((col0 IS NULL)) OR col3 = 4 OR col0 >= 8 AND col3 >= 8 AND col4 IS NULL AND col0 >= 2 AND col3 < 1 AND col0 <= 7 AND (col0 > 1) OR (col3 >= 3)) OR col0 >= 9
----

query I rowsort label-3195
SELECT pk FROM tab2 WHERE NOT ((((col3 < 1))) OR ((col0 IS NULL) AND (col3 >= 7) AND ((col0 IS NULL)) OR col3 = 4 OR col0 >= 8 AND col3 >= 8 AND col4 IS NULL AND col0 >= 2 AND col3 < 1 AND col0 <= 7 AND (col0 > 1) OR (col3 >= 3)) OR col0 >= 9)
----

statement ok
DELETE FROM tab3 WHERE (((col3 < 1))) OR ((col0 IS NULL) AND (col3 >= 7) AND ((col0 IS NULL)) OR col3 = 4 OR col0 >= 8 AND col3 >= 8 AND col4 IS NULL AND col0 >= 2 AND col3 < 1 AND col0 <= 7 AND (col0 > 1) OR (col3 >= 3)) OR col0 >= 9

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (((col3 < 1))) OR ((col0 IS NULL) AND (col3 >= 7) AND ((col0 IS NULL)) OR col3 = 4 OR col0 >= 8 AND col3 >= 8 AND col4 IS NULL AND col0 >= 2 AND col3 < 1 AND col0 <= 7 AND (col0 > 1) OR (col3 >= 3)) OR col0 >= 9
----

query I rowsort label-3195
SELECT pk FROM tab3 WHERE NOT ((((col3 < 1))) OR ((col0 IS NULL) AND (col3 >= 7) AND ((col0 IS NULL)) OR col3 = 4 OR col0 >= 8 AND col3 >= 8 AND col4 IS NULL AND col0 >= 2 AND col3 < 1 AND col0 <= 7 AND (col0 > 1) OR (col3 >= 3)) OR col0 >= 9)
----

statement ok
DELETE FROM tab4 WHERE (((col3 < 1))) OR ((col0 IS NULL) AND (col3 >= 7) AND ((col0 IS NULL)) OR col3 = 4 OR col0 >= 8 AND col3 >= 8 AND col4 IS NULL AND col0 >= 2 AND col3 < 1 AND col0 <= 7 AND (col0 > 1) OR (col3 >= 3)) OR col0 >= 9

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (((col3 < 1))) OR ((col0 IS NULL) AND (col3 >= 7) AND ((col0 IS NULL)) OR col3 = 4 OR col0 >= 8 AND col3 >= 8 AND col4 IS NULL AND col0 >= 2 AND col3 < 1 AND col0 <= 7 AND (col0 > 1) OR (col3 >= 3)) OR col0 >= 9
----

query I rowsort label-3195
SELECT pk FROM tab4 WHERE NOT ((((col3 < 1))) OR ((col0 IS NULL) AND (col3 >= 7) AND ((col0 IS NULL)) OR col3 = 4 OR col0 >= 8 AND col3 >= 8 AND col4 IS NULL AND col0 >= 2 AND col3 < 1 AND col0 <= 7 AND (col0 > 1) OR (col3 >= 3)) OR col0 >= 9)
----

statement ok
DROP TABLE tab0

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,5,4.0,'wqkwx',0,5.28,'hqael')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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_1 ON tab2 (col0 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab2_2 ON tab2 (col1 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab2_4 ON tab2 (col3 DESC)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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 (col0,col1)

statement ok
CREATE INDEX idx_tab3_1 ON tab3 (col4)

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

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE INDEX idx_tab4_0 ON tab4 (col0 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab4_2 ON tab4 (col4,col3)

statement ok
CREATE INDEX idx_tab4_4 ON tab4 (col1 DESC,col4)

statement ok
CREATE INDEX idx_tab4_5 ON tab4 (col3,col1)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE col0 IN (4,5,2,9) AND col3 = 6 OR col4 > 7.39 OR col3 <= 9 OR col1 <= 4.96

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col0 IN (4,5,2,9) AND col3 = 6 OR col4 > 7.39 OR col3 <= 9 OR col1 <= 4.96
----

query I rowsort label-3210
SELECT pk FROM tab0 WHERE NOT (col0 IN (4,5,2,9) AND col3 = 6 OR col4 > 7.39 OR col3 <= 9 OR col1 <= 4.96)
----

statement ok
DELETE FROM tab1 WHERE col0 IN (4,5,2,9) AND col3 = 6 OR col4 > 7.39 OR col3 <= 9 OR col1 <= 4.96

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col0 IN (4,5,2,9) AND col3 = 6 OR col4 > 7.39 OR col3 <= 9 OR col1 <= 4.96
----

query I rowsort label-3210
SELECT pk FROM tab1 WHERE NOT (col0 IN (4,5,2,9) AND col3 = 6 OR col4 > 7.39 OR col3 <= 9 OR col1 <= 4.96)
----

statement ok
DELETE FROM tab2 WHERE col0 IN (4,5,2,9) AND col3 = 6 OR col4 > 7.39 OR col3 <= 9 OR col1 <= 4.96

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col0 IN (4,5,2,9) AND col3 = 6 OR col4 > 7.39 OR col3 <= 9 OR col1 <= 4.96
----

query I rowsort label-3210
SELECT pk FROM tab2 WHERE NOT (col0 IN (4,5,2,9) AND col3 = 6 OR col4 > 7.39 OR col3 <= 9 OR col1 <= 4.96)
----

statement ok
DELETE FROM tab3 WHERE col0 IN (4,5,2,9) AND col3 = 6 OR col4 > 7.39 OR col3 <= 9 OR col1 <= 4.96

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col0 IN (4,5,2,9) AND col3 = 6 OR col4 > 7.39 OR col3 <= 9 OR col1 <= 4.96
----

query I rowsort label-3210
SELECT pk FROM tab3 WHERE NOT (col0 IN (4,5,2,9) AND col3 = 6 OR col4 > 7.39 OR col3 <= 9 OR col1 <= 4.96)
----

statement ok
DELETE FROM tab4 WHERE col0 IN (4,5,2,9) AND col3 = 6 OR col4 > 7.39 OR col3 <= 9 OR col1 <= 4.96

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col0 IN (4,5,2,9) AND col3 = 6 OR col4 > 7.39 OR col3 <= 9 OR col1 <= 4.96
----

query I rowsort label-3210
SELECT pk FROM tab4 WHERE NOT (col0 IN (4,5,2,9) AND col3 = 6 OR col4 > 7.39 OR col3 <= 9 OR col1 <= 4.96)
----

statement ok
DROP TABLE tab0

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,5,9.57,'bizea',0,6.12,'asplc')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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,col3 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab2_1 ON tab2 (col3,col0,col4 DESC)

statement ok
CREATE INDEX idx_tab2_2 ON tab2 (col0,col1 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab2_4 ON tab2 (col4)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

statement ok
CREATE UNIQUE INDEX idx_tab3_1 ON tab3 (col1)

statement ok
CREATE UNIQUE INDEX idx_tab3_3 ON tab3 (col0,col3)

statement ok
CREATE UNIQUE INDEX idx_tab3_5 ON tab3 (col3 DESC)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE INDEX idx_tab4_0 ON tab4 (col3 DESC)

statement ok
CREATE INDEX idx_tab4_1 ON tab4 (col4 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab4_4 ON tab4 (col0)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE (((((col0 IS NULL AND col4 <= 7.2)))) AND (col1 >= 9.10) OR (col0 <= 2) AND col3 <= 4)

query I rowsort label-empty
SELECT pk FROM tab0 WHERE (((((col0 IS NULL AND col4 <= 7.2)))) AND (col1 >= 9.10) OR (col0 <= 2) AND col3 <= 4)
----

query I rowsort label-3225
SELECT pk FROM tab0 WHERE NOT ((((((col0 IS NULL AND col4 <= 7.2)))) AND (col1 >= 9.10) OR (col0 <= 2) AND col3 <= 4))
----
0

statement ok
DELETE FROM tab1 WHERE (((((col0 IS NULL AND col4 <= 7.2)))) AND (col1 >= 9.10) OR (col0 <= 2) AND col3 <= 4)

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (((((col0 IS NULL AND col4 <= 7.2)))) AND (col1 >= 9.10) OR (col0 <= 2) AND col3 <= 4)
----

query I rowsort label-3225
SELECT pk FROM tab1 WHERE NOT ((((((col0 IS NULL AND col4 <= 7.2)))) AND (col1 >= 9.10) OR (col0 <= 2) AND col3 <= 4))
----
0

statement ok
DELETE FROM tab2 WHERE (((((col0 IS NULL AND col4 <= 7.2)))) AND (col1 >= 9.10) OR (col0 <= 2) AND col3 <= 4)

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (((((col0 IS NULL AND col4 <= 7.2)))) AND (col1 >= 9.10) OR (col0 <= 2) AND col3 <= 4)
----

query I rowsort label-3225
SELECT pk FROM tab2 WHERE NOT ((((((col0 IS NULL AND col4 <= 7.2)))) AND (col1 >= 9.10) OR (col0 <= 2) AND col3 <= 4))
----
0

statement ok
DELETE FROM tab3 WHERE (((((col0 IS NULL AND col4 <= 7.2)))) AND (col1 >= 9.10) OR (col0 <= 2) AND col3 <= 4)

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (((((col0 IS NULL AND col4 <= 7.2)))) AND (col1 >= 9.10) OR (col0 <= 2) AND col3 <= 4)
----

query I rowsort label-3225
SELECT pk FROM tab3 WHERE NOT ((((((col0 IS NULL AND col4 <= 7.2)))) AND (col1 >= 9.10) OR (col0 <= 2) AND col3 <= 4))
----
0

statement ok
DELETE FROM tab4 WHERE (((((col0 IS NULL AND col4 <= 7.2)))) AND (col1 >= 9.10) OR (col0 <= 2) AND col3 <= 4)

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (((((col0 IS NULL AND col4 <= 7.2)))) AND (col1 >= 9.10) OR (col0 <= 2) AND col3 <= 4)
----

query I rowsort label-3225
SELECT pk FROM tab4 WHERE NOT ((((((col0 IS NULL AND col4 <= 7.2)))) AND (col1 >= 9.10) OR (col0 <= 2) AND col3 <= 4))
----
0

statement ok
DELETE FROM tab0 WHERE (col4 > 5.97)

query I rowsort label-empty
SELECT pk FROM tab0 WHERE (col4 > 5.97)
----

query I rowsort label-3240
SELECT pk FROM tab0 WHERE NOT ((col4 > 5.97))
----

statement ok
DELETE FROM tab1 WHERE (col4 > 5.97)

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (col4 > 5.97)
----

query I rowsort label-3240
SELECT pk FROM tab1 WHERE NOT ((col4 > 5.97))
----

statement ok
DELETE FROM tab2 WHERE (col4 > 5.97)

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (col4 > 5.97)
----

query I rowsort label-3240
SELECT pk FROM tab2 WHERE NOT ((col4 > 5.97))
----

statement ok
DELETE FROM tab3 WHERE (col4 > 5.97)

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (col4 > 5.97)
----

query I rowsort label-3240
SELECT pk FROM tab3 WHERE NOT ((col4 > 5.97))
----

statement ok
DELETE FROM tab4 WHERE (col4 > 5.97)

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (col4 > 5.97)
----

query I rowsort label-3240
SELECT pk FROM tab4 WHERE NOT ((col4 > 5.97))
----

statement ok
DROP TABLE tab0

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,3,7.93,'qgupm',6,5.17,'jhhwt')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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 (col1 DESC,col3)

statement ok
CREATE UNIQUE INDEX idx_tab2_1 ON tab2 (col3 DESC,col0,col1 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab2_4 ON tab2 (col4)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

statement ok
CREATE UNIQUE INDEX idx_tab3_0 ON tab3 (col1)

statement ok
CREATE UNIQUE INDEX idx_tab3_4 ON tab3 (col4)

statement ok
CREATE UNIQUE INDEX idx_tab3_5 ON tab3 (col0)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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,col3)

statement ok
CREATE UNIQUE INDEX idx_tab4_3 ON tab4 (col4 DESC,col1 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab4_4 ON tab4 (col1 DESC,col3)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DROP TABLE tab0

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,1,6.14,'drcll',0,7.57,'njmng')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE UNIQUE INDEX idx_tab2_0 ON tab2 (col1 DESC,col0,col3 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab2_3 ON tab2 (col4,col1 DESC)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

statement ok
CREATE INDEX idx_tab3_0 ON tab3 (col0)

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

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE INDEX idx_tab4_0 ON tab4 (col4 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab4_2 ON tab4 (col0 DESC)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE col4 <= 5.8

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col4 <= 5.8
----

query I rowsort label-3255
SELECT pk FROM tab0 WHERE NOT (col4 <= 5.8)
----
0

statement ok
DELETE FROM tab1 WHERE col4 <= 5.8

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col4 <= 5.8
----

query I rowsort label-3255
SELECT pk FROM tab1 WHERE NOT (col4 <= 5.8)
----
0

statement ok
DELETE FROM tab2 WHERE col4 <= 5.8

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col4 <= 5.8
----

query I rowsort label-3255
SELECT pk FROM tab2 WHERE NOT (col4 <= 5.8)
----
0

statement ok
DELETE FROM tab3 WHERE col4 <= 5.8

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col4 <= 5.8
----

query I rowsort label-3255
SELECT pk FROM tab3 WHERE NOT (col4 <= 5.8)
----
0

statement ok
DELETE FROM tab4 WHERE col4 <= 5.8

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col4 <= 5.8
----

query I rowsort label-3255
SELECT pk FROM tab4 WHERE NOT (col4 <= 5.8)
----
0

statement ok
DELETE FROM tab0 WHERE col4 < 9.23 AND (col3 BETWEEN 7 AND 7) AND (col3 <= 0 OR (col1 IS NULL)) AND ((((col0 = 5))))

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col4 < 9.23 AND (col3 BETWEEN 7 AND 7) AND (col3 <= 0 OR (col1 IS NULL)) AND ((((col0 = 5))))
----

query I rowsort label-3270
SELECT pk FROM tab0 WHERE NOT (col4 < 9.23 AND (col3 BETWEEN 7 AND 7) AND (col3 <= 0 OR (col1 IS NULL)) AND ((((col0 = 5)))))
----
0

statement ok
DELETE FROM tab1 WHERE col4 < 9.23 AND (col3 BETWEEN 7 AND 7) AND (col3 <= 0 OR (col1 IS NULL)) AND ((((col0 = 5))))

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col4 < 9.23 AND (col3 BETWEEN 7 AND 7) AND (col3 <= 0 OR (col1 IS NULL)) AND ((((col0 = 5))))
----

query I rowsort label-3270
SELECT pk FROM tab1 WHERE NOT (col4 < 9.23 AND (col3 BETWEEN 7 AND 7) AND (col3 <= 0 OR (col1 IS NULL)) AND ((((col0 = 5)))))
----
0

statement ok
DELETE FROM tab2 WHERE col4 < 9.23 AND (col3 BETWEEN 7 AND 7) AND (col3 <= 0 OR (col1 IS NULL)) AND ((((col0 = 5))))

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col4 < 9.23 AND (col3 BETWEEN 7 AND 7) AND (col3 <= 0 OR (col1 IS NULL)) AND ((((col0 = 5))))
----

query I rowsort label-3270
SELECT pk FROM tab2 WHERE NOT (col4 < 9.23 AND (col3 BETWEEN 7 AND 7) AND (col3 <= 0 OR (col1 IS NULL)) AND ((((col0 = 5)))))
----
0

statement ok
DELETE FROM tab3 WHERE col4 < 9.23 AND (col3 BETWEEN 7 AND 7) AND (col3 <= 0 OR (col1 IS NULL)) AND ((((col0 = 5))))

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col4 < 9.23 AND (col3 BETWEEN 7 AND 7) AND (col3 <= 0 OR (col1 IS NULL)) AND ((((col0 = 5))))
----

query I rowsort label-3270
SELECT pk FROM tab3 WHERE NOT (col4 < 9.23 AND (col3 BETWEEN 7 AND 7) AND (col3 <= 0 OR (col1 IS NULL)) AND ((((col0 = 5)))))
----
0

statement ok
DELETE FROM tab4 WHERE col4 < 9.23 AND (col3 BETWEEN 7 AND 7) AND (col3 <= 0 OR (col1 IS NULL)) AND ((((col0 = 5))))

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col4 < 9.23 AND (col3 BETWEEN 7 AND 7) AND (col3 <= 0 OR (col1 IS NULL)) AND ((((col0 = 5))))
----

query I rowsort label-3270
SELECT pk FROM tab4 WHERE NOT (col4 < 9.23 AND (col3 BETWEEN 7 AND 7) AND (col3 <= 0 OR (col1 IS NULL)) AND ((((col0 = 5)))))
----
0

statement ok
DELETE FROM tab0 WHERE col0 < 3 OR (col0 <= 2)

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col0 < 3 OR (col0 <= 2)
----

query I rowsort label-3285
SELECT pk FROM tab0 WHERE NOT (col0 < 3 OR (col0 <= 2))
----

statement ok
DELETE FROM tab1 WHERE col0 < 3 OR (col0 <= 2)

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col0 < 3 OR (col0 <= 2)
----

query I rowsort label-3285
SELECT pk FROM tab1 WHERE NOT (col0 < 3 OR (col0 <= 2))
----

statement ok
DELETE FROM tab2 WHERE col0 < 3 OR (col0 <= 2)

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col0 < 3 OR (col0 <= 2)
----

query I rowsort label-3285
SELECT pk FROM tab2 WHERE NOT (col0 < 3 OR (col0 <= 2))
----

statement ok
DELETE FROM tab3 WHERE col0 < 3 OR (col0 <= 2)

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col0 < 3 OR (col0 <= 2)
----

query I rowsort label-3285
SELECT pk FROM tab3 WHERE NOT (col0 < 3 OR (col0 <= 2))
----

statement ok
DELETE FROM tab4 WHERE col0 < 3 OR (col0 <= 2)

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col0 < 3 OR (col0 <= 2)
----

query I rowsort label-3285
SELECT pk FROM tab4 WHERE NOT (col0 < 3 OR (col0 <= 2))
----

statement ok
DROP TABLE tab0

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,5,6.51,'brehy',3,2.1,'hmlna')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE INDEX idx_tab2_0 ON tab2 (col4 DESC)

statement ok
CREATE INDEX idx_tab2_1 ON tab2 (col3 DESC,col1)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

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

statement ok
CREATE INDEX idx_tab3_1 ON tab3 (col4)

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

statement ok
CREATE INDEX idx_tab3_3 ON tab3 (col0)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE INDEX idx_tab4_0 ON tab4 (col0 DESC)

statement ok
CREATE INDEX idx_tab4_3 ON tab4 (col4 DESC,col1 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab4_5 ON tab4 (col1 DESC,col3 DESC,col4)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE col0 < 6

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col0 < 6
----

query I rowsort label-3300
SELECT pk FROM tab0 WHERE NOT (col0 < 6)
----

statement ok
DELETE FROM tab1 WHERE col0 < 6

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col0 < 6
----

query I rowsort label-3300
SELECT pk FROM tab1 WHERE NOT (col0 < 6)
----

statement ok
DELETE FROM tab2 WHERE col0 < 6

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col0 < 6
----

query I rowsort label-3300
SELECT pk FROM tab2 WHERE NOT (col0 < 6)
----

statement ok
DELETE FROM tab3 WHERE col0 < 6

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col0 < 6
----

query I rowsort label-3300
SELECT pk FROM tab3 WHERE NOT (col0 < 6)
----

statement ok
DELETE FROM tab4 WHERE col0 < 6

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col0 < 6
----

query I rowsort label-3300
SELECT pk FROM tab4 WHERE NOT (col0 < 6)
----

statement ok
DROP TABLE tab0

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,9,1.13,'rmvdr',4,2.48,'zwfsn')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE UNIQUE INDEX idx_tab2_1 ON tab2 (col4)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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 (col3)

statement ok
CREATE INDEX idx_tab3_1 ON tab3 (col4 DESC,col0 DESC)

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

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE INDEX idx_tab4_0 ON tab4 (col3)

statement ok
CREATE INDEX idx_tab4_2 ON tab4 (col4)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE col0 <= 6

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col0 <= 6
----

query I rowsort label-3315
SELECT pk FROM tab0 WHERE NOT (col0 <= 6)
----
0

statement ok
DELETE FROM tab1 WHERE col0 <= 6

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col0 <= 6
----

query I rowsort label-3315
SELECT pk FROM tab1 WHERE NOT (col0 <= 6)
----
0

statement ok
DELETE FROM tab2 WHERE col0 <= 6

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col0 <= 6
----

query I rowsort label-3315
SELECT pk FROM tab2 WHERE NOT (col0 <= 6)
----
0

statement ok
DELETE FROM tab3 WHERE col0 <= 6

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col0 <= 6
----

query I rowsort label-3315
SELECT pk FROM tab3 WHERE NOT (col0 <= 6)
----
0

statement ok
DELETE FROM tab4 WHERE col0 <= 6

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col0 <= 6
----

query I rowsort label-3315
SELECT pk FROM tab4 WHERE NOT (col0 <= 6)
----
0

statement ok
DELETE FROM tab0 WHERE col0 >= 7

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col0 >= 7
----

query I rowsort label-3330
SELECT pk FROM tab0 WHERE NOT (col0 >= 7)
----

statement ok
DELETE FROM tab1 WHERE col0 >= 7

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col0 >= 7
----

query I rowsort label-3330
SELECT pk FROM tab1 WHERE NOT (col0 >= 7)
----

statement ok
DELETE FROM tab2 WHERE col0 >= 7

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col0 >= 7
----

query I rowsort label-3330
SELECT pk FROM tab2 WHERE NOT (col0 >= 7)
----

statement ok
DELETE FROM tab3 WHERE col0 >= 7

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col0 >= 7
----

query I rowsort label-3330
SELECT pk FROM tab3 WHERE NOT (col0 >= 7)
----

statement ok
DELETE FROM tab4 WHERE col0 >= 7

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col0 >= 7
----

query I rowsort label-3330
SELECT pk FROM tab4 WHERE NOT (col0 >= 7)
----

statement ok
DROP TABLE tab0

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,8,5.57,'fxnah',4,2.84,'tbxsi')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE UNIQUE INDEX idx_tab2_0 ON tab2 (col4)

statement ok
CREATE INDEX idx_tab2_1 ON tab2 (col0 DESC,col3)

statement ok
CREATE UNIQUE INDEX idx_tab2_2 ON tab2 (col1 DESC,col3 DESC)

statement ok
CREATE INDEX idx_tab2_3 ON tab2 (col3 DESC)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

statement ok
CREATE INDEX idx_tab3_0 ON tab3 (col0,col3)

statement ok
CREATE INDEX idx_tab3_1 ON tab3 (col4 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab3_2 ON tab3 (col3)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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_1 ON tab4 (col0 DESC,col4 DESC)

statement ok
CREATE INDEX idx_tab4_2 ON tab4 (col1)

statement ok
CREATE UNIQUE INDEX idx_tab4_3 ON tab4 (col4 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab4_4 ON tab4 (col0,col3)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE col3 > 8

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col3 > 8
----

query I rowsort label-3345
SELECT pk FROM tab0 WHERE NOT (col3 > 8)
----
0

statement ok
DELETE FROM tab1 WHERE col3 > 8

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col3 > 8
----

query I rowsort label-3345
SELECT pk FROM tab1 WHERE NOT (col3 > 8)
----
0

statement ok
DELETE FROM tab2 WHERE col3 > 8

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col3 > 8
----

query I rowsort label-3345
SELECT pk FROM tab2 WHERE NOT (col3 > 8)
----
0

statement ok
DELETE FROM tab3 WHERE col3 > 8

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col3 > 8
----

query I rowsort label-3345
SELECT pk FROM tab3 WHERE NOT (col3 > 8)
----
0

statement ok
DELETE FROM tab4 WHERE col3 > 8

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col3 > 8
----

query I rowsort label-3345
SELECT pk FROM tab4 WHERE NOT (col3 > 8)
----
0

statement ok
DELETE FROM tab0 WHERE col3 >= 9

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col3 >= 9
----

query I rowsort label-3360
SELECT pk FROM tab0 WHERE NOT (col3 >= 9)
----
0

statement ok
DELETE FROM tab1 WHERE col3 >= 9

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col3 >= 9
----

query I rowsort label-3360
SELECT pk FROM tab1 WHERE NOT (col3 >= 9)
----
0

statement ok
DELETE FROM tab2 WHERE col3 >= 9

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col3 >= 9
----

query I rowsort label-3360
SELECT pk FROM tab2 WHERE NOT (col3 >= 9)
----
0

statement ok
DELETE FROM tab3 WHERE col3 >= 9

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col3 >= 9
----

query I rowsort label-3360
SELECT pk FROM tab3 WHERE NOT (col3 >= 9)
----
0

statement ok
DELETE FROM tab4 WHERE col3 >= 9

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col3 >= 9
----

query I rowsort label-3360
SELECT pk FROM tab4 WHERE NOT (col3 >= 9)
----
0

statement ok
DELETE FROM tab0 WHERE col4 < 4.77 AND col3 < 7 OR (col0 IN (5,5,4,9)) OR ((col1 <= 4.52)) AND col0 < 9 AND ((col3 >= 0)) OR (col1 >= 4.22)

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col4 < 4.77 AND col3 < 7 OR (col0 IN (5,5,4,9)) OR ((col1 <= 4.52)) AND col0 < 9 AND ((col3 >= 0)) OR (col1 >= 4.22)
----

query I rowsort label-3375
SELECT pk FROM tab0 WHERE NOT (col4 < 4.77 AND col3 < 7 OR (col0 IN (5,5,4,9)) OR ((col1 <= 4.52)) AND col0 < 9 AND ((col3 >= 0)) OR (col1 >= 4.22))
----

statement ok
DELETE FROM tab1 WHERE col4 < 4.77 AND col3 < 7 OR (col0 IN (5,5,4,9)) OR ((col1 <= 4.52)) AND col0 < 9 AND ((col3 >= 0)) OR (col1 >= 4.22)

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col4 < 4.77 AND col3 < 7 OR (col0 IN (5,5,4,9)) OR ((col1 <= 4.52)) AND col0 < 9 AND ((col3 >= 0)) OR (col1 >= 4.22)
----

query I rowsort label-3375
SELECT pk FROM tab1 WHERE NOT (col4 < 4.77 AND col3 < 7 OR (col0 IN (5,5,4,9)) OR ((col1 <= 4.52)) AND col0 < 9 AND ((col3 >= 0)) OR (col1 >= 4.22))
----

statement ok
DELETE FROM tab2 WHERE col4 < 4.77 AND col3 < 7 OR (col0 IN (5,5,4,9)) OR ((col1 <= 4.52)) AND col0 < 9 AND ((col3 >= 0)) OR (col1 >= 4.22)

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col4 < 4.77 AND col3 < 7 OR (col0 IN (5,5,4,9)) OR ((col1 <= 4.52)) AND col0 < 9 AND ((col3 >= 0)) OR (col1 >= 4.22)
----

query I rowsort label-3375
SELECT pk FROM tab2 WHERE NOT (col4 < 4.77 AND col3 < 7 OR (col0 IN (5,5,4,9)) OR ((col1 <= 4.52)) AND col0 < 9 AND ((col3 >= 0)) OR (col1 >= 4.22))
----

statement ok
DELETE FROM tab3 WHERE col4 < 4.77 AND col3 < 7 OR (col0 IN (5,5,4,9)) OR ((col1 <= 4.52)) AND col0 < 9 AND ((col3 >= 0)) OR (col1 >= 4.22)

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col4 < 4.77 AND col3 < 7 OR (col0 IN (5,5,4,9)) OR ((col1 <= 4.52)) AND col0 < 9 AND ((col3 >= 0)) OR (col1 >= 4.22)
----

query I rowsort label-3375
SELECT pk FROM tab3 WHERE NOT (col4 < 4.77 AND col3 < 7 OR (col0 IN (5,5,4,9)) OR ((col1 <= 4.52)) AND col0 < 9 AND ((col3 >= 0)) OR (col1 >= 4.22))
----

statement ok
DELETE FROM tab4 WHERE col4 < 4.77 AND col3 < 7 OR (col0 IN (5,5,4,9)) OR ((col1 <= 4.52)) AND col0 < 9 AND ((col3 >= 0)) OR (col1 >= 4.22)

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col4 < 4.77 AND col3 < 7 OR (col0 IN (5,5,4,9)) OR ((col1 <= 4.52)) AND col0 < 9 AND ((col3 >= 0)) OR (col1 >= 4.22)
----

query I rowsort label-3375
SELECT pk FROM tab4 WHERE NOT (col4 < 4.77 AND col3 < 7 OR (col0 IN (5,5,4,9)) OR ((col1 <= 4.52)) AND col0 < 9 AND ((col3 >= 0)) OR (col1 >= 4.22))
----

statement ok
DROP TABLE tab0

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,2,3.94,'cpqwg',7,5.16,'kglvl')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE INDEX idx_tab2_0 ON tab2 (col4 DESC,col3)

statement ok
CREATE INDEX idx_tab2_1 ON tab2 (col0,col3 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab2_4 ON tab2 (col3 DESC,col0 DESC)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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,col0 DESC)

statement ok
CREATE INDEX idx_tab3_1 ON tab3 (col1)

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

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE UNIQUE INDEX idx_tab4_0 ON tab4 (col1 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab4_1 ON tab4 (col0 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab4_4 ON tab4 (col3 DESC)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DROP TABLE tab0

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,4,9.9,'eqzjf',7,2.8,'gliix')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE UNIQUE INDEX idx_tab2_0 ON tab2 (col1)

statement ok
CREATE INDEX idx_tab2_1 ON tab2 (col0 DESC)

statement ok
CREATE INDEX idx_tab2_2 ON tab2 (col4,col3 DESC)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

statement ok
CREATE INDEX idx_tab3_0 ON tab3 (col4)

statement ok
CREATE INDEX idx_tab3_4 ON tab3 (col3 DESC)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE INDEX idx_tab4_0 ON tab4 (col0,col3 DESC)

statement ok
CREATE INDEX idx_tab4_1 ON tab4 (col4 DESC,col3 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab4_2 ON tab4 (col1 DESC)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE col3 < 6

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col3 < 6
----

query I rowsort label-3390
SELECT pk FROM tab0 WHERE NOT (col3 < 6)
----
0

statement ok
DELETE FROM tab1 WHERE col3 < 6

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col3 < 6
----

query I rowsort label-3390
SELECT pk FROM tab1 WHERE NOT (col3 < 6)
----
0

statement ok
DELETE FROM tab2 WHERE col3 < 6

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col3 < 6
----

query I rowsort label-3390
SELECT pk FROM tab2 WHERE NOT (col3 < 6)
----
0

statement ok
DELETE FROM tab3 WHERE col3 < 6

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col3 < 6
----

query I rowsort label-3390
SELECT pk FROM tab3 WHERE NOT (col3 < 6)
----
0

statement ok
DELETE FROM tab4 WHERE col3 < 6

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col3 < 6
----

query I rowsort label-3390
SELECT pk FROM tab4 WHERE NOT (col3 < 6)
----
0

statement ok
DELETE FROM tab0 WHERE ((col0 IN (4,0,1,0,4)))

query I rowsort label-empty
SELECT pk FROM tab0 WHERE ((col0 IN (4,0,1,0,4)))
----

query I rowsort label-3405
SELECT pk FROM tab0 WHERE NOT (((col0 IN (4,0,1,0,4))))
----

statement ok
DELETE FROM tab1 WHERE ((col0 IN (4,0,1,0,4)))

query I rowsort label-empty
SELECT pk FROM tab1 WHERE ((col0 IN (4,0,1,0,4)))
----

query I rowsort label-3405
SELECT pk FROM tab1 WHERE NOT (((col0 IN (4,0,1,0,4))))
----

statement ok
DELETE FROM tab2 WHERE ((col0 IN (4,0,1,0,4)))

query I rowsort label-empty
SELECT pk FROM tab2 WHERE ((col0 IN (4,0,1,0,4)))
----

query I rowsort label-3405
SELECT pk FROM tab2 WHERE NOT (((col0 IN (4,0,1,0,4))))
----

statement ok
DELETE FROM tab3 WHERE ((col0 IN (4,0,1,0,4)))

query I rowsort label-empty
SELECT pk FROM tab3 WHERE ((col0 IN (4,0,1,0,4)))
----

query I rowsort label-3405
SELECT pk FROM tab3 WHERE NOT (((col0 IN (4,0,1,0,4))))
----

statement ok
DELETE FROM tab4 WHERE ((col0 IN (4,0,1,0,4)))

query I rowsort label-empty
SELECT pk FROM tab4 WHERE ((col0 IN (4,0,1,0,4)))
----

query I rowsort label-3405
SELECT pk FROM tab4 WHERE NOT (((col0 IN (4,0,1,0,4))))
----

statement ok
DROP TABLE tab0

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,0,6.21,'layiz',6,7.14,'xzxll')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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)

statement ok
CREATE UNIQUE INDEX idx_tab2_1 ON tab2 (col3 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab2_4 ON tab2 (col4)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

statement ok
CREATE INDEX idx_tab3_0 ON tab3 (col4 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab3_1 ON tab3 (col0,col1)

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

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE UNIQUE INDEX idx_tab4_0 ON tab4 (col3)

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

statement ok
DROP TABLE tab0

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,6,1.85,'ifxzj',4,0.48,'zwnak')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE INDEX idx_tab2_0 ON tab2 (col3)

statement ok
CREATE UNIQUE INDEX idx_tab2_1 ON tab2 (col1)

statement ok
CREATE INDEX idx_tab2_5 ON tab2 (col4)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

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

statement ok
CREATE INDEX idx_tab3_1 ON tab3 (col0 DESC,col4 DESC)

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

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE UNIQUE INDEX idx_tab4_0 ON tab4 (col4 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab4_2 ON tab4 (col3,col1)

statement ok
CREATE UNIQUE INDEX idx_tab4_4 ON tab4 (col1)

statement ok
CREATE INDEX idx_tab4_5 ON tab4 (col3,col0 DESC)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE (col0 > 7) OR col3 > 8

query I rowsort label-empty
SELECT pk FROM tab0 WHERE (col0 > 7) OR col3 > 8
----

query I rowsort label-3420
SELECT pk FROM tab0 WHERE NOT ((col0 > 7) OR col3 > 8)
----
0

statement ok
DELETE FROM tab1 WHERE (col0 > 7) OR col3 > 8

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (col0 > 7) OR col3 > 8
----

query I rowsort label-3420
SELECT pk FROM tab1 WHERE NOT ((col0 > 7) OR col3 > 8)
----
0

statement ok
DELETE FROM tab2 WHERE (col0 > 7) OR col3 > 8

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (col0 > 7) OR col3 > 8
----

query I rowsort label-3420
SELECT pk FROM tab2 WHERE NOT ((col0 > 7) OR col3 > 8)
----
0

statement ok
DELETE FROM tab3 WHERE (col0 > 7) OR col3 > 8

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (col0 > 7) OR col3 > 8
----

query I rowsort label-3420
SELECT pk FROM tab3 WHERE NOT ((col0 > 7) OR col3 > 8)
----
0

statement ok
DELETE FROM tab4 WHERE (col0 > 7) OR col3 > 8

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (col0 > 7) OR col3 > 8
----

query I rowsort label-3420
SELECT pk FROM tab4 WHERE NOT ((col0 > 7) OR col3 > 8)
----
0

statement ok
DELETE FROM tab0 WHERE (col0 IS NULL) OR (col0 > 2)

query I rowsort label-empty
SELECT pk FROM tab0 WHERE (col0 IS NULL) OR (col0 > 2)
----

query I rowsort label-3435
SELECT pk FROM tab0 WHERE NOT ((col0 IS NULL) OR (col0 > 2))
----

statement ok
DELETE FROM tab1 WHERE (col0 IS NULL) OR (col0 > 2)

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (col0 IS NULL) OR (col0 > 2)
----

query I rowsort label-3435
SELECT pk FROM tab1 WHERE NOT ((col0 IS NULL) OR (col0 > 2))
----

statement ok
DELETE FROM tab2 WHERE (col0 IS NULL) OR (col0 > 2)

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (col0 IS NULL) OR (col0 > 2)
----

query I rowsort label-3435
SELECT pk FROM tab2 WHERE NOT ((col0 IS NULL) OR (col0 > 2))
----

statement ok
DELETE FROM tab3 WHERE (col0 IS NULL) OR (col0 > 2)

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (col0 IS NULL) OR (col0 > 2)
----

query I rowsort label-3435
SELECT pk FROM tab3 WHERE NOT ((col0 IS NULL) OR (col0 > 2))
----

statement ok
DELETE FROM tab4 WHERE (col0 IS NULL) OR (col0 > 2)

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (col0 IS NULL) OR (col0 > 2)
----

query I rowsort label-3435
SELECT pk FROM tab4 WHERE NOT ((col0 IS NULL) OR (col0 > 2))
----

statement ok
DROP TABLE tab0

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,6,2.53,'xhaln',2,6.57,'oezst')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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)

statement ok
CREATE INDEX idx_tab2_2 ON tab2 (col1 DESC,col4 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab2_3 ON tab2 (col4 DESC,col3 DESC)

statement ok
CREATE INDEX idx_tab2_4 ON tab2 (col3,col1 DESC)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

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

statement ok
CREATE UNIQUE INDEX idx_tab3_1 ON tab3 (col4)

statement ok
CREATE INDEX idx_tab3_5 ON tab3 (col0 DESC)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE INDEX idx_tab4_0 ON tab4 (col4,col0)

statement ok
CREATE UNIQUE INDEX idx_tab4_4 ON tab4 (col1)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE ((col3 < 8) AND col0 >= 0)

query I rowsort label-empty
SELECT pk FROM tab0 WHERE ((col3 < 8) AND col0 >= 0)
----

query I rowsort label-3450
SELECT pk FROM tab0 WHERE NOT (((col3 < 8) AND col0 >= 0))
----

statement ok
DELETE FROM tab1 WHERE ((col3 < 8) AND col0 >= 0)

query I rowsort label-empty
SELECT pk FROM tab1 WHERE ((col3 < 8) AND col0 >= 0)
----

query I rowsort label-3450
SELECT pk FROM tab1 WHERE NOT (((col3 < 8) AND col0 >= 0))
----

statement ok
DELETE FROM tab2 WHERE ((col3 < 8) AND col0 >= 0)

query I rowsort label-empty
SELECT pk FROM tab2 WHERE ((col3 < 8) AND col0 >= 0)
----

query I rowsort label-3450
SELECT pk FROM tab2 WHERE NOT (((col3 < 8) AND col0 >= 0))
----

statement ok
DELETE FROM tab3 WHERE ((col3 < 8) AND col0 >= 0)

query I rowsort label-empty
SELECT pk FROM tab3 WHERE ((col3 < 8) AND col0 >= 0)
----

query I rowsort label-3450
SELECT pk FROM tab3 WHERE NOT (((col3 < 8) AND col0 >= 0))
----

statement ok
DELETE FROM tab4 WHERE ((col3 < 8) AND col0 >= 0)

query I rowsort label-empty
SELECT pk FROM tab4 WHERE ((col3 < 8) AND col0 >= 0)
----

query I rowsort label-3450
SELECT pk FROM tab4 WHERE NOT (((col3 < 8) AND col0 >= 0))
----

statement ok
DROP TABLE tab0

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,0,6.72,'drbnt',0,7.15,'infrp')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE UNIQUE INDEX idx_tab2_0 ON tab2 (col0 DESC)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

statement ok
CREATE INDEX idx_tab3_0 ON tab3 (col0 DESC)

statement ok
CREATE INDEX idx_tab3_2 ON tab3 (col3 DESC)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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_1 ON tab4 (col0,col4 DESC)

statement ok
CREATE INDEX idx_tab4_2 ON tab4 (col3 DESC,col0)

statement ok
CREATE INDEX idx_tab4_3 ON tab4 (col4)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE col4 BETWEEN 5.80 AND 3.37

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col4 BETWEEN 5.80 AND 3.37
----

query I rowsort label-3465
SELECT pk FROM tab0 WHERE NOT (col4 BETWEEN 5.80 AND 3.37)
----
0

statement ok
DELETE FROM tab1 WHERE col4 BETWEEN 5.80 AND 3.37

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col4 BETWEEN 5.80 AND 3.37
----

query I rowsort label-3465
SELECT pk FROM tab1 WHERE NOT (col4 BETWEEN 5.80 AND 3.37)
----
0

statement ok
DELETE FROM tab2 WHERE col4 BETWEEN 5.80 AND 3.37

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col4 BETWEEN 5.80 AND 3.37
----

query I rowsort label-3465
SELECT pk FROM tab2 WHERE NOT (col4 BETWEEN 5.80 AND 3.37)
----
0

statement ok
DELETE FROM tab3 WHERE col4 BETWEEN 5.80 AND 3.37

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col4 BETWEEN 5.80 AND 3.37
----

query I rowsort label-3465
SELECT pk FROM tab3 WHERE NOT (col4 BETWEEN 5.80 AND 3.37)
----
0

statement ok
DELETE FROM tab4 WHERE col4 BETWEEN 5.80 AND 3.37

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col4 BETWEEN 5.80 AND 3.37
----

query I rowsort label-3465
SELECT pk FROM tab4 WHERE NOT (col4 BETWEEN 5.80 AND 3.37)
----
0

statement ok
DELETE FROM tab0 WHERE (col4 < 6.30)

query I rowsort label-empty
SELECT pk FROM tab0 WHERE (col4 < 6.30)
----

query I rowsort label-3480
SELECT pk FROM tab0 WHERE NOT ((col4 < 6.30))
----
0

statement ok
DELETE FROM tab1 WHERE (col4 < 6.30)

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (col4 < 6.30)
----

query I rowsort label-3480
SELECT pk FROM tab1 WHERE NOT ((col4 < 6.30))
----
0

statement ok
DELETE FROM tab2 WHERE (col4 < 6.30)

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (col4 < 6.30)
----

query I rowsort label-3480
SELECT pk FROM tab2 WHERE NOT ((col4 < 6.30))
----
0

statement ok
DELETE FROM tab3 WHERE (col4 < 6.30)

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (col4 < 6.30)
----

query I rowsort label-3480
SELECT pk FROM tab3 WHERE NOT ((col4 < 6.30))
----
0

statement ok
DELETE FROM tab4 WHERE (col4 < 6.30)

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (col4 < 6.30)
----

query I rowsort label-3480
SELECT pk FROM tab4 WHERE NOT ((col4 < 6.30))
----
0

statement ok
DELETE FROM tab0 WHERE col3 > 1 AND (col3 >= 6 OR col3 > 5 OR (((col3 IS NULL) OR col0 = 4 AND col3 < 2 OR (((col1 IS NULL) OR col0 = 7 OR (col0 > 5) AND col3 > 0)) AND (((col1 = 4.20 AND (col3 IN (0,6,2,9,6,4)) OR col4 < 5.84))) AND ((col3 >= 7)) AND ((col1 IS NULL)) OR col0 < 9 OR col4 IS NULL AND (col0 > 9 AND (col4 <= 7.79) AND (col3 < 0) AND (((col0 > 6 OR (col3 = 2 OR ((col0 >= 8))) AND (col1 > 9.32) AND (col0 = 6 AND col0 IS NULL AND col0 > 6 AND col0 > 9 AND col3 IN (1,8,5,4,1,2) OR col0 >= 7 AND col1 < 9.65 AND col3 < 6 AND col3 <= 2 AND col4 = 4.96 OR (((((col0 < 1 AND col0 > 2 OR col0 <= 5) AND col0 <= 1 AND ((((((col0 <= 9) AND ((col0 > 5)) AND col4 <= 8.98) OR col3 = 0 OR (((((((col3 >= 0))))) AND (col1 = 5.67)))) OR col0 > 5)))) AND col3 > 3 AND col1 >= 7.36 OR col4 <= 7.94 AND (col4 > 2.38) OR col4 IS NULL AND col0 < 7)) OR col1 = 8.99)))))) OR ((col0 < 7)) AND ((col0 IS NULL OR col0 >= 7 AND col4 > 0.48 OR (col1 BETWEEN 2.12 AND 9.41) OR col4 <= 8.79 OR col4 > 6.60 AND (((col0 > 5) OR col3 < 6 AND col3 IS NULL AND col1 < 2.58)) AND (col0 <= 7) AND (col1 > 5.14)) OR (col1 > 8.99) AND col3 <= 6 AND (col3 IS NULL)) OR col4 >= 1.77 AND ((col3 < 1 OR col0 < 0 AND col0 < 1)) AND ((col3 IS NULL)) AND (col0 >= 0) AND (((col0 > 4)) OR (col4 = 3.30 AND col4 < 9.80)) AND (col4 < 1.87) OR col3 = 4 AND col3 <= 6 OR col0 >= 1 OR (col0 < 4 AND (((col0 >= 0))))))) OR col3 >= 4 AND col3 IS NULL OR (col4 IN (8.46,1.53,7.31)) OR col1 < 7.12

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col3 > 1 AND (col3 >= 6 OR col3 > 5 OR (((col3 IS NULL) OR col0 = 4 AND col3 < 2 OR (((col1 IS NULL) OR col0 = 7 OR (col0 > 5) AND col3 > 0)) AND (((col1 = 4.20 AND (col3 IN (0,6,2,9,6,4)) OR col4 < 5.84))) AND ((col3 >= 7)) AND ((col1 IS NULL)) OR col0 < 9 OR col4 IS NULL AND (col0 > 9 AND (col4 <= 7.79) AND (col3 < 0) AND (((col0 > 6 OR (col3 = 2 OR ((col0 >= 8))) AND (col1 > 9.32) AND (col0 = 6 AND col0 IS NULL AND col0 > 6 AND col0 > 9 AND col3 IN (1,8,5,4,1,2) OR col0 >= 7 AND col1 < 9.65 AND col3 < 6 AND col3 <= 2 AND col4 = 4.96 OR (((((col0 < 1 AND col0 > 2 OR col0 <= 5) AND col0 <= 1 AND ((((((col0 <= 9) AND ((col0 > 5)) AND col4 <= 8.98) OR col3 = 0 OR (((((((col3 >= 0))))) AND (col1 = 5.67)))) OR col0 > 5)))) AND col3 > 3 AND col1 >= 7.36 OR col4 <= 7.94 AND (col4 > 2.38) OR col4 IS NULL AND col0 < 7)) OR col1 = 8.99)))))) OR ((col0 < 7)) AND ((col0 IS NULL OR col0 >= 7 AND col4 > 0.48 OR (col1 BETWEEN 2.12 AND 9.41) OR col4 <= 8.79 OR col4 > 6.60 AND (((col0 > 5) OR col3 < 6 AND col3 IS NULL AND col1 < 2.58)) AND (col0 <= 7) AND (col1 > 5.14)) OR (col1 > 8.99) AND col3 <= 6 AND (col3 IS NULL)) OR col4 >= 1.77 AND ((col3 < 1 OR col0 < 0 AND col0 < 1)) AND ((col3 IS NULL)) AND (col0 >= 0) AND (((col0 > 4)) OR (col4 = 3.30 AND col4 < 9.80)) AND (col4 < 1.87) OR col3 = 4 AND col3 <= 6 OR col0 >= 1 OR (col0 < 4 AND (((col0 >= 0))))))) OR col3 >= 4 AND col3 IS NULL OR (col4 IN (8.46,1.53,7.31)) OR col1 < 7.12
----

query I rowsort label-3495
SELECT pk FROM tab0 WHERE NOT (col3 > 1 AND (col3 >= 6 OR col3 > 5 OR (((col3 IS NULL) OR col0 = 4 AND col3 < 2 OR (((col1 IS NULL) OR col0 = 7 OR (col0 > 5) AND col3 > 0)) AND (((col1 = 4.20 AND (col3 IN (0,6,2,9,6,4)) OR col4 < 5.84))) AND ((col3 >= 7)) AND ((col1 IS NULL)) OR col0 < 9 OR col4 IS NULL AND (col0 > 9 AND (col4 <= 7.79) AND (col3 < 0) AND (((col0 > 6 OR (col3 = 2 OR ((col0 >= 8))) AND (col1 > 9.32) AND (col0 = 6 AND col0 IS NULL AND col0 > 6 AND col0 > 9 AND col3 IN (1,8,5,4,1,2) OR col0 >= 7 AND col1 < 9.65 AND col3 < 6 AND col3 <= 2 AND col4 = 4.96 OR (((((col0 < 1 AND col0 > 2 OR col0 <= 5) AND col0 <= 1 AND ((((((col0 <= 9) AND ((col0 > 5)) AND col4 <= 8.98) OR col3 = 0 OR (((((((col3 >= 0))))) AND (col1 = 5.67)))) OR col0 > 5)))) AND col3 > 3 AND col1 >= 7.36 OR col4 <= 7.94 AND (col4 > 2.38) OR col4 IS NULL AND col0 < 7)) OR col1 = 8.99)))))) OR ((col0 < 7)) AND ((col0 IS NULL OR col0 >= 7 AND col4 > 0.48 OR (col1 BETWEEN 2.12 AND 9.41) OR col4 <= 8.79 OR col4 > 6.60 AND (((col0 > 5) OR col3 < 6 AND col3 IS NULL AND col1 < 2.58)) AND (col0 <= 7) AND (col1 > 5.14)) OR (col1 > 8.99) AND col3 <= 6 AND (col3 IS NULL)) OR col4 >= 1.77 AND ((col3 < 1 OR col0 < 0 AND col0 < 1)) AND ((col3 IS NULL)) AND (col0 >= 0) AND (((col0 > 4)) OR (col4 = 3.30 AND col4 < 9.80)) AND (col4 < 1.87) OR col3 = 4 AND col3 <= 6 OR col0 >= 1 OR (col0 < 4 AND (((col0 >= 0))))))) OR col3 >= 4 AND col3 IS NULL OR (col4 IN (8.46,1.53,7.31)) OR col1 < 7.12)
----

statement ok
DELETE FROM tab1 WHERE col3 > 1 AND (col3 >= 6 OR col3 > 5 OR (((col3 IS NULL) OR col0 = 4 AND col3 < 2 OR (((col1 IS NULL) OR col0 = 7 OR (col0 > 5) AND col3 > 0)) AND (((col1 = 4.20 AND (col3 IN (0,6,2,9,6,4)) OR col4 < 5.84))) AND ((col3 >= 7)) AND ((col1 IS NULL)) OR col0 < 9 OR col4 IS NULL AND (col0 > 9 AND (col4 <= 7.79) AND (col3 < 0) AND (((col0 > 6 OR (col3 = 2 OR ((col0 >= 8))) AND (col1 > 9.32) AND (col0 = 6 AND col0 IS NULL AND col0 > 6 AND col0 > 9 AND col3 IN (1,8,5,4,1,2) OR col0 >= 7 AND col1 < 9.65 AND col3 < 6 AND col3 <= 2 AND col4 = 4.96 OR (((((col0 < 1 AND col0 > 2 OR col0 <= 5) AND col0 <= 1 AND ((((((col0 <= 9) AND ((col0 > 5)) AND col4 <= 8.98) OR col3 = 0 OR (((((((col3 >= 0))))) AND (col1 = 5.67)))) OR col0 > 5)))) AND col3 > 3 AND col1 >= 7.36 OR col4 <= 7.94 AND (col4 > 2.38) OR col4 IS NULL AND col0 < 7)) OR col1 = 8.99)))))) OR ((col0 < 7)) AND ((col0 IS NULL OR col0 >= 7 AND col4 > 0.48 OR (col1 BETWEEN 2.12 AND 9.41) OR col4 <= 8.79 OR col4 > 6.60 AND (((col0 > 5) OR col3 < 6 AND col3 IS NULL AND col1 < 2.58)) AND (col0 <= 7) AND (col1 > 5.14)) OR (col1 > 8.99) AND col3 <= 6 AND (col3 IS NULL)) OR col4 >= 1.77 AND ((col3 < 1 OR col0 < 0 AND col0 < 1)) AND ((col3 IS NULL)) AND (col0 >= 0) AND (((col0 > 4)) OR (col4 = 3.30 AND col4 < 9.80)) AND (col4 < 1.87) OR col3 = 4 AND col3 <= 6 OR col0 >= 1 OR (col0 < 4 AND (((col0 >= 0))))))) OR col3 >= 4 AND col3 IS NULL OR (col4 IN (8.46,1.53,7.31)) OR col1 < 7.12

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col3 > 1 AND (col3 >= 6 OR col3 > 5 OR (((col3 IS NULL) OR col0 = 4 AND col3 < 2 OR (((col1 IS NULL) OR col0 = 7 OR (col0 > 5) AND col3 > 0)) AND (((col1 = 4.20 AND (col3 IN (0,6,2,9,6,4)) OR col4 < 5.84))) AND ((col3 >= 7)) AND ((col1 IS NULL)) OR col0 < 9 OR col4 IS NULL AND (col0 > 9 AND (col4 <= 7.79) AND (col3 < 0) AND (((col0 > 6 OR (col3 = 2 OR ((col0 >= 8))) AND (col1 > 9.32) AND (col0 = 6 AND col0 IS NULL AND col0 > 6 AND col0 > 9 AND col3 IN (1,8,5,4,1,2) OR col0 >= 7 AND col1 < 9.65 AND col3 < 6 AND col3 <= 2 AND col4 = 4.96 OR (((((col0 < 1 AND col0 > 2 OR col0 <= 5) AND col0 <= 1 AND ((((((col0 <= 9) AND ((col0 > 5)) AND col4 <= 8.98) OR col3 = 0 OR (((((((col3 >= 0))))) AND (col1 = 5.67)))) OR col0 > 5)))) AND col3 > 3 AND col1 >= 7.36 OR col4 <= 7.94 AND (col4 > 2.38) OR col4 IS NULL AND col0 < 7)) OR col1 = 8.99)))))) OR ((col0 < 7)) AND ((col0 IS NULL OR col0 >= 7 AND col4 > 0.48 OR (col1 BETWEEN 2.12 AND 9.41) OR col4 <= 8.79 OR col4 > 6.60 AND (((col0 > 5) OR col3 < 6 AND col3 IS NULL AND col1 < 2.58)) AND (col0 <= 7) AND (col1 > 5.14)) OR (col1 > 8.99) AND col3 <= 6 AND (col3 IS NULL)) OR col4 >= 1.77 AND ((col3 < 1 OR col0 < 0 AND col0 < 1)) AND ((col3 IS NULL)) AND (col0 >= 0) AND (((col0 > 4)) OR (col4 = 3.30 AND col4 < 9.80)) AND (col4 < 1.87) OR col3 = 4 AND col3 <= 6 OR col0 >= 1 OR (col0 < 4 AND (((col0 >= 0))))))) OR col3 >= 4 AND col3 IS NULL OR (col4 IN (8.46,1.53,7.31)) OR col1 < 7.12
----

query I rowsort label-3495
SELECT pk FROM tab1 WHERE NOT (col3 > 1 AND (col3 >= 6 OR col3 > 5 OR (((col3 IS NULL) OR col0 = 4 AND col3 < 2 OR (((col1 IS NULL) OR col0 = 7 OR (col0 > 5) AND col3 > 0)) AND (((col1 = 4.20 AND (col3 IN (0,6,2,9,6,4)) OR col4 < 5.84))) AND ((col3 >= 7)) AND ((col1 IS NULL)) OR col0 < 9 OR col4 IS NULL AND (col0 > 9 AND (col4 <= 7.79) AND (col3 < 0) AND (((col0 > 6 OR (col3 = 2 OR ((col0 >= 8))) AND (col1 > 9.32) AND (col0 = 6 AND col0 IS NULL AND col0 > 6 AND col0 > 9 AND col3 IN (1,8,5,4,1,2) OR col0 >= 7 AND col1 < 9.65 AND col3 < 6 AND col3 <= 2 AND col4 = 4.96 OR (((((col0 < 1 AND col0 > 2 OR col0 <= 5) AND col0 <= 1 AND ((((((col0 <= 9) AND ((col0 > 5)) AND col4 <= 8.98) OR col3 = 0 OR (((((((col3 >= 0))))) AND (col1 = 5.67)))) OR col0 > 5)))) AND col3 > 3 AND col1 >= 7.36 OR col4 <= 7.94 AND (col4 > 2.38) OR col4 IS NULL AND col0 < 7)) OR col1 = 8.99)))))) OR ((col0 < 7)) AND ((col0 IS NULL OR col0 >= 7 AND col4 > 0.48 OR (col1 BETWEEN 2.12 AND 9.41) OR col4 <= 8.79 OR col4 > 6.60 AND (((col0 > 5) OR col3 < 6 AND col3 IS NULL AND col1 < 2.58)) AND (col0 <= 7) AND (col1 > 5.14)) OR (col1 > 8.99) AND col3 <= 6 AND (col3 IS NULL)) OR col4 >= 1.77 AND ((col3 < 1 OR col0 < 0 AND col0 < 1)) AND ((col3 IS NULL)) AND (col0 >= 0) AND (((col0 > 4)) OR (col4 = 3.30 AND col4 < 9.80)) AND (col4 < 1.87) OR col3 = 4 AND col3 <= 6 OR col0 >= 1 OR (col0 < 4 AND (((col0 >= 0))))))) OR col3 >= 4 AND col3 IS NULL OR (col4 IN (8.46,1.53,7.31)) OR col1 < 7.12)
----

statement ok
DELETE FROM tab2 WHERE col3 > 1 AND (col3 >= 6 OR col3 > 5 OR (((col3 IS NULL) OR col0 = 4 AND col3 < 2 OR (((col1 IS NULL) OR col0 = 7 OR (col0 > 5) AND col3 > 0)) AND (((col1 = 4.20 AND (col3 IN (0,6,2,9,6,4)) OR col4 < 5.84))) AND ((col3 >= 7)) AND ((col1 IS NULL)) OR col0 < 9 OR col4 IS NULL AND (col0 > 9 AND (col4 <= 7.79) AND (col3 < 0) AND (((col0 > 6 OR (col3 = 2 OR ((col0 >= 8))) AND (col1 > 9.32) AND (col0 = 6 AND col0 IS NULL AND col0 > 6 AND col0 > 9 AND col3 IN (1,8,5,4,1,2) OR col0 >= 7 AND col1 < 9.65 AND col3 < 6 AND col3 <= 2 AND col4 = 4.96 OR (((((col0 < 1 AND col0 > 2 OR col0 <= 5) AND col0 <= 1 AND ((((((col0 <= 9) AND ((col0 > 5)) AND col4 <= 8.98) OR col3 = 0 OR (((((((col3 >= 0))))) AND (col1 = 5.67)))) OR col0 > 5)))) AND col3 > 3 AND col1 >= 7.36 OR col4 <= 7.94 AND (col4 > 2.38) OR col4 IS NULL AND col0 < 7)) OR col1 = 8.99)))))) OR ((col0 < 7)) AND ((col0 IS NULL OR col0 >= 7 AND col4 > 0.48 OR (col1 BETWEEN 2.12 AND 9.41) OR col4 <= 8.79 OR col4 > 6.60 AND (((col0 > 5) OR col3 < 6 AND col3 IS NULL AND col1 < 2.58)) AND (col0 <= 7) AND (col1 > 5.14)) OR (col1 > 8.99) AND col3 <= 6 AND (col3 IS NULL)) OR col4 >= 1.77 AND ((col3 < 1 OR col0 < 0 AND col0 < 1)) AND ((col3 IS NULL)) AND (col0 >= 0) AND (((col0 > 4)) OR (col4 = 3.30 AND col4 < 9.80)) AND (col4 < 1.87) OR col3 = 4 AND col3 <= 6 OR col0 >= 1 OR (col0 < 4 AND (((col0 >= 0))))))) OR col3 >= 4 AND col3 IS NULL OR (col4 IN (8.46,1.53,7.31)) OR col1 < 7.12

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col3 > 1 AND (col3 >= 6 OR col3 > 5 OR (((col3 IS NULL) OR col0 = 4 AND col3 < 2 OR (((col1 IS NULL) OR col0 = 7 OR (col0 > 5) AND col3 > 0)) AND (((col1 = 4.20 AND (col3 IN (0,6,2,9,6,4)) OR col4 < 5.84))) AND ((col3 >= 7)) AND ((col1 IS NULL)) OR col0 < 9 OR col4 IS NULL AND (col0 > 9 AND (col4 <= 7.79) AND (col3 < 0) AND (((col0 > 6 OR (col3 = 2 OR ((col0 >= 8))) AND (col1 > 9.32) AND (col0 = 6 AND col0 IS NULL AND col0 > 6 AND col0 > 9 AND col3 IN (1,8,5,4,1,2) OR col0 >= 7 AND col1 < 9.65 AND col3 < 6 AND col3 <= 2 AND col4 = 4.96 OR (((((col0 < 1 AND col0 > 2 OR col0 <= 5) AND col0 <= 1 AND ((((((col0 <= 9) AND ((col0 > 5)) AND col4 <= 8.98) OR col3 = 0 OR (((((((col3 >= 0))))) AND (col1 = 5.67)))) OR col0 > 5)))) AND col3 > 3 AND col1 >= 7.36 OR col4 <= 7.94 AND (col4 > 2.38) OR col4 IS NULL AND col0 < 7)) OR col1 = 8.99)))))) OR ((col0 < 7)) AND ((col0 IS NULL OR col0 >= 7 AND col4 > 0.48 OR (col1 BETWEEN 2.12 AND 9.41) OR col4 <= 8.79 OR col4 > 6.60 AND (((col0 > 5) OR col3 < 6 AND col3 IS NULL AND col1 < 2.58)) AND (col0 <= 7) AND (col1 > 5.14)) OR (col1 > 8.99) AND col3 <= 6 AND (col3 IS NULL)) OR col4 >= 1.77 AND ((col3 < 1 OR col0 < 0 AND col0 < 1)) AND ((col3 IS NULL)) AND (col0 >= 0) AND (((col0 > 4)) OR (col4 = 3.30 AND col4 < 9.80)) AND (col4 < 1.87) OR col3 = 4 AND col3 <= 6 OR col0 >= 1 OR (col0 < 4 AND (((col0 >= 0))))))) OR col3 >= 4 AND col3 IS NULL OR (col4 IN (8.46,1.53,7.31)) OR col1 < 7.12
----

query I rowsort label-3495
SELECT pk FROM tab2 WHERE NOT (col3 > 1 AND (col3 >= 6 OR col3 > 5 OR (((col3 IS NULL) OR col0 = 4 AND col3 < 2 OR (((col1 IS NULL) OR col0 = 7 OR (col0 > 5) AND col3 > 0)) AND (((col1 = 4.20 AND (col3 IN (0,6,2,9,6,4)) OR col4 < 5.84))) AND ((col3 >= 7)) AND ((col1 IS NULL)) OR col0 < 9 OR col4 IS NULL AND (col0 > 9 AND (col4 <= 7.79) AND (col3 < 0) AND (((col0 > 6 OR (col3 = 2 OR ((col0 >= 8))) AND (col1 > 9.32) AND (col0 = 6 AND col0 IS NULL AND col0 > 6 AND col0 > 9 AND col3 IN (1,8,5,4,1,2) OR col0 >= 7 AND col1 < 9.65 AND col3 < 6 AND col3 <= 2 AND col4 = 4.96 OR (((((col0 < 1 AND col0 > 2 OR col0 <= 5) AND col0 <= 1 AND ((((((col0 <= 9) AND ((col0 > 5)) AND col4 <= 8.98) OR col3 = 0 OR (((((((col3 >= 0))))) AND (col1 = 5.67)))) OR col0 > 5)))) AND col3 > 3 AND col1 >= 7.36 OR col4 <= 7.94 AND (col4 > 2.38) OR col4 IS NULL AND col0 < 7)) OR col1 = 8.99)))))) OR ((col0 < 7)) AND ((col0 IS NULL OR col0 >= 7 AND col4 > 0.48 OR (col1 BETWEEN 2.12 AND 9.41) OR col4 <= 8.79 OR col4 > 6.60 AND (((col0 > 5) OR col3 < 6 AND col3 IS NULL AND col1 < 2.58)) AND (col0 <= 7) AND (col1 > 5.14)) OR (col1 > 8.99) AND col3 <= 6 AND (col3 IS NULL)) OR col4 >= 1.77 AND ((col3 < 1 OR col0 < 0 AND col0 < 1)) AND ((col3 IS NULL)) AND (col0 >= 0) AND (((col0 > 4)) OR (col4 = 3.30 AND col4 < 9.80)) AND (col4 < 1.87) OR col3 = 4 AND col3 <= 6 OR col0 >= 1 OR (col0 < 4 AND (((col0 >= 0))))))) OR col3 >= 4 AND col3 IS NULL OR (col4 IN (8.46,1.53,7.31)) OR col1 < 7.12)
----

statement ok
DELETE FROM tab3 WHERE col3 > 1 AND (col3 >= 6 OR col3 > 5 OR (((col3 IS NULL) OR col0 = 4 AND col3 < 2 OR (((col1 IS NULL) OR col0 = 7 OR (col0 > 5) AND col3 > 0)) AND (((col1 = 4.20 AND (col3 IN (0,6,2,9,6,4)) OR col4 < 5.84))) AND ((col3 >= 7)) AND ((col1 IS NULL)) OR col0 < 9 OR col4 IS NULL AND (col0 > 9 AND (col4 <= 7.79) AND (col3 < 0) AND (((col0 > 6 OR (col3 = 2 OR ((col0 >= 8))) AND (col1 > 9.32) AND (col0 = 6 AND col0 IS NULL AND col0 > 6 AND col0 > 9 AND col3 IN (1,8,5,4,1,2) OR col0 >= 7 AND col1 < 9.65 AND col3 < 6 AND col3 <= 2 AND col4 = 4.96 OR (((((col0 < 1 AND col0 > 2 OR col0 <= 5) AND col0 <= 1 AND ((((((col0 <= 9) AND ((col0 > 5)) AND col4 <= 8.98) OR col3 = 0 OR (((((((col3 >= 0))))) AND (col1 = 5.67)))) OR col0 > 5)))) AND col3 > 3 AND col1 >= 7.36 OR col4 <= 7.94 AND (col4 > 2.38) OR col4 IS NULL AND col0 < 7)) OR col1 = 8.99)))))) OR ((col0 < 7)) AND ((col0 IS NULL OR col0 >= 7 AND col4 > 0.48 OR (col1 BETWEEN 2.12 AND 9.41) OR col4 <= 8.79 OR col4 > 6.60 AND (((col0 > 5) OR col3 < 6 AND col3 IS NULL AND col1 < 2.58)) AND (col0 <= 7) AND (col1 > 5.14)) OR (col1 > 8.99) AND col3 <= 6 AND (col3 IS NULL)) OR col4 >= 1.77 AND ((col3 < 1 OR col0 < 0 AND col0 < 1)) AND ((col3 IS NULL)) AND (col0 >= 0) AND (((col0 > 4)) OR (col4 = 3.30 AND col4 < 9.80)) AND (col4 < 1.87) OR col3 = 4 AND col3 <= 6 OR col0 >= 1 OR (col0 < 4 AND (((col0 >= 0))))))) OR col3 >= 4 AND col3 IS NULL OR (col4 IN (8.46,1.53,7.31)) OR col1 < 7.12

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col3 > 1 AND (col3 >= 6 OR col3 > 5 OR (((col3 IS NULL) OR col0 = 4 AND col3 < 2 OR (((col1 IS NULL) OR col0 = 7 OR (col0 > 5) AND col3 > 0)) AND (((col1 = 4.20 AND (col3 IN (0,6,2,9,6,4)) OR col4 < 5.84))) AND ((col3 >= 7)) AND ((col1 IS NULL)) OR col0 < 9 OR col4 IS NULL AND (col0 > 9 AND (col4 <= 7.79) AND (col3 < 0) AND (((col0 > 6 OR (col3 = 2 OR ((col0 >= 8))) AND (col1 > 9.32) AND (col0 = 6 AND col0 IS NULL AND col0 > 6 AND col0 > 9 AND col3 IN (1,8,5,4,1,2) OR col0 >= 7 AND col1 < 9.65 AND col3 < 6 AND col3 <= 2 AND col4 = 4.96 OR (((((col0 < 1 AND col0 > 2 OR col0 <= 5) AND col0 <= 1 AND ((((((col0 <= 9) AND ((col0 > 5)) AND col4 <= 8.98) OR col3 = 0 OR (((((((col3 >= 0))))) AND (col1 = 5.67)))) OR col0 > 5)))) AND col3 > 3 AND col1 >= 7.36 OR col4 <= 7.94 AND (col4 > 2.38) OR col4 IS NULL AND col0 < 7)) OR col1 = 8.99)))))) OR ((col0 < 7)) AND ((col0 IS NULL OR col0 >= 7 AND col4 > 0.48 OR (col1 BETWEEN 2.12 AND 9.41) OR col4 <= 8.79 OR col4 > 6.60 AND (((col0 > 5) OR col3 < 6 AND col3 IS NULL AND col1 < 2.58)) AND (col0 <= 7) AND (col1 > 5.14)) OR (col1 > 8.99) AND col3 <= 6 AND (col3 IS NULL)) OR col4 >= 1.77 AND ((col3 < 1 OR col0 < 0 AND col0 < 1)) AND ((col3 IS NULL)) AND (col0 >= 0) AND (((col0 > 4)) OR (col4 = 3.30 AND col4 < 9.80)) AND (col4 < 1.87) OR col3 = 4 AND col3 <= 6 OR col0 >= 1 OR (col0 < 4 AND (((col0 >= 0))))))) OR col3 >= 4 AND col3 IS NULL OR (col4 IN (8.46,1.53,7.31)) OR col1 < 7.12
----

query I rowsort label-3495
SELECT pk FROM tab3 WHERE NOT (col3 > 1 AND (col3 >= 6 OR col3 > 5 OR (((col3 IS NULL) OR col0 = 4 AND col3 < 2 OR (((col1 IS NULL) OR col0 = 7 OR (col0 > 5) AND col3 > 0)) AND (((col1 = 4.20 AND (col3 IN (0,6,2,9,6,4)) OR col4 < 5.84))) AND ((col3 >= 7)) AND ((col1 IS NULL)) OR col0 < 9 OR col4 IS NULL AND (col0 > 9 AND (col4 <= 7.79) AND (col3 < 0) AND (((col0 > 6 OR (col3 = 2 OR ((col0 >= 8))) AND (col1 > 9.32) AND (col0 = 6 AND col0 IS NULL AND col0 > 6 AND col0 > 9 AND col3 IN (1,8,5,4,1,2) OR col0 >= 7 AND col1 < 9.65 AND col3 < 6 AND col3 <= 2 AND col4 = 4.96 OR (((((col0 < 1 AND col0 > 2 OR col0 <= 5) AND col0 <= 1 AND ((((((col0 <= 9) AND ((col0 > 5)) AND col4 <= 8.98) OR col3 = 0 OR (((((((col3 >= 0))))) AND (col1 = 5.67)))) OR col0 > 5)))) AND col3 > 3 AND col1 >= 7.36 OR col4 <= 7.94 AND (col4 > 2.38) OR col4 IS NULL AND col0 < 7)) OR col1 = 8.99)))))) OR ((col0 < 7)) AND ((col0 IS NULL OR col0 >= 7 AND col4 > 0.48 OR (col1 BETWEEN 2.12 AND 9.41) OR col4 <= 8.79 OR col4 > 6.60 AND (((col0 > 5) OR col3 < 6 AND col3 IS NULL AND col1 < 2.58)) AND (col0 <= 7) AND (col1 > 5.14)) OR (col1 > 8.99) AND col3 <= 6 AND (col3 IS NULL)) OR col4 >= 1.77 AND ((col3 < 1 OR col0 < 0 AND col0 < 1)) AND ((col3 IS NULL)) AND (col0 >= 0) AND (((col0 > 4)) OR (col4 = 3.30 AND col4 < 9.80)) AND (col4 < 1.87) OR col3 = 4 AND col3 <= 6 OR col0 >= 1 OR (col0 < 4 AND (((col0 >= 0))))))) OR col3 >= 4 AND col3 IS NULL OR (col4 IN (8.46,1.53,7.31)) OR col1 < 7.12)
----

statement ok
DELETE FROM tab4 WHERE col3 > 1 AND (col3 >= 6 OR col3 > 5 OR (((col3 IS NULL) OR col0 = 4 AND col3 < 2 OR (((col1 IS NULL) OR col0 = 7 OR (col0 > 5) AND col3 > 0)) AND (((col1 = 4.20 AND (col3 IN (0,6,2,9,6,4)) OR col4 < 5.84))) AND ((col3 >= 7)) AND ((col1 IS NULL)) OR col0 < 9 OR col4 IS NULL AND (col0 > 9 AND (col4 <= 7.79) AND (col3 < 0) AND (((col0 > 6 OR (col3 = 2 OR ((col0 >= 8))) AND (col1 > 9.32) AND (col0 = 6 AND col0 IS NULL AND col0 > 6 AND col0 > 9 AND col3 IN (1,8,5,4,1,2) OR col0 >= 7 AND col1 < 9.65 AND col3 < 6 AND col3 <= 2 AND col4 = 4.96 OR (((((col0 < 1 AND col0 > 2 OR col0 <= 5) AND col0 <= 1 AND ((((((col0 <= 9) AND ((col0 > 5)) AND col4 <= 8.98) OR col3 = 0 OR (((((((col3 >= 0))))) AND (col1 = 5.67)))) OR col0 > 5)))) AND col3 > 3 AND col1 >= 7.36 OR col4 <= 7.94 AND (col4 > 2.38) OR col4 IS NULL AND col0 < 7)) OR col1 = 8.99)))))) OR ((col0 < 7)) AND ((col0 IS NULL OR col0 >= 7 AND col4 > 0.48 OR (col1 BETWEEN 2.12 AND 9.41) OR col4 <= 8.79 OR col4 > 6.60 AND (((col0 > 5) OR col3 < 6 AND col3 IS NULL AND col1 < 2.58)) AND (col0 <= 7) AND (col1 > 5.14)) OR (col1 > 8.99) AND col3 <= 6 AND (col3 IS NULL)) OR col4 >= 1.77 AND ((col3 < 1 OR col0 < 0 AND col0 < 1)) AND ((col3 IS NULL)) AND (col0 >= 0) AND (((col0 > 4)) OR (col4 = 3.30 AND col4 < 9.80)) AND (col4 < 1.87) OR col3 = 4 AND col3 <= 6 OR col0 >= 1 OR (col0 < 4 AND (((col0 >= 0))))))) OR col3 >= 4 AND col3 IS NULL OR (col4 IN (8.46,1.53,7.31)) OR col1 < 7.12

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col3 > 1 AND (col3 >= 6 OR col3 > 5 OR (((col3 IS NULL) OR col0 = 4 AND col3 < 2 OR (((col1 IS NULL) OR col0 = 7 OR (col0 > 5) AND col3 > 0)) AND (((col1 = 4.20 AND (col3 IN (0,6,2,9,6,4)) OR col4 < 5.84))) AND ((col3 >= 7)) AND ((col1 IS NULL)) OR col0 < 9 OR col4 IS NULL AND (col0 > 9 AND (col4 <= 7.79) AND (col3 < 0) AND (((col0 > 6 OR (col3 = 2 OR ((col0 >= 8))) AND (col1 > 9.32) AND (col0 = 6 AND col0 IS NULL AND col0 > 6 AND col0 > 9 AND col3 IN (1,8,5,4,1,2) OR col0 >= 7 AND col1 < 9.65 AND col3 < 6 AND col3 <= 2 AND col4 = 4.96 OR (((((col0 < 1 AND col0 > 2 OR col0 <= 5) AND col0 <= 1 AND ((((((col0 <= 9) AND ((col0 > 5)) AND col4 <= 8.98) OR col3 = 0 OR (((((((col3 >= 0))))) AND (col1 = 5.67)))) OR col0 > 5)))) AND col3 > 3 AND col1 >= 7.36 OR col4 <= 7.94 AND (col4 > 2.38) OR col4 IS NULL AND col0 < 7)) OR col1 = 8.99)))))) OR ((col0 < 7)) AND ((col0 IS NULL OR col0 >= 7 AND col4 > 0.48 OR (col1 BETWEEN 2.12 AND 9.41) OR col4 <= 8.79 OR col4 > 6.60 AND (((col0 > 5) OR col3 < 6 AND col3 IS NULL AND col1 < 2.58)) AND (col0 <= 7) AND (col1 > 5.14)) OR (col1 > 8.99) AND col3 <= 6 AND (col3 IS NULL)) OR col4 >= 1.77 AND ((col3 < 1 OR col0 < 0 AND col0 < 1)) AND ((col3 IS NULL)) AND (col0 >= 0) AND (((col0 > 4)) OR (col4 = 3.30 AND col4 < 9.80)) AND (col4 < 1.87) OR col3 = 4 AND col3 <= 6 OR col0 >= 1 OR (col0 < 4 AND (((col0 >= 0))))))) OR col3 >= 4 AND col3 IS NULL OR (col4 IN (8.46,1.53,7.31)) OR col1 < 7.12
----

query I rowsort label-3495
SELECT pk FROM tab4 WHERE NOT (col3 > 1 AND (col3 >= 6 OR col3 > 5 OR (((col3 IS NULL) OR col0 = 4 AND col3 < 2 OR (((col1 IS NULL) OR col0 = 7 OR (col0 > 5) AND col3 > 0)) AND (((col1 = 4.20 AND (col3 IN (0,6,2,9,6,4)) OR col4 < 5.84))) AND ((col3 >= 7)) AND ((col1 IS NULL)) OR col0 < 9 OR col4 IS NULL AND (col0 > 9 AND (col4 <= 7.79) AND (col3 < 0) AND (((col0 > 6 OR (col3 = 2 OR ((col0 >= 8))) AND (col1 > 9.32) AND (col0 = 6 AND col0 IS NULL AND col0 > 6 AND col0 > 9 AND col3 IN (1,8,5,4,1,2) OR col0 >= 7 AND col1 < 9.65 AND col3 < 6 AND col3 <= 2 AND col4 = 4.96 OR (((((col0 < 1 AND col0 > 2 OR col0 <= 5) AND col0 <= 1 AND ((((((col0 <= 9) AND ((col0 > 5)) AND col4 <= 8.98) OR col3 = 0 OR (((((((col3 >= 0))))) AND (col1 = 5.67)))) OR col0 > 5)))) AND col3 > 3 AND col1 >= 7.36 OR col4 <= 7.94 AND (col4 > 2.38) OR col4 IS NULL AND col0 < 7)) OR col1 = 8.99)))))) OR ((col0 < 7)) AND ((col0 IS NULL OR col0 >= 7 AND col4 > 0.48 OR (col1 BETWEEN 2.12 AND 9.41) OR col4 <= 8.79 OR col4 > 6.60 AND (((col0 > 5) OR col3 < 6 AND col3 IS NULL AND col1 < 2.58)) AND (col0 <= 7) AND (col1 > 5.14)) OR (col1 > 8.99) AND col3 <= 6 AND (col3 IS NULL)) OR col4 >= 1.77 AND ((col3 < 1 OR col0 < 0 AND col0 < 1)) AND ((col3 IS NULL)) AND (col0 >= 0) AND (((col0 > 4)) OR (col4 = 3.30 AND col4 < 9.80)) AND (col4 < 1.87) OR col3 = 4 AND col3 <= 6 OR col0 >= 1 OR (col0 < 4 AND (((col0 >= 0))))))) OR col3 >= 4 AND col3 IS NULL OR (col4 IN (8.46,1.53,7.31)) OR col1 < 7.12)
----

statement ok
DROP TABLE tab0

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,9,9.59,'vlddd',4,8.32,'rcsls')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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 (col1,col0 DESC)

statement ok
CREATE INDEX idx_tab2_1 ON tab2 (col0 DESC,col4 DESC)

statement ok
CREATE INDEX idx_tab2_4 ON tab2 (col3,col1)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

statement ok
CREATE INDEX idx_tab3_0 ON tab3 (col1 DESC)

statement ok
CREATE INDEX idx_tab3_3 ON tab3 (col3)

statement ok
CREATE INDEX idx_tab3_5 ON tab3 (col4 DESC)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE UNIQUE INDEX idx_tab4_0 ON tab4 (col3,col0 DESC)

statement ok
CREATE INDEX idx_tab4_2 ON tab4 (col4 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab4_3 ON tab4 (col1)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE (col0 < 9)

query I rowsort label-empty
SELECT pk FROM tab0 WHERE (col0 < 9)
----

query I rowsort label-3510
SELECT pk FROM tab0 WHERE NOT ((col0 < 9))
----
0

statement ok
DELETE FROM tab1 WHERE (col0 < 9)

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (col0 < 9)
----

query I rowsort label-3510
SELECT pk FROM tab1 WHERE NOT ((col0 < 9))
----
0

statement ok
DELETE FROM tab2 WHERE (col0 < 9)

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (col0 < 9)
----

query I rowsort label-3510
SELECT pk FROM tab2 WHERE NOT ((col0 < 9))
----
0

statement ok
DELETE FROM tab3 WHERE (col0 < 9)

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (col0 < 9)
----

query I rowsort label-3510
SELECT pk FROM tab3 WHERE NOT ((col0 < 9))
----
0

statement ok
DELETE FROM tab4 WHERE (col0 < 9)

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (col0 < 9)
----

query I rowsort label-3510
SELECT pk FROM tab4 WHERE NOT ((col0 < 9))
----
0

statement ok
DELETE FROM tab0 WHERE ((((col0 >= 4 AND col0 <= 6 AND col3 > 8) OR col3 < 4 AND (col3 >= 1) AND col0 >= 6)))

query I rowsort label-empty
SELECT pk FROM tab0 WHERE ((((col0 >= 4 AND col0 <= 6 AND col3 > 8) OR col3 < 4 AND (col3 >= 1) AND col0 >= 6)))
----

query I rowsort label-3525
SELECT pk FROM tab0 WHERE NOT (((((col0 >= 4 AND col0 <= 6 AND col3 > 8) OR col3 < 4 AND (col3 >= 1) AND col0 >= 6))))
----
0

statement ok
DELETE FROM tab1 WHERE ((((col0 >= 4 AND col0 <= 6 AND col3 > 8) OR col3 < 4 AND (col3 >= 1) AND col0 >= 6)))

query I rowsort label-empty
SELECT pk FROM tab1 WHERE ((((col0 >= 4 AND col0 <= 6 AND col3 > 8) OR col3 < 4 AND (col3 >= 1) AND col0 >= 6)))
----

query I rowsort label-3525
SELECT pk FROM tab1 WHERE NOT (((((col0 >= 4 AND col0 <= 6 AND col3 > 8) OR col3 < 4 AND (col3 >= 1) AND col0 >= 6))))
----
0

statement ok
DELETE FROM tab2 WHERE ((((col0 >= 4 AND col0 <= 6 AND col3 > 8) OR col3 < 4 AND (col3 >= 1) AND col0 >= 6)))

query I rowsort label-empty
SELECT pk FROM tab2 WHERE ((((col0 >= 4 AND col0 <= 6 AND col3 > 8) OR col3 < 4 AND (col3 >= 1) AND col0 >= 6)))
----

query I rowsort label-3525
SELECT pk FROM tab2 WHERE NOT (((((col0 >= 4 AND col0 <= 6 AND col3 > 8) OR col3 < 4 AND (col3 >= 1) AND col0 >= 6))))
----
0

statement ok
DELETE FROM tab3 WHERE ((((col0 >= 4 AND col0 <= 6 AND col3 > 8) OR col3 < 4 AND (col3 >= 1) AND col0 >= 6)))

query I rowsort label-empty
SELECT pk FROM tab3 WHERE ((((col0 >= 4 AND col0 <= 6 AND col3 > 8) OR col3 < 4 AND (col3 >= 1) AND col0 >= 6)))
----

query I rowsort label-3525
SELECT pk FROM tab3 WHERE NOT (((((col0 >= 4 AND col0 <= 6 AND col3 > 8) OR col3 < 4 AND (col3 >= 1) AND col0 >= 6))))
----
0

statement ok
DELETE FROM tab4 WHERE ((((col0 >= 4 AND col0 <= 6 AND col3 > 8) OR col3 < 4 AND (col3 >= 1) AND col0 >= 6)))

query I rowsort label-empty
SELECT pk FROM tab4 WHERE ((((col0 >= 4 AND col0 <= 6 AND col3 > 8) OR col3 < 4 AND (col3 >= 1) AND col0 >= 6)))
----

query I rowsort label-3525
SELECT pk FROM tab4 WHERE NOT (((((col0 >= 4 AND col0 <= 6 AND col3 > 8) OR col3 < 4 AND (col3 >= 1) AND col0 >= 6))))
----
0

statement ok
DELETE FROM tab0 WHERE (((col1 >= 7.94) OR col0 <= 8))

query I rowsort label-empty
SELECT pk FROM tab0 WHERE (((col1 >= 7.94) OR col0 <= 8))
----

query I rowsort label-3540
SELECT pk FROM tab0 WHERE NOT ((((col1 >= 7.94) OR col0 <= 8)))
----

statement ok
DELETE FROM tab1 WHERE (((col1 >= 7.94) OR col0 <= 8))

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (((col1 >= 7.94) OR col0 <= 8))
----

query I rowsort label-3540
SELECT pk FROM tab1 WHERE NOT ((((col1 >= 7.94) OR col0 <= 8)))
----

statement ok
DELETE FROM tab2 WHERE (((col1 >= 7.94) OR col0 <= 8))

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (((col1 >= 7.94) OR col0 <= 8))
----

query I rowsort label-3540
SELECT pk FROM tab2 WHERE NOT ((((col1 >= 7.94) OR col0 <= 8)))
----

statement ok
DELETE FROM tab3 WHERE (((col1 >= 7.94) OR col0 <= 8))

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (((col1 >= 7.94) OR col0 <= 8))
----

query I rowsort label-3540
SELECT pk FROM tab3 WHERE NOT ((((col1 >= 7.94) OR col0 <= 8)))
----

statement ok
DELETE FROM tab4 WHERE (((col1 >= 7.94) OR col0 <= 8))

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (((col1 >= 7.94) OR col0 <= 8))
----

query I rowsort label-3540
SELECT pk FROM tab4 WHERE NOT ((((col1 >= 7.94) OR col0 <= 8)))
----

statement ok
DROP TABLE tab0

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,3,2.1,'acthn',2,1.75,'xogzy')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE INDEX idx_tab2_1 ON tab2 (col0,col3 DESC)

statement ok
CREATE INDEX idx_tab2_4 ON tab2 (col4)

statement ok
CREATE INDEX idx_tab2_5 ON tab2 (col0 DESC,col1 DESC)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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 (col0)

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

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE UNIQUE INDEX idx_tab4_0 ON tab4 (col4)

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

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE ((col3 IN (8,0,7,3,0)))

query I rowsort label-empty
SELECT pk FROM tab0 WHERE ((col3 IN (8,0,7,3,0)))
----

query I rowsort label-3555
SELECT pk FROM tab0 WHERE NOT (((col3 IN (8,0,7,3,0))))
----
0

statement ok
DELETE FROM tab1 WHERE ((col3 IN (8,0,7,3,0)))

query I rowsort label-empty
SELECT pk FROM tab1 WHERE ((col3 IN (8,0,7,3,0)))
----

query I rowsort label-3555
SELECT pk FROM tab1 WHERE NOT (((col3 IN (8,0,7,3,0))))
----
0

statement ok
DELETE FROM tab2 WHERE ((col3 IN (8,0,7,3,0)))

query I rowsort label-empty
SELECT pk FROM tab2 WHERE ((col3 IN (8,0,7,3,0)))
----

query I rowsort label-3555
SELECT pk FROM tab2 WHERE NOT (((col3 IN (8,0,7,3,0))))
----
0

statement ok
DELETE FROM tab3 WHERE ((col3 IN (8,0,7,3,0)))

query I rowsort label-empty
SELECT pk FROM tab3 WHERE ((col3 IN (8,0,7,3,0)))
----

query I rowsort label-3555
SELECT pk FROM tab3 WHERE NOT (((col3 IN (8,0,7,3,0))))
----
0

statement ok
DELETE FROM tab4 WHERE ((col3 IN (8,0,7,3,0)))

query I rowsort label-empty
SELECT pk FROM tab4 WHERE ((col3 IN (8,0,7,3,0)))
----

query I rowsort label-3555
SELECT pk FROM tab4 WHERE NOT (((col3 IN (8,0,7,3,0))))
----
0

statement ok
DELETE FROM tab0 WHERE (col4 >= 6.96)

query I rowsort label-empty
SELECT pk FROM tab0 WHERE (col4 >= 6.96)
----

query I rowsort label-3570
SELECT pk FROM tab0 WHERE NOT ((col4 >= 6.96))
----
0

statement ok
DELETE FROM tab1 WHERE (col4 >= 6.96)

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (col4 >= 6.96)
----

query I rowsort label-3570
SELECT pk FROM tab1 WHERE NOT ((col4 >= 6.96))
----
0

statement ok
DELETE FROM tab2 WHERE (col4 >= 6.96)

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (col4 >= 6.96)
----

query I rowsort label-3570
SELECT pk FROM tab2 WHERE NOT ((col4 >= 6.96))
----
0

statement ok
DELETE FROM tab3 WHERE (col4 >= 6.96)

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (col4 >= 6.96)
----

query I rowsort label-3570
SELECT pk FROM tab3 WHERE NOT ((col4 >= 6.96))
----
0

statement ok
DELETE FROM tab4 WHERE (col4 >= 6.96)

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (col4 >= 6.96)
----

query I rowsort label-3570
SELECT pk FROM tab4 WHERE NOT ((col4 >= 6.96))
----
0

statement ok
DROP TABLE tab0

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,4,2.73,'pkpah',6,3.39,'yjnna')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE UNIQUE INDEX idx_tab2_0 ON tab2 (col0 DESC)

statement ok
CREATE INDEX idx_tab2_2 ON tab2 (col1 DESC)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

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

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

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

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE INDEX idx_tab4_0 ON tab4 (col4 DESC,col3)

statement ok
CREATE UNIQUE INDEX idx_tab4_1 ON tab4 (col3 DESC,col4 DESC,col1)

statement ok
CREATE INDEX idx_tab4_2 ON tab4 (col1,col0)

statement ok
CREATE UNIQUE INDEX idx_tab4_3 ON tab4 (col1 DESC,col4 DESC)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE col0 > 9

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col0 > 9
----

query I rowsort label-3585
SELECT pk FROM tab0 WHERE NOT (col0 > 9)
----
0

statement ok
DELETE FROM tab1 WHERE col0 > 9

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col0 > 9
----

query I rowsort label-3585
SELECT pk FROM tab1 WHERE NOT (col0 > 9)
----
0

statement ok
DELETE FROM tab2 WHERE col0 > 9

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col0 > 9
----

query I rowsort label-3585
SELECT pk FROM tab2 WHERE NOT (col0 > 9)
----
0

statement ok
DELETE FROM tab3 WHERE col0 > 9

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col0 > 9
----

query I rowsort label-3585
SELECT pk FROM tab3 WHERE NOT (col0 > 9)
----
0

statement ok
DELETE FROM tab4 WHERE col0 > 9

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col0 > 9
----

query I rowsort label-3585
SELECT pk FROM tab4 WHERE NOT (col0 > 9)
----
0

statement ok
DELETE FROM tab0 WHERE col1 >= 2.80

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col1 >= 2.80
----

query I rowsort label-3600
SELECT pk FROM tab0 WHERE NOT (col1 >= 2.80)
----
0

statement ok
DELETE FROM tab1 WHERE col1 >= 2.80

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col1 >= 2.80
----

query I rowsort label-3600
SELECT pk FROM tab1 WHERE NOT (col1 >= 2.80)
----
0

statement ok
DELETE FROM tab2 WHERE col1 >= 2.80

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col1 >= 2.80
----

query I rowsort label-3600
SELECT pk FROM tab2 WHERE NOT (col1 >= 2.80)
----
0

statement ok
DELETE FROM tab3 WHERE col1 >= 2.80

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col1 >= 2.80
----

query I rowsort label-3600
SELECT pk FROM tab3 WHERE NOT (col1 >= 2.80)
----
0

statement ok
DELETE FROM tab4 WHERE col1 >= 2.80

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col1 >= 2.80
----

query I rowsort label-3600
SELECT pk FROM tab4 WHERE NOT (col1 >= 2.80)
----
0

statement ok
DELETE FROM tab0 WHERE (col0 <= 4 OR ((((col4 = 7.14 OR col3 < 2 OR col4 >= 2.23))) OR col0 >= 7 AND (col3 <= 0)))

query I rowsort label-empty
SELECT pk FROM tab0 WHERE (col0 <= 4 OR ((((col4 = 7.14 OR col3 < 2 OR col4 >= 2.23))) OR col0 >= 7 AND (col3 <= 0)))
----

query I rowsort label-3615
SELECT pk FROM tab0 WHERE NOT ((col0 <= 4 OR ((((col4 = 7.14 OR col3 < 2 OR col4 >= 2.23))) OR col0 >= 7 AND (col3 <= 0))))
----

statement ok
DELETE FROM tab1 WHERE (col0 <= 4 OR ((((col4 = 7.14 OR col3 < 2 OR col4 >= 2.23))) OR col0 >= 7 AND (col3 <= 0)))

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (col0 <= 4 OR ((((col4 = 7.14 OR col3 < 2 OR col4 >= 2.23))) OR col0 >= 7 AND (col3 <= 0)))
----

query I rowsort label-3615
SELECT pk FROM tab1 WHERE NOT ((col0 <= 4 OR ((((col4 = 7.14 OR col3 < 2 OR col4 >= 2.23))) OR col0 >= 7 AND (col3 <= 0))))
----

statement ok
DELETE FROM tab2 WHERE (col0 <= 4 OR ((((col4 = 7.14 OR col3 < 2 OR col4 >= 2.23))) OR col0 >= 7 AND (col3 <= 0)))

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (col0 <= 4 OR ((((col4 = 7.14 OR col3 < 2 OR col4 >= 2.23))) OR col0 >= 7 AND (col3 <= 0)))
----

query I rowsort label-3615
SELECT pk FROM tab2 WHERE NOT ((col0 <= 4 OR ((((col4 = 7.14 OR col3 < 2 OR col4 >= 2.23))) OR col0 >= 7 AND (col3 <= 0))))
----

statement ok
DELETE FROM tab3 WHERE (col0 <= 4 OR ((((col4 = 7.14 OR col3 < 2 OR col4 >= 2.23))) OR col0 >= 7 AND (col3 <= 0)))

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (col0 <= 4 OR ((((col4 = 7.14 OR col3 < 2 OR col4 >= 2.23))) OR col0 >= 7 AND (col3 <= 0)))
----

query I rowsort label-3615
SELECT pk FROM tab3 WHERE NOT ((col0 <= 4 OR ((((col4 = 7.14 OR col3 < 2 OR col4 >= 2.23))) OR col0 >= 7 AND (col3 <= 0))))
----

statement ok
DELETE FROM tab4 WHERE (col0 <= 4 OR ((((col4 = 7.14 OR col3 < 2 OR col4 >= 2.23))) OR col0 >= 7 AND (col3 <= 0)))

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (col0 <= 4 OR ((((col4 = 7.14 OR col3 < 2 OR col4 >= 2.23))) OR col0 >= 7 AND (col3 <= 0)))
----

query I rowsort label-3615
SELECT pk FROM tab4 WHERE NOT ((col0 <= 4 OR ((((col4 = 7.14 OR col3 < 2 OR col4 >= 2.23))) OR col0 >= 7 AND (col3 <= 0))))
----

statement ok
DROP TABLE tab0

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,0,7.65,'uzbvt',2,1.69,'sncdk')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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_1 ON tab2 (col0)

statement ok
CREATE UNIQUE INDEX idx_tab2_2 ON tab2 (col3 DESC)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

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

statement ok
CREATE UNIQUE INDEX idx_tab3_1 ON tab3 (col0,col4 DESC)

statement ok
CREATE INDEX idx_tab3_4 ON tab3 (col4 DESC)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE INDEX idx_tab4_0 ON tab4 (col4 DESC)

statement ok
CREATE INDEX idx_tab4_1 ON tab4 (col3)

statement ok
CREATE UNIQUE INDEX idx_tab4_2 ON tab4 (col1 DESC)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE col3 >= 7 OR col1 <= 3.57

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col3 >= 7 OR col1 <= 3.57
----

query I rowsort label-3630
SELECT pk FROM tab0 WHERE NOT (col3 >= 7 OR col1 <= 3.57)
----
0

statement ok
DELETE FROM tab1 WHERE col3 >= 7 OR col1 <= 3.57

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col3 >= 7 OR col1 <= 3.57
----

query I rowsort label-3630
SELECT pk FROM tab1 WHERE NOT (col3 >= 7 OR col1 <= 3.57)
----
0

statement ok
DELETE FROM tab2 WHERE col3 >= 7 OR col1 <= 3.57

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col3 >= 7 OR col1 <= 3.57
----

query I rowsort label-3630
SELECT pk FROM tab2 WHERE NOT (col3 >= 7 OR col1 <= 3.57)
----
0

statement ok
DELETE FROM tab3 WHERE col3 >= 7 OR col1 <= 3.57

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col3 >= 7 OR col1 <= 3.57
----

query I rowsort label-3630
SELECT pk FROM tab3 WHERE NOT (col3 >= 7 OR col1 <= 3.57)
----
0

statement ok
DELETE FROM tab4 WHERE col3 >= 7 OR col1 <= 3.57

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col3 >= 7 OR col1 <= 3.57
----

query I rowsort label-3630
SELECT pk FROM tab4 WHERE NOT (col3 >= 7 OR col1 <= 3.57)
----
0

statement ok
DELETE FROM tab0 WHERE ((col1 > 8.99))

query I rowsort label-empty
SELECT pk FROM tab0 WHERE ((col1 > 8.99))
----

query I rowsort label-3645
SELECT pk FROM tab0 WHERE NOT (((col1 > 8.99)))
----
0

statement ok
DELETE FROM tab1 WHERE ((col1 > 8.99))

query I rowsort label-empty
SELECT pk FROM tab1 WHERE ((col1 > 8.99))
----

query I rowsort label-3645
SELECT pk FROM tab1 WHERE NOT (((col1 > 8.99)))
----
0

statement ok
DELETE FROM tab2 WHERE ((col1 > 8.99))

query I rowsort label-empty
SELECT pk FROM tab2 WHERE ((col1 > 8.99))
----

query I rowsort label-3645
SELECT pk FROM tab2 WHERE NOT (((col1 > 8.99)))
----
0

statement ok
DELETE FROM tab3 WHERE ((col1 > 8.99))

query I rowsort label-empty
SELECT pk FROM tab3 WHERE ((col1 > 8.99))
----

query I rowsort label-3645
SELECT pk FROM tab3 WHERE NOT (((col1 > 8.99)))
----
0

statement ok
DELETE FROM tab4 WHERE ((col1 > 8.99))

query I rowsort label-empty
SELECT pk FROM tab4 WHERE ((col1 > 8.99))
----

query I rowsort label-3645
SELECT pk FROM tab4 WHERE NOT (((col1 > 8.99)))
----
0

statement ok
DELETE FROM tab0 WHERE ((col3 < 7)) AND col3 >= 9

query I rowsort label-empty
SELECT pk FROM tab0 WHERE ((col3 < 7)) AND col3 >= 9
----

query I rowsort label-3660
SELECT pk FROM tab0 WHERE NOT (((col3 < 7)) AND col3 >= 9)
----
0

statement ok
DELETE FROM tab1 WHERE ((col3 < 7)) AND col3 >= 9

query I rowsort label-empty
SELECT pk FROM tab1 WHERE ((col3 < 7)) AND col3 >= 9
----

query I rowsort label-3660
SELECT pk FROM tab1 WHERE NOT (((col3 < 7)) AND col3 >= 9)
----
0

statement ok
DELETE FROM tab2 WHERE ((col3 < 7)) AND col3 >= 9

query I rowsort label-empty
SELECT pk FROM tab2 WHERE ((col3 < 7)) AND col3 >= 9
----

query I rowsort label-3660
SELECT pk FROM tab2 WHERE NOT (((col3 < 7)) AND col3 >= 9)
----
0

statement ok
DELETE FROM tab3 WHERE ((col3 < 7)) AND col3 >= 9

query I rowsort label-empty
SELECT pk FROM tab3 WHERE ((col3 < 7)) AND col3 >= 9
----

query I rowsort label-3660
SELECT pk FROM tab3 WHERE NOT (((col3 < 7)) AND col3 >= 9)
----
0

statement ok
DELETE FROM tab4 WHERE ((col3 < 7)) AND col3 >= 9

query I rowsort label-empty
SELECT pk FROM tab4 WHERE ((col3 < 7)) AND col3 >= 9
----

query I rowsort label-3660
SELECT pk FROM tab4 WHERE NOT (((col3 < 7)) AND col3 >= 9)
----
0

statement ok
DELETE FROM tab0 WHERE ((col0 >= 6 AND col1 >= 2.79 AND col0 >= 9)) OR col4 < 0.50 AND col1 < 2.39 OR ((col0 = 5))

query I rowsort label-empty
SELECT pk FROM tab0 WHERE ((col0 >= 6 AND col1 >= 2.79 AND col0 >= 9)) OR col4 < 0.50 AND col1 < 2.39 OR ((col0 = 5))
----

query I rowsort label-3675
SELECT pk FROM tab0 WHERE NOT (((col0 >= 6 AND col1 >= 2.79 AND col0 >= 9)) OR col4 < 0.50 AND col1 < 2.39 OR ((col0 = 5)))
----
0

statement ok
DELETE FROM tab1 WHERE ((col0 >= 6 AND col1 >= 2.79 AND col0 >= 9)) OR col4 < 0.50 AND col1 < 2.39 OR ((col0 = 5))

query I rowsort label-empty
SELECT pk FROM tab1 WHERE ((col0 >= 6 AND col1 >= 2.79 AND col0 >= 9)) OR col4 < 0.50 AND col1 < 2.39 OR ((col0 = 5))
----

query I rowsort label-3675
SELECT pk FROM tab1 WHERE NOT (((col0 >= 6 AND col1 >= 2.79 AND col0 >= 9)) OR col4 < 0.50 AND col1 < 2.39 OR ((col0 = 5)))
----
0

statement ok
DELETE FROM tab2 WHERE ((col0 >= 6 AND col1 >= 2.79 AND col0 >= 9)) OR col4 < 0.50 AND col1 < 2.39 OR ((col0 = 5))

query I rowsort label-empty
SELECT pk FROM tab2 WHERE ((col0 >= 6 AND col1 >= 2.79 AND col0 >= 9)) OR col4 < 0.50 AND col1 < 2.39 OR ((col0 = 5))
----

query I rowsort label-3675
SELECT pk FROM tab2 WHERE NOT (((col0 >= 6 AND col1 >= 2.79 AND col0 >= 9)) OR col4 < 0.50 AND col1 < 2.39 OR ((col0 = 5)))
----
0

statement ok
DELETE FROM tab3 WHERE ((col0 >= 6 AND col1 >= 2.79 AND col0 >= 9)) OR col4 < 0.50 AND col1 < 2.39 OR ((col0 = 5))

query I rowsort label-empty
SELECT pk FROM tab3 WHERE ((col0 >= 6 AND col1 >= 2.79 AND col0 >= 9)) OR col4 < 0.50 AND col1 < 2.39 OR ((col0 = 5))
----

query I rowsort label-3675
SELECT pk FROM tab3 WHERE NOT (((col0 >= 6 AND col1 >= 2.79 AND col0 >= 9)) OR col4 < 0.50 AND col1 < 2.39 OR ((col0 = 5)))
----
0

statement ok
DELETE FROM tab4 WHERE ((col0 >= 6 AND col1 >= 2.79 AND col0 >= 9)) OR col4 < 0.50 AND col1 < 2.39 OR ((col0 = 5))

query I rowsort label-empty
SELECT pk FROM tab4 WHERE ((col0 >= 6 AND col1 >= 2.79 AND col0 >= 9)) OR col4 < 0.50 AND col1 < 2.39 OR ((col0 = 5))
----

query I rowsort label-3675
SELECT pk FROM tab4 WHERE NOT (((col0 >= 6 AND col1 >= 2.79 AND col0 >= 9)) OR col4 < 0.50 AND col1 < 2.39 OR ((col0 = 5)))
----
0

statement ok
DELETE FROM tab0 WHERE col3 > 6 OR (col1 > 5.72)

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col3 > 6 OR (col1 > 5.72)
----

query I rowsort label-3690
SELECT pk FROM tab0 WHERE NOT (col3 > 6 OR (col1 > 5.72))
----

statement ok
DELETE FROM tab1 WHERE col3 > 6 OR (col1 > 5.72)

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col3 > 6 OR (col1 > 5.72)
----

query I rowsort label-3690
SELECT pk FROM tab1 WHERE NOT (col3 > 6 OR (col1 > 5.72))
----

statement ok
DELETE FROM tab2 WHERE col3 > 6 OR (col1 > 5.72)

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col3 > 6 OR (col1 > 5.72)
----

query I rowsort label-3690
SELECT pk FROM tab2 WHERE NOT (col3 > 6 OR (col1 > 5.72))
----

statement ok
DELETE FROM tab3 WHERE col3 > 6 OR (col1 > 5.72)

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col3 > 6 OR (col1 > 5.72)
----

query I rowsort label-3690
SELECT pk FROM tab3 WHERE NOT (col3 > 6 OR (col1 > 5.72))
----

statement ok
DELETE FROM tab4 WHERE col3 > 6 OR (col1 > 5.72)

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col3 > 6 OR (col1 > 5.72)
----

query I rowsort label-3690
SELECT pk FROM tab4 WHERE NOT (col3 > 6 OR (col1 > 5.72))
----

statement ok
DROP TABLE tab0

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,4,7.23,'jiqsn',8,1.37,'lesyr')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE UNIQUE INDEX idx_tab2_0 ON tab2 (col1 DESC,col0)

statement ok
CREATE INDEX idx_tab2_1 ON tab2 (col1,col3)

statement ok
CREATE UNIQUE INDEX idx_tab2_3 ON tab2 (col4 DESC,col0)

statement ok
CREATE INDEX idx_tab2_4 ON tab2 (col3 DESC,col1)

statement ok
CREATE UNIQUE INDEX idx_tab2_5 ON tab2 (col1 DESC,col4 DESC)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

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

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

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE INDEX idx_tab4_0 ON tab4 (col3 DESC,col4)

statement ok
CREATE INDEX idx_tab4_1 ON tab4 (col0)

statement ok
CREATE UNIQUE INDEX idx_tab4_4 ON tab4 (col1,col4)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE col0 >= 1 AND col3 = 3

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col0 >= 1 AND col3 = 3
----

query I rowsort label-3705
SELECT pk FROM tab0 WHERE NOT (col0 >= 1 AND col3 = 3)
----
0

statement ok
DELETE FROM tab1 WHERE col0 >= 1 AND col3 = 3

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col0 >= 1 AND col3 = 3
----

query I rowsort label-3705
SELECT pk FROM tab1 WHERE NOT (col0 >= 1 AND col3 = 3)
----
0

statement ok
DELETE FROM tab2 WHERE col0 >= 1 AND col3 = 3

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col0 >= 1 AND col3 = 3
----

query I rowsort label-3705
SELECT pk FROM tab2 WHERE NOT (col0 >= 1 AND col3 = 3)
----
0

statement ok
DELETE FROM tab3 WHERE col0 >= 1 AND col3 = 3

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col0 >= 1 AND col3 = 3
----

query I rowsort label-3705
SELECT pk FROM tab3 WHERE NOT (col0 >= 1 AND col3 = 3)
----
0

statement ok
DELETE FROM tab4 WHERE col0 >= 1 AND col3 = 3

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col0 >= 1 AND col3 = 3
----

query I rowsort label-3705
SELECT pk FROM tab4 WHERE NOT (col0 >= 1 AND col3 = 3)
----
0

statement ok
DELETE FROM tab0 WHERE col1 < 0.92

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col1 < 0.92
----

query I rowsort label-3720
SELECT pk FROM tab0 WHERE NOT (col1 < 0.92)
----
0

statement ok
DELETE FROM tab1 WHERE col1 < 0.92

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col1 < 0.92
----

query I rowsort label-3720
SELECT pk FROM tab1 WHERE NOT (col1 < 0.92)
----
0

statement ok
DELETE FROM tab2 WHERE col1 < 0.92

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col1 < 0.92
----

query I rowsort label-3720
SELECT pk FROM tab2 WHERE NOT (col1 < 0.92)
----
0

statement ok
DELETE FROM tab3 WHERE col1 < 0.92

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col1 < 0.92
----

query I rowsort label-3720
SELECT pk FROM tab3 WHERE NOT (col1 < 0.92)
----
0

statement ok
DELETE FROM tab4 WHERE col1 < 0.92

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col1 < 0.92
----

query I rowsort label-3720
SELECT pk FROM tab4 WHERE NOT (col1 < 0.92)
----
0

statement ok
DELETE FROM tab0 WHERE ((((((((((col4 <= 3.96))))))))) OR (col4 < 1.69 AND col0 IS NULL AND (col1 <= 9.65) OR col1 = 2.31 AND (col0 <= 7)))

query I rowsort label-empty
SELECT pk FROM tab0 WHERE ((((((((((col4 <= 3.96))))))))) OR (col4 < 1.69 AND col0 IS NULL AND (col1 <= 9.65) OR col1 = 2.31 AND (col0 <= 7)))
----

query I rowsort label-3735
SELECT pk FROM tab0 WHERE NOT (((((((((((col4 <= 3.96))))))))) OR (col4 < 1.69 AND col0 IS NULL AND (col1 <= 9.65) OR col1 = 2.31 AND (col0 <= 7))))
----

statement ok
DELETE FROM tab1 WHERE ((((((((((col4 <= 3.96))))))))) OR (col4 < 1.69 AND col0 IS NULL AND (col1 <= 9.65) OR col1 = 2.31 AND (col0 <= 7)))

query I rowsort label-empty
SELECT pk FROM tab1 WHERE ((((((((((col4 <= 3.96))))))))) OR (col4 < 1.69 AND col0 IS NULL AND (col1 <= 9.65) OR col1 = 2.31 AND (col0 <= 7)))
----

query I rowsort label-3735
SELECT pk FROM tab1 WHERE NOT (((((((((((col4 <= 3.96))))))))) OR (col4 < 1.69 AND col0 IS NULL AND (col1 <= 9.65) OR col1 = 2.31 AND (col0 <= 7))))
----

statement ok
DELETE FROM tab2 WHERE ((((((((((col4 <= 3.96))))))))) OR (col4 < 1.69 AND col0 IS NULL AND (col1 <= 9.65) OR col1 = 2.31 AND (col0 <= 7)))

query I rowsort label-empty
SELECT pk FROM tab2 WHERE ((((((((((col4 <= 3.96))))))))) OR (col4 < 1.69 AND col0 IS NULL AND (col1 <= 9.65) OR col1 = 2.31 AND (col0 <= 7)))
----

query I rowsort label-3735
SELECT pk FROM tab2 WHERE NOT (((((((((((col4 <= 3.96))))))))) OR (col4 < 1.69 AND col0 IS NULL AND (col1 <= 9.65) OR col1 = 2.31 AND (col0 <= 7))))
----

statement ok
DELETE FROM tab3 WHERE ((((((((((col4 <= 3.96))))))))) OR (col4 < 1.69 AND col0 IS NULL AND (col1 <= 9.65) OR col1 = 2.31 AND (col0 <= 7)))

query I rowsort label-empty
SELECT pk FROM tab3 WHERE ((((((((((col4 <= 3.96))))))))) OR (col4 < 1.69 AND col0 IS NULL AND (col1 <= 9.65) OR col1 = 2.31 AND (col0 <= 7)))
----

query I rowsort label-3735
SELECT pk FROM tab3 WHERE NOT (((((((((((col4 <= 3.96))))))))) OR (col4 < 1.69 AND col0 IS NULL AND (col1 <= 9.65) OR col1 = 2.31 AND (col0 <= 7))))
----

statement ok
DELETE FROM tab4 WHERE ((((((((((col4 <= 3.96))))))))) OR (col4 < 1.69 AND col0 IS NULL AND (col1 <= 9.65) OR col1 = 2.31 AND (col0 <= 7)))

query I rowsort label-empty
SELECT pk FROM tab4 WHERE ((((((((((col4 <= 3.96))))))))) OR (col4 < 1.69 AND col0 IS NULL AND (col1 <= 9.65) OR col1 = 2.31 AND (col0 <= 7)))
----

query I rowsort label-3735
SELECT pk FROM tab4 WHERE NOT (((((((((((col4 <= 3.96))))))))) OR (col4 < 1.69 AND col0 IS NULL AND (col1 <= 9.65) OR col1 = 2.31 AND (col0 <= 7))))
----

statement ok
DROP TABLE tab0

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,3,1.14,'twmsf',6,7.29,'nuluy')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE INDEX idx_tab2_0 ON tab2 (col3 DESC,col1 DESC)

statement ok
CREATE INDEX idx_tab2_1 ON tab2 (col4 DESC)

statement ok
CREATE INDEX idx_tab2_2 ON tab2 (col1)

statement ok
CREATE UNIQUE INDEX idx_tab2_5 ON tab2 (col0 DESC)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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 (col0)

statement ok
CREATE INDEX idx_tab3_1 ON tab3 (col1 DESC)

statement ok
CREATE INDEX idx_tab3_2 ON tab3 (col3)

statement ok
CREATE INDEX idx_tab3_5 ON tab3 (col4 DESC)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE UNIQUE INDEX idx_tab4_0 ON tab4 (col4)

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

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE col1 IN (0.10)

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col1 IN (0.10)
----

query I rowsort label-3750
SELECT pk FROM tab0 WHERE NOT (col1 IN (0.10))
----
0

statement ok
DELETE FROM tab1 WHERE col1 IN (0.10)

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col1 IN (0.10)
----

query I rowsort label-3750
SELECT pk FROM tab1 WHERE NOT (col1 IN (0.10))
----
0

statement ok
DELETE FROM tab2 WHERE col1 IN (0.10)

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col1 IN (0.10)
----

query I rowsort label-3750
SELECT pk FROM tab2 WHERE NOT (col1 IN (0.10))
----
0

statement ok
DELETE FROM tab3 WHERE col1 IN (0.10)

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col1 IN (0.10)
----

query I rowsort label-3750
SELECT pk FROM tab3 WHERE NOT (col1 IN (0.10))
----
0

statement ok
DELETE FROM tab4 WHERE col1 IN (0.10)

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col1 IN (0.10)
----

query I rowsort label-3750
SELECT pk FROM tab4 WHERE NOT (col1 IN (0.10))
----
0

statement ok
DELETE FROM tab0 WHERE (col0 >= 1) AND (((col3 <= 7)))

query I rowsort label-empty
SELECT pk FROM tab0 WHERE (col0 >= 1) AND (((col3 <= 7)))
----

query I rowsort label-3765
SELECT pk FROM tab0 WHERE NOT ((col0 >= 1) AND (((col3 <= 7))))
----

statement ok
DELETE FROM tab1 WHERE (col0 >= 1) AND (((col3 <= 7)))

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (col0 >= 1) AND (((col3 <= 7)))
----

query I rowsort label-3765
SELECT pk FROM tab1 WHERE NOT ((col0 >= 1) AND (((col3 <= 7))))
----

statement ok
DELETE FROM tab2 WHERE (col0 >= 1) AND (((col3 <= 7)))

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (col0 >= 1) AND (((col3 <= 7)))
----

query I rowsort label-3765
SELECT pk FROM tab2 WHERE NOT ((col0 >= 1) AND (((col3 <= 7))))
----

statement ok
DELETE FROM tab3 WHERE (col0 >= 1) AND (((col3 <= 7)))

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (col0 >= 1) AND (((col3 <= 7)))
----

query I rowsort label-3765
SELECT pk FROM tab3 WHERE NOT ((col0 >= 1) AND (((col3 <= 7))))
----

statement ok
DELETE FROM tab4 WHERE (col0 >= 1) AND (((col3 <= 7)))

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (col0 >= 1) AND (((col3 <= 7)))
----

query I rowsort label-3765
SELECT pk FROM tab4 WHERE NOT ((col0 >= 1) AND (((col3 <= 7))))
----

statement ok
DROP TABLE tab0

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,0,3.26,'ejtdt',7,7.92,'fvsgu')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE UNIQUE INDEX idx_tab2_0 ON tab2 (col0 DESC,col1 DESC)

statement ok
CREATE INDEX idx_tab2_1 ON tab2 (col1)

statement ok
CREATE UNIQUE INDEX idx_tab2_3 ON tab2 (col4 DESC,col3)

statement ok
CREATE UNIQUE INDEX idx_tab2_4 ON tab2 (col4,col0)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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_2 ON tab3 (col1 DESC)

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

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE INDEX idx_tab4_0 ON tab4 (col0)

statement ok
CREATE INDEX idx_tab4_2 ON tab4 (col3 DESC)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE (col0 < 5)

query I rowsort label-empty
SELECT pk FROM tab0 WHERE (col0 < 5)
----

query I rowsort label-3780
SELECT pk FROM tab0 WHERE NOT ((col0 < 5))
----

statement ok
DELETE FROM tab1 WHERE (col0 < 5)

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (col0 < 5)
----

query I rowsort label-3780
SELECT pk FROM tab1 WHERE NOT ((col0 < 5))
----

statement ok
DELETE FROM tab2 WHERE (col0 < 5)

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (col0 < 5)
----

query I rowsort label-3780
SELECT pk FROM tab2 WHERE NOT ((col0 < 5))
----

statement ok
DELETE FROM tab3 WHERE (col0 < 5)

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (col0 < 5)
----

query I rowsort label-3780
SELECT pk FROM tab3 WHERE NOT ((col0 < 5))
----

statement ok
DELETE FROM tab4 WHERE (col0 < 5)

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (col0 < 5)
----

query I rowsort label-3780
SELECT pk FROM tab4 WHERE NOT ((col0 < 5))
----

statement ok
DROP TABLE tab0

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,2,2.87,'kaaug',0,5.29,'subrz')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE UNIQUE INDEX idx_tab2_0 ON tab2 (col3 DESC,col0)

statement ok
CREATE UNIQUE INDEX idx_tab2_1 ON tab2 (col0)

statement ok
CREATE UNIQUE INDEX idx_tab2_2 ON tab2 (col1,col3)

statement ok
CREATE UNIQUE INDEX idx_tab2_4 ON tab2 (col4)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

statement ok
CREATE INDEX idx_tab3_4 ON tab3 (col3)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE INDEX idx_tab4_0 ON tab4 (col4 DESC)

statement ok
CREATE INDEX idx_tab4_2 ON tab4 (col0 DESC)

statement ok
CREATE INDEX idx_tab4_3 ON tab4 (col1 DESC,col3 DESC)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE ((((col3 > 6 AND (col3 IS NULL)) AND col3 = 0) OR col0 > 6 OR ((col3 < 1))))

query I rowsort label-empty
SELECT pk FROM tab0 WHERE ((((col3 > 6 AND (col3 IS NULL)) AND col3 = 0) OR col0 > 6 OR ((col3 < 1))))
----

query I rowsort label-3795
SELECT pk FROM tab0 WHERE NOT (((((col3 > 6 AND (col3 IS NULL)) AND col3 = 0) OR col0 > 6 OR ((col3 < 1)))))
----

statement ok
DELETE FROM tab1 WHERE ((((col3 > 6 AND (col3 IS NULL)) AND col3 = 0) OR col0 > 6 OR ((col3 < 1))))

query I rowsort label-empty
SELECT pk FROM tab1 WHERE ((((col3 > 6 AND (col3 IS NULL)) AND col3 = 0) OR col0 > 6 OR ((col3 < 1))))
----

query I rowsort label-3795
SELECT pk FROM tab1 WHERE NOT (((((col3 > 6 AND (col3 IS NULL)) AND col3 = 0) OR col0 > 6 OR ((col3 < 1)))))
----

statement ok
DELETE FROM tab2 WHERE ((((col3 > 6 AND (col3 IS NULL)) AND col3 = 0) OR col0 > 6 OR ((col3 < 1))))

query I rowsort label-empty
SELECT pk FROM tab2 WHERE ((((col3 > 6 AND (col3 IS NULL)) AND col3 = 0) OR col0 > 6 OR ((col3 < 1))))
----

query I rowsort label-3795
SELECT pk FROM tab2 WHERE NOT (((((col3 > 6 AND (col3 IS NULL)) AND col3 = 0) OR col0 > 6 OR ((col3 < 1)))))
----

statement ok
DELETE FROM tab3 WHERE ((((col3 > 6 AND (col3 IS NULL)) AND col3 = 0) OR col0 > 6 OR ((col3 < 1))))

query I rowsort label-empty
SELECT pk FROM tab3 WHERE ((((col3 > 6 AND (col3 IS NULL)) AND col3 = 0) OR col0 > 6 OR ((col3 < 1))))
----

query I rowsort label-3795
SELECT pk FROM tab3 WHERE NOT (((((col3 > 6 AND (col3 IS NULL)) AND col3 = 0) OR col0 > 6 OR ((col3 < 1)))))
----

statement ok
DELETE FROM tab4 WHERE ((((col3 > 6 AND (col3 IS NULL)) AND col3 = 0) OR col0 > 6 OR ((col3 < 1))))

query I rowsort label-empty
SELECT pk FROM tab4 WHERE ((((col3 > 6 AND (col3 IS NULL)) AND col3 = 0) OR col0 > 6 OR ((col3 < 1))))
----

query I rowsort label-3795
SELECT pk FROM tab4 WHERE NOT (((((col3 > 6 AND (col3 IS NULL)) AND col3 = 0) OR col0 > 6 OR ((col3 < 1)))))
----

statement ok
DROP TABLE tab0

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,3,3.40,'nfgkb',4,0.79,'obmqg')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE UNIQUE INDEX idx_tab2_0 ON tab2 (col4,col0 DESC,col1)

statement ok
CREATE UNIQUE INDEX idx_tab2_1 ON tab2 (col4 DESC,col3 DESC,col0 DESC)

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

statement ok
CREATE INDEX idx_tab2_4 ON tab2 (col1 DESC)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

statement ok
CREATE INDEX idx_tab3_0 ON tab3 (col3)

statement ok
CREATE INDEX idx_tab3_1 ON tab3 (col1)

statement ok
CREATE INDEX idx_tab3_2 ON tab3 (col0 DESC)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE INDEX idx_tab4_0 ON tab4 (col3)

statement ok
CREATE INDEX idx_tab4_1 ON tab4 (col4 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab4_3 ON tab4 (col1)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE (((col0 <= 0)) OR (col4 >= 9.17) OR col0 = 0 AND col1 IS NULL OR col1 > 6.94 AND col0 <= 5 OR ((((col3 > 0) OR (col3 < 4 AND (col3 > 7 AND col3 >= 2 AND col0 BETWEEN 9 AND 3 OR col0 >= 0 AND (col0 >= 6) OR col4 >= 9.32 AND col0 <= 4 OR col1 > 4.55 AND (((col3 < 1 OR ((col0 >= 5))))) OR col0 < 8) AND ((col3 = 0 OR col3 > 7)))) OR col0 = 7)))

query I rowsort label-empty
SELECT pk FROM tab0 WHERE (((col0 <= 0)) OR (col4 >= 9.17) OR col0 = 0 AND col1 IS NULL OR col1 > 6.94 AND col0 <= 5 OR ((((col3 > 0) OR (col3 < 4 AND (col3 > 7 AND col3 >= 2 AND col0 BETWEEN 9 AND 3 OR col0 >= 0 AND (col0 >= 6) OR col4 >= 9.32 AND col0 <= 4 OR col1 > 4.55 AND (((col3 < 1 OR ((col0 >= 5))))) OR col0 < 8) AND ((col3 = 0 OR col3 > 7)))) OR col0 = 7)))
----

query I rowsort label-3810
SELECT pk FROM tab0 WHERE NOT ((((col0 <= 0)) OR (col4 >= 9.17) OR col0 = 0 AND col1 IS NULL OR col1 > 6.94 AND col0 <= 5 OR ((((col3 > 0) OR (col3 < 4 AND (col3 > 7 AND col3 >= 2 AND col0 BETWEEN 9 AND 3 OR col0 >= 0 AND (col0 >= 6) OR col4 >= 9.32 AND col0 <= 4 OR col1 > 4.55 AND (((col3 < 1 OR ((col0 >= 5))))) OR col0 < 8) AND ((col3 = 0 OR col3 > 7)))) OR col0 = 7))))
----

statement ok
DELETE FROM tab1 WHERE (((col0 <= 0)) OR (col4 >= 9.17) OR col0 = 0 AND col1 IS NULL OR col1 > 6.94 AND col0 <= 5 OR ((((col3 > 0) OR (col3 < 4 AND (col3 > 7 AND col3 >= 2 AND col0 BETWEEN 9 AND 3 OR col0 >= 0 AND (col0 >= 6) OR col4 >= 9.32 AND col0 <= 4 OR col1 > 4.55 AND (((col3 < 1 OR ((col0 >= 5))))) OR col0 < 8) AND ((col3 = 0 OR col3 > 7)))) OR col0 = 7)))

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (((col0 <= 0)) OR (col4 >= 9.17) OR col0 = 0 AND col1 IS NULL OR col1 > 6.94 AND col0 <= 5 OR ((((col3 > 0) OR (col3 < 4 AND (col3 > 7 AND col3 >= 2 AND col0 BETWEEN 9 AND 3 OR col0 >= 0 AND (col0 >= 6) OR col4 >= 9.32 AND col0 <= 4 OR col1 > 4.55 AND (((col3 < 1 OR ((col0 >= 5))))) OR col0 < 8) AND ((col3 = 0 OR col3 > 7)))) OR col0 = 7)))
----

query I rowsort label-3810
SELECT pk FROM tab1 WHERE NOT ((((col0 <= 0)) OR (col4 >= 9.17) OR col0 = 0 AND col1 IS NULL OR col1 > 6.94 AND col0 <= 5 OR ((((col3 > 0) OR (col3 < 4 AND (col3 > 7 AND col3 >= 2 AND col0 BETWEEN 9 AND 3 OR col0 >= 0 AND (col0 >= 6) OR col4 >= 9.32 AND col0 <= 4 OR col1 > 4.55 AND (((col3 < 1 OR ((col0 >= 5))))) OR col0 < 8) AND ((col3 = 0 OR col3 > 7)))) OR col0 = 7))))
----

statement ok
DELETE FROM tab2 WHERE (((col0 <= 0)) OR (col4 >= 9.17) OR col0 = 0 AND col1 IS NULL OR col1 > 6.94 AND col0 <= 5 OR ((((col3 > 0) OR (col3 < 4 AND (col3 > 7 AND col3 >= 2 AND col0 BETWEEN 9 AND 3 OR col0 >= 0 AND (col0 >= 6) OR col4 >= 9.32 AND col0 <= 4 OR col1 > 4.55 AND (((col3 < 1 OR ((col0 >= 5))))) OR col0 < 8) AND ((col3 = 0 OR col3 > 7)))) OR col0 = 7)))

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (((col0 <= 0)) OR (col4 >= 9.17) OR col0 = 0 AND col1 IS NULL OR col1 > 6.94 AND col0 <= 5 OR ((((col3 > 0) OR (col3 < 4 AND (col3 > 7 AND col3 >= 2 AND col0 BETWEEN 9 AND 3 OR col0 >= 0 AND (col0 >= 6) OR col4 >= 9.32 AND col0 <= 4 OR col1 > 4.55 AND (((col3 < 1 OR ((col0 >= 5))))) OR col0 < 8) AND ((col3 = 0 OR col3 > 7)))) OR col0 = 7)))
----

query I rowsort label-3810
SELECT pk FROM tab2 WHERE NOT ((((col0 <= 0)) OR (col4 >= 9.17) OR col0 = 0 AND col1 IS NULL OR col1 > 6.94 AND col0 <= 5 OR ((((col3 > 0) OR (col3 < 4 AND (col3 > 7 AND col3 >= 2 AND col0 BETWEEN 9 AND 3 OR col0 >= 0 AND (col0 >= 6) OR col4 >= 9.32 AND col0 <= 4 OR col1 > 4.55 AND (((col3 < 1 OR ((col0 >= 5))))) OR col0 < 8) AND ((col3 = 0 OR col3 > 7)))) OR col0 = 7))))
----

statement ok
DELETE FROM tab3 WHERE (((col0 <= 0)) OR (col4 >= 9.17) OR col0 = 0 AND col1 IS NULL OR col1 > 6.94 AND col0 <= 5 OR ((((col3 > 0) OR (col3 < 4 AND (col3 > 7 AND col3 >= 2 AND col0 BETWEEN 9 AND 3 OR col0 >= 0 AND (col0 >= 6) OR col4 >= 9.32 AND col0 <= 4 OR col1 > 4.55 AND (((col3 < 1 OR ((col0 >= 5))))) OR col0 < 8) AND ((col3 = 0 OR col3 > 7)))) OR col0 = 7)))

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (((col0 <= 0)) OR (col4 >= 9.17) OR col0 = 0 AND col1 IS NULL OR col1 > 6.94 AND col0 <= 5 OR ((((col3 > 0) OR (col3 < 4 AND (col3 > 7 AND col3 >= 2 AND col0 BETWEEN 9 AND 3 OR col0 >= 0 AND (col0 >= 6) OR col4 >= 9.32 AND col0 <= 4 OR col1 > 4.55 AND (((col3 < 1 OR ((col0 >= 5))))) OR col0 < 8) AND ((col3 = 0 OR col3 > 7)))) OR col0 = 7)))
----

query I rowsort label-3810
SELECT pk FROM tab3 WHERE NOT ((((col0 <= 0)) OR (col4 >= 9.17) OR col0 = 0 AND col1 IS NULL OR col1 > 6.94 AND col0 <= 5 OR ((((col3 > 0) OR (col3 < 4 AND (col3 > 7 AND col3 >= 2 AND col0 BETWEEN 9 AND 3 OR col0 >= 0 AND (col0 >= 6) OR col4 >= 9.32 AND col0 <= 4 OR col1 > 4.55 AND (((col3 < 1 OR ((col0 >= 5))))) OR col0 < 8) AND ((col3 = 0 OR col3 > 7)))) OR col0 = 7))))
----

statement ok
DELETE FROM tab4 WHERE (((col0 <= 0)) OR (col4 >= 9.17) OR col0 = 0 AND col1 IS NULL OR col1 > 6.94 AND col0 <= 5 OR ((((col3 > 0) OR (col3 < 4 AND (col3 > 7 AND col3 >= 2 AND col0 BETWEEN 9 AND 3 OR col0 >= 0 AND (col0 >= 6) OR col4 >= 9.32 AND col0 <= 4 OR col1 > 4.55 AND (((col3 < 1 OR ((col0 >= 5))))) OR col0 < 8) AND ((col3 = 0 OR col3 > 7)))) OR col0 = 7)))

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (((col0 <= 0)) OR (col4 >= 9.17) OR col0 = 0 AND col1 IS NULL OR col1 > 6.94 AND col0 <= 5 OR ((((col3 > 0) OR (col3 < 4 AND (col3 > 7 AND col3 >= 2 AND col0 BETWEEN 9 AND 3 OR col0 >= 0 AND (col0 >= 6) OR col4 >= 9.32 AND col0 <= 4 OR col1 > 4.55 AND (((col3 < 1 OR ((col0 >= 5))))) OR col0 < 8) AND ((col3 = 0 OR col3 > 7)))) OR col0 = 7)))
----

query I rowsort label-3810
SELECT pk FROM tab4 WHERE NOT ((((col0 <= 0)) OR (col4 >= 9.17) OR col0 = 0 AND col1 IS NULL OR col1 > 6.94 AND col0 <= 5 OR ((((col3 > 0) OR (col3 < 4 AND (col3 > 7 AND col3 >= 2 AND col0 BETWEEN 9 AND 3 OR col0 >= 0 AND (col0 >= 6) OR col4 >= 9.32 AND col0 <= 4 OR col1 > 4.55 AND (((col3 < 1 OR ((col0 >= 5))))) OR col0 < 8) AND ((col3 = 0 OR col3 > 7)))) OR col0 = 7))))
----

statement ok
DROP TABLE tab0

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,4,6.72,'hahkm',2,5.61,'fsnwm')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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,col3 DESC)

statement ok
CREATE INDEX idx_tab2_1 ON tab2 (col1)

statement ok
CREATE UNIQUE INDEX idx_tab2_4 ON tab2 (col4 DESC,col0)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

statement ok
CREATE INDEX idx_tab3_0 ON tab3 (col1)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE INDEX idx_tab4_0 ON tab4 (col1)

statement ok
CREATE UNIQUE INDEX idx_tab4_2 ON tab4 (col3,col0)

statement ok
CREATE UNIQUE INDEX idx_tab4_3 ON tab4 (col4,col0 DESC)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE (col3 <= 8)

query I rowsort label-empty
SELECT pk FROM tab0 WHERE (col3 <= 8)
----

query I rowsort label-3825
SELECT pk FROM tab0 WHERE NOT ((col3 <= 8))
----

statement ok
DELETE FROM tab1 WHERE (col3 <= 8)

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (col3 <= 8)
----

query I rowsort label-3825
SELECT pk FROM tab1 WHERE NOT ((col3 <= 8))
----

statement ok
DELETE FROM tab2 WHERE (col3 <= 8)

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (col3 <= 8)
----

query I rowsort label-3825
SELECT pk FROM tab2 WHERE NOT ((col3 <= 8))
----

statement ok
DELETE FROM tab3 WHERE (col3 <= 8)

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (col3 <= 8)
----

query I rowsort label-3825
SELECT pk FROM tab3 WHERE NOT ((col3 <= 8))
----

statement ok
DELETE FROM tab4 WHERE (col3 <= 8)

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (col3 <= 8)
----

query I rowsort label-3825
SELECT pk FROM tab4 WHERE NOT ((col3 <= 8))
----

statement ok
DROP TABLE tab0

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,9,6.21,'lyqho',6,6.46,'jqxlv')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE UNIQUE INDEX idx_tab2_0 ON tab2 (col1 DESC,col3 DESC)

statement ok
CREATE INDEX idx_tab2_1 ON tab2 (col3,col1 DESC)

statement ok
CREATE INDEX idx_tab2_2 ON tab2 (col4 DESC,col0,col1 DESC)

statement ok
CREATE INDEX idx_tab2_5 ON tab2 (col0,col4 DESC)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

statement ok
CREATE INDEX idx_tab3_1 ON tab3 (col1)

statement ok
CREATE UNIQUE INDEX idx_tab3_2 ON tab3 (col0)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE INDEX idx_tab4_1 ON tab4 (col4 DESC)

statement ok
CREATE INDEX idx_tab4_2 ON tab4 (col0,col3 DESC)

statement ok
CREATE INDEX idx_tab4_4 ON tab4 (col1 DESC)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE (col0 > 6)

query I rowsort label-empty
SELECT pk FROM tab0 WHERE (col0 > 6)
----

query I rowsort label-3840
SELECT pk FROM tab0 WHERE NOT ((col0 > 6))
----

statement ok
DELETE FROM tab1 WHERE (col0 > 6)

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (col0 > 6)
----

query I rowsort label-3840
SELECT pk FROM tab1 WHERE NOT ((col0 > 6))
----

statement ok
DELETE FROM tab2 WHERE (col0 > 6)

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (col0 > 6)
----

query I rowsort label-3840
SELECT pk FROM tab2 WHERE NOT ((col0 > 6))
----

statement ok
DELETE FROM tab3 WHERE (col0 > 6)

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (col0 > 6)
----

query I rowsort label-3840
SELECT pk FROM tab3 WHERE NOT ((col0 > 6))
----

statement ok
DELETE FROM tab4 WHERE (col0 > 6)

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (col0 > 6)
----

query I rowsort label-3840
SELECT pk FROM tab4 WHERE NOT ((col0 > 6))
----

statement ok
DROP TABLE tab0

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,3,5.89,'uakuo',4,9.80,'olawf')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE UNIQUE INDEX idx_tab2_0 ON tab2 (col3 DESC,col4 DESC)

statement ok
CREATE INDEX idx_tab2_1 ON tab2 (col0 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab2_5 ON tab2 (col1,col4)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

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

statement ok
CREATE UNIQUE INDEX idx_tab3_5 ON tab3 (col1,col0)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE UNIQUE INDEX idx_tab4_0 ON tab4 (col1 DESC,col4 DESC,col3)

statement ok
CREATE UNIQUE INDEX idx_tab4_2 ON tab4 (col4,col0 DESC)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE col3 = 3 AND (col1 > 1.12)

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col3 = 3 AND (col1 > 1.12)
----

query I rowsort label-3855
SELECT pk FROM tab0 WHERE NOT (col3 = 3 AND (col1 > 1.12))
----
0

statement ok
DELETE FROM tab1 WHERE col3 = 3 AND (col1 > 1.12)

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col3 = 3 AND (col1 > 1.12)
----

query I rowsort label-3855
SELECT pk FROM tab1 WHERE NOT (col3 = 3 AND (col1 > 1.12))
----
0

statement ok
DELETE FROM tab2 WHERE col3 = 3 AND (col1 > 1.12)

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col3 = 3 AND (col1 > 1.12)
----

query I rowsort label-3855
SELECT pk FROM tab2 WHERE NOT (col3 = 3 AND (col1 > 1.12))
----
0

statement ok
DELETE FROM tab3 WHERE col3 = 3 AND (col1 > 1.12)

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col3 = 3 AND (col1 > 1.12)
----

query I rowsort label-3855
SELECT pk FROM tab3 WHERE NOT (col3 = 3 AND (col1 > 1.12))
----
0

statement ok
DELETE FROM tab4 WHERE col3 = 3 AND (col1 > 1.12)

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col3 = 3 AND (col1 > 1.12)
----

query I rowsort label-3855
SELECT pk FROM tab4 WHERE NOT (col3 = 3 AND (col1 > 1.12))
----
0

statement ok
DELETE FROM tab0 WHERE col4 = 2.4

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col4 = 2.4
----

query I rowsort label-3870
SELECT pk FROM tab0 WHERE NOT (col4 = 2.4)
----
0

statement ok
DELETE FROM tab1 WHERE col4 = 2.4

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col4 = 2.4
----

query I rowsort label-3870
SELECT pk FROM tab1 WHERE NOT (col4 = 2.4)
----
0

statement ok
DELETE FROM tab2 WHERE col4 = 2.4

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col4 = 2.4
----

query I rowsort label-3870
SELECT pk FROM tab2 WHERE NOT (col4 = 2.4)
----
0

statement ok
DELETE FROM tab3 WHERE col4 = 2.4

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col4 = 2.4
----

query I rowsort label-3870
SELECT pk FROM tab3 WHERE NOT (col4 = 2.4)
----
0

statement ok
DELETE FROM tab4 WHERE col4 = 2.4

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col4 = 2.4
----

query I rowsort label-3870
SELECT pk FROM tab4 WHERE NOT (col4 = 2.4)
----
0

statement ok
DELETE FROM tab0 WHERE col3 <= 2

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col3 <= 2
----

query I rowsort label-3885
SELECT pk FROM tab0 WHERE NOT (col3 <= 2)
----
0

statement ok
DELETE FROM tab1 WHERE col3 <= 2

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col3 <= 2
----

query I rowsort label-3885
SELECT pk FROM tab1 WHERE NOT (col3 <= 2)
----
0

statement ok
DELETE FROM tab2 WHERE col3 <= 2

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col3 <= 2
----

query I rowsort label-3885
SELECT pk FROM tab2 WHERE NOT (col3 <= 2)
----
0

statement ok
DELETE FROM tab3 WHERE col3 <= 2

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col3 <= 2
----

query I rowsort label-3885
SELECT pk FROM tab3 WHERE NOT (col3 <= 2)
----
0

statement ok
DELETE FROM tab4 WHERE col3 <= 2

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col3 <= 2
----

query I rowsort label-3885
SELECT pk FROM tab4 WHERE NOT (col3 <= 2)
----
0

statement ok
DELETE FROM tab0 WHERE (col3 < 5 AND col3 >= 7)

query I rowsort label-empty
SELECT pk FROM tab0 WHERE (col3 < 5 AND col3 >= 7)
----

query I rowsort label-3900
SELECT pk FROM tab0 WHERE NOT ((col3 < 5 AND col3 >= 7))
----
0

statement ok
DELETE FROM tab1 WHERE (col3 < 5 AND col3 >= 7)

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (col3 < 5 AND col3 >= 7)
----

query I rowsort label-3900
SELECT pk FROM tab1 WHERE NOT ((col3 < 5 AND col3 >= 7))
----
0

statement ok
DELETE FROM tab2 WHERE (col3 < 5 AND col3 >= 7)

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (col3 < 5 AND col3 >= 7)
----

query I rowsort label-3900
SELECT pk FROM tab2 WHERE NOT ((col3 < 5 AND col3 >= 7))
----
0

statement ok
DELETE FROM tab3 WHERE (col3 < 5 AND col3 >= 7)

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (col3 < 5 AND col3 >= 7)
----

query I rowsort label-3900
SELECT pk FROM tab3 WHERE NOT ((col3 < 5 AND col3 >= 7))
----
0

statement ok
DELETE FROM tab4 WHERE (col3 < 5 AND col3 >= 7)

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (col3 < 5 AND col3 >= 7)
----

query I rowsort label-3900
SELECT pk FROM tab4 WHERE NOT ((col3 < 5 AND col3 >= 7))
----
0

statement ok
DELETE FROM tab0 WHERE col0 IN (0,8,8,4,5,0) AND (col3 >= 0)

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col0 IN (0,8,8,4,5,0) AND (col3 >= 0)
----

query I rowsort label-3915
SELECT pk FROM tab0 WHERE NOT (col0 IN (0,8,8,4,5,0) AND (col3 >= 0))
----
0

statement ok
DELETE FROM tab1 WHERE col0 IN (0,8,8,4,5,0) AND (col3 >= 0)

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col0 IN (0,8,8,4,5,0) AND (col3 >= 0)
----

query I rowsort label-3915
SELECT pk FROM tab1 WHERE NOT (col0 IN (0,8,8,4,5,0) AND (col3 >= 0))
----
0

statement ok
DELETE FROM tab2 WHERE col0 IN (0,8,8,4,5,0) AND (col3 >= 0)

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col0 IN (0,8,8,4,5,0) AND (col3 >= 0)
----

query I rowsort label-3915
SELECT pk FROM tab2 WHERE NOT (col0 IN (0,8,8,4,5,0) AND (col3 >= 0))
----
0

statement ok
DELETE FROM tab3 WHERE col0 IN (0,8,8,4,5,0) AND (col3 >= 0)

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col0 IN (0,8,8,4,5,0) AND (col3 >= 0)
----

query I rowsort label-3915
SELECT pk FROM tab3 WHERE NOT (col0 IN (0,8,8,4,5,0) AND (col3 >= 0))
----
0

statement ok
DELETE FROM tab4 WHERE col0 IN (0,8,8,4,5,0) AND (col3 >= 0)

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col0 IN (0,8,8,4,5,0) AND (col3 >= 0)
----

query I rowsort label-3915
SELECT pk FROM tab4 WHERE NOT (col0 IN (0,8,8,4,5,0) AND (col3 >= 0))
----
0

statement ok
DELETE FROM tab0 WHERE col0 <= 8 AND ((col1 > 9.68))

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col0 <= 8 AND ((col1 > 9.68))
----

query I rowsort label-3930
SELECT pk FROM tab0 WHERE NOT (col0 <= 8 AND ((col1 > 9.68)))
----
0

statement ok
DELETE FROM tab1 WHERE col0 <= 8 AND ((col1 > 9.68))

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col0 <= 8 AND ((col1 > 9.68))
----

query I rowsort label-3930
SELECT pk FROM tab1 WHERE NOT (col0 <= 8 AND ((col1 > 9.68)))
----
0

statement ok
DELETE FROM tab2 WHERE col0 <= 8 AND ((col1 > 9.68))

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col0 <= 8 AND ((col1 > 9.68))
----

query I rowsort label-3930
SELECT pk FROM tab2 WHERE NOT (col0 <= 8 AND ((col1 > 9.68)))
----
0

statement ok
DELETE FROM tab3 WHERE col0 <= 8 AND ((col1 > 9.68))

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col0 <= 8 AND ((col1 > 9.68))
----

query I rowsort label-3930
SELECT pk FROM tab3 WHERE NOT (col0 <= 8 AND ((col1 > 9.68)))
----
0

statement ok
DELETE FROM tab4 WHERE col0 <= 8 AND ((col1 > 9.68))

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col0 <= 8 AND ((col1 > 9.68))
----

query I rowsort label-3930
SELECT pk FROM tab4 WHERE NOT (col0 <= 8 AND ((col1 > 9.68)))
----
0

statement ok
DELETE FROM tab0 WHERE col3 < 3

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col3 < 3
----

query I rowsort label-3945
SELECT pk FROM tab0 WHERE NOT (col3 < 3)
----
0

statement ok
DELETE FROM tab1 WHERE col3 < 3

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col3 < 3
----

query I rowsort label-3945
SELECT pk FROM tab1 WHERE NOT (col3 < 3)
----
0

statement ok
DELETE FROM tab2 WHERE col3 < 3

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col3 < 3
----

query I rowsort label-3945
SELECT pk FROM tab2 WHERE NOT (col3 < 3)
----
0

statement ok
DELETE FROM tab3 WHERE col3 < 3

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col3 < 3
----

query I rowsort label-3945
SELECT pk FROM tab3 WHERE NOT (col3 < 3)
----
0

statement ok
DELETE FROM tab4 WHERE col3 < 3

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col3 < 3
----

query I rowsort label-3945
SELECT pk FROM tab4 WHERE NOT (col3 < 3)
----
0

statement ok
DELETE FROM tab0 WHERE col4 = 8.47

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col4 = 8.47
----

query I rowsort label-3960
SELECT pk FROM tab0 WHERE NOT (col4 = 8.47)
----
0

statement ok
DELETE FROM tab1 WHERE col4 = 8.47

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col4 = 8.47
----

query I rowsort label-3960
SELECT pk FROM tab1 WHERE NOT (col4 = 8.47)
----
0

statement ok
DELETE FROM tab2 WHERE col4 = 8.47

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col4 = 8.47
----

query I rowsort label-3960
SELECT pk FROM tab2 WHERE NOT (col4 = 8.47)
----
0

statement ok
DELETE FROM tab3 WHERE col4 = 8.47

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col4 = 8.47
----

query I rowsort label-3960
SELECT pk FROM tab3 WHERE NOT (col4 = 8.47)
----
0

statement ok
DELETE FROM tab4 WHERE col4 = 8.47

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col4 = 8.47
----

query I rowsort label-3960
SELECT pk FROM tab4 WHERE NOT (col4 = 8.47)
----
0

statement ok
DELETE FROM tab0 WHERE (col3 > 8)

query I rowsort label-empty
SELECT pk FROM tab0 WHERE (col3 > 8)
----

query I rowsort label-3975
SELECT pk FROM tab0 WHERE NOT ((col3 > 8))
----
0

statement ok
DELETE FROM tab1 WHERE (col3 > 8)

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (col3 > 8)
----

query I rowsort label-3975
SELECT pk FROM tab1 WHERE NOT ((col3 > 8))
----
0

statement ok
DELETE FROM tab2 WHERE (col3 > 8)

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (col3 > 8)
----

query I rowsort label-3975
SELECT pk FROM tab2 WHERE NOT ((col3 > 8))
----
0

statement ok
DELETE FROM tab3 WHERE (col3 > 8)

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (col3 > 8)
----

query I rowsort label-3975
SELECT pk FROM tab3 WHERE NOT ((col3 > 8))
----
0

statement ok
DELETE FROM tab4 WHERE (col3 > 8)

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (col3 > 8)
----

query I rowsort label-3975
SELECT pk FROM tab4 WHERE NOT ((col3 > 8))
----
0

statement ok
DELETE FROM tab0 WHERE (col3 > 0 OR (col4 = 2.94)) OR col4 <= 9.64 AND col3 > 5

query I rowsort label-empty
SELECT pk FROM tab0 WHERE (col3 > 0 OR (col4 = 2.94)) OR col4 <= 9.64 AND col3 > 5
----

query I rowsort label-3990
SELECT pk FROM tab0 WHERE NOT ((col3 > 0 OR (col4 = 2.94)) OR col4 <= 9.64 AND col3 > 5)
----

statement ok
DELETE FROM tab1 WHERE (col3 > 0 OR (col4 = 2.94)) OR col4 <= 9.64 AND col3 > 5

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (col3 > 0 OR (col4 = 2.94)) OR col4 <= 9.64 AND col3 > 5
----

query I rowsort label-3990
SELECT pk FROM tab1 WHERE NOT ((col3 > 0 OR (col4 = 2.94)) OR col4 <= 9.64 AND col3 > 5)
----

statement ok
DELETE FROM tab2 WHERE (col3 > 0 OR (col4 = 2.94)) OR col4 <= 9.64 AND col3 > 5

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (col3 > 0 OR (col4 = 2.94)) OR col4 <= 9.64 AND col3 > 5
----

query I rowsort label-3990
SELECT pk FROM tab2 WHERE NOT ((col3 > 0 OR (col4 = 2.94)) OR col4 <= 9.64 AND col3 > 5)
----

statement ok
DELETE FROM tab3 WHERE (col3 > 0 OR (col4 = 2.94)) OR col4 <= 9.64 AND col3 > 5

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (col3 > 0 OR (col4 = 2.94)) OR col4 <= 9.64 AND col3 > 5
----

query I rowsort label-3990
SELECT pk FROM tab3 WHERE NOT ((col3 > 0 OR (col4 = 2.94)) OR col4 <= 9.64 AND col3 > 5)
----

statement ok
DELETE FROM tab4 WHERE (col3 > 0 OR (col4 = 2.94)) OR col4 <= 9.64 AND col3 > 5

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (col3 > 0 OR (col4 = 2.94)) OR col4 <= 9.64 AND col3 > 5
----

query I rowsort label-3990
SELECT pk FROM tab4 WHERE NOT ((col3 > 0 OR (col4 = 2.94)) OR col4 <= 9.64 AND col3 > 5)
----

statement ok
DROP TABLE tab0

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,5,7.24,'isvnl',7,6.9,'onurm')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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 (col1 DESC,col3 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab2_1 ON tab2 (col0 DESC,col1 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab2_2 ON tab2 (col3 DESC,col1 DESC)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

statement ok
CREATE INDEX idx_tab3_0 ON tab3 (col3 DESC)

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

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

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE INDEX idx_tab4_0 ON tab4 (col0 DESC,col4)

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

statement ok
CREATE INDEX idx_tab4_2 ON tab4 (col3)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE (col1 > 0.49)

query I rowsort label-empty
SELECT pk FROM tab0 WHERE (col1 > 0.49)
----

query I rowsort label-4005
SELECT pk FROM tab0 WHERE NOT ((col1 > 0.49))
----

statement ok
DELETE FROM tab1 WHERE (col1 > 0.49)

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (col1 > 0.49)
----

query I rowsort label-4005
SELECT pk FROM tab1 WHERE NOT ((col1 > 0.49))
----

statement ok
DELETE FROM tab2 WHERE (col1 > 0.49)

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (col1 > 0.49)
----

query I rowsort label-4005
SELECT pk FROM tab2 WHERE NOT ((col1 > 0.49))
----

statement ok
DELETE FROM tab3 WHERE (col1 > 0.49)

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (col1 > 0.49)
----

query I rowsort label-4005
SELECT pk FROM tab3 WHERE NOT ((col1 > 0.49))
----

statement ok
DELETE FROM tab4 WHERE (col1 > 0.49)

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (col1 > 0.49)
----

query I rowsort label-4005
SELECT pk FROM tab4 WHERE NOT ((col1 > 0.49))
----

statement ok
DROP TABLE tab0

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,3,5.34,'srjbl',9,8.28,'hrwcu')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE UNIQUE INDEX idx_tab2_0 ON tab2 (col0 DESC)

statement ok
CREATE INDEX idx_tab2_1 ON tab2 (col4 DESC)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

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

statement ok
CREATE UNIQUE INDEX idx_tab3_1 ON tab3 (col1)

statement ok
CREATE INDEX idx_tab3_2 ON tab3 (col0)

statement ok
CREATE UNIQUE INDEX idx_tab3_5 ON tab3 (col3,col4)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE UNIQUE INDEX idx_tab4_0 ON tab4 (col1,col4 DESC,col3 DESC)

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

statement ok
CREATE UNIQUE INDEX idx_tab4_2 ON tab4 (col3 DESC,col4 DESC,col1 DESC)

statement ok
CREATE INDEX idx_tab4_3 ON tab4 (col0,col4,col3 DESC)

statement ok
CREATE INDEX idx_tab4_4 ON tab4 (col4)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DROP TABLE tab0

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,6,5.95,'yurln',1,5.88,'uhpsf')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE INDEX idx_tab2_0 ON tab2 (col3 DESC)

statement ok
CREATE INDEX idx_tab2_2 ON tab2 (col1 DESC)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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 (col0)

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

statement ok
CREATE UNIQUE INDEX idx_tab3_3 ON tab3 (col4)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE INDEX idx_tab4_0 ON tab4 (col4 DESC,col1)

statement ok
CREATE INDEX idx_tab4_1 ON tab4 (col3 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab4_4 ON tab4 (col0 DESC)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE col0 > 2

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col0 > 2
----

query I rowsort label-4020
SELECT pk FROM tab0 WHERE NOT (col0 > 2)
----

statement ok
DELETE FROM tab1 WHERE col0 > 2

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col0 > 2
----

query I rowsort label-4020
SELECT pk FROM tab1 WHERE NOT (col0 > 2)
----

statement ok
DELETE FROM tab2 WHERE col0 > 2

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col0 > 2
----

query I rowsort label-4020
SELECT pk FROM tab2 WHERE NOT (col0 > 2)
----

statement ok
DELETE FROM tab3 WHERE col0 > 2

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col0 > 2
----

query I rowsort label-4020
SELECT pk FROM tab3 WHERE NOT (col0 > 2)
----

statement ok
DELETE FROM tab4 WHERE col0 > 2

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col0 > 2
----

query I rowsort label-4020
SELECT pk FROM tab4 WHERE NOT (col0 > 2)
----

statement ok
DROP TABLE tab0

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,0,5.5,'gupav',6,9.42,'qtjol')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE INDEX idx_tab2_0 ON tab2 (col3)

statement ok
CREATE UNIQUE INDEX idx_tab2_1 ON tab2 (col0,col1)

statement ok
CREATE INDEX idx_tab2_3 ON tab2 (col4)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

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

statement ok
CREATE UNIQUE INDEX idx_tab3_1 ON tab3 (col0)

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

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE INDEX idx_tab4_0 ON tab4 (col0)

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

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DROP TABLE tab0

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,6,3.77,'vwepo',3,0.1,'dudto')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE UNIQUE INDEX idx_tab2_0 ON tab2 (col0)

statement ok
CREATE UNIQUE INDEX idx_tab2_3 ON tab2 (col3,col1)

statement ok
CREATE UNIQUE INDEX idx_tab2_4 ON tab2 (col4,col3)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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 (col3)

statement ok
CREATE UNIQUE INDEX idx_tab3_4 ON tab3 (col1)

statement ok
CREATE INDEX idx_tab3_5 ON tab3 (col0 DESC,col4 DESC)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE UNIQUE INDEX idx_tab4_0 ON tab4 (col1)

statement ok
CREATE UNIQUE INDEX idx_tab4_1 ON tab4 (col3)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE col3 BETWEEN 0 AND 0

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col3 BETWEEN 0 AND 0
----

query I rowsort label-4035
SELECT pk FROM tab0 WHERE NOT (col3 BETWEEN 0 AND 0)
----
0

statement ok
DELETE FROM tab1 WHERE col3 BETWEEN 0 AND 0

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col3 BETWEEN 0 AND 0
----

query I rowsort label-4035
SELECT pk FROM tab1 WHERE NOT (col3 BETWEEN 0 AND 0)
----
0

statement ok
DELETE FROM tab2 WHERE col3 BETWEEN 0 AND 0

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col3 BETWEEN 0 AND 0
----

query I rowsort label-4035
SELECT pk FROM tab2 WHERE NOT (col3 BETWEEN 0 AND 0)
----
0

statement ok
DELETE FROM tab3 WHERE col3 BETWEEN 0 AND 0

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col3 BETWEEN 0 AND 0
----

query I rowsort label-4035
SELECT pk FROM tab3 WHERE NOT (col3 BETWEEN 0 AND 0)
----
0

statement ok
DELETE FROM tab4 WHERE col3 BETWEEN 0 AND 0

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col3 BETWEEN 0 AND 0
----

query I rowsort label-4035
SELECT pk FROM tab4 WHERE NOT (col3 BETWEEN 0 AND 0)
----
0

statement ok
DELETE FROM tab0 WHERE col0 = 0 AND ((col1 > 9.61 AND col3 >= 8))

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col0 = 0 AND ((col1 > 9.61 AND col3 >= 8))
----

query I rowsort label-4050
SELECT pk FROM tab0 WHERE NOT (col0 = 0 AND ((col1 > 9.61 AND col3 >= 8)))
----
0

statement ok
DELETE FROM tab1 WHERE col0 = 0 AND ((col1 > 9.61 AND col3 >= 8))

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col0 = 0 AND ((col1 > 9.61 AND col3 >= 8))
----

query I rowsort label-4050
SELECT pk FROM tab1 WHERE NOT (col0 = 0 AND ((col1 > 9.61 AND col3 >= 8)))
----
0

statement ok
DELETE FROM tab2 WHERE col0 = 0 AND ((col1 > 9.61 AND col3 >= 8))

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col0 = 0 AND ((col1 > 9.61 AND col3 >= 8))
----

query I rowsort label-4050
SELECT pk FROM tab2 WHERE NOT (col0 = 0 AND ((col1 > 9.61 AND col3 >= 8)))
----
0

statement ok
DELETE FROM tab3 WHERE col0 = 0 AND ((col1 > 9.61 AND col3 >= 8))

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col0 = 0 AND ((col1 > 9.61 AND col3 >= 8))
----

query I rowsort label-4050
SELECT pk FROM tab3 WHERE NOT (col0 = 0 AND ((col1 > 9.61 AND col3 >= 8)))
----
0

statement ok
DELETE FROM tab4 WHERE col0 = 0 AND ((col1 > 9.61 AND col3 >= 8))

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col0 = 0 AND ((col1 > 9.61 AND col3 >= 8))
----

query I rowsort label-4050
SELECT pk FROM tab4 WHERE NOT (col0 = 0 AND ((col1 > 9.61 AND col3 >= 8)))
----
0

statement ok
DELETE FROM tab0 WHERE (col0 <= 7) AND col4 >= 3.5

query I rowsort label-empty
SELECT pk FROM tab0 WHERE (col0 <= 7) AND col4 >= 3.5
----

query I rowsort label-4065
SELECT pk FROM tab0 WHERE NOT ((col0 <= 7) AND col4 >= 3.5)
----
0

statement ok
DELETE FROM tab1 WHERE (col0 <= 7) AND col4 >= 3.5

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (col0 <= 7) AND col4 >= 3.5
----

query I rowsort label-4065
SELECT pk FROM tab1 WHERE NOT ((col0 <= 7) AND col4 >= 3.5)
----
0

statement ok
DELETE FROM tab2 WHERE (col0 <= 7) AND col4 >= 3.5

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (col0 <= 7) AND col4 >= 3.5
----

query I rowsort label-4065
SELECT pk FROM tab2 WHERE NOT ((col0 <= 7) AND col4 >= 3.5)
----
0

statement ok
DELETE FROM tab3 WHERE (col0 <= 7) AND col4 >= 3.5

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (col0 <= 7) AND col4 >= 3.5
----

query I rowsort label-4065
SELECT pk FROM tab3 WHERE NOT ((col0 <= 7) AND col4 >= 3.5)
----
0

statement ok
DELETE FROM tab4 WHERE (col0 <= 7) AND col4 >= 3.5

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (col0 <= 7) AND col4 >= 3.5
----

query I rowsort label-4065
SELECT pk FROM tab4 WHERE NOT ((col0 <= 7) AND col4 >= 3.5)
----
0

statement ok
DELETE FROM tab0 WHERE col4 < 4.69

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col4 < 4.69
----

query I rowsort label-4080
SELECT pk FROM tab0 WHERE NOT (col4 < 4.69)
----

statement ok
DELETE FROM tab1 WHERE col4 < 4.69

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col4 < 4.69
----

query I rowsort label-4080
SELECT pk FROM tab1 WHERE NOT (col4 < 4.69)
----

statement ok
DELETE FROM tab2 WHERE col4 < 4.69

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col4 < 4.69
----

query I rowsort label-4080
SELECT pk FROM tab2 WHERE NOT (col4 < 4.69)
----

statement ok
DELETE FROM tab3 WHERE col4 < 4.69

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col4 < 4.69
----

query I rowsort label-4080
SELECT pk FROM tab3 WHERE NOT (col4 < 4.69)
----

statement ok
DELETE FROM tab4 WHERE col4 < 4.69

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col4 < 4.69
----

query I rowsort label-4080
SELECT pk FROM tab4 WHERE NOT (col4 < 4.69)
----

statement ok
DROP TABLE tab0

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,9,4.95,'xqruz',7,6.75,'ryuqw')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE UNIQUE INDEX idx_tab2_0 ON tab2 (col4 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab2_1 ON tab2 (col3 DESC)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

statement ok
CREATE INDEX idx_tab3_0 ON tab3 (col1 DESC)

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

statement ok
CREATE UNIQUE INDEX idx_tab3_2 ON tab3 (col0)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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)

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

statement ok
CREATE UNIQUE INDEX idx_tab4_3 ON tab4 (col3 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab4_4 ON tab4 (col1)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DROP TABLE tab0

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,5,0.44,'zgtqx',1,6.86,'wsfnb')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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_1 ON tab2 (col3)

statement ok
CREATE UNIQUE INDEX idx_tab2_3 ON tab2 (col1 DESC,col0 DESC)

statement ok
CREATE INDEX idx_tab2_5 ON tab2 (col4 DESC)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

statement ok
CREATE INDEX idx_tab3_0 ON tab3 (col1,col3)

statement ok
CREATE INDEX idx_tab3_2 ON tab3 (col0 DESC)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE UNIQUE INDEX idx_tab4_0 ON tab4 (col4,col0)

statement ok
CREATE UNIQUE INDEX idx_tab4_3 ON tab4 (col1 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab4_5 ON tab4 (col0)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DROP TABLE tab0

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,9,1.91,'xkmwh',3,7.96,'vgwab')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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_1 ON tab2 (col3,col4 DESC,col1,col0)

statement ok
CREATE UNIQUE INDEX idx_tab2_2 ON tab2 (col1 DESC,col4)

statement ok
CREATE UNIQUE INDEX idx_tab2_3 ON tab2 (col0 DESC,col3)

statement ok
CREATE UNIQUE INDEX idx_tab2_5 ON tab2 (col0,col4,col1 DESC)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

statement ok
CREATE INDEX idx_tab3_0 ON tab3 (col1)

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

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE UNIQUE INDEX idx_tab4_0 ON tab4 (col4,col0 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab4_3 ON tab4 (col0 DESC)

statement ok
CREATE INDEX idx_tab4_4 ON tab4 (col4 DESC,col1)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE (col3 = 1)

query I rowsort label-empty
SELECT pk FROM tab0 WHERE (col3 = 1)
----

query I rowsort label-4095
SELECT pk FROM tab0 WHERE NOT ((col3 = 1))
----
0

statement ok
DELETE FROM tab1 WHERE (col3 = 1)

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (col3 = 1)
----

query I rowsort label-4095
SELECT pk FROM tab1 WHERE NOT ((col3 = 1))
----
0

statement ok
DELETE FROM tab2 WHERE (col3 = 1)

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (col3 = 1)
----

query I rowsort label-4095
SELECT pk FROM tab2 WHERE NOT ((col3 = 1))
----
0

statement ok
DELETE FROM tab3 WHERE (col3 = 1)

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (col3 = 1)
----

query I rowsort label-4095
SELECT pk FROM tab3 WHERE NOT ((col3 = 1))
----
0

statement ok
DELETE FROM tab4 WHERE (col3 = 1)

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (col3 = 1)
----

query I rowsort label-4095
SELECT pk FROM tab4 WHERE NOT ((col3 = 1))
----
0

statement ok
DELETE FROM tab0 WHERE col1 = 7.87 AND (col3 > 5)

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col1 = 7.87 AND (col3 > 5)
----

query I rowsort label-4110
SELECT pk FROM tab0 WHERE NOT (col1 = 7.87 AND (col3 > 5))
----
0

statement ok
DELETE FROM tab1 WHERE col1 = 7.87 AND (col3 > 5)

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col1 = 7.87 AND (col3 > 5)
----

query I rowsort label-4110
SELECT pk FROM tab1 WHERE NOT (col1 = 7.87 AND (col3 > 5))
----
0

statement ok
DELETE FROM tab2 WHERE col1 = 7.87 AND (col3 > 5)

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col1 = 7.87 AND (col3 > 5)
----

query I rowsort label-4110
SELECT pk FROM tab2 WHERE NOT (col1 = 7.87 AND (col3 > 5))
----
0

statement ok
DELETE FROM tab3 WHERE col1 = 7.87 AND (col3 > 5)

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col1 = 7.87 AND (col3 > 5)
----

query I rowsort label-4110
SELECT pk FROM tab3 WHERE NOT (col1 = 7.87 AND (col3 > 5))
----
0

statement ok
DELETE FROM tab4 WHERE col1 = 7.87 AND (col3 > 5)

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col1 = 7.87 AND (col3 > 5)
----

query I rowsort label-4110
SELECT pk FROM tab4 WHERE NOT (col1 = 7.87 AND (col3 > 5))
----
0

statement ok
DELETE FROM tab0 WHERE ((col0 > 6))

query I rowsort label-empty
SELECT pk FROM tab0 WHERE ((col0 > 6))
----

query I rowsort label-4125
SELECT pk FROM tab0 WHERE NOT (((col0 > 6)))
----

statement ok
DELETE FROM tab1 WHERE ((col0 > 6))

query I rowsort label-empty
SELECT pk FROM tab1 WHERE ((col0 > 6))
----

query I rowsort label-4125
SELECT pk FROM tab1 WHERE NOT (((col0 > 6)))
----

statement ok
DELETE FROM tab2 WHERE ((col0 > 6))

query I rowsort label-empty
SELECT pk FROM tab2 WHERE ((col0 > 6))
----

query I rowsort label-4125
SELECT pk FROM tab2 WHERE NOT (((col0 > 6)))
----

statement ok
DELETE FROM tab3 WHERE ((col0 > 6))

query I rowsort label-empty
SELECT pk FROM tab3 WHERE ((col0 > 6))
----

query I rowsort label-4125
SELECT pk FROM tab3 WHERE NOT (((col0 > 6)))
----

statement ok
DELETE FROM tab4 WHERE ((col0 > 6))

query I rowsort label-empty
SELECT pk FROM tab4 WHERE ((col0 > 6))
----

query I rowsort label-4125
SELECT pk FROM tab4 WHERE NOT (((col0 > 6)))
----

statement ok
DROP TABLE tab0

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,6,5.18,'bzusa',0,3.93,'liyjp')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE INDEX idx_tab2_0 ON tab2 (col4,col3)

statement ok
CREATE INDEX idx_tab2_1 ON tab2 (col4 DESC,col1 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab2_2 ON tab2 (col3 DESC)

statement ok
CREATE INDEX idx_tab2_3 ON tab2 (col1 DESC)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

statement ok
CREATE INDEX idx_tab3_1 ON tab3 (col4 DESC,col0 DESC)

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

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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)

statement ok
CREATE UNIQUE INDEX idx_tab4_2 ON tab4 (col1 DESC,col4 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab4_5 ON tab4 (col3,col1)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE (col1 >= 0.24)

query I rowsort label-empty
SELECT pk FROM tab0 WHERE (col1 >= 0.24)
----

query I rowsort label-4140
SELECT pk FROM tab0 WHERE NOT ((col1 >= 0.24))
----

statement ok
DELETE FROM tab1 WHERE (col1 >= 0.24)

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (col1 >= 0.24)
----

query I rowsort label-4140
SELECT pk FROM tab1 WHERE NOT ((col1 >= 0.24))
----

statement ok
DELETE FROM tab2 WHERE (col1 >= 0.24)

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (col1 >= 0.24)
----

query I rowsort label-4140
SELECT pk FROM tab2 WHERE NOT ((col1 >= 0.24))
----

statement ok
DELETE FROM tab3 WHERE (col1 >= 0.24)

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (col1 >= 0.24)
----

query I rowsort label-4140
SELECT pk FROM tab3 WHERE NOT ((col1 >= 0.24))
----

statement ok
DELETE FROM tab4 WHERE (col1 >= 0.24)

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (col1 >= 0.24)
----

query I rowsort label-4140
SELECT pk FROM tab4 WHERE NOT ((col1 >= 0.24))
----

statement ok
DROP TABLE tab0

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,4,7.98,'dmdxz',6,6.50,'hxrix')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE INDEX idx_tab2_0 ON tab2 (col3,col0 DESC,col1 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab2_1 ON tab2 (col3,col1,col0)

statement ok
CREATE INDEX idx_tab2_3 ON tab2 (col0)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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 (col0,col1)

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

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE UNIQUE INDEX idx_tab4_0 ON tab4 (col1)

statement ok
CREATE INDEX idx_tab4_1 ON tab4 (col4 DESC,col3 DESC)

statement ok
CREATE INDEX idx_tab4_2 ON tab4 (col0,col4 DESC)

statement ok
CREATE INDEX idx_tab4_4 ON tab4 (col0,col3 DESC)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE col0 <= 4 OR (col3 <= 3)

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col0 <= 4 OR (col3 <= 3)
----

query I rowsort label-4155
SELECT pk FROM tab0 WHERE NOT (col0 <= 4 OR (col3 <= 3))
----

statement ok
DELETE FROM tab1 WHERE col0 <= 4 OR (col3 <= 3)

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col0 <= 4 OR (col3 <= 3)
----

query I rowsort label-4155
SELECT pk FROM tab1 WHERE NOT (col0 <= 4 OR (col3 <= 3))
----

statement ok
DELETE FROM tab2 WHERE col0 <= 4 OR (col3 <= 3)

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col0 <= 4 OR (col3 <= 3)
----

query I rowsort label-4155
SELECT pk FROM tab2 WHERE NOT (col0 <= 4 OR (col3 <= 3))
----

statement ok
DELETE FROM tab3 WHERE col0 <= 4 OR (col3 <= 3)

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col0 <= 4 OR (col3 <= 3)
----

query I rowsort label-4155
SELECT pk FROM tab3 WHERE NOT (col0 <= 4 OR (col3 <= 3))
----

statement ok
DELETE FROM tab4 WHERE col0 <= 4 OR (col3 <= 3)

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col0 <= 4 OR (col3 <= 3)
----

query I rowsort label-4155
SELECT pk FROM tab4 WHERE NOT (col0 <= 4 OR (col3 <= 3))
----

statement ok
DROP TABLE tab0

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,8,2.83,'ddtlt',1,0.5,'wrnag')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE INDEX idx_tab2_0 ON tab2 (col4 DESC,col0 DESC)

statement ok
CREATE INDEX idx_tab2_1 ON tab2 (col1,col3)

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

statement ok
CREATE INDEX idx_tab2_4 ON tab2 (col1,col0)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

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

statement ok
CREATE INDEX idx_tab3_3 ON tab3 (col4)

statement ok
CREATE INDEX idx_tab3_4 ON tab3 (col3 DESC)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE UNIQUE INDEX idx_tab4_0 ON tab4 (col3)

statement ok
CREATE UNIQUE INDEX idx_tab4_5 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
----

statement ok
DELETE FROM tab0 WHERE col0 IN (8)

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col0 IN (8)
----

query I rowsort label-4170
SELECT pk FROM tab0 WHERE NOT (col0 IN (8))
----

statement ok
DELETE FROM tab1 WHERE col0 IN (8)

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col0 IN (8)
----

query I rowsort label-4170
SELECT pk FROM tab1 WHERE NOT (col0 IN (8))
----

statement ok
DELETE FROM tab2 WHERE col0 IN (8)

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col0 IN (8)
----

query I rowsort label-4170
SELECT pk FROM tab2 WHERE NOT (col0 IN (8))
----

statement ok
DELETE FROM tab3 WHERE col0 IN (8)

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col0 IN (8)
----

query I rowsort label-4170
SELECT pk FROM tab3 WHERE NOT (col0 IN (8))
----

statement ok
DELETE FROM tab4 WHERE col0 IN (8)

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col0 IN (8)
----

query I rowsort label-4170
SELECT pk FROM tab4 WHERE NOT (col0 IN (8))
----

statement ok
DROP TABLE tab0

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,5,1.76,'tfxex',1,4.96,'xtyha')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE UNIQUE INDEX idx_tab2_0 ON tab2 (col4,col1 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab2_1 ON tab2 (col4,col3 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab2_2 ON tab2 (col0)

statement ok
CREATE INDEX idx_tab2_3 ON tab2 (col3 DESC)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

statement ok
CREATE INDEX idx_tab3_0 ON tab3 (col0)

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

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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_3 ON tab4 (col3 DESC,col4 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab4_4 ON tab4 (col1 DESC)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE col3 > 2 AND col4 >= 4.30

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col3 > 2 AND col4 >= 4.30
----

query I rowsort label-4185
SELECT pk FROM tab0 WHERE NOT (col3 > 2 AND col4 >= 4.30)
----
0

statement ok
DELETE FROM tab1 WHERE col3 > 2 AND col4 >= 4.30

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col3 > 2 AND col4 >= 4.30
----

query I rowsort label-4185
SELECT pk FROM tab1 WHERE NOT (col3 > 2 AND col4 >= 4.30)
----
0

statement ok
DELETE FROM tab2 WHERE col3 > 2 AND col4 >= 4.30

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col3 > 2 AND col4 >= 4.30
----

query I rowsort label-4185
SELECT pk FROM tab2 WHERE NOT (col3 > 2 AND col4 >= 4.30)
----
0

statement ok
DELETE FROM tab3 WHERE col3 > 2 AND col4 >= 4.30

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col3 > 2 AND col4 >= 4.30
----

query I rowsort label-4185
SELECT pk FROM tab3 WHERE NOT (col3 > 2 AND col4 >= 4.30)
----
0

statement ok
DELETE FROM tab4 WHERE col3 > 2 AND col4 >= 4.30

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col3 > 2 AND col4 >= 4.30
----

query I rowsort label-4185
SELECT pk FROM tab4 WHERE NOT (col3 > 2 AND col4 >= 4.30)
----
0

statement ok
DELETE FROM tab0 WHERE col1 < 8.6

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col1 < 8.6
----

query I rowsort label-4200
SELECT pk FROM tab0 WHERE NOT (col1 < 8.6)
----

statement ok
DELETE FROM tab1 WHERE col1 < 8.6

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col1 < 8.6
----

query I rowsort label-4200
SELECT pk FROM tab1 WHERE NOT (col1 < 8.6)
----

statement ok
DELETE FROM tab2 WHERE col1 < 8.6

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col1 < 8.6
----

query I rowsort label-4200
SELECT pk FROM tab2 WHERE NOT (col1 < 8.6)
----

statement ok
DELETE FROM tab3 WHERE col1 < 8.6

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col1 < 8.6
----

query I rowsort label-4200
SELECT pk FROM tab3 WHERE NOT (col1 < 8.6)
----

statement ok
DELETE FROM tab4 WHERE col1 < 8.6

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col1 < 8.6
----

query I rowsort label-4200
SELECT pk FROM tab4 WHERE NOT (col1 < 8.6)
----

statement ok
DROP TABLE tab0

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,7,7.80,'spuav',5,9.81,'hnlqw')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE UNIQUE INDEX idx_tab2_1 ON tab2 (col0,col1 DESC)

statement ok
CREATE INDEX idx_tab2_3 ON tab2 (col0 DESC,col3)

statement ok
CREATE INDEX idx_tab2_5 ON tab2 (col4 DESC)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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 DESC,col1)

statement ok
CREATE INDEX idx_tab3_1 ON tab3 (col0,col1)

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

statement ok
CREATE INDEX idx_tab3_4 ON tab3 (col3,col4)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

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

statement ok
CREATE INDEX idx_tab4_3 ON tab4 (col3 DESC,col4 DESC)

statement ok
CREATE INDEX idx_tab4_4 ON tab4 (col4,col0 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab4_5 ON tab4 (col0 DESC)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE col1 > 7.10 OR (col0 < 4)

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col1 > 7.10 OR (col0 < 4)
----

query I rowsort label-4215
SELECT pk FROM tab0 WHERE NOT (col1 > 7.10 OR (col0 < 4))
----

statement ok
DELETE FROM tab1 WHERE col1 > 7.10 OR (col0 < 4)

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col1 > 7.10 OR (col0 < 4)
----

query I rowsort label-4215
SELECT pk FROM tab1 WHERE NOT (col1 > 7.10 OR (col0 < 4))
----

statement ok
DELETE FROM tab2 WHERE col1 > 7.10 OR (col0 < 4)

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col1 > 7.10 OR (col0 < 4)
----

query I rowsort label-4215
SELECT pk FROM tab2 WHERE NOT (col1 > 7.10 OR (col0 < 4))
----

statement ok
DELETE FROM tab3 WHERE col1 > 7.10 OR (col0 < 4)

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col1 > 7.10 OR (col0 < 4)
----

query I rowsort label-4215
SELECT pk FROM tab3 WHERE NOT (col1 > 7.10 OR (col0 < 4))
----

statement ok
DELETE FROM tab4 WHERE col1 > 7.10 OR (col0 < 4)

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col1 > 7.10 OR (col0 < 4)
----

query I rowsort label-4215
SELECT pk FROM tab4 WHERE NOT (col1 > 7.10 OR (col0 < 4))
----

statement ok
DROP TABLE tab0

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,7,2.84,'yzcpt',5,1.19,'detgd')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE UNIQUE INDEX idx_tab2_0 ON tab2 (col0)

statement ok
CREATE INDEX idx_tab2_2 ON tab2 (col1)

statement ok
CREATE INDEX idx_tab2_3 ON tab2 (col4)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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 (col3)

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

statement ok
CREATE UNIQUE INDEX idx_tab3_5 ON tab3 (col0 DESC)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE INDEX idx_tab4_0 ON tab4 (col4 DESC)

statement ok
CREATE INDEX idx_tab4_2 ON tab4 (col3 DESC)

statement ok
CREATE INDEX idx_tab4_3 ON tab4 (col1 DESC)

statement ok
CREATE INDEX idx_tab4_5 ON tab4 (col0)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE col0 >= 4

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col0 >= 4
----

query I rowsort label-4230
SELECT pk FROM tab0 WHERE NOT (col0 >= 4)
----

statement ok
DELETE FROM tab1 WHERE col0 >= 4

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col0 >= 4
----

query I rowsort label-4230
SELECT pk FROM tab1 WHERE NOT (col0 >= 4)
----

statement ok
DELETE FROM tab2 WHERE col0 >= 4

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col0 >= 4
----

query I rowsort label-4230
SELECT pk FROM tab2 WHERE NOT (col0 >= 4)
----

statement ok
DELETE FROM tab3 WHERE col0 >= 4

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col0 >= 4
----

query I rowsort label-4230
SELECT pk FROM tab3 WHERE NOT (col0 >= 4)
----

statement ok
DELETE FROM tab4 WHERE col0 >= 4

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col0 >= 4
----

query I rowsort label-4230
SELECT pk FROM tab4 WHERE NOT (col0 >= 4)
----

statement ok
DROP TABLE tab0

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,4,7.79,'cqdkz',2,7.25,'khgqt')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE UNIQUE INDEX idx_tab2_1 ON tab2 (col4)

statement ok
CREATE UNIQUE INDEX idx_tab2_4 ON tab2 (col1)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

statement ok
CREATE UNIQUE INDEX idx_tab3_1 ON tab3 (col1)

statement ok
CREATE INDEX idx_tab3_2 ON tab3 (col4)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE UNIQUE INDEX idx_tab4_0 ON tab4 (col3 DESC,col4)

statement ok
CREATE UNIQUE INDEX idx_tab4_1 ON tab4 (col4 DESC)

statement ok
CREATE INDEX idx_tab4_2 ON tab4 (col0)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DROP TABLE tab0

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,5,6.45,'xihkf',0,8.24,'hvkvd')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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,col4 DESC,col1 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab2_1 ON tab2 (col3)

statement ok
CREATE INDEX idx_tab2_5 ON tab2 (col4 DESC)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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 (col3)

statement ok
CREATE INDEX idx_tab3_3 ON tab3 (col4)

statement ok
CREATE UNIQUE INDEX idx_tab3_5 ON tab3 (col0)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE UNIQUE INDEX idx_tab4_0 ON tab4 (col3 DESC,col4 DESC)

statement ok
CREATE INDEX idx_tab4_2 ON tab4 (col0 DESC,col4)

statement ok
CREATE UNIQUE INDEX idx_tab4_3 ON tab4 (col4,col3)

statement ok
CREATE UNIQUE INDEX idx_tab4_4 ON tab4 (col4,col0)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE col3 < 0

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col3 < 0
----

query I rowsort label-4245
SELECT pk FROM tab0 WHERE NOT (col3 < 0)
----
0

statement ok
DELETE FROM tab1 WHERE col3 < 0

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col3 < 0
----

query I rowsort label-4245
SELECT pk FROM tab1 WHERE NOT (col3 < 0)
----
0

statement ok
DELETE FROM tab2 WHERE col3 < 0

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col3 < 0
----

query I rowsort label-4245
SELECT pk FROM tab2 WHERE NOT (col3 < 0)
----
0

statement ok
DELETE FROM tab3 WHERE col3 < 0

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col3 < 0
----

query I rowsort label-4245
SELECT pk FROM tab3 WHERE NOT (col3 < 0)
----
0

statement ok
DELETE FROM tab4 WHERE col3 < 0

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col3 < 0
----

query I rowsort label-4245
SELECT pk FROM tab4 WHERE NOT (col3 < 0)
----
0

statement ok
DELETE FROM tab0 WHERE col4 < 6.78

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col4 < 6.78
----

query I rowsort label-4260
SELECT pk FROM tab0 WHERE NOT (col4 < 6.78)
----
0

statement ok
DELETE FROM tab1 WHERE col4 < 6.78

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col4 < 6.78
----

query I rowsort label-4260
SELECT pk FROM tab1 WHERE NOT (col4 < 6.78)
----
0

statement ok
DELETE FROM tab2 WHERE col4 < 6.78

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col4 < 6.78
----

query I rowsort label-4260
SELECT pk FROM tab2 WHERE NOT (col4 < 6.78)
----
0

statement ok
DELETE FROM tab3 WHERE col4 < 6.78

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col4 < 6.78
----

query I rowsort label-4260
SELECT pk FROM tab3 WHERE NOT (col4 < 6.78)
----
0

statement ok
DELETE FROM tab4 WHERE col4 < 6.78

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col4 < 6.78
----

query I rowsort label-4260
SELECT pk FROM tab4 WHERE NOT (col4 < 6.78)
----
0

statement ok
DELETE FROM tab0 WHERE col1 < 9.8

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col1 < 9.8
----

query I rowsort label-4275
SELECT pk FROM tab0 WHERE NOT (col1 < 9.8)
----

statement ok
DELETE FROM tab1 WHERE col1 < 9.8

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col1 < 9.8
----

query I rowsort label-4275
SELECT pk FROM tab1 WHERE NOT (col1 < 9.8)
----

statement ok
DELETE FROM tab2 WHERE col1 < 9.8

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col1 < 9.8
----

query I rowsort label-4275
SELECT pk FROM tab2 WHERE NOT (col1 < 9.8)
----

statement ok
DELETE FROM tab3 WHERE col1 < 9.8

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col1 < 9.8
----

query I rowsort label-4275
SELECT pk FROM tab3 WHERE NOT (col1 < 9.8)
----

statement ok
DELETE FROM tab4 WHERE col1 < 9.8

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col1 < 9.8
----

query I rowsort label-4275
SELECT pk FROM tab4 WHERE NOT (col1 < 9.8)
----

statement ok
DROP TABLE tab0

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,1,2.27,'zhgmv',7,6.15,'opsii')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE UNIQUE INDEX idx_tab2_1 ON tab2 (col4,col0)

statement ok
CREATE INDEX idx_tab2_2 ON tab2 (col0 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab2_4 ON tab2 (col3 DESC,col4 DESC)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

statement ok
CREATE UNIQUE INDEX idx_tab3_3 ON tab3 (col3 DESC)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

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

statement ok
CREATE UNIQUE INDEX idx_tab4_1 ON tab4 (col1)

statement ok
CREATE UNIQUE INDEX idx_tab4_3 ON tab4 (col0 DESC,col3 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab4_5 ON tab4 (col3,col0 DESC)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE col3 < 8

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col3 < 8
----

query I rowsort label-4290
SELECT pk FROM tab0 WHERE NOT (col3 < 8)
----

statement ok
DELETE FROM tab1 WHERE col3 < 8

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col3 < 8
----

query I rowsort label-4290
SELECT pk FROM tab1 WHERE NOT (col3 < 8)
----

statement ok
DELETE FROM tab2 WHERE col3 < 8

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col3 < 8
----

query I rowsort label-4290
SELECT pk FROM tab2 WHERE NOT (col3 < 8)
----

statement ok
DELETE FROM tab3 WHERE col3 < 8

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col3 < 8
----

query I rowsort label-4290
SELECT pk FROM tab3 WHERE NOT (col3 < 8)
----

statement ok
DELETE FROM tab4 WHERE col3 < 8

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col3 < 8
----

query I rowsort label-4290
SELECT pk FROM tab4 WHERE NOT (col3 < 8)
----

statement ok
DROP TABLE tab0

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,4,7.18,'zbswu',1,8.21,'gzvwp')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE UNIQUE INDEX idx_tab2_0 ON tab2 (col3 DESC,col0 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab2_1 ON tab2 (col0)

statement ok
CREATE UNIQUE INDEX idx_tab2_2 ON tab2 (col1,col3 DESC)

statement ok
CREATE INDEX idx_tab2_3 ON tab2 (col3 DESC,col4 DESC)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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_1 ON tab3 (col0 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab3_4 ON tab3 (col1)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE UNIQUE INDEX idx_tab4_0 ON tab4 (col3,col4 DESC)

statement ok
CREATE INDEX idx_tab4_1 ON tab4 (col1,col4)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE col1 <= 4.61 OR (((col4 > 7.24) AND col3 >= 1))

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col1 <= 4.61 OR (((col4 > 7.24) AND col3 >= 1))
----

query I rowsort label-4305
SELECT pk FROM tab0 WHERE NOT (col1 <= 4.61 OR (((col4 > 7.24) AND col3 >= 1)))
----

statement ok
DELETE FROM tab1 WHERE col1 <= 4.61 OR (((col4 > 7.24) AND col3 >= 1))

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col1 <= 4.61 OR (((col4 > 7.24) AND col3 >= 1))
----

query I rowsort label-4305
SELECT pk FROM tab1 WHERE NOT (col1 <= 4.61 OR (((col4 > 7.24) AND col3 >= 1)))
----

statement ok
DELETE FROM tab2 WHERE col1 <= 4.61 OR (((col4 > 7.24) AND col3 >= 1))

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col1 <= 4.61 OR (((col4 > 7.24) AND col3 >= 1))
----

query I rowsort label-4305
SELECT pk FROM tab2 WHERE NOT (col1 <= 4.61 OR (((col4 > 7.24) AND col3 >= 1)))
----

statement ok
DELETE FROM tab3 WHERE col1 <= 4.61 OR (((col4 > 7.24) AND col3 >= 1))

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col1 <= 4.61 OR (((col4 > 7.24) AND col3 >= 1))
----

query I rowsort label-4305
SELECT pk FROM tab3 WHERE NOT (col1 <= 4.61 OR (((col4 > 7.24) AND col3 >= 1)))
----

statement ok
DELETE FROM tab4 WHERE col1 <= 4.61 OR (((col4 > 7.24) AND col3 >= 1))

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col1 <= 4.61 OR (((col4 > 7.24) AND col3 >= 1))
----

query I rowsort label-4305
SELECT pk FROM tab4 WHERE NOT (col1 <= 4.61 OR (((col4 > 7.24) AND col3 >= 1)))
----

statement ok
DROP TABLE tab0

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,2,7.77,'pesuy',0,0.90,'fezxy')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE UNIQUE INDEX idx_tab2_0 ON tab2 (col4 DESC)

statement ok
CREATE INDEX idx_tab2_1 ON tab2 (col3,col0 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab2_3 ON tab2 (col0)

statement ok
CREATE INDEX idx_tab2_4 ON tab2 (col1)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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 (col3)

statement ok
CREATE UNIQUE INDEX idx_tab3_3 ON tab3 (col1)

statement ok
CREATE INDEX idx_tab3_5 ON tab3 (col4)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE INDEX idx_tab4_0 ON tab4 (col3)

statement ok
CREATE UNIQUE INDEX idx_tab4_1 ON tab4 (col1 DESC)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE (((col4 <= 5.48 AND col0 > 3) OR (col4 >= 9.88)))

query I rowsort label-empty
SELECT pk FROM tab0 WHERE (((col4 <= 5.48 AND col0 > 3) OR (col4 >= 9.88)))
----

query I rowsort label-4320
SELECT pk FROM tab0 WHERE NOT ((((col4 <= 5.48 AND col0 > 3) OR (col4 >= 9.88))))
----
0

statement ok
DELETE FROM tab1 WHERE (((col4 <= 5.48 AND col0 > 3) OR (col4 >= 9.88)))

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (((col4 <= 5.48 AND col0 > 3) OR (col4 >= 9.88)))
----

query I rowsort label-4320
SELECT pk FROM tab1 WHERE NOT ((((col4 <= 5.48 AND col0 > 3) OR (col4 >= 9.88))))
----
0

statement ok
DELETE FROM tab2 WHERE (((col4 <= 5.48 AND col0 > 3) OR (col4 >= 9.88)))

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (((col4 <= 5.48 AND col0 > 3) OR (col4 >= 9.88)))
----

query I rowsort label-4320
SELECT pk FROM tab2 WHERE NOT ((((col4 <= 5.48 AND col0 > 3) OR (col4 >= 9.88))))
----
0

statement ok
DELETE FROM tab3 WHERE (((col4 <= 5.48 AND col0 > 3) OR (col4 >= 9.88)))

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (((col4 <= 5.48 AND col0 > 3) OR (col4 >= 9.88)))
----

query I rowsort label-4320
SELECT pk FROM tab3 WHERE NOT ((((col4 <= 5.48 AND col0 > 3) OR (col4 >= 9.88))))
----
0

statement ok
DELETE FROM tab4 WHERE (((col4 <= 5.48 AND col0 > 3) OR (col4 >= 9.88)))

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (((col4 <= 5.48 AND col0 > 3) OR (col4 >= 9.88)))
----

query I rowsort label-4320
SELECT pk FROM tab4 WHERE NOT ((((col4 <= 5.48 AND col0 > 3) OR (col4 >= 9.88))))
----
0

statement ok
DELETE FROM tab0 WHERE (col1 = 3.90)

query I rowsort label-empty
SELECT pk FROM tab0 WHERE (col1 = 3.90)
----

query I rowsort label-4335
SELECT pk FROM tab0 WHERE NOT ((col1 = 3.90))
----
0

statement ok
DELETE FROM tab1 WHERE (col1 = 3.90)

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (col1 = 3.90)
----

query I rowsort label-4335
SELECT pk FROM tab1 WHERE NOT ((col1 = 3.90))
----
0

statement ok
DELETE FROM tab2 WHERE (col1 = 3.90)

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (col1 = 3.90)
----

query I rowsort label-4335
SELECT pk FROM tab2 WHERE NOT ((col1 = 3.90))
----
0

statement ok
DELETE FROM tab3 WHERE (col1 = 3.90)

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (col1 = 3.90)
----

query I rowsort label-4335
SELECT pk FROM tab3 WHERE NOT ((col1 = 3.90))
----
0

statement ok
DELETE FROM tab4 WHERE (col1 = 3.90)

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (col1 = 3.90)
----

query I rowsort label-4335
SELECT pk FROM tab4 WHERE NOT ((col1 = 3.90))
----
0

statement ok
DELETE FROM tab0 WHERE col1 < 9.65

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col1 < 9.65
----

query I rowsort label-4350
SELECT pk FROM tab0 WHERE NOT (col1 < 9.65)
----

statement ok
DELETE FROM tab1 WHERE col1 < 9.65

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col1 < 9.65
----

query I rowsort label-4350
SELECT pk FROM tab1 WHERE NOT (col1 < 9.65)
----

statement ok
DELETE FROM tab2 WHERE col1 < 9.65

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col1 < 9.65
----

query I rowsort label-4350
SELECT pk FROM tab2 WHERE NOT (col1 < 9.65)
----

statement ok
DELETE FROM tab3 WHERE col1 < 9.65

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col1 < 9.65
----

query I rowsort label-4350
SELECT pk FROM tab3 WHERE NOT (col1 < 9.65)
----

statement ok
DELETE FROM tab4 WHERE col1 < 9.65

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col1 < 9.65
----

query I rowsort label-4350
SELECT pk FROM tab4 WHERE NOT (col1 < 9.65)
----

statement ok
DROP TABLE tab0

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,0,5.80,'uvgoi',2,8.95,'ilwde')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE INDEX idx_tab2_0 ON tab2 (col3,col4 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab2_2 ON tab2 (col1)

statement ok
CREATE INDEX idx_tab2_3 ON tab2 (col4)

statement ok
CREATE UNIQUE INDEX idx_tab2_5 ON tab2 (col0,col3)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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 (col0)

statement ok
CREATE INDEX idx_tab3_1 ON tab3 (col3,col1 DESC)

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

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

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

statement ok
CREATE UNIQUE INDEX idx_tab4_1 ON tab4 (col1)

statement ok
CREATE UNIQUE INDEX idx_tab4_4 ON tab4 (col3)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE col3 = 2

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col3 = 2
----

query I rowsort label-4365
SELECT pk FROM tab0 WHERE NOT (col3 = 2)
----

statement ok
DELETE FROM tab1 WHERE col3 = 2

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col3 = 2
----

query I rowsort label-4365
SELECT pk FROM tab1 WHERE NOT (col3 = 2)
----

statement ok
DELETE FROM tab2 WHERE col3 = 2

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col3 = 2
----

query I rowsort label-4365
SELECT pk FROM tab2 WHERE NOT (col3 = 2)
----

statement ok
DELETE FROM tab3 WHERE col3 = 2

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col3 = 2
----

query I rowsort label-4365
SELECT pk FROM tab3 WHERE NOT (col3 = 2)
----

statement ok
DELETE FROM tab4 WHERE col3 = 2

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col3 = 2
----

query I rowsort label-4365
SELECT pk FROM tab4 WHERE NOT (col3 = 2)
----

statement ok
DROP TABLE tab0

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,7,7.46,'mxzlv',6,3.18,'porwc')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE INDEX idx_tab2_1 ON tab2 (col4,col3)

statement ok
CREATE INDEX idx_tab2_3 ON tab2 (col3 DESC)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

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

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

statement ok
CREATE INDEX idx_tab3_3 ON tab3 (col3 DESC)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE UNIQUE INDEX idx_tab4_0 ON tab4 (col3,col4)

statement ok
CREATE INDEX idx_tab4_2 ON tab4 (col4,col0)

statement ok
CREATE INDEX idx_tab4_3 ON tab4 (col3,col0)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DROP TABLE tab0

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,3,1.83,'gznvp',5,4.13,'sivzu')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE INDEX idx_tab2_1 ON tab2 (col0 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab2_2 ON tab2 (col3 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab2_3 ON tab2 (col4)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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 (col3,col4)

statement ok
CREATE INDEX idx_tab3_1 ON tab3 (col4,col3)

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

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE INDEX idx_tab4_0 ON tab4 (col4 DESC,col3 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab4_2 ON tab4 (col3,col0)

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

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE col0 > 2 AND col4 = 7.16

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col0 > 2 AND col4 = 7.16
----

query I rowsort label-4380
SELECT pk FROM tab0 WHERE NOT (col0 > 2 AND col4 = 7.16)
----
0

statement ok
DELETE FROM tab1 WHERE col0 > 2 AND col4 = 7.16

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col0 > 2 AND col4 = 7.16
----

query I rowsort label-4380
SELECT pk FROM tab1 WHERE NOT (col0 > 2 AND col4 = 7.16)
----
0

statement ok
DELETE FROM tab2 WHERE col0 > 2 AND col4 = 7.16

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col0 > 2 AND col4 = 7.16
----

query I rowsort label-4380
SELECT pk FROM tab2 WHERE NOT (col0 > 2 AND col4 = 7.16)
----
0

statement ok
DELETE FROM tab3 WHERE col0 > 2 AND col4 = 7.16

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col0 > 2 AND col4 = 7.16
----

query I rowsort label-4380
SELECT pk FROM tab3 WHERE NOT (col0 > 2 AND col4 = 7.16)
----
0

statement ok
DELETE FROM tab4 WHERE col0 > 2 AND col4 = 7.16

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col0 > 2 AND col4 = 7.16
----

query I rowsort label-4380
SELECT pk FROM tab4 WHERE NOT (col0 > 2 AND col4 = 7.16)
----
0

statement ok
DELETE FROM tab0 WHERE col3 < 7 OR (col3 > 9) OR ((col3 = 2)) AND col0 >= 0 AND col4 <= 7.67 AND col1 <= 7.68 AND col4 >= 6.77 OR col4 >= 7.0

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col3 < 7 OR (col3 > 9) OR ((col3 = 2)) AND col0 >= 0 AND col4 <= 7.67 AND col1 <= 7.68 AND col4 >= 6.77 OR col4 >= 7.0
----

query I rowsort label-4395
SELECT pk FROM tab0 WHERE NOT (col3 < 7 OR (col3 > 9) OR ((col3 = 2)) AND col0 >= 0 AND col4 <= 7.67 AND col1 <= 7.68 AND col4 >= 6.77 OR col4 >= 7.0)
----

statement ok
DELETE FROM tab1 WHERE col3 < 7 OR (col3 > 9) OR ((col3 = 2)) AND col0 >= 0 AND col4 <= 7.67 AND col1 <= 7.68 AND col4 >= 6.77 OR col4 >= 7.0

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col3 < 7 OR (col3 > 9) OR ((col3 = 2)) AND col0 >= 0 AND col4 <= 7.67 AND col1 <= 7.68 AND col4 >= 6.77 OR col4 >= 7.0
----

query I rowsort label-4395
SELECT pk FROM tab1 WHERE NOT (col3 < 7 OR (col3 > 9) OR ((col3 = 2)) AND col0 >= 0 AND col4 <= 7.67 AND col1 <= 7.68 AND col4 >= 6.77 OR col4 >= 7.0)
----

statement ok
DELETE FROM tab2 WHERE col3 < 7 OR (col3 > 9) OR ((col3 = 2)) AND col0 >= 0 AND col4 <= 7.67 AND col1 <= 7.68 AND col4 >= 6.77 OR col4 >= 7.0

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col3 < 7 OR (col3 > 9) OR ((col3 = 2)) AND col0 >= 0 AND col4 <= 7.67 AND col1 <= 7.68 AND col4 >= 6.77 OR col4 >= 7.0
----

query I rowsort label-4395
SELECT pk FROM tab2 WHERE NOT (col3 < 7 OR (col3 > 9) OR ((col3 = 2)) AND col0 >= 0 AND col4 <= 7.67 AND col1 <= 7.68 AND col4 >= 6.77 OR col4 >= 7.0)
----

statement ok
DELETE FROM tab3 WHERE col3 < 7 OR (col3 > 9) OR ((col3 = 2)) AND col0 >= 0 AND col4 <= 7.67 AND col1 <= 7.68 AND col4 >= 6.77 OR col4 >= 7.0

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col3 < 7 OR (col3 > 9) OR ((col3 = 2)) AND col0 >= 0 AND col4 <= 7.67 AND col1 <= 7.68 AND col4 >= 6.77 OR col4 >= 7.0
----

query I rowsort label-4395
SELECT pk FROM tab3 WHERE NOT (col3 < 7 OR (col3 > 9) OR ((col3 = 2)) AND col0 >= 0 AND col4 <= 7.67 AND col1 <= 7.68 AND col4 >= 6.77 OR col4 >= 7.0)
----

statement ok
DELETE FROM tab4 WHERE col3 < 7 OR (col3 > 9) OR ((col3 = 2)) AND col0 >= 0 AND col4 <= 7.67 AND col1 <= 7.68 AND col4 >= 6.77 OR col4 >= 7.0

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col3 < 7 OR (col3 > 9) OR ((col3 = 2)) AND col0 >= 0 AND col4 <= 7.67 AND col1 <= 7.68 AND col4 >= 6.77 OR col4 >= 7.0
----

query I rowsort label-4395
SELECT pk FROM tab4 WHERE NOT (col3 < 7 OR (col3 > 9) OR ((col3 = 2)) AND col0 >= 0 AND col4 <= 7.67 AND col1 <= 7.68 AND col4 >= 6.77 OR col4 >= 7.0)
----

statement ok
DROP TABLE tab0

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,3,5.32,'whche',9,7.79,'xwdbp')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE UNIQUE INDEX idx_tab2_0 ON tab2 (col0 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab2_1 ON tab2 (col1)

statement ok
CREATE INDEX idx_tab2_2 ON tab2 (col4 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab2_5 ON tab2 (col3 DESC)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

statement ok
CREATE UNIQUE INDEX idx_tab3_2 ON tab3 (col0)

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

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE UNIQUE INDEX idx_tab4_0 ON tab4 (col3 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab4_2 ON tab4 (col0 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab4_3 ON tab4 (col1)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE col1 = 3.38 OR col3 > 8 OR ((col3 < 1 AND ((col0 > 1)) AND col0 > 7 AND col3 >= 5 OR (col3 > 1)) AND col1 < 1.23)

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col1 = 3.38 OR col3 > 8 OR ((col3 < 1 AND ((col0 > 1)) AND col0 > 7 AND col3 >= 5 OR (col3 > 1)) AND col1 < 1.23)
----

query I rowsort label-4410
SELECT pk FROM tab0 WHERE NOT (col1 = 3.38 OR col3 > 8 OR ((col3 < 1 AND ((col0 > 1)) AND col0 > 7 AND col3 >= 5 OR (col3 > 1)) AND col1 < 1.23))
----

statement ok
DELETE FROM tab1 WHERE col1 = 3.38 OR col3 > 8 OR ((col3 < 1 AND ((col0 > 1)) AND col0 > 7 AND col3 >= 5 OR (col3 > 1)) AND col1 < 1.23)

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col1 = 3.38 OR col3 > 8 OR ((col3 < 1 AND ((col0 > 1)) AND col0 > 7 AND col3 >= 5 OR (col3 > 1)) AND col1 < 1.23)
----

query I rowsort label-4410
SELECT pk FROM tab1 WHERE NOT (col1 = 3.38 OR col3 > 8 OR ((col3 < 1 AND ((col0 > 1)) AND col0 > 7 AND col3 >= 5 OR (col3 > 1)) AND col1 < 1.23))
----

statement ok
DELETE FROM tab2 WHERE col1 = 3.38 OR col3 > 8 OR ((col3 < 1 AND ((col0 > 1)) AND col0 > 7 AND col3 >= 5 OR (col3 > 1)) AND col1 < 1.23)

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col1 = 3.38 OR col3 > 8 OR ((col3 < 1 AND ((col0 > 1)) AND col0 > 7 AND col3 >= 5 OR (col3 > 1)) AND col1 < 1.23)
----

query I rowsort label-4410
SELECT pk FROM tab2 WHERE NOT (col1 = 3.38 OR col3 > 8 OR ((col3 < 1 AND ((col0 > 1)) AND col0 > 7 AND col3 >= 5 OR (col3 > 1)) AND col1 < 1.23))
----

statement ok
DELETE FROM tab3 WHERE col1 = 3.38 OR col3 > 8 OR ((col3 < 1 AND ((col0 > 1)) AND col0 > 7 AND col3 >= 5 OR (col3 > 1)) AND col1 < 1.23)

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col1 = 3.38 OR col3 > 8 OR ((col3 < 1 AND ((col0 > 1)) AND col0 > 7 AND col3 >= 5 OR (col3 > 1)) AND col1 < 1.23)
----

query I rowsort label-4410
SELECT pk FROM tab3 WHERE NOT (col1 = 3.38 OR col3 > 8 OR ((col3 < 1 AND ((col0 > 1)) AND col0 > 7 AND col3 >= 5 OR (col3 > 1)) AND col1 < 1.23))
----

statement ok
DELETE FROM tab4 WHERE col1 = 3.38 OR col3 > 8 OR ((col3 < 1 AND ((col0 > 1)) AND col0 > 7 AND col3 >= 5 OR (col3 > 1)) AND col1 < 1.23)

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col1 = 3.38 OR col3 > 8 OR ((col3 < 1 AND ((col0 > 1)) AND col0 > 7 AND col3 >= 5 OR (col3 > 1)) AND col1 < 1.23)
----

query I rowsort label-4410
SELECT pk FROM tab4 WHERE NOT (col1 = 3.38 OR col3 > 8 OR ((col3 < 1 AND ((col0 > 1)) AND col0 > 7 AND col3 >= 5 OR (col3 > 1)) AND col1 < 1.23))
----

statement ok
DROP TABLE tab0

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,4,5.29,'hzfgo',0,0.68,'ttwmg')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE UNIQUE INDEX idx_tab2_0 ON tab2 (col1)

statement ok
CREATE INDEX idx_tab2_1 ON tab2 (col4,col3)

statement ok
CREATE UNIQUE INDEX idx_tab2_3 ON tab2 (col0)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

statement ok
CREATE INDEX idx_tab3_0 ON tab3 (col0,col3)

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

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE INDEX idx_tab4_0 ON tab4 (col4 DESC,col3)

statement ok
CREATE INDEX idx_tab4_1 ON tab4 (col3 DESC)

statement ok
CREATE INDEX idx_tab4_2 ON tab4 (col4 DESC,col1 DESC)

statement ok
CREATE INDEX idx_tab4_4 ON tab4 (col1 DESC)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE col3 >= 4

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col3 >= 4
----

query I rowsort label-4425
SELECT pk FROM tab0 WHERE NOT (col3 >= 4)
----
0

statement ok
DELETE FROM tab1 WHERE col3 >= 4

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col3 >= 4
----

query I rowsort label-4425
SELECT pk FROM tab1 WHERE NOT (col3 >= 4)
----
0

statement ok
DELETE FROM tab2 WHERE col3 >= 4

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col3 >= 4
----

query I rowsort label-4425
SELECT pk FROM tab2 WHERE NOT (col3 >= 4)
----
0

statement ok
DELETE FROM tab3 WHERE col3 >= 4

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col3 >= 4
----

query I rowsort label-4425
SELECT pk FROM tab3 WHERE NOT (col3 >= 4)
----
0

statement ok
DELETE FROM tab4 WHERE col3 >= 4

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col3 >= 4
----

query I rowsort label-4425
SELECT pk FROM tab4 WHERE NOT (col3 >= 4)
----
0

statement ok
DELETE FROM tab0 WHERE col0 IN (0,8,5,8,6,7)

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col0 IN (0,8,5,8,6,7)
----

query I rowsort label-4440
SELECT pk FROM tab0 WHERE NOT (col0 IN (0,8,5,8,6,7))
----
0

statement ok
DELETE FROM tab1 WHERE col0 IN (0,8,5,8,6,7)

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col0 IN (0,8,5,8,6,7)
----

query I rowsort label-4440
SELECT pk FROM tab1 WHERE NOT (col0 IN (0,8,5,8,6,7))
----
0

statement ok
DELETE FROM tab2 WHERE col0 IN (0,8,5,8,6,7)

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col0 IN (0,8,5,8,6,7)
----

query I rowsort label-4440
SELECT pk FROM tab2 WHERE NOT (col0 IN (0,8,5,8,6,7))
----
0

statement ok
DELETE FROM tab3 WHERE col0 IN (0,8,5,8,6,7)

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col0 IN (0,8,5,8,6,7)
----

query I rowsort label-4440
SELECT pk FROM tab3 WHERE NOT (col0 IN (0,8,5,8,6,7))
----
0

statement ok
DELETE FROM tab4 WHERE col0 IN (0,8,5,8,6,7)

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col0 IN (0,8,5,8,6,7)
----

query I rowsort label-4440
SELECT pk FROM tab4 WHERE NOT (col0 IN (0,8,5,8,6,7))
----
0

statement ok
DELETE FROM tab0 WHERE col1 > 2.91

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col1 > 2.91
----

query I rowsort label-4455
SELECT pk FROM tab0 WHERE NOT (col1 > 2.91)
----

statement ok
DELETE FROM tab1 WHERE col1 > 2.91

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col1 > 2.91
----

query I rowsort label-4455
SELECT pk FROM tab1 WHERE NOT (col1 > 2.91)
----

statement ok
DELETE FROM tab2 WHERE col1 > 2.91

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col1 > 2.91
----

query I rowsort label-4455
SELECT pk FROM tab2 WHERE NOT (col1 > 2.91)
----

statement ok
DELETE FROM tab3 WHERE col1 > 2.91

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col1 > 2.91
----

query I rowsort label-4455
SELECT pk FROM tab3 WHERE NOT (col1 > 2.91)
----

statement ok
DELETE FROM tab4 WHERE col1 > 2.91

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col1 > 2.91
----

query I rowsort label-4455
SELECT pk FROM tab4 WHERE NOT (col1 > 2.91)
----

statement ok
DROP TABLE tab0

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,0,9.46,'dcmjn',0,2.46,'xfsfz')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE UNIQUE INDEX idx_tab2_1 ON tab2 (col1)

statement ok
CREATE INDEX idx_tab2_2 ON tab2 (col4 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab2_5 ON tab2 (col0)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

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

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

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

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

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE UNIQUE INDEX idx_tab4_0 ON tab4 (col3 DESC,col1 DESC,col4 DESC)

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

statement ok
CREATE UNIQUE INDEX idx_tab4_2 ON tab4 (col1 DESC,col3 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab4_5 ON tab4 (col4 DESC,col3)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE col3 = 9

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col3 = 9
----

query I rowsort label-4470
SELECT pk FROM tab0 WHERE NOT (col3 = 9)
----
0

statement ok
DELETE FROM tab1 WHERE col3 = 9

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col3 = 9
----

query I rowsort label-4470
SELECT pk FROM tab1 WHERE NOT (col3 = 9)
----
0

statement ok
DELETE FROM tab2 WHERE col3 = 9

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col3 = 9
----

query I rowsort label-4470
SELECT pk FROM tab2 WHERE NOT (col3 = 9)
----
0

statement ok
DELETE FROM tab3 WHERE col3 = 9

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col3 = 9
----

query I rowsort label-4470
SELECT pk FROM tab3 WHERE NOT (col3 = 9)
----
0

statement ok
DELETE FROM tab4 WHERE col3 = 9

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col3 = 9
----

query I rowsort label-4470
SELECT pk FROM tab4 WHERE NOT (col3 = 9)
----
0

statement ok
DELETE FROM tab0 WHERE col4 >= 1.41 AND (col0 > 8) AND ((((col0 > 7) AND col4 < 8.65 AND (col4 > 3.89) OR col4 < 4.23 OR col3 < 6))) OR col0 > 7

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col4 >= 1.41 AND (col0 > 8) AND ((((col0 > 7) AND col4 < 8.65 AND (col4 > 3.89) OR col4 < 4.23 OR col3 < 6))) OR col0 > 7
----

query I rowsort label-4485
SELECT pk FROM tab0 WHERE NOT (col4 >= 1.41 AND (col0 > 8) AND ((((col0 > 7) AND col4 < 8.65 AND (col4 > 3.89) OR col4 < 4.23 OR col3 < 6))) OR col0 > 7)
----
0

statement ok
DELETE FROM tab1 WHERE col4 >= 1.41 AND (col0 > 8) AND ((((col0 > 7) AND col4 < 8.65 AND (col4 > 3.89) OR col4 < 4.23 OR col3 < 6))) OR col0 > 7

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col4 >= 1.41 AND (col0 > 8) AND ((((col0 > 7) AND col4 < 8.65 AND (col4 > 3.89) OR col4 < 4.23 OR col3 < 6))) OR col0 > 7
----

query I rowsort label-4485
SELECT pk FROM tab1 WHERE NOT (col4 >= 1.41 AND (col0 > 8) AND ((((col0 > 7) AND col4 < 8.65 AND (col4 > 3.89) OR col4 < 4.23 OR col3 < 6))) OR col0 > 7)
----
0

statement ok
DELETE FROM tab2 WHERE col4 >= 1.41 AND (col0 > 8) AND ((((col0 > 7) AND col4 < 8.65 AND (col4 > 3.89) OR col4 < 4.23 OR col3 < 6))) OR col0 > 7

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col4 >= 1.41 AND (col0 > 8) AND ((((col0 > 7) AND col4 < 8.65 AND (col4 > 3.89) OR col4 < 4.23 OR col3 < 6))) OR col0 > 7
----

query I rowsort label-4485
SELECT pk FROM tab2 WHERE NOT (col4 >= 1.41 AND (col0 > 8) AND ((((col0 > 7) AND col4 < 8.65 AND (col4 > 3.89) OR col4 < 4.23 OR col3 < 6))) OR col0 > 7)
----
0

statement ok
DELETE FROM tab3 WHERE col4 >= 1.41 AND (col0 > 8) AND ((((col0 > 7) AND col4 < 8.65 AND (col4 > 3.89) OR col4 < 4.23 OR col3 < 6))) OR col0 > 7

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col4 >= 1.41 AND (col0 > 8) AND ((((col0 > 7) AND col4 < 8.65 AND (col4 > 3.89) OR col4 < 4.23 OR col3 < 6))) OR col0 > 7
----

query I rowsort label-4485
SELECT pk FROM tab3 WHERE NOT (col4 >= 1.41 AND (col0 > 8) AND ((((col0 > 7) AND col4 < 8.65 AND (col4 > 3.89) OR col4 < 4.23 OR col3 < 6))) OR col0 > 7)
----
0

statement ok
DELETE FROM tab4 WHERE col4 >= 1.41 AND (col0 > 8) AND ((((col0 > 7) AND col4 < 8.65 AND (col4 > 3.89) OR col4 < 4.23 OR col3 < 6))) OR col0 > 7

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col4 >= 1.41 AND (col0 > 8) AND ((((col0 > 7) AND col4 < 8.65 AND (col4 > 3.89) OR col4 < 4.23 OR col3 < 6))) OR col0 > 7
----

query I rowsort label-4485
SELECT pk FROM tab4 WHERE NOT (col4 >= 1.41 AND (col0 > 8) AND ((((col0 > 7) AND col4 < 8.65 AND (col4 > 3.89) OR col4 < 4.23 OR col3 < 6))) OR col0 > 7)
----
0

statement ok
DELETE FROM tab0 WHERE col0 BETWEEN 2 AND 7 AND col3 > 7 OR col4 > 0.41 OR (col3 = 1)

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col0 BETWEEN 2 AND 7 AND col3 > 7 OR col4 > 0.41 OR (col3 = 1)
----

query I rowsort label-4500
SELECT pk FROM tab0 WHERE NOT (col0 BETWEEN 2 AND 7 AND col3 > 7 OR col4 > 0.41 OR (col3 = 1))
----

statement ok
DELETE FROM tab1 WHERE col0 BETWEEN 2 AND 7 AND col3 > 7 OR col4 > 0.41 OR (col3 = 1)

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col0 BETWEEN 2 AND 7 AND col3 > 7 OR col4 > 0.41 OR (col3 = 1)
----

query I rowsort label-4500
SELECT pk FROM tab1 WHERE NOT (col0 BETWEEN 2 AND 7 AND col3 > 7 OR col4 > 0.41 OR (col3 = 1))
----

statement ok
DELETE FROM tab2 WHERE col0 BETWEEN 2 AND 7 AND col3 > 7 OR col4 > 0.41 OR (col3 = 1)

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col0 BETWEEN 2 AND 7 AND col3 > 7 OR col4 > 0.41 OR (col3 = 1)
----

query I rowsort label-4500
SELECT pk FROM tab2 WHERE NOT (col0 BETWEEN 2 AND 7 AND col3 > 7 OR col4 > 0.41 OR (col3 = 1))
----

statement ok
DELETE FROM tab3 WHERE col0 BETWEEN 2 AND 7 AND col3 > 7 OR col4 > 0.41 OR (col3 = 1)

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col0 BETWEEN 2 AND 7 AND col3 > 7 OR col4 > 0.41 OR (col3 = 1)
----

query I rowsort label-4500
SELECT pk FROM tab3 WHERE NOT (col0 BETWEEN 2 AND 7 AND col3 > 7 OR col4 > 0.41 OR (col3 = 1))
----

statement ok
DELETE FROM tab4 WHERE col0 BETWEEN 2 AND 7 AND col3 > 7 OR col4 > 0.41 OR (col3 = 1)

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col0 BETWEEN 2 AND 7 AND col3 > 7 OR col4 > 0.41 OR (col3 = 1)
----

query I rowsort label-4500
SELECT pk FROM tab4 WHERE NOT (col0 BETWEEN 2 AND 7 AND col3 > 7 OR col4 > 0.41 OR (col3 = 1))
----

statement ok
DROP TABLE tab0

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,0,8.44,'vydrv',5,1.90,'aobzx')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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,col4)

statement ok
CREATE UNIQUE INDEX idx_tab2_1 ON tab2 (col1 DESC,col0)

statement ok
CREATE INDEX idx_tab2_2 ON tab2 (col4 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab2_3 ON tab2 (col3 DESC,col0)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

statement ok
CREATE UNIQUE INDEX idx_tab3_0 ON tab3 (col1)

statement ok
CREATE INDEX idx_tab3_1 ON tab3 (col0 DESC)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE UNIQUE INDEX idx_tab4_0 ON tab4 (col1 DESC)

statement ok
CREATE INDEX idx_tab4_1 ON tab4 (col4)

statement ok
CREATE UNIQUE INDEX idx_tab4_3 ON tab4 (col3)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE col1 > 6.99

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col1 > 6.99
----

query I rowsort label-4515
SELECT pk FROM tab0 WHERE NOT (col1 > 6.99)
----

statement ok
DELETE FROM tab1 WHERE col1 > 6.99

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col1 > 6.99
----

query I rowsort label-4515
SELECT pk FROM tab1 WHERE NOT (col1 > 6.99)
----

statement ok
DELETE FROM tab2 WHERE col1 > 6.99

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col1 > 6.99
----

query I rowsort label-4515
SELECT pk FROM tab2 WHERE NOT (col1 > 6.99)
----

statement ok
DELETE FROM tab3 WHERE col1 > 6.99

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col1 > 6.99
----

query I rowsort label-4515
SELECT pk FROM tab3 WHERE NOT (col1 > 6.99)
----

statement ok
DELETE FROM tab4 WHERE col1 > 6.99

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col1 > 6.99
----

query I rowsort label-4515
SELECT pk FROM tab4 WHERE NOT (col1 > 6.99)
----

statement ok
DROP TABLE tab0

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,5,4.58,'ghiio',3,7.47,'mcejt')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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_1 ON tab2 (col4,col3 DESC,col1)

statement ok
CREATE UNIQUE INDEX idx_tab2_3 ON tab2 (col0)

statement ok
CREATE INDEX idx_tab2_5 ON tab2 (col1)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

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

statement ok
CREATE UNIQUE INDEX idx_tab3_2 ON tab3 (col0)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE UNIQUE INDEX idx_tab4_0 ON tab4 (col1)

statement ok
CREATE INDEX idx_tab4_2 ON tab4 (col0 DESC)

statement ok
CREATE INDEX idx_tab4_3 ON tab4 (col4 DESC,col3)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DROP TABLE tab0

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,4,0.4,'zjiux',7,5.49,'fnjro')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE UNIQUE INDEX idx_tab2_0 ON tab2 (col3)

statement ok
CREATE INDEX idx_tab2_1 ON tab2 (col0)

statement ok
CREATE UNIQUE INDEX idx_tab2_2 ON tab2 (col1)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

statement ok
CREATE UNIQUE INDEX idx_tab3_2 ON tab3 (col0)

statement ok
CREATE UNIQUE INDEX idx_tab3_3 ON tab3 (col3,col1)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE INDEX idx_tab4_0 ON tab4 (col0)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE col1 > 2.23 OR col3 < 4 AND col4 > 2.44 AND ((col3 <= 5)) AND ((col0 <= 4)) AND col0 < 3 AND (col4 <= 3.30 OR ((col3 < 0) AND col0 >= 1 AND (col0 <= 0 OR col3 <= 9 AND col4 < 3.31 AND col0 > 2 OR (col0 >= 3 OR col3 IN (7,7,0,6,8) OR (col0 > 4 AND col3 < 0) AND col1 < 8.26) OR col4 IS NULL OR (col0 BETWEEN 9 AND 0 OR col0 > 3 AND col0 >= 7 AND (col3 >= 4 OR col0 <= 4) OR col0 < 6 OR col3 BETWEEN 9 AND 6 OR col3 < 0) AND (col3 <= 0) OR (col1 = 0.56) OR col1 < 7.35)) AND (col0 > 9)) AND col3 < 7 OR col3 IS NULL

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col1 > 2.23 OR col3 < 4 AND col4 > 2.44 AND ((col3 <= 5)) AND ((col0 <= 4)) AND col0 < 3 AND (col4 <= 3.30 OR ((col3 < 0) AND col0 >= 1 AND (col0 <= 0 OR col3 <= 9 AND col4 < 3.31 AND col0 > 2 OR (col0 >= 3 OR col3 IN (7,7,0,6,8) OR (col0 > 4 AND col3 < 0) AND col1 < 8.26) OR col4 IS NULL OR (col0 BETWEEN 9 AND 0 OR col0 > 3 AND col0 >= 7 AND (col3 >= 4 OR col0 <= 4) OR col0 < 6 OR col3 BETWEEN 9 AND 6 OR col3 < 0) AND (col3 <= 0) OR (col1 = 0.56) OR col1 < 7.35)) AND (col0 > 9)) AND col3 < 7 OR col3 IS NULL
----

query I rowsort label-4530
SELECT pk FROM tab0 WHERE NOT (col1 > 2.23 OR col3 < 4 AND col4 > 2.44 AND ((col3 <= 5)) AND ((col0 <= 4)) AND col0 < 3 AND (col4 <= 3.30 OR ((col3 < 0) AND col0 >= 1 AND (col0 <= 0 OR col3 <= 9 AND col4 < 3.31 AND col0 > 2 OR (col0 >= 3 OR col3 IN (7,7,0,6,8) OR (col0 > 4 AND col3 < 0) AND col1 < 8.26) OR col4 IS NULL OR (col0 BETWEEN 9 AND 0 OR col0 > 3 AND col0 >= 7 AND (col3 >= 4 OR col0 <= 4) OR col0 < 6 OR col3 BETWEEN 9 AND 6 OR col3 < 0) AND (col3 <= 0) OR (col1 = 0.56) OR col1 < 7.35)) AND (col0 > 9)) AND col3 < 7 OR col3 IS NULL)
----
0

statement ok
DELETE FROM tab1 WHERE col1 > 2.23 OR col3 < 4 AND col4 > 2.44 AND ((col3 <= 5)) AND ((col0 <= 4)) AND col0 < 3 AND (col4 <= 3.30 OR ((col3 < 0) AND col0 >= 1 AND (col0 <= 0 OR col3 <= 9 AND col4 < 3.31 AND col0 > 2 OR (col0 >= 3 OR col3 IN (7,7,0,6,8) OR (col0 > 4 AND col3 < 0) AND col1 < 8.26) OR col4 IS NULL OR (col0 BETWEEN 9 AND 0 OR col0 > 3 AND col0 >= 7 AND (col3 >= 4 OR col0 <= 4) OR col0 < 6 OR col3 BETWEEN 9 AND 6 OR col3 < 0) AND (col3 <= 0) OR (col1 = 0.56) OR col1 < 7.35)) AND (col0 > 9)) AND col3 < 7 OR col3 IS NULL

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col1 > 2.23 OR col3 < 4 AND col4 > 2.44 AND ((col3 <= 5)) AND ((col0 <= 4)) AND col0 < 3 AND (col4 <= 3.30 OR ((col3 < 0) AND col0 >= 1 AND (col0 <= 0 OR col3 <= 9 AND col4 < 3.31 AND col0 > 2 OR (col0 >= 3 OR col3 IN (7,7,0,6,8) OR (col0 > 4 AND col3 < 0) AND col1 < 8.26) OR col4 IS NULL OR (col0 BETWEEN 9 AND 0 OR col0 > 3 AND col0 >= 7 AND (col3 >= 4 OR col0 <= 4) OR col0 < 6 OR col3 BETWEEN 9 AND 6 OR col3 < 0) AND (col3 <= 0) OR (col1 = 0.56) OR col1 < 7.35)) AND (col0 > 9)) AND col3 < 7 OR col3 IS NULL
----

query I rowsort label-4530
SELECT pk FROM tab1 WHERE NOT (col1 > 2.23 OR col3 < 4 AND col4 > 2.44 AND ((col3 <= 5)) AND ((col0 <= 4)) AND col0 < 3 AND (col4 <= 3.30 OR ((col3 < 0) AND col0 >= 1 AND (col0 <= 0 OR col3 <= 9 AND col4 < 3.31 AND col0 > 2 OR (col0 >= 3 OR col3 IN (7,7,0,6,8) OR (col0 > 4 AND col3 < 0) AND col1 < 8.26) OR col4 IS NULL OR (col0 BETWEEN 9 AND 0 OR col0 > 3 AND col0 >= 7 AND (col3 >= 4 OR col0 <= 4) OR col0 < 6 OR col3 BETWEEN 9 AND 6 OR col3 < 0) AND (col3 <= 0) OR (col1 = 0.56) OR col1 < 7.35)) AND (col0 > 9)) AND col3 < 7 OR col3 IS NULL)
----
0

statement ok
DELETE FROM tab2 WHERE col1 > 2.23 OR col3 < 4 AND col4 > 2.44 AND ((col3 <= 5)) AND ((col0 <= 4)) AND col0 < 3 AND (col4 <= 3.30 OR ((col3 < 0) AND col0 >= 1 AND (col0 <= 0 OR col3 <= 9 AND col4 < 3.31 AND col0 > 2 OR (col0 >= 3 OR col3 IN (7,7,0,6,8) OR (col0 > 4 AND col3 < 0) AND col1 < 8.26) OR col4 IS NULL OR (col0 BETWEEN 9 AND 0 OR col0 > 3 AND col0 >= 7 AND (col3 >= 4 OR col0 <= 4) OR col0 < 6 OR col3 BETWEEN 9 AND 6 OR col3 < 0) AND (col3 <= 0) OR (col1 = 0.56) OR col1 < 7.35)) AND (col0 > 9)) AND col3 < 7 OR col3 IS NULL

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col1 > 2.23 OR col3 < 4 AND col4 > 2.44 AND ((col3 <= 5)) AND ((col0 <= 4)) AND col0 < 3 AND (col4 <= 3.30 OR ((col3 < 0) AND col0 >= 1 AND (col0 <= 0 OR col3 <= 9 AND col4 < 3.31 AND col0 > 2 OR (col0 >= 3 OR col3 IN (7,7,0,6,8) OR (col0 > 4 AND col3 < 0) AND col1 < 8.26) OR col4 IS NULL OR (col0 BETWEEN 9 AND 0 OR col0 > 3 AND col0 >= 7 AND (col3 >= 4 OR col0 <= 4) OR col0 < 6 OR col3 BETWEEN 9 AND 6 OR col3 < 0) AND (col3 <= 0) OR (col1 = 0.56) OR col1 < 7.35)) AND (col0 > 9)) AND col3 < 7 OR col3 IS NULL
----

query I rowsort label-4530
SELECT pk FROM tab2 WHERE NOT (col1 > 2.23 OR col3 < 4 AND col4 > 2.44 AND ((col3 <= 5)) AND ((col0 <= 4)) AND col0 < 3 AND (col4 <= 3.30 OR ((col3 < 0) AND col0 >= 1 AND (col0 <= 0 OR col3 <= 9 AND col4 < 3.31 AND col0 > 2 OR (col0 >= 3 OR col3 IN (7,7,0,6,8) OR (col0 > 4 AND col3 < 0) AND col1 < 8.26) OR col4 IS NULL OR (col0 BETWEEN 9 AND 0 OR col0 > 3 AND col0 >= 7 AND (col3 >= 4 OR col0 <= 4) OR col0 < 6 OR col3 BETWEEN 9 AND 6 OR col3 < 0) AND (col3 <= 0) OR (col1 = 0.56) OR col1 < 7.35)) AND (col0 > 9)) AND col3 < 7 OR col3 IS NULL)
----
0

statement ok
DELETE FROM tab3 WHERE col1 > 2.23 OR col3 < 4 AND col4 > 2.44 AND ((col3 <= 5)) AND ((col0 <= 4)) AND col0 < 3 AND (col4 <= 3.30 OR ((col3 < 0) AND col0 >= 1 AND (col0 <= 0 OR col3 <= 9 AND col4 < 3.31 AND col0 > 2 OR (col0 >= 3 OR col3 IN (7,7,0,6,8) OR (col0 > 4 AND col3 < 0) AND col1 < 8.26) OR col4 IS NULL OR (col0 BETWEEN 9 AND 0 OR col0 > 3 AND col0 >= 7 AND (col3 >= 4 OR col0 <= 4) OR col0 < 6 OR col3 BETWEEN 9 AND 6 OR col3 < 0) AND (col3 <= 0) OR (col1 = 0.56) OR col1 < 7.35)) AND (col0 > 9)) AND col3 < 7 OR col3 IS NULL

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col1 > 2.23 OR col3 < 4 AND col4 > 2.44 AND ((col3 <= 5)) AND ((col0 <= 4)) AND col0 < 3 AND (col4 <= 3.30 OR ((col3 < 0) AND col0 >= 1 AND (col0 <= 0 OR col3 <= 9 AND col4 < 3.31 AND col0 > 2 OR (col0 >= 3 OR col3 IN (7,7,0,6,8) OR (col0 > 4 AND col3 < 0) AND col1 < 8.26) OR col4 IS NULL OR (col0 BETWEEN 9 AND 0 OR col0 > 3 AND col0 >= 7 AND (col3 >= 4 OR col0 <= 4) OR col0 < 6 OR col3 BETWEEN 9 AND 6 OR col3 < 0) AND (col3 <= 0) OR (col1 = 0.56) OR col1 < 7.35)) AND (col0 > 9)) AND col3 < 7 OR col3 IS NULL
----

query I rowsort label-4530
SELECT pk FROM tab3 WHERE NOT (col1 > 2.23 OR col3 < 4 AND col4 > 2.44 AND ((col3 <= 5)) AND ((col0 <= 4)) AND col0 < 3 AND (col4 <= 3.30 OR ((col3 < 0) AND col0 >= 1 AND (col0 <= 0 OR col3 <= 9 AND col4 < 3.31 AND col0 > 2 OR (col0 >= 3 OR col3 IN (7,7,0,6,8) OR (col0 > 4 AND col3 < 0) AND col1 < 8.26) OR col4 IS NULL OR (col0 BETWEEN 9 AND 0 OR col0 > 3 AND col0 >= 7 AND (col3 >= 4 OR col0 <= 4) OR col0 < 6 OR col3 BETWEEN 9 AND 6 OR col3 < 0) AND (col3 <= 0) OR (col1 = 0.56) OR col1 < 7.35)) AND (col0 > 9)) AND col3 < 7 OR col3 IS NULL)
----
0

statement ok
DELETE FROM tab4 WHERE col1 > 2.23 OR col3 < 4 AND col4 > 2.44 AND ((col3 <= 5)) AND ((col0 <= 4)) AND col0 < 3 AND (col4 <= 3.30 OR ((col3 < 0) AND col0 >= 1 AND (col0 <= 0 OR col3 <= 9 AND col4 < 3.31 AND col0 > 2 OR (col0 >= 3 OR col3 IN (7,7,0,6,8) OR (col0 > 4 AND col3 < 0) AND col1 < 8.26) OR col4 IS NULL OR (col0 BETWEEN 9 AND 0 OR col0 > 3 AND col0 >= 7 AND (col3 >= 4 OR col0 <= 4) OR col0 < 6 OR col3 BETWEEN 9 AND 6 OR col3 < 0) AND (col3 <= 0) OR (col1 = 0.56) OR col1 < 7.35)) AND (col0 > 9)) AND col3 < 7 OR col3 IS NULL

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col1 > 2.23 OR col3 < 4 AND col4 > 2.44 AND ((col3 <= 5)) AND ((col0 <= 4)) AND col0 < 3 AND (col4 <= 3.30 OR ((col3 < 0) AND col0 >= 1 AND (col0 <= 0 OR col3 <= 9 AND col4 < 3.31 AND col0 > 2 OR (col0 >= 3 OR col3 IN (7,7,0,6,8) OR (col0 > 4 AND col3 < 0) AND col1 < 8.26) OR col4 IS NULL OR (col0 BETWEEN 9 AND 0 OR col0 > 3 AND col0 >= 7 AND (col3 >= 4 OR col0 <= 4) OR col0 < 6 OR col3 BETWEEN 9 AND 6 OR col3 < 0) AND (col3 <= 0) OR (col1 = 0.56) OR col1 < 7.35)) AND (col0 > 9)) AND col3 < 7 OR col3 IS NULL
----

query I rowsort label-4530
SELECT pk FROM tab4 WHERE NOT (col1 > 2.23 OR col3 < 4 AND col4 > 2.44 AND ((col3 <= 5)) AND ((col0 <= 4)) AND col0 < 3 AND (col4 <= 3.30 OR ((col3 < 0) AND col0 >= 1 AND (col0 <= 0 OR col3 <= 9 AND col4 < 3.31 AND col0 > 2 OR (col0 >= 3 OR col3 IN (7,7,0,6,8) OR (col0 > 4 AND col3 < 0) AND col1 < 8.26) OR col4 IS NULL OR (col0 BETWEEN 9 AND 0 OR col0 > 3 AND col0 >= 7 AND (col3 >= 4 OR col0 <= 4) OR col0 < 6 OR col3 BETWEEN 9 AND 6 OR col3 < 0) AND (col3 <= 0) OR (col1 = 0.56) OR col1 < 7.35)) AND (col0 > 9)) AND col3 < 7 OR col3 IS NULL)
----
0

statement ok
DELETE FROM tab0 WHERE (col1 <= 5.63) AND col3 IS NULL

query I rowsort label-empty
SELECT pk FROM tab0 WHERE (col1 <= 5.63) AND col3 IS NULL
----

query I rowsort label-4545
SELECT pk FROM tab0 WHERE NOT ((col1 <= 5.63) AND col3 IS NULL)
----
0

statement ok
DELETE FROM tab1 WHERE (col1 <= 5.63) AND col3 IS NULL

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (col1 <= 5.63) AND col3 IS NULL
----

query I rowsort label-4545
SELECT pk FROM tab1 WHERE NOT ((col1 <= 5.63) AND col3 IS NULL)
----
0

statement ok
DELETE FROM tab2 WHERE (col1 <= 5.63) AND col3 IS NULL

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (col1 <= 5.63) AND col3 IS NULL
----

query I rowsort label-4545
SELECT pk FROM tab2 WHERE NOT ((col1 <= 5.63) AND col3 IS NULL)
----
0

statement ok
DELETE FROM tab3 WHERE (col1 <= 5.63) AND col3 IS NULL

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (col1 <= 5.63) AND col3 IS NULL
----

query I rowsort label-4545
SELECT pk FROM tab3 WHERE NOT ((col1 <= 5.63) AND col3 IS NULL)
----
0

statement ok
DELETE FROM tab4 WHERE (col1 <= 5.63) AND col3 IS NULL

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (col1 <= 5.63) AND col3 IS NULL
----

query I rowsort label-4545
SELECT pk FROM tab4 WHERE NOT ((col1 <= 5.63) AND col3 IS NULL)
----
0

statement ok
DELETE FROM tab0 WHERE col3 < 1

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col3 < 1
----

query I rowsort label-4560
SELECT pk FROM tab0 WHERE NOT (col3 < 1)
----
0

statement ok
DELETE FROM tab1 WHERE col3 < 1

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col3 < 1
----

query I rowsort label-4560
SELECT pk FROM tab1 WHERE NOT (col3 < 1)
----
0

statement ok
DELETE FROM tab2 WHERE col3 < 1

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col3 < 1
----

query I rowsort label-4560
SELECT pk FROM tab2 WHERE NOT (col3 < 1)
----
0

statement ok
DELETE FROM tab3 WHERE col3 < 1

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col3 < 1
----

query I rowsort label-4560
SELECT pk FROM tab3 WHERE NOT (col3 < 1)
----
0

statement ok
DELETE FROM tab4 WHERE col3 < 1

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col3 < 1
----

query I rowsort label-4560
SELECT pk FROM tab4 WHERE NOT (col3 < 1)
----
0

statement ok
DELETE FROM tab0 WHERE ((col0 > 8))

query I rowsort label-empty
SELECT pk FROM tab0 WHERE ((col0 > 8))
----

query I rowsort label-4575
SELECT pk FROM tab0 WHERE NOT (((col0 > 8)))
----
0

statement ok
DELETE FROM tab1 WHERE ((col0 > 8))

query I rowsort label-empty
SELECT pk FROM tab1 WHERE ((col0 > 8))
----

query I rowsort label-4575
SELECT pk FROM tab1 WHERE NOT (((col0 > 8)))
----
0

statement ok
DELETE FROM tab2 WHERE ((col0 > 8))

query I rowsort label-empty
SELECT pk FROM tab2 WHERE ((col0 > 8))
----

query I rowsort label-4575
SELECT pk FROM tab2 WHERE NOT (((col0 > 8)))
----
0

statement ok
DELETE FROM tab3 WHERE ((col0 > 8))

query I rowsort label-empty
SELECT pk FROM tab3 WHERE ((col0 > 8))
----

query I rowsort label-4575
SELECT pk FROM tab3 WHERE NOT (((col0 > 8)))
----
0

statement ok
DELETE FROM tab4 WHERE ((col0 > 8))

query I rowsort label-empty
SELECT pk FROM tab4 WHERE ((col0 > 8))
----

query I rowsort label-4575
SELECT pk FROM tab4 WHERE NOT (((col0 > 8)))
----
0

statement ok
DELETE FROM tab0 WHERE (col4 >= 8.97)

query I rowsort label-empty
SELECT pk FROM tab0 WHERE (col4 >= 8.97)
----

query I rowsort label-4590
SELECT pk FROM tab0 WHERE NOT ((col4 >= 8.97))
----
0

statement ok
DELETE FROM tab1 WHERE (col4 >= 8.97)

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (col4 >= 8.97)
----

query I rowsort label-4590
SELECT pk FROM tab1 WHERE NOT ((col4 >= 8.97))
----
0

statement ok
DELETE FROM tab2 WHERE (col4 >= 8.97)

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (col4 >= 8.97)
----

query I rowsort label-4590
SELECT pk FROM tab2 WHERE NOT ((col4 >= 8.97))
----
0

statement ok
DELETE FROM tab3 WHERE (col4 >= 8.97)

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (col4 >= 8.97)
----

query I rowsort label-4590
SELECT pk FROM tab3 WHERE NOT ((col4 >= 8.97))
----
0

statement ok
DELETE FROM tab4 WHERE (col4 >= 8.97)

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (col4 >= 8.97)
----

query I rowsort label-4590
SELECT pk FROM tab4 WHERE NOT ((col4 >= 8.97))
----
0

statement ok
DELETE FROM tab0 WHERE col0 >= 2 OR (col4 < 0.41)

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col0 >= 2 OR (col4 < 0.41)
----

query I rowsort label-4605
SELECT pk FROM tab0 WHERE NOT (col0 >= 2 OR (col4 < 0.41))
----

statement ok
DELETE FROM tab1 WHERE col0 >= 2 OR (col4 < 0.41)

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col0 >= 2 OR (col4 < 0.41)
----

query I rowsort label-4605
SELECT pk FROM tab1 WHERE NOT (col0 >= 2 OR (col4 < 0.41))
----

statement ok
DELETE FROM tab2 WHERE col0 >= 2 OR (col4 < 0.41)

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col0 >= 2 OR (col4 < 0.41)
----

query I rowsort label-4605
SELECT pk FROM tab2 WHERE NOT (col0 >= 2 OR (col4 < 0.41))
----

statement ok
DELETE FROM tab3 WHERE col0 >= 2 OR (col4 < 0.41)

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col0 >= 2 OR (col4 < 0.41)
----

query I rowsort label-4605
SELECT pk FROM tab3 WHERE NOT (col0 >= 2 OR (col4 < 0.41))
----

statement ok
DELETE FROM tab4 WHERE col0 >= 2 OR (col4 < 0.41)

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col0 >= 2 OR (col4 < 0.41)
----

query I rowsort label-4605
SELECT pk FROM tab4 WHERE NOT (col0 >= 2 OR (col4 < 0.41))
----

statement ok
DROP TABLE tab0

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,7,9.74,'vzpgm',6,4.14,'kasbv')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE UNIQUE INDEX idx_tab2_0 ON tab2 (col3 DESC)

statement ok
CREATE INDEX idx_tab2_1 ON tab2 (col0,col1 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab2_5 ON tab2 (col1)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

statement ok
CREATE INDEX idx_tab3_0 ON tab3 (col0 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab3_3 ON tab3 (col3)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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,col3 DESC)

statement ok
CREATE INDEX idx_tab4_1 ON tab4 (col3)

statement ok
CREATE INDEX idx_tab4_3 ON tab4 (col4)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE (col3 = 7)

query I rowsort label-empty
SELECT pk FROM tab0 WHERE (col3 = 7)
----

query I rowsort label-4620
SELECT pk FROM tab0 WHERE NOT ((col3 = 7))
----
0

statement ok
DELETE FROM tab1 WHERE (col3 = 7)

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (col3 = 7)
----

query I rowsort label-4620
SELECT pk FROM tab1 WHERE NOT ((col3 = 7))
----
0

statement ok
DELETE FROM tab2 WHERE (col3 = 7)

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (col3 = 7)
----

query I rowsort label-4620
SELECT pk FROM tab2 WHERE NOT ((col3 = 7))
----
0

statement ok
DELETE FROM tab3 WHERE (col3 = 7)

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (col3 = 7)
----

query I rowsort label-4620
SELECT pk FROM tab3 WHERE NOT ((col3 = 7))
----
0

statement ok
DELETE FROM tab4 WHERE (col3 = 7)

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (col3 = 7)
----

query I rowsort label-4620
SELECT pk FROM tab4 WHERE NOT ((col3 = 7))
----
0

statement ok
DELETE FROM tab0 WHERE col1 >= 0.55

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col1 >= 0.55
----

query I rowsort label-4635
SELECT pk FROM tab0 WHERE NOT (col1 >= 0.55)
----

statement ok
DELETE FROM tab1 WHERE col1 >= 0.55

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col1 >= 0.55
----

query I rowsort label-4635
SELECT pk FROM tab1 WHERE NOT (col1 >= 0.55)
----

statement ok
DELETE FROM tab2 WHERE col1 >= 0.55

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col1 >= 0.55
----

query I rowsort label-4635
SELECT pk FROM tab2 WHERE NOT (col1 >= 0.55)
----

statement ok
DELETE FROM tab3 WHERE col1 >= 0.55

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col1 >= 0.55
----

query I rowsort label-4635
SELECT pk FROM tab3 WHERE NOT (col1 >= 0.55)
----

statement ok
DELETE FROM tab4 WHERE col1 >= 0.55

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col1 >= 0.55
----

query I rowsort label-4635
SELECT pk FROM tab4 WHERE NOT (col1 >= 0.55)
----

statement ok
DROP TABLE tab0

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,9,5.96,'preiv',9,7.53,'kxdjz')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE UNIQUE INDEX idx_tab2_1 ON tab2 (col1,col0 DESC)

statement ok
CREATE INDEX idx_tab2_2 ON tab2 (col3 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab2_4 ON tab2 (col0)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

statement ok
CREATE INDEX idx_tab3_0 ON tab3 (col4)

statement ok
CREATE INDEX idx_tab3_1 ON tab3 (col1 DESC)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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)

statement ok
CREATE UNIQUE INDEX idx_tab4_1 ON tab4 (col3 DESC)

statement ok
CREATE INDEX idx_tab4_3 ON tab4 (col4 DESC,col1)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE col1 IS NULL AND col3 >= 8 AND col1 < 8.91 OR col3 >= 0 AND col0 <= 0

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col1 IS NULL AND col3 >= 8 AND col1 < 8.91 OR col3 >= 0 AND col0 <= 0
----

query I rowsort label-4650
SELECT pk FROM tab0 WHERE NOT (col1 IS NULL AND col3 >= 8 AND col1 < 8.91 OR col3 >= 0 AND col0 <= 0)
----
0

statement ok
DELETE FROM tab1 WHERE col1 IS NULL AND col3 >= 8 AND col1 < 8.91 OR col3 >= 0 AND col0 <= 0

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col1 IS NULL AND col3 >= 8 AND col1 < 8.91 OR col3 >= 0 AND col0 <= 0
----

query I rowsort label-4650
SELECT pk FROM tab1 WHERE NOT (col1 IS NULL AND col3 >= 8 AND col1 < 8.91 OR col3 >= 0 AND col0 <= 0)
----
0

statement ok
DELETE FROM tab2 WHERE col1 IS NULL AND col3 >= 8 AND col1 < 8.91 OR col3 >= 0 AND col0 <= 0

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col1 IS NULL AND col3 >= 8 AND col1 < 8.91 OR col3 >= 0 AND col0 <= 0
----

query I rowsort label-4650
SELECT pk FROM tab2 WHERE NOT (col1 IS NULL AND col3 >= 8 AND col1 < 8.91 OR col3 >= 0 AND col0 <= 0)
----
0

statement ok
DELETE FROM tab3 WHERE col1 IS NULL AND col3 >= 8 AND col1 < 8.91 OR col3 >= 0 AND col0 <= 0

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col1 IS NULL AND col3 >= 8 AND col1 < 8.91 OR col3 >= 0 AND col0 <= 0
----

query I rowsort label-4650
SELECT pk FROM tab3 WHERE NOT (col1 IS NULL AND col3 >= 8 AND col1 < 8.91 OR col3 >= 0 AND col0 <= 0)
----
0

statement ok
DELETE FROM tab4 WHERE col1 IS NULL AND col3 >= 8 AND col1 < 8.91 OR col3 >= 0 AND col0 <= 0

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col1 IS NULL AND col3 >= 8 AND col1 < 8.91 OR col3 >= 0 AND col0 <= 0
----

query I rowsort label-4650
SELECT pk FROM tab4 WHERE NOT (col1 IS NULL AND col3 >= 8 AND col1 < 8.91 OR col3 >= 0 AND col0 <= 0)
----
0

statement ok
DELETE FROM tab0 WHERE col3 > 1 OR col4 >= 3.12

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col3 > 1 OR col4 >= 3.12
----

query I rowsort label-4665
SELECT pk FROM tab0 WHERE NOT (col3 > 1 OR col4 >= 3.12)
----

statement ok
DELETE FROM tab1 WHERE col3 > 1 OR col4 >= 3.12

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col3 > 1 OR col4 >= 3.12
----

query I rowsort label-4665
SELECT pk FROM tab1 WHERE NOT (col3 > 1 OR col4 >= 3.12)
----

statement ok
DELETE FROM tab2 WHERE col3 > 1 OR col4 >= 3.12

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col3 > 1 OR col4 >= 3.12
----

query I rowsort label-4665
SELECT pk FROM tab2 WHERE NOT (col3 > 1 OR col4 >= 3.12)
----

statement ok
DELETE FROM tab3 WHERE col3 > 1 OR col4 >= 3.12

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col3 > 1 OR col4 >= 3.12
----

query I rowsort label-4665
SELECT pk FROM tab3 WHERE NOT (col3 > 1 OR col4 >= 3.12)
----

statement ok
DELETE FROM tab4 WHERE col3 > 1 OR col4 >= 3.12

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col3 > 1 OR col4 >= 3.12
----

query I rowsort label-4665
SELECT pk FROM tab4 WHERE NOT (col3 > 1 OR col4 >= 3.12)
----

statement ok
DROP TABLE tab0

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,7,3.40,'wmmmj',0,3.74,'jekjj')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE UNIQUE INDEX idx_tab2_0 ON tab2 (col4 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab2_1 ON tab2 (col3 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab2_3 ON tab2 (col0)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

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

statement ok
CREATE INDEX idx_tab3_1 ON tab3 (col4)

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

statement ok
CREATE INDEX idx_tab3_5 ON tab3 (col3 DESC)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE INDEX idx_tab4_0 ON tab4 (col3 DESC,col4 DESC)

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

statement ok
CREATE UNIQUE INDEX idx_tab4_3 ON tab4 (col3 DESC,col1 DESC)

statement ok
CREATE INDEX idx_tab4_4 ON tab4 (col4)

statement ok
CREATE INDEX idx_tab4_5 ON tab4 (col1 DESC,col3 DESC)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE ((col3 <= 6) OR col0 > 7 OR col3 <= 6)

query I rowsort label-empty
SELECT pk FROM tab0 WHERE ((col3 <= 6) OR col0 > 7 OR col3 <= 6)
----

query I rowsort label-4680
SELECT pk FROM tab0 WHERE NOT (((col3 <= 6) OR col0 > 7 OR col3 <= 6))
----

statement ok
DELETE FROM tab1 WHERE ((col3 <= 6) OR col0 > 7 OR col3 <= 6)

query I rowsort label-empty
SELECT pk FROM tab1 WHERE ((col3 <= 6) OR col0 > 7 OR col3 <= 6)
----

query I rowsort label-4680
SELECT pk FROM tab1 WHERE NOT (((col3 <= 6) OR col0 > 7 OR col3 <= 6))
----

statement ok
DELETE FROM tab2 WHERE ((col3 <= 6) OR col0 > 7 OR col3 <= 6)

query I rowsort label-empty
SELECT pk FROM tab2 WHERE ((col3 <= 6) OR col0 > 7 OR col3 <= 6)
----

query I rowsort label-4680
SELECT pk FROM tab2 WHERE NOT (((col3 <= 6) OR col0 > 7 OR col3 <= 6))
----

statement ok
DELETE FROM tab3 WHERE ((col3 <= 6) OR col0 > 7 OR col3 <= 6)

query I rowsort label-empty
SELECT pk FROM tab3 WHERE ((col3 <= 6) OR col0 > 7 OR col3 <= 6)
----

query I rowsort label-4680
SELECT pk FROM tab3 WHERE NOT (((col3 <= 6) OR col0 > 7 OR col3 <= 6))
----

statement ok
DELETE FROM tab4 WHERE ((col3 <= 6) OR col0 > 7 OR col3 <= 6)

query I rowsort label-empty
SELECT pk FROM tab4 WHERE ((col3 <= 6) OR col0 > 7 OR col3 <= 6)
----

query I rowsort label-4680
SELECT pk FROM tab4 WHERE NOT (((col3 <= 6) OR col0 > 7 OR col3 <= 6))
----

statement ok
DROP TABLE tab0

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,2,4.36,'evqav',2,6.10,'hsvro')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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 (col1 DESC,col0 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab2_1 ON tab2 (col0)

statement ok
CREATE UNIQUE INDEX idx_tab2_2 ON tab2 (col1,col4)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

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

statement ok
CREATE INDEX idx_tab3_2 ON tab3 (col0)

statement ok
CREATE UNIQUE INDEX idx_tab3_5 ON tab3 (col4)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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

statement ok
CREATE INDEX idx_tab4_1 ON tab4 (col0)

statement ok
CREATE INDEX idx_tab4_2 ON tab4 (col1 DESC)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DROP TABLE tab0

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,8,7.74,'efzqk',1,2.14,'mevkk')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE UNIQUE INDEX idx_tab2_3 ON tab2 (col4 DESC)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

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

statement ok
CREATE INDEX idx_tab3_1 ON tab3 (col4 DESC)

statement ok
CREATE INDEX idx_tab3_3 ON tab3 (col3,col0)

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

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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 INDEX idx_tab4_2 ON tab4 (col1)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

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

statement ok
DELETE FROM tab0 WHERE col0 <= 7

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col0 <= 7
----

query I rowsort label-4695
SELECT pk FROM tab0 WHERE NOT (col0 <= 7)
----
0

statement ok
DELETE FROM tab1 WHERE col0 <= 7

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col0 <= 7
----

query I rowsort label-4695
SELECT pk FROM tab1 WHERE NOT (col0 <= 7)
----
0

statement ok
DELETE FROM tab2 WHERE col0 <= 7

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col0 <= 7
----

query I rowsort label-4695
SELECT pk FROM tab2 WHERE NOT (col0 <= 7)
----
0

statement ok
DELETE FROM tab3 WHERE col0 <= 7

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col0 <= 7
----

query I rowsort label-4695
SELECT pk FROM tab3 WHERE NOT (col0 <= 7)
----
0

statement ok
DELETE FROM tab4 WHERE col0 <= 7

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col0 <= 7
----

query I rowsort label-4695
SELECT pk FROM tab4 WHERE NOT (col0 <= 7)
----
0

statement ok
DELETE FROM tab0 WHERE col1 < 3.80

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col1 < 3.80
----

query I rowsort label-4710
SELECT pk FROM tab0 WHERE NOT (col1 < 3.80)
----
0

statement ok
DELETE FROM tab1 WHERE col1 < 3.80

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col1 < 3.80
----

query I rowsort label-4710
SELECT pk FROM tab1 WHERE NOT (col1 < 3.80)
----
0

statement ok
DELETE FROM tab2 WHERE col1 < 3.80

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col1 < 3.80
----

query I rowsort label-4710
SELECT pk FROM tab2 WHERE NOT (col1 < 3.80)
----
0

statement ok
DELETE FROM tab3 WHERE col1 < 3.80

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col1 < 3.80
----

query I rowsort label-4710
SELECT pk FROM tab3 WHERE NOT (col1 < 3.80)
----
0

statement ok
DELETE FROM tab4 WHERE col1 < 3.80

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col1 < 3.80
----

query I rowsort label-4710
SELECT pk FROM tab4 WHERE NOT (col1 < 3.80)
----
0

statement ok
DELETE FROM tab0 WHERE (col3 < 0) AND (col1 IS NULL AND (((col3 BETWEEN 5 AND 3)) OR col4 <= 7.85 AND col0 > 9)) AND col1 >= 4.70

query I rowsort label-empty
SELECT pk FROM tab0 WHERE (col3 < 0) AND (col1 IS NULL AND (((col3 BETWEEN 5 AND 3)) OR col4 <= 7.85 AND col0 > 9)) AND col1 >= 4.70
----

query I rowsort label-4725
SELECT pk FROM tab0 WHERE NOT ((col3 < 0) AND (col1 IS NULL AND (((col3 BETWEEN 5 AND 3)) OR col4 <= 7.85 AND col0 > 9)) AND col1 >= 4.70)
----
0

statement ok
DELETE FROM tab1 WHERE (col3 < 0) AND (col1 IS NULL AND (((col3 BETWEEN 5 AND 3)) OR col4 <= 7.85 AND col0 > 9)) AND col1 >= 4.70

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (col3 < 0) AND (col1 IS NULL AND (((col3 BETWEEN 5 AND 3)) OR col4 <= 7.85 AND col0 > 9)) AND col1 >= 4.70
----

query I rowsort label-4725
SELECT pk FROM tab1 WHERE NOT ((col3 < 0) AND (col1 IS NULL AND (((col3 BETWEEN 5 AND 3)) OR col4 <= 7.85 AND col0 > 9)) AND col1 >= 4.70)
----
0

statement ok
DELETE FROM tab2 WHERE (col3 < 0) AND (col1 IS NULL AND (((col3 BETWEEN 5 AND 3)) OR col4 <= 7.85 AND col0 > 9)) AND col1 >= 4.70

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (col3 < 0) AND (col1 IS NULL AND (((col3 BETWEEN 5 AND 3)) OR col4 <= 7.85 AND col0 > 9)) AND col1 >= 4.70
----

query I rowsort label-4725
SELECT pk FROM tab2 WHERE NOT ((col3 < 0) AND (col1 IS NULL AND (((col3 BETWEEN 5 AND 3)) OR col4 <= 7.85 AND col0 > 9)) AND col1 >= 4.70)
----
0

statement ok
DELETE FROM tab3 WHERE (col3 < 0) AND (col1 IS NULL AND (((col3 BETWEEN 5 AND 3)) OR col4 <= 7.85 AND col0 > 9)) AND col1 >= 4.70

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (col3 < 0) AND (col1 IS NULL AND (((col3 BETWEEN 5 AND 3)) OR col4 <= 7.85 AND col0 > 9)) AND col1 >= 4.70
----

query I rowsort label-4725
SELECT pk FROM tab3 WHERE NOT ((col3 < 0) AND (col1 IS NULL AND (((col3 BETWEEN 5 AND 3)) OR col4 <= 7.85 AND col0 > 9)) AND col1 >= 4.70)
----
0

statement ok
DELETE FROM tab4 WHERE (col3 < 0) AND (col1 IS NULL AND (((col3 BETWEEN 5 AND 3)) OR col4 <= 7.85 AND col0 > 9)) AND col1 >= 4.70

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (col3 < 0) AND (col1 IS NULL AND (((col3 BETWEEN 5 AND 3)) OR col4 <= 7.85 AND col0 > 9)) AND col1 >= 4.70
----

query I rowsort label-4725
SELECT pk FROM tab4 WHERE NOT ((col3 < 0) AND (col1 IS NULL AND (((col3 BETWEEN 5 AND 3)) OR col4 <= 7.85 AND col0 > 9)) AND col1 >= 4.70)
----
0

statement ok
DELETE FROM tab0 WHERE (col3 <= 9 OR col0 < 9) AND col0 IS NULL AND (((col0 > 5))) OR col4 > 4.67

query I rowsort label-empty
SELECT pk FROM tab0 WHERE (col3 <= 9 OR col0 < 9) AND col0 IS NULL AND (((col0 > 5))) OR col4 > 4.67
----

query I rowsort label-4740
SELECT pk FROM tab0 WHERE NOT ((col3 <= 9 OR col0 < 9) AND col0 IS NULL AND (((col0 > 5))) OR col4 > 4.67)
----
0

statement ok
DELETE FROM tab1 WHERE (col3 <= 9 OR col0 < 9) AND col0 IS NULL AND (((col0 > 5))) OR col4 > 4.67

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (col3 <= 9 OR col0 < 9) AND col0 IS NULL AND (((col0 > 5))) OR col4 > 4.67
----

query I rowsort label-4740
SELECT pk FROM tab1 WHERE NOT ((col3 <= 9 OR col0 < 9) AND col0 IS NULL AND (((col0 > 5))) OR col4 > 4.67)
----
0

statement ok
DELETE FROM tab2 WHERE (col3 <= 9 OR col0 < 9) AND col0 IS NULL AND (((col0 > 5))) OR col4 > 4.67

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (col3 <= 9 OR col0 < 9) AND col0 IS NULL AND (((col0 > 5))) OR col4 > 4.67
----

query I rowsort label-4740
SELECT pk FROM tab2 WHERE NOT ((col3 <= 9 OR col0 < 9) AND col0 IS NULL AND (((col0 > 5))) OR col4 > 4.67)
----
0

statement ok
DELETE FROM tab3 WHERE (col3 <= 9 OR col0 < 9) AND col0 IS NULL AND (((col0 > 5))) OR col4 > 4.67

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (col3 <= 9 OR col0 < 9) AND col0 IS NULL AND (((col0 > 5))) OR col4 > 4.67
----

query I rowsort label-4740
SELECT pk FROM tab3 WHERE NOT ((col3 <= 9 OR col0 < 9) AND col0 IS NULL AND (((col0 > 5))) OR col4 > 4.67)
----
0

statement ok
DELETE FROM tab4 WHERE (col3 <= 9 OR col0 < 9) AND col0 IS NULL AND (((col0 > 5))) OR col4 > 4.67

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (col3 <= 9 OR col0 < 9) AND col0 IS NULL AND (((col0 > 5))) OR col4 > 4.67
----

query I rowsort label-4740
SELECT pk FROM tab4 WHERE NOT ((col3 <= 9 OR col0 < 9) AND col0 IS NULL AND (((col0 > 5))) OR col4 > 4.67)
----
0

statement ok
DELETE FROM tab0 WHERE (((col3 > 2) OR col1 = 1.65) OR col0 > 1)

query I rowsort label-empty
SELECT pk FROM tab0 WHERE (((col3 > 2) OR col1 = 1.65) OR col0 > 1)
----

query I rowsort label-4755
SELECT pk FROM tab0 WHERE NOT ((((col3 > 2) OR col1 = 1.65) OR col0 > 1))
----

statement ok
DELETE FROM tab1 WHERE (((col3 > 2) OR col1 = 1.65) OR col0 > 1)

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (((col3 > 2) OR col1 = 1.65) OR col0 > 1)
----

query I rowsort label-4755
SELECT pk FROM tab1 WHERE NOT ((((col3 > 2) OR col1 = 1.65) OR col0 > 1))
----

statement ok
DELETE FROM tab2 WHERE (((col3 > 2) OR col1 = 1.65) OR col0 > 1)

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (((col3 > 2) OR col1 = 1.65) OR col0 > 1)
----

query I rowsort label-4755
SELECT pk FROM tab2 WHERE NOT ((((col3 > 2) OR col1 = 1.65) OR col0 > 1))
----

statement ok
DELETE FROM tab3 WHERE (((col3 > 2) OR col1 = 1.65) OR col0 > 1)

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (((col3 > 2) OR col1 = 1.65) OR col0 > 1)
----

query I rowsort label-4755
SELECT pk FROM tab3 WHERE NOT ((((col3 > 2) OR col1 = 1.65) OR col0 > 1))
----

statement ok
DELETE FROM tab4 WHERE (((col3 > 2) OR col1 = 1.65) OR col0 > 1)

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (((col3 > 2) OR col1 = 1.65) OR col0 > 1)
----

query I rowsort label-4755
SELECT pk FROM tab4 WHERE NOT ((((col3 > 2) OR col1 = 1.65) OR col0 > 1))
----

statement ok
DROP TABLE tab0

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,2,5.87,'ilgds',6,6.97,'gptdy')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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

statement ok
CREATE INDEX idx_tab2_0 ON tab2 (col4 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab2_1 ON tab2 (col0 DESC)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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

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

statement ok
CREATE INDEX idx_tab3_1 ON tab3 (col4,col0 DESC,col1 DESC)

statement ok
CREATE INDEX idx_tab3_2 ON tab3 (col1,col3)

statement ok
CREATE UNIQUE INDEX idx_tab3_5 ON tab3 (col3 DESC)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

statement ok
CREATE TABLE tab4(pk INTEGER PRIMARY KEY, col0 INTEGER, col1 FLOAT, col2 TEXT, col3 INTEGER, col4 FLOAT, col5 TEXT)

statement ok
CREATE INDEX idx_tab4_1 ON tab4 (col0)

statement ok
CREATE UNIQUE INDEX idx_tab4_2 ON tab4 (col3 DESC,col4 DESC)

statement ok
CREATE INDEX idx_tab4_4 ON tab4 (col4 DESC,col1)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

query I rowsort label-empty
SELECT pk FROM tab0 WHERE pk IS NULL
----

statement ok
DROP TABLE tab0

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,5,8.22,'uskur',5,4.60,'iejao')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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 (col1)

statement ok
CREATE INDEX idx_tab2_3 ON tab2 (col4)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

statement ok
CREATE TABLE tab3(pk INTEGER PRIMARY KEY, col0 INTEGER, col1 FLOAT, col2 TEXT, col3 INTEGER, col4 FLOAT, col5 TEXT)

statement ok
CREATE INDEX idx_tab3_0 ON tab3 (col3,col1,col4 DESC)

statement ok
CREATE INDEX idx_tab3_1 ON tab3 (col4 DESC,col1,col0 DESC)

statement ok
CREATE INDEX idx_tab3_2 ON tab3 (col1 DESC,col0 DESC)

statement ok
CREATE INDEX idx_tab3_3 ON tab3 (col3 DESC,col0 DESC,col4)

statement ok
CREATE INDEX idx_tab3_4 ON tab3 (col0)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

statement ok
CREATE TABLE tab4(pk INTEGER PRIMARY KEY, col0 INTEGER, col1 FLOAT, col2 TEXT, col3 INTEGER, col4 FLOAT, col5 TEXT)

statement ok
CREATE INDEX idx_tab4_0 ON tab4 (col3 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab4_4 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
----

statement ok
DELETE FROM tab0 WHERE col0 > 7

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col0 > 7
----

query I rowsort label-4770
SELECT pk FROM tab0 WHERE NOT (col0 > 7)
----
0

statement ok
DELETE FROM tab1 WHERE col0 > 7

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col0 > 7
----

query I rowsort label-4770
SELECT pk FROM tab1 WHERE NOT (col0 > 7)
----
0

statement ok
DELETE FROM tab2 WHERE col0 > 7

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col0 > 7
----

query I rowsort label-4770
SELECT pk FROM tab2 WHERE NOT (col0 > 7)
----
0

statement ok
DELETE FROM tab3 WHERE col0 > 7

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col0 > 7
----

query I rowsort label-4770
SELECT pk FROM tab3 WHERE NOT (col0 > 7)
----
0

statement ok
DELETE FROM tab4 WHERE col0 > 7

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col0 > 7
----

query I rowsort label-4770
SELECT pk FROM tab4 WHERE NOT (col0 > 7)
----
0

statement ok
DELETE FROM tab0 WHERE col0 = 3 AND col0 = 0

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col0 = 3 AND col0 = 0
----

query I rowsort label-4785
SELECT pk FROM tab0 WHERE NOT (col0 = 3 AND col0 = 0)
----
0

statement ok
DELETE FROM tab1 WHERE col0 = 3 AND col0 = 0

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col0 = 3 AND col0 = 0
----

query I rowsort label-4785
SELECT pk FROM tab1 WHERE NOT (col0 = 3 AND col0 = 0)
----
0

statement ok
DELETE FROM tab2 WHERE col0 = 3 AND col0 = 0

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col0 = 3 AND col0 = 0
----

query I rowsort label-4785
SELECT pk FROM tab2 WHERE NOT (col0 = 3 AND col0 = 0)
----
0

statement ok
DELETE FROM tab3 WHERE col0 = 3 AND col0 = 0

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col0 = 3 AND col0 = 0
----

query I rowsort label-4785
SELECT pk FROM tab3 WHERE NOT (col0 = 3 AND col0 = 0)
----
0

statement ok
DELETE FROM tab4 WHERE col0 = 3 AND col0 = 0

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col0 = 3 AND col0 = 0
----

query I rowsort label-4785
SELECT pk FROM tab4 WHERE NOT (col0 = 3 AND col0 = 0)
----
0

statement ok
DELETE FROM tab0 WHERE (col4 <= 4.46) OR col3 >= 2 OR col0 = 1 AND col0 >= 7

query I rowsort label-empty
SELECT pk FROM tab0 WHERE (col4 <= 4.46) OR col3 >= 2 OR col0 = 1 AND col0 >= 7
----

query I rowsort label-4800
SELECT pk FROM tab0 WHERE NOT ((col4 <= 4.46) OR col3 >= 2 OR col0 = 1 AND col0 >= 7)
----

statement ok
DELETE FROM tab1 WHERE (col4 <= 4.46) OR col3 >= 2 OR col0 = 1 AND col0 >= 7

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (col4 <= 4.46) OR col3 >= 2 OR col0 = 1 AND col0 >= 7
----

query I rowsort label-4800
SELECT pk FROM tab1 WHERE NOT ((col4 <= 4.46) OR col3 >= 2 OR col0 = 1 AND col0 >= 7)
----

statement ok
DELETE FROM tab2 WHERE (col4 <= 4.46) OR col3 >= 2 OR col0 = 1 AND col0 >= 7

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (col4 <= 4.46) OR col3 >= 2 OR col0 = 1 AND col0 >= 7
----

query I rowsort label-4800
SELECT pk FROM tab2 WHERE NOT ((col4 <= 4.46) OR col3 >= 2 OR col0 = 1 AND col0 >= 7)
----

statement ok
DELETE FROM tab3 WHERE (col4 <= 4.46) OR col3 >= 2 OR col0 = 1 AND col0 >= 7

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (col4 <= 4.46) OR col3 >= 2 OR col0 = 1 AND col0 >= 7
----

query I rowsort label-4800
SELECT pk FROM tab3 WHERE NOT ((col4 <= 4.46) OR col3 >= 2 OR col0 = 1 AND col0 >= 7)
----

statement ok
DELETE FROM tab4 WHERE (col4 <= 4.46) OR col3 >= 2 OR col0 = 1 AND col0 >= 7

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (col4 <= 4.46) OR col3 >= 2 OR col0 = 1 AND col0 >= 7
----

query I rowsort label-4800
SELECT pk FROM tab4 WHERE NOT ((col4 <= 4.46) OR col3 >= 2 OR col0 = 1 AND col0 >= 7)
----

statement ok
DROP TABLE tab0

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,1,8.65,'innqn',8,2.46,'hvjrv')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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 (col1,col0 DESC)

statement ok
CREATE INDEX idx_tab2_2 ON tab2 (col0)

statement ok
CREATE INDEX idx_tab2_4 ON tab2 (col3,col4)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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 (col0,col1 DESC)

statement ok
CREATE INDEX idx_tab3_1 ON tab3 (col1)

statement ok
CREATE INDEX idx_tab3_4 ON tab3 (col3 DESC)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

statement ok
CREATE TABLE tab4(pk INTEGER PRIMARY KEY, col0 INTEGER, col1 FLOAT, col2 TEXT, col3 INTEGER, col4 FLOAT, col5 TEXT)

statement ok
CREATE INDEX idx_tab4_0 ON tab4 (col3 DESC,col4 DESC)

statement ok
CREATE INDEX idx_tab4_1 ON tab4 (col0)

statement ok
CREATE UNIQUE INDEX idx_tab4_2 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
----

statement ok
DROP TABLE tab0

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,8,9.46,'dvcan',3,6.57,'yoxar')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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_1 ON tab2 (col3,col1 DESC,col0 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab2_3 ON tab2 (col0 DESC,col4)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

statement ok
CREATE TABLE tab3(pk INTEGER PRIMARY KEY, col0 INTEGER, col1 FLOAT, col2 TEXT, col3 INTEGER, col4 FLOAT, col5 TEXT)

statement ok
CREATE UNIQUE INDEX idx_tab3_0 ON tab3 (col1,col0)

statement ok
CREATE INDEX idx_tab3_1 ON tab3 (col3 DESC,col0 DESC)

statement ok
CREATE INDEX idx_tab3_2 ON tab3 (col0)

statement ok
CREATE INDEX idx_tab3_3 ON tab3 (col3 DESC,col1,col4 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab3_4 ON tab3 (col4)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

statement ok
CREATE TABLE tab4(pk INTEGER PRIMARY KEY, col0 INTEGER, col1 FLOAT, col2 TEXT, col3 INTEGER, col4 FLOAT, col5 TEXT)

statement ok
CREATE INDEX idx_tab4_0 ON tab4 (col0)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

query I rowsort label-empty
SELECT pk FROM tab0 WHERE pk IS NULL
----

statement ok
DROP TABLE tab0

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,0,8.35,'uaneh',2,0.97,'hhslb')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

statement ok
CREATE TABLE tab2(pk INTEGER PRIMARY KEY, col0 INTEGER, col1 FLOAT, col2 TEXT, col3 INTEGER, col4 FLOAT, col5 TEXT)

statement ok
CREATE UNIQUE INDEX idx_tab2_0 ON tab2 (col4 DESC)

statement ok
CREATE INDEX idx_tab2_1 ON tab2 (col0)

statement ok
CREATE INDEX idx_tab2_4 ON tab2 (col1 DESC,col3 DESC)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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_2 ON tab3 (col0)

statement ok
CREATE INDEX idx_tab3_3 ON tab3 (col1 DESC)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

statement ok
CREATE TABLE tab4(pk INTEGER PRIMARY KEY, col0 INTEGER, col1 FLOAT, col2 TEXT, col3 INTEGER, col4 FLOAT, col5 TEXT)

statement ok
CREATE INDEX idx_tab4_0 ON tab4 (col0,col4 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab4_1 ON tab4 (col0,col3 DESC)

statement ok
CREATE INDEX idx_tab4_4 ON tab4 (col1)

statement ok
CREATE UNIQUE INDEX idx_tab4_5 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
----

statement ok
DROP TABLE tab0

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,4,7.4,'ymgga',7,7.27,'nrzgd')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

statement ok
CREATE TABLE tab2(pk INTEGER PRIMARY KEY, col0 INTEGER, col1 FLOAT, col2 TEXT, col3 INTEGER, col4 FLOAT, col5 TEXT)

statement ok
CREATE UNIQUE INDEX idx_tab2_0 ON tab2 (col4,col0 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab2_3 ON tab2 (col4,col3 DESC)

statement ok
CREATE INDEX idx_tab2_5 ON tab2 (col3)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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)

statement ok
CREATE UNIQUE INDEX idx_tab3_3 ON tab3 (col3 DESC)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

statement ok
CREATE TABLE tab4(pk INTEGER PRIMARY KEY, col0 INTEGER, col1 FLOAT, col2 TEXT, col3 INTEGER, col4 FLOAT, col5 TEXT)

statement ok
CREATE INDEX idx_tab4_0 ON tab4 (col4,col3)

statement ok
CREATE UNIQUE INDEX idx_tab4_1 ON tab4 (col3 DESC)

statement ok
CREATE INDEX idx_tab4_3 ON tab4 (col0)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

query I rowsort label-empty
SELECT pk FROM tab0 WHERE pk IS NULL
----

statement ok
DROP TABLE tab0

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,4,3.75,'chhqz',0,7.21,'uxjyx')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

statement ok
CREATE TABLE tab2(pk INTEGER PRIMARY KEY, col0 INTEGER, col1 FLOAT, col2 TEXT, col3 INTEGER, col4 FLOAT, col5 TEXT)

statement ok
CREATE INDEX idx_tab2_0 ON tab2 (col3 DESC)

statement ok
CREATE INDEX idx_tab2_5 ON tab2 (col1 DESC)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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 (col3,col0 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab3_1 ON tab3 (col1 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab3_2 ON tab3 (col0 DESC)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

statement ok
CREATE TABLE tab4(pk INTEGER PRIMARY KEY, col0 INTEGER, col1 FLOAT, col2 TEXT, col3 INTEGER, col4 FLOAT, col5 TEXT)

statement ok
CREATE INDEX idx_tab4_0 ON tab4 (col0)

statement ok
CREATE UNIQUE INDEX idx_tab4_2 ON tab4 (col1 DESC,col4 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab4_3 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
----

statement ok
DELETE FROM tab0 WHERE col3 IN (3,2,5)

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col3 IN (3,2,5)
----

query I rowsort label-4815
SELECT pk FROM tab0 WHERE NOT (col3 IN (3,2,5))
----
0

statement ok
DELETE FROM tab1 WHERE col3 IN (3,2,5)

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col3 IN (3,2,5)
----

query I rowsort label-4815
SELECT pk FROM tab1 WHERE NOT (col3 IN (3,2,5))
----
0

statement ok
DELETE FROM tab2 WHERE col3 IN (3,2,5)

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col3 IN (3,2,5)
----

query I rowsort label-4815
SELECT pk FROM tab2 WHERE NOT (col3 IN (3,2,5))
----
0

statement ok
DELETE FROM tab3 WHERE col3 IN (3,2,5)

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col3 IN (3,2,5)
----

query I rowsort label-4815
SELECT pk FROM tab3 WHERE NOT (col3 IN (3,2,5))
----
0

statement ok
DELETE FROM tab4 WHERE col3 IN (3,2,5)

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col3 IN (3,2,5)
----

query I rowsort label-4815
SELECT pk FROM tab4 WHERE NOT (col3 IN (3,2,5))
----
0

statement ok
DELETE FROM tab0 WHERE col3 = 1

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col3 = 1
----

query I rowsort label-4830
SELECT pk FROM tab0 WHERE NOT (col3 = 1)
----
0

statement ok
DELETE FROM tab1 WHERE col3 = 1

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col3 = 1
----

query I rowsort label-4830
SELECT pk FROM tab1 WHERE NOT (col3 = 1)
----
0

statement ok
DELETE FROM tab2 WHERE col3 = 1

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col3 = 1
----

query I rowsort label-4830
SELECT pk FROM tab2 WHERE NOT (col3 = 1)
----
0

statement ok
DELETE FROM tab3 WHERE col3 = 1

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col3 = 1
----

query I rowsort label-4830
SELECT pk FROM tab3 WHERE NOT (col3 = 1)
----
0

statement ok
DELETE FROM tab4 WHERE col3 = 1

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col3 = 1
----

query I rowsort label-4830
SELECT pk FROM tab4 WHERE NOT (col3 = 1)
----
0

statement ok
DELETE FROM tab0 WHERE (col3 = 6 OR col4 >= 1.59 AND col3 > 8)

query I rowsort label-empty
SELECT pk FROM tab0 WHERE (col3 = 6 OR col4 >= 1.59 AND col3 > 8)
----

query I rowsort label-4845
SELECT pk FROM tab0 WHERE NOT ((col3 = 6 OR col4 >= 1.59 AND col3 > 8))
----
0

statement ok
DELETE FROM tab1 WHERE (col3 = 6 OR col4 >= 1.59 AND col3 > 8)

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (col3 = 6 OR col4 >= 1.59 AND col3 > 8)
----

query I rowsort label-4845
SELECT pk FROM tab1 WHERE NOT ((col3 = 6 OR col4 >= 1.59 AND col3 > 8))
----
0

statement ok
DELETE FROM tab2 WHERE (col3 = 6 OR col4 >= 1.59 AND col3 > 8)

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (col3 = 6 OR col4 >= 1.59 AND col3 > 8)
----

query I rowsort label-4845
SELECT pk FROM tab2 WHERE NOT ((col3 = 6 OR col4 >= 1.59 AND col3 > 8))
----
0

statement ok
DELETE FROM tab3 WHERE (col3 = 6 OR col4 >= 1.59 AND col3 > 8)

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (col3 = 6 OR col4 >= 1.59 AND col3 > 8)
----

query I rowsort label-4845
SELECT pk FROM tab3 WHERE NOT ((col3 = 6 OR col4 >= 1.59 AND col3 > 8))
----
0

statement ok
DELETE FROM tab4 WHERE (col3 = 6 OR col4 >= 1.59 AND col3 > 8)

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (col3 = 6 OR col4 >= 1.59 AND col3 > 8)
----

query I rowsort label-4845
SELECT pk FROM tab4 WHERE NOT ((col3 = 6 OR col4 >= 1.59 AND col3 > 8))
----
0

statement ok
DELETE FROM tab0 WHERE col3 > 9 OR col4 >= 0.70 OR (col4 > 9.19) AND ((col3 > 1 OR (col1 IS NULL OR (col0 > 4)) OR col0 >= 3))

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col3 > 9 OR col4 >= 0.70 OR (col4 > 9.19) AND ((col3 > 1 OR (col1 IS NULL OR (col0 > 4)) OR col0 >= 3))
----

query I rowsort label-4860
SELECT pk FROM tab0 WHERE NOT (col3 > 9 OR col4 >= 0.70 OR (col4 > 9.19) AND ((col3 > 1 OR (col1 IS NULL OR (col0 > 4)) OR col0 >= 3)))
----

statement ok
DELETE FROM tab1 WHERE col3 > 9 OR col4 >= 0.70 OR (col4 > 9.19) AND ((col3 > 1 OR (col1 IS NULL OR (col0 > 4)) OR col0 >= 3))

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col3 > 9 OR col4 >= 0.70 OR (col4 > 9.19) AND ((col3 > 1 OR (col1 IS NULL OR (col0 > 4)) OR col0 >= 3))
----

query I rowsort label-4860
SELECT pk FROM tab1 WHERE NOT (col3 > 9 OR col4 >= 0.70 OR (col4 > 9.19) AND ((col3 > 1 OR (col1 IS NULL OR (col0 > 4)) OR col0 >= 3)))
----

statement ok
DELETE FROM tab2 WHERE col3 > 9 OR col4 >= 0.70 OR (col4 > 9.19) AND ((col3 > 1 OR (col1 IS NULL OR (col0 > 4)) OR col0 >= 3))

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col3 > 9 OR col4 >= 0.70 OR (col4 > 9.19) AND ((col3 > 1 OR (col1 IS NULL OR (col0 > 4)) OR col0 >= 3))
----

query I rowsort label-4860
SELECT pk FROM tab2 WHERE NOT (col3 > 9 OR col4 >= 0.70 OR (col4 > 9.19) AND ((col3 > 1 OR (col1 IS NULL OR (col0 > 4)) OR col0 >= 3)))
----

statement ok
DELETE FROM tab3 WHERE col3 > 9 OR col4 >= 0.70 OR (col4 > 9.19) AND ((col3 > 1 OR (col1 IS NULL OR (col0 > 4)) OR col0 >= 3))

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col3 > 9 OR col4 >= 0.70 OR (col4 > 9.19) AND ((col3 > 1 OR (col1 IS NULL OR (col0 > 4)) OR col0 >= 3))
----

query I rowsort label-4860
SELECT pk FROM tab3 WHERE NOT (col3 > 9 OR col4 >= 0.70 OR (col4 > 9.19) AND ((col3 > 1 OR (col1 IS NULL OR (col0 > 4)) OR col0 >= 3)))
----

statement ok
DELETE FROM tab4 WHERE col3 > 9 OR col4 >= 0.70 OR (col4 > 9.19) AND ((col3 > 1 OR (col1 IS NULL OR (col0 > 4)) OR col0 >= 3))

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col3 > 9 OR col4 >= 0.70 OR (col4 > 9.19) AND ((col3 > 1 OR (col1 IS NULL OR (col0 > 4)) OR col0 >= 3))
----

query I rowsort label-4860
SELECT pk FROM tab4 WHERE NOT (col3 > 9 OR col4 >= 0.70 OR (col4 > 9.19) AND ((col3 > 1 OR (col1 IS NULL OR (col0 > 4)) OR col0 >= 3)))
----

statement ok
DROP TABLE tab0

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,7,6.92,'xiqxr',2,6.20,'nzlrm')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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 (col1 DESC,col0)

statement ok
CREATE INDEX idx_tab2_3 ON tab2 (col3 DESC)

statement ok
CREATE INDEX idx_tab2_5 ON tab2 (col0 DESC,col1 DESC)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

statement ok
CREATE TABLE tab3(pk INTEGER PRIMARY KEY, col0 INTEGER, col1 FLOAT, col2 TEXT, col3 INTEGER, col4 FLOAT, col5 TEXT)

statement ok
CREATE UNIQUE INDEX idx_tab3_0 ON tab3 (col1)

statement ok
CREATE UNIQUE INDEX idx_tab3_2 ON tab3 (col4 DESC,col3 DESC)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

statement ok
CREATE TABLE tab4(pk INTEGER PRIMARY KEY, col0 INTEGER, col1 FLOAT, col2 TEXT, col3 INTEGER, col4 FLOAT, col5 TEXT)

statement ok
CREATE INDEX idx_tab4_0 ON tab4 (col0)

statement ok
CREATE INDEX idx_tab4_2 ON tab4 (col3)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

query I rowsort label-empty
SELECT pk FROM tab0 WHERE pk IS NULL
----

statement ok
DROP TABLE tab0

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,3,2.29,'przsf',8,1.36,'gaaso')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

statement ok
CREATE TABLE tab2(pk INTEGER PRIMARY KEY, col0 INTEGER, col1 FLOAT, col2 TEXT, col3 INTEGER, col4 FLOAT, col5 TEXT)

statement ok
CREATE UNIQUE INDEX idx_tab2_0 ON tab2 (col3 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab2_1 ON tab2 (col0 DESC,col4 DESC)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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 DESC,col3,col1)

statement ok
CREATE INDEX idx_tab3_1 ON tab3 (col4,col0 DESC,col1 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab3_2 ON tab3 (col3)

statement ok
CREATE UNIQUE INDEX idx_tab3_4 ON tab3 (col0,col4 DESC)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

statement ok
CREATE TABLE tab4(pk INTEGER PRIMARY KEY, col0 INTEGER, col1 FLOAT, col2 TEXT, col3 INTEGER, col4 FLOAT, col5 TEXT)

statement ok
CREATE INDEX idx_tab4_1 ON tab4 (col1,col4 DESC,col3)

statement ok
CREATE UNIQUE INDEX idx_tab4_2 ON tab4 (col3,col0)

statement ok
CREATE INDEX idx_tab4_4 ON tab4 (col1 DESC,col0 DESC)

statement ok
CREATE INDEX idx_tab4_5 ON tab4 (col0)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

query I rowsort label-empty
SELECT pk FROM tab0 WHERE pk IS NULL
----

statement ok
DELETE FROM tab0 WHERE col3 > 1

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col3 > 1
----

query I rowsort label-4875
SELECT pk FROM tab0 WHERE NOT (col3 > 1)
----

statement ok
DELETE FROM tab1 WHERE col3 > 1

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col3 > 1
----

query I rowsort label-4875
SELECT pk FROM tab1 WHERE NOT (col3 > 1)
----

statement ok
DELETE FROM tab2 WHERE col3 > 1

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col3 > 1
----

query I rowsort label-4875
SELECT pk FROM tab2 WHERE NOT (col3 > 1)
----

statement ok
DELETE FROM tab3 WHERE col3 > 1

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col3 > 1
----

query I rowsort label-4875
SELECT pk FROM tab3 WHERE NOT (col3 > 1)
----

statement ok
DELETE FROM tab4 WHERE col3 > 1

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col3 > 1
----

query I rowsort label-4875
SELECT pk FROM tab4 WHERE NOT (col3 > 1)
----

statement ok
DROP TABLE tab0

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,8,9.51,'lqjqo',1,1.1,'eustu')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

statement ok
CREATE TABLE tab2(pk INTEGER PRIMARY KEY, col0 INTEGER, col1 FLOAT, col2 TEXT, col3 INTEGER, col4 FLOAT, col5 TEXT)

statement ok
CREATE UNIQUE INDEX idx_tab2_0 ON tab2 (col0 DESC)

statement ok
CREATE INDEX idx_tab2_2 ON tab2 (col4,col3)

statement ok
CREATE UNIQUE INDEX idx_tab2_3 ON tab2 (col1 DESC)

statement ok
CREATE INDEX idx_tab2_4 ON tab2 (col3)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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 (col0)

statement ok
CREATE UNIQUE INDEX idx_tab3_1 ON tab3 (col1)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

statement ok
CREATE TABLE tab4(pk INTEGER PRIMARY KEY, col0 INTEGER, col1 FLOAT, col2 TEXT, col3 INTEGER, col4 FLOAT, col5 TEXT)

statement ok
CREATE UNIQUE INDEX idx_tab4_0 ON tab4 (col1)

statement ok
CREATE UNIQUE INDEX idx_tab4_3 ON tab4 (col3,col4)

statement ok
CREATE UNIQUE INDEX idx_tab4_5 ON tab4 (col4,col3)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

query I rowsort label-empty
SELECT pk FROM tab0 WHERE pk IS NULL
----

statement ok
DROP TABLE tab0

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,0,0.25,'ikkzi',2,6.24,'igkgy')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

statement ok
CREATE TABLE tab2(pk INTEGER PRIMARY KEY, col0 INTEGER, col1 FLOAT, col2 TEXT, col3 INTEGER, col4 FLOAT, col5 TEXT)

statement ok
CREATE UNIQUE INDEX idx_tab2_0 ON tab2 (col0)

statement ok
CREATE INDEX idx_tab2_2 ON tab2 (col4 DESC)

statement ok
CREATE INDEX idx_tab2_4 ON tab2 (col3 DESC)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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 DESC,col3)

statement ok
CREATE UNIQUE INDEX idx_tab3_1 ON tab3 (col0 DESC)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

statement ok
CREATE TABLE tab4(pk INTEGER PRIMARY KEY, col0 INTEGER, col1 FLOAT, col2 TEXT, col3 INTEGER, col4 FLOAT, col5 TEXT)

statement ok
CREATE INDEX idx_tab4_0 ON tab4 (col4 DESC,col3,col0)

statement ok
CREATE UNIQUE INDEX idx_tab4_1 ON tab4 (col4 DESC,col1)

statement ok
CREATE UNIQUE INDEX idx_tab4_3 ON tab4 (col4 DESC,col0 DESC)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

query I rowsort label-empty
SELECT pk FROM tab0 WHERE pk IS NULL
----

statement ok
DELETE FROM tab0 WHERE (col0 IS NULL AND ((col3 >= 3)))

query I rowsort label-empty
SELECT pk FROM tab0 WHERE (col0 IS NULL AND ((col3 >= 3)))
----

query I rowsort label-4890
SELECT pk FROM tab0 WHERE NOT ((col0 IS NULL AND ((col3 >= 3))))
----
0

statement ok
DELETE FROM tab1 WHERE (col0 IS NULL AND ((col3 >= 3)))

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (col0 IS NULL AND ((col3 >= 3)))
----

query I rowsort label-4890
SELECT pk FROM tab1 WHERE NOT ((col0 IS NULL AND ((col3 >= 3))))
----
0

statement ok
DELETE FROM tab2 WHERE (col0 IS NULL AND ((col3 >= 3)))

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (col0 IS NULL AND ((col3 >= 3)))
----

query I rowsort label-4890
SELECT pk FROM tab2 WHERE NOT ((col0 IS NULL AND ((col3 >= 3))))
----
0

statement ok
DELETE FROM tab3 WHERE (col0 IS NULL AND ((col3 >= 3)))

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (col0 IS NULL AND ((col3 >= 3)))
----

query I rowsort label-4890
SELECT pk FROM tab3 WHERE NOT ((col0 IS NULL AND ((col3 >= 3))))
----
0

statement ok
DELETE FROM tab4 WHERE (col0 IS NULL AND ((col3 >= 3)))

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (col0 IS NULL AND ((col3 >= 3)))
----

query I rowsort label-4890
SELECT pk FROM tab4 WHERE NOT ((col0 IS NULL AND ((col3 >= 3))))
----
0

statement ok
DELETE FROM tab0 WHERE (col1 = 4.3 AND (col0 < 0))

query I rowsort label-empty
SELECT pk FROM tab0 WHERE (col1 = 4.3 AND (col0 < 0))
----

query I rowsort label-4905
SELECT pk FROM tab0 WHERE NOT ((col1 = 4.3 AND (col0 < 0)))
----
0

statement ok
DELETE FROM tab1 WHERE (col1 = 4.3 AND (col0 < 0))

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (col1 = 4.3 AND (col0 < 0))
----

query I rowsort label-4905
SELECT pk FROM tab1 WHERE NOT ((col1 = 4.3 AND (col0 < 0)))
----
0

statement ok
DELETE FROM tab2 WHERE (col1 = 4.3 AND (col0 < 0))

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (col1 = 4.3 AND (col0 < 0))
----

query I rowsort label-4905
SELECT pk FROM tab2 WHERE NOT ((col1 = 4.3 AND (col0 < 0)))
----
0

statement ok
DELETE FROM tab3 WHERE (col1 = 4.3 AND (col0 < 0))

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (col1 = 4.3 AND (col0 < 0))
----

query I rowsort label-4905
SELECT pk FROM tab3 WHERE NOT ((col1 = 4.3 AND (col0 < 0)))
----
0

statement ok
DELETE FROM tab4 WHERE (col1 = 4.3 AND (col0 < 0))

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (col1 = 4.3 AND (col0 < 0))
----

query I rowsort label-4905
SELECT pk FROM tab4 WHERE NOT ((col1 = 4.3 AND (col0 < 0)))
----
0

statement ok
DELETE FROM tab0 WHERE (col1 <= 8.37) AND col0 <= 2 OR col3 >= 9

query I rowsort label-empty
SELECT pk FROM tab0 WHERE (col1 <= 8.37) AND col0 <= 2 OR col3 >= 9
----

query I rowsort label-4920
SELECT pk FROM tab0 WHERE NOT ((col1 <= 8.37) AND col0 <= 2 OR col3 >= 9)
----

statement ok
DELETE FROM tab1 WHERE (col1 <= 8.37) AND col0 <= 2 OR col3 >= 9

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (col1 <= 8.37) AND col0 <= 2 OR col3 >= 9
----

query I rowsort label-4920
SELECT pk FROM tab1 WHERE NOT ((col1 <= 8.37) AND col0 <= 2 OR col3 >= 9)
----

statement ok
DELETE FROM tab2 WHERE (col1 <= 8.37) AND col0 <= 2 OR col3 >= 9

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (col1 <= 8.37) AND col0 <= 2 OR col3 >= 9
----

query I rowsort label-4920
SELECT pk FROM tab2 WHERE NOT ((col1 <= 8.37) AND col0 <= 2 OR col3 >= 9)
----

statement ok
DELETE FROM tab3 WHERE (col1 <= 8.37) AND col0 <= 2 OR col3 >= 9

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (col1 <= 8.37) AND col0 <= 2 OR col3 >= 9
----

query I rowsort label-4920
SELECT pk FROM tab3 WHERE NOT ((col1 <= 8.37) AND col0 <= 2 OR col3 >= 9)
----

statement ok
DELETE FROM tab4 WHERE (col1 <= 8.37) AND col0 <= 2 OR col3 >= 9

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (col1 <= 8.37) AND col0 <= 2 OR col3 >= 9
----

query I rowsort label-4920
SELECT pk FROM tab4 WHERE NOT ((col1 <= 8.37) AND col0 <= 2 OR col3 >= 9)
----

statement ok
DROP TABLE tab0

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,5,0.54,'aqljf',1,7.15,'vczew')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

statement ok
CREATE TABLE tab2(pk INTEGER PRIMARY KEY, col0 INTEGER, col1 FLOAT, col2 TEXT, col3 INTEGER, col4 FLOAT, col5 TEXT)

statement ok
CREATE UNIQUE INDEX idx_tab2_0 ON tab2 (col4 DESC,col3 DESC,col0 DESC)

statement ok
CREATE INDEX idx_tab2_1 ON tab2 (col1,col4 DESC,col0)

statement ok
CREATE UNIQUE INDEX idx_tab2_2 ON tab2 (col3 DESC)

statement ok
CREATE INDEX idx_tab2_4 ON tab2 (col4,col0)

statement ok
CREATE INDEX idx_tab2_5 ON tab2 (col0 DESC)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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_1 ON tab3 (col3,col4 DESC,col0 DESC)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

statement ok
CREATE TABLE tab4(pk INTEGER PRIMARY KEY, col0 INTEGER, col1 FLOAT, col2 TEXT, col3 INTEGER, col4 FLOAT, col5 TEXT)

statement ok
CREATE INDEX idx_tab4_0 ON tab4 (col3,col1)

statement ok
CREATE INDEX idx_tab4_2 ON tab4 (col4 DESC,col3 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab4_4 ON tab4 (col4,col0 DESC,col1)

statement ok
CREATE INDEX idx_tab4_5 ON tab4 (col0)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

query I rowsort label-empty
SELECT pk FROM tab0 WHERE pk IS NULL
----

statement ok
DELETE FROM tab0 WHERE (col3 >= 2)

query I rowsort label-empty
SELECT pk FROM tab0 WHERE (col3 >= 2)
----

query I rowsort label-4935
SELECT pk FROM tab0 WHERE NOT ((col3 >= 2))
----
0

statement ok
DELETE FROM tab1 WHERE (col3 >= 2)

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (col3 >= 2)
----

query I rowsort label-4935
SELECT pk FROM tab1 WHERE NOT ((col3 >= 2))
----
0

statement ok
DELETE FROM tab2 WHERE (col3 >= 2)

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (col3 >= 2)
----

query I rowsort label-4935
SELECT pk FROM tab2 WHERE NOT ((col3 >= 2))
----
0

statement ok
DELETE FROM tab3 WHERE (col3 >= 2)

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (col3 >= 2)
----

query I rowsort label-4935
SELECT pk FROM tab3 WHERE NOT ((col3 >= 2))
----
0

statement ok
DELETE FROM tab4 WHERE (col3 >= 2)

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (col3 >= 2)
----

query I rowsort label-4935
SELECT pk FROM tab4 WHERE NOT ((col3 >= 2))
----
0

statement ok
DELETE FROM tab0 WHERE col0 IN (9,7,6,3)

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col0 IN (9,7,6,3)
----

query I rowsort label-4950
SELECT pk FROM tab0 WHERE NOT (col0 IN (9,7,6,3))
----
0

statement ok
DELETE FROM tab1 WHERE col0 IN (9,7,6,3)

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col0 IN (9,7,6,3)
----

query I rowsort label-4950
SELECT pk FROM tab1 WHERE NOT (col0 IN (9,7,6,3))
----
0

statement ok
DELETE FROM tab2 WHERE col0 IN (9,7,6,3)

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col0 IN (9,7,6,3)
----

query I rowsort label-4950
SELECT pk FROM tab2 WHERE NOT (col0 IN (9,7,6,3))
----
0

statement ok
DELETE FROM tab3 WHERE col0 IN (9,7,6,3)

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col0 IN (9,7,6,3)
----

query I rowsort label-4950
SELECT pk FROM tab3 WHERE NOT (col0 IN (9,7,6,3))
----
0

statement ok
DELETE FROM tab4 WHERE col0 IN (9,7,6,3)

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col0 IN (9,7,6,3)
----

query I rowsort label-4950
SELECT pk FROM tab4 WHERE NOT (col0 IN (9,7,6,3))
----
0

statement ok
DELETE FROM tab0 WHERE col0 > 0 OR col0 <= 5 OR (col0 = 4 AND col1 < 5.62) OR col1 < 3.91

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col0 > 0 OR col0 <= 5 OR (col0 = 4 AND col1 < 5.62) OR col1 < 3.91
----

query I rowsort label-4965
SELECT pk FROM tab0 WHERE NOT (col0 > 0 OR col0 <= 5 OR (col0 = 4 AND col1 < 5.62) OR col1 < 3.91)
----

statement ok
DELETE FROM tab1 WHERE col0 > 0 OR col0 <= 5 OR (col0 = 4 AND col1 < 5.62) OR col1 < 3.91

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col0 > 0 OR col0 <= 5 OR (col0 = 4 AND col1 < 5.62) OR col1 < 3.91
----

query I rowsort label-4965
SELECT pk FROM tab1 WHERE NOT (col0 > 0 OR col0 <= 5 OR (col0 = 4 AND col1 < 5.62) OR col1 < 3.91)
----

statement ok
DELETE FROM tab2 WHERE col0 > 0 OR col0 <= 5 OR (col0 = 4 AND col1 < 5.62) OR col1 < 3.91

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col0 > 0 OR col0 <= 5 OR (col0 = 4 AND col1 < 5.62) OR col1 < 3.91
----

query I rowsort label-4965
SELECT pk FROM tab2 WHERE NOT (col0 > 0 OR col0 <= 5 OR (col0 = 4 AND col1 < 5.62) OR col1 < 3.91)
----

statement ok
DELETE FROM tab3 WHERE col0 > 0 OR col0 <= 5 OR (col0 = 4 AND col1 < 5.62) OR col1 < 3.91

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col0 > 0 OR col0 <= 5 OR (col0 = 4 AND col1 < 5.62) OR col1 < 3.91
----

query I rowsort label-4965
SELECT pk FROM tab3 WHERE NOT (col0 > 0 OR col0 <= 5 OR (col0 = 4 AND col1 < 5.62) OR col1 < 3.91)
----

statement ok
DELETE FROM tab4 WHERE col0 > 0 OR col0 <= 5 OR (col0 = 4 AND col1 < 5.62) OR col1 < 3.91

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col0 > 0 OR col0 <= 5 OR (col0 = 4 AND col1 < 5.62) OR col1 < 3.91
----

query I rowsort label-4965
SELECT pk FROM tab4 WHERE NOT (col0 > 0 OR col0 <= 5 OR (col0 = 4 AND col1 < 5.62) OR col1 < 3.91)
----

statement ok
DROP TABLE tab0

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,0,3.19,'kftso',5,8.19,'jcbpj')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

statement ok
CREATE TABLE tab2(pk INTEGER PRIMARY KEY, col0 INTEGER, col1 FLOAT, col2 TEXT, col3 INTEGER, col4 FLOAT, col5 TEXT)

statement ok
CREATE INDEX idx_tab2_0 ON tab2 (col4 DESC,col0 DESC)

statement ok
CREATE INDEX idx_tab2_1 ON tab2 (col1 DESC)

statement ok
CREATE INDEX idx_tab2_2 ON tab2 (col0 DESC,col4)

statement ok
CREATE UNIQUE INDEX idx_tab2_5 ON tab2 (col3 DESC,col4)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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,col0)

statement ok
CREATE INDEX idx_tab3_4 ON tab3 (col4,col1)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

statement ok
CREATE TABLE tab4(pk INTEGER PRIMARY KEY, col0 INTEGER, col1 FLOAT, col2 TEXT, col3 INTEGER, col4 FLOAT, col5 TEXT)

statement ok
CREATE UNIQUE INDEX idx_tab4_0 ON tab4 (col4)

statement ok
CREATE INDEX idx_tab4_3 ON tab4 (col1 DESC,col3 DESC)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

query I rowsort label-empty
SELECT pk FROM tab0 WHERE pk IS NULL
----

statement ok
DELETE FROM tab0 WHERE (col1 <= 5.71 AND col3 >= 2)

query I rowsort label-empty
SELECT pk FROM tab0 WHERE (col1 <= 5.71 AND col3 >= 2)
----

query I rowsort label-4980
SELECT pk FROM tab0 WHERE NOT ((col1 <= 5.71 AND col3 >= 2))
----

statement ok
DELETE FROM tab1 WHERE (col1 <= 5.71 AND col3 >= 2)

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (col1 <= 5.71 AND col3 >= 2)
----

query I rowsort label-4980
SELECT pk FROM tab1 WHERE NOT ((col1 <= 5.71 AND col3 >= 2))
----

statement ok
DELETE FROM tab2 WHERE (col1 <= 5.71 AND col3 >= 2)

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (col1 <= 5.71 AND col3 >= 2)
----

query I rowsort label-4980
SELECT pk FROM tab2 WHERE NOT ((col1 <= 5.71 AND col3 >= 2))
----

statement ok
DELETE FROM tab3 WHERE (col1 <= 5.71 AND col3 >= 2)

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (col1 <= 5.71 AND col3 >= 2)
----

query I rowsort label-4980
SELECT pk FROM tab3 WHERE NOT ((col1 <= 5.71 AND col3 >= 2))
----

statement ok
DELETE FROM tab4 WHERE (col1 <= 5.71 AND col3 >= 2)

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (col1 <= 5.71 AND col3 >= 2)
----

query I rowsort label-4980
SELECT pk FROM tab4 WHERE NOT ((col1 <= 5.71 AND col3 >= 2))
----

statement ok
DROP TABLE tab0

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,2,3.69,'juxpe',6,0.5,'zpfqa')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

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)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

statement ok
CREATE TABLE tab3(pk INTEGER PRIMARY KEY, col0 INTEGER, col1 FLOAT, col2 TEXT, col3 INTEGER, col4 FLOAT, col5 TEXT)

statement ok
CREATE INDEX idx_tab3_0 ON tab3 (col1,col3)

statement ok
CREATE UNIQUE INDEX idx_tab3_1 ON tab3 (col0)

statement ok
CREATE INDEX idx_tab3_3 ON tab3 (col3)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

statement ok
CREATE TABLE tab4(pk INTEGER PRIMARY KEY, col0 INTEGER, col1 FLOAT, col2 TEXT, col3 INTEGER, col4 FLOAT, col5 TEXT)

statement ok
CREATE UNIQUE INDEX idx_tab4_0 ON tab4 (col3 DESC,col1)

statement ok
CREATE INDEX idx_tab4_1 ON tab4 (col3 DESC,col4 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab4_2 ON tab4 (col4 DESC,col3 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab4_4 ON tab4 (col0)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

query I rowsort label-empty
SELECT pk FROM tab0 WHERE pk IS NULL
----

statement ok
DELETE FROM tab0 WHERE col3 = 4 OR col0 < 8 AND col1 IS NULL OR col0 <= 0 OR col3 > 9

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col3 = 4 OR col0 < 8 AND col1 IS NULL OR col0 <= 0 OR col3 > 9
----

query I rowsort label-4995
SELECT pk FROM tab0 WHERE NOT (col3 = 4 OR col0 < 8 AND col1 IS NULL OR col0 <= 0 OR col3 > 9)
----
0

statement ok
DELETE FROM tab1 WHERE col3 = 4 OR col0 < 8 AND col1 IS NULL OR col0 <= 0 OR col3 > 9

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col3 = 4 OR col0 < 8 AND col1 IS NULL OR col0 <= 0 OR col3 > 9
----

query I rowsort label-4995
SELECT pk FROM tab1 WHERE NOT (col3 = 4 OR col0 < 8 AND col1 IS NULL OR col0 <= 0 OR col3 > 9)
----
0

statement ok
DELETE FROM tab2 WHERE col3 = 4 OR col0 < 8 AND col1 IS NULL OR col0 <= 0 OR col3 > 9

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col3 = 4 OR col0 < 8 AND col1 IS NULL OR col0 <= 0 OR col3 > 9
----

query I rowsort label-4995
SELECT pk FROM tab2 WHERE NOT (col3 = 4 OR col0 < 8 AND col1 IS NULL OR col0 <= 0 OR col3 > 9)
----
0

statement ok
DELETE FROM tab3 WHERE col3 = 4 OR col0 < 8 AND col1 IS NULL OR col0 <= 0 OR col3 > 9

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col3 = 4 OR col0 < 8 AND col1 IS NULL OR col0 <= 0 OR col3 > 9
----

query I rowsort label-4995
SELECT pk FROM tab3 WHERE NOT (col3 = 4 OR col0 < 8 AND col1 IS NULL OR col0 <= 0 OR col3 > 9)
----
0

statement ok
DELETE FROM tab4 WHERE col3 = 4 OR col0 < 8 AND col1 IS NULL OR col0 <= 0 OR col3 > 9

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col3 = 4 OR col0 < 8 AND col1 IS NULL OR col0 <= 0 OR col3 > 9
----

query I rowsort label-4995
SELECT pk FROM tab4 WHERE NOT (col3 = 4 OR col0 < 8 AND col1 IS NULL OR col0 <= 0 OR col3 > 9)
----
0

statement ok
DELETE FROM tab0 WHERE col4 BETWEEN 5.75 AND 5.92

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col4 BETWEEN 5.75 AND 5.92
----

query I rowsort label-5010
SELECT pk FROM tab0 WHERE NOT (col4 BETWEEN 5.75 AND 5.92)
----
0

statement ok
DELETE FROM tab1 WHERE col4 BETWEEN 5.75 AND 5.92

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col4 BETWEEN 5.75 AND 5.92
----

query I rowsort label-5010
SELECT pk FROM tab1 WHERE NOT (col4 BETWEEN 5.75 AND 5.92)
----
0

statement ok
DELETE FROM tab2 WHERE col4 BETWEEN 5.75 AND 5.92

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col4 BETWEEN 5.75 AND 5.92
----

query I rowsort label-5010
SELECT pk FROM tab2 WHERE NOT (col4 BETWEEN 5.75 AND 5.92)
----
0

statement ok
DELETE FROM tab3 WHERE col4 BETWEEN 5.75 AND 5.92

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col4 BETWEEN 5.75 AND 5.92
----

query I rowsort label-5010
SELECT pk FROM tab3 WHERE NOT (col4 BETWEEN 5.75 AND 5.92)
----
0

statement ok
DELETE FROM tab4 WHERE col4 BETWEEN 5.75 AND 5.92

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col4 BETWEEN 5.75 AND 5.92
----

query I rowsort label-5010
SELECT pk FROM tab4 WHERE NOT (col4 BETWEEN 5.75 AND 5.92)
----
0

statement ok
DROP TABLE tab0

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,3,8.33,'dgwsq',9,3.70,'ncgzt')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

statement ok
CREATE TABLE tab2(pk INTEGER PRIMARY KEY, col0 INTEGER, col1 FLOAT, col2 TEXT, col3 INTEGER, col4 FLOAT, col5 TEXT)

statement ok
CREATE UNIQUE INDEX idx_tab2_1 ON tab2 (col0 DESC,col3 DESC)

statement ok
CREATE INDEX idx_tab2_2 ON tab2 (col3,col1 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab2_4 ON tab2 (col1 DESC,col0 DESC)

statement ok
CREATE INDEX idx_tab2_5 ON tab2 (col4)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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 (col0 DESC,col1,col3)

statement ok
CREATE INDEX idx_tab3_1 ON tab3 (col3 DESC)

statement ok
CREATE INDEX idx_tab3_2 ON tab3 (col4)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

statement ok
CREATE TABLE tab4(pk INTEGER PRIMARY KEY, col0 INTEGER, col1 FLOAT, col2 TEXT, col3 INTEGER, col4 FLOAT, col5 TEXT)

statement ok
CREATE INDEX idx_tab4_0 ON tab4 (col3 DESC,col0 DESC)

statement ok
CREATE INDEX idx_tab4_2 ON tab4 (col0 DESC)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

query I rowsort label-empty
SELECT pk FROM tab0 WHERE pk IS NULL
----

statement ok
DELETE FROM tab0 WHERE col4 < 9.33 AND col3 <= 2

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col4 < 9.33 AND col3 <= 2
----

query I rowsort label-5025
SELECT pk FROM tab0 WHERE NOT (col4 < 9.33 AND col3 <= 2)
----
0

statement ok
DELETE FROM tab1 WHERE col4 < 9.33 AND col3 <= 2

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col4 < 9.33 AND col3 <= 2
----

query I rowsort label-5025
SELECT pk FROM tab1 WHERE NOT (col4 < 9.33 AND col3 <= 2)
----
0

statement ok
DELETE FROM tab2 WHERE col4 < 9.33 AND col3 <= 2

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col4 < 9.33 AND col3 <= 2
----

query I rowsort label-5025
SELECT pk FROM tab2 WHERE NOT (col4 < 9.33 AND col3 <= 2)
----
0

statement ok
DELETE FROM tab3 WHERE col4 < 9.33 AND col3 <= 2

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col4 < 9.33 AND col3 <= 2
----

query I rowsort label-5025
SELECT pk FROM tab3 WHERE NOT (col4 < 9.33 AND col3 <= 2)
----
0

statement ok
DELETE FROM tab4 WHERE col4 < 9.33 AND col3 <= 2

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col4 < 9.33 AND col3 <= 2
----

query I rowsort label-5025
SELECT pk FROM tab4 WHERE NOT (col4 < 9.33 AND col3 <= 2)
----
0

statement ok
DELETE FROM tab0 WHERE col0 > 7 OR col4 > 0.45

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col0 > 7 OR col4 > 0.45
----

query I rowsort label-5040
SELECT pk FROM tab0 WHERE NOT (col0 > 7 OR col4 > 0.45)
----

statement ok
DELETE FROM tab1 WHERE col0 > 7 OR col4 > 0.45

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col0 > 7 OR col4 > 0.45
----

query I rowsort label-5040
SELECT pk FROM tab1 WHERE NOT (col0 > 7 OR col4 > 0.45)
----

statement ok
DELETE FROM tab2 WHERE col0 > 7 OR col4 > 0.45

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col0 > 7 OR col4 > 0.45
----

query I rowsort label-5040
SELECT pk FROM tab2 WHERE NOT (col0 > 7 OR col4 > 0.45)
----

statement ok
DELETE FROM tab3 WHERE col0 > 7 OR col4 > 0.45

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col0 > 7 OR col4 > 0.45
----

query I rowsort label-5040
SELECT pk FROM tab3 WHERE NOT (col0 > 7 OR col4 > 0.45)
----

statement ok
DELETE FROM tab4 WHERE col0 > 7 OR col4 > 0.45

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col0 > 7 OR col4 > 0.45
----

query I rowsort label-5040
SELECT pk FROM tab4 WHERE NOT (col0 > 7 OR col4 > 0.45)
----

statement ok
DROP TABLE tab0

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,4,1.43,'bziad',5,6.19,'bzzna')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

statement ok
CREATE TABLE tab2(pk INTEGER PRIMARY KEY, col0 INTEGER, col1 FLOAT, col2 TEXT, col3 INTEGER, col4 FLOAT, col5 TEXT)

statement ok
CREATE INDEX idx_tab2_0 ON tab2 (col3 DESC)

statement ok
CREATE INDEX idx_tab2_1 ON tab2 (col4 DESC)

statement ok
CREATE INDEX idx_tab2_2 ON tab2 (col1 DESC)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

statement ok
CREATE TABLE tab3(pk INTEGER PRIMARY KEY, col0 INTEGER, col1 FLOAT, col2 TEXT, col3 INTEGER, col4 FLOAT, col5 TEXT)

statement ok
CREATE INDEX idx_tab3_0 ON tab3 (col4 DESC)

statement ok
CREATE INDEX idx_tab3_3 ON tab3 (col3 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab3_4 ON tab3 (col0,col1 DESC)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

statement ok
CREATE TABLE tab4(pk INTEGER PRIMARY KEY, col0 INTEGER, col1 FLOAT, col2 TEXT, col3 INTEGER, col4 FLOAT, col5 TEXT)

statement ok
CREATE UNIQUE INDEX idx_tab4_0 ON tab4 (col4 DESC)

statement ok
CREATE INDEX idx_tab4_3 ON tab4 (col3,col1 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab4_4 ON tab4 (col0 DESC,col3)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

query I rowsort label-empty
SELECT pk FROM tab0 WHERE pk IS NULL
----

statement ok
DELETE FROM tab0 WHERE (((col0 < 0))) AND (col3 > 5 OR (col0 > 6) AND (col0 >= 7))

query I rowsort label-empty
SELECT pk FROM tab0 WHERE (((col0 < 0))) AND (col3 > 5 OR (col0 > 6) AND (col0 >= 7))
----

query I rowsort label-5055
SELECT pk FROM tab0 WHERE NOT ((((col0 < 0))) AND (col3 > 5 OR (col0 > 6) AND (col0 >= 7)))
----
0

statement ok
DELETE FROM tab1 WHERE (((col0 < 0))) AND (col3 > 5 OR (col0 > 6) AND (col0 >= 7))

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (((col0 < 0))) AND (col3 > 5 OR (col0 > 6) AND (col0 >= 7))
----

query I rowsort label-5055
SELECT pk FROM tab1 WHERE NOT ((((col0 < 0))) AND (col3 > 5 OR (col0 > 6) AND (col0 >= 7)))
----
0

statement ok
DELETE FROM tab2 WHERE (((col0 < 0))) AND (col3 > 5 OR (col0 > 6) AND (col0 >= 7))

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (((col0 < 0))) AND (col3 > 5 OR (col0 > 6) AND (col0 >= 7))
----

query I rowsort label-5055
SELECT pk FROM tab2 WHERE NOT ((((col0 < 0))) AND (col3 > 5 OR (col0 > 6) AND (col0 >= 7)))
----
0

statement ok
DELETE FROM tab3 WHERE (((col0 < 0))) AND (col3 > 5 OR (col0 > 6) AND (col0 >= 7))

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (((col0 < 0))) AND (col3 > 5 OR (col0 > 6) AND (col0 >= 7))
----

query I rowsort label-5055
SELECT pk FROM tab3 WHERE NOT ((((col0 < 0))) AND (col3 > 5 OR (col0 > 6) AND (col0 >= 7)))
----
0

statement ok
DELETE FROM tab4 WHERE (((col0 < 0))) AND (col3 > 5 OR (col0 > 6) AND (col0 >= 7))

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (((col0 < 0))) AND (col3 > 5 OR (col0 > 6) AND (col0 >= 7))
----

query I rowsort label-5055
SELECT pk FROM tab4 WHERE NOT ((((col0 < 0))) AND (col3 > 5 OR (col0 > 6) AND (col0 >= 7)))
----
0

statement ok
DELETE FROM tab0 WHERE col0 > 0 AND col1 < 9.30

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col0 > 0 AND col1 < 9.30
----

query I rowsort label-5070
SELECT pk FROM tab0 WHERE NOT (col0 > 0 AND col1 < 9.30)
----

statement ok
DELETE FROM tab1 WHERE col0 > 0 AND col1 < 9.30

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col0 > 0 AND col1 < 9.30
----

query I rowsort label-5070
SELECT pk FROM tab1 WHERE NOT (col0 > 0 AND col1 < 9.30)
----

statement ok
DELETE FROM tab2 WHERE col0 > 0 AND col1 < 9.30

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col0 > 0 AND col1 < 9.30
----

query I rowsort label-5070
SELECT pk FROM tab2 WHERE NOT (col0 > 0 AND col1 < 9.30)
----

statement ok
DELETE FROM tab3 WHERE col0 > 0 AND col1 < 9.30

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col0 > 0 AND col1 < 9.30
----

query I rowsort label-5070
SELECT pk FROM tab3 WHERE NOT (col0 > 0 AND col1 < 9.30)
----

statement ok
DELETE FROM tab4 WHERE col0 > 0 AND col1 < 9.30

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col0 > 0 AND col1 < 9.30
----

query I rowsort label-5070
SELECT pk FROM tab4 WHERE NOT (col0 > 0 AND col1 < 9.30)
----

statement ok
DROP TABLE tab0

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,7,5.95,'jzwtv',0,8.87,'pkiwf')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

statement ok
CREATE TABLE tab2(pk INTEGER PRIMARY KEY, col0 INTEGER, col1 FLOAT, col2 TEXT, col3 INTEGER, col4 FLOAT, col5 TEXT)

statement ok
CREATE UNIQUE INDEX idx_tab2_0 ON tab2 (col3 DESC,col0 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab2_2 ON tab2 (col1,col4 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab2_5 ON tab2 (col4 DESC,col0 DESC)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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 (col3 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab3_3 ON tab3 (col4 DESC,col1 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab3_5 ON tab3 (col0)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

statement ok
CREATE TABLE tab4(pk INTEGER PRIMARY KEY, col0 INTEGER, col1 FLOAT, col2 TEXT, col3 INTEGER, col4 FLOAT, col5 TEXT)

statement ok
CREATE UNIQUE INDEX idx_tab4_0 ON tab4 (col3,col4 DESC,col1)

statement ok
CREATE INDEX idx_tab4_1 ON tab4 (col4,col1 DESC)

statement ok
CREATE INDEX idx_tab4_3 ON tab4 (col1 DESC,col0)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

query I rowsort label-empty
SELECT pk FROM tab0 WHERE pk IS NULL
----

statement ok
DELETE FROM tab0 WHERE (col3 <= 8) OR col0 < 3 AND ((col3 IN (0,5,8,4,1,1)))

query I rowsort label-empty
SELECT pk FROM tab0 WHERE (col3 <= 8) OR col0 < 3 AND ((col3 IN (0,5,8,4,1,1)))
----

query I rowsort label-5085
SELECT pk FROM tab0 WHERE NOT ((col3 <= 8) OR col0 < 3 AND ((col3 IN (0,5,8,4,1,1))))
----

statement ok
DELETE FROM tab1 WHERE (col3 <= 8) OR col0 < 3 AND ((col3 IN (0,5,8,4,1,1)))

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (col3 <= 8) OR col0 < 3 AND ((col3 IN (0,5,8,4,1,1)))
----

query I rowsort label-5085
SELECT pk FROM tab1 WHERE NOT ((col3 <= 8) OR col0 < 3 AND ((col3 IN (0,5,8,4,1,1))))
----

statement ok
DELETE FROM tab2 WHERE (col3 <= 8) OR col0 < 3 AND ((col3 IN (0,5,8,4,1,1)))

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (col3 <= 8) OR col0 < 3 AND ((col3 IN (0,5,8,4,1,1)))
----

query I rowsort label-5085
SELECT pk FROM tab2 WHERE NOT ((col3 <= 8) OR col0 < 3 AND ((col3 IN (0,5,8,4,1,1))))
----

statement ok
DELETE FROM tab3 WHERE (col3 <= 8) OR col0 < 3 AND ((col3 IN (0,5,8,4,1,1)))

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (col3 <= 8) OR col0 < 3 AND ((col3 IN (0,5,8,4,1,1)))
----

query I rowsort label-5085
SELECT pk FROM tab3 WHERE NOT ((col3 <= 8) OR col0 < 3 AND ((col3 IN (0,5,8,4,1,1))))
----

statement ok
DELETE FROM tab4 WHERE (col3 <= 8) OR col0 < 3 AND ((col3 IN (0,5,8,4,1,1)))

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (col3 <= 8) OR col0 < 3 AND ((col3 IN (0,5,8,4,1,1)))
----

query I rowsort label-5085
SELECT pk FROM tab4 WHERE NOT ((col3 <= 8) OR col0 < 3 AND ((col3 IN (0,5,8,4,1,1))))
----

statement ok
DROP TABLE tab0

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,4,8.86,'bjnjt',6,8.83,'zktqu')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

statement ok
CREATE TABLE tab2(pk INTEGER PRIMARY KEY, col0 INTEGER, col1 FLOAT, col2 TEXT, col3 INTEGER, col4 FLOAT, col5 TEXT)

statement ok
CREATE UNIQUE INDEX idx_tab2_0 ON tab2 (col1)

statement ok
CREATE INDEX idx_tab2_2 ON tab2 (col0 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab2_5 ON tab2 (col3)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

statement ok
CREATE TABLE tab3(pk INTEGER PRIMARY KEY, col0 INTEGER, col1 FLOAT, col2 TEXT, col3 INTEGER, col4 FLOAT, col5 TEXT)

statement ok
CREATE INDEX idx_tab3_0 ON tab3 (col1 DESC)

statement ok
CREATE INDEX idx_tab3_1 ON tab3 (col0,col3)

statement ok
CREATE INDEX idx_tab3_2 ON tab3 (col4)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

statement ok
CREATE TABLE tab4(pk INTEGER PRIMARY KEY, col0 INTEGER, col1 FLOAT, col2 TEXT, col3 INTEGER, col4 FLOAT, col5 TEXT)

statement ok
CREATE UNIQUE INDEX idx_tab4_0 ON tab4 (col3 DESC,col0)

statement ok
CREATE INDEX idx_tab4_1 ON tab4 (col1)

statement ok
CREATE INDEX idx_tab4_2 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
----

statement ok
DROP TABLE tab0

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,8,3.27,'iuicp',3,3.42,'wvtds')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

statement ok
CREATE TABLE tab2(pk INTEGER PRIMARY KEY, col0 INTEGER, col1 FLOAT, col2 TEXT, col3 INTEGER, col4 FLOAT, col5 TEXT)

statement ok
CREATE INDEX idx_tab2_0 ON tab2 (col3 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab2_1 ON tab2 (col1,col4 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab2_2 ON tab2 (col1,col0)

statement ok
CREATE UNIQUE INDEX idx_tab2_4 ON tab2 (col0 DESC)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

statement ok
CREATE TABLE tab3(pk INTEGER PRIMARY KEY, col0 INTEGER, col1 FLOAT, col2 TEXT, col3 INTEGER, col4 FLOAT, col5 TEXT)

statement ok
CREATE INDEX idx_tab3_0 ON tab3 (col1 DESC,col3 DESC)

statement ok
CREATE INDEX idx_tab3_4 ON tab3 (col4 DESC,col1)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

statement ok
CREATE TABLE tab4(pk INTEGER PRIMARY KEY, col0 INTEGER, col1 FLOAT, col2 TEXT, col3 INTEGER, col4 FLOAT, col5 TEXT)

statement ok
CREATE INDEX idx_tab4_0 ON tab4 (col3)

statement ok
CREATE INDEX idx_tab4_4 ON tab4 (col0 DESC)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

query I rowsort label-empty
SELECT pk FROM tab0 WHERE pk IS NULL
----

statement ok
DELETE FROM tab0 WHERE ((col0 < 1))

query I rowsort label-empty
SELECT pk FROM tab0 WHERE ((col0 < 1))
----

query I rowsort label-5100
SELECT pk FROM tab0 WHERE NOT (((col0 < 1)))
----
0

statement ok
DELETE FROM tab1 WHERE ((col0 < 1))

query I rowsort label-empty
SELECT pk FROM tab1 WHERE ((col0 < 1))
----

query I rowsort label-5100
SELECT pk FROM tab1 WHERE NOT (((col0 < 1)))
----
0

statement ok
DELETE FROM tab2 WHERE ((col0 < 1))

query I rowsort label-empty
SELECT pk FROM tab2 WHERE ((col0 < 1))
----

query I rowsort label-5100
SELECT pk FROM tab2 WHERE NOT (((col0 < 1)))
----
0

statement ok
DELETE FROM tab3 WHERE ((col0 < 1))

query I rowsort label-empty
SELECT pk FROM tab3 WHERE ((col0 < 1))
----

query I rowsort label-5100
SELECT pk FROM tab3 WHERE NOT (((col0 < 1)))
----
0

statement ok
DELETE FROM tab4 WHERE ((col0 < 1))

query I rowsort label-empty
SELECT pk FROM tab4 WHERE ((col0 < 1))
----

query I rowsort label-5100
SELECT pk FROM tab4 WHERE NOT (((col0 < 1)))
----
0

statement ok
DELETE FROM tab0 WHERE ((((col3 = 8 AND (col3 <= 8 OR (col4 = 5.56) OR col0 IS NULL AND (((((col0 <= 2))))) OR (((col3 > 1))) OR col4 <= 8.33 AND col3 = 5 AND col3 > 5 AND col4 <= 8.14 OR (col4 > 4.88 AND (col3 = 1)) AND (col1 > 5.72) OR col0 > 9 AND ((col0 <= 7)) AND col4 > 7.77 OR col0 > 2 OR (((col4 <= 2.70 AND ((col4 >= 9.26)) AND (col0 < 3) OR (col0 IS NULL OR col1 = 4.59 AND col3 >= 8 OR col0 <= 5 OR col0 > 0) OR (col1 <= 6.95 AND (col1 > 7.25 OR col3 > 1 OR (col0 >= 2 OR col1 > 1.78 OR (col4 > 2.58) OR (col0 < 5)))))))))))) AND (col0 >= 5)

query I rowsort label-empty
SELECT pk FROM tab0 WHERE ((((col3 = 8 AND (col3 <= 8 OR (col4 = 5.56) OR col0 IS NULL AND (((((col0 <= 2))))) OR (((col3 > 1))) OR col4 <= 8.33 AND col3 = 5 AND col3 > 5 AND col4 <= 8.14 OR (col4 > 4.88 AND (col3 = 1)) AND (col1 > 5.72) OR col0 > 9 AND ((col0 <= 7)) AND col4 > 7.77 OR col0 > 2 OR (((col4 <= 2.70 AND ((col4 >= 9.26)) AND (col0 < 3) OR (col0 IS NULL OR col1 = 4.59 AND col3 >= 8 OR col0 <= 5 OR col0 > 0) OR (col1 <= 6.95 AND (col1 > 7.25 OR col3 > 1 OR (col0 >= 2 OR col1 > 1.78 OR (col4 > 2.58) OR (col0 < 5)))))))))))) AND (col0 >= 5)
----

query I rowsort label-5115
SELECT pk FROM tab0 WHERE NOT (((((col3 = 8 AND (col3 <= 8 OR (col4 = 5.56) OR col0 IS NULL AND (((((col0 <= 2))))) OR (((col3 > 1))) OR col4 <= 8.33 AND col3 = 5 AND col3 > 5 AND col4 <= 8.14 OR (col4 > 4.88 AND (col3 = 1)) AND (col1 > 5.72) OR col0 > 9 AND ((col0 <= 7)) AND col4 > 7.77 OR col0 > 2 OR (((col4 <= 2.70 AND ((col4 >= 9.26)) AND (col0 < 3) OR (col0 IS NULL OR col1 = 4.59 AND col3 >= 8 OR col0 <= 5 OR col0 > 0) OR (col1 <= 6.95 AND (col1 > 7.25 OR col3 > 1 OR (col0 >= 2 OR col1 > 1.78 OR (col4 > 2.58) OR (col0 < 5)))))))))))) AND (col0 >= 5))
----
0

statement ok
DELETE FROM tab1 WHERE ((((col3 = 8 AND (col3 <= 8 OR (col4 = 5.56) OR col0 IS NULL AND (((((col0 <= 2))))) OR (((col3 > 1))) OR col4 <= 8.33 AND col3 = 5 AND col3 > 5 AND col4 <= 8.14 OR (col4 > 4.88 AND (col3 = 1)) AND (col1 > 5.72) OR col0 > 9 AND ((col0 <= 7)) AND col4 > 7.77 OR col0 > 2 OR (((col4 <= 2.70 AND ((col4 >= 9.26)) AND (col0 < 3) OR (col0 IS NULL OR col1 = 4.59 AND col3 >= 8 OR col0 <= 5 OR col0 > 0) OR (col1 <= 6.95 AND (col1 > 7.25 OR col3 > 1 OR (col0 >= 2 OR col1 > 1.78 OR (col4 > 2.58) OR (col0 < 5)))))))))))) AND (col0 >= 5)

query I rowsort label-empty
SELECT pk FROM tab1 WHERE ((((col3 = 8 AND (col3 <= 8 OR (col4 = 5.56) OR col0 IS NULL AND (((((col0 <= 2))))) OR (((col3 > 1))) OR col4 <= 8.33 AND col3 = 5 AND col3 > 5 AND col4 <= 8.14 OR (col4 > 4.88 AND (col3 = 1)) AND (col1 > 5.72) OR col0 > 9 AND ((col0 <= 7)) AND col4 > 7.77 OR col0 > 2 OR (((col4 <= 2.70 AND ((col4 >= 9.26)) AND (col0 < 3) OR (col0 IS NULL OR col1 = 4.59 AND col3 >= 8 OR col0 <= 5 OR col0 > 0) OR (col1 <= 6.95 AND (col1 > 7.25 OR col3 > 1 OR (col0 >= 2 OR col1 > 1.78 OR (col4 > 2.58) OR (col0 < 5)))))))))))) AND (col0 >= 5)
----

query I rowsort label-5115
SELECT pk FROM tab1 WHERE NOT (((((col3 = 8 AND (col3 <= 8 OR (col4 = 5.56) OR col0 IS NULL AND (((((col0 <= 2))))) OR (((col3 > 1))) OR col4 <= 8.33 AND col3 = 5 AND col3 > 5 AND col4 <= 8.14 OR (col4 > 4.88 AND (col3 = 1)) AND (col1 > 5.72) OR col0 > 9 AND ((col0 <= 7)) AND col4 > 7.77 OR col0 > 2 OR (((col4 <= 2.70 AND ((col4 >= 9.26)) AND (col0 < 3) OR (col0 IS NULL OR col1 = 4.59 AND col3 >= 8 OR col0 <= 5 OR col0 > 0) OR (col1 <= 6.95 AND (col1 > 7.25 OR col3 > 1 OR (col0 >= 2 OR col1 > 1.78 OR (col4 > 2.58) OR (col0 < 5)))))))))))) AND (col0 >= 5))
----
0

statement ok
DELETE FROM tab2 WHERE ((((col3 = 8 AND (col3 <= 8 OR (col4 = 5.56) OR col0 IS NULL AND (((((col0 <= 2))))) OR (((col3 > 1))) OR col4 <= 8.33 AND col3 = 5 AND col3 > 5 AND col4 <= 8.14 OR (col4 > 4.88 AND (col3 = 1)) AND (col1 > 5.72) OR col0 > 9 AND ((col0 <= 7)) AND col4 > 7.77 OR col0 > 2 OR (((col4 <= 2.70 AND ((col4 >= 9.26)) AND (col0 < 3) OR (col0 IS NULL OR col1 = 4.59 AND col3 >= 8 OR col0 <= 5 OR col0 > 0) OR (col1 <= 6.95 AND (col1 > 7.25 OR col3 > 1 OR (col0 >= 2 OR col1 > 1.78 OR (col4 > 2.58) OR (col0 < 5)))))))))))) AND (col0 >= 5)

query I rowsort label-empty
SELECT pk FROM tab2 WHERE ((((col3 = 8 AND (col3 <= 8 OR (col4 = 5.56) OR col0 IS NULL AND (((((col0 <= 2))))) OR (((col3 > 1))) OR col4 <= 8.33 AND col3 = 5 AND col3 > 5 AND col4 <= 8.14 OR (col4 > 4.88 AND (col3 = 1)) AND (col1 > 5.72) OR col0 > 9 AND ((col0 <= 7)) AND col4 > 7.77 OR col0 > 2 OR (((col4 <= 2.70 AND ((col4 >= 9.26)) AND (col0 < 3) OR (col0 IS NULL OR col1 = 4.59 AND col3 >= 8 OR col0 <= 5 OR col0 > 0) OR (col1 <= 6.95 AND (col1 > 7.25 OR col3 > 1 OR (col0 >= 2 OR col1 > 1.78 OR (col4 > 2.58) OR (col0 < 5)))))))))))) AND (col0 >= 5)
----

query I rowsort label-5115
SELECT pk FROM tab2 WHERE NOT (((((col3 = 8 AND (col3 <= 8 OR (col4 = 5.56) OR col0 IS NULL AND (((((col0 <= 2))))) OR (((col3 > 1))) OR col4 <= 8.33 AND col3 = 5 AND col3 > 5 AND col4 <= 8.14 OR (col4 > 4.88 AND (col3 = 1)) AND (col1 > 5.72) OR col0 > 9 AND ((col0 <= 7)) AND col4 > 7.77 OR col0 > 2 OR (((col4 <= 2.70 AND ((col4 >= 9.26)) AND (col0 < 3) OR (col0 IS NULL OR col1 = 4.59 AND col3 >= 8 OR col0 <= 5 OR col0 > 0) OR (col1 <= 6.95 AND (col1 > 7.25 OR col3 > 1 OR (col0 >= 2 OR col1 > 1.78 OR (col4 > 2.58) OR (col0 < 5)))))))))))) AND (col0 >= 5))
----
0

statement ok
DELETE FROM tab3 WHERE ((((col3 = 8 AND (col3 <= 8 OR (col4 = 5.56) OR col0 IS NULL AND (((((col0 <= 2))))) OR (((col3 > 1))) OR col4 <= 8.33 AND col3 = 5 AND col3 > 5 AND col4 <= 8.14 OR (col4 > 4.88 AND (col3 = 1)) AND (col1 > 5.72) OR col0 > 9 AND ((col0 <= 7)) AND col4 > 7.77 OR col0 > 2 OR (((col4 <= 2.70 AND ((col4 >= 9.26)) AND (col0 < 3) OR (col0 IS NULL OR col1 = 4.59 AND col3 >= 8 OR col0 <= 5 OR col0 > 0) OR (col1 <= 6.95 AND (col1 > 7.25 OR col3 > 1 OR (col0 >= 2 OR col1 > 1.78 OR (col4 > 2.58) OR (col0 < 5)))))))))))) AND (col0 >= 5)

query I rowsort label-empty
SELECT pk FROM tab3 WHERE ((((col3 = 8 AND (col3 <= 8 OR (col4 = 5.56) OR col0 IS NULL AND (((((col0 <= 2))))) OR (((col3 > 1))) OR col4 <= 8.33 AND col3 = 5 AND col3 > 5 AND col4 <= 8.14 OR (col4 > 4.88 AND (col3 = 1)) AND (col1 > 5.72) OR col0 > 9 AND ((col0 <= 7)) AND col4 > 7.77 OR col0 > 2 OR (((col4 <= 2.70 AND ((col4 >= 9.26)) AND (col0 < 3) OR (col0 IS NULL OR col1 = 4.59 AND col3 >= 8 OR col0 <= 5 OR col0 > 0) OR (col1 <= 6.95 AND (col1 > 7.25 OR col3 > 1 OR (col0 >= 2 OR col1 > 1.78 OR (col4 > 2.58) OR (col0 < 5)))))))))))) AND (col0 >= 5)
----

query I rowsort label-5115
SELECT pk FROM tab3 WHERE NOT (((((col3 = 8 AND (col3 <= 8 OR (col4 = 5.56) OR col0 IS NULL AND (((((col0 <= 2))))) OR (((col3 > 1))) OR col4 <= 8.33 AND col3 = 5 AND col3 > 5 AND col4 <= 8.14 OR (col4 > 4.88 AND (col3 = 1)) AND (col1 > 5.72) OR col0 > 9 AND ((col0 <= 7)) AND col4 > 7.77 OR col0 > 2 OR (((col4 <= 2.70 AND ((col4 >= 9.26)) AND (col0 < 3) OR (col0 IS NULL OR col1 = 4.59 AND col3 >= 8 OR col0 <= 5 OR col0 > 0) OR (col1 <= 6.95 AND (col1 > 7.25 OR col3 > 1 OR (col0 >= 2 OR col1 > 1.78 OR (col4 > 2.58) OR (col0 < 5)))))))))))) AND (col0 >= 5))
----
0

statement ok
DELETE FROM tab4 WHERE ((((col3 = 8 AND (col3 <= 8 OR (col4 = 5.56) OR col0 IS NULL AND (((((col0 <= 2))))) OR (((col3 > 1))) OR col4 <= 8.33 AND col3 = 5 AND col3 > 5 AND col4 <= 8.14 OR (col4 > 4.88 AND (col3 = 1)) AND (col1 > 5.72) OR col0 > 9 AND ((col0 <= 7)) AND col4 > 7.77 OR col0 > 2 OR (((col4 <= 2.70 AND ((col4 >= 9.26)) AND (col0 < 3) OR (col0 IS NULL OR col1 = 4.59 AND col3 >= 8 OR col0 <= 5 OR col0 > 0) OR (col1 <= 6.95 AND (col1 > 7.25 OR col3 > 1 OR (col0 >= 2 OR col1 > 1.78 OR (col4 > 2.58) OR (col0 < 5)))))))))))) AND (col0 >= 5)

query I rowsort label-empty
SELECT pk FROM tab4 WHERE ((((col3 = 8 AND (col3 <= 8 OR (col4 = 5.56) OR col0 IS NULL AND (((((col0 <= 2))))) OR (((col3 > 1))) OR col4 <= 8.33 AND col3 = 5 AND col3 > 5 AND col4 <= 8.14 OR (col4 > 4.88 AND (col3 = 1)) AND (col1 > 5.72) OR col0 > 9 AND ((col0 <= 7)) AND col4 > 7.77 OR col0 > 2 OR (((col4 <= 2.70 AND ((col4 >= 9.26)) AND (col0 < 3) OR (col0 IS NULL OR col1 = 4.59 AND col3 >= 8 OR col0 <= 5 OR col0 > 0) OR (col1 <= 6.95 AND (col1 > 7.25 OR col3 > 1 OR (col0 >= 2 OR col1 > 1.78 OR (col4 > 2.58) OR (col0 < 5)))))))))))) AND (col0 >= 5)
----

query I rowsort label-5115
SELECT pk FROM tab4 WHERE NOT (((((col3 = 8 AND (col3 <= 8 OR (col4 = 5.56) OR col0 IS NULL AND (((((col0 <= 2))))) OR (((col3 > 1))) OR col4 <= 8.33 AND col3 = 5 AND col3 > 5 AND col4 <= 8.14 OR (col4 > 4.88 AND (col3 = 1)) AND (col1 > 5.72) OR col0 > 9 AND ((col0 <= 7)) AND col4 > 7.77 OR col0 > 2 OR (((col4 <= 2.70 AND ((col4 >= 9.26)) AND (col0 < 3) OR (col0 IS NULL OR col1 = 4.59 AND col3 >= 8 OR col0 <= 5 OR col0 > 0) OR (col1 <= 6.95 AND (col1 > 7.25 OR col3 > 1 OR (col0 >= 2 OR col1 > 1.78 OR (col4 > 2.58) OR (col0 < 5)))))))))))) AND (col0 >= 5))
----
0

statement ok
DELETE FROM tab0 WHERE (col1 IS NULL AND col4 IS NULL)

query I rowsort label-empty
SELECT pk FROM tab0 WHERE (col1 IS NULL AND col4 IS NULL)
----

query I rowsort label-5130
SELECT pk FROM tab0 WHERE NOT ((col1 IS NULL AND col4 IS NULL))
----
0

statement ok
DELETE FROM tab1 WHERE (col1 IS NULL AND col4 IS NULL)

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (col1 IS NULL AND col4 IS NULL)
----

query I rowsort label-5130
SELECT pk FROM tab1 WHERE NOT ((col1 IS NULL AND col4 IS NULL))
----
0

statement ok
DELETE FROM tab2 WHERE (col1 IS NULL AND col4 IS NULL)

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (col1 IS NULL AND col4 IS NULL)
----

query I rowsort label-5130
SELECT pk FROM tab2 WHERE NOT ((col1 IS NULL AND col4 IS NULL))
----
0

statement ok
DELETE FROM tab3 WHERE (col1 IS NULL AND col4 IS NULL)

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (col1 IS NULL AND col4 IS NULL)
----

query I rowsort label-5130
SELECT pk FROM tab3 WHERE NOT ((col1 IS NULL AND col4 IS NULL))
----
0

statement ok
DELETE FROM tab4 WHERE (col1 IS NULL AND col4 IS NULL)

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (col1 IS NULL AND col4 IS NULL)
----

query I rowsort label-5130
SELECT pk FROM tab4 WHERE NOT ((col1 IS NULL AND col4 IS NULL))
----
0

statement ok
DELETE FROM tab0 WHERE col1 = 7.18

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col1 = 7.18
----

query I rowsort label-5145
SELECT pk FROM tab0 WHERE NOT (col1 = 7.18)
----
0

statement ok
DELETE FROM tab1 WHERE col1 = 7.18

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col1 = 7.18
----

query I rowsort label-5145
SELECT pk FROM tab1 WHERE NOT (col1 = 7.18)
----
0

statement ok
DELETE FROM tab2 WHERE col1 = 7.18

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col1 = 7.18
----

query I rowsort label-5145
SELECT pk FROM tab2 WHERE NOT (col1 = 7.18)
----
0

statement ok
DELETE FROM tab3 WHERE col1 = 7.18

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col1 = 7.18
----

query I rowsort label-5145
SELECT pk FROM tab3 WHERE NOT (col1 = 7.18)
----
0

statement ok
DELETE FROM tab4 WHERE col1 = 7.18

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col1 = 7.18
----

query I rowsort label-5145
SELECT pk FROM tab4 WHERE NOT (col1 = 7.18)
----
0

statement ok
DELETE FROM tab0 WHERE (col3 < 3)

query I rowsort label-empty
SELECT pk FROM tab0 WHERE (col3 < 3)
----

query I rowsort label-5160
SELECT pk FROM tab0 WHERE NOT ((col3 < 3))
----
0

statement ok
DELETE FROM tab1 WHERE (col3 < 3)

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (col3 < 3)
----

query I rowsort label-5160
SELECT pk FROM tab1 WHERE NOT ((col3 < 3))
----
0

statement ok
DELETE FROM tab2 WHERE (col3 < 3)

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (col3 < 3)
----

query I rowsort label-5160
SELECT pk FROM tab2 WHERE NOT ((col3 < 3))
----
0

statement ok
DELETE FROM tab3 WHERE (col3 < 3)

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (col3 < 3)
----

query I rowsort label-5160
SELECT pk FROM tab3 WHERE NOT ((col3 < 3))
----
0

statement ok
DELETE FROM tab4 WHERE (col3 < 3)

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (col3 < 3)
----

query I rowsort label-5160
SELECT pk FROM tab4 WHERE NOT ((col3 < 3))
----
0

statement ok
DELETE FROM tab0 WHERE col0 < 1 AND col3 < 0

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col0 < 1 AND col3 < 0
----

query I rowsort label-5175
SELECT pk FROM tab0 WHERE NOT (col0 < 1 AND col3 < 0)
----
0

statement ok
DELETE FROM tab1 WHERE col0 < 1 AND col3 < 0

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col0 < 1 AND col3 < 0
----

query I rowsort label-5175
SELECT pk FROM tab1 WHERE NOT (col0 < 1 AND col3 < 0)
----
0

statement ok
DELETE FROM tab2 WHERE col0 < 1 AND col3 < 0

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col0 < 1 AND col3 < 0
----

query I rowsort label-5175
SELECT pk FROM tab2 WHERE NOT (col0 < 1 AND col3 < 0)
----
0

statement ok
DELETE FROM tab3 WHERE col0 < 1 AND col3 < 0

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col0 < 1 AND col3 < 0
----

query I rowsort label-5175
SELECT pk FROM tab3 WHERE NOT (col0 < 1 AND col3 < 0)
----
0

statement ok
DELETE FROM tab4 WHERE col0 < 1 AND col3 < 0

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col0 < 1 AND col3 < 0
----

query I rowsort label-5175
SELECT pk FROM tab4 WHERE NOT (col0 < 1 AND col3 < 0)
----
0

statement ok
DELETE FROM tab0 WHERE col1 < 3.68

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col1 < 3.68
----

query I rowsort label-5190
SELECT pk FROM tab0 WHERE NOT (col1 < 3.68)
----

statement ok
DELETE FROM tab1 WHERE col1 < 3.68

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col1 < 3.68
----

query I rowsort label-5190
SELECT pk FROM tab1 WHERE NOT (col1 < 3.68)
----

statement ok
DELETE FROM tab2 WHERE col1 < 3.68

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col1 < 3.68
----

query I rowsort label-5190
SELECT pk FROM tab2 WHERE NOT (col1 < 3.68)
----

statement ok
DELETE FROM tab3 WHERE col1 < 3.68

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col1 < 3.68
----

query I rowsort label-5190
SELECT pk FROM tab3 WHERE NOT (col1 < 3.68)
----

statement ok
DELETE FROM tab4 WHERE col1 < 3.68

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col1 < 3.68
----

query I rowsort label-5190
SELECT pk FROM tab4 WHERE NOT (col1 < 3.68)
----

statement ok
DROP TABLE tab0

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,0,4.41,'xtfti',5,3.43,'bqoms')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

statement ok
CREATE TABLE tab2(pk INTEGER PRIMARY KEY, col0 INTEGER, col1 FLOAT, col2 TEXT, col3 INTEGER, col4 FLOAT, col5 TEXT)

statement ok
CREATE UNIQUE INDEX idx_tab2_0 ON tab2 (col1,col0 DESC,col3 DESC)

statement ok
CREATE INDEX idx_tab2_1 ON tab2 (col0)

statement ok
CREATE UNIQUE INDEX idx_tab2_3 ON tab2 (col1 DESC,col3)

statement ok
CREATE UNIQUE INDEX idx_tab2_4 ON tab2 (col3)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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 DESC,col1 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab3_1 ON tab3 (col3 DESC)

statement ok
CREATE INDEX idx_tab3_3 ON tab3 (col0 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab3_4 ON tab3 (col1 DESC)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

statement ok
CREATE TABLE tab4(pk INTEGER PRIMARY KEY, col0 INTEGER, col1 FLOAT, col2 TEXT, col3 INTEGER, col4 FLOAT, col5 TEXT)

statement ok
CREATE INDEX idx_tab4_0 ON tab4 (col4,col0)

statement ok
CREATE INDEX idx_tab4_1 ON tab4 (col1)

statement ok
CREATE INDEX idx_tab4_3 ON tab4 (col0)

statement ok
CREATE INDEX idx_tab4_5 ON tab4 (col3)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

query I rowsort label-empty
SELECT pk FROM tab0 WHERE pk IS NULL
----

statement ok
DROP TABLE tab0

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,0,8.61,'ktgtm',0,7.85,'bnbrs')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

statement ok
CREATE TABLE tab2(pk INTEGER PRIMARY KEY, col0 INTEGER, col1 FLOAT, col2 TEXT, col3 INTEGER, col4 FLOAT, col5 TEXT)

statement ok
CREATE UNIQUE INDEX idx_tab2_0 ON tab2 (col1 DESC,col4 DESC)

statement ok
CREATE INDEX idx_tab2_2 ON tab2 (col4,col3 DESC,col1)

statement ok
CREATE UNIQUE INDEX idx_tab2_4 ON tab2 (col4 DESC,col1)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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 DESC)

statement ok
CREATE INDEX idx_tab3_5 ON tab3 (col3)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

statement ok
CREATE TABLE tab4(pk INTEGER PRIMARY KEY, col0 INTEGER, col1 FLOAT, col2 TEXT, col3 INTEGER, col4 FLOAT, col5 TEXT)

statement ok
CREATE INDEX idx_tab4_0 ON tab4 (col4,col3 DESC,col1 DESC)

statement ok
CREATE INDEX idx_tab4_1 ON tab4 (col1,col0)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

query I rowsort label-empty
SELECT pk FROM tab0 WHERE pk IS NULL
----

statement ok
DELETE FROM tab0 WHERE (col4 >= 4.72 OR col0 >= 7)

query I rowsort label-empty
SELECT pk FROM tab0 WHERE (col4 >= 4.72 OR col0 >= 7)
----

query I rowsort label-5205
SELECT pk FROM tab0 WHERE NOT ((col4 >= 4.72 OR col0 >= 7))
----

statement ok
DELETE FROM tab1 WHERE (col4 >= 4.72 OR col0 >= 7)

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (col4 >= 4.72 OR col0 >= 7)
----

query I rowsort label-5205
SELECT pk FROM tab1 WHERE NOT ((col4 >= 4.72 OR col0 >= 7))
----

statement ok
DELETE FROM tab2 WHERE (col4 >= 4.72 OR col0 >= 7)

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (col4 >= 4.72 OR col0 >= 7)
----

query I rowsort label-5205
SELECT pk FROM tab2 WHERE NOT ((col4 >= 4.72 OR col0 >= 7))
----

statement ok
DELETE FROM tab3 WHERE (col4 >= 4.72 OR col0 >= 7)

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (col4 >= 4.72 OR col0 >= 7)
----

query I rowsort label-5205
SELECT pk FROM tab3 WHERE NOT ((col4 >= 4.72 OR col0 >= 7))
----

statement ok
DELETE FROM tab4 WHERE (col4 >= 4.72 OR col0 >= 7)

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (col4 >= 4.72 OR col0 >= 7)
----

query I rowsort label-5205
SELECT pk FROM tab4 WHERE NOT ((col4 >= 4.72 OR col0 >= 7))
----

statement ok
DROP TABLE tab0

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,5,8.49,'znfsw',8,9.36,'qxmjc')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

statement ok
CREATE TABLE tab2(pk INTEGER PRIMARY KEY, col0 INTEGER, col1 FLOAT, col2 TEXT, col3 INTEGER, col4 FLOAT, col5 TEXT)

statement ok
CREATE UNIQUE INDEX idx_tab2_0 ON tab2 (col3 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab2_3 ON tab2 (col0 DESC)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

statement ok
CREATE TABLE tab3(pk INTEGER PRIMARY KEY, col0 INTEGER, col1 FLOAT, col2 TEXT, col3 INTEGER, col4 FLOAT, col5 TEXT)

statement ok
CREATE INDEX idx_tab3_1 ON tab3 (col4)

statement ok
CREATE UNIQUE INDEX idx_tab3_2 ON tab3 (col0,col1)

statement ok
CREATE UNIQUE INDEX idx_tab3_4 ON tab3 (col1 DESC)

statement ok
CREATE INDEX idx_tab3_5 ON tab3 (col3 DESC,col0 DESC)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

statement ok
CREATE TABLE tab4(pk INTEGER PRIMARY KEY, col0 INTEGER, col1 FLOAT, col2 TEXT, col3 INTEGER, col4 FLOAT, col5 TEXT)

statement ok
CREATE INDEX idx_tab4_0 ON tab4 (col1)

statement ok
CREATE INDEX idx_tab4_1 ON tab4 (col4)

statement ok
CREATE UNIQUE INDEX idx_tab4_3 ON tab4 (col3 DESC)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

query I rowsort label-empty
SELECT pk FROM tab0 WHERE pk IS NULL
----

statement ok
DELETE FROM tab0 WHERE (col1 > 2.52) AND col4 > 1.84

query I rowsort label-empty
SELECT pk FROM tab0 WHERE (col1 > 2.52) AND col4 > 1.84
----

query I rowsort label-5220
SELECT pk FROM tab0 WHERE NOT ((col1 > 2.52) AND col4 > 1.84)
----

statement ok
DELETE FROM tab1 WHERE (col1 > 2.52) AND col4 > 1.84

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (col1 > 2.52) AND col4 > 1.84
----

query I rowsort label-5220
SELECT pk FROM tab1 WHERE NOT ((col1 > 2.52) AND col4 > 1.84)
----

statement ok
DELETE FROM tab2 WHERE (col1 > 2.52) AND col4 > 1.84

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (col1 > 2.52) AND col4 > 1.84
----

query I rowsort label-5220
SELECT pk FROM tab2 WHERE NOT ((col1 > 2.52) AND col4 > 1.84)
----

statement ok
DELETE FROM tab3 WHERE (col1 > 2.52) AND col4 > 1.84

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (col1 > 2.52) AND col4 > 1.84
----

query I rowsort label-5220
SELECT pk FROM tab3 WHERE NOT ((col1 > 2.52) AND col4 > 1.84)
----

statement ok
DELETE FROM tab4 WHERE (col1 > 2.52) AND col4 > 1.84

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (col1 > 2.52) AND col4 > 1.84
----

query I rowsort label-5220
SELECT pk FROM tab4 WHERE NOT ((col1 > 2.52) AND col4 > 1.84)
----

statement ok
DROP TABLE tab0

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,5,7.94,'chiez',9,1.83,'ddvbw')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

statement ok
CREATE TABLE tab2(pk INTEGER PRIMARY KEY, col0 INTEGER, col1 FLOAT, col2 TEXT, col3 INTEGER, col4 FLOAT, col5 TEXT)

statement ok
CREATE INDEX idx_tab2_0 ON tab2 (col3 DESC)

statement ok
CREATE INDEX idx_tab2_1 ON tab2 (col0 DESC)

statement ok
CREATE INDEX idx_tab2_2 ON tab2 (col1,col4)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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_2 ON tab3 (col3 DESC)

statement ok
CREATE INDEX idx_tab3_4 ON tab3 (col0)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

statement ok
CREATE TABLE tab4(pk INTEGER PRIMARY KEY, col0 INTEGER, col1 FLOAT, col2 TEXT, col3 INTEGER, col4 FLOAT, col5 TEXT)

statement ok
CREATE INDEX idx_tab4_0 ON tab4 (col3 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab4_3 ON tab4 (col1,col0 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab4_4 ON tab4 (col1 DESC,col4)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

query I rowsort label-empty
SELECT pk FROM tab0 WHERE pk IS NULL
----

statement ok
DELETE FROM tab0 WHERE col4 IN (8.14,3.39,4.45,5.22)

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col4 IN (8.14,3.39,4.45,5.22)
----

query I rowsort label-5235
SELECT pk FROM tab0 WHERE NOT (col4 IN (8.14,3.39,4.45,5.22))
----
0

statement ok
DELETE FROM tab1 WHERE col4 IN (8.14,3.39,4.45,5.22)

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col4 IN (8.14,3.39,4.45,5.22)
----

query I rowsort label-5235
SELECT pk FROM tab1 WHERE NOT (col4 IN (8.14,3.39,4.45,5.22))
----
0

statement ok
DELETE FROM tab2 WHERE col4 IN (8.14,3.39,4.45,5.22)

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col4 IN (8.14,3.39,4.45,5.22)
----

query I rowsort label-5235
SELECT pk FROM tab2 WHERE NOT (col4 IN (8.14,3.39,4.45,5.22))
----
0

statement ok
DELETE FROM tab3 WHERE col4 IN (8.14,3.39,4.45,5.22)

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col4 IN (8.14,3.39,4.45,5.22)
----

query I rowsort label-5235
SELECT pk FROM tab3 WHERE NOT (col4 IN (8.14,3.39,4.45,5.22))
----
0

statement ok
DELETE FROM tab4 WHERE col4 IN (8.14,3.39,4.45,5.22)

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col4 IN (8.14,3.39,4.45,5.22)
----

query I rowsort label-5235
SELECT pk FROM tab4 WHERE NOT (col4 IN (8.14,3.39,4.45,5.22))
----
0

statement ok
DELETE FROM tab0 WHERE (col0 > 7)

query I rowsort label-empty
SELECT pk FROM tab0 WHERE (col0 > 7)
----

query I rowsort label-5250
SELECT pk FROM tab0 WHERE NOT ((col0 > 7))
----
0

statement ok
DELETE FROM tab1 WHERE (col0 > 7)

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (col0 > 7)
----

query I rowsort label-5250
SELECT pk FROM tab1 WHERE NOT ((col0 > 7))
----
0

statement ok
DELETE FROM tab2 WHERE (col0 > 7)

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (col0 > 7)
----

query I rowsort label-5250
SELECT pk FROM tab2 WHERE NOT ((col0 > 7))
----
0

statement ok
DELETE FROM tab3 WHERE (col0 > 7)

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (col0 > 7)
----

query I rowsort label-5250
SELECT pk FROM tab3 WHERE NOT ((col0 > 7))
----
0

statement ok
DELETE FROM tab4 WHERE (col0 > 7)

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (col0 > 7)
----

query I rowsort label-5250
SELECT pk FROM tab4 WHERE NOT ((col0 > 7))
----
0

statement ok
DELETE FROM tab0 WHERE col0 >= 8 OR ((((((col1 = 6.30 OR col0 > 3)) AND col4 >= 8.2 OR (((((col0 >= 6))) AND col3 < 0)))) AND col3 > 0 OR col1 >= 7.26))

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col0 >= 8 OR ((((((col1 = 6.30 OR col0 > 3)) AND col4 >= 8.2 OR (((((col0 >= 6))) AND col3 < 0)))) AND col3 > 0 OR col1 >= 7.26))
----

query I rowsort label-5265
SELECT pk FROM tab0 WHERE NOT (col0 >= 8 OR ((((((col1 = 6.30 OR col0 > 3)) AND col4 >= 8.2 OR (((((col0 >= 6))) AND col3 < 0)))) AND col3 > 0 OR col1 >= 7.26)))
----

statement ok
DELETE FROM tab1 WHERE col0 >= 8 OR ((((((col1 = 6.30 OR col0 > 3)) AND col4 >= 8.2 OR (((((col0 >= 6))) AND col3 < 0)))) AND col3 > 0 OR col1 >= 7.26))

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col0 >= 8 OR ((((((col1 = 6.30 OR col0 > 3)) AND col4 >= 8.2 OR (((((col0 >= 6))) AND col3 < 0)))) AND col3 > 0 OR col1 >= 7.26))
----

query I rowsort label-5265
SELECT pk FROM tab1 WHERE NOT (col0 >= 8 OR ((((((col1 = 6.30 OR col0 > 3)) AND col4 >= 8.2 OR (((((col0 >= 6))) AND col3 < 0)))) AND col3 > 0 OR col1 >= 7.26)))
----

statement ok
DELETE FROM tab2 WHERE col0 >= 8 OR ((((((col1 = 6.30 OR col0 > 3)) AND col4 >= 8.2 OR (((((col0 >= 6))) AND col3 < 0)))) AND col3 > 0 OR col1 >= 7.26))

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col0 >= 8 OR ((((((col1 = 6.30 OR col0 > 3)) AND col4 >= 8.2 OR (((((col0 >= 6))) AND col3 < 0)))) AND col3 > 0 OR col1 >= 7.26))
----

query I rowsort label-5265
SELECT pk FROM tab2 WHERE NOT (col0 >= 8 OR ((((((col1 = 6.30 OR col0 > 3)) AND col4 >= 8.2 OR (((((col0 >= 6))) AND col3 < 0)))) AND col3 > 0 OR col1 >= 7.26)))
----

statement ok
DELETE FROM tab3 WHERE col0 >= 8 OR ((((((col1 = 6.30 OR col0 > 3)) AND col4 >= 8.2 OR (((((col0 >= 6))) AND col3 < 0)))) AND col3 > 0 OR col1 >= 7.26))

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col0 >= 8 OR ((((((col1 = 6.30 OR col0 > 3)) AND col4 >= 8.2 OR (((((col0 >= 6))) AND col3 < 0)))) AND col3 > 0 OR col1 >= 7.26))
----

query I rowsort label-5265
SELECT pk FROM tab3 WHERE NOT (col0 >= 8 OR ((((((col1 = 6.30 OR col0 > 3)) AND col4 >= 8.2 OR (((((col0 >= 6))) AND col3 < 0)))) AND col3 > 0 OR col1 >= 7.26)))
----

statement ok
DELETE FROM tab4 WHERE col0 >= 8 OR ((((((col1 = 6.30 OR col0 > 3)) AND col4 >= 8.2 OR (((((col0 >= 6))) AND col3 < 0)))) AND col3 > 0 OR col1 >= 7.26))

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col0 >= 8 OR ((((((col1 = 6.30 OR col0 > 3)) AND col4 >= 8.2 OR (((((col0 >= 6))) AND col3 < 0)))) AND col3 > 0 OR col1 >= 7.26))
----

query I rowsort label-5265
SELECT pk FROM tab4 WHERE NOT (col0 >= 8 OR ((((((col1 = 6.30 OR col0 > 3)) AND col4 >= 8.2 OR (((((col0 >= 6))) AND col3 < 0)))) AND col3 > 0 OR col1 >= 7.26)))
----

statement ok
DROP TABLE tab0

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,6,1.20,'mogca',8,9.29,'usrqw')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

statement ok
CREATE TABLE tab2(pk INTEGER PRIMARY KEY, col0 INTEGER, col1 FLOAT, col2 TEXT, col3 INTEGER, col4 FLOAT, col5 TEXT)

statement ok
CREATE UNIQUE INDEX idx_tab2_0 ON tab2 (col3,col0 DESC)

statement ok
CREATE INDEX idx_tab2_2 ON tab2 (col4 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab2_3 ON tab2 (col0 DESC)

statement ok
CREATE INDEX idx_tab2_4 ON tab2 (col1)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

statement ok
CREATE TABLE tab3(pk INTEGER PRIMARY KEY, col0 INTEGER, col1 FLOAT, col2 TEXT, col3 INTEGER, col4 FLOAT, col5 TEXT)

statement ok
CREATE INDEX idx_tab3_0 ON tab3 (col1)

statement ok
CREATE INDEX idx_tab3_1 ON tab3 (col0)

statement ok
CREATE UNIQUE INDEX idx_tab3_4 ON tab3 (col4)

statement ok
CREATE UNIQUE INDEX idx_tab3_5 ON tab3 (col3)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

statement ok
CREATE TABLE tab4(pk INTEGER PRIMARY KEY, col0 INTEGER, col1 FLOAT, col2 TEXT, col3 INTEGER, col4 FLOAT, col5 TEXT)

statement ok
CREATE INDEX idx_tab4_0 ON tab4 (col3 DESC)

statement ok
CREATE INDEX idx_tab4_1 ON tab4 (col0,col1 DESC)

statement ok
CREATE INDEX idx_tab4_3 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
----

statement ok
DELETE FROM tab0 WHERE ((col3 >= 0) AND col1 > 3.85)

query I rowsort label-empty
SELECT pk FROM tab0 WHERE ((col3 >= 0) AND col1 > 3.85)
----

query I rowsort label-5280
SELECT pk FROM tab0 WHERE NOT (((col3 >= 0) AND col1 > 3.85))
----
0

statement ok
DELETE FROM tab1 WHERE ((col3 >= 0) AND col1 > 3.85)

query I rowsort label-empty
SELECT pk FROM tab1 WHERE ((col3 >= 0) AND col1 > 3.85)
----

query I rowsort label-5280
SELECT pk FROM tab1 WHERE NOT (((col3 >= 0) AND col1 > 3.85))
----
0

statement ok
DELETE FROM tab2 WHERE ((col3 >= 0) AND col1 > 3.85)

query I rowsort label-empty
SELECT pk FROM tab2 WHERE ((col3 >= 0) AND col1 > 3.85)
----

query I rowsort label-5280
SELECT pk FROM tab2 WHERE NOT (((col3 >= 0) AND col1 > 3.85))
----
0

statement ok
DELETE FROM tab3 WHERE ((col3 >= 0) AND col1 > 3.85)

query I rowsort label-empty
SELECT pk FROM tab3 WHERE ((col3 >= 0) AND col1 > 3.85)
----

query I rowsort label-5280
SELECT pk FROM tab3 WHERE NOT (((col3 >= 0) AND col1 > 3.85))
----
0

statement ok
DELETE FROM tab4 WHERE ((col3 >= 0) AND col1 > 3.85)

query I rowsort label-empty
SELECT pk FROM tab4 WHERE ((col3 >= 0) AND col1 > 3.85)
----

query I rowsort label-5280
SELECT pk FROM tab4 WHERE NOT (((col3 >= 0) AND col1 > 3.85))
----
0

statement ok
DELETE FROM tab0 WHERE col0 = 2

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col0 = 2
----

query I rowsort label-5295
SELECT pk FROM tab0 WHERE NOT (col0 = 2)
----
0

statement ok
DELETE FROM tab1 WHERE col0 = 2

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col0 = 2
----

query I rowsort label-5295
SELECT pk FROM tab1 WHERE NOT (col0 = 2)
----
0

statement ok
DELETE FROM tab2 WHERE col0 = 2

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col0 = 2
----

query I rowsort label-5295
SELECT pk FROM tab2 WHERE NOT (col0 = 2)
----
0

statement ok
DELETE FROM tab3 WHERE col0 = 2

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col0 = 2
----

query I rowsort label-5295
SELECT pk FROM tab3 WHERE NOT (col0 = 2)
----
0

statement ok
DELETE FROM tab4 WHERE col0 = 2

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col0 = 2
----

query I rowsort label-5295
SELECT pk FROM tab4 WHERE NOT (col0 = 2)
----
0

statement ok
DELETE FROM tab0 WHERE (col4 > 1.41)

query I rowsort label-empty
SELECT pk FROM tab0 WHERE (col4 > 1.41)
----

query I rowsort label-5310
SELECT pk FROM tab0 WHERE NOT ((col4 > 1.41))
----

statement ok
DELETE FROM tab1 WHERE (col4 > 1.41)

query I rowsort label-empty
SELECT pk FROM tab1 WHERE (col4 > 1.41)
----

query I rowsort label-5310
SELECT pk FROM tab1 WHERE NOT ((col4 > 1.41))
----

statement ok
DELETE FROM tab2 WHERE (col4 > 1.41)

query I rowsort label-empty
SELECT pk FROM tab2 WHERE (col4 > 1.41)
----

query I rowsort label-5310
SELECT pk FROM tab2 WHERE NOT ((col4 > 1.41))
----

statement ok
DELETE FROM tab3 WHERE (col4 > 1.41)

query I rowsort label-empty
SELECT pk FROM tab3 WHERE (col4 > 1.41)
----

query I rowsort label-5310
SELECT pk FROM tab3 WHERE NOT ((col4 > 1.41))
----

statement ok
DELETE FROM tab4 WHERE (col4 > 1.41)

query I rowsort label-empty
SELECT pk FROM tab4 WHERE (col4 > 1.41)
----

query I rowsort label-5310
SELECT pk FROM tab4 WHERE NOT ((col4 > 1.41))
----

statement ok
DROP TABLE tab0

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,3,6.50,'ynuvp',8,5.6,'ydgco')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

statement ok
CREATE TABLE tab2(pk INTEGER PRIMARY KEY, col0 INTEGER, col1 FLOAT, col2 TEXT, col3 INTEGER, col4 FLOAT, col5 TEXT)

statement ok
CREATE INDEX idx_tab2_0 ON tab2 (col3,col0)

statement ok
CREATE INDEX idx_tab2_3 ON tab2 (col1)

statement ok
CREATE UNIQUE INDEX idx_tab2_4 ON tab2 (col3 DESC,col4)

statement ok
CREATE INDEX idx_tab2_5 ON tab2 (col0)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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_2 ON tab3 (col4,col0 DESC,col3 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab3_4 ON tab3 (col3 DESC,col1 DESC)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

statement ok
CREATE TABLE tab4(pk INTEGER PRIMARY KEY, col0 INTEGER, col1 FLOAT, col2 TEXT, col3 INTEGER, col4 FLOAT, col5 TEXT)

statement ok
CREATE UNIQUE INDEX idx_tab4_0 ON tab4 (col4)

statement ok
CREATE INDEX idx_tab4_1 ON tab4 (col0 DESC,col1)

statement ok
CREATE UNIQUE INDEX idx_tab4_2 ON tab4 (col3 DESC)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

query I rowsort label-empty
SELECT pk FROM tab0 WHERE pk IS NULL
----

statement ok
DELETE FROM tab0 WHERE ((col1 = 9.60 OR col0 >= 3))

query I rowsort label-empty
SELECT pk FROM tab0 WHERE ((col1 = 9.60 OR col0 >= 3))
----

query I rowsort label-5325
SELECT pk FROM tab0 WHERE NOT (((col1 = 9.60 OR col0 >= 3)))
----

statement ok
DELETE FROM tab1 WHERE ((col1 = 9.60 OR col0 >= 3))

query I rowsort label-empty
SELECT pk FROM tab1 WHERE ((col1 = 9.60 OR col0 >= 3))
----

query I rowsort label-5325
SELECT pk FROM tab1 WHERE NOT (((col1 = 9.60 OR col0 >= 3)))
----

statement ok
DELETE FROM tab2 WHERE ((col1 = 9.60 OR col0 >= 3))

query I rowsort label-empty
SELECT pk FROM tab2 WHERE ((col1 = 9.60 OR col0 >= 3))
----

query I rowsort label-5325
SELECT pk FROM tab2 WHERE NOT (((col1 = 9.60 OR col0 >= 3)))
----

statement ok
DELETE FROM tab3 WHERE ((col1 = 9.60 OR col0 >= 3))

query I rowsort label-empty
SELECT pk FROM tab3 WHERE ((col1 = 9.60 OR col0 >= 3))
----

query I rowsort label-5325
SELECT pk FROM tab3 WHERE NOT (((col1 = 9.60 OR col0 >= 3)))
----

statement ok
DELETE FROM tab4 WHERE ((col1 = 9.60 OR col0 >= 3))

query I rowsort label-empty
SELECT pk FROM tab4 WHERE ((col1 = 9.60 OR col0 >= 3))
----

query I rowsort label-5325
SELECT pk FROM tab4 WHERE NOT (((col1 = 9.60 OR col0 >= 3)))
----

statement ok
DROP TABLE tab0

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,5,7.81,'wjrte',9,5.14,'xuafb')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

statement ok
CREATE TABLE tab2(pk INTEGER PRIMARY KEY, col0 INTEGER, col1 FLOAT, col2 TEXT, col3 INTEGER, col4 FLOAT, col5 TEXT)

statement ok
CREATE UNIQUE INDEX idx_tab2_0 ON tab2 (col3,col1)

statement ok
CREATE INDEX idx_tab2_2 ON tab2 (col0,col4)

statement ok
CREATE UNIQUE INDEX idx_tab2_3 ON tab2 (col4 DESC,col1,col3 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab2_5 ON tab2 (col1 DESC)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

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_1 ON tab3 (col0)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

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_1 ON tab4 (col3 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab4_2 ON tab4 (col4,col1)

statement ok
CREATE UNIQUE INDEX idx_tab4_4 ON tab4 (col0 DESC)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

query I rowsort label-empty
SELECT pk FROM tab0 WHERE pk IS NULL
----

statement ok
DROP TABLE tab0

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,1,1.45,'smora',7,5.82,'xyxuv')

statement ok
DROP TABLE tab1

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
DROP TABLE tab2

statement ok
CREATE TABLE tab2(pk INTEGER PRIMARY KEY, col0 INTEGER, col1 FLOAT, col2 TEXT, col3 INTEGER, col4 FLOAT, col5 TEXT)

statement ok
CREATE INDEX idx_tab2_0 ON tab2 (col4 DESC,col1)

statement ok
CREATE INDEX idx_tab2_1 ON tab2 (col1 DESC)

statement ok
CREATE INDEX idx_tab2_3 ON tab2 (col3)

statement ok
INSERT INTO tab2 SELECT * FROM tab0

statement ok
DROP TABLE tab3

statement ok
CREATE TABLE tab3(pk INTEGER PRIMARY KEY, col0 INTEGER, col1 FLOAT, col2 TEXT, col3 INTEGER, col4 FLOAT, col5 TEXT)

statement ok
CREATE INDEX idx_tab3_0 ON tab3 (col0,col4 DESC,col1 DESC)

statement ok
CREATE UNIQUE INDEX idx_tab3_1 ON tab3 (col4)

statement ok
CREATE UNIQUE INDEX idx_tab3_2 ON tab3 (col3 DESC)

statement ok
INSERT INTO tab3 SELECT * FROM tab0

statement ok
DROP TABLE tab4

statement ok
CREATE TABLE tab4(pk INTEGER PRIMARY KEY, col0 INTEGER, col1 FLOAT, col2 TEXT, col3 INTEGER, col4 FLOAT, col5 TEXT)

statement ok
CREATE INDEX idx_tab4_0 ON tab4 (col3)

statement ok
CREATE INDEX idx_tab4_1 ON tab4 (col0 DESC,col4 DESC)

statement ok
CREATE INDEX idx_tab4_2 ON tab4 (col4,col0 DESC)

statement ok
INSERT INTO tab4 SELECT * FROM tab0

query I rowsort label-empty
SELECT pk FROM tab0 WHERE pk IS NULL
----

statement ok
DELETE FROM tab0 WHERE col0 <= 4

query I rowsort label-empty
SELECT pk FROM tab0 WHERE col0 <= 4
----

query I rowsort label-5340
SELECT pk FROM tab0 WHERE NOT (col0 <= 4)
----

statement ok
DELETE FROM tab1 WHERE col0 <= 4

query I rowsort label-empty
SELECT pk FROM tab1 WHERE col0 <= 4
----

query I rowsort label-5340
SELECT pk FROM tab1 WHERE NOT (col0 <= 4)
----

statement ok
DELETE FROM tab2 WHERE col0 <= 4

query I rowsort label-empty
SELECT pk FROM tab2 WHERE col0 <= 4
----

query I rowsort label-5340
SELECT pk FROM tab2 WHERE NOT (col0 <= 4)
----

statement ok
DELETE FROM tab3 WHERE col0 <= 4

query I rowsort label-empty
SELECT pk FROM tab3 WHERE col0 <= 4
----

query I rowsort label-5340
SELECT pk FROM tab3 WHERE NOT (col0 <= 4)
----

statement ok
DELETE FROM tab4 WHERE col0 <= 4

query I rowsort label-empty
SELECT pk FROM tab4 WHERE col0 <= 4
----

query I rowsort label-5340
SELECT pk FROM tab4 WHERE NOT (col0 <= 4)
----

