## 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
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;
.log stderr
PRAGMA vdbe_listing = YES;
PRAGMA data_version;
ATTACH DATABASE ':memory:' AS aux55;
ATTACH DATABASE ':memory:' AS aux67;
.explain auto
ATTACH DATABASE ':memory:' AS aux60;
PRAGMA cell_size_check = YES;
.print
SAVEPOINT sp6370;
ATTACH DATABASE ':memory:' AS aux75;
CREATE TABLE T (
  a INT2,
  b TEXT,
  c REAL
);
INSERT INTO T VALUES (replace(CAST(x'e396' AS DATETIME), 'a', NULL),'a',-(-(-json_valid(-(-(glob('9223372036854775808', 'hello'))), acosh((6 + 0.0)))))), (2,'b',-3.5), (3,'c',0.0);
SELECT * FROM T WHERE NOT NOT c < 2.0 ORDER BY c;
.check
PRAGMA empty_result_callbacks = FALSE;
PRAGMA empty_result_callbacks = YES;
PRAGMA temp_store = '2';
.save /dev/null
CREATE TABLE T (
  a TEXT,
  b REAL
);
INSERT INTO T VALUES ('a',-sign(2174953515348677960)), ('b',-200.5), ('c',9e999);
SELECT a,b,
LEAD(b,1) OVER (ORDER BY b DESC) AS c,
NTILE(2) OVER (ORDER BY b DESC) AS d FROM T;
CREATE TRIGGER IF NOT EXISTS trg_T_5117 AFTER INSERT ON T BEGIN INSERT INTO T(a) VALUES (NULL); END;
VACUUM main;
WITH RECURSIVE fib(a,b) AS (VALUES(1,1) UNION ALL SELECT b, a+b FROM fib WHERE b<1000) SELECT a FROM fib;
DROP TABLE IF EXISTS T;
DROP TRIGGER IF EXISTS T;
CREATE UNIQUE	 INDEX IF NOT EXISTS idx_T_8410 ON T(lower(a));
SELECT TOTAL(a) FROM T;
VACUUM;
INSERT INTO T VALUES (1, 'x') ON CONFLICT(a) DO UPDATE SET a = excluded.a, b = excluded.b;
ALTER TABLE T ADD COLUMN extra_6853 DOUBLE PRECISION DEFAULT 0;
ALTER TABLE T RENAME TO T_r3672;
INSERT  INTO T DEFAULT VALUES;
SELECT * FROM T;
DROP VIEW IF EXISTS T;
DETACH DATABASE aux75;
ROLLBACK TO sp6370;
RELEASE sp6370;
SELECT MIN(a) FROM T;
CREATE TEMP  VIEW IF NOT EXISTS v_T_7817 AS SELECT a FROM T;
SAVEPOINT sp6370;
ATTACH DATABASE ':memory:' AS aux75;
CREATE TABLE T (
  a INTEGER,
  b TEXT,
  c REAL
);
INSERT INTO T VALUES (replace(1, 'a', NULL),'a',1.25), (2,'b',-3.5), (3,'c',0.0);
SELECT * FROM T WHERE c < 2.0 ORDER BY c;
.check
PRAGMA empty_result_callbacks = FALSE;
PRAGMA empty_result_callbacks = YES;
PRAGMA temp_store = '2';
.save /dev/null
CREATE TABLE T (
  a TEXT,
  b REAL
);
INSERT INTO T VALUES ('a',-sign(2174953515348677960)), ('b',-200.5), ('c',9e999);
SELECT a,b,
LEAD(b,1) OVER (ORDER BY b DESC) AS c,
NTILE(2) OVER (ORDER BY b DESC) AS d FROM T;
CREATE TRIGGER IF NOT EXISTS trg_T_5117 AFTER INSERT ON T BEGIN INSERT INTO T(a) VALUES (NULL); END;
VACUUM main;
WITH RECURSIVE fib(a,b) AS (VALUES(1,1) UNION ALL SELECT b, a+b FROM fib WHERE b<1000) SELECT a FROM fib;
DROP TABLE IF EXISTS T;
DROP TRIGGER IF EXISTS T;
CREATE UNIQUE	 INDEX IF NOT EXISTS idx_T_8410 ON T(lower(a));
SELECT TOTAL(a) FROM T;
VACUUM;
INSERT INTO T VALUES (1, 'x') ON CONFLICT(a) DO UPDATE SET a = excluded.a, b = excluded.b;
ALTER TABLE T ADD COLUMN extra_6853 DOUBLE PRECISION DEFAULT 0;
ALTER TABLE T RENAME TO T_r3672;
INSERT  INTO T DEFAULT VALUES;
SELECT * FROM T;
DROP VIEW IF EXISTS T;
DETACH DATABASE aux75;
ROLLBACK TO sp6370;
RELEASE sp6370;
SELECT MIN(a) FROM T;
CREATE TEMP  VIEW IF NOT EXISTS v_T_7817 AS SELECT a FROM T;
SAVEPOINT sp6370;
ATTACH DATABASE ':memory:' AS aux75;
CREATE TABLE T (
  a INTEGER,
  b TEXT,
  c REAL
);
INSERT INTO T VALUES (replace(1, 'a', NULL),'a',1.25), (2,'b',-3.5), (3,'c',0.0);
SELECT * FROM T WHERE c < 2.0 ORDER BY c;
.check
PRAGMA empty_result_callbacks = FALSE;
PRAGMA empty_result_callbacks = YES;
CREATE VIRTUAL TABLE t0 USING fts4("x", "y", "z");
DROP TABLE t0;
PRAGMA temp_store = '2';
.save /dev/null
CREATE TABLE T (
  a TEXT,
  b REAL
);
INSERT INTO T VALUES ('a',-sign(2174953515348677960)), ('b',-200.5), ('c',9e999);
SELECT a,b,
LEAD(b,1) OVER (ORDER BY b DESC) AS c,
NTILE(2) OVER (ORDER BY b DESC) AS d FROM T;
CREATE TRIGGER IF NOT EXISTS trg_T_5117 AFTER INSERT ON T BEGIN INSERT INTO T(a) VALUES (NULL); END;
VACUUM main;
WITH RECURSIVE fib(a,b) AS (VALUES(1,1) UNION ALL SELECT b, a+b FROM fib WHERE b<1000) SELECT a FROM fib;
DROP TABLE IF EXISTS T;
DROP TRIGGER IF EXISTS T;
CREATE UNIQUE	 INDEX IF NOT EXISTS idx_T_8410 ON T(lower(a));
SELECT TOTAL(a) FROM T;
VACUUM;
INSERT INTO T VALUES (1, 'x') ON CONFLICT(a) DO UPDATE SET a = excluded.a, b = excluded.b;
ALTER TABLE T ADD COLUMN extra_6853 DOUBLE PRECISION DEFAULT 0;
ALTER TABLE T RENAME TO T_r3672;
INSERT  INTO T DEFAULT VALUES;
SELECT * FROM T;
DROP VIEW IF EXISTS T;
DETACH DATABASE aux75;
ROLLBACK TO sp6370;
RELEASE sp6370;
SELECT MIN(a) FROM T;
CREATE TEMP  VIEW IF NOT EXISTS v_T_7817 AS SELECT a FROM T;
SAVEPOINT sp6370;
ATTACH DATABASE ':memory:' AS aux75;
CREATE TABLE T (
  a INTEGER,
  b TEXT,
  c REAL
);
INSERT INTO T VALUES (replace(1, 'a', NULL),'a',1.25), (2,'b',-3.5), (3,'c',0.0);
SELECT * FROM T WHERE c < 2.0 ORDER BY c;
.check
PRAGMA empty_result_callbacks = FALSE;
PRAGMA empty_result_callbacks = YES;
PRAGMA temp_store = '2';
.save /dev/null
CREATE TABLE T (
  a TEXT,
  b REAL
);
INSERT INTO T VALUES ('a',-sign(2174953515348677960)), ('b',-200.5), ('c',9e999);
SELECT a,b,
LEAD(b,1) OVER (ORDER BY b DESC) AS c,
NTILE(2) OVER (ORDER BY b DESC) AS d FROM T;
CREATE TRIGGER IF NOT EXISTS trg_T_5117 AFTER INSERT ON T BEGIN INSERT INTO T(a) VALUES (NULL); END;
VACUUM main;
WITH RECURSIVE fib(a,b) AS (VALUES(1,1) UNION ALL SELECT b, a+b FROM fib WHERE b<1000) SELECT a FROM fib;
DROP TABLE IF EXISTS T;
DROP TRIGGER IF EXISTS T;
CREATE UNIQUE	 INDEX IF NOT EXISTS idx_T_8410 ON T(lower(a));
SELECT TOTAL(a) FROM T;
VACUUM;
INSERT INTO T VALUES (1, 'x') ON CONFLICT(a) DO UPDATE SET a = excluded.a, b = excluded.b;
ALTER TABLE T ADD COLUMN extra_6853 DOUBLE PRECISION DEFAULT 0;
ALTER TABLE T RENAME TO T_r3672;
INSERT  INTO T DEFAULT VALUES;
SELECT * FROM T;
DROP VIEW IF EXISTS T;
DETACH DATABASE aux75;
ROLLBACK TO sp6370;
RELEASE sp6370;
SELECT MIN(a) FROM T;
CREATE TEMP  VIEW IF NOT EXISTS v_T_7817 AS SELECT a FROM T;
SAVEPOINT sp6370;
ATTACH DATABASE ':memory:' AS aux75;
CREATE TABLE T (
  a INTEGER,
  b TEXT,
  c REAL
);
INSERT INTO T VALUES (replace(1, 'a', NULL),'a',1.25), (2,'b',-3.5), (3,'c',0.0);
SELECT * FROM T WHERE c < 2.0 ORDER BY c;
.check
PRAGMA empty_result_callbacks = FALSE;
PRAGMA empty_result_callbacks = YES;
PRAGMA temp_store = '2';
.save /dev/null
CREATE TABLE T (
  a TEXT,
  b REAL
);
INSERT INTO T VALUES ('a',-sign(2174953515348677960)), ('b',-200.5), ('c',9e999);
SELECT a,b,
LEAD(b,1) OVER (ORDER BY b DESC) AS c,
NTILE(2) OVER (ORDER BY b DESC) AS d FROM T;
CREATE TRIGGER IF NOT EXISTS trg_T_5117 AFTER INSERT ON T BEGIN INSERT INTO T(a) VALUES (NULL); END;
VACUUM main;
WITH RECURSIVE fib(a,b) AS (VALUES(1,1) UNION ALL SELECT b, a+b FROM fib WHERE b<1000) SELECT a FROM fib;
DROP TABLE IF EXISTS T;
DROP TRIGGER IF EXISTS T;
CREATE UNIQUE	 INDEX IF NOT EXISTS idx_T_8410 ON T(lower(a));
SELECT TOTAL(a) FROM T;
VACUUM;
INSERT INTO T VALUES (1, 'x') ON CONFLICT(a) DO UPDATE SET a = excluded.a, b = excluded.b;
ALTER TABLE T ADD COLUMN extra_6853 DOUBLE PRECISION DEFAULT 0;
ALTER TABLE T RENAME TO T_r3672;
INSERT  INTO T DEFAULT VALUES;
SELECT * FROM T;
DROP VIEW IF EXISTS T;
DETACH DATABASE aux75;
ROLLBACK TO sp6370;
RELEASE sp6370;
SELECT MIN(a) FROM T;
CREATE TEMP  VIEW IF NOT EXISTS v_T_7817 AS SELECT a FROM T;
SAVEPOINT sp6370;
ATTACH DATABASE ':memory:' AS aux75;
CREATE TABLE T (
  a INTEGER,
  b TEXT,
  c REAL
);
INSERT INTO T VALUES (replace(1, 'a', NULL),'a',1.25), (2,'b',-3.5), (3,'c',0.0);
SELECT * FROM T WHERE c < 2.0 ORDER BY c;
.check
PRAGMA empty_result_callbacks = FALSE;
PRAGMA empty_result_callbacks = YES;
PRAGMA temp_store = '2';
.save /dev/null
CREATE TABLE T (
  a TEXT,
  b REAL
);
INSERT INTO T VALUES ('a',-sign(2174953515348677960)), ('b',-200.5), ('c',9e999);
SELECT a,b,
LEAD(b,1) OVER (ORDER BY b DESC) AS c,
NTILE(2) OVER (ORDER BY b DESC) AS d FROM T;
CREATE TRIGGER IF NOT EXISTS trg_T_5117 AFTER INSERT ON T BEGIN INSERT INTO T(a) VALUES (NULL); END;
VACUUM main;
WITH RECURSIVE fib(a,b) AS (VALUES(1,1) UNION ALL SELECT b, a+b FROM fib WHERE b<1000) SELECT a FROM fib;
DROP TABLE IF EXISTS T;
DROP TRIGGER IF EXISTS T;
CREATE UNIQUE	 INDEX IF NOT EXISTS idx_T_8410 ON T(lower(a));
SELECT TOTAL(a) FROM T;
VACUUM;
INSERT INTO T VALUES (1, 'x') ON CONFLICT(a) DO UPDATE SET a = excluded.a, b = excluded.b;
ALTER TABLE T ADD COLUMN extra_6853 DOUBLE PRECISION DEFAULT 0;
ALTER TABLE T RENAME TO T_r3672;
INSERT  INTO T DEFAULT VALUES;
SELECT * FROM T;
DROP VIEW IF EXISTS T;
DETACH DATABASE aux75;
ROLLBACK TO sp6370;
RELEASE sp6370;
SELECT MIN(a) FROM T;
CREATE TEMP  VIEW IF NOT EXISTS v_T_7817 AS SELECT a FROM T;
SAVEPOINT sp6370;
ATTACH DATABASE ':memory:' AS aux75;
CREATE TABLE T (
  a INTEGER,
  b TEXT,
  c REAL
);
INSERT INTO T VALUES (replace(1, 'a', NULL),'a',1.25), (2,'b',-3.5), (3,'c',0.0);
SELECT * FROM T WHERE c < 2.0 ORDER BY c;
.check
PRAGMA empty_result_callbacks = FALSE;
PRAGMA empty_result_callbacks = YES;
PRAGMA temp_store = '2';
.save /dev/null
CREATE TABLE T (
  a TEXT,
  b REAL
);
INSERT INTO T VALUES ('a',-sign(2174953515348677960)), ('b',-200.5), ('c',9e999);
SELECT a,b,
LEAD(b,1) OVER (ORDER BY b DESC) AS c,
NTILE(2) OVER (ORDER BY b DESC) AS d FROM T;
CREATE TRIGGER IF NOT EXISTS trg_T_5117 AFTER INSERT ON T BEGIN INSERT INTO T(a) VALUES (NULL); END;
VACUUM main;
WITH RECURSIVE fib(a,b) AS (VALUES(1,1) UNION ALL SELECT b, a+b FROM fib WHERE b<1000) SELECT a FROM fib;
DROP TABLE IF EXISTS T;
DROP TRIGGER IF EXISTS T;
CREATE UNIQUE	 INDEX IF NOT EXISTS idx_T_8410 ON T(lower(a));
SELECT TOTAL(a) FROM T;
VACUUM;
INSERT INTO T VALUES (1, 'x') ON CONFLICT(a) DO UPDATE SET a = excluded.a, b = excluded.b;
ALTER TABLE T ADD COLUMN extra_6853 DOUBLE PRECISION DEFAULT 0;
ALTER TABLE T RENAME TO T_r3672;
INSERT  INTO T DEFAULT VALUES;
SELECT * FROM T;
DROP VIEW IF EXISTS T;
DETACH DATABASE aux75;
ROLLBACK TO sp6370;
RELEASE sp6370;
SELECT MIN(a) FROM T;
CREATE TEMP  VIEW IF NOT EXISTS v_T_7817 AS SELECT a FROM T;
SAVEPOINT sp6370;
ATTACH DATABASE ':memory:' AS aux75;
CREATE TABLE T (
  a INTEGER,
  b TEXT,
  c REAL
);
INSERT INTO T VALUES (replace(1, 'a', NULL),'a',1.25), (2,'b',-3.5), (3,'c',0.0);
SELECT * FROM T WHERE c < 2.0 ORDER BY c;
.check
PRAGMA empty_result_callbacks = FALSE;
PRAGMA empty_result_callbacks = YES;
PRAGMA temp_store = '2';
.save /dev/null
CREATE TABLE T (
  a TEXT,
  b REAL
);
INSERT INTO T VALUES ('a',-sign(2174953515348677960)), ('b',-200.5), ('c',9e999);
SELECT a,b,
LEAD(b,1) OVER (ORDER BY b DESC) AS c,
NTILE(2) OVER (ORDER BY b DESC) AS d FROM T;
CREATE TRIGGER IF NOT EXISTS trg_T_5117 AFTER INSERT ON T BEGIN INSERT INTO T(a) VALUES (NULL); END;
VACUUM main;
WITH RECURSIVE fib(a,b) AS (VALUES(1,1) UNION ALL SELECT b, a+b FROM fib WHERE b<1000) SELECT a FROM fib;
DROP TABLE IF EXISTS T;
DROP TRIGGER IF EXISTS T;
CREATE UNIQUE	 INDEX IF NOT EXISTS idx_T_8410 ON T(lower(a));
SELECT TOTAL(a) FROM T;
VACUUM;
INSERT INTO T VALUES (1, 'x') ON CONFLICT(a) DO UPDATE SET a = excluded.a, b = excluded.b;
ALTER TABLE T ADD COLUMN extra_6853 DOUBLE PRECISION DEFAULT 0;
ALTER TABLE T RENAME TO T_r3672;
INSERT  INTO T DEFAULT VALUES;
SELECT * FROM T;
DROP VIEW IF EXISTS T;
DETACH DATABASE aux75;
ROLLBACK TO sp6370;
RELEASE sp6370;
SELECT MIN(a) FROM T;
CREATE TEMP  VIEW IF NOT EXISTS v_T_7817 AS SELECT a FROM T;
SELECT COUNT(*) FILTER (WHERE a IS NOT NULL), SUM(rowid) FILTER (WHERE a > 0), COUNT(*) FILTER (WHERE 1=0), COUNT(*) FILTER (WHERE 1=1), COUNT(*) FILTER (WHERE NULL), AVG(a) FILTER (WHERE a > 0 AND a < 100), COUNT(*) FILTER (WHERE typeof(a) = "text") FROM T;
CREATE  INDEX IF NOT EXISTS idx_T_4205 ON T(b COLLATE NOCASE) WHERE b IS NOT NULL;
REINDEX T;
ALTER TABLE T DROP COLUMN a;
ALTER TABLE T ADD COLUMN extra_3861 NONE COLLATE NOCASE;
ALTER TABLE T DROP COLUMN a;
WITH RECURSIVE inf(x) AS (VALUES(1) UNION ALL SELECT x+1 FROM inf) SELECT * FROM inf LIMIT 10;
PRAGMA automatic_index = ON;
DROP INDEX IF EXISTS T;
REINDEX T;
ALTER TABLE T ADD COLUMN extra_3781 CHARACTER(20) DEFAULT CURRENT_TIMESTAMP;
ALTER TABLE T RENAME COLUMN b TO b_r1497;
SELECT COUNT(*) FROM T;
INSERT INTO T SELECT * FROM T;
INSERT INTO T SELECT * FROM T;
ALTER TABLE T RENAME TO T_r9608;
SELECT COUNT(*) FILTER (WHERE a IS NOT NULL), SUM(rowid) FILTER (WHERE a > 0), COUNT(*) FILTER (WHERE 1=0), COUNT(*) FILTER (WHERE 1=1), COUNT(*) FILTER (WHERE NULL), AVG(a) FILTER (WHERE a > 0 AND a < 100), COUNT(*) FILTER (WHERE typeof(a) = "text") FROM T;
WITH cte AS (SELECT * FROM T) SELECT * FROM cte;
ALTER TABLE T ADD COLUMN extra_9199 SMALLINT UNIQUE;
PRAGMA integrity_check;
CREATE TRIGGER IF NOT EXISTS trg_T_4282 AFTER UPDATE ON T FOR EACH ROW BEGIN SELECT RAISE(IGNORE); END;
CREATE TABLE T (
  a INTEGER,
  b REAL,
  c REAL
);
INSERT INTO T VALUES (1,1.5,10.0), (2,-2.5,20.0), (3,-9e999,30.0);
SELECT * FROM T WHERE b < 2.0 ORDER BY b;
SELECT * FROM T;
REINDEX;
CREATE UNIQUE  INDEX IF NOT EXISTS idx_T_924 ON T((b + 1)) WHERE b IS NOT NULL;
SELECT * FROM T AS a LEFT OUTER JOIN T AS b ON a.rowid = b.rowid;
DELETE FROM T WHERE 1;
INSERT INTO T VALUES (NULL, NULL, NULL);
INSERT OR REPLACE INTO T VALUES ('x', 5, 'x');
SELECT * FROM (SELECT * FROM T) AS sub;
UPDATE T SET b = CURRENT_TIMESTAMP WHERE b IS NOT NULL RETURNING *;
INSERT INTO T DEFAULT VALUES;
DROP TABLE IF EXISTS T;

