CREATE TABLE t0 (v1 INT , v2 INT);
SELECT v1 FROM t0 INTERSECT SELECT v2 FROM t0;
CREATE TABLE t4 AS SELECT (SELECT 1 AS v3 FROM t0) , v2 FROM t0;
CREATE TRIGGER trig0 BEFORE INSERT ON t0 FOR EACH ROW INSERT INTO t4 SELECT DISTINCT * FROM t0 WINDOW w5 AS (ORDER BY 96) UNION SELECT * FROM t0 ORDER BY (SELECT 1.1 ORDER BY (v2 = 1 AND v1 = 1) DESC LIMIT 7 OFFSET 95);
INSERT INTO t0 (v2) VALUES (1) , (1);
