## 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
.timeout -1
.filectrl main TRUNCATE 10
ATTACH DATABASE ':memory:' AS aux74;
PRAGMA optimize;
PRAGMA short_column_names;
PRAGMA temp_store = 'MEMORY';
BEGIN TRANSACTION;
PRAGMA read_uncommitted = OFF;
ATTACH DATABASE ':memory:' AS aux27;
SAVEPOINT sp4771;
PRAGMA vdbe_trace == YES;
.check
BEGIN IMMEDIATE TRANSACTION;
.LImIt
CREATE TABLE main.`T1`	(
  a UNSIGNED BIG NCHAR((x'7e9fc8fd00c2e39d1c' - 0)),
  b UNSIGNED BIG INT
);
CREATE TABLE T2 (
  a INTEGER,
  b TEXT
);
INSERT INTO T1 VALUES (-unlikely(x''),'a'),(substr(octet_length(jsonb_group_array(json_array_length(rtrim('xxxhelloxxx', 'x')))), jsonb_insert('0', '$.key', 1)),'b');
INSERT INTO T2 VALUES (1,'c'),(1,'d');
SELECT T1.b,
(
  SELECT GROUP_CONCAT(b,',')
  FROM T2
  WHERE T2.a=T1.a
) AS c
FROM T1;
ROLLBACK;
ALTER TABLE T1 RENAME COLUMN a TO a_r2518;
ALTER TABLE T1 RENAME TO T1_r1276;
SELECT * FROM T2 WHERE b IN (SELECT b FROM T2 WHERE ROW_NUMBER() OVER (ORDER BY b) = 1);
CREATE TABLE T (
  a INTEGER,
  b TEXT,
  c REAL,
  d REAL
);
INSERT INTO T VALUES (1,'a',40.5,-70.0), (2,'b',-10.25,20.5), (3,'c',9e999,-9e999);
SELECT b FROM T WHERE ABS(c) > 5 AND ABS(d) > 5;
SELECT * FROM T1 WHERE EXISTS (SELECT 1 FROM T1 WHERE +b = NULL);
CREATE TABLE T (
  A VARCHAR(10) PRIMARY KEY,
  B VARCHAR(15),
  C BIGINT,
  UNIQUE (B, C)
);
INSERT INTO T VALUES ('a', 'p', -9223372036854775808);
INSERT INTO T VALUES ('b', 'q', 4000);
INSERT INTO T VALUES ('c', 'r', 1700);
INSERT INTO T VALUES ('d', 'r', 9223372036854775807);
INSERT INTO T VALUES ('e', 's', 0);
SELECT A, C FROM T WHERE +C > 1200 AND C < 9999999999 ORDER BY C;
SELECT STRING_AGG(C, '|') FROM T;
DROP VIEW IF EXISTS T1;
ROLLBACK TRANSACTION TO SAVEPOINT sp4771;
RELEASE SAVEPOINT sp4771;
ALTER TABLE T1 RENAME COLUMN a TO a_r3621;
SELECT a FROM T2 UNION SELECT a FROM (SELECT * FROM T2) AS sub;
SELECT LEAD(a, 2, a) OVER (ORDER BY a GROUPS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) FROM T2;
ANALYZE T;
VACUUM main;
SELECT COUNT(*) FILTER (WHERE b IS NOT NULL), SUM(rowid) FILTER (WHERE b > 0), COUNT(*) FILTER (WHERE 1=0), COUNT(*) FILTER (WHERE 1=1), COUNT(*) FILTER (WHERE NULL), AVG(b)
FILTER (WHERE b > 0 AND b < 100), COUNT(*) FILTER (WHERE typeof(b) = "text") FROM T2;
SELECT * FROM T2 WHERE a IN (SELECT a FROM T2 WHERE a IS NULL);
UPDATE T2 SET a = NULL;
CREATE TEMPORARY  VIEW IF NOT EXISTS v_T_8169 AS SELECT A FROM T;
DETACH DATABASE aux27;
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 /* STRING_AGG */ (WHERE a > 0 AND a < 100), COUNT(*) FILTER (WHERE typeof(a) = "text") FROM T1;
ANALYZE;
REINDEX;
DELETE FROM T WHERE 0;
SELECT * FROM T1 WHERE b = (SELECT MAX(b) FROM T1 WHERE b = (SELECT MAX(b) FROM T1));
SELECT AVG(b) FROM T1;
SELECT COUNT(*) FROM T2;
SELECT LAG(C, 1) OVER (ORDER BY C GROUPS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) FROM T;
INSERT INTO T2 SELECT * FROM T2;
DELETE FROM T1 WHERE 1;
INSERT INTO T VALUES (NULL, NULL, NULL) ON CONFLICT(A) DO UPDATE SET A = excluded.A, B = excluded.B, C = excluded.C;
ALTER TABLE T1 RENAME COLUMN a TO a_r8414;

SELECT COUNT(*) FROM T1;
CREATE TEMP  VIEW IF NOT EXISTS v_T_5315 AS SELECT A FROM T;
COMMIT TRANSACTION;
VACUUM;
INSERT OR ABORT INTO T VALUES (0, 0, 'x');
PRAGMA temp_store = 'MEMORY';
BEGIN TRANSACTION;
PRAGMA read_uncommitted = OFF;
ATTACH DATABASE ':memory:' AS aux27;
SAVEPOINT sp4771;
PRAGMA vdbe_trace == YES;
.check
BEGIN IMMEDIATE TRANSACTION;
.LImIt
CREATE TABLE T1	(
  a INTEGER,
  b TEXT
);
CREATE TABLE T2 (
  a INTEGER,
  b TEXT
);
INSERT INTO T1 VALUES (-unlikely(x''),'a'),(substr(octet_length(jsonb_group_array(json_array_length(rtrim('xxxhelloxxx', 'x')))), jsonb_insert('0', '$.key', 1)),'b');
INSERT INTO T2 VALUES (1,'c'),(1,'d');
SELECT T1.b,
(
  SELECT GROUP_CONCAT(b,',')
  FROM T2
  WHERE T2.a=T1.a
) AS c
FROM T1;
ROLLBACK;
ALTER TABLE T1 RENAME COLUMN a TO a_r2518;
ALTER TABLE T1 RENAME TO T1_r1276;
SELECT * FROM T2 WHERE b IN (SELECT b FROM T2 WHERE ROW_NUMBER() OVER (ORDER BY b) = 1);
CREATE TABLE T (
  a INTEGER,
  b TEXT,
  c REAL,
  d REAL
);
INSERT INTO T VALUES (1,'a',40.5,-70.0), (2,'b',-10.25,20.5), (3,'c',9e999,-9e999);
SELECT b FROM T WHERE ABS(c) > 5 AND ABS(d) > 5;
SELECT * FROM T1 WHERE EXISTS (SELECT 1 FROM T1 WHERE b = NULL);
CREATE TABLE T (
  A VARCHAR(10) PRIMARY KEY,
  B VARCHAR(15),
  C BIGINT,
  UNIQUE (B, C)
);
INSERT INTO T VALUES ('a', 'p', -9223372036854775808);
INSERT INTO T VALUES ('b', 'q', 4000);
INSERT INTO T VALUES ('c', 'r', 1700);
INSERT INTO T VALUES ('d', 'r', 9223372036854775807);
INSERT INTO T VALUES ('e', 's', 0);
SELECT A, C FROM T WHERE C > 1200 AND C < 9999999999 ORDER BY C;
SELECT STRING_AGG(C, '|') FROM T;
DROP VIEW IF EXISTS T1;
ROLLBACK TRANSACTION TO SAVEPOINT sp4771;
RELEASE SAVEPOINT sp4771;
ALTER TABLE T1 RENAME COLUMN a TO a_r3621;
SELECT a FROM T2 UNION SELECT a FROM (SELECT * FROM T2) AS sub;
SELECT LEAD(a, 2, a) OVER (ORDER BY a GROUPS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) FROM T2;
ANALYZE T;
VACUUM main;
SELECT COUNT(*) FILTER (WHERE b IS NOT NULL), SUM(rowid) FILTER (WHERE b > 0), COUNT(*) FILTER (WHERE 1=0), COUNT(*) FILTER (WHERE 1=1), COUNT(*) FILTER (WHERE NULL), AVG(b)
FILTER (WHERE b > 0 AND b < 100), COUNT(*) FILTER (WHERE typeof(b) = "text") FROM T2;
SELECT * FROM T2 WHERE a IN (SELECT a FROM T2 WHERE a IS NULL);
UPDATE T2 SET a = NULL;
CREATE TEMPORARY  VIEW IF NOT EXISTS v_T_8169 AS SELECT A FROM T;
DETACH DATABASE aux27;
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 /* STRING_AGG */ (WHERE a > 0 AND a < 100), COUNT(*) FILTER (WHERE typeof(a) = "text") FROM T1;
ANALYZE;
REINDEX;
DELETE FROM T WHERE 0;
SELECT * FROM T1 WHERE b = (SELECT MAX(b) FROM T1 WHERE b = (SELECT MAX(b) FROM T1));
SELECT AVG(b) FROM T1;
SELECT COUNT(*) FROM T2;
SELECT LAG(C, 1) OVER (ORDER BY C GROUPS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) FROM T;
INSERT INTO T2 SELECT * FROM T2;
DELETE FROM T1 WHERE 1;
INSERT INTO T VALUES (NULL, NULL, NULL) ON CONFLICT(A) DO UPDATE SET A = excluded.A, B = excluded.B, C = excluded.C;
ALTER TABLE T1 RENAME COLUMN a TO a_r8414;

SELECT COUNT(*) FROM T1;
CREATE TEMP  VIEW IF NOT EXISTS v_T_5315 AS SELECT A FROM T;
COMMIT TRANSACTION;
VACUUM;
INSERT OR ABORT INTO T VALUES (0, 0, 'x');
PRAGMA temp_store = 'MEMORY';
BEGIN TRANSACTION;
PRAGMA read_uncommitted = OFF;
ATTACH DATABASE ':memory:' AS aux27;
SAVEPOINT sp4771;
PRAGMA vdbe_trace == YES;
.check
BEGIN IMMEDIATE TRANSACTION;
.LImIt
CREATE TABLE T1	(
  a INTEGER,
  b TEXT
);
CREATE TABLE T2 (
  a INTEGER,
  b TEXT
);
INSERT INTO T1 VALUES (-unlikely(x''),'a'),(substr(octet_length(jsonb_group_array(json_array_length(rtrim('xxxhelloxxx', 'x')))), jsonb_insert('0', '$.key', 1)),'b');
INSERT INTO T2 VALUES (1,'c'),(1,'d');
SELECT T1.b,
(
  SELECT GROUP_CONCAT(b,',')
  FROM T2
  WHERE T2.a=T1.a
) AS c
FROM T1;
ROLLBACK;
ALTER TABLE T1 RENAME COLUMN a TO a_r2518;
ALTER TABLE T1 RENAME TO T1_r1276;
SELECT * FROM T2 WHERE b IN (SELECT b FROM T2 WHERE ROW_NUMBER() OVER (ORDER BY b) = 1);
CREATE TABLE T (
  a INTEGER,
  b TEXT,
  c REAL,
  d REAL
);
INSERT INTO T VALUES (1,'a',40.5,-70.0), (2,'b',-10.25,20.5), (3,'c',9e999,-9e999);
SELECT b FROM T WHERE ABS(c) > 5 AND ABS(d) > 5;
SELECT * FROM T1 WHERE EXISTS (SELECT 1 FROM T1 WHERE b = NULL);
CREATE TABLE T (
  A VARCHAR(10) PRIMARY KEY,
  B VARCHAR(15),
  C BIGINT,
  UNIQUE (B, C)
);
INSERT INTO T VALUES ('a', 'p', -9223372036854775808);
INSERT INTO T VALUES ('b', 'q', 4000);
INSERT INTO T VALUES ('c', 'r', 1700);
INSERT INTO T VALUES ('d', 'r', 9223372036854775807);
INSERT INTO T VALUES ('e', 's', 0);
SELECT A, C FROM T WHERE C > 1200 AND C < 9999999999 ORDER BY C;
SELECT STRING_AGG(C, '|') FROM T;
DROP VIEW IF EXISTS T1;
ROLLBACK TRANSACTION TO SAVEPOINT sp4771;
RELEASE SAVEPOINT sp4771;
ALTER TABLE T1 RENAME COLUMN a TO a_r3621;
SELECT a FROM T2 UNION SELECT a FROM (SELECT * FROM T2) AS sub;
SELECT LEAD(a, 2, a) OVER (ORDER BY a GROUPS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) FROM T2;
ANALYZE T;
VACUUM main;
SELECT COUNT(*) FILTER (WHERE b IS NOT NULL), SUM(rowid) FILTER (WHERE b > 0), COUNT(*) FILTER (WHERE 1=0), COUNT(*) FILTER (WHERE 1=1), COUNT(*) FILTER (WHERE NULL), AVG(b)
FILTER (WHERE b > 0 AND b < 100), COUNT(*) FILTER (WHERE typeof(b) = "text") FROM T2;
SELECT * FROM T2 WHERE a IN (SELECT a FROM T2 WHERE a IS NULL);
UPDATE T2 SET a = NULL;
CREATE TEMPORARY  VIEW IF NOT EXISTS v_T_8169 AS SELECT A FROM T;
DETACH DATABASE aux27;
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 /* STRING_AGG */ (WHERE a > 0 AND a < 100), COUNT(*) FILTER (WHERE typeof(a) = "text") FROM T1;
ANALYZE;
REINDEX;
DELETE FROM T WHERE 0;
SELECT * FROM T1 WHERE b = (SELECT MAX(b) FROM T1 WHERE b = (SELECT MAX(b) FROM T1));
SELECT AVG(b) FROM T1;
SELECT COUNT(*) FROM T2;
SELECT LAG(C, 1) OVER (ORDER BY C GROUPS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) FROM T;
INSERT INTO T2 SELECT * FROM T2;
DELETE FROM T1 WHERE 1;
INSERT INTO T VALUES (NULL, NULL, NULL) ON CONFLICT(A) DO UPDATE SET A = excluded.A, B = excluded.B, C = excluded.C;
ALTER TABLE T1 RENAME COLUMN a TO a_r8414;