SELECT COUNT(*) FROM T;
DETACH DATABASE aux60;
ALTER TABLE T RENAME TO T_r646;
SELECT * FROM T AS a RIGHT OUTER JOIN T AS b ON a.rowid = b.rowid;
SELECT b, (SELECT SUM(b) FROM T) AS sum_val FROM T;
ATTACH DATABASE ':memory:' AS aux60;
PRAGMA cell_size_check = YES;
.print
SAVEPOINT sp6370;
ATTACH DATABASE ':memory:' AS aux75;
CREATE TABLE T (
  a INT2,
  b TEXT,
  c REAL
);
INSERT INTO T VALUES (replace(CAST(x'e396' AS DATETIME), 'a', NULL),'a',-(-(-json_valid(9223372036854775808, 6)))), (2,'b',-3.5), (3,'c',0.0);
SELECT * FROM T WHERE NOT NOT c < 2.0 ORDER BY c;
.check
PRAGMA empty_result_callbacks = FALSE;
PRAGMA empty_result_callbacks = YES;
PRAGMA temp_store = '2';
.save /dev/null
CREATE TABLE T (
  a TEXT,
  b REAL
);
INSERT INTO T VALUES ('a',-sign(2174953515348677960)), ('b',-200.5), ('c',9e999);
SELECT a,b,
LEAD(b,1) OVER (ORDER BY b DESC) AS c,
NTILE(2) OVER (ORDER BY b DESC) AS d FROM T;
CREATE TRIGGER IF NOT EXISTS trg_T_5117 AFTER INSERT ON T BEGIN INSERT INTO T(a) VALUES (NULL); END;
VACUUM main;
WITH RECURSIVE fib(a,b) AS (VALUES(1,1) UNION ALL SELECT b, a+b FROM fib WHERE b<1000) SELECT a FROM fib;
DROP TABLE IF EXISTS T;
DROP TRIGGER IF EXISTS T;
CREATE UNIQUE	 INDEX IF NOT EXISTS idx_T_8410 ON T(lower(a));
SELECT TOTAL(a) FROM T;
VACUUM;
INSERT INTO T VALUES (1, 'x') ON CONFLICT(a) DO UPDATE SET a = excluded.a, b = excluded.b;
ALTER TABLE T ADD COLUMN extra_6853 DOUBLE PRECISION DEFAULT 0;
ALTER TABLE T RENAME TO T_r3672;
INSERT  INTO T DEFAULT VALUES;
SELECT * FROM T;
DROP VIEW IF EXISTS T;
DETACH DATABASE aux75;
ROLLBACK TO sp6370;
RELEASE sp6370;
SELECT MIN(a) FROM T;
CREATE TEMP  VIEW IF NOT EXISTS v_T_7817 AS SELECT a FROM T;
SAVEPOINT sp6370;
ATTACH DATABASE ':memory:' AS aux75;
CREATE TABLE T (
  a INTEGER,
  b TEXT,
  c REAL
);
INSERT INTO T VALUES (replace(1, 'a', NULL),'a',1.25), (2,'b',-3.5), (3,'c',0.0);
SELECT * FROM T WHERE c < 2.0 ORDER BY c;
.check
PRAGMA empty_result_callbacks = FALSE;
PRAGMA empty_result_callbacks = YES;
PRAGMA temp_store = '2';
.save /dev/null
CREATE TABLE T (
  a TEXT,
  b REAL
);
INSERT INTO T VALUES ('a',-sign(2174953515348677960)), ('b',-200.5), ('c',9e999);
SELECT a,b,
LEAD(b,1) OVER (ORDER BY b DESC) AS c,
NTILE(2) OVER (ORDER BY b DESC) AS d FROM T;
CREATE TRIGGER IF NOT EXISTS trg_T_5117 AFTER INSERT ON T BEGIN INSERT INTO T(a) VALUES (NULL); END;
VACUUM main;
WITH RECURSIVE fib(a,b) AS (VALUES(1,1) UNION ALL SELECT b, a+b FROM fib WHERE b<1000) SELECT a FROM fib;
DROP TABLE IF EXISTS T;
DROP TRIGGER IF EXISTS T;
CREATE UNIQUE	 INDEX IF NOT EXISTS idx_T_8410 ON T(lower(a));
SELECT TOTAL(a) FROM T;
VACUUM;
INSERT INTO T VALUES (1, 'x') ON CONFLICT(a) DO UPDATE SET a = excluded.a, b = excluded.b;
ALTER TABLE T ADD COLUMN extra_6853 DOUBLE PRECISION DEFAULT 0;
ALTER TABLE T RENAME TO T_r3672;
INSERT  INTO T DEFAULT VALUES;
SELECT * FROM T;
DROP VIEW IF EXISTS T;
DETACH DATABASE aux75;
ROLLBACK TO sp6370;
RELEASE sp6370;
SELECT MIN(a) FROM T;
CREATE TEMP  VIEW IF NOT EXISTS v_T_7817 AS SELECT a FROM T;
SAVEPOINT sp6370;
ATTACH DATABASE ':memory:' AS aux75;
CREATE TABLE T (
  a INTEGER,
  b TEXT,
  c REAL
);
INSERT INTO T VALUES (replace(1, 'a', NULL),'a',1.25), (2,'b',-3.5), (3,'c',0.0);
SELECT * FROM T WHERE c < 2.0 ORDER BY c;
.check
PRAGMA empty_result_callbacks = FALSE;
PRAGMA empty_result_callbacks = YES;
CREATE VIRTUAL TABLE t0 USING fts4("x", "y", "z");
DROP TABLE t0;
PRAGMA temp_store = '2';
.save /dev/null
CREATE TABLE T (
  a TEXT,
  b REAL
);
INSERT INTO T VALUES ('a',-sign(2174953515348677960)), ('b',-200.5), ('c',9e999);
SELECT a,b,
LEAD(b,1) OVER (ORDER BY b DESC) AS c,
NTILE(2) OVER (ORDER BY b DESC) AS d FROM T;
CREATE TRIGGER IF NOT EXISTS trg_T_5117 AFTER INSERT ON T BEGIN INSERT INTO T(a) VALUES (NULL); END;
VACUUM main;
WITH RECURSIVE fib(a,b) AS (VALUES(1,1) UNION ALL SELECT b, a+b FROM fib WHERE b<1000) SELECT a FROM fib;
DROP TABLE IF EXISTS T;
DROP TRIGGER IF EXISTS T;
CREATE UNIQUE	 INDEX IF NOT EXISTS idx_T_8410 ON T(lower(a));
SELECT TOTAL(a) FROM T;
VACUUM;
INSERT INTO T VALUES (1, 'x') ON CONFLICT(a) DO UPDATE SET a = excluded.a, b = excluded.b;
ALTER TABLE T ADD COLUMN extra_6853 DOUBLE PRECISION DEFAULT 0;
ALTER TABLE T RENAME TO T_r3672;
INSERT  INTO T DEFAULT VALUES;
SELECT * FROM T;
DROP VIEW IF EXISTS T;
DETACH DATABASE aux75;
ROLLBACK TO sp6370;
RELEASE sp6370;
SELECT MIN(a) FROM T;
CREATE TEMP  VIEW IF NOT EXISTS v_T_7817 AS SELECT a FROM T;
SAVEPOINT sp6370;
ATTACH DATABASE ':memory:' AS aux75;
CREATE TABLE T (
  a INTEGER,
  b TEXT,
  c REAL
);
INSERT INTO T VALUES (replace(1, 'a', NULL),'a',1.25), (2,'b',-3.5), (3,'c',0.0);
SELECT * FROM T WHERE c < 2.0 ORDER BY c;
.check
PRAGMA empty_result_callbacks = FALSE;
PRAGMA empty_result_callbacks = YES;
PRAGMA temp_store = '2';
.save /dev/null
CREATE TABLE T (
  a TEXT,
  b REAL
);
INSERT INTO T VALUES ('a',-sign(2174953515348677960)), ('b',-200.5), ('c',9e999);
SELECT a,b,
LEAD(b,1) OVER (ORDER BY b DESC) AS c,
NTILE(2) OVER (ORDER BY b DESC) AS d FROM T;
CREATE TRIGGER IF NOT EXISTS trg_T_5117 AFTER INSERT ON T BEGIN INSERT INTO T(a) VALUES (NULL); END;
VACUUM main;
WITH RECURSIVE fib(a,b) AS (VALUES(1,1) UNION ALL SELECT b, a+b FROM fib WHERE b<1000) SELECT a FROM fib;
DROP TABLE IF EXISTS T;
DROP TRIGGER IF EXISTS T;
CREATE UNIQUE	 INDEX IF NOT EXISTS idx_T_8410 ON T(lower(a));
SELECT TOTAL(a) FROM T;
VACUUM;
INSERT INTO T VALUES (1, 'x') ON CONFLICT(a) DO UPDATE SET a = excluded.a, b = excluded.b;
ALTER TABLE T ADD COLUMN extra_6853 DOUBLE PRECISION DEFAULT 0;
ALTER TABLE T RENAME TO T_r3672;
INSERT  INTO T DEFAULT VALUES;
SELECT * FROM T;
DROP VIEW IF EXISTS T;
DETACH DATABASE aux75;
ROLLBACK TO sp6370;
RELEASE sp6370;
SELECT MIN(a) FROM T;
CREATE TEMP  VIEW IF NOT EXISTS v_T_7817 AS SELECT a FROM T;
SAVEPOINT sp6370;
ATTACH DATABASE ':memory:' AS aux75;
CREATE TABLE T (
  a INTEGER,
  b TEXT,
  c REAL
);
INSERT INTO T VALUES (replace(1, 'a', NULL),'a',1.25), (2,'b',-3.5), (3,'c',0.0);
SELECT * FROM T WHERE c < 2.0 ORDER BY c;
.check
PRAGMA empty_result_callbacks = FALSE;
PRAGMA empty_result_callbacks = YES;
PRAGMA temp_store = '2';
.save /dev/null
CREATE TABLE T (
  a TEXT,
  b REAL
);
INSERT INTO T VALUES ('a',-sign(2174953515348677960)), ('b',-200.5), ('c',9e999);
SELECT a,b,
LEAD(b,1) OVER (ORDER BY b DESC) AS c,
NTILE(2) OVER (ORDER BY b DESC) AS d FROM T;
CREATE TRIGGER IF NOT EXISTS trg_T_5117 AFTER INSERT ON T BEGIN INSERT INTO T(a) VALUES (NULL); END;
VACUUM main;
WITH RECURSIVE fib(a,b) AS (VALUES(1,1) UNION ALL SELECT b, a+b FROM fib WHERE b<1000) SELECT a FROM fib;
DROP TABLE IF EXISTS T;
DROP TRIGGER IF EXISTS T;
CREATE UNIQUE	 INDEX IF NOT EXISTS idx_T_8410 ON T(lower(a));
SELECT TOTAL(a) FROM T;
VACUUM;
INSERT INTO T VALUES (1, 'x') ON CONFLICT(a) DO UPDATE SET a = excluded.a, b = excluded.b;
ALTER TABLE T ADD COLUMN extra_6853 DOUBLE PRECISION DEFAULT 0;
ALTER TABLE T RENAME TO T_r3672;
INSERT  INTO T DEFAULT VALUES;
SELECT * FROM T;
DROP VIEW IF EXISTS T;
DETACH DATABASE aux75;
ROLLBACK TO sp6370;
RELEASE sp6370;
SELECT MIN(a) FROM T;
CREATE TEMP  VIEW IF NOT EXISTS v_T_7817 AS SELECT a FROM T;
SAVEPOINT sp6370;
ATTACH DATABASE ':memory:' AS aux75;
CREATE TABLE T (
  a INTEGER,
  b TEXT,
  c REAL
);
INSERT INTO T VALUES (replace(1, 'a', NULL),'a',1.25), (2,'b',-3.5), (3,'c',0.0);
SELECT * FROM T WHERE c < 2.0 ORDER BY c;
.check
PRAGMA empty_result_callbacks = FALSE;
PRAGMA empty_result_callbacks = YES;
PRAGMA temp_store = '2';
.save /dev/null
CREATE TABLE T (
  a TEXT,
  b REAL
);
INSERT INTO T VALUES ('a',-sign(2174953515348677960)), ('b',-200.5), ('c',9e999);
SELECT a,b,
LEAD(b,1) OVER (ORDER BY b DESC) AS c,
NTILE(2) OVER (ORDER BY b DESC) AS d FROM T;
CREATE TRIGGER IF NOT EXISTS trg_T_5117 AFTER INSERT ON T BEGIN INSERT INTO T(a) VALUES (NULL); END;
VACUUM main;
WITH RECURSIVE fib(a,b) AS (VALUES(1,1) UNION ALL SELECT b, a+b FROM fib WHERE b<1000) SELECT a FROM fib;
DROP TABLE IF EXISTS T;
DROP TRIGGER IF EXISTS T;
CREATE UNIQUE	 INDEX IF NOT EXISTS idx_T_8410 ON T(lower(a));
SELECT TOTAL(a) FROM T;
VACUUM;
INSERT INTO T VALUES (1, 'x') ON CONFLICT(a) DO UPDATE SET a = excluded.a, b = excluded.b;
ALTER TABLE T ADD COLUMN extra_6853 DOUBLE PRECISION DEFAULT 0;
ALTER TABLE T RENAME TO T_r3672;
INSERT  INTO T DEFAULT VALUES;
SELECT * FROM T;
DROP VIEW IF EXISTS T;
DETACH DATABASE aux75;
ROLLBACK TO sp6370;
RELEASE sp6370;
SELECT MIN(a) FROM T;
CREATE TEMP  VIEW IF NOT EXISTS v_T_7817 AS SELECT a FROM T;
SAVEPOINT sp6370;
ATTACH DATABASE ':memory:' AS aux75;
CREATE TABLE T (
  a INTEGER,
  b TEXT,
  c REAL
);
INSERT INTO T VALUES (replace(1, 'a', NULL),'a',1.25), (2,'b',-3.5), (3,'c',0.0);
SELECT * FROM T WHERE c < 2.0 ORDER BY c;
.check
PRAGMA empty_result_callbacks = FALSE;
PRAGMA empty_result_callbacks = YES;
PRAGMA temp_store = '2';
.save /dev/null
CREATE TABLE T (
  a TEXT,
  b REAL
);
INSERT INTO T VALUES ('a',-sign(2174953515348677960)), ('b',-200.5), ('c',9e999);
SELECT a,b,
LEAD(b,1) OVER (ORDER BY b DESC) AS c,
NTILE(2) OVER (ORDER BY b DESC) AS d FROM T;
CREATE TRIGGER IF NOT EXISTS trg_T_5117 AFTER INSERT ON T BEGIN INSERT INTO T(a) VALUES (NULL); END;
VACUUM main;
WITH RECURSIVE fib(a,b) AS (VALUES(1,1) UNION ALL SELECT b, a+b FROM fib WHERE b<1000) SELECT a FROM fib;
DROP TABLE IF EXISTS T;
DROP TRIGGER IF EXISTS T;
CREATE UNIQUE	 INDEX IF NOT EXISTS idx_T_8410 ON T(lower(a));
SELECT TOTAL(a) FROM T;
VACUUM;
INSERT INTO T VALUES (1, 'x') ON CONFLICT(a) DO UPDATE SET a = excluded.a, b = excluded.b;
ALTER TABLE T ADD COLUMN extra_6853 DOUBLE PRECISION DEFAULT 0;
ALTER TABLE T RENAME TO T_r3672;
INSERT  INTO T DEFAULT VALUES;
SELECT * FROM T;
DROP VIEW IF EXISTS T;
DETACH DATABASE aux75;
ROLLBACK TO sp6370;
RELEASE sp6370;
SELECT MIN(a) FROM T;
CREATE TEMP  VIEW IF NOT EXISTS v_T_7817 AS SELECT a FROM T;
SAVEPOINT sp6370;
ATTACH DATABASE ':memory:' AS aux75;
CREATE TABLE T (
  a INTEGER,
  b TEXT,
  c REAL
);
INSERT INTO T VALUES (replace(1, 'a', NULL),'a',1.25), (2,'b',-3.5), (3,'c',0.0);
SELECT * FROM T WHERE c < 2.0 ORDER BY c;
.check
PRAGMA empty_result_callbacks = FALSE;
PRAGMA empty_result_callbacks = YES;
PRAGMA temp_store = '2';
.save /dev/null
CREATE TABLE T (
  a TEXT,
  b REAL
);
INSERT INTO T VALUES ('a',-sign(2174953515348677960)), ('b',-200.5), ('c',9e999);
SELECT a,b,
LEAD(b,1) OVER (ORDER BY b DESC) AS c,
NTILE(2) OVER (ORDER BY b DESC) AS d FROM T;
CREATE TRIGGER IF NOT EXISTS trg_T_5117 AFTER INSERT ON T BEGIN INSERT INTO T(a) VALUES (NULL); END;
VACUUM main;
WITH RECURSIVE fib(a,b) AS (VALUES(1,1) UNION ALL SELECT b, a+b FROM fib WHERE b<1000) SELECT a FROM fib;
DROP TABLE IF EXISTS T;
DROP TRIGGER IF EXISTS T;
CREATE UNIQUE	 INDEX IF NOT EXISTS idx_T_8410 ON T(lower(a));
SELECT TOTAL(a) FROM T;
VACUUM;
INSERT INTO T VALUES (1, 'x') ON CONFLICT(a) DO UPDATE SET a = excluded.a, b = excluded.b;
ALTER TABLE T ADD COLUMN extra_6853 DOUBLE PRECISION DEFAULT 0;
ALTER TABLE T RENAME TO T_r3672;
INSERT  INTO T DEFAULT VALUES;
SELECT * FROM T;
DROP VIEW IF EXISTS T;
DETACH DATABASE aux75;
ROLLBACK TO sp6370;
RELEASE sp6370;
SELECT MIN(a) FROM T;
CREATE TEMP  VIEW IF NOT EXISTS v_T_7817 AS SELECT a FROM T;
SELECT COUNT(*) FILTER (WHERE a IS NOT NULL), SUM(rowid) FILTER (WHERE a > 0), COUNT(*) FILTER (WHERE 1=0), COUNT(*) FILTER (WHERE 1=1), COUNT(*) FILTER (WHERE NULL), AVG(a) FILTER (WHERE a > 0 AND a < 100), COUNT(*) FILTER (WHERE typeof(a) = "text") FROM T;
CREATE  INDEX IF NOT EXISTS idx_T_4205 ON T(b COLLATE NOCASE) WHERE b IS NOT NULL;
REINDEX T;
ALTER TABLE T DROP COLUMN a;
ALTER TABLE T ADD COLUMN extra_3861 NONE COLLATE NOCASE;
ALTER TABLE T DROP COLUMN a;
WITH RECURSIVE inf(x) AS (VALUES(1) UNION ALL SELECT x+1 FROM inf) SELECT * FROM inf LIMIT 10;
PRAGMA automatic_index = ON;
DROP INDEX IF EXISTS T;
REINDEX T;
ALTER TABLE T ADD COLUMN extra_3781 CHARACTER(20) DEFAULT CURRENT_TIMESTAMP;
ALTER TABLE T RENAME COLUMN b TO b_r1497;
SELECT COUNT(*) FROM T;
INSERT INTO T SELECT * FROM T;
INSERT INTO T SELECT * FROM T;
ALTER TABLE T RENAME TO T_r9608;
SELECT COUNT(*) FILTER (WHERE a IS NOT NULL), SUM(rowid) FILTER (WHERE a > 0), COUNT(*) FILTER (WHERE 1=0), COUNT(*) FILTER (WHERE 1=1), COUNT(*) FILTER (WHERE NULL), AVG(a) FILTER (WHERE a > 0 AND a < 100), COUNT(*) FILTER (WHERE typeof(a) = "text") FROM T;
WITH cte AS (SELECT * FROM T) SELECT * FROM cte;
ALTER TABLE T ADD COLUMN extra_9199 SMALLINT UNIQUE;
PRAGMA integrity_check;
CREATE TRIGGER IF NOT EXISTS trg_T_4282 AFTER UPDATE ON T FOR EACH ROW BEGIN SELECT RAISE(IGNORE); END;
CREATE TABLE T (
  a INTEGER,
  b REAL,
  c REAL
);
INSERT INTO T VALUES (1,1.5,10.0), (2,-2.5,20.0), (3,-9e999,30.0);
SELECT * FROM T WHERE b < 2.0 ORDER BY b;
SELECT * FROM T;
REINDEX;
CREATE UNIQUE  INDEX IF NOT EXISTS idx_T_924 ON T((b + 1)) WHERE b IS NOT NULL;
SELECT * FROM T AS a LEFT OUTER JOIN T AS b ON a.rowid = b.rowid;
DELETE FROM T WHERE 1;
INSERT INTO T VALUES (NULL, NULL, NULL);
INSERT OR REPLACE INTO T VALUES ('x', 5, 'x');
SELECT * FROM (SELECT * FROM T) AS sub;
UPDATE T SET b = CURRENT_TIMESTAMP WHERE b IS NOT NULL RETURNING *;
INSERT INTO T DEFAULT VALUES;
DROP TABLE IF EXISTS T;

