## Summary
<!--Explain briefly what goes wrong and explain why you believe this is a bug and not the intended behavior of SQLite (if it is not a crash).-->**No review yet**

## Minimized query

```sql
.tables
PRAGMA defer_foreign_keys = 0;
PRAGMA count_changes = ON;
ATTACH DATABASE (':memory:' || '') AS aux24;
.lint
BEGIN EXCLUSIVE TRANSACTION;
-- PRAGMA trusted_schema = 1;
.system false && echo "success" || echo "error code: $?"
CREATE TABLE main.t1(a INTEGER PRIMARY KEY, b TEXT, c INT, d INT);
INSERT INTO t1 VALUES (unixepoch(likelihood(-(-(-jsonb_object('k1', load_extension(datetime(NULL, '+1 day'), pi()), 'k2', 2147483649))), 0.0625)), 'Wernher', 10, 100);
INSERT INTO t1 VALUES (2, 'von', 20, 200);
INSERT INTO t1 VALUES (3, 'Braun', 30, 300);
CREATE INDEX t1bc ON t1(b, c);
PRAGMA writable_schema = ON;
.imposter t1bc t2

SELECT * FROM t2;
SELECT b, c FROM t1 ORDER BY b, c;
.quit
SAVEPOINT sp6237;
CREATE TABLE T (
  A VARCHAR(concat_ws('', 'a', 'b', 'c')) PRIMARY KEY,
  B VARCHAR(if(0,30,0,30,0,30,0,30,0,30,0,30,30)) NOT NULL,
  C BIGINT UNIQUE
);
INSERT INTO T VALUES ('a', 'x', -9223372036854775808);
INSERT INTO T VALUES ('b', 'y', -1000000);
INSERT INTO T VALUES ('c', 'y', 0);
INSERT INTO T VALUES ('d', 'y', 42);
INSERT INTO T VALUES ('e', 'x', 9223372036854775807);
INSERT INTO T VALUES ('f', 'z', 2147483648);
SELECT * FROM T WHERE NOT NOT (C > 0) ORDER BY C DESC;
BEGIN EXCLUSIVE TRANSACTION;
.timer off
.schema
PRAGMA foreign_keys = -CAST(-1 AS BIGINT);
PRAGMA threads;
PRAGMA foreign_keys = ON;
.timeout -1
CREATE TABLE t0 (c0, c1 NOT NULL DEFAULT 1, c2, PRIMARY KEY (c0, c1));
INSERT INTO t0(c2) VALUES (NULL), (NULL);
INSERT INTO t0(c2) VALUES('a');
SELECT DISTINCT * FROM t0 WHERE NULL IS t0.c0;
SELECT * FROM t0 WHERE (( (0 IS NOT FALSE) OR NOT (0 IS FALSE OR (t0.c0 = 1)) ) IS 0);
SELECT ((0 IS NOT FALSE) OR NOT (0 IS FALSE OR (t0.c0 = 1)) ) IS 0 FROM t0;
SELECT ( (0 IS NOT FALSE) OR NOT (0 IS 0 OR (t0.c0 = 1)) ) IS 0 FROM t0;
SELECT ((0 IS NOT FALSE) OR NOT (0 IS FALSE OR (t0.c0 = 1)) ) FROM t0;
SELECT NOT (0 IS FALSE OR (t0.c0 = 1)) FROM t0;
SELECT * FROM (SELECT * FROM t0) AS sub;
REINDEX;
CREATE  INDEX IF NOT EXISTS idx_t0_6740 ON t0(c2 COLLATE NOCASE) WHERE c2 IS NOT NULL;
SELECT * FROM t0 WHERE c1 = (SELECT c1 FROM t0 t2 WHERE t2.c1 = t0.c1 LIMIT 1);
CREATE TRIGGER IF NOT EXISTS trg_t0_2041 BEFORE INSERT ON t0 FOR EACH ROW BEGIN SELECT RAISE(FAIL, 'no'); END;
WITH RECURSIVE cnt(x) AS (VALUES(1) UNION ALL SELECT x+1 FROM cnt WHERE x<37), filtered AS (SELECT * FROM cnt WHERE x > 18) SELECT * FROM filtered;
CREATE TRIGGER IF NOT EXISTS trg_t0_1600 BEFORE INSERT ON t0 FOR EACH ROW BEGIN SELECT RAISE(ABORT, 'abort'); END;
INSERT OR FAIL INTO t0 VALUES (0, 0, '');
CREATE TABLE T1 (
  A VARCHAR(20),
  X VARCHAR(10),
  PRIMARY KEY (A, X)
);
CREATE TABLE T2 (
  A VARCHAR(20),
  Y VARCHAR(10),
  PRIMARY KEY (A, Y)
);
INSERT INTO T1 VALUES ('a', 'm');
INSERT INTO T1 VALUES ('b', 'n');
INSERT INTO T1 VALUES ('c', 'o');
INSERT INTO T2 VALUES ('b', 'k');
SELECT A FROM T1 EXCEPT SELECT A FROM T2;
ROLLBACK;
UPDATE t0 SET c1 = json_object('k', c1);
SELECT * FROM t0;
ROLLBACK TRANSACTION TO SAVEPOINT sp6237;
RELEASE SAVEPOINT sp6237;
INSERT OR ABORT INTO t0 VALUES ('', NULL, NULL);
WITH RECURSIVE multi(a, b) AS (VALUES(1, "x") UNION ALL SELECT a+1, "x" FROM multi WHERE a<2) SELECT * FROM multi;
END;
CREATE  VIEW IF NOT EXISTS v_t0_7574 AS SELECT c1 FROM t0;
ANALYZE;
PRAGMA writable_schema = YES;
WITH RECURSIVE cnt(x) AS (VALUES(1) UNION ALL SELECT x+1 FROM cnt WHERE x<5) SELECT SUM(x) FROM cnt;
SELECT * FROM T WHERE B = (SELECT MAX(B) FROM T WHERE B = (SELECT MAX(B) FROM T));
DELETE FROM t1 WHERE 1;
INSERT INTO T1 VALUES ('x', 1) ON CONFLICT(A) DO UPDATE SET A = excluded.A, X = excluded.X;
VACUUM main;
INSERT INTO t1 SELECT * FROM t1;
SELECT COUNT(*) FROM T;
ANALYZE;
CREATE TABLE T (
  a INTEGER,
  b TEXT,
  c INTEGER
);
INSERT INTO T VALUES (1,'a',NULL), (2,'b',1), (3,'c',2);
WITH RECURSIVE d(a,b,c,e) AS (
  SELECT *,1 FROM T WHERE c IS NULL
  UNION ALL
  SELECT T.a,T.b,T.c,d.e+1
  FROM T JOIN d ON T.c=d.a
)
SELECT * FROM d;
SELECT * FROM T1 WHERE A > (SELECT MAX(A) FROM T1);
SELECT * FROM t1;
INSERT OR ROLLBACK INTO t1 VALUES ('', -2, 6, -9);
CREATE TEMP  VIEW IF NOT EXISTS v_T_9745 AS SELECT a FROM T;
ALTER TABLE T1 RENAME TO T1_r1976;
REINDEX;
CREATE TRIGGER IF NOT EXISTS trg_T1_4621 BEFORE DELETE ON T1 FOR EACH ROW BEGIN SELECT RAISE(ABORT, 'abort'); END;
SELECT * FROM T2 AS a LEFT JOIN T1 AS b ON a.rowid = b.rowid;
ALTER TABLE T ADD COLUMN extra_1665 DOUBLE;
INSERT INTO T2 VALUES (NULL, 1) ON CONFLICT(A) DO UPDATE SET A = excluded.A, Y = excluded.Y;
DROP VIEW IF EXISTS T1;
INSERT INTO T VALUES (NULL, NULL, NULL);
INSERT INTO T1 VALUES (NULL, NULL);
CREATE TRIGGER IF NOT EXISTS trg_T1_5266 AFTER UPDATE OF A ON T1 BEGIN INSERT INTO T1(A) VALUES (NULL); END;
CREATE TABLE t1(a INTEGER PRIMARY KEY, b TEXT, c INT, d INT);
INSERT INTO t1 VALUES (1, 'Wernher', 10, 100);
INSERT INTO t1 VALUES (2, 'von', 20, 200);
INSERT INTO t1 VALUES (3, 'Braun', 30, 300);
CREATE INDEX t1bc ON t1(b, c);
PRAGMA writable_schema = ON;
.imposter t1bc t2

SELECT * FROM t2;
SELECT b, c FROM t1 ORDER BY b, c;
.quit
INSERT INTO t0 VALUES ('x', 1, 1) ON CONFLICT(c0) DO UPDATE SET c0 = excluded.c0, c1 = excluded.c1, c2 = excluded.c2;
.lint
BEGIN EXCLUSIVE TRANSACTION;
-- PRAGMA trusted_schema = 1;
.system false && echo "success" || echo "error code: $?"
CREATE TABLE main.t1(a INTEGER PRIMARY KEY, b TEXT, c INT, d INT);
INSERT INTO t1 VALUES (unixepoch(likelihood(-(-(-jsonb_object('k1', 2147483649, 'k2', 2147483649))), 0.0625)), 'Wernher', 10, 100);
INSERT INTO t1 VALUES (2, 'von', 20, 200);
INSERT INTO t1 VALUES (3, 'Braun', 30, 300);
CREATE INDEX t1bc ON t1(b, c);
PRAGMA writable_schema = ON;
.imposter t1bc t2

SELECT * FROM t2;
SELECT b, c FROM t1 ORDER BY b, c;
.quit
SAVEPOINT sp6237;
CREATE TABLE T (
  A VARCHAR(concat_ws('', 'a', 'b', 'c')) PRIMARY KEY,
  B VARCHAR(if(0,30,0,30,0,30,0,30,0,30,0,30,30)) NOT NULL,
  C BIGINT UNIQUE
);
INSERT INTO T VALUES ('a', 'x', -9223372036854775808);
INSERT INTO T VALUES ('b', 'y', -1000000);
INSERT INTO T VALUES ('c', 'y', 0);
INSERT INTO T VALUES ('d', 'y', 42);
INSERT INTO T VALUES ('e', 'x', 9223372036854775807);
INSERT INTO T VALUES ('f', 'z', 2147483648);
SELECT * FROM T WHERE C > 0 ORDER BY C DESC;
BEGIN EXCLUSIVE TRANSACTION;
.timer off
.schema
PRAGMA foreign_keys = -CAST(-1 AS BIGINT);
PRAGMA threads;
PRAGMA foreign_keys = ON;
.timeout -1
CREATE TABLE t0 (c0, c1 NOT NULL DEFAULT 1, c2, PRIMARY KEY (c0, c1));
INSERT INTO t0(c2) VALUES (NULL), (NULL);
INSERT INTO t0(c2) VALUES('a');
SELECT DISTINCT * FROM t0 WHERE NULL IS t0.c0;
SELECT * FROM t0 WHERE (( (0 IS NOT FALSE) OR NOT (0 IS FALSE OR (t0.c0 = 1)) ) IS 0);
SELECT ((0 IS NOT FALSE) OR NOT (0 IS FALSE OR (t0.c0 = 1)) ) IS 0 FROM t0;
SELECT ( (0 IS NOT FALSE) OR NOT (0 IS 0 OR (t0.c0 = 1)) ) IS 0 FROM t0;
SELECT ((0 IS NOT FALSE) OR NOT (0 IS FALSE OR (t0.c0 = 1)) ) FROM t0;
SELECT NOT (0 IS FALSE OR (t0.c0 = 1)) FROM t0;
SELECT * FROM (SELECT * FROM t0) AS sub;
REINDEX;
CREATE  INDEX IF NOT EXISTS idx_t0_6740 ON t0(c2 COLLATE NOCASE) WHERE c2 IS NOT NULL;
SELECT * FROM t0 WHERE c1 = (SELECT c1 FROM t0 t2 WHERE t2.c1 = t0.c1 LIMIT 1);
CREATE TRIGGER IF NOT EXISTS trg_t0_2041 BEFORE INSERT ON t0 FOR EACH ROW BEGIN SELECT RAISE(FAIL, 'no'); END;
WITH RECURSIVE cnt(x) AS (VALUES(1) UNION ALL SELECT x+1 FROM cnt WHERE x<37), filtered AS (SELECT * FROM cnt WHERE x > 18) SELECT * FROM filtered;
CREATE TRIGGER IF NOT EXISTS trg_t0_1600 BEFORE INSERT ON t0 FOR EACH ROW BEGIN SELECT RAISE(ABORT, 'abort'); END;
INSERT OR FAIL INTO t0 VALUES (0, 0, '');
CREATE TABLE T1 (
  A VARCHAR(20),
  X VARCHAR(10),
  PRIMARY KEY (A, X)
);
CREATE TABLE T2 (
  A VARCHAR(20),
  Y VARCHAR(10),
  PRIMARY KEY (A, Y)
);
INSERT INTO T1 VALUES ('a', 'm');
INSERT INTO T1 VALUES ('b', 'n');
INSERT INTO T1 VALUES ('c', 'o');
INSERT INTO T2 VALUES ('b', 'k');
SELECT A FROM T1 EXCEPT SELECT A FROM T2;
ROLLBACK;
UPDATE t0 SET c1 = json_object('k', c1);
SELECT * FROM t0;
ROLLBACK TRANSACTION TO SAVEPOINT sp6237;
RELEASE SAVEPOINT sp6237;
INSERT OR ABORT INTO t0 VALUES ('', NULL, NULL);
WITH RECURSIVE multi(a, b) AS (VALUES(1, "x") UNION ALL SELECT a+1, "x" FROM multi WHERE a<2) SELECT * FROM multi;
END;
CREATE  VIEW IF NOT EXISTS v_t0_7574 AS SELECT c1 FROM t0;
ANALYZE;
PRAGMA writable_schema = YES;
WITH RECURSIVE cnt(x) AS (VALUES(1) UNION ALL SELECT x+1 FROM cnt WHERE x<5) SELECT SUM(x) FROM cnt;
SELECT * FROM T WHERE B = (SELECT MAX(B) FROM T WHERE B = (SELECT MAX(B) FROM T));
DELETE FROM t1 WHERE 1;
INSERT INTO T1 VALUES ('x', 1) ON CONFLICT(A) DO UPDATE SET A = excluded.A, X = excluded.X;
VACUUM main;
INSERT INTO t1 SELECT * FROM t1;
SELECT COUNT(*) FROM T;
ANALYZE;
CREATE TABLE T (
  a INTEGER,
  b TEXT,
  c INTEGER
);
INSERT INTO T VALUES (1,'a',NULL), (2,'b',1), (3,'c',2);
WITH RECURSIVE d(a,b,c,e) AS (
  SELECT *,1 FROM T WHERE c IS NULL
  UNION ALL
  SELECT T.a,T.b,T.c,d.e+1
  FROM T JOIN d ON T.c=d.a
)
SELECT * FROM d;
SELECT * FROM T1 WHERE A > (SELECT MAX(A) FROM T1);
SELECT * FROM t1;
INSERT OR ROLLBACK INTO t1 VALUES ('', -2, 6, -9);
CREATE TEMP  VIEW IF NOT EXISTS v_T_9745 AS SELECT a FROM T;
ALTER TABLE T1 RENAME TO T1_r1976;
REINDEX;
CREATE TRIGGER IF NOT EXISTS trg_T1_4621 BEFORE DELETE ON T1 FOR EACH ROW BEGIN SELECT RAISE(ABORT, 'abort'); END;
SELECT * FROM T2 AS a LEFT JOIN T1 AS b ON a.rowid = b.rowid;
ALTER TABLE T ADD COLUMN extra_1665 DOUBLE;
INSERT INTO T2 VALUES (NULL, 1) ON CONFLICT(A) DO UPDATE SET A = excluded.A, Y = excluded.Y;
DROP VIEW IF EXISTS T1;
INSERT INTO T VALUES (NULL, NULL, NULL);
INSERT INTO T1 VALUES (NULL, NULL);
CREATE TRIGGER IF NOT EXISTS trg_T1_5266 AFTER UPDATE OF A ON T1 BEGIN INSERT INTO T1(A) VALUES (NULL); END;
CREATE TABLE t1(a INTEGER PRIMARY KEY, b TEXT, c INT, d INT);
INSERT INTO t1 VALUES (1, 'Wernher', 10, 100);
INSERT INTO t1 VALUES (2, 'von', 20, 200);
INSERT INTO t1 VALUES (3, 'Braun', 30, 300);
CREATE INDEX t1bc ON t1(b, c);
PRAGMA writable_schema = ON;
.imposter t1bc t2

SELECT * FROM t2;
SELECT b, c FROM t1 ORDER BY b, c;
.quit
INSERT INTO t0 VALUES ('x', 1, 1) ON CONFLICT(c0) DO UPDATE SET c0 = excluded.c0, c1 = excluded.c1, c2 = excluded.c2;
.lint
BEGIN EXCLUSIVE TRANSACTION;
-- PRAGMA trusted_schema = 1;
.system false && echo "success" || echo "error code: $?"
CREATE TABLE main.t1(a INTEGER PRIMARY KEY, b TEXT, c INT, d INT);
INSERT INTO t1 VALUES (unixepoch(likelihood(-(-(-jsonb_object('k1', 2147483649, 'k2', 2147483649))), 0.0625)), 'Wernher', 10, 100);
INSERT INTO t1 VALUES (2, 'von', 20, 200);
INSERT INTO t1 VALUES (3, 'Braun', 30, 300);
CREATE INDEX t1bc ON t1(b, c);
PRAGMA writable_schema = ON;
.imposter t1bc t2

SELECT * FROM t2;
SELECT b, c FROM t1 ORDER BY b, c;
.quit
SAVEPOINT sp6237;
CREATE TABLE T (
  A VARCHAR(concat_ws('', 'a', 'b', 'c')) PRIMARY KEY,
  B VARCHAR(if(0,30,0,30,0,30,0,30,0,30,0,30,30)) NOT NULL,
  C BIGINT UNIQUE
);
INSERT INTO T VALUES ('a', 'x', -9223372036854775808);
INSERT INTO T VALUES ('b', 'y', -1000000);
INSERT INTO T VALUES ('c', 'y', 0);
INSERT INTO T VALUES ('d', 'y', 42);
INSERT INTO T VALUES ('e', 'x', 9223372036854775807);
INSERT INTO T VALUES ('f', 'z', 2147483648);
SELECT * FROM T WHERE C > 0 ORDER BY C DESC;
BEGIN EXCLUSIVE TRANSACTION;
.timer off
.schema
PRAGMA foreign_keys = -CAST(-1 AS BIGINT);
PRAGMA threads;
PRAGMA foreign_keys = ON;
.timeout -1
CREATE TABLE t0 (c0, c1 NOT NULL DEFAULT 1, c2, PRIMARY KEY (c0, c1));
INSERT INTO t0(c2) VALUES (NULL), (NULL);
INSERT INTO t0(c2) VALUES('a');
SELECT DISTINCT * FROM t0 WHERE NULL IS t0.c0;
CREATE VIRTUAL TABLE T
USING fts5(a,b);
INSERT INTO T VALUES ('a','b c'), ('d','e f');
SELECT a,b FROM T WHERE T MATCH 'b';
SELECT * FROM t0 WHERE (( (0 IS NOT FALSE) OR NOT (0 IS FALSE OR (t0.c0 = 1)) ) IS 0);
SELECT ((0 IS NOT FALSE) OR NOT (0 IS FALSE OR (t0.c0 = 1)) ) IS 0 FROM t0;
SELECT ( (0 IS NOT FALSE) OR NOT (0 IS 0 OR (t0.c0 = 1)) ) IS 0 FROM t0;
SELECT ((0 IS NOT FALSE) OR NOT (0 IS FALSE OR (t0.c0 = 1)) ) FROM t0;
SELECT NOT (0 IS FALSE OR (t0.c0 = 1)) FROM t0;
SELECT * FROM (SELECT * FROM t0) AS sub;
REINDEX;
CREATE  INDEX IF NOT EXISTS idx_t0_6740 ON t0(c2 COLLATE NOCASE) WHERE c2 IS NOT NULL;
SELECT * FROM t0 WHERE c1 = (SELECT c1 FROM t0 t2 WHERE t2.c1 = t0.c1 LIMIT 1);
CREATE TRIGGER IF NOT EXISTS trg_t0_2041 BEFORE INSERT ON t0 FOR EACH ROW BEGIN SELECT RAISE(FAIL, 'no'); END;
WITH RECURSIVE cnt(x) AS (VALUES(1) UNION ALL SELECT x+1 FROM cnt WHERE x<37), filtered AS (SELECT * FROM cnt WHERE x > 18) SELECT * FROM filtered;
CREATE TRIGGER IF NOT EXISTS trg_t0_1600 BEFORE INSERT ON t0 FOR EACH ROW BEGIN SELECT RAISE(ABORT, 'abort'); END;
INSERT OR FAIL INTO t0 VALUES (0, 0, '');
CREATE TABLE T1 (
  A VARCHAR(20),
  X VARCHAR(10),
  PRIMARY KEY (A, X)
);
CREATE TABLE T2 (
  A VARCHAR(20),
  Y VARCHAR(10),
  PRIMARY KEY (A, Y)
);
INSERT INTO T1 VALUES ('a', 'm');
INSERT INTO T1 VALUES ('b', 'n');
INSERT INTO T1 VALUES ('c', 'o');
INSERT INTO T2 VALUES ('b', 'k');
SELECT A FROM T1 EXCEPT SELECT A FROM T2;
ROLLBACK;
UPDATE t0 SET c1 = json_object('k', c1);
SELECT * FROM t0;
ROLLBACK TRANSACTION TO SAVEPOINT sp6237;
RELEASE SAVEPOINT sp6237;
INSERT OR ABORT INTO t0 VALUES ('', NULL, NULL);
WITH RECURSIVE multi(a, b) AS (VALUES(1, "x") UNION ALL SELECT a+1, "x" FROM multi WHERE a<2) SELECT * FROM multi;
END;
CREATE  VIEW IF NOT EXISTS v_t0_7574 AS SELECT c1 FROM t0;
ANALYZE;
PRAGMA writable_schema = YES;
WITH RECURSIVE cnt(x) AS (VALUES(1) UNION ALL SELECT x+1 FROM cnt WHERE x<5) SELECT SUM(x) FROM cnt;
SELECT * FROM T WHERE B = (SELECT MAX(B) FROM T WHERE B = (SELECT MAX(B) FROM T));
DELETE FROM t1 WHERE 1;
INSERT INTO T1 VALUES ('x', 1) ON CONFLICT(A) DO UPDATE SET A = excluded.A, X = excluded.X;
VACUUM main;
INSERT INTO t1 SELECT * FROM t1;
SELECT COUNT(*) FROM T;
ANALYZE;
CREATE TABLE T (
  a INTEGER,
  b TEXT,
  c INTEGER
);
INSERT INTO T VALUES (1,'a',NULL), (2,'b',1), (3,'c',2);
WITH RECURSIVE d(a,b,c,e) AS /**/ (
  SELECT *,1 FROM T WHERE c IS NULL
  UNION ALL
  SELECT T.a,T.b,T.c,d.e+1
  FROM T JOIN d ON T.c=d.a
)
SELECT * FROM d;
SELECT * FROM T1 WHERE A > (SELECT MAX(A) FROM T1);
SELECT * FROM t1;
INSERT OR ROLLBACK INTO t1 VALUES ('', -2, 6, -9);
CREATE TEMP  VIEW IF NOT EXISTS v_T_9745 AS SELECT a FROM T;
ALTER TABLE T1 RENAME TO T1_r1976;
REINDEX;
CREATE TRIGGER IF NOT EXISTS trg_T1_4621 BEFORE DELETE ON T1 FOR EACH ROW BEGIN SELECT RAISE(ABORT, 'abort'); END;
SELECT * FROM T2 AS a LEFT JOIN T1 AS b ON a.rowid = b.rowid;
ALTER TABLE T ADD COLUMN extra_1665 DOUBLE;
INSERT INTO T2 VALUES (NULL, 1) ON CONFLICT(A) DO UPDATE SET A = excluded.A, Y = excluded.Y;
DROP VIEW IF EXISTS T1;
INSERT INTO T VALUES (NULL, NULL, NULL);
INSERT INTO T1 VALUES (NULL, NULL);
CREATE TRIGGER IF NOT EXISTS trg_T1_5266 AFTER UPDATE OF A ON T1 BEGIN INSERT INTO T1(A) VALUES (NULL); END;
CREATE TABLE t1(a INTEGER PRIMARY KEY, b TEXT, c INT, d INT);
INSERT INTO t1 VALUES (1, 'Wernher', 10, 100);
INSERT INTO t1 VALUES (2, 'von', 20, 200);
INSERT INTO t1 VALUES (3, 'Braun', 30, 300);
CREATE INDEX t1bc ON t1(b, c);
PRAGMA writable_schema = ON;
.imposter t1bc t2

SELECT * FROM t2;
SELECT b, c FROM t1 ORDER BY b, c;
.quit
INSERT INTO t0 VALUES ('x', 1, 1) ON CONFLICT(c0) DO UPDATE SET c0 = excluded.c0, c1 = excluded.c1, c2 = excluded.c2;
WITH RECURSIVE r AS (SELECT Y FROM T2 UNION ALL SELECT Y FROM T2 LIMIT 5) SELECT * FROM r;
DETACH DATABASE aux24;
VACUUM;
SELECT * FROM T;
ALTER TABLE t1 DROP COLUMN b;
INSERT INTO t1 VALUES (NULL, NULL, NULL, NULL);
SELECT * FROM T1 AS a FULL JOIN T1 AS b ON a.rowid = b.rowid;
INSERT INTO t0 DEFAULT VALUES;
ALTER TABLE t1 ADD COLUMN extra_3968 INT8 UNIQUE;
CREATE  VIEW IF NOT EXISTS v_T1_673 AS SELECT A FROM T1;
WITH cte AS (SELECT c2, SUM(c2) AS total FROM t0 GROUP BY c2) SELECT * FROM cte ORDER BY total DESC;
INSERT INTO T2 VALUES (1, 'x') ON CONFLICT(A) DO UPDATE SET A = excluded.A, Y = excluded.Y;
CREATE UNIQUE  INDEX IF NOT EXISTS idx_T_5205 ON T((b + 1)) WHERE b > 0;
UPDATE T1 SET X = '' WHERE X IS NOT NULL RETURNING *;
SELECT * FROM T WHERE c NOT IN (SELECT c FROM T WHERE c IS NULL);
SELECT COUNT(*) FROM T1;
ANALYZE T2;
CREATE TRIGGER IF NOT EXISTS trg_T1_9641 BEFORE UPDATE ON T1 BEGIN SELECT RAISE(IGNORE); END;
SELECT * FROM t1 AS a FULL OUTER JOIN t0 AS b ON a.rowid = b.rowid;
DELETE FROM t1 WHERE a IS NULL RETURNING *;
CREATE TEMPORARY  VIEW IF NOT EXISTS v_T1_870 AS SELECT A FROM T1;
CREATE UNIQUE  INDEX IF NOT EXISTS idx_T2_1614 ON T2((Y + 1)) WHERE Y > 0;
INSERT INTO T2 SELECT * FROM T2;
ANALYZE T;
CREATE TABLE T (
  a INTEGER,
  b TEXT,
  c REAL
);
INSERT INTO T VALUES (1,'a',1.25), (2,'b',-3.5), (3,'c',9e999);
WITH d AS (SELECT * FROM T) SELECT * FROM d WHERE c > 0;
```