SELECT COUNT(*) FROM T1;
CREATE TEMP  VIEW IF NOT EXISTS v_T_5315 AS SELECT A FROM T;
COMMIT TRANSACTION;
VACUUM;
INSERT OR ABORT INTO T VALUES (0, 0, 'x');
PRAGMA temp_store = 'MEMORY';
BEGIN TRANSACTION;
PRAGMA read_uncommitted = OFF;
ATTACH DATABASE ':memory:' AS aux27;
SAVEPOINT sp4771;
PRAGMA vdbe_trace == YES;
.check
BEGIN IMMEDIATE TRANSACTION;
.LImIt
CREATE TABLE T1	(
  a INTEGER,
  b TEXT
);
CREATE TABLE T2 (
  a INTEGER,
  b TEXT
);
INSERT INTO T1 VALUES (-unlikely(x''),'a'),(substr(octet_length(jsonb_group_array(json_array_length(rtrim('xxxhelloxxx', 'x')))), jsonb_insert('0', '$.key', 1)),'b');
INSERT INTO T2 VALUES (1,'c'),(1,'d');
SELECT T1.b,
(
  SELECT GROUP_CONCAT(b,',')
  FROM T2
  WHERE T2.a=T1.a
) AS c
FROM T1;
ROLLBACK;
ALTER TABLE T1 RENAME COLUMN a TO a_r2518;
ALTER TABLE T1 RENAME TO T1_r1276;
SELECT * FROM T2 WHERE b IN (SELECT b FROM T2 WHERE ROW_NUMBER() OVER (ORDER BY b) = 1);
CREATE TABLE T (
  a INTEGER,
  b TEXT,
  c REAL,
  d REAL
);
INSERT INTO T VALUES (1,'a',40.5,-70.0), (2,'b',-10.25,20.5), (3,'c',9e999,-9e999);
SELECT b FROM T WHERE ABS(c) > 5 AND ABS(d) > 5;
SELECT * FROM T1 WHERE EXISTS (SELECT 1 FROM T1 WHERE b = NULL);
CREATE TABLE T (
  A VARCHAR(10) PRIMARY KEY,
  B VARCHAR(15),
  C BIGINT,
  UNIQUE (B, C)
);
INSERT INTO T VALUES ('a', 'p', -9223372036854775808);
INSERT INTO T VALUES ('b', 'q', 4000);
INSERT INTO T VALUES ('c', 'r', 1700);
INSERT INTO T VALUES ('d', 'r', 9223372036854775807);
INSERT INTO T VALUES ('e', 's', 0);
SELECT A, C FROM T WHERE C > 1200 AND C < 9999999999 ORDER BY C;
SELECT STRING_AGG(C, '|') FROM T;
DROP VIEW IF EXISTS T1;
ROLLBACK TRANSACTION TO SAVEPOINT sp4771;
RELEASE SAVEPOINT sp4771;
ALTER TABLE T1 RENAME COLUMN a TO a_r3621;
SELECT a FROM T2 UNION SELECT a FROM (SELECT * FROM T2) AS sub;
SELECT LEAD(a, 2, a) OVER (ORDER BY a GROUPS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) FROM T2;
ANALYZE T;
VACUUM main;
SELECT COUNT(*) FILTER (WHERE b IS NOT NULL), SUM(rowid) FILTER (WHERE b > 0), COUNT(*) FILTER (WHERE 1=0), COUNT(*) FILTER (WHERE 1=1), COUNT(*) FILTER (WHERE NULL), AVG(b)
FILTER (WHERE b > 0 AND b < 100), COUNT(*) FILTER (WHERE typeof(b) = "text") FROM T2;
SELECT * FROM T2 WHERE a IN (SELECT a FROM T2 WHERE a IS NULL);
UPDATE T2 SET a = NULL;
CREATE TEMPORARY  VIEW IF NOT EXISTS v_T_8169 AS SELECT A FROM T;
DETACH DATABASE aux27;
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 /* STRING_AGG */ (WHERE a > 0 AND a < 100), COUNT(*) FILTER (WHERE typeof(a) = "text") FROM T1;
ANALYZE;
REINDEX;
DELETE FROM T WHERE 0;
SELECT * FROM T1 WHERE b = (SELECT MAX(b) FROM T1 WHERE b = (SELECT MAX(b) FROM T1));
SELECT AVG(b) FROM T1;
SELECT COUNT(*) FROM T2;
SELECT LAG(C, 1) OVER (ORDER BY C GROUPS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) FROM T;
INSERT INTO T2 SELECT * FROM T2;
DELETE FROM T1 WHERE 1;
INSERT INTO T VALUES (NULL, NULL, NULL) ON CONFLICT(A) DO UPDATE SET A = excluded.A, B = excluded.B, C = excluded.C;
ALTER TABLE T1 RENAME COLUMN a TO a_r8414;

SELECT COUNT(*) FROM T1;
CREATE TEMP  VIEW IF NOT EXISTS v_T_5315 AS SELECT A FROM T;
COMMIT TRANSACTION;
VACUUM;
INSERT OR ABORT INTO T VALUES (0, 0, 'x');
PRAGMA temp_store = 'MEMORY';
BEGIN TRANSACTION;
PRAGMA read_uncommitted = OFF;
ATTACH DATABASE ':memory:' AS aux27;
SAVEPOINT sp4771;
PRAGMA vdbe_trace == YES;
.check
BEGIN IMMEDIATE TRANSACTION;
.LImIt
CREATE TABLE T1	(
  a INTEGER,
  b TEXT
);
CREATE TABLE T2 (
  a INTEGER,
  b TEXT
);
INSERT INTO T1 VALUES (-unlikely(x''),'a'),(substr(octet_length(jsonb_group_array(json_array_length(rtrim('xxxhelloxxx', 'x')))), jsonb_insert('0', '$.key', 1)),'b');
INSERT INTO T2 VALUES (1,'c'),(1,'d');
SELECT T1.b,
(
  SELECT GROUP_CONCAT(b,',')
  FROM T2
  WHERE T2.a=T1.a
) AS c
FROM T1;
ROLLBACK;
ALTER TABLE T1 RENAME COLUMN a TO a_r2518;
ALTER TABLE T1 RENAME TO T1_r1276;
SELECT * FROM T2 WHERE b IN (SELECT b FROM T2 WHERE ROW_NUMBER() OVER (ORDER BY b) = 1);
CREATE TABLE T (
  a INTEGER,
  b TEXT,
  c REAL,
  d REAL
);
INSERT INTO T VALUES (1,'a',40.5,-70.0), (2,'b',-10.25,20.5), (3,'c',9e999,-9e999);
SELECT b FROM T WHERE ABS(c) > 5 AND ABS(d) > 5;
SELECT * FROM T1 WHERE EXISTS (SELECT 1 FROM T1 WHERE b = NULL);
CREATE TABLE T (
  A VARCHAR(10) PRIMARY KEY,
  B VARCHAR(15),
  C BIGINT,
  UNIQUE (B, C)
);
INSERT INTO
T VALUES ('a', 'p', -9223372036854775808);
INSERT INTO T VALUES ('b', 'q', 4000);
INSERT INTO T VALUES ('c', 'r', 1700);
INSERT INTO T VALUES ('d', 'r', 9223372036854775807);
INSERT INTO T VALUES ('e', 's', 0);
SELECT A, C FROM T WHERE C > 1200 AND C < 9999999999 ORDER BY C;
SELECT STRING_AGG(C, '|') FROM T;
DROP VIEW IF EXISTS T1;
ROLLBACK TRANSACTION TO SAVEPOINT sp4771;
RELEASE SAVEPOINT sp4771;
ALTER TABLE T1 RENAME COLUMN a TO a_r3621;
SELECT a FROM T2 UNION SELECT a FROM (SELECT * FROM T2) AS sub;
SELECT LEAD(a, 2, a) OVER (ORDER BY a GROUPS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) FROM T2;
ANALYZE T;
VACUUM main;
SELECT COUNT(*) FILTER (WHERE b IS NOT NULL), SUM(rowid) FILTER (WHERE b > 0), COUNT(*) FILTER (WHERE 1=0), COUNT(*) FILTER (WHERE 1=1), COUNT(*) FILTER (WHERE NULL), AVG(b)
FILTER (WHERE b > 0 AND b < 100), COUNT(*) FILTER (WHERE typeof(b) = "text") FROM T2;
SELECT * FROM T2 WHERE a IN (SELECT a FROM T2 WHERE a IS NULL);
UPDATE T2 SET a = NULL;
CREATE TEMPORARY  VIEW IF NOT EXISTS v_T_8169 AS SELECT A FROM T;
DETACH DATABASE aux27;
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 /* STRING_AGG */ (WHERE a > 0 AND a < 100), COUNT(*) FILTER (WHERE typeof(a) = "text") FROM T1;
ANALYZE;
REINDEX;
DELETE FROM T WHERE 0;
SELECT * FROM T1 WHERE b = (SELECT MAX(b) FROM T1 WHERE b = (SELECT MAX(b) FROM T1));
SELECT AVG(b) FROM T1;
SELECT COUNT(*) FROM T2;
SELECT LAG(C, 1) OVER (ORDER BY C GROUPS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) FROM T;
INSERT INTO T2 SELECT * FROM T2;
DELETE FROM T1 WHERE 1;
INSERT INTO T VALUES (NULL, NULL, NULL) ON CONFLICT(A) DO UPDATE SET A = excluded.A, B = excluded.B, C = excluded.C;
ALTER TABLE T1 RENAME COLUMN a TO a_r8414;

SELECT COUNT(*) FROM T1;
CREATE TEMP  VIEW IF NOT EXISTS v_T_5315 AS SELECT A FROM T;
COMMIT TRANSACTION;
VACUUM;
INSERT OR ABORT INTO T VALUES (0, 0, 'x');

ALTER TABLE T ADD COLUMN extra_8880 CHAR(10) COLLATE NOCASE;
CREATE TRIGGER IF NOT EXISTS trg_T2_4692 AFTER DELETE ON T2 BEGIN SELECT RAISE(IGNORE); END;
PRAGMA temp_store = 'MEMORY';
BEGIN TRANSACTION;
PRAGMA read_uncommitted = OFF;
ATTACH DATABASE ':memory:' AS aux27;
SAVEPOINT sp4771;
PRAGMA vdbe_trace == YES;
.check
BEGIN IMMEDIATE TRANSACTION;
.LImIt
CREATE TABLE T1	(
  a INTEGER,
  b TEXT
);
CREATE TABLE T2 (
  a INTEGER,
  b TEXT
);
INSERT INTO T1 VALUES (-unlikely(x''),'a'),(substr(octet_length(jsonb_group_array(json_array_length(rtrim('xxxhelloxxx', 'x')))), jsonb_insert('0', '$.key', 1)),'b');
INSERT INTO T2 VALUES (1,'c'),(1,'d');
SELECT T1.b,
(
  SELECT GROUP_CONCAT(b,',')
  FROM T2
  WHERE T2.a=T1.a
) AS c
FROM T1;
ROLLBACK;
ALTER TABLE T1 RENAME COLUMN a TO a_r2518;
ALTER TABLE T1 RENAME TO T1_r1276;
SELECT * FROM T2 WHERE b IN (SELECT b FROM T2 WHERE ROW_NUMBER() OVER (ORDER BY b) = 1);
CREATE TABLE T (
  a INTEGER,
  b TEXT,
  c REAL,
  d REAL
);
INSERT INTO T VALUES (1,'a',40.5,-70.0), (2,'b',-10.25,20.5), (3,'c',9e999,-9e999);
SELECT b FROM T WHERE ABS(c) > 5 AND ABS(d) > 5;
SELECT * FROM T1 WHERE EXISTS (SELECT 1 FROM T1 WHERE +b = NULL);
CREATE TABLE T (
  A VARCHAR(10) PRIMARY KEY,
  B VARCHAR(15),
  C BIGINT,
  UNIQUE (B, C)
);
INSERT INTO T VALUES ('a', 'p', -9223372036854775808);
INSERT INTO T VALUES ('b', 'q', 4000);
INSERT INTO T VALUES ('c', 'r', 1700);
INSERT INTO T VALUES ('d', 'r', 9223372036854775807);
INSERT INTO T VALUES ('e', 's', 0);
SELECT A, C FROM T WHERE C > 1200 AND C < 9999999999 ORDER BY C;
SELECT STRING_AGG(C, '|') FROM T;
DROP VIEW IF EXISTS T1;
ROLLBACK TRANSACTION TO SAVEPOINT sp4771;
RELEASE SAVEPOINT sp4771;
ALTER TABLE T1 RENAME COLUMN a TO a_r3621;
SELECT a FROM T2 UNION SELECT a FROM (SELECT * FROM T2) AS sub;
SELECT LEAD(a, 2, a) OVER (ORDER BY a GROUPS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) FROM T2;
ANALYZE T;
VACUUM main;
SELECT COUNT(*) FILTER (WHERE b IS NOT NULL), SUM(rowid) FILTER (WHERE b > 0), COUNT(*) FILTER (WHERE 1=0), COUNT(*) FILTER (WHERE 1=1), COUNT(*) FILTER (WHERE NULL), AVG(b)
FILTER (WHERE b > 0 AND b < 100), COUNT(*) FILTER (WHERE typeof(b) = "text") FROM T2;
SELECT * FROM T2 WHERE a IN (SELECT a FROM T2 WHERE a IS NULL);
UPDATE T2 SET a = NULL;
CREATE TEMPORARY  VIEW IF NOT EXISTS v_T_8169 AS SELECT A FROM T;
DETACH DATABASE aux27;
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 /* STRING_AGG */ (WHERE a > 0 AND a < 100), COUNT(*) FILTER (WHERE typeof(a) = "text") FROM T1;
ANALYZE;
REINDEX;
DELETE FROM T WHERE 0;
SELECT * FROM T1 WHERE b = (SELECT MAX(b) FROM T1 WHERE b = (SELECT MAX(b) FROM T1));
SELECT AVG(b) FROM T1;
SELECT COUNT(*) FROM T2;
SELECT LAG(C, 1) OVER (ORDER BY C GROUPS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) FROM T;
INSERT INTO T2 SELECT * FROM T2;
DELETE FROM T1 WHERE 1;
INSERT INTO T VALUES (NULL, NULL, NULL) ON CONFLICT(A) DO UPDATE SET A = excluded.A, B = excluded.B, C = excluded.C;
ALTER TABLE T1 RENAME COLUMN a TO a_r8414;

