CREATE TABLE t0 (v1 INT , v2 BIGINT);
INSERT INTO t0 VALUES (6 , -1) , (97 , 0) , (34 , -1) , (0 , -128);
CREATE TABLE t2 AS SELECT v1 , v2 FROM t0 ORDER BY v2;
CREATE TRIGGER trig0 BEFORE INSERT ON t2 FOR EACH ROW INSERT INTO t0 SELECT * FROM t0 AS v4 WHERE v2 IN (SELECT v2 FROM t0 WHERE -1 >= v2 IS NOT NULL = 1 NOT IN (SELECT 27 FROM t2 WHERE v2 = v2 OR v2 = 'x' GROUP BY v1 HAVING (v2 = -1)));
INSERT INTO t2 (v2) VALUES ((v1 , v1) > ('x' , 'x')) , (16);