## Actual output

```sql
Memory Used:                         67704 (max 71808) bytes
Number of Outstanding Allocations:   141 (max 142)
Number of Pcache Overflow Bytes:     8464 (max 8464) bytes
Largest Allocation:                  48000 bytes
Largest Pcache Allocation:           4360 bytes
Lookaside Slots Used:                35 (max 106)
Successful lookaside attempts:       221
Lookaside failures due to size:      0
Lookaside failures due to OOM:       0
Pager Heap Usage:                    9248 bytes
Page cache hits:                     1
Page cache misses:                   0
Page cache writes:                   0
Page cache spills:                   0
Schema Heap Usage:                   736 bytes
Statement Heap/Lookaside Usage:      2528 bytes
Fullscan Steps:                      0
Sort Operations:                     0
Autoindex Inserts:                   0
Virtual Machine Steps:               4
Reprepare operations:                0
Number of times run:                 1
Memory used by prepared stmt:        2528
Bytes received by read():            10409
Bytes sent to write():               0
Read() system calls:                 13
Write() system calls:                0
Bytes read from storage:             0
Bytes written to storage:            0
Cancelled write bytes:               0
Memory Used:                         67704 (max 71808) bytes
Number of Outstanding Allocations:   141 (max 142)
Number of Pcache Overflow Bytes:     8464 (max 8464) bytes
Largest Allocation:                  48000 bytes
Largest Pcache Allocation:           4360 bytes
Lookaside Slots Used:                35 (max 106)
Successful lookaside attempts:       226
Lookaside failures due to size:      0
Lookaside failures due to OOM:       0
Pager Heap Usage:                    9248 bytes
Page cache hits:                     0
Page cache misses:                   0
Page cache writes:                   0
Page cache spills:                   0
Schema Heap Usage:                   736 bytes
Statement Heap/Lookaside Usage:      2528 bytes
Fullscan Steps:                      0
Sort Operations:                     0
Autoindex Inserts:                   0
Virtual Machine Steps:               4
Reprepare operations:                0
Number of times run:                 1
Memory used by prepared stmt:        2528
Bytes received by read():            10504
Bytes sent to write():               1290
Read() system calls:                 15
Write() system calls:                1
Bytes read from storage:             0
Bytes written to storage:            0
Cancelled write bytes:               0
Memory Used:                         79920 (max 79920) bytes
Number of Outstanding Allocations:   158 (max 158)
Number of Pcache Overflow Bytes:     16928 (max 16928) bytes
Largest Allocation:                  48000 bytes
Largest Pcache Allocation:           4360 bytes
Lookaside Slots Used:                41 (max 106)
Successful lookaside attempts:       291
Lookaside failures due to size:      0
Lookaside failures due to OOM:       0
Pager Heap Usage:                    18496 bytes
Page cache hits:                     0
Page cache misses:                   0
Page cache writes:                   0
Page cache spills:                   0
Schema Heap Usage:                   1104 bytes
Statement Heap/Lookaside Usage:      3040 bytes
Fullscan Steps:                      0
Sort Operations:                     0
Autoindex Inserts:                   0
Virtual Machine Steps:               10
Reprepare operations:                0
Number of times run:                 1
Memory used by prepared stmt:        3040
Bytes received by read():            10602
Bytes sent to write():               2583
Read() system calls:                 17
Write() system calls:                2
Bytes read from storage:             0
Bytes written to storage:            0
Cancelled write bytes:               0
Memory Used:                         83024 (max 83024) bytes
Number of Outstanding Allocations:   162 (max 162)
Number of Pcache Overflow Bytes:     16928 (max 16928) bytes
Largest Allocation:                  48000 bytes
Largest Pcache Allocation:           4360 bytes
Lookaside Slots Used:                37 (max 106)
Successful lookaside attempts:       294
Lookaside failures due to size:      0
Lookaside failures due to OOM:       0
Pager Heap Usage:                    18496 bytes
Page cache hits:                     2
Page cache misses:                   0
Page cache writes:                   0
Page cache spills:                   0
Schema Heap Usage:                   1104 bytes
Statement Heap/Lookaside Usage:      2528 bytes
Fullscan Steps:                      0
Sort Operations:                     0
Autoindex Inserts:                   0
Virtual Machine Steps:               5
Reprepare operations:                0
Number of times run:                 1
Memory used by prepared stmt:        2528
Bytes received by read():            10956
Bytes sent to write():               3959
Read() system calls:                 20
Write() system calls:                6
Bytes read from storage:             0
Bytes written to storage:            0
Cancelled write bytes:               0
error code: 1
Memory Used:                         94384 (max 100064) bytes
Number of Outstanding Allocations:   186 (max 199)
Number of Pcache Overflow Bytes:     25392 (max 25392) bytes
Largest Allocation:                  48000 bytes
Largest Pcache Allocation:           4360 bytes
Lookaside Slots Used:                34 (max 106)
Successful lookaside attempts:       369
Lookaside failures due to size:      0
Lookaside failures due to OOM:       0
Pager Heap Usage:                    22840 bytes
Page cache hits:                     3
Page cache misses:                   0
Page cache writes:                   0
Page cache spills:                   0
Schema Heap Usage:                   1456 bytes
Statement Heap/Lookaside Usage:      2464 bytes
Fullscan Steps:                      0
Sort Operations:                     0
Autoindex Inserts:                   0
Virtual Machine Steps:               30
Reprepare operations:                0
Number of times run:                 1
Memory used by prepared stmt:        2464
Bytes received by read():            15202
Bytes sent to write():               5270
Read() system calls:                 30
Write() system calls:                8
Bytes read from storage:             0
Bytes written to storage:            0
Cancelled write bytes:               0
1
Memory Used:                         91944 (max 100064) bytes
Number of Outstanding Allocations:   175 (max 199)
Number of Pcache Overflow Bytes:     25392 (max 25392) bytes
Largest Allocation:                  48000 bytes
Largest Pcache Allocation:           4360 bytes
Lookaside Slots Used:                46 (max 106)
Successful lookaside attempts:       427
Lookaside failures due to size:      0
Lookaside failures due to OOM:       0
Pager Heap Usage:                    22840 bytes
Page cache hits:                     1
Page cache misses:                   0
Page cache writes:                   0
Page cache spills:                   0
Schema Heap Usage:                   1480 bytes
Statement Heap/Lookaside Usage:      3424 bytes
Fullscan Steps:                      0
Sort Operations:                     0
Autoindex Inserts:                   0
Virtual Machine Steps:               20
Reprepare operations:                0
Number of times run:                 1
Memory used by prepared stmt:        3424
Bytes received by read():            15300
Bytes sent to write():               6760
Read() system calls:                 32
Write() system calls:                11
Bytes read from storage:             0
Bytes written to storage:            0
Cancelled write bytes:               0
1
Memory Used:                         91944 (max 100064) bytes
Number of Outstanding Allocations:   175 (max 199)
Number of Pcache Overflow Bytes:     25392 (max 25392) bytes
Largest Allocation:                  48000 bytes
Largest Pcache Allocation:           4360 bytes
Lookaside Slots Used:                46 (max 106)
Successful lookaside attempts:       451
Lookaside failures due to size:      0
Lookaside failures due to OOM:       0
Pager Heap Usage:                    22840 bytes
Page cache hits:                     1
Page cache misses:                   0
Page cache writes:                   0
Page cache spills:                   0
Schema Heap Usage:                   1480 bytes
Statement Heap/Lookaside Usage:      3424 bytes
Fullscan Steps:                      0
Sort Operations:                     0
Autoindex Inserts:                   0
Virtual Machine Steps:               20
Reprepare operations:                0
Number of times run:                 1
Memory used by prepared stmt:        3424
Bytes received by read():            15399
Bytes sent to write():               8062
Read() system calls:                 34
Write() system calls:                12
Bytes read from storage:             0
Bytes written to storage:            0
Cancelled write bytes:               0
Memory Used:                         99352 (max 109144) bytes
Number of Outstanding Allocations:   195 (max 207)
Number of Pcache Overflow Bytes:     29752 (max 29752) bytes
Largest Allocation:                  48000 bytes
Largest Pcache Allocation:           4360 bytes
Lookaside Slots Used:                36 (max 106)
Successful lookaside attempts:       531
Lookaside failures due to size:      0
Lookaside failures due to OOM:       0
Pager Heap Usage:                    27184 bytes
Page cache hits:                     4
Page cache misses:                   0
Page cache writes:                   0
Page cache spills:                   0
Schema Heap Usage:                   1680 bytes
Statement Heap/Lookaside Usage:      2768 bytes
Fullscan Steps:                      0
Sort Operations:                     1
Autoindex Inserts:                   0
Virtual Machine Steps:               46
Reprepare operations:                0
Number of times run:                 1
Memory used by prepared stmt:        2768
Bytes received by read():            15498
Bytes sent to write():               9364
Read() system calls:                 36
Write() system calls:                13
Bytes read from storage:             0
Bytes written to storage:            0
Cancelled write bytes:               0
Memory Used:                         96512 (max 109144) bytes
Number of Outstanding Allocations:   178 (max 207)
Number of Pcache Overflow Bytes:     29752 (max 29752) bytes
Largest Allocation:                  48000 bytes
Largest Pcache Allocation:           4360 bytes
Lookaside Slots Used:                39 (max 106)
Successful lookaside attempts:       536
Lookaside failures due to size:      0
Lookaside failures due to OOM:       0
Pager Heap Usage:                    27184 bytes
Page cache hits:                     0
Page cache misses:                   0
Page cache writes:                   0
Page cache spills:                   0
Schema Heap Usage:                   1680 bytes
Statement Heap/Lookaside Usage:      2528 bytes
Fullscan Steps:                      0
Sort Operations:                     0
Autoindex Inserts:                   0
Virtual Machine Steps:               4
Reprepare operations:                0
Number of times run:                 1
Memory used by prepared stmt:        2528
Bytes received by read():            15597
Bytes sent to write():               10664
Read() system calls:                 38
Write() system calls:                14
Bytes read from storage:             0
Bytes written to storage:            0
Cancelled write bytes:               0
CREATE TABLE "t2"("b","c","_ROWID_",PRIMARY KEY("b","c","_ROWID_"))WITHOUT ROWID;
WARNING: writing to an imposter table will corrupt the "t1bc" index!
Braun|30|3
von|20|2
Memory Used:                         97072 (max 109144) bytes
Number of Outstanding Allocations:   188 (max 207)
Number of Pcache Overflow Bytes:     29752 (max 29752) bytes
Largest Allocation:                  48000 bytes
Largest Pcache Allocation:           4360 bytes
Lookaside Slots Used:                49 (max 106)
Successful lookaside attempts:       659
Lookaside failures due to size:      0
Lookaside failures due to OOM:       0
Pager Heap Usage:                    27184 bytes
Page cache hits:                     2
Page cache misses:                   0
Page cache writes:                   0
Page cache spills:                   0
Schema Heap Usage:                   2224 bytes
Statement Heap/Lookaside Usage:      4752 bytes
Fullscan Steps:                      1
Sort Operations:                     0
Autoindex Inserts:                   0
Virtual Machine Steps:               16
Reprepare operations:                0
Number of times run:                 1
Memory used by prepared stmt:        4752
Bytes received by read():            15697
Bytes sent to write():               12115
Read() system calls:                 40
Write() system calls:                16
Bytes read from storage:             0
Bytes written to storage:            0
Cancelled write bytes:               0
Braun|30
von|20
Memory Used:                         97096 (max 109144) bytes
Number of Outstanding Allocations:   189 (max 207)
Number of Pcache Overflow Bytes:     29752 (max 29752) bytes
Largest Allocation:                  48000 bytes
Largest Pcache Allocation:           4360 bytes
Lookaside Slots Used:                49 (max 106)
Successful lookaside attempts:       698
Lookaside failures due to size:      0
Lookaside failures due to OOM:       0
Pager Heap Usage:                    27184 bytes
Page cache hits:                     1
Page cache misses:                   0
Page cache writes:                   0
Page cache spills:                   0
Schema Heap Usage:                   2248 bytes
Statement Heap/Lookaside Usage:      4752 bytes
Fullscan Steps:                      1
Sort Operations:                     0
Autoindex Inserts:                   0
Virtual Machine Steps:               15
Reprepare operations:                0
Number of times run:                 1
Memory used by prepared stmt:        4752
Bytes received by read():            15797
Bytes sent to write():               13436
Read() system calls:                 42
Write() system calls:                17
Bytes read from storage:             0
Bytes written to storage:            0
Cancelled write bytes:               0
```

## Expectation

```sql

```

## Flag

```
-stats
```