SELECT COUNT(*) FROM T1;
CREATE TEMP  VIEW IF NOT EXISTS v_T_5315 AS SELECT A FROM T;
COMMIT TRANSACTION;
VACUUM;
INSERT OR ABORT INTO T VALUES (0, 0, 'x');
PRAGMA temp_store = 'MEMORY';
BEGIN TRANSACTION;
PRAGMA read_uncommitted = OFF;
ATTACH DATABASE ':memory:' AS aux27;
SAVEPOINT sp4771;
PRAGMA vdbe_trace == YES;
.check
BEGIN IMMEDIATE TRANSACTION;
.LImIt
CREATE TABLE T1	(
  a INTEGER,
  b TEXT
);
CREATE TABLE T2 (
  a INTEGER,
  b TEXT
);
INSERT INTO T1 VALUES (-unlikely(x''),'a'),(substr(octet_length(jsonb_group_array(json_array_length(rtrim('xxxhelloxxx', 'x')))), jsonb_insert('0', '$.key', 1)),'b');
INSERT INTO T2 VALUES (1,'c'),(1,'d');
SELECT T1.b,
(
  SELECT GROUP_CONCAT(b,',')
  FROM T2
  WHERE T2.a=T1.a
) AS c
FROM T1;
ROLLBACK;
ALTER TABLE T1 RENAME COLUMN a TO a_r2518;
ALTER TABLE T1 RENAME TO T1_r1276;
SELECT * FROM T2 WHERE b IN (SELECT b FROM T2 WHERE ROW_NUMBER() OVER (ORDER BY b) = 1);
CREATE TABLE T (
  a INTEGER,
  b TEXT,
  c REAL,
  d REAL
);
INSERT INTO T VALUES (1,'a',40.5,-70.0), (2,'b',-10.25,20.5), (3,'c',9e999,-9e999);
SELECT b FROM T WHERE ABS(c) > 5 AND ABS(d) > 5;
SELECT * FROM T1 WHERE EXISTS (SELECT 1 FROM T1 WHERE b = NULL);
CREATE TABLE T (
  A VARCHAR(10) PRIMARY KEY,
  B VARCHAR(15),
  C BIGINT,
  UNIQUE (B, C)
);
INSERT INTO T VALUES ('a', 'p', -9223372036854775808);
INSERT INTO T VALUES ('b', 'q', 4000);
INSERT INTO T VALUES ('c', 'r', 1700);
INSERT INTO T VALUES ('d', 'r', 9223372036854775807);
INSERT INTO T VALUES ('e', 's', 0);
SELECT A, C FROM T WHERE C > 1200 AND C < 9999999999 ORDER BY C;
SELECT STRING_AGG(C, '|') FROM T;
DROP VIEW IF EXISTS T1;
ROLLBACK TRANSACTION TO SAVEPOINT sp4771;
RELEASE SAVEPOINT sp4771;
ALTER TABLE T1 RENAME COLUMN a TO a_r3621;
SELECT a FROM T2 UNION SELECT a FROM (SELECT * FROM T2) AS sub;
SELECT LEAD(a, 2, a) OVER (ORDER BY a GROUPS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) FROM T2;
ANALYZE T;
VACUUM main;
SELECT COUNT(*) FILTER (WHERE b IS NOT NULL), SUM(rowid) FILTER (WHERE b > 0), COUNT(*) FILTER (WHERE 1=0), COUNT(*) FILTER (WHERE 1=1), COUNT(*) FILTER (WHERE NULL), AVG(b)
FILTER (WHERE b > 0 AND b < 100), COUNT(*) FILTER (WHERE typeof(b) = "text") FROM T2;
SELECT * FROM T2 WHERE a IN (SELECT a FROM T2 WHERE a IS NULL);
UPDATE T2 SET a = NULL;
CREATE TEMPORARY  VIEW IF NOT EXISTS v_T_8169 AS SELECT A FROM T;
DETACH DATABASE aux27;
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 /* STRING_AGG */ (WHERE a > 0 AND a < 100), COUNT(*) FILTER (WHERE typeof(a) = "text") FROM T1;
ANALYZE;
REINDEX;
DELETE FROM T WHERE 0;
SELECT * FROM T1 WHERE b = (SELECT MAX(b) FROM T1 WHERE b = (SELECT MAX(b) FROM T1));
SELECT AVG(b) FROM T1;
SELECT COUNT(*) FROM T2;
SELECT LAG(C, 1) OVER (ORDER BY C GROUPS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) FROM T;
INSERT INTO T2 SELECT * FROM T2;
DELETE FROM T1 WHERE 1;
INSERT INTO T VALUES (NULL, NULL, NULL) ON CONFLICT(A) DO UPDATE SET A = excluded.A, B = excluded.B, C = excluded.C;
ALTER TABLE T1 RENAME COLUMN a TO a_r8414;

SELECT COUNT(*) FROM T1;
CREATE TEMP  VIEW IF NOT EXISTS v_T_5315 AS SELECT A FROM T;
COMMIT TRANSACTION;
VACUUM;
INSERT OR ABORT INTO T VALUES (0, 0, 'x');
PRAGMA temp_store = 'MEMORY';
BEGIN TRANSACTION;
PRAGMA read_uncommitted = OFF;
ATTACH DATABASE ':memory:' AS aux27;
SAVEPOINT sp4771;
PRAGMA vdbe_trace == YES;
.check
BEGIN IMMEDIATE TRANSACTION;
.LImIt
CREATE TABLE T1	(
  a INTEGER,
  b TEXT
);
CREATE TABLE T2 (
  a INTEGER,
  b TEXT
);
INSERT INTO T1 VALUES (-unlikely(x''),'a'),(substr(octet_length(jsonb_group_array(json_array_length(rtrim('xxxhelloxxx', 'x')))), jsonb_insert('0', '$.key', 1)),'b');
INSERT INTO T2 VALUES (1,'c'),(1,'d');
SELECT T1.b,
(
  SELECT GROUP_CONCAT(b,',')
  FROM T2
  WHERE T2.a=T1.a
) AS c
FROM T1;
ROLLBACK;
ALTER TABLE T1 RENAME COLUMN a TO a_r2518;
ALTER TABLE T1 RENAME TO T1_r1276;
SELECT * FROM T2 WHERE b IN (SELECT b FROM T2 WHERE ROW_NUMBER() OVER (ORDER BY b) = 1);
CREATE TABLE T (
  a INTEGER,
  b TEXT,
  c REAL,
  d REAL
);
INSERT INTO T VALUES (1,'a',40.5,-70.0), (2,'b',-10.25,20.5), (3,'c',9e999,-9e999);
SELECT b FROM T WHERE ABS(c) > 5 AND ABS(d) > 5;
SELECT * FROM T1 WHERE EXISTS (SELECT 1 FROM T1 WHERE b = NULL);
CREATE TABLE T (
  A VARCHAR(10) PRIMARY KEY,
  B VARCHAR(15),
  C BIGINT,
  UNIQUE (B, C)
);
INSERT INTO T VALUES ('a', 'p', -9223372036854775808);
INSERT INTO T VALUES ('b', 'q', 4000);
INSERT INTO T VALUES ('c', 'r', 1700);
INSERT INTO T VALUES ('d', 'r', 9223372036854775807);
INSERT INTO T VALUES ('e', 's', 0);
SELECT A, C FROM T WHERE C > 1200 AND C < 9999999999 ORDER BY C;
SELECT STRING_AGG(C, '|') FROM T;
DROP VIEW IF EXISTS T1;
ROLLBACK TRANSACTION TO SAVEPOINT sp4771;
RELEASE SAVEPOINT sp4771;
ALTER TABLE T1 RENAME COLUMN a TO a_r3621;
SELECT a FROM T2 UNION SELECT a FROM (SELECT * FROM T2) AS sub;
SELECT LEAD(a, 2, a) OVER (ORDER BY a GROUPS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) FROM T2;
ANALYZE T;
VACUUM main;
SELECT COUNT(*) FILTER (WHERE b IS NOT NULL), SUM(rowid) FILTER (WHERE b > 0), COUNT(*) FILTER (WHERE 1=0), COUNT(*) FILTER (WHERE 1=1), COUNT(*) FILTER (WHERE NULL), AVG(b)
FILTER (WHERE b > 0 AND b < 100), COUNT(*) FILTER (WHERE typeof(b) = "text") FROM T2;
SELECT * FROM T2 WHERE a IN (SELECT a FROM T2 WHERE a IS NULL);
UPDATE T2 SET a = NULL;
CREATE TEMPORARY  VIEW IF NOT EXISTS v_T_8169 AS SELECT A FROM T;
DETACH DATABASE aux27;
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 /* STRING_AGG */ (WHERE a > 0 AND a < 100), COUNT(*) FILTER (WHERE typeof(a) = "text") FROM T1;
ANALYZE;
REINDEX;
DELETE FROM T WHERE 0;
SELECT * FROM T1 WHERE b = (SELECT MAX(b) FROM T1 WHERE b = (SELECT MAX(b) FROM T1));
SELECT AVG(b) FROM T1;
SELECT COUNT(*) FROM T2;
SELECT LAG(C, 1) OVER (ORDER BY C GROUPS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) FROM T;
INSERT INTO T2 SELECT * FROM T2;
DELETE FROM T1 WHERE 1;
INSERT INTO T VALUES (NULL, NULL, NULL) ON CONFLICT(A) DO UPDATE SET A = excluded.A, B = excluded.B, C = excluded.C;
ALTER TABLE T1 RENAME COLUMN a TO a_r8414;

SELECT COUNT(*) FROM T1;
CREATE TEMP  VIEW IF NOT EXISTS v_T_5315 AS SELECT A FROM T;
COMMIT TRANSACTION;
VACUUM;
INSERT OR ABORT INTO T VALUES (0, 0, 'x');
PRAGMA temp_store = 'MEMORY';
BEGIN TRANSACTION;
PRAGMA read_uncommitted = OFF;
ATTACH DATABASE ':memory:' AS aux27;
SAVEPOINT sp4771;
PRAGMA vdbe_trace == YES;
.check
BEGIN IMMEDIATE TRANSACTION;
.LImIt
CREATE TABLE T1	(
  a INTEGER,
  b TEXT
);
CREATE TABLE T2 (
  a INTEGER,
  b TEXT
);
INSERT INTO T1 VALUES (-unlikely(x''),'a'),(substr(octet_length(jsonb_group_array(json_array_length(rtrim('xxxhelloxxx', 'x')))), jsonb_insert('0', '$.key', 1)),'b');
INSERT INTO T2 VALUES (1,'c'),(1,'d');
SELECT T1.b,
(
  SELECT GROUP_CONCAT(b,',')
  FROM T2
  WHERE T2.a=T1.a
) AS c
FROM T1;
ROLLBACK;
ALTER TABLE T1 RENAME COLUMN a TO a_r2518;
ALTER TABLE T1 RENAME TO T1_r1276;
SELECT * FROM T2 WHERE b IN (SELECT b FROM T2 WHERE ROW_NUMBER() OVER (ORDER BY b) = 1);
CREATE TABLE T (
  a INTEGER,
  b TEXT,
  c REAL,
  d REAL
);
INSERT INTO T VALUES (1,'a',40.5,-70.0), (2,'b',-10.25,20.5), (3,'c',9e999,-9e999);
SELECT b FROM T WHERE ABS(c) > 5 AND ABS(d) > 5;
SELECT * FROM T1 WHERE EXISTS (SELECT 1 FROM T1 WHERE b = NULL);
CREATE TABLE T (
  A VARCHAR(10) PRIMARY KEY,
  B VARCHAR(15),
  C BIGINT,
  UNIQUE (B, C)
);
INSERT INTO T VALUES ('a', 'p', -9223372036854775808);
INSERT INTO T VALUES ('b', 'q', 4000);
INSERT INTO T VALUES ('c', 'r', 1700);
INSERT INTO T VALUES ('d', 'r', 9223372036854775807);
INSERT INTO T VALUES ('e', 's', 0);
SELECT A, C FROM T WHERE C > 1200 AND C < 9999999999 ORDER BY C;
SELECT STRING_AGG(C, '|') FROM T;
DROP VIEW IF EXISTS T1;
ROLLBACK TRANSACTION TO SAVEPOINT sp4771;
RELEASE SAVEPOINT sp4771;
ALTER TABLE T1 RENAME COLUMN a TO a_r3621;
SELECT a FROM T2 UNION SELECT a FROM (SELECT * FROM T2) AS sub;
SELECT LEAD(a, 2, a) OVER (ORDER BY a GROUPS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) FROM T2;
ANALYZE T;
VACUUM main;
SELECT COUNT(*) FILTER (WHERE b IS NOT NULL), SUM(rowid) FILTER (WHERE b > 0), COUNT(*) FILTER (WHERE 1=0), COUNT(*) FILTER (WHERE 1=1), COUNT(*) FILTER (WHERE NULL), AVG(b)
FILTER (WHERE b > 0 AND b < 100), COUNT(*) FILTER (WHERE typeof(b) = "text") FROM T2;
SELECT * FROM T2 WHERE a IN (SELECT a FROM T2 WHERE a IS NULL);
UPDATE T2 SET a = NULL;
CREATE TEMPORARY  VIEW IF NOT EXISTS v_T_8169 AS SELECT A FROM T;
DETACH DATABASE aux27;
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 /* STRING_AGG */ (WHERE a > 0 AND a < 100), COUNT(*) FILTER (WHERE typeof(a) = "text") FROM T1;
ANALYZE;
REINDEX;
DELETE FROM T WHERE 0;
SELECT * FROM T1 WHERE b = (SELECT MAX(b) FROM T1 WHERE b = (SELECT MAX(b) FROM T1));
SELECT AVG(b) FROM T1;
SELECT COUNT(*) FROM T2;
SELECT LAG(C, 1) OVER (ORDER BY C GROUPS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) FROM T;
INSERT INTO T2 SELECT * FROM T2;
DELETE FROM T1 WHERE 1;
INSERT INTO T VALUES (NULL, NULL, NULL) ON CONFLICT(A) DO UPDATE SET A = excluded.A, B = excluded.B, C = excluded.C;
ALTER TABLE T1 RENAME COLUMN a TO a_r8414;

SELECT COUNT(*) FROM T1;
CREATE TEMP  VIEW IF NOT EXISTS v_T_5315 AS SELECT A FROM T;
COMMIT TRANSACTION;
VACUUM;
INSERT OR ABORT INTO T VALUES (0, 0, 'x');
PRAGMA temp_store = 'MEMORY';
BEGIN TRANSACTION;
PRAGMA read_uncommitted = OFF;
ATTACH DATABASE ':memory:' AS aux27;
SAVEPOINT sp4771;
PRAGMA vdbe_trace == YES;
.check
BEGIN IMMEDIATE TRANSACTION;
.LImIt
CREATE TABLE T1	(
  a INTEGER,
  b TEXT
);
CREATE TABLE T2 (
  a INTEGER,
  b TEXT
);
INSERT INTO T1 VALUES (-unlikely(x''),'a'),(substr(octet_length(jsonb_group_array(json_array_length(rtrim('xxxhelloxxx', 'x')))), jsonb_insert('0', '$.key', 1)),'b');
INSERT INTO T2 VALUES (1,'c'),(1,'d');
SELECT T1.b,
(
  SELECT GROUP_CONCAT(b,',')
  FROM T2
  WHERE T2.a=T1.a
) AS c
FROM T1;
ROLLBACK;
ALTER TABLE T1 RENAME COLUMN a TO a_r2518;
ALTER TABLE T1 RENAME TO T1_r1276;
SELECT * FROM T2 WHERE b IN (SELECT b FROM T2 WHERE ROW_NUMBER() OVER (ORDER BY b) = 1);
CREATE TABLE T (
  a INTEGER,
  b TEXT,
  c REAL,
  d REAL
);
INSERT INTO T VALUES (1,'a',40.5,-70.0), (2,'b',-10.25,20.5), (3,'c',9e999,-9e999);
SELECT b FROM T WHERE ABS(c) > 5 AND ABS(d) > 5;
SELECT * FROM T1 WHERE EXISTS (SELECT 1 FROM T1 WHERE b = NULL);
CREATE TABLE T (
  A VARCHAR(10) PRIMARY KEY,
  B VARCHAR(15),
  C BIGINT,
  UNIQUE (B, C)
);
INSERT INTO T VALUES ('a', 'p', -9223372036854775808);
INSERT INTO T VALUES ('b', 'q', 4000);
INSERT INTO T VALUES ('c', 'r', 1700);
INSERT INTO T VALUES ('d', 'r', 9223372036854775807);
INSERT INTO T VALUES ('e', 's', 0);
SELECT A, C FROM T WHERE C > 1200 AND C < 9999999999 ORDER BY C;
SELECT STRING_AGG(C, '|') FROM T;
DROP VIEW IF EXISTS T1;
ROLLBACK TRANSACTION TO SAVEPOINT sp4771;
RELEASE SAVEPOINT sp4771;
ALTER TABLE T1 RENAME COLUMN a TO a_r3621;
SELECT a FROM T2 UNION SELECT a FROM (SELECT * FROM T2) AS sub;
SELECT LEAD(a, 2, a) OVER (ORDER BY a GROUPS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) FROM T2;
ANALYZE T;
VACUUM main;
SELECT COUNT(*) FILTER (WHERE b IS NOT NULL), SUM(rowid) FILTER (WHERE b > 0), COUNT(*) FILTER (WHERE 1=0), COUNT(*) FILTER (WHERE 1=1), COUNT(*) FILTER (WHERE NULL), AVG(b)
FILTER (WHERE b > 0 AND b < 100), COUNT(*) FILTER (WHERE typeof(b) = "text") FROM T2;
SELECT * FROM T2 WHERE a IN (SELECT a FROM T2 WHERE a IS NULL);
UPDATE T2 SET a = NULL;
CREATE TEMPORARY  VIEW IF NOT EXISTS v_T_8169 AS SELECT A FROM T;
DETACH DATABASE aux27;
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 /* STRING_AGG */ (WHERE a > 0 AND a < 100), COUNT(*) FILTER (WHERE typeof(a) = "text") FROM T1;
ANALYZE;
REINDEX;
DELETE FROM T WHERE 0;
SELECT * FROM T1 WHERE b = (SELECT MAX(b) FROM T1 WHERE b = (SELECT MAX(b) FROM T1));
SELECT AVG(b) FROM T1;
SELECT COUNT(*) FROM T2;
SELECT LAG(C, 1) OVER (ORDER BY C GROUPS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) FROM T;
INSERT INTO T2 SELECT * FROM T2;
DELETE FROM T1 WHERE 1;
INSERT INTO T VALUES (NULL, NULL, NULL) ON CONFLICT(A) DO UPDATE SET A = excluded.A, B = excluded.B, C = excluded.C;
ALTER TABLE T1 RENAME COLUMN a TO a_r8414;

