## 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
PRAGMA cell_size_check = 0;
PRAGMA auto_vacuum = 2;
.timer on
PRAGMA defer_foreign_keys = FALSE;
BEGIN DEFERRED TRANSACTION;
-- glob('[!0-9]', 'a')

ATTACH DATABASE (':memory:' || '') AS aux25;
-- sqlite_compileoption_used({v})

-- NOCASE

CREATE VIRTUAL TABLE t0 USING /**/ fts4("x", "y", /**/ "z");
DROP TABLE t0;
DETACH DATABASE aux25;
END TRANSACTION;
PRAGMA defer_foreign_keys = FALSE;
BEGIN DEFERRED TRANSACTION;
-- glob('[!0-9]', 'a')

ATTACH DATABASE (':memory:' || '') AS aux25;
-- sqlite_compileoption_used({v})

-- NOCASE

CREATE VIRTUAL TABLE t0 USING /**/ fts4("x", "y", "z");
DROP TABLE t0;
DETACH DATABASE aux25;
END TRANSACTION;
PRAGMA defer_foreign_keys = FALSE;
BEGIN DEFERRED TRANSACTION;
-- glob('[!0-9]', 'a')

ATTACH DATABASE (':memory:' || '') AS aux25;
-- sqlite_compileoption_used({v})

-- NOCASE

CREATE VIRTUAL TABLE t0 USING /**/ fts4("x", "y", "z");
DROP TABLE t0;
DETACH DATABASE aux25;
END TRANSACTION;

CREATE TABLE T1 (
  a INTEGER,
  b TEXT
);
CREATE TABLE T2 (
  a INTEGER,
  b TEXT
);
INSERT INTO T1 VALUES (-(-(1)),'a'),(2,'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;
SELECT * FROM T1 WHERE (a, a) IN (SELECT a, a FROM T1);
ALTER TABLE T2 DROP COLUMN b;
```

## Actual output

```sql
Run Time: real 0.000 user 0.000020 sys 0.000000
Run Time: real 0.000 user 0.000003 sys 0.000000
Run Time: real 0.000 user 0.000049 sys 0.000000
Run Time: real 0.001 user 0.000508 sys 0.000000
Run Time: real 0.000 user 0.000343 sys 0.000000
Run Time: real 0.000 user 0.000008 sys 0.000000
Run Time: real 0.000 user 0.000006 sys 0.000000
Run Time: real 0.000 user 0.000004 sys 0.000000
Run Time: real 0.000 user 0.000002 sys 0.000000
Run Time: real 0.000 user 0.000036 sys 0.000000
Run Time: real 0.000 user 0.000383 sys 0.000000
Run Time: real 0.001 user 0.000241 sys 0.000000
Run Time: real 0.000 user 0.000006 sys 0.000000
Run Time: real 0.000 user 0.000004 sys 0.000000
Run Time: real 0.000 user 0.000003 sys 0.000000
Run Time: real 0.000 user 0.000002 sys 0.000000
Run Time: real 0.000 user 0.000030 sys 0.000000
Run Time: real 0.000 user 0.000358 sys 0.000000
Run Time: real 0.000 user 0.000222 sys 0.000000
Run Time: real 0.000 user 0.000005 sys 0.000000
Run Time: real 0.000 user 0.000004 sys 0.000000
Run Time: real 0.000 user 0.000055 sys 0.000000
Run Time: real 0.000 user 0.000064 sys 0.000000
Run Time: real 0.000 user 0.000025 sys 0.000000
Run Time: real 0.000 user 0.000012 sys 0.000000
a|c,d
b|
Run Time: real 0.000 user 0.000057 sys 0.000000
1|a
2|b
Run Time: real 0.000 user 0.000050 sys 0.000000
Run Time: real 0.001 user 0.000548 sys 0.000000
```

## Expectation

```sql
Run Time: real 0.000003 user 0.000011 sys 0.000000
Run Time: real 0.000001 user 0.000002 sys 0.000000
Run Time: real 0.000027 user 0.000028 sys 0.000000
Run Time: real 0.000311 user 0.000311 sys 0.000000
Run Time: real 0.000193 user 0.000193 sys 0.000000
Run Time: real 0.000006 user 0.000006 sys 0.000000
Run Time: real 0.000004 user 0.000004 sys 0.000000
Run Time: real 0.000002 user 0.000003 sys 0.000000
Run Time: real 0.000001 user 0.000001 sys 0.000000
Run Time: real 0.000020 user 0.000020 sys 0.000000
Run Time: real 0.000190 user 0.000191 sys 0.000000
Run Time: real 0.000129 user 0.000130 sys 0.000000
Run Time: real 0.000003 user 0.000004 sys 0.000000
Run Time: real 0.000002 user 0.000003 sys 0.000000
Run Time: real 0.000001 user 0.000002 sys 0.000000
Run Time: real 0.000000 user 0.000001 sys 0.000000
Run Time: real 0.000015 user 0.000015 sys 0.000000
Run Time: real 0.000175 user 0.000176 sys 0.000000
Run Time: real 0.000109 user 0.000110 sys 0.000000
Run Time: real 0.000003 user 0.000003 sys 0.000000
Run Time: real 0.000002 user 0.000003 sys 0.000000
Run Time: real 0.000027 user 0.000027 sys 0.000000
Run Time: real 0.000022 user 0.000023 sys 0.000000
Run Time: real 0.000015 user 0.000015 sys 0.000000
Run Time: real 0.000006 user 0.000006 sys 0.000000
a|c,d
b|
Run Time: real 0.000031 user 0.000032 sys 0.000000
1|a
2|b
Run Time: real 0.000030 user 0.000030 sys 0.000000
Run Time: real 0.000263 user 0.000263 sys 0.000000
```

## Flag

```

```