SELECT COUNT(*) FROM T;
DETACH DATABASE aux60;
ALTER TABLE T RENAME TO T_r646;
SELECT * FROM T AS a RIGHT OUTER JOIN T AS b ON a.rowid = b.rowid;
SELECT b, (SELECT SUM(b) FROM T) AS sum_val FROM T;
ATTACH DATABASE ':memory:' AS aux60;
PRAGMA cell_size_check = YES;
.print
SAVEPOINT sp6370;
ATTACH DATABASE ':memory:' AS aux75;
CREATE TABLE T (
  a INT2,
  b TEXT,
  c REAL
);
INSERT INTO T VALUES (replace(CAST(x'e396' AS DATETIME), 'a', NULL),'a',-(-(-json_valid(9223372036854775808, 6)))), (2,'b',-3.5), (3,'c',0.0);
SELECT * FROM T WHERE NOT NOT c < 2.0 ORDER BY c;
.check
PRAGMA empty_result_callbacks = FALSE;
PRAGMA empty_result_callbacks = YES;
PRAGMA temp_store = '2';
.save /dev/null
CREATE TABLE T (
  a TEXT,
  b REAL
);
INSERT INTO T VALUES ('a',-sign(2174953515348677960)), ('b',-200.5), ('c',9e999);
SELECT a,b,
LEAD(b,1) OVER (ORDER BY b DESC) AS c,
NTILE(2) OVER (ORDER BY b DESC) AS d FROM T;
CREATE TRIGGER IF NOT EXISTS trg_T_5117 AFTER INSERT ON T BEGIN INSERT INTO T(a) VALUES (NULL); END;
VACUUM main;
WITH RECURSIVE fib(a,b) AS (VALUES(1,1) UNION ALL SELECT b, a+b FROM fib WHERE b<1000) SELECT a FROM fib;
DROP TABLE IF EXISTS T;
DROP TRIGGER IF EXISTS T;
CREATE UNIQUE	 INDEX IF NOT EXISTS idx_T_8410 ON T(lower(a));
SELECT TOTAL(a) FROM T;
VACUUM;
INSERT INTO T VALUES (1, 'x') ON CONFLICT(a) DO UPDATE SET a = excluded.a, b = excluded.b;
ALTER TABLE T ADD COLUMN extra_6853 DOUBLE PRECISION DEFAULT 0;
ALTER TABLE T RENAME TO T_r3672;
INSERT  INTO T DEFAULT VALUES;
SELECT * FROM T;
DROP VIEW IF EXISTS T;
DETACH DATABASE aux75;
ROLLBACK TO sp6370;
RELEASE sp6370;
SELECT MIN(a) FROM T;
CREATE TEMP  VIEW IF NOT EXISTS v_T_7817 AS SELECT a FROM T;
SAVEPOINT sp6370;
ATTACH DATABASE ':memory:' AS aux75;
CREATE TABLE T (
  a INTEGER,
  b TEXT,
  c REAL
);
INSERT INTO T VALUES (replace(1, 'a', NULL),'a',1.25), (2,'b',-3.5), (3,'c',0.0);
SELECT * FROM T WHERE c < 2.0 ORDER BY c;
.check
PRAGMA empty_result_callbacks = FALSE;
PRAGMA empty_result_callbacks = YES;
PRAGMA temp_store = '2';
.save /dev/null
CREATE TABLE T (
  a TEXT,
  b REAL
);
INSERT INTO T VALUES ('a',-sign(2174953515348677960)), ('b',-200.5), ('c',9e999);
SELECT a,b,
LEAD(b,1) OVER (ORDER BY b DESC) AS c,
NTILE(2) OVER (ORDER BY b DESC) AS d FROM T;
CREATE TRIGGER IF NOT EXISTS trg_T_5117 AFTER INSERT ON T BEGIN INSERT INTO T(a) /**/ VALUES (NULL); END;
VACUUM main;
WITH RECURSIVE fib(a,b) AS (VALUES(1,1) UNION ALL SELECT b, a+b FROM fib WHERE b<1000) SELECT a FROM fib;
DROP TABLE IF EXISTS T;
DROP TRIGGER IF EXISTS T;
CREATE UNIQUE	 INDEX IF NOT EXISTS idx_T_8410 ON T(lower(a));
SELECT TOTAL(a) FROM T;
VACUUM;
INSERT INTO T VALUES (1, 'x') ON CONFLICT(a) DO UPDATE SET a = excluded.a, b = excluded.b;
ALTER TABLE T ADD COLUMN extra_6853 DOUBLE PRECISION DEFAULT 0;
ALTER TABLE T RENAME TO T_r3672;
INSERT  INTO T DEFAULT VALUES;
SELECT * FROM T;
DROP VIEW IF EXISTS T;
DETACH DATABASE aux75;
ROLLBACK TO sp6370;
RELEASE sp6370;
SELECT MIN(a) FROM T;
CREATE TEMP  VIEW IF NOT EXISTS v_T_7817 AS SELECT a FROM T;
SAVEPOINT sp6370;
ATTACH DATABASE ':memory:' AS aux75;
CREATE TABLE T (
  a INTEGER,
  b TEXT,
  c REAL
);
INSERT INTO T VALUES (replace(1, 'a', NULL),'a',1.25), (2,'b',-3.5), (3,'c',0.0);
SELECT * FROM T WHERE c < 2.0 ORDER BY c;
.check
PRAGMA empty_result_callbacks = FALSE;
PRAGMA empty_result_callbacks = YES;
CREATE VIRTUAL TABLE t0 USING fts4("x", "y", "z");
DROP TABLE t0;
PRAGMA temp_store = '2';
.save /dev/null
CREATE TABLE T (
  a TEXT,
  b REAL
);
INSERT INTO T VALUES ('a',-sign(2174953515348677960)), ('b',-200.5), ('c',9e999);
SELECT a,b,
LEAD(b,1) OVER (ORDER BY b DESC) AS c,
NTILE(2) OVER (ORDER BY b DESC) AS d FROM T;
CREATE TRIGGER IF NOT EXISTS trg_T_5117 AFTER INSERT ON T BEGIN INSERT INTO T(a) VALUES (NULL); END;
VACUUM main;
WITH RECURSIVE fib(a,b) AS (VALUES(1,1) UNION ALL SELECT b, a+b FROM fib WHERE b<1000) SELECT a FROM fib;
DROP TABLE IF EXISTS T;
DROP TRIGGER IF EXISTS T;
CREATE UNIQUE	 INDEX IF NOT EXISTS idx_T_8410 ON T(lower(a));
SELECT TOTAL(a) FROM T;
VACUUM;
INSERT INTO T VALUES (1, 'x') ON CONFLICT(a) DO UPDATE SET a = excluded.a, b = excluded.b;
ALTER TABLE T ADD COLUMN extra_6853 DOUBLE PRECISION DEFAULT 0;
ALTER TABLE T RENAME TO T_r3672;
INSERT  INTO T DEFAULT VALUES;
SELECT * FROM T;
DROP VIEW IF EXISTS T;
DETACH DATABASE aux75;
ROLLBACK TO sp6370;
RELEASE sp6370;
SELECT MIN(a) FROM T;
CREATE TEMP  VIEW IF NOT EXISTS v_T_7817 AS SELECT a FROM T;
SAVEPOINT sp6370;
ATTACH DATABASE ':memory:' AS aux75;
CREATE TABLE T (
  a INTEGER,
  b TEXT,
  c REAL
);
INSERT INTO T VALUES (replace(1, 'a', NULL),'a',1.25), (2,'b',-3.5), (3,'c',0.0);
SELECT * FROM T WHERE c < 2.0 ORDER BY c;
.check
PRAGMA empty_result_callbacks = FALSE;
PRAGMA empty_result_callbacks = YES;
PRAGMA temp_store = '2';
.save /dev/null
CREATE TABLE T (
  a TEXT,
  b REAL
);
INSERT INTO T VALUES ('a',-sign(2174953515348677960)), ('b',-200.5), ('c',9e999);
SELECT a,b,
LEAD(b,1) OVER (ORDER BY b DESC) AS c,
NTILE(2) OVER (ORDER BY b DESC) AS d FROM T;
CREATE TRIGGER IF NOT EXISTS trg_T_5117 AFTER INSERT ON T BEGIN INSERT INTO T(a) VALUES (NULL); END;
VACUUM main;
WITH RECURSIVE fib(a,b) AS (VALUES(1,1) UNION ALL SELECT b, a+b FROM fib WHERE b<1000) SELECT a FROM fib;
DROP TABLE IF EXISTS T;
DROP TRIGGER IF EXISTS T;
CREATE UNIQUE	 INDEX IF NOT EXISTS idx_T_8410 ON T(lower(a));
SELECT TOTAL(a) FROM T;
VACUUM;
INSERT INTO T VALUES (1, 'x') ON CONFLICT(a) DO UPDATE SET a = excluded.a, b = excluded.b;
ALTER TABLE T ADD COLUMN extra_6853 DOUBLE PRECISION DEFAULT 0;
ALTER TABLE T RENAME TO T_r3672;
INSERT  INTO T DEFAULT VALUES;
SELECT * FROM T;
DROP VIEW IF EXISTS T;
DETACH DATABASE aux75;
ROLLBACK TO sp6370;
RELEASE sp6370;
SELECT MIN(a) FROM T;
CREATE TEMP  VIEW IF NOT EXISTS v_T_7817 AS SELECT a FROM T;
SAVEPOINT sp6370;
ATTACH DATABASE ':memory:' AS aux75;
CREATE TABLE T (
  a INTEGER,
  b TEXT,
  c REAL
);
INSERT INTO T VALUES (replace(1, 'a', NULL),'a',1.25), (2,'b',-3.5), (3,'c',0.0);
SELECT * FROM T WHERE c < 2.0 ORDER BY c;
.check
PRAGMA empty_result_callbacks = FALSE;
PRAGMA empty_result_callbacks = YES;
PRAGMA temp_store = '2';
.save /dev/null
CREATE TABLE T (
  a TEXT,
  b REAL
);
INSERT INTO T VALUES ('a',-sign(2174953515348677960)), ('b',-200.5), ('c',9e999);
SELECT a,b,
LEAD(b,1) OVER (ORDER BY b DESC) AS c,
NTILE(2) OVER (ORDER BY b DESC) AS d FROM T;
CREATE TRIGGER IF NOT EXISTS trg_T_5117 AFTER INSERT ON T BEGIN INSERT INTO T(a) VALUES (NULL); END;
VACUUM main;
WITH RECURSIVE fib(a,b) AS (VALUES(1,1) UNION ALL SELECT b, a+b FROM fib WHERE b<1000) SELECT a FROM fib;
DROP TABLE IF EXISTS T;
DROP TRIGGER IF EXISTS T;
CREATE UNIQUE	 INDEX IF NOT EXISTS idx_T_8410 ON T(lower(a));
SELECT TOTAL(a) FROM T;
VACUUM;
INSERT INTO T VALUES (1, 'x') ON CONFLICT(a) DO UPDATE SET a = excluded.a, b = excluded.b;
ALTER TABLE T ADD COLUMN extra_6853 DOUBLE PRECISION DEFAULT 0;
ALTER TABLE T RENAME TO T_r3672;
INSERT  INTO T DEFAULT VALUES;
SELECT * FROM T;
DROP VIEW IF EXISTS T;
DETACH DATABASE aux75;
ROLLBACK TO sp6370;
RELEASE sp6370;
SELECT MIN(a) FROM T;
CREATE TEMP  VIEW IF NOT EXISTS v_T_7817 AS SELECT a FROM T;
SAVEPOINT sp6370;
ATTACH DATABASE ':memory:' AS aux75;
CREATE TABLE T (
  a INTEGER,
  b TEXT,
  c REAL
);
INSERT INTO T VALUES (replace(1, 'a', NULL),'a',1.25), (2,'b',-3.5), (3,'c',0.0);
SELECT * FROM T WHERE c < 2.0 ORDER BY c;
.check
PRAGMA empty_result_callbacks = FALSE;
PRAGMA empty_result_callbacks = YES;
PRAGMA temp_store = '2';
.save /dev/null
CREATE TABLE T (
  a TEXT,
  b REAL
);
INSERT INTO T VALUES ('a',-sign(2174953515348677960)), ('b',-200.5), ('c',9e999);
SELECT a,b,
LEAD(b,1) OVER (ORDER BY b DESC) AS c,
NTILE(2) OVER (ORDER BY b DESC) AS d FROM T;
CREATE TRIGGER IF NOT EXISTS trg_T_5117 AFTER INSERT ON T BEGIN INSERT INTO T(a) VALUES (NULL); END;
VACUUM main;
WITH RECURSIVE fib(a,b) AS (VALUES(1,1) UNION ALL SELECT b, a+b FROM fib WHERE b<1000) SELECT a FROM fib;
DROP TABLE IF EXISTS T;
DROP TRIGGER IF EXISTS T;
CREATE UNIQUE	 INDEX IF NOT EXISTS idx_T_8410 ON T(lower(a));
SELECT TOTAL(a) FROM T;
VACUUM;
INSERT INTO T VALUES (1, 'x') ON CONFLICT(a) DO UPDATE SET a = excluded.a, b = excluded.b;
ALTER TABLE T ADD COLUMN extra_6853 DOUBLE PRECISION DEFAULT 0;
ALTER TABLE T RENAME TO T_r3672;
INSERT  INTO T DEFAULT VALUES;
SELECT * FROM T;
DROP VIEW IF EXISTS T;
DETACH DATABASE aux75;
ROLLBACK TO sp6370;
RELEASE sp6370;
SELECT MIN(a) FROM T;
CREATE TEMP  VIEW IF NOT EXISTS v_T_7817 AS SELECT a FROM T;
SAVEPOINT sp6370;
ATTACH DATABASE ':memory:' AS aux75;
CREATE TABLE T (
  a INTEGER,
  b TEXT,
  c REAL
);
INSERT INTO T VALUES (replace(1, 'a', NULL),'a',1.25), (2,'b',-3.5), (3,'c',0.0);
SELECT * FROM T WHERE c < 2.0 ORDER BY c;
.check
PRAGMA empty_result_callbacks = FALSE;
PRAGMA empty_result_callbacks = YES;
PRAGMA temp_store = '2';
.save /dev/null
CREATE TABLE T (
  a TEXT,
  b REAL
);
INSERT INTO T VALUES ('a',-sign(2174953515348677960)), ('b',-200.5), ('c',9e999);
SELECT a,b,
LEAD(b,1) OVER (ORDER BY b DESC) AS c,
NTILE(2) OVER (ORDER BY b DESC) AS d FROM T;
CREATE TRIGGER IF NOT EXISTS trg_T_5117 AFTER INSERT ON T BEGIN INSERT INTO T(a) VALUES (NULL); END;
VACUUM main;
WITH RECURSIVE fib(a,b) AS (VALUES(1,1) UNION ALL SELECT b, a+b FROM fib WHERE b<1000) SELECT a FROM fib;
DROP TABLE IF EXISTS T;
DROP TRIGGER IF EXISTS T;
CREATE UNIQUE	 INDEX IF NOT EXISTS idx_T_8410 ON T(lower(a));
SELECT TOTAL(a) FROM T;
VACUUM;
INSERT INTO T VALUES (1, 'x') ON CONFLICT(a) DO UPDATE SET a = excluded.a, b = excluded.b;
ALTER TABLE T ADD COLUMN extra_6853 DOUBLE PRECISION DEFAULT 0;
ALTER TABLE T RENAME TO T_r3672;
INSERT  INTO T DEFAULT VALUES;
SELECT * FROM T;
DROP VIEW IF EXISTS T;
DETACH DATABASE aux75;
ROLLBACK TO sp6370;
RELEASE sp6370;
SELECT MIN(a) FROM T;
CREATE TEMP  VIEW IF NOT EXISTS v_T_7817 AS SELECT a FROM T;
SAVEPOINT sp6370;
ATTACH DATABASE ':memory:' AS aux75;
CREATE TABLE T (
  a INTEGER,
  b TEXT,
  c REAL
);
INSERT INTO T VALUES (replace(1, 'a', NULL),'a',1.25), (2,'b',-3.5), (3,'c',0.0);
SELECT * FROM T WHERE c < 2.0 ORDER BY c;
.check
PRAGMA empty_result_callbacks = FALSE;
PRAGMA empty_result_callbacks = YES;
PRAGMA temp_store = '2';
.save /dev/null
CREATE TABLE T (
  a TEXT,
  b REAL
);
INSERT INTO T VALUES ('a',-sign(2174953515348677960)), ('b',-200.5), ('c',9e999);
SELECT a,b,
LEAD(b,1) OVER (ORDER BY b DESC) AS c,
NTILE(2) OVER (ORDER BY b DESC) AS d FROM T;
CREATE TRIGGER IF NOT EXISTS trg_T_5117 AFTER INSERT ON T BEGIN INSERT INTO T(a) VALUES (NULL); END;
VACUUM main;
WITH RECURSIVE fib(a,b) AS (VALUES(1,1) UNION ALL SELECT b, a+b FROM fib WHERE b<1000) SELECT a FROM fib;
DROP TABLE IF EXISTS T;
DROP TRIGGER IF EXISTS T;
CREATE UNIQUE	 INDEX IF NOT EXISTS idx_T_8410 ON T(lower(a));
SELECT TOTAL(a) FROM T;
VACUUM;
INSERT INTO T VALUES (1, 'x') ON CONFLICT(a) DO UPDATE SET a = excluded.a, b = excluded.b;
ALTER TABLE T ADD COLUMN extra_6853 DOUBLE PRECISION DEFAULT 0;
ALTER TABLE T RENAME TO T_r3672;
INSERT  INTO T DEFAULT VALUES;
SELECT * FROM T;
DROP VIEW IF EXISTS T;
DETACH DATABASE aux75;
ROLLBACK TO sp6370;
RELEASE sp6370;
SELECT MIN(a) FROM T;
CREATE TEMP  VIEW IF NOT EXISTS v_T_7817 AS SELECT a FROM T;
SELECT COUNT(*) FILTER (WHERE a IS NOT NULL), SUM(rowid) FILTER (WHERE a > 0), COUNT(*) FILTER (WHERE 1=0), COUNT(*) FILTER (WHERE 1=1), COUNT(*) FILTER (WHERE NULL), AVG(a) FILTER (WHERE a > 0 AND a < 100), COUNT(*) FILTER (WHERE typeof(a) = "text") FROM T;
CREATE  INDEX IF NOT EXISTS idx_T_4205 ON T(b COLLATE NOCASE) WHERE b IS NOT NULL;
REINDEX T;
ALTER TABLE T DROP COLUMN a;
ALTER TABLE T ADD COLUMN extra_3861 NONE COLLATE NOCASE;
ALTER TABLE T DROP COLUMN a;
WITH RECURSIVE inf(x) AS (VALUES(1) UNION ALL SELECT x+1 FROM inf) SELECT * FROM inf LIMIT 10;
PRAGMA automatic_index = ON;
DROP INDEX IF EXISTS T;
REINDEX T;
ALTER TABLE T ADD COLUMN extra_3781 CHARACTER(20) DEFAULT CURRENT_TIMESTAMP;
ALTER TABLE T RENAME COLUMN b TO b_r1497;
SELECT COUNT(*) FROM T;
INSERT INTO T SELECT * FROM T;
INSERT INTO T SELECT * FROM T;
ALTER TABLE T RENAME TO T_r9608;
SELECT COUNT(*) FILTER (WHERE a IS NOT NULL), SUM(rowid) FILTER (WHERE a > 0), COUNT(*) FILTER (WHERE 1=0), COUNT(*) FILTER (WHERE 1=1), COUNT(*) FILTER (WHERE NULL), AVG(a) FILTER (WHERE a > 0 AND a < 100), COUNT(*) FILTER (WHERE typeof(a) = "text") FROM T;
WITH cte AS (SELECT * FROM T) SELECT * FROM cte;
ALTER TABLE T ADD COLUMN extra_9199 SMALLINT UNIQUE;
PRAGMA integrity_check;
CREATE TRIGGER IF NOT EXISTS trg_T_4282 AFTER UPDATE ON T FOR EACH ROW BEGIN SELECT RAISE(IGNORE); END;
CREATE TABLE T (
  a INTEGER,
  b REAL,
  c REAL
);
INSERT INTO T VALUES (1,1.5,10.0), (2,-2.5,20.0), (3,-9e999,30.0);
SELECT * FROM T WHERE b < 2.0 ORDER BY b;
SELECT * FROM T;
REINDEX;
CREATE UNIQUE  INDEX IF NOT EXISTS idx_T_924 ON T((b + 1)) WHERE b IS NOT NULL;
SELECT * FROM T AS a LEFT OUTER JOIN T AS b ON a.rowid = b.rowid;
DELETE FROM T WHERE 1;
INSERT INTO T VALUES (NULL, NULL, NULL);
INSERT OR REPLACE INTO T VALUES ('x', 5, 'x');
SELECT * FROM (SELECT * FROM T) AS sub;
UPDATE T SET b = CURRENT_TIMESTAMP WHERE b IS NOT NULL RETURNING *;
INSERT INTO T DEFAULT VALUES;
DROP TABLE IF EXISTS T;