SELECT COUNT(*) FROM T1;
CREATE TEMP  VIEW IF NOT EXISTS v_T_5315 AS SELECT A FROM T;
COMMIT TRANSACTION;
VACUUM;
INSERT OR ABORT INTO T VALUES (0, 0, 'x');

ALTER TABLE T ADD COLUMN extra_8880 CHAR(10) COLLATE NOCASE;
CREATE TRIGGER IF NOT EXISTS trg_T2_4692 AFTER DELETE ON T2 BEGIN SELECT RAISE(IGNORE); END;
PRAGMA temp_store = 'MEMORY';
BEGIN TRANSACTION;
PRAGMA read_uncommitted = OFF;
ATTACH DATABASE ':memory:' AS aux27;
SAVEPOINT sp4771;
PRAGMA vdbe_trace == YES;
.check
BEGIN IMMEDIATE TRANSACTION;
.LImIt
CREATE TABLE T1	(
  a INTEGER,
  b TEXT
);
CREATE TABLE T2 (
  a INTEGER,
  b TEXT
);
INSERT INTO T1 VALUES (-unlikely(x''),'a'),(substr(octet_length(jsonb_group_array(json_array_length(rtrim('xxxhelloxxx', 'x')))), jsonb_insert('0', '$.key', 1)),'b');
INSERT INTO T2 VALUES (1,'c'),(1,'d');
SELECT T1.b,
(
  SELECT GROUP_CONCAT(b,',')
  FROM T2
  WHERE T2.a=T1.a
) AS c
FROM T1;
ROLLBACK;
ALTER TABLE T1 RENAME COLUMN a TO a_r2518;
ALTER TABLE T1 RENAME TO T1_r1276;
SELECT * FROM T2 WHERE b IN (SELECT b FROM T2 WHERE ROW_NUMBER() OVER (ORDER BY b) = 1);
CREATE TABLE T (
  a INTEGER,
  b TEXT,
  c REAL,
  d REAL
);
INSERT INTO T VALUES (1,'a',40.5,-70.0), (2,'b',-10.25,20.5), (3,'c',9e999,-9e999);
SELECT b FROM T WHERE ABS(c) > 5 AND ABS(d) > 5;
SELECT * FROM T1 WHERE EXISTS (SELECT 1 FROM T1 WHERE +b = NULL);
CREATE TABLE T (
  A VARCHAR(10) PRIMARY KEY,
  B VARCHAR(15),
  C BIGINT,
  UNIQUE (B, C)
);
INSERT INTO T VALUES ('a', 'p', -9223372036854775808);
INSERT INTO T VALUES ('b', 'q', 4000);
INSERT INTO T VALUES ('c', 'r', 1700);
INSERT INTO T VALUES ('d', 'r', 9223372036854775807);
INSERT INTO T VALUES ('e', 's', 0);
SELECT A, C FROM T WHERE C > 1200 AND C < 9999999999 ORDER BY C;
SELECT STRING_AGG(C, '|') FROM T;
DROP VIEW IF EXISTS T1;
ROLLBACK TRANSACTION TO SAVEPOINT sp4771;
RELEASE SAVEPOINT sp4771;
ALTER TABLE T1 RENAME COLUMN a TO a_r3621;
SELECT a FROM T2 UNION SELECT a FROM (SELECT * FROM T2) AS sub;
SELECT LEAD(a, 2, a) OVER (ORDER BY a GROUPS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) FROM T2;
ANALYZE T;
VACUUM main;
SELECT COUNT(*) FILTER (WHERE b IS NOT NULL), SUM(rowid) FILTER (WHERE b > 0), COUNT(*) FILTER (WHERE 1=0), COUNT(*) FILTER (WHERE 1=1), COUNT(*) FILTER (WHERE NULL), AVG(b)
FILTER (WHERE b > 0 AND b < 100), COUNT(*) FILTER (WHERE typeof(b) = "text") FROM T2;
SELECT * FROM T2 WHERE a IN (SELECT a FROM T2 WHERE a IS NULL);
UPDATE T2 SET a = NULL;
CREATE TEMPORARY  VIEW IF NOT EXISTS v_T_8169 AS SELECT A FROM T;
DETACH DATABASE aux27;
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 /* STRING_AGG */ (WHERE a > 0 AND a < 100), COUNT(*) FILTER (WHERE typeof(a) = "text") FROM T1;
ANALYZE;
REINDEX;
DELETE FROM T WHERE 0;
SELECT * FROM T1 WHERE b = (SELECT MAX(b) FROM T1 WHERE b = (SELECT MAX(b) FROM T1));
SELECT AVG(b) FROM T1;
SELECT COUNT(*) FROM T2;
SELECT LAG(C, 1) OVER (ORDER BY C GROUPS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) FROM T;
INSERT INTO T2 SELECT * FROM T2;
DELETE FROM T1 WHERE 1;
INSERT INTO T VALUES (NULL, NULL, NULL) ON CONFLICT(A) DO UPDATE SET A = excluded.A, B = excluded.B, C = excluded.C;
ALTER TABLE T1 RENAME COLUMN a TO a_r8414;

SELECT COUNT(*) FROM T1;
CREATE TEMP  VIEW IF NOT EXISTS v_T_5315 AS SELECT A FROM T;
COMMIT TRANSACTION;
VACUUM;
INSERT OR ABORT INTO T VALUES (0, 0, 'x');
PRAGMA temp_store = 'MEMORY';
BEGIN TRANSACTION;
PRAGMA read_uncommitted = OFF;
ATTACH DATABASE ':memory:' AS aux27;
SAVEPOINT sp4771;
PRAGMA vdbe_trace == YES;
.check
BEGIN IMMEDIATE TRANSACTION;
.LImIt
CREATE TABLE T1	(
  a INTEGER,
  b TEXT
);
CREATE TABLE T2 (
  a INTEGER,
  b TEXT
);
INSERT INTO T1 VALUES (-unlikely(x''),'a'),(substr(octet_length(jsonb_group_array(json_array_length(rtrim('xxxhelloxxx', 'x')))), jsonb_insert('0', '$.key', 1)),'b');
INSERT INTO T2 VALUES (1,'c'),(1,'d');
SELECT T1.b,
(
  SELECT GROUP_CONCAT(b,',')
  FROM T2
  WHERE T2.a=T1.a
) AS c
FROM T1;
ROLLBACK;
ALTER TABLE T1 RENAME COLUMN a TO a_r2518;
ALTER TABLE T1 RENAME TO T1_r1276;
SELECT * FROM T2 WHERE b IN (SELECT b FROM T2 WHERE ROW_NUMBER() OVER (ORDER BY b) = 1);
CREATE TABLE T (
  a INTEGER,
  b TEXT,
  c REAL,
  d REAL
);
INSERT INTO T VALUES (1,'a',40.5,-70.0), (2,'b',-10.25,20.5), (3,'c',9e999,-9e999);
SELECT b FROM T WHERE ABS(c) > 5 AND ABS(d) > 5;
SELECT * FROM T1 WHERE EXISTS (SELECT 1 FROM T1 WHERE b = NULL);
CREATE TABLE T (
  A VARCHAR(10) PRIMARY KEY,
  B VARCHAR(15),
  C BIGINT,
  UNIQUE (B, C)
);
INSERT INTO T VALUES ('a', 'p', -9223372036854775808);
INSERT INTO T VALUES ('b', 'q', 4000);
INSERT INTO T VALUES ('c', 'r', 1700);
INSERT INTO T VALUES ('d', 'r', 9223372036854775807);
INSERT INTO T VALUES ('e', 's', 0);
SELECT A, C FROM T WHERE C > 1200 AND C < 9999999999 ORDER BY C;
SELECT STRING_AGG(C, '|') FROM T;
DROP VIEW IF EXISTS T1;
ROLLBACK TRANSACTION TO SAVEPOINT sp4771;
RELEASE SAVEPOINT sp4771;
ALTER TABLE T1 RENAME COLUMN a TO a_r3621;
SELECT a FROM T2 UNION SELECT a FROM (SELECT * FROM T2) AS sub;
SELECT LEAD(a, 2, a) OVER (ORDER BY a GROUPS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) FROM T2;
ANALYZE T;
VACUUM main;
SELECT COUNT(*) FILTER (WHERE b IS NOT NULL), SUM(rowid) FILTER (WHERE b > 0), COUNT(*) FILTER (WHERE 1=0), COUNT(*) FILTER (WHERE 1=1), COUNT(*) FILTER (WHERE NULL), AVG(b)
FILTER (WHERE b > 0 AND b < 100), COUNT(*) FILTER (WHERE typeof(b) = "text") FROM T2;
SELECT * FROM T2 WHERE a IN (SELECT a FROM T2 WHERE a IS NULL);
UPDATE T2 SET a = NULL;
CREATE TEMPORARY  VIEW IF NOT EXISTS v_T_8169 AS SELECT A FROM T;
DETACH DATABASE aux27;
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 /* STRING_AGG */ (WHERE a > 0 AND a < 100), COUNT(*) FILTER (WHERE typeof(a) = "text") FROM T1;
ANALYZE;
REINDEX;
DELETE FROM T WHERE 0;
SELECT * FROM T1 WHERE b = (SELECT MAX(b) FROM T1 WHERE b = (SELECT MAX(b) FROM T1));
SELECT AVG(b) FROM T1;
SELECT COUNT(*) FROM T2;
SELECT LAG(C, 1) OVER (ORDER BY C GROUPS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) FROM T;
INSERT INTO T2 SELECT * FROM T2;
DELETE FROM T1 WHERE 1;
INSERT INTO T VALUES (NULL, NULL, NULL) ON CONFLICT(A) DO UPDATE SET A = excluded.A, B = excluded.B, C = excluded.C;
ALTER TABLE T1 RENAME COLUMN a TO a_r8414;

SELECT COUNT(*) FROM T1;
CREATE TEMP  VIEW IF NOT EXISTS v_T_5315 AS SELECT A FROM T;
COMMIT TRANSACTION;
VACUUM;
INSERT OR ABORT INTO T VALUES (0, 0, 'x');
PRAGMA temp_store = 'MEMORY';
BEGIN TRANSACTION;
PRAGMA read_uncommitted = OFF;
ATTACH DATABASE ':memory:' AS aux27;
SAVEPOINT sp4771;
PRAGMA vdbe_trace == YES;
.check
BEGIN IMMEDIATE TRANSACTION;
.LImIt
CREATE TABLE T1	(
  a INTEGER,
  b TEXT
);
CREATE TABLE T2 (
  a INTEGER,
  b TEXT
);
INSERT INTO T1 VALUES (-unlikely(x''),'a'),(substr(octet_length(jsonb_group_array(json_array_length(rtrim('xxxhelloxxx', 'x')))), jsonb_insert('0', '$.key', 1)),'b');
INSERT INTO T2 VALUES (1,'c'),(1,'d');
SELECT T1.b,
(
  SELECT GROUP_CONCAT(b,',')
  FROM T2
  WHERE T2.a=T1.a
) AS c
FROM T1;
ROLLBACK;
ALTER TABLE T1 RENAME COLUMN a TO a_r2518;
ALTER TABLE T1 RENAME TO T1_r1276;
SELECT * FROM T2 WHERE b IN (SELECT b FROM T2 WHERE ROW_NUMBER() OVER (ORDER BY b) = 1);
CREATE TABLE T (
  a INTEGER,
  b TEXT,
  c REAL,
  d REAL
);
INSERT INTO T VALUES (1,'a',40.5,-70.0), (2,'b',-10.25,20.5), (3,'c',9e999,-9e999);
SELECT b FROM T WHERE ABS(c) > 5 AND ABS(d) > 5;
SELECT * FROM T1 WHERE EXISTS (SELECT 1 FROM T1 WHERE b = NULL);
CREATE TABLE T (
  A VARCHAR(10) PRIMARY KEY,
  B VARCHAR(15),
  C BIGINT,
  UNIQUE (B, C)
);
INSERT INTO T VALUES ('a', 'p', -9223372036854775808);
INSERT INTO T VALUES ('b', 'q', 4000);
INSERT INTO T VALUES ('c', 'r', 1700);
INSERT INTO T VALUES ('d', 'r', 9223372036854775807);
INSERT INTO T VALUES ('e', 's', 0);
SELECT A, C FROM T WHERE C > 1200 AND C < 9999999999 ORDER BY C;
SELECT STRING_AGG(C, '|') FROM T;
DROP VIEW IF EXISTS T1;
ROLLBACK TRANSACTION TO SAVEPOINT sp4771;
RELEASE SAVEPOINT sp4771;
ALTER TABLE T1 RENAME COLUMN a TO a_r3621;
SELECT a FROM T2 UNION SELECT a FROM (SELECT * FROM T2) AS sub;
SELECT LEAD(a, 2, a) OVER (ORDER BY a GROUPS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) FROM T2;
ANALYZE T;
VACUUM main;
SELECT COUNT(*) FILTER (WHERE b IS NOT NULL), SUM(rowid) FILTER (WHERE b > 0), COUNT(*) FILTER (WHERE 1=0), COUNT(*) FILTER (WHERE 1=1), COUNT(*) FILTER (WHERE NULL), AVG(b)
FILTER (WHERE b > 0 AND b < 100), COUNT(*) FILTER (WHERE typeof(b) = "text") FROM T2;
SELECT * FROM T2 WHERE a IN (SELECT a FROM T2 WHERE a IS NULL);
UPDATE T2 SET a = NULL;
CREATE TEMPORARY  VIEW IF NOT EXISTS v_T_8169 AS SELECT A FROM T;
DETACH DATABASE aux27;
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 /* STRING_AGG */ (WHERE a > 0 AND a < 100), COUNT(*) FILTER (WHERE typeof(a) = "text") FROM T1;
ANALYZE;
REINDEX;
DELETE FROM T WHERE 0;
SELECT * FROM T1 WHERE b = (SELECT MAX(b) FROM T1 WHERE b = (SELECT MAX(b) FROM T1));
SELECT AVG(b) FROM T1;
SELECT COUNT(*) FROM T2;
SELECT LAG(C, 1) OVER (ORDER BY C GROUPS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) FROM T;
INSERT INTO T2 SELECT * FROM T2;
DELETE FROM T1 WHERE 1;
INSERT INTO T VALUES (NULL, NULL, NULL) ON CONFLICT(A) DO UPDATE SET A = excluded.A, B = excluded.B, C = excluded.C;
ALTER TABLE T1 RENAME COLUMN a TO a_r8414;

