## 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
.connection
ATTACH DATABASE ':memory:' AS aux71;
CREATE TABLE T1 (
  A VARCHAR(9223372036854775808) PRIMARY KEY,
  B VARCHAR(15) UNIQUE,
  C INTEGER
);
CREATE TABLE T2 (
  X VARCHAR(20) PRIMARY KEY,
  A VARCHAR(10) NOT NULL UNIQUE,
  FOREIGN KEY (A) REFERENCES T1(A)
);
INSERT INTO T1 VALUES ('a', 'p', -2147483648);
INSERT INTO T1 VALUES ('b', 'q', 2147483647);
INSERT INTO T2 VALUES ('m', 'a');
INSERT INTO T2 VALUES ('n', 'b');
SELECT T2.X, T1.B, T1.C FROM T2, T1 WHERE T2.A IS T1.A OR T1.C >= 0;
PRAGMA shrink_memory;
PRAGMA auto_vacuum = NONE;
PRAGMA journal_mode = 'TRUNCATE';
.tables
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;
ALTER TABLE T DROP COLUMN b;
CREATE TEMPORARY  VIEW IF NOT EXISTS v_T_6632 AS SELECT b FROM T;
DETACH DATABASE aux71;
INSERT INTO T1 VALUES (NULL, NULL, NULL);
CREATE TRIGGER IF NOT EXISTS trg_T1_1019 BEFORE DELETE ON T1 FOR EACH ROW BEGIN SELECT RAISE(ROLLBACK, 'rb'); END;

SELECT COUNT(*) FROM T1;
WITH a AS MATERIALIZED (SELECT * FROM T1), b AS NOT MATERIALIZED (SELECT * FROM a) SELECT * FROM b;
INSERT OR REPLACE INTO T1 VALUES (NULL, 'x', '');
SELECT GROUP_CONCAT(B, '.') OVER (PARTITION BY B ORDER BY B ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW) FROM T1;
SELECT NTILE(4) OVER (PARTITION BY a ORDER BY a RANGE BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING EXCLUDE NO OTHERS) FROM T;
PRAGMA module_list;
```

## Actual output

```sql
ACTIVE 0: :memory:
m|p|-2147483648
m|q|2147483647
n|q|2147483647
memory
T1  T2
a
b
c
3
a|p|-2147483648
b|q|2147483647
||

p
q
x
1
1
1
sqlite_dbdata
generate_series
completion
fsdir
tables_used
sqlite_stmt
json_tree
fts4aux
fts3
fts4
sqlite_dbptr
fts3tokenize
bytecode
rtree_i32
sqlite_dbpage
rtree
dbstat
json_each
```

## Expectation

```sql
ACTIVE 0: :memory:
m|p|-2147483648
m|q|2147483647
n|q|2147483647
memory
T1  T2
a
b
c
3
a|p|-2147483648
b|q|2147483647
||

p
q
x
1
1
1
fsdir
generate_series
bytecode
dbstat
tables_used
sqlite_stmt
sqlite_dbpage
rtree_i32
fts4aux
fts3
zipfile
fts4
completion
rtree
fts3tokenize
```

## Flag

```

```