SELECT COUNT(*) FROM T;
DETACH DATABASE aux60;
ALTER TABLE T RENAME TO T_r646;
SELECT * FROM T AS a RIGHT OUTER JOIN T AS b ON a.rowid = b.rowid;
SELECT b, (SELECT SUM(b) FROM T) AS sum_val FROM T;
ATTACH DATABASE ':memory:' AS aux60;
PRAGMA cell_size_check = YES;
.print
SAVEPOINT sp6370;
ATTACH DATABASE ':memory:' AS aux75;
CREATE TABLE T (
  a INT2,
  b TEXT,
  c REAL
);
INSERT INTO T VALUES (replace(CAST(x'e396' AS DATETIME), 'a', NULL),'a',-(-(-json_valid(9223372036854775808, 6)))), (2,'b',-3.5), (3,'c',0.0);
SELECT * FROM T WHERE NOT NOT c < 2.0 ORDER BY c;
.check
PRAGMA empty_result_callbacks = FALSE;
PRAGMA empty_result_callbacks = YES;
PRAGMA temp_store = '2';
.save /dev/null
CREATE TABLE T (
  a TEXT,
  b REAL
);
INSERT INTO T VALUES ('a',-sign(2174953515348677960)), ('b',-200.5), ('c',9e999);
SELECT a,b,
LEAD(b,1) OVER (ORDER BY b DESC) AS c,
NTILE(2) OVER (ORDER BY b DESC) AS d FROM T;
CREATE TRIGGER IF NOT EXISTS trg_T_5117 AFTER INSERT ON T BEGIN INSERT INTO T(a) VALUES (NULL); END;
VACUUM main;
WITH RECURSIVE fib(a,b) AS (VALUES(1,1) UNION ALL SELECT b, a+b FROM fib WHERE b<1000) SELECT a FROM fib;
DROP TABLE IF EXISTS T;
DROP TRIGGER IF EXISTS T;
CREATE UNIQUE	 INDEX IF NOT EXISTS idx_T_8410 ON T(lower(a));
SELECT TOTAL(a) FROM T;
VACUUM;
INSERT INTO T VALUES (1, 'x') ON CONFLICT(a) DO UPDATE SET a = excluded.a, b = excluded.b;
ALTER TABLE T ADD COLUMN extra_6853 DOUBLE PRECISION DEFAULT 0;
ALTER TABLE T RENAME TO T_r3672;
INSERT  INTO T DEFAULT VALUES;
SELECT * FROM T;
DROP VIEW IF EXISTS T;
DETACH DATABASE aux75;
ROLLBACK TO sp6370;
RELEASE sp6370;
SELECT MIN(a) FROM T;
CREATE TEMP  VIEW IF NOT EXISTS v_T_7817 AS SELECT a FROM T;
SAVEPOINT sp6370;
ATTACH DATABASE ':memory:' AS aux75;
CREATE TABLE T (
  a INTEGER,
  b TEXT,
  c REAL
);
INSERT INTO T VALUES (replace(1, 'a', NULL),'a',1.25), (2,'b',-3.5), (3,'c',0.0);
SELECT * FROM T WHERE c < 2.0 ORDER BY c;
.check
PRAGMA empty_result_callbacks = FALSE;
PRAGMA empty_result_callbacks = YES;
PRAGMA temp_store = '2';
.save /dev/null
CREATE TABLE T (
  a TEXT,
  b REAL
);
INSERT INTO T VALUES ('a',-sign(2174953515348677960)), ('b',-200.5), ('c',9e999);
SELECT a,b,
LEAD(b,1) OVER (ORDER BY b DESC) AS c,
NTILE(2) OVER (ORDER BY b DESC) AS d FROM T;
CREATE TRIGGER IF NOT EXISTS trg_T_5117 AFTER INSERT ON T BEGIN INSERT INTO T(a) VALUES (NULL); END;
VACUUM main;
WITH RECURSIVE fib(a,b) AS (VALUES(1,1) UNION ALL SELECT b, a+b FROM fib WHERE b<1000) SELECT a FROM fib;
DROP TABLE IF EXISTS T;
DROP TRIGGER IF EXISTS T;
CREATE UNIQUE	 INDEX IF NOT EXISTS idx_T_8410 ON T(lower(a));
SELECT TOTAL(a) FROM T;
VACUUM;
INSERT INTO T VALUES (1, 'x') ON CONFLICT(a) DO UPDATE SET a = excluded.a, b = excluded.b;
ALTER TABLE T ADD COLUMN extra_6853 DOUBLE PRECISION DEFAULT 0;
ALTER TABLE T RENAME TO T_r3672;
INSERT  INTO T DEFAULT VALUES;
SELECT * FROM T;
DROP VIEW IF EXISTS T;
DETACH DATABASE aux75;
ROLLBACK TO sp6370;
RELEASE sp6370;
SELECT MIN(a) FROM T;
CREATE TEMP  VIEW IF NOT EXISTS v_T_7817 AS SELECT a FROM T;
SAVEPOINT sp6370;
ATTACH DATABASE ':memory:' AS aux75;
CREATE TABLE T (
  a INTEGER,
  b TEXT,
  c REAL
);
INSERT INTO T VALUES (replace(1, 'a', NULL),'a',1.25), (2,'b',-3.5), (3,'c',0.0);
SELECT * FROM T WHERE c < 2.0 ORDER BY c;
.check
PRAGMA empty_result_callbacks = FALSE;
PRAGMA empty_result_callbacks = YES;
CREATE VIRTUAL TABLE t0 USING fts4("x", "y", "z");
DROP TABLE t0;
PRAGMA temp_store = '2';
.save /dev/null
CREATE TABLE T (
  a TEXT,
  b REAL
);
INSERT INTO T VALUES ('a',-sign(2174953515348677960)), ('b',-200.5), ('c',9e999);
SELECT a,b,
LEAD(b,1) OVER (ORDER BY b DESC) AS c,
NTILE(2) OVER (ORDER BY b DESC) AS d FROM T;
CREATE TRIGGER IF NOT EXISTS trg_T_5117 AFTER INSERT ON T BEGIN INSERT INTO T(a) VALUES (NULL); END;
VACUUM main;
WITH RECURSIVE fib(a,b) AS (VALUES(1,1) UNION ALL SELECT b, a+b FROM fib WHERE b<1000) SELECT a FROM fib;
DROP TABLE IF EXISTS T;
DROP TRIGGER IF EXISTS T;
CREATE UNIQUE	 INDEX IF NOT EXISTS idx_T_8410 ON T(lower(a));
SELECT TOTAL(a) FROM T;
VACUUM;
INSERT INTO T VALUES (1, 'x') ON CONFLICT(a) DO UPDATE SET a = excluded.a, b = excluded.b;
ALTER TABLE T ADD COLUMN extra_6853 DOUBLE PRECISION DEFAULT 0;
ALTER TABLE T RENAME TO T_r3672;
INSERT  INTO T DEFAULT VALUES;
SELECT * FROM T;
DROP VIEW IF EXISTS T;
DETACH DATABASE aux75;
ROLLBACK TO sp6370;
RELEASE sp6370;
SELECT MIN(a) FROM T;
CREATE TEMP  VIEW IF NOT EXISTS v_T_7817 AS SELECT a FROM T;
SAVEPOINT sp6370;
ATTACH DATABASE ':memory:' AS aux75;
CREATE TABLE T (
  a INTEGER,
  b TEXT,
  c REAL
);
INSERT INTO T VALUES (replace(1, 'a', NULL),'a',1.25), (2,'b',-3.5), (3,'c',0.0);
SELECT * FROM T WHERE c < 2.0 ORDER BY c;
.check
PRAGMA empty_result_callbacks = FALSE;
PRAGMA empty_result_callbacks = YES;
PRAGMA temp_store = '2';
.save /dev/null
CREATE TABLE T (
  a TEXT,
  b REAL
);
INSERT INTO T VALUES ('a',-sign(2174953515348677960)), ('b',-200.5), ('c',9e999);
SELECT a,b,
LEAD(b,1) OVER (ORDER BY b DESC) AS c,
NTILE(2) OVER (ORDER BY b DESC) AS d FROM T;
CREATE TRIGGER IF NOT EXISTS trg_T_5117 AFTER INSERT ON T BEGIN INSERT INTO T(a) VALUES (NULL); END;
VACUUM main;
WITH RECURSIVE fib(a,b) AS (VALUES(1,1) UNION ALL SELECT b, a+b FROM fib WHERE b<1000) SELECT a FROM fib;
DROP TABLE IF EXISTS T;
DROP TRIGGER IF EXISTS T;
CREATE UNIQUE	 INDEX IF NOT EXISTS idx_T_8410 ON T(lower(a));
SELECT TOTAL(a) FROM T;
VACUUM;
INSERT INTO T VALUES (1, 'x') ON CONFLICT(a) DO UPDATE SET a = excluded.a, b = excluded.b;
ALTER TABLE T ADD COLUMN extra_6853 DOUBLE PRECISION DEFAULT 0;
ALTER TABLE T RENAME TO T_r3672;
INSERT  INTO T DEFAULT VALUES;
SELECT * FROM T;
DROP VIEW IF EXISTS T;
DETACH DATABASE aux75;
ROLLBACK TO sp6370;
RELEASE sp6370;
SELECT MIN(a) FROM T;
CREATE TEMP  VIEW IF NOT EXISTS v_T_7817 AS SELECT a FROM T;
SAVEPOINT sp6370;
ATTACH DATABASE ':memory:' AS aux75;
CREATE TABLE T (
  a INTEGER,
  b TEXT,
  c REAL
);
INSERT INTO T VALUES (replace(1, 'a', NULL),'a',1.25), (2,'b',-3.5), (3,'c',0.0);
SELECT * FROM T WHERE c < 2.0 ORDER BY c;
.check
PRAGMA empty_result_callbacks = FALSE;
PRAGMA empty_result_callbacks = YES;
PRAGMA temp_store = '2';
.save /dev/null
CREATE TABLE T (
  a TEXT,
  b REAL
);
INSERT INTO T VALUES ('a',-sign(2174953515348677960)), ('b',-200.5), ('c',9e999);
SELECT a,b,
LEAD(b,1) OVER (ORDER BY b DESC) AS c,
NTILE(2) OVER (ORDER BY b DESC) AS d FROM T;
CREATE TRIGGER IF NOT EXISTS trg_T_5117 AFTER INSERT ON T BEGIN INSERT INTO T(a) VALUES (NULL); END;
VACUUM main;
WITH RECURSIVE fib(a,b) AS (VALUES(1,1) UNION ALL SELECT b, a+b FROM fib WHERE b<1000) SELECT a FROM fib;
DROP TABLE IF EXISTS T;
DROP TRIGGER IF EXISTS T;
CREATE UNIQUE	 INDEX IF NOT EXISTS idx_T_8410 ON T(lower(a));
SELECT TOTAL(a) FROM T;
VACUUM;
INSERT INTO T VALUES (1, 'x') ON CONFLICT(a) DO UPDATE SET a = excluded.a, b = excluded.b;
ALTER TABLE T ADD COLUMN extra_6853 DOUBLE PRECISION DEFAULT 0;
ALTER TABLE T RENAME TO T_r3672;
INSERT  INTO T DEFAULT VALUES;
SELECT * FROM T;
DROP VIEW IF EXISTS T;
DETACH DATABASE aux75;
ROLLBACK TO sp6370;
RELEASE sp6370;
SELECT MIN(a) FROM T;
CREATE TEMP  VIEW IF NOT EXISTS v_T_7817 AS SELECT a FROM T;
SAVEPOINT sp6370;
ATTACH DATABASE ':memory:' AS aux75;
CREATE TABLE T (
  a INTEGER,
  b TEXT,
  c REAL
);
INSERT INTO T VALUES (replace(1, 'a', NULL),'a',1.25), (2,'b',-3.5), (3,'c',0.0);
SELECT * FROM T WHERE c < 2.0 ORDER BY c;
.check
PRAGMA empty_result_callbacks = FALSE;
PRAGMA empty_result_callbacks = YES;
PRAGMA temp_store = '2';
.save /dev/null
CREATE TABLE T (
  a TEXT,
  b REAL
);
INSERT INTO T VALUES ('a',-sign(2174953515348677960)), ('b',-200.5), ('c',9e999);
SELECT a,b,
LEAD(b,1) OVER (ORDER BY b DESC) AS c,
NTILE(2) OVER (ORDER BY b DESC) AS d FROM T;
CREATE TRIGGER IF NOT EXISTS trg_T_5117 AFTER INSERT ON T BEGIN INSERT INTO T(a) VALUES (NULL); END;
VACUUM main;
WITH RECURSIVE fib(a,b) AS (VALUES(1,1) UNION ALL SELECT b, a+b FROM fib WHERE b<1000) SELECT a FROM fib;
DROP TABLE IF EXISTS T;
DROP TRIGGER IF EXISTS T;
CREATE UNIQUE	 INDEX IF NOT EXISTS idx_T_8410 ON T(lower(a));
SELECT TOTAL(a) FROM T;
VACUUM;
INSERT INTO T VALUES (1, 'x') ON CONFLICT(a) DO UPDATE SET a = excluded.a, b = excluded.b;
ALTER TABLE T ADD COLUMN extra_6853 DOUBLE PRECISION DEFAULT 0;
ALTER TABLE T RENAME TO T_r3672;
INSERT  INTO T DEFAULT VALUES;
SELECT * FROM T;
DROP VIEW IF EXISTS T;
DETACH DATABASE aux75;
ROLLBACK TO sp6370;
RELEASE sp6370;
SELECT MIN(a) FROM T;
CREATE TEMP  VIEW IF NOT EXISTS v_T_7817 AS SELECT a FROM T;
SAVEPOINT sp6370;
ATTACH DATABASE ':memory:' AS aux75;
CREATE TABLE T (
  a INTEGER,
  b TEXT,
  c REAL
);
INSERT INTO T VALUES (replace(1, 'a', NULL),'a',1.25), (2,'b',-3.5), (3,'c',0.0);
SELECT * FROM T WHERE c < 2.0 ORDER BY c;
.check
PRAGMA empty_result_callbacks = FALSE;
PRAGMA empty_result_callbacks = YES;
PRAGMA temp_store = '2';
.save /dev/null
CREATE TABLE T (
  a TEXT,
  b REAL
);
INSERT INTO T VALUES ('a',-sign(2174953515348677960)), ('b',-200.5), ('c',9e999);
SELECT a,b,
LEAD(b,1) OVER (ORDER BY b DESC) AS c,
NTILE(2) OVER (ORDER BY b DESC) AS d FROM T;
CREATE TRIGGER IF NOT EXISTS trg_T_5117 AFTER INSERT ON T BEGIN INSERT INTO T(a) VALUES (NULL); END;
VACUUM main;
WITH RECURSIVE fib(a,b) AS (VALUES(1,1) UNION ALL SELECT b, a+b FROM fib WHERE b<1000) SELECT a FROM fib;
DROP TABLE IF EXISTS T;
DROP TRIGGER IF EXISTS T;
CREATE UNIQUE	 INDEX IF NOT EXISTS idx_T_8410 ON T(lower(a));
SELECT TOTAL(a) FROM T;
VACUUM;
INSERT INTO T VALUES (1, 'x') ON CONFLICT(a) DO UPDATE SET a = excluded.a, b = excluded.b;
ALTER TABLE T ADD COLUMN extra_6853 DOUBLE PRECISION DEFAULT 0;
ALTER TABLE T RENAME TO T_r3672;
INSERT  INTO T DEFAULT VALUES;
SELECT * FROM T;
DROP VIEW IF EXISTS T;
DETACH DATABASE aux75;
ROLLBACK TO sp6370;
RELEASE sp6370;
SELECT MIN(a) FROM T;
CREATE TEMP  VIEW IF NOT EXISTS v_T_7817 AS SELECT a FROM T;
SAVEPOINT sp6370;
ATTACH DATABASE ':memory:' AS aux75;
CREATE TABLE T (
  a INTEGER,
  b TEXT,
  c REAL
);
INSERT INTO T VALUES (replace(1, 'a', NULL),'a',1.25), (2,'b',-3.5), (3,'c',0.0);
SELECT * FROM T WHERE c < 2.0 ORDER BY c;
.check
PRAGMA empty_result_callbacks = FALSE;
PRAGMA empty_result_callbacks = YES;
PRAGMA temp_store = '2';
.save /dev/null
CREATE TABLE T (
  a TEXT,
  b REAL
);
INSERT INTO T VALUES ('a',-sign(2174953515348677960)), ('b',-200.5), ('c',9e999);
SELECT a,b,
LEAD(b,1) OVER (ORDER BY b DESC) AS c,
NTILE(2) OVER (ORDER BY b DESC) AS d FROM T;
CREATE TRIGGER IF NOT EXISTS trg_T_5117 AFTER INSERT ON T BEGIN INSERT INTO T(a) VALUES (NULL); END;
VACUUM main;
WITH RECURSIVE fib(a,b) AS (VALUES(1,1) UNION ALL SELECT b, a+b FROM fib WHERE b<1000) SELECT a FROM fib;
DROP TABLE IF EXISTS T;
DROP TRIGGER IF EXISTS T;
CREATE UNIQUE	 INDEX IF NOT EXISTS idx_T_8410 ON T(lower(a));
SELECT TOTAL(a) FROM T;
VACUUM;
INSERT INTO T VALUES (1, 'x') ON CONFLICT(a) DO UPDATE SET a = excluded.a, b = excluded.b;
ALTER TABLE T ADD COLUMN extra_6853 DOUBLE PRECISION DEFAULT 0;
ALTER TABLE T RENAME TO T_r3672;
INSERT  INTO T DEFAULT VALUES;
SELECT * FROM T;
DROP VIEW IF EXISTS T;
DETACH DATABASE aux75;
ROLLBACK TO sp6370;
RELEASE sp6370;
SELECT MIN(a) FROM T;
CREATE TEMP  VIEW IF NOT EXISTS v_T_7817 AS SELECT a FROM T;
SELECT COUNT(*) FILTER (WHERE a IS NOT NULL), SUM(rowid) FILTER (WHERE a > 0), COUNT(*) FILTER (WHERE 1=0), COUNT(*) FILTER (WHERE 1=1), COUNT(*) FILTER (WHERE NULL), AVG(a) FILTER (WHERE a > 0 AND a < 100), COUNT(*) FILTER (WHERE typeof(a) = "text") FROM T;
CREATE  INDEX IF NOT EXISTS idx_T_4205 ON T(b COLLATE NOCASE) WHERE b IS NOT NULL;
REINDEX T;
ALTER TABLE T DROP COLUMN a;
ALTER TABLE T ADD COLUMN extra_3861 NONE COLLATE NOCASE;
ALTER TABLE T DROP COLUMN a;
WITH RECURSIVE inf(x) AS (VALUES(1) UNION ALL SELECT x+1 FROM inf) SELECT * FROM inf LIMIT 10;
PRAGMA automatic_index = ON;
DROP INDEX IF EXISTS T;
REINDEX T;
ALTER TABLE T ADD COLUMN extra_3781 CHARACTER(20) DEFAULT CURRENT_TIMESTAMP;
ALTER TABLE T RENAME COLUMN b TO b_r1497;
SELECT COUNT(*) FROM T;
INSERT INTO T SELECT * FROM T;
INSERT INTO T SELECT * FROM T;
ALTER TABLE T RENAME TO T_r9608;
SELECT COUNT(*) FILTER (WHERE a IS NOT NULL), SUM(rowid) FILTER (WHERE a > 0), COUNT(*) FILTER (WHERE 1=0), COUNT(*) FILTER (WHERE 1=1), COUNT(*) FILTER (WHERE NULL), AVG(a) FILTER (WHERE a > 0 AND a < 100), COUNT(*) FILTER (WHERE typeof(a) = "text") FROM T;
WITH cte AS (SELECT * FROM T) SELECT * FROM cte;
ALTER TABLE T ADD COLUMN extra_9199 SMALLINT UNIQUE;
PRAGMA integrity_check;
CREATE TRIGGER IF NOT EXISTS trg_T_4282 AFTER UPDATE ON T FOR EACH ROW BEGIN SELECT RAISE(IGNORE); END;
CREATE TABLE T (
  a INTEGER,
  b REAL,
  c REAL
);
INSERT INTO T VALUES (1,1.5,10.0), (2,-2.5,20.0), (3,-9e999,30.0);
SELECT * FROM T WHERE b < 2.0 ORDER BY b;
SELECT * FROM T;
REINDEX;
CREATE UNIQUE  INDEX IF NOT EXISTS idx_T_924 ON T((b + 1)) WHERE b IS NOT NULL;
SELECT * FROM T AS a LEFT OUTER JOIN T AS b ON a.rowid = b.rowid;
DELETE FROM T WHERE 1;
INSERT INTO T VALUES (NULL, NULL, NULL);
INSERT OR REPLACE INTO T VALUES ('x', 5, 'x');
SELECT * FROM (SELECT * FROM T) AS sub;
UPDATE T SET b = CURRENT_TIMESTAMP WHERE b IS NOT NULL RETURNING *;
INSERT INTO T DEFAULT VALUES;
DROP TABLE IF EXISTS T;