SELECT COUNT(*) FROM T1;
CREATE TEMP  VIEW IF NOT EXISTS v_T_5315 AS SELECT A FROM T;
COMMIT TRANSACTION;
VACUUM;
INSERT OR ABORT INTO T VALUES (0, 0, 'x');
PRAGMA temp_store = 'MEMORY';
BEGIN TRANSACTION;
PRAGMA read_uncommitted = OFF;
ATTACH DATABASE ':memory:' AS aux27;
SAVEPOINT sp4771;
PRAGMA vdbe_trace == YES;
.check
BEGIN IMMEDIATE TRANSACTION;
.LImIt
CREATE TABLE T1	(
  a INTEGER,
  b TEXT
);
CREATE TABLE T2 (
  a INTEGER,
  b TEXT
);
INSERT INTO T1 VALUES (-unlikely(x''),'a'),(substr(octet_length(jsonb_group_array(json_array_length(rtrim('xxxhelloxxx', 'x')))), jsonb_insert('0', '$.key', 1)),'b');
INSERT INTO T2 VALUES (1,'c'),(1,'d');
SELECT T1.b,
(
  SELECT GROUP_CONCAT(b,',')
  FROM T2
  WHERE T2.a=T1.a
) AS c
FROM T1;
ROLLBACK;
ALTER TABLE T1 RENAME COLUMN a TO a_r2518;
ALTER TABLE T1 RENAME TO T1_r1276;
SELECT * FROM T2 WHERE b IN (SELECT b FROM T2 WHERE ROW_NUMBER() OVER (ORDER BY b) = 1);
CREATE TABLE T (
  a INTEGER,
  b TEXT,
  c REAL,
  d REAL
);
INSERT INTO T VALUES (1,'a',40.5,-70.0), (2,'b',-10.25,20.5), (3,'c',9e999,-9e999);
SELECT b FROM T WHERE ABS(c) > 5 AND ABS(d) > 5;
SELECT * FROM T1 WHERE EXISTS (SELECT 1 FROM T1 WHERE b = NULL);
CREATE TABLE T (
  A VARCHAR(10) PRIMARY KEY,
  B VARCHAR(15),
  C BIGINT,
  UNIQUE (B, C)
);
INSERT INTO T VALUES ('a', 'p', -9223372036854775808);
INSERT INTO T VALUES ('b', 'q', 4000);
INSERT INTO T VALUES ('c', 'r', 1700);
INSERT INTO T VALUES ('d', 'r', 9223372036854775807);
INSERT INTO T VALUES ('e', 's', 0);
SELECT A, C FROM T WHERE C > 1200 AND C < 9999999999 ORDER BY C;
SELECT STRING_AGG(C, '|') FROM T;
DROP VIEW IF EXISTS T1;
ROLLBACK TRANSACTION TO SAVEPOINT sp4771;
RELEASE SAVEPOINT sp4771;
ALTER TABLE T1 RENAME COLUMN a TO a_r3621;
SELECT a FROM T2 UNION SELECT a FROM (SELECT * FROM T2) AS sub;
SELECT LEAD(a, 2, a) OVER (ORDER BY a GROUPS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) FROM T2;
ANALYZE T;
VACUUM main;
SELECT COUNT(*) FILTER (WHERE b IS NOT NULL), SUM(rowid) FILTER (WHERE b > 0), COUNT(*) FILTER (WHERE 1=0), COUNT(*) FILTER (WHERE 1=1), COUNT(*) FILTER (WHERE NULL), AVG(b)
FILTER (WHERE b > 0 AND b < 100), COUNT(*) FILTER (WHERE typeof(b) = "text") FROM T2;
SELECT * FROM T2 WHERE a IN (SELECT a FROM T2 WHERE a IS NULL);
UPDATE T2 SET a = NULL;
CREATE TEMPORARY  VIEW IF NOT EXISTS v_T_8169 AS SELECT A FROM T;
DETACH DATABASE aux27;
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 /* STRING_AGG */ (WHERE a > 0 AND a < 100), COUNT(*) FILTER (WHERE typeof(a) = "text") FROM T1;
ANALYZE;
REINDEX;
DELETE FROM T WHERE 0;
SELECT * FROM T1 WHERE b = (SELECT MAX(b) FROM T1 WHERE b = (SELECT MAX(b) FROM T1));
SELECT AVG(b) FROM T1;
SELECT COUNT(*) FROM T2;
SELECT LAG(C, 1) OVER (ORDER BY C GROUPS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) FROM T;
INSERT INTO T2 SELECT * FROM T2;
DELETE FROM T1 WHERE 1;
INSERT INTO T VALUES (NULL, NULL, NULL) ON CONFLICT(A) DO UPDATE SET A = excluded.A, B = excluded.B, C = excluded.C;
ALTER TABLE T1 RENAME COLUMN a TO a_r8414;

SELECT COUNT(*) FROM T1;
CREATE TEMP  VIEW IF NOT EXISTS v_T_5315 AS SELECT A FROM T;
COMMIT TRANSACTION;
VACUUM;
INSERT OR ABORT INTO T VALUES (0, 0, 'x');
PRAGMA temp_store = 'MEMORY';
BEGIN TRANSACTION;
PRAGMA read_uncommitted = OFF;
ATTACH DATABASE ':memory:' AS aux27;
SAVEPOINT sp4771;
PRAGMA vdbe_trace == YES;
.check
BEGIN IMMEDIATE TRANSACTION;
.LImIt
CREATE TABLE T1	(
  a INTEGER,
  b TEXT
);
CREATE TABLE T2 (
  a INTEGER,
  b TEXT
);
INSERT INTO T1 VALUES (-unlikely(x''),'a'),(substr(octet_length(jsonb_group_array(json_array_length(rtrim('xxxhelloxxx', 'x')))), jsonb_insert('0', '$.key', 1)),'b');
INSERT INTO T2 VALUES (1,'c'),(1,'d');
SELECT T1.b,
(
  SELECT GROUP_CONCAT(b,',')
  FROM T2
  WHERE T2.a=T1.a
) AS c
FROM T1;
ROLLBACK;
ALTER TABLE T1 RENAME COLUMN a TO a_r2518;
ALTER TABLE T1 RENAME TO T1_r1276;
SELECT * FROM T2 WHERE b IN (SELECT b FROM T2 WHERE ROW_NUMBER() OVER (ORDER BY b) = 1);
CREATE TABLE T (
  a INTEGER,
  b TEXT,
  c REAL,
  d REAL
);
INSERT INTO T VALUES (1,'a',40.5,-70.0), (2,'b',-10.25,20.5), (3,'c',9e999,-9e999);
SELECT b FROM T WHERE ABS(c) > 5 AND ABS(d) > 5;
SELECT * FROM T1 WHERE EXISTS (SELECT 1 FROM T1 WHERE b = NULL);
CREATE TABLE T (
  A VARCHAR(10) PRIMARY KEY,
  B VARCHAR(15),
  C BIGINT,
  UNIQUE (B, C)
);
INSERT INTO T VALUES ('a', 'p', -9223372036854775808);
INSERT INTO T VALUES ('b', 'q', 4000);
INSERT INTO T VALUES ('c', 'r', 1700);
INSERT INTO T VALUES ('d', 'r', 9223372036854775807);
INSERT INTO T VALUES ('e', 's', 0);
SELECT A, C FROM T WHERE C > 1200 AND C < 9999999999 ORDER BY C;
SELECT STRING_AGG(C, '|') FROM T;
DROP VIEW IF EXISTS T1;
ROLLBACK TRANSACTION TO SAVEPOINT sp4771;
RELEASE SAVEPOINT sp4771;
ALTER TABLE T1 RENAME COLUMN a TO a_r3621;
SELECT a FROM T2 UNION SELECT a FROM (SELECT * FROM T2) AS sub;
SELECT LEAD(a, 2, a) OVER (ORDER BY a GROUPS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) FROM T2;
ANALYZE T;
VACUUM main;
SELECT COUNT(*) FILTER (WHERE b IS NOT NULL), SUM(rowid) FILTER (WHERE b > 0), COUNT(*) FILTER (WHERE 1=0), COUNT(*) FILTER (WHERE 1=1), COUNT(*) FILTER (WHERE NULL), AVG(b)
FILTER (WHERE b > 0 AND b < 100), COUNT(*) FILTER (WHERE typeof(b) = "text") FROM T2;
SELECT * FROM T2 WHERE a IN (SELECT a FROM T2 WHERE a IS NULL);
UPDATE T2 SET a = NULL;
CREATE TEMPORARY  VIEW IF NOT EXISTS v_T_8169 AS SELECT A FROM T;
DETACH DATABASE aux27;
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 /* STRING_AGG */ (WHERE a > 0 AND a < 100), COUNT(*) FILTER (WHERE typeof(a) = "text") FROM T1;
ANALYZE;
REINDEX;
DELETE FROM T WHERE 0;
SELECT * FROM T1 WHERE b = (SELECT MAX(b) FROM T1 WHERE b = (SELECT MAX(b) FROM T1));
SELECT AVG(b) FROM T1;
SELECT COUNT(*) FROM T2;
SELECT LAG(C, 1) OVER (ORDER BY C GROUPS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) FROM T;
INSERT INTO T2 SELECT * FROM T2;
DELETE FROM T1 WHERE 1;
INSERT INTO T VALUES (NULL, NULL, NULL) ON CONFLICT(A) DO UPDATE SET A = excluded.A, B = excluded.B, C = excluded.C;
ALTER TABLE T1 RENAME COLUMN a TO a_r8414;

SELECT COUNT(*) FROM T1;
CREATE TEMP  VIEW IF NOT EXISTS v_T_5315 AS SELECT A FROM T;
COMMIT TRANSACTION;
VACUUM;
INSERT OR ABORT INTO T VALUES (0, 0, 'x');

ALTER TABLE T ADD COLUMN extra_8880 CHAR(10) COLLATE NOCASE;
CREATE TRIGGER IF NOT EXISTS trg_T2_4692 AFTER DELETE ON T2 BEGIN SELECT RAISE(IGNORE); END;
PRAGMA temp_store = 'MEMORY';
BEGIN TRANSACTION;
PRAGMA read_uncommitted = OFF;
ATTACH DATABASE ':memory:' AS aux27;
SAVEPOINT sp4771;
PRAGMA vdbe_trace == YES;
.check
BEGIN IMMEDIATE TRANSACTION;
.LImIt
CREATE TABLE T1	(
  a INTEGER,
  b TEXT
);
CREATE TABLE T2 (
  a INTEGER,
  b TEXT
);
INSERT INTO T1 VALUES (-unlikely(x''),'a'),(substr(octet_length(jsonb_group_array(json_array_length(rtrim('xxxhelloxxx', 'x')))), jsonb_insert('0', '$.key', 1)),'b');
INSERT INTO T2 VALUES (1,'c'),(1,'d');
SELECT T1.b,
(
  SELECT GROUP_CONCAT(b,',')
  FROM T2
  WHERE T2.a=T1.a
) AS c
FROM T1;
ROLLBACK;
ALTER TABLE T1 RENAME COLUMN a TO a_r2518;
ALTER TABLE T1 RENAME TO T1_r1276;
SELECT * FROM T2 WHERE b IN (SELECT b FROM T2 WHERE ROW_NUMBER() OVER (ORDER BY b) = 1);
CREATE TABLE T (
  a INTEGER,
  b TEXT,
  c REAL,
  d REAL
);
INSERT INTO T VALUES (1,'a',40.5,-70.0), (2,'b',-10.25,20.5), (3,'c',9e999,-9e999);
SELECT b FROM T WHERE ABS(c) > 5 AND ABS(d) > 5;
SELECT * FROM T1 WHERE EXISTS (SELECT 1 FROM T1 WHERE +b = NULL);
CREATE TABLE T (
  A VARCHAR(10) PRIMARY KEY,
  B VARCHAR(15),
  C BIGINT,
  UNIQUE (B, C)
);
INSERT INTO T VALUES ('a', 'p', -9223372036854775808);
INSERT INTO T VALUES ('b', 'q', 4000);
INSERT INTO T VALUES ('c', 'r', 1700);
INSERT INTO T VALUES ('d', 'r', 9223372036854775807);
INSERT INTO T VALUES ('e', 's', 0);
SELECT A, C FROM T WHERE C > 1200 AND C < 9999999999 ORDER BY C;
SELECT STRING_AGG(C, '|') FROM T;
DROP VIEW IF EXISTS T1;
ROLLBACK TRANSACTION TO SAVEPOINT sp4771;
RELEASE SAVEPOINT sp4771;
ALTER TABLE T1 RENAME COLUMN a TO a_r3621;
SELECT a FROM T2 UNION SELECT a FROM (SELECT * FROM T2) AS sub;
SELECT LEAD(a, 2, a) OVER (ORDER BY a GROUPS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) FROM T2;
ANALYZE T;
VACUUM main;
SELECT COUNT(*) FILTER (WHERE b IS NOT NULL), SUM(rowid) FILTER (WHERE b > 0), COUNT(*) FILTER (WHERE 1=0), COUNT(*) FILTER (WHERE 1=1), COUNT(*) FILTER (WHERE NULL), AVG(b)
FILTER (WHERE b > 0 AND b < 100), COUNT(*) FILTER (WHERE typeof(b) = "text") FROM T2;
SELECT * FROM T2 WHERE a IN (SELECT a FROM T2 WHERE a IS NULL);
UPDATE T2 SET a = NULL;
CREATE TEMPORARY  VIEW IF NOT EXISTS v_T_8169 AS SELECT A FROM T;
DETACH DATABASE aux27;
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 /* STRING_AGG */ (WHERE a > 0 AND a < 100), COUNT(*) FILTER (WHERE typeof(a) = "text") FROM T1;
ANALYZE;
REINDEX;
DELETE FROM T WHERE 0;
SELECT * FROM T1 WHERE b = (SELECT MAX(b) FROM T1 WHERE b = (SELECT MAX(b) FROM T1));
SELECT AVG(b) FROM T1;
SELECT COUNT(*) FROM T2;
SELECT LAG(C, 1) OVER (ORDER BY C GROUPS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) FROM T;
INSERT INTO T2 SELECT * FROM T2;
DELETE FROM T1 WHERE 1;
INSERT INTO T VALUES (NULL, NULL, NULL) ON CONFLICT(A) DO UPDATE SET A = excluded.A, B = excluded.B, C = excluded.C;
ALTER TABLE T1 RENAME COLUMN a TO a_r8414;

SELECT COUNT(*) FROM T1;
CREATE TEMP  VIEW IF NOT EXISTS v_T_5315 AS SELECT A FROM T;
COMMIT TRANSACTION;
VACUUM;
INSERT OR ABORT INTO T VALUES (0, 0, 'x');
PRAGMA temp_store = 'MEMORY';
BEGIN TRANSACTION;
PRAGMA read_uncommitted = OFF;
ATTACH DATABASE ':memory:' AS aux27;
SAVEPOINT sp4771;
PRAGMA vdbe_trace == YES;
.check
BEGIN IMMEDIATE TRANSACTION;
.LImIt
CREATE TABLE T1	(
  a INTEGER,
  b TEXT
);
CREATE TABLE T2 (
  a INTEGER,
  b TEXT
);
INSERT INTO T1 VALUES (-unlikely(x''),'a'),(substr(octet_length(jsonb_group_array(json_array_length(rtrim('xxxhelloxxx', 'x')))), jsonb_insert('0', '$.key', 1)),'b');
INSERT INTO T2 VALUES (1,'c'),(1,'d');
SELECT T1.b,
(
  SELECT GROUP_CONCAT(b,',')
  FROM T2
  WHERE T2.a=T1.a
) AS c
FROM T1;
ROLLBACK;
ALTER TABLE T1 RENAME COLUMN a TO a_r2518;
ALTER TABLE T1 RENAME TO T1_r1276;
SELECT * FROM T2 WHERE b IN (SELECT b FROM T2 WHERE ROW_NUMBER() OVER (ORDER BY b) = 1);
CREATE TABLE T (
  a INTEGER,
  b TEXT,
  c REAL,
  d REAL
);
INSERT INTO T VALUES (1,'a',40.5,-70.0), (2,'b',-10.25,20.5), (3,'c',9e999,-9e999);
SELECT b FROM T WHERE ABS(c) > 5 AND ABS(d) > 5;
SELECT * FROM T1 WHERE EXISTS (SELECT 1 FROM T1 WHERE b = NULL);
CREATE TABLE T (
  A VARCHAR(10) PRIMARY KEY,
  B VARCHAR(15),
  C BIGINT,
  UNIQUE (B, C)
);
INSERT INTO T VALUES ('a', 'p', -9223372036854775808);
INSERT INTO T VALUES ('b', 'q', 4000);
INSERT INTO T VALUES ('c', 'r', 1700);
INSERT INTO T VALUES ('d', 'r', 9223372036854775807);
INSERT INTO T VALUES ('e', 's', 0);
SELECT A, C FROM T WHERE C > 1200 AND C < 9999999999 ORDER BY C;
SELECT STRING_AGG(C, '|') FROM T;
DROP VIEW IF EXISTS T1;
ROLLBACK TRANSACTION TO SAVEPOINT sp4771;
RELEASE SAVEPOINT sp4771;
ALTER TABLE T1 RENAME COLUMN a TO a_r3621;
SELECT a FROM T2 UNION SELECT a FROM (SELECT * FROM T2) AS sub;
SELECT LEAD(a, 2, a) OVER (ORDER BY a GROUPS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) FROM T2;
ANALYZE T;
VACUUM main;
SELECT COUNT(*) FILTER (WHERE b IS NOT NULL), SUM(rowid) FILTER (WHERE b > 0), COUNT(*) FILTER (WHERE 1=0), COUNT(*) FILTER (WHERE 1=1), COUNT(*) FILTER (WHERE NULL), AVG(b)
FILTER (WHERE b > 0 AND b < 100), COUNT(*) FILTER (WHERE typeof(b) = "text") FROM T2;
SELECT * FROM T2 WHERE a IN (SELECT a FROM T2 WHERE a IS NULL);
UPDATE T2 SET a = NULL;
CREATE TEMPORARY  VIEW IF NOT EXISTS v_T_8169 AS SELECT A FROM T;
DETACH DATABASE aux27;
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 /* STRING_AGG */ (WHERE a > 0 AND a < 100), COUNT(*) FILTER (WHERE typeof(a) = "text") FROM T1;
ANALYZE;
REINDEX;
DELETE FROM T WHERE 0;
SELECT * FROM T1 WHERE b = (SELECT MAX(b) FROM T1 WHERE b = (SELECT MAX(b) FROM T1));
SELECT AVG(b) FROM T1;
SELECT COUNT(*) FROM T2;
SELECT LAG(C, 1) OVER (ORDER BY C GROUPS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) FROM T;
INSERT INTO T2 SELECT * FROM T2;
DELETE FROM T1 WHERE 1;
INSERT INTO T VALUES (NULL, NULL, NULL) ON CONFLICT(A) DO UPDATE SET A = excluded.A, B = excluded.B, C = excluded.C;
ALTER TABLE T1 RENAME COLUMN a TO a_r8414;

SELECT COUNT(*) FROM T1;
CREATE TEMP  VIEW IF NOT EXISTS v_T_5315 AS SELECT A FROM T;
COMMIT TRANSACTION;
VACUUM;
INSERT OR ABORT INTO T VALUES (0, 0, 'x');
PRAGMA temp_store = 'MEMORY';
BEGIN TRANSACTION;
PRAGMA read_uncommitted = OFF;
ATTACH DATABASE ':memory:' AS aux27;
SAVEPOINT sp4771;
PRAGMA vdbe_trace == YES;
.check
BEGIN IMMEDIATE TRANSACTION;
.LImIt
CREATE TABLE T1	(
  a INTEGER,
  b TEXT
);
CREATE TABLE T2 (
  a INTEGER,
  b TEXT
);
INSERT INTO T1 VALUES (-unlikely(x''),'a'),(substr(octet_length(jsonb_group_array(json_array_length(rtrim('xxxhelloxxx', 'x')))), jsonb_insert('0', '$.key', 1)),'b');
INSERT INTO T2 VALUES (1,'c'),(1,'d');
SELECT T1.b,
(
  SELECT GROUP_CONCAT(b,',')
  FROM T2
  WHERE T2.a=T1.a
) AS c
FROM T1;
ROLLBACK;
ALTER TABLE T1 RENAME COLUMN a TO a_r2518;
ALTER TABLE T1 RENAME TO T1_r1276;
SELECT * FROM T2 WHERE b IN (SELECT b FROM T2 WHERE ROW_NUMBER() OVER (ORDER BY b) = 1);
CREATE TABLE T (
  a INTEGER,
  b TEXT,
  c REAL,
  d REAL
);
INSERT INTO T VALUES (1,'a',40.5,-70.0), (2,'b',-10.25,20.5), (3,'c',9e999,-9e999);
SELECT b FROM T WHERE ABS(c) > 5 AND ABS(d) > 5;
SELECT * FROM T1 WHERE EXISTS (SELECT 1 FROM T1 WHERE b = NULL);
CREATE TABLE T (
  A VARCHAR(10) PRIMARY KEY,
  B VARCHAR(15),
  C BIGINT,
  UNIQUE (B, C)
);
INSERT INTO T VALUES ('a', 'p', -9223372036854775808);
INSERT INTO T VALUES ('b', 'q', 4000);
INSERT INTO T VALUES ('c', 'r', 1700);
INSERT INTO T VALUES ('d', 'r', 9223372036854775807);
INSERT INTO T VALUES ('e', 's', 0);
SELECT A, C FROM T WHERE C > 1200 AND C < 9999999999 ORDER BY C;
SELECT STRING_AGG(C, '|') FROM T;
DROP VIEW IF EXISTS T1;
ROLLBACK TRANSACTION TO SAVEPOINT sp4771;
RELEASE SAVEPOINT sp4771;
ALTER TABLE T1 RENAME COLUMN a TO a_r3621;
SELECT a FROM T2 UNION SELECT a FROM (SELECT * FROM T2) AS sub;
SELECT LEAD(a, 2, a) OVER (ORDER BY a GROUPS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) FROM T2;
ANALYZE T;
VACUUM main;
SELECT COUNT(*) FILTER (WHERE b IS NOT NULL), SUM(rowid) FILTER (WHERE b > 0), COUNT(*) FILTER (WHERE 1=0), COUNT(*) FILTER (WHERE 1=1), COUNT(*) FILTER (WHERE NULL), AVG(b)
FILTER (WHERE b > 0 AND b < 100), COUNT(*) FILTER (WHERE typeof(b) = "text") FROM T2;
SELECT * FROM T2 WHERE a IN (SELECT a FROM T2 WHERE a IS NULL);
UPDATE T2 SET a = NULL;
CREATE TEMPORARY  VIEW IF NOT EXISTS v_T_8169 AS SELECT A FROM T;
DETACH DATABASE aux27;
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 /* STRING_AGG */ (WHERE a > 0 AND a < 100), COUNT(*) FILTER (WHERE typeof(a) = "text") FROM T1;
ANALYZE;
REINDEX;
DELETE FROM T WHERE 0;
SELECT * FROM T1 WHERE b = (SELECT MAX(b) FROM T1 WHERE b = (SELECT MAX(b) FROM T1));
SELECT AVG(b) FROM T1;
SELECT COUNT(*) FROM T2;
SELECT LAG(C, 1) OVER (ORDER BY C GROUPS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) FROM T;
INSERT INTO T2 SELECT * FROM T2;
DELETE FROM T1 WHERE 1;
INSERT INTO T VALUES (NULL, NULL, NULL) ON CONFLICT(A) DO UPDATE SET A = excluded.A, B = excluded.B, C = excluded.C;
ALTER TABLE T1 RENAME COLUMN a TO a_r8414;

SELECT COUNT(*) FROM T1;
CREATE TEMP  VIEW IF NOT EXISTS v_T_5315 AS SELECT A FROM T;
COMMIT TRANSACTION;
VACUUM;
INSERT OR ABORT INTO T VALUES (0, 0, 'x');
PRAGMA temp_store = 'MEMORY';
BEGIN TRANSACTION;
PRAGMA read_uncommitted = OFF;
ATTACH DATABASE ':memory:' AS aux27;
SAVEPOINT sp4771;
PRAGMA vdbe_trace == YES;
.check
BEGIN IMMEDIATE TRANSACTION;
.LImIt
CREATE TABLE T1	(
  a INTEGER,
  b TEXT
);
CREATE TABLE T2 (
  a INTEGER,
  b TEXT
);
INSERT INTO T1 VALUES (-unlikely(x''),'a'),(substr(octet_length(jsonb_group_array(json_array_length(rtrim('xxxhelloxxx', 'x')))), jsonb_insert('0', '$.key', 1)),'b');
INSERT INTO T2 VALUES (1,'c'),(1,'d');
SELECT T1.b,
(
  SELECT GROUP_CONCAT(b,',')
  FROM T2
  WHERE T2.a=T1.a
) AS c
FROM T1;
ROLLBACK;
ALTER TABLE T1 RENAME COLUMN a TO a_r2518;
ALTER TABLE T1 RENAME TO T1_r1276;
SELECT * FROM T2 WHERE b IN (SELECT b FROM T2 WHERE ROW_NUMBER() OVER (ORDER BY b) = 1);
CREATE TABLE T (
  a INTEGER,
  b TEXT,
  c REAL,
  d REAL
);
INSERT INTO T VALUES (1,'a',40.5,-70.0), (2,'b',-10.25,20.5), (3,'c',9e999,-9e999);
SELECT b FROM T WHERE ABS(c) > 5 AND ABS(d) > 5;
SELECT * FROM T1 WHERE EXISTS (SELECT 1 FROM T1 WHERE b = NULL);
CREATE TABLE T (
  A VARCHAR(10) PRIMARY KEY,
  B VARCHAR(15),
  C BIGINT,
  UNIQUE (B, C)
);
INSERT INTO T VALUES ('a', 'p', -9223372036854775808);
INSERT INTO T VALUES ('b', 'q', 4000);
INSERT INTO T VALUES ('c', 'r', 1700);
INSERT INTO T VALUES ('d', 'r', 9223372036854775807);
INSERT INTO T VALUES ('e', 's', 0);
SELECT A, C FROM T WHERE C > 1200 AND C < 9999999999 ORDER BY C;
SELECT STRING_AGG(C, '|') FROM T;
DROP VIEW IF EXISTS T1;
ROLLBACK TRANSACTION TO SAVEPOINT sp4771;
RELEASE SAVEPOINT sp4771;
ALTER TABLE T1 RENAME COLUMN a TO a_r3621;
SELECT a FROM T2 UNION SELECT a FROM (SELECT * FROM T2) AS sub;
SELECT LEAD(a, 2, a) OVER (ORDER BY a GROUPS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) FROM T2;
ANALYZE T;
VACUUM main;
SELECT COUNT(*) FILTER (WHERE b IS NOT NULL), SUM(rowid) FILTER (WHERE b > 0), COUNT(*) FILTER (WHERE 1=0), COUNT(*) FILTER (WHERE 1=1), COUNT(*) FILTER (WHERE NULL), AVG(b)
FILTER (WHERE b > 0 AND b < 100), COUNT(*) FILTER (WHERE typeof(b) = "text") FROM T2;
SELECT * FROM T2 WHERE a IN (SELECT a FROM T2 WHERE a IS NULL);
UPDATE T2 SET a = NULL;
CREATE TEMPORARY  VIEW IF NOT EXISTS v_T_8169 AS SELECT A FROM T;
DETACH DATABASE aux27;
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 /* STRING_AGG */ (WHERE a > 0 AND a < 100), COUNT(*) FILTER (WHERE typeof(a) = "text") FROM T1;
ANALYZE;
REINDEX;
DELETE FROM T WHERE 0;
SELECT * FROM T1 WHERE b = (SELECT MAX(b) FROM T1 WHERE b = (SELECT MAX(b) FROM T1));
SELECT AVG(b) FROM T1;
SELECT COUNT(*) FROM T2;
SELECT LAG(C, 1) OVER (ORDER BY C GROUPS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) FROM T;
INSERT INTO T2 SELECT * FROM T2;
DELETE FROM T1 WHERE 1;
INSERT INTO T VALUES (NULL, NULL, NULL) ON CONFLICT(A) DO UPDATE SET A = excluded.A, B = excluded.B, C = excluded.C;
ALTER TABLE T1 RENAME COLUMN a TO a_r8414;