SELECT COUNT(*) FROM T;
DETACH DATABASE aux60;
ALTER TABLE T RENAME TO T_r646;
SELECT * FROM T AS a RIGHT OUTER JOIN T AS b ON a.rowid = b.rowid;
SELECT b, (SELECT SUM(b) FROM T) AS sum_val FROM T;

INSERT OR FAIL INTO T VALUES ('x', '', 'x');
INSERT INTO T VALUES (NULL, NULL, NULL);
CREATE  INDEX IF NOT EXISTS idx_T_2897 ON T((b + 1)) WHERE b > 0;
SELECT * FROM T AS a INNER JOIN T AS b ON a.rowid = b.rowid;
CREATE TEMPORARY  VIEW IF NOT EXISTS v_T_9465 AS SELECT b FROM T;
CREATE  VIEW IF NOT EXISTS v_T_318 AS SELECT c FROM T;
INSERT INTO T SELECT * FROM T;
DETACH DATABASE aux67;
PRAGMA incremental_vacuum;
INSERT INTO T VALUES (NULL, 1, 1) ON CONFLICT(a) DO UPDATE SET a = excluded.a, b = excluded.b, c = excluded.c;
DETACH DATABASE aux55;
CREATE TRIGGER IF NOT EXISTS trg_T_2853 AFTER INSERT ON T BEGIN SELECT RAISE(ROLLBACK, 'rb'); END;
INSERT OR ABORT INTO T VALUES ('', 4, '');
WITH RECURSIVE cnt(x) AS (VALUES(1) UNION ALL SELECT x+1 FROM cnt WHERE x<49) SELECT SUM(x) FROM cnt;
SELECT * FROM T;
INSERT OR REPLACE INTO T VALUES ('', -7, 'x');
WITH cte AS (SELECT * FROM T) SELECT * FROM cte;
CREATE TRIGGER IF NOT EXISTS trg_T_57 AFTER DELETE ON T BEGIN SELECT RAISE(ABORT, 'abort'); END;
CREATE TRIGGER IF NOT EXISTS trg_T_1186 AFTER DELETE ON T FOR EACH ROW BEGIN SELECT RAISE(IGNORE); END;
VACUUM main;
SELECT GROUP_CONCAT(a, '.') OVER (PARTITION BY a ORDER BY a) FROM T;
INSERT INTO T VALUES (1, 1, 1) ON CONFLICT(a) DO UPDATE SET a = excluded.a, b = excluded.b, c = excluded.c;
PRAGMA foreign_keys = FALSE;
CREATE UNIQUE  INDEX IF NOT EXISTS idx_T_823 ON T((c + 1));
UPDATE T SET c = NULL WHERE 1;
ANALYZE;
ANALYZE T;
```

## Actual output

```sql
a
c
1
```

## Expectation

```sql

```

## Flag

```
-bail
```