SELECT COUNT(*) FROM T1;
CREATE TEMP  VIEW IF NOT EXISTS v_T_5315 AS SELECT A FROM T;
COMMIT TRANSACTION;
VACUUM;
INSERT OR ABORT INTO T VALUES (0, 0, 'x');
PRAGMA temp_store = 'MEMORY';
BEGIN TRANSACTION;
PRAGMA read_uncommitted = OFF;
ATTACH DATABASE ':memory:' AS aux27;
SAVEPOINT sp4771;
PRAGMA vdbe_trace == YES;
.check
BEGIN IMMEDIATE TRANSACTION;
.LImIt
CREATE TABLE T1	(
  a INTEGER,
  b TEXT
);
CREATE TABLE T2 (
  a INTEGER,
  b TEXT
);
INSERT INTO T1 VALUES (-unlikely(x''),'a'),(substr(octet_length(jsonb_group_array(json_array_length(rtrim('xxxhelloxxx', 'x')))), jsonb_insert('0', '$.key', 1)),'b');
INSERT INTO T2 VALUES (1,'c'),(1,'d');
SELECT T1.b,
(
  SELECT GROUP_CONCAT(b,',')
  FROM T2
  WHERE T2.a=T1.a
) AS c
FROM T1;
ROLLBACK;
ALTER TABLE T1 RENAME COLUMN a TO a_r2518;
ALTER TABLE T1 RENAME TO T1_r1276;
SELECT * FROM T2 WHERE b IN (SELECT b FROM T2 WHERE ROW_NUMBER() OVER (ORDER BY b) = 1);
CREATE TABLE T (
  a INTEGER,
  b TEXT,
  c REAL,
  d REAL
);
INSERT INTO T VALUES (1,'a',40.5,-70.0), (2,'b',-10.25,20.5), (3,'c',9e999,-9e999);
SELECT b FROM T WHERE ABS(c) > 5 AND ABS(d) > 5;
SELECT * FROM T1 WHERE EXISTS (SELECT 1 FROM T1 WHERE b = NULL);
CREATE TABLE T (
  A VARCHAR(10) PRIMARY KEY,
  B VARCHAR(15),
  C BIGINT,
  UNIQUE (B, C)
);
INSERT INTO T VALUES ('a', 'p', -9223372036854775808);
INSERT INTO T VALUES ('b', 'q', 4000);
INSERT INTO T VALUES ('c', 'r', 1700);
INSERT INTO T VALUES ('d', 'r', 9223372036854775807);
INSERT INTO T VALUES ('e', 's', 0);
SELECT A, C FROM T WHERE C > 1200 AND C < 9999999999 ORDER BY C;
SELECT STRING_AGG(C, '|') FROM T;
DROP VIEW IF EXISTS T1;
ROLLBACK TRANSACTION TO SAVEPOINT sp4771;
RELEASE SAVEPOINT sp4771;
ALTER TABLE T1 RENAME COLUMN a TO a_r3621;
SELECT a FROM T2 UNION SELECT a FROM (SELECT * FROM T2) AS sub;
SELECT LEAD(a, 2, a) OVER (ORDER BY a GROUPS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) FROM T2;
ANALYZE T;
VACUUM main;
SELECT COUNT(*) FILTER (WHERE b IS NOT NULL), SUM(rowid) FILTER (WHERE b > 0), COUNT(*) FILTER (WHERE 1=0), COUNT(*) FILTER (WHERE 1=1), COUNT(*) FILTER (WHERE NULL), AVG(b)
FILTER (WHERE b > 0 AND b < 100), COUNT(*) FILTER (WHERE typeof(b) = "text") FROM T2;
SELECT * FROM T2 WHERE a IN (SELECT a FROM T2 WHERE a IS NULL);
UPDATE T2 SET a = NULL;
CREATE TEMPORARY  VIEW IF NOT EXISTS v_T_8169 AS SELECT A FROM T;
DETACH DATABASE aux27;
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 /* STRING_AGG */ (WHERE a > 0 AND a < 100), COUNT(*) FILTER (WHERE typeof(a) = "text") FROM T1;
ANALYZE;
REINDEX;
DELETE FROM T WHERE 0;
SELECT * FROM T1 WHERE b = (SELECT MAX(b) FROM T1 WHERE b = (SELECT MAX(b) FROM T1));
SELECT AVG(b) FROM T1;
SELECT COUNT(*) FROM T2;
SELECT LAG(C, 1) OVER (ORDER BY C GROUPS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) FROM T;
INSERT INTO T2 SELECT * FROM T2;
DELETE FROM T1 WHERE 1;
INSERT INTO T VALUES (NULL, NULL, NULL) ON CONFLICT(A) DO UPDATE SET A = excluded.A, B = excluded.B, C = excluded.C;
ALTER TABLE T1 RENAME COLUMN a TO a_r8414;

SELECT COUNT(*) FROM T1;
CREATE TEMP  VIEW IF NOT EXISTS v_T_5315 AS SELECT A FROM T;
COMMIT TRANSACTION;
VACUUM;
INSERT OR ABORT INTO T VALUES (0, 0, 'x');

ALTER TABLE T ADD COLUMN extra_8880 CHAR(10) COLLATE NOCASE;
CREATE TRIGGER IF NOT EXISTS trg_T2_4692 AFTER DELETE ON T2 BEGIN SELECT RAISE(IGNORE); END;
PRAGMA temp_store = 'MEMORY';
BEGIN TRANSACTION;
PRAGMA read_uncommitted = OFF;
ATTACH DATABASE ':memory:' AS aux27;
SAVEPOINT sp4771;
PRAGMA vdbe_trace == YES;
.check
BEGIN IMMEDIATE TRANSACTION;
.LImIt
CREATE TABLE T1	(
  a INTEGER,
  b TEXT
);
CREATE TABLE T2 (
  a INTEGER,
  b TEXT
);
INSERT INTO T1 VALUES (-unlikely(x''),'a'),(substr(octet_length(jsonb_group_array(json_array_length(rtrim('xxxhelloxxx', 'x')))), jsonb_insert('0', '$.key', 1)),'b');
INSERT INTO T2 VALUES (1,'c'),(1,'d');
SELECT T1.b,
(
  SELECT GROUP_CONCAT(b,',')
  FROM T2
  WHERE T2.a=T1.a
) AS c
FROM T1;
ROLLBACK;
ALTER TABLE T1 RENAME COLUMN a TO a_r2518;
ALTER TABLE T1 RENAME TO T1_r1276;
SELECT * FROM T2 WHERE b IN (SELECT b FROM T2 WHERE ROW_NUMBER() OVER (ORDER BY b) = 1);
CREATE TABLE T (
  a INTEGER,
  b TEXT,
  c REAL,
  d REAL
);
INSERT INTO T VALUES (1,'a',40.5,-70.0), (2,'b',-10.25,20.5), (3,'c',9e999,-9e999);
SELECT b FROM T WHERE ABS(c) > 5 AND ABS(d) > 5;
SELECT * FROM T1 WHERE EXISTS (SELECT 1 FROM T1 WHERE +b = NULL);
CREATE TABLE T (
  A VARCHAR(10) PRIMARY KEY,
  B VARCHAR(15),
  C BIGINT,
  UNIQUE (B, C)
);
INSERT INTO T VALUES ('a', 'p', -9223372036854775808);
INSERT INTO T VALUES ('b', 'q', 4000);
INSERT INTO T VALUES ('c', 'r', 1700);
INSERT INTO T VALUES ('d', 'r', 9223372036854775807);
INSERT INTO T VALUES ('e', 's', 0);
SELECT A, C FROM T WHERE C > 1200 AND C < 9999999999 ORDER BY C;
SELECT STRING_AGG(C, '|') FROM T;
DROP VIEW IF EXISTS T1;
ROLLBACK TRANSACTION TO SAVEPOINT sp4771;
RELEASE SAVEPOINT sp4771;
ALTER TABLE T1 RENAME COLUMN a TO a_r3621;
SELECT a FROM T2 UNION SELECT a FROM (SELECT * FROM T2) AS sub;
SELECT LEAD(a, 2, a) OVER (ORDER BY a GROUPS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) FROM T2;
ANALYZE T;
VACUUM main;
SELECT COUNT(*) FILTER (WHERE b IS NOT NULL), SUM(rowid) FILTER (WHERE b > 0), COUNT(*) FILTER (WHERE 1=0), COUNT(*) FILTER (WHERE 1=1), COUNT(*) FILTER (WHERE NULL), AVG(b)
FILTER (WHERE b > 0 AND b < 100), COUNT(*) FILTER (WHERE typeof(b) = "text") FROM T2;
SELECT * FROM T2 WHERE a IN (SELECT a FROM T2 WHERE a IS NULL);
UPDATE T2 SET a = NULL;
CREATE TEMPORARY  VIEW IF NOT EXISTS v_T_8169 AS SELECT A FROM T;
DETACH DATABASE aux27;
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 /* STRING_AGG */ (WHERE a > 0 AND a < 100), COUNT(*) FILTER (WHERE typeof(a) = "text") FROM T1;
ANALYZE;
REINDEX;
DELETE FROM T WHERE 0;
SELECT * FROM T1 WHERE b = (SELECT MAX(b) FROM T1 WHERE b = (SELECT MAX(b) FROM T1));
SELECT AVG(b) FROM T1;
SELECT COUNT(*) FROM T2;
SELECT LAG(C, 1) OVER (ORDER BY C GROUPS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) FROM T;
INSERT INTO T2 SELECT * FROM T2;
DELETE FROM T1 WHERE 1;
INSERT INTO T VALUES (NULL, NULL, NULL) ON CONFLICT(A) DO UPDATE SET A = excluded.A, B = excluded.B, C = excluded.C;
ALTER TABLE T1 RENAME COLUMN a TO a_r8414;

SELECT COUNT(*) FROM T1;
CREATE TEMP  VIEW IF NOT EXISTS v_T_5315 AS SELECT A FROM T;
COMMIT TRANSACTION;
VACUUM;
INSERT OR ABORT INTO T VALUES (0, 0, 'x');
PRAGMA temp_store = 'MEMORY';
BEGIN TRANSACTION;
PRAGMA read_uncommitted = OFF;
ATTACH DATABASE ':memory:' AS aux27;
SAVEPOINT sp4771;
PRAGMA vdbe_trace == YES;
.check
BEGIN IMMEDIATE TRANSACTION;
.LImIt
CREATE TABLE T1	(
  a INTEGER,
  b TEXT
);
CREATE TABLE T2 (
  a INTEGER,
  b TEXT
);
INSERT INTO T1 VALUES (-unlikely(x''),'a'),(substr(octet_length(jsonb_group_array(json_array_length(rtrim('xxxhelloxxx', 'x')))), jsonb_insert('0', '$.key', 1)),'b');
INSERT INTO T2 VALUES (1,'c'),(1,'d');
SELECT T1.b,
(
  SELECT GROUP_CONCAT(b,',')
  FROM T2
  WHERE T2.a=T1.a
) AS c
FROM T1;
ROLLBACK;
ALTER TABLE T1 RENAME COLUMN a TO a_r2518;
ALTER TABLE T1 RENAME TO T1_r1276;
SELECT * FROM T2 WHERE b IN (SELECT b FROM T2 WHERE ROW_NUMBER() OVER (ORDER BY b) = 1);
CREATE TABLE T (
  a INTEGER,
  b TEXT,
  c REAL,
  d REAL
);
INSERT INTO T VALUES (1,'a',40.5,-70.0), (2,'b',-10.25,20.5), (3,'c',9e999,-9e999);
SELECT b FROM T WHERE ABS(c) > 5 AND ABS(d) > 5;
SELECT * FROM T1 WHERE EXISTS (SELECT 1 FROM T1 WHERE b = NULL);
CREATE TABLE T (
  A VARCHAR(10) PRIMARY KEY,
  B VARCHAR(15),
  C BIGINT,
  UNIQUE (B, C)
);
INSERT INTO T VALUES ('a', 'p', -9223372036854775808);
INSERT INTO T VALUES ('b', 'q', 4000);
INSERT INTO T VALUES ('c', 'r', 1700);
INSERT INTO T VALUES ('d', 'r', 9223372036854775807);
INSERT INTO T VALUES ('e', 's', 0);
SELECT A, C FROM T WHERE C > 1200 AND C < 9999999999 ORDER BY C;
SELECT STRING_AGG(C, '|') FROM T;
DROP VIEW IF EXISTS T1;
ROLLBACK TRANSACTION TO SAVEPOINT sp4771;
RELEASE SAVEPOINT sp4771;
ALTER TABLE T1 RENAME COLUMN a TO a_r3621;
SELECT a FROM T2 UNION SELECT a FROM (SELECT * FROM T2) AS sub;
SELECT LEAD(a, 2, a) OVER (ORDER BY a GROUPS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) FROM T2;
ANALYZE T;
VACUUM main;
SELECT COUNT(*) FILTER (WHERE b IS NOT NULL), SUM(rowid) FILTER (WHERE b > 0), COUNT(*) FILTER (WHERE 1=0), COUNT(*) FILTER (WHERE 1=1), COUNT(*) FILTER (WHERE NULL), AVG(b)
FILTER (WHERE b > 0 AND b < 100), COUNT(*) FILTER (WHERE typeof(b) = "text") FROM T2;
SELECT * FROM T2 WHERE a IN (SELECT a FROM T2 WHERE a IS NULL);
UPDATE T2 SET a = NULL;
CREATE TEMPORARY  VIEW IF NOT EXISTS v_T_8169 AS SELECT A FROM T;
DETACH DATABASE aux27;
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 /* STRING_AGG */ (WHERE a > 0 AND a < 100), COUNT(*) FILTER (WHERE typeof(a) = "text") FROM T1;
ANALYZE;
REINDEX;
DELETE FROM T WHERE 0;
SELECT * FROM T1 WHERE b = (SELECT MAX(b) FROM T1 WHERE b = (SELECT MAX(b) FROM T1));
SELECT AVG(b) FROM T1;
SELECT COUNT(*) FROM T2;
SELECT LAG(C, 1) OVER (ORDER BY C GROUPS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) FROM T;
INSERT INTO T2 SELECT * FROM T2;
DELETE FROM T1 WHERE 1;
INSERT INTO T VALUES (NULL, NULL, NULL) ON CONFLICT(A) DO UPDATE SET A = excluded.A, B = excluded.B, C = excluded.C;
ALTER TABLE T1 RENAME COLUMN a TO a_r8414;

SELECT COUNT(*) FROM T1;
CREATE TEMP  VIEW IF NOT EXISTS v_T_5315 AS SELECT A FROM T;
COMMIT TRANSACTION;
VACUUM;
INSERT OR ABORT INTO T VALUES (0, 0, 'x');
PRAGMA temp_store = 'MEMORY';
BEGIN TRANSACTION;
PRAGMA read_uncommitted = OFF;
ATTACH DATABASE ':memory:' AS aux27;
SAVEPOINT sp4771;
PRAGMA vdbe_trace == YES;
.check
BEGIN IMMEDIATE TRANSACTION;
.LImIt
CREATE TABLE T1	(
  a INTEGER,
  b TEXT
);
CREATE TABLE T2 (
  a INTEGER,
  b TEXT
);
INSERT INTO T1 VALUES (-unlikely(x''),'a'),(substr(octet_length(jsonb_group_array(json_array_length(rtrim('xxxhelloxxx', 'x')))), jsonb_insert('0', '$.key', 1)),'b');
INSERT INTO T2 VALUES (1,'c'),(1,'d');
SELECT T1.b,
(
  SELECT GROUP_CONCAT(b,',')
  FROM T2
  WHERE T2.a=T1.a
) AS c
FROM T1;
ROLLBACK;
ALTER TABLE T1 RENAME COLUMN a TO a_r2518;
ALTER TABLE T1 RENAME TO T1_r1276;
SELECT * FROM T2 WHERE b IN (SELECT b FROM T2 WHERE ROW_NUMBER() OVER (ORDER BY b) = 1);
CREATE TABLE T (
  a INTEGER,
  b TEXT,
  c REAL,
  d REAL
);
INSERT INTO T VALUES (1,'a',40.5,-70.0), (2,'b',-10.25,20.5), (3,'c',9e999,-9e999);
SELECT b FROM T WHERE ABS(c) > 5 AND ABS(d) > 5;
SELECT * FROM T1 WHERE EXISTS (SELECT 1 FROM T1 WHERE b = NULL);
CREATE TABLE T (
  A VARCHAR(10) PRIMARY KEY,
  B VARCHAR(15),
  C BIGINT,
  UNIQUE (B, C)
);
INSERT INTO T VALUES ('a', 'p', -9223372036854775808);
INSERT INTO T VALUES ('b', 'q', 4000);
INSERT INTO T VALUES ('c', 'r', 1700);
INSERT INTO T VALUES ('d', 'r', 9223372036854775807);
INSERT INTO T VALUES ('e', 's', 0);
SELECT A, C FROM T WHERE C > 1200 AND C < 9999999999 ORDER BY C;
SELECT STRING_AGG(C, '|') FROM T;
DROP VIEW IF EXISTS T1;
ROLLBACK TRANSACTION TO SAVEPOINT sp4771;
RELEASE SAVEPOINT sp4771;
ALTER TABLE T1 RENAME COLUMN a TO a_r3621;
SELECT a FROM T2 UNION SELECT a FROM (SELECT * FROM T2) AS sub;
SELECT LEAD(a, 2, a) OVER (ORDER BY a GROUPS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) FROM T2;
ANALYZE T;
VACUUM main;
SELECT COUNT(*) FILTER (WHERE b IS NOT NULL), SUM(rowid) FILTER (WHERE b > 0), COUNT(*) FILTER (WHERE 1=0), COUNT(*) FILTER (WHERE 1=1), COUNT(*) FILTER (WHERE NULL), AVG(b)
FILTER (WHERE b > 0 AND b < 100), COUNT(*) FILTER (WHERE typeof(b) = "text") FROM T2;
SELECT * FROM T2 WHERE a IN (SELECT a FROM T2 WHERE a IS NULL);
UPDATE T2 SET a = NULL;
CREATE TEMPORARY  VIEW IF NOT EXISTS v_T_8169 AS SELECT A FROM T;
DETACH DATABASE aux27;
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 /* STRING_AGG */ (WHERE a > 0 AND a < 100), COUNT(*) FILTER (WHERE typeof(a) = "text") FROM T1;
ANALYZE;
REINDEX;
DELETE FROM T WHERE 0;
SELECT * FROM T1 WHERE b = (SELECT MAX(b) FROM T1 WHERE b = (SELECT MAX(b) FROM T1));
SELECT AVG(b) FROM T1;
SELECT COUNT(*) FROM T2;
SELECT LAG(C, 1) OVER (ORDER BY C GROUPS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) FROM T;
INSERT INTO T2 SELECT * FROM T2;
DELETE FROM T1 WHERE 1;
INSERT INTO T VALUES (NULL, NULL, NULL) ON CONFLICT(A) DO UPDATE SET A = excluded.A, B = excluded.B, C = excluded.C;
ALTER TABLE T1 RENAME COLUMN a TO a_r8414;

SELECT COUNT(*) FROM T1;
CREATE TEMP  VIEW IF NOT EXISTS v_T_5315 AS SELECT A FROM T;
COMMIT TRANSACTION;
VACUUM;
INSERT OR ABORT INTO T VALUES (0, 0, 'x');
PRAGMA temp_store = 'MEMORY';
BEGIN TRANSACTION;
PRAGMA read_uncommitted = OFF;
ATTACH DATABASE ':memory:' AS aux27;
SAVEPOINT sp4771;
PRAGMA vdbe_trace == YES;
.check
BEGIN IMMEDIATE TRANSACTION;
.LImIt
CREATE TABLE T1	(
  a INTEGER,
  b TEXT
);
CREATE TABLE T2 (
  a INTEGER,
  b TEXT
);
INSERT INTO T1 VALUES (-unlikely(x''),'a'),(substr(octet_length(jsonb_group_array(json_array_length(rtrim('xxxhelloxxx', 'x')))), jsonb_insert('0', '$.key', 1)),'b');
INSERT INTO T2 VALUES (1,'c'),(1,'d');
SELECT T1.b,
(
  SELECT GROUP_CONCAT(b,',')
  FROM T2
  WHERE T2.a=T1.a
) AS c
FROM T1;
ROLLBACK;
ALTER TABLE T1 RENAME COLUMN a TO a_r2518;
ALTER TABLE T1 RENAME TO T1_r1276;
SELECT * FROM T2 WHERE b IN (SELECT b FROM T2 WHERE ROW_NUMBER() OVER (ORDER BY b) = 1);
CREATE TABLE T (
  a INTEGER,
  b TEXT,
  c REAL,
  d REAL
);
INSERT INTO T VALUES (1,'a',40.5,-70.0), (2,'b',-10.25,20.5), (3,'c',9e999,-9e999);
SELECT b FROM T WHERE ABS(c) > 5 AND ABS(d) > 5;
SELECT * FROM T1 WHERE EXISTS (SELECT 1 FROM T1 WHERE b = NULL);
CREATE TABLE T (
  A VARCHAR(10) PRIMARY KEY,
  B VARCHAR(15),
  C BIGINT,
  UNIQUE (B, C)
);
INSERT INTO T VALUES ('a', 'p', -9223372036854775808);
INSERT INTO T VALUES ('b', 'q', 4000);
INSERT INTO T VALUES ('c', 'r', 1700);
INSERT INTO T VALUES ('d', 'r', 9223372036854775807);
INSERT INTO T VALUES ('e', 's', 0);
SELECT A, C FROM T WHERE C > 1200 AND C < 9999999999 ORDER BY C;
SELECT STRING_AGG(C, '|') FROM T;
DROP VIEW IF EXISTS T1;
ROLLBACK TRANSACTION TO SAVEPOINT sp4771;
RELEASE SAVEPOINT sp4771;
ALTER TABLE T1 RENAME COLUMN a TO a_r3621;
SELECT a FROM T2 UNION SELECT a FROM (SELECT * FROM T2) AS sub;
SELECT LEAD(a, 2, a) OVER (ORDER BY a GROUPS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) FROM T2;
ANALYZE T;
VACUUM main;
SELECT COUNT(*) FILTER (WHERE b IS NOT NULL), SUM(rowid) FILTER (WHERE b > 0), COUNT(*) FILTER (WHERE 1=0), COUNT(*) FILTER (WHERE 1=1), COUNT(*) FILTER (WHERE NULL), AVG(b)
FILTER (WHERE b > 0 AND b < 100), COUNT(*) FILTER (WHERE typeof(b) = "text") FROM T2;
SELECT * FROM T2 WHERE a IN (SELECT a FROM T2 WHERE a IS NULL);
UPDATE T2 SET a = NULL;
CREATE TEMPORARY  VIEW IF NOT EXISTS v_T_8169 AS SELECT A FROM T;
DETACH DATABASE aux27;
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 /* STRING_AGG */ (WHERE a > 0 AND a < 100), COUNT(*) FILTER (WHERE typeof(a) = "text") FROM T1;
ANALYZE;
REINDEX;
DELETE FROM T WHERE 0;
SELECT * FROM T1 WHERE b = (SELECT MAX(b) FROM T1 WHERE b = (SELECT MAX(b) FROM T1));
SELECT AVG(b) FROM T1;
SELECT COUNT(*) FROM T2;
SELECT LAG(C, 1) OVER (ORDER BY C GROUPS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) FROM T;
INSERT INTO T2 SELECT * FROM T2;
DELETE FROM T1 WHERE 1;
INSERT INTO T VALUES (NULL, NULL, NULL) ON CONFLICT(A) DO UPDATE SET A = excluded.A, B = excluded.B, C = excluded.C;
ALTER TABLE T1 RENAME COLUMN a TO a_r8414;

SELECT COUNT(*) FROM T1;
CREATE TEMP  VIEW IF NOT EXISTS v_T_5315 AS SELECT A FROM T;
COMMIT TRANSACTION;
VACUUM;
INSERT OR ABORT INTO T VALUES (0, 0, 'x');
PRAGMA temp_store = 'MEMORY';
BEGIN TRANSACTION;
PRAGMA read_uncommitted = OFF;
ATTACH DATABASE ':memory:' AS aux27;
SAVEPOINT sp4771;
PRAGMA vdbe_trace == YES;
.check
BEGIN IMMEDIATE TRANSACTION;
.LImIt
CREATE TABLE T1	(
  a INTEGER,
  b TEXT
);
CREATE TABLE T2 (
  a INTEGER,
  b TEXT
);
INSERT INTO T1 VALUES (-unlikely(x''),'a'),(substr(octet_length(jsonb_group_array(json_array_length(rtrim('xxxhelloxxx', 'x')))), jsonb_insert('0', '$.key', 1)),'b');
INSERT INTO T2 VALUES (1,'c'),(1,'d');
SELECT T1.b,
(
  SELECT GROUP_CONCAT(b,',')
  FROM T2
  WHERE T2.a=T1.a
) AS c
FROM T1;
ROLLBACK;
ALTER TABLE T1 RENAME COLUMN a TO a_r2518;
ALTER TABLE T1 RENAME TO T1_r1276;
SELECT * FROM T2 WHERE b IN (SELECT b FROM T2 WHERE ROW_NUMBER() OVER (ORDER BY b) = 1);
CREATE TABLE T (
  a INTEGER,
  b TEXT,
  c REAL,
  d REAL
);
INSERT INTO T VALUES (1,'a',40.5,-70.0), (2,'b',-10.25,20.5), (3,'c',9e999,-9e999);
SELECT b FROM T WHERE ABS(c) > 5 AND ABS(d) > 5;
SELECT * FROM T1 WHERE EXISTS (SELECT 1 FROM T1 WHERE b = NULL);
CREATE TABLE T (
  A VARCHAR(10) PRIMARY KEY,
  B VARCHAR(15),
  C BIGINT,
  UNIQUE (B, C)
);
INSERT INTO T VALUES ('a', 'p', -9223372036854775808);
INSERT INTO T VALUES ('b', 'q', 4000);
INSERT INTO T VALUES ('c', 'r', 1700);
INSERT INTO T VALUES ('d', 'r', 9223372036854775807);
INSERT INTO T VALUES ('e', 's', 0);
SELECT A, C FROM T WHERE C > 1200 AND C < 9999999999 ORDER BY C;
SELECT STRING_AGG(C, '|') FROM T;
DROP VIEW IF EXISTS T1;
ROLLBACK TRANSACTION TO SAVEPOINT sp4771;
RELEASE SAVEPOINT sp4771;
ALTER TABLE T1 RENAME COLUMN a TO a_r3621;
SELECT a FROM T2 UNION SELECT a FROM (SELECT * FROM T2) AS sub;
SELECT LEAD(a, 2, a) OVER (ORDER BY a GROUPS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) FROM T2;
ANALYZE T;
VACUUM main;
SELECT COUNT(*) FILTER (WHERE b IS NOT NULL), SUM(rowid) FILTER (WHERE b > 0), COUNT(*) FILTER (WHERE 1=0), COUNT(*) FILTER (WHERE 1=1), COUNT(*) FILTER (WHERE NULL), AVG(b)
FILTER (WHERE b > 0 AND b < 100), COUNT(*) FILTER (WHERE typeof(b) = "text") FROM T2;
SELECT * FROM T2 WHERE a IN (SELECT a FROM T2 WHERE a IS NULL);
UPDATE T2 SET a = NULL;
CREATE TEMPORARY  VIEW IF NOT EXISTS v_T_8169 AS SELECT A FROM T;
DETACH DATABASE aux27;
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 /* STRING_AGG */ (WHERE a > 0 AND a < 100), COUNT(*) FILTER (WHERE typeof(a) = "text") FROM T1;
ANALYZE;
REINDEX;
DELETE FROM T WHERE 0;
SELECT * FROM T1 WHERE b = (SELECT MAX(b) FROM T1 WHERE b = (SELECT MAX(b) FROM T1));
SELECT AVG(b) FROM T1;
SELECT COUNT(*) FROM T2;
SELECT LAG(C, 1) OVER (ORDER BY C GROUPS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING) FROM T;
INSERT INTO T2 SELECT * FROM T2;
DELETE FROM T1 WHERE 1;
INSERT INTO T VALUES (NULL, NULL, NULL) ON CONFLICT(A) DO UPDATE SET A = excluded.A, B = excluded.B, C = excluded.C;
ALTER TABLE T1 RENAME COLUMN a TO a_r8414;

SELECT COUNT(*) FROM T1;
CREATE TEMP  VIEW IF NOT EXISTS v_T_5315 AS SELECT A FROM T;
COMMIT TRANSACTION;
VACUUM;
INSERT OR ABORT INTO T VALUES (0, 0, 'x');

ALTER TABLE T ADD COLUMN extra_8880 CHAR(10) COLLATE NOCASE;
CREATE TRIGGER IF NOT EXISTS trg_T2_4692 AFTER DELETE ON T2 BEGIN SELECT RAISE(IGNORE); END;

SELECT * FROM T2 t1 FULL JOIN T2 t2 ON t1.b = (SELECT b FROM T2 WHERE b = t1.b);
ALTER TABLE T1 RENAME COLUMN a TO a_r5692;
SELECT * FROM T1;
SELECT NTILE(-1) OVER (ORDER BY b RANGE BETWEEN 1 PRECEDING AND 1 FOLLOWING) FROM T1;
INSERT INTO T DEFAULT VALUES;
SELECT * FROM T1 WHERE b IN (SELECT b FROM T1 WHERE 1/0 = 0);SELECT * FROM T1 WHERE b IN (SELECT b FROM T1 LIMIT -1);
ALTER TABLE T1 RENAME TO T1_r5127;
ALTER TABLE T1 RENAME TO T1_r8100;
INSERT INTO T1 DEFAULT VALUES;
DETACH DATABASE aux74;
UPDATE T2 SET a = 'x' WHERE a BETWEEN 0 AND 100 RETURNING *;
ALTER TABLE T1 RENAME COLUMN a TO a_r3522;
ALTER TABLE T2 RENAME COLUMN a TO a_r9165;
CREATE TEMPORARY TABLE t0(x, y, z);
SELECT -99999999999999999999999999999999999999999999999999;
SELECT * FROM sqlite_temp_master WHERE sql GLOB '000[]***';
DROP TABLE t0;
SELECT * FROM t0 WHERE z NOT IN (SELECT z FROM t0 WHERE z IS NOT NULL);
WITH RECURSIVE multi(a, b, c) AS (VALUES(1, 2, 3) UNION ALL SELECT a+1, b+1, c+1 FROM multi WHERE a<64) SELECT * FROM multi;
PRAGMA short_column_names = OFF;
INSERT INTO T1 VALUES (NULL, 'x') ON CONFLICT(a) DO UPDATE SET a = excluded.a, b = excluded.b;
REINDEX;
ALTER TABLE t0 RENAME COLUMN z TO z_r5556;
```

## Actual output

```sql
1
```

## Expectation

```sql
Page cache size increased to 1296 to accommodate the 272-byte headers
1
```

## Flag

```
-pagecache 1024 5
```

