## 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
.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);
```

## Actual output

```sql
Run Time: real 0.000 user 0.000058 sys 0.000000
Run Time: real 0.000 user 0.000005 sys 0.000000
Run Time: real 0.000 user 0.000138 sys 0.000000
Run Time: real 0.001 user 0.000480 sys 0.000000
Run Time: real 0.000 user 0.000270 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.000005 sys 0.000000
Run Time: real 0.000 user 0.000002 sys 0.000000
Run Time: real 0.000 user 0.000033 sys 0.000000
Run Time: real 0.000 user 0.000342 sys 0.000000
Run Time: real 0.001 user 0.000213 sys 0.000000
Run Time: real 0.000 user 0.000012 sys 0.000000
Run Time: real 0.000 user 0.000008 sys 0.000000
Run Time: real 0.000 user 0.000005 sys 0.000000
Run Time: real 0.000 user 0.000002 sys 0.000000
Run Time: real 0.000 user 0.000045 sys 0.000000
Run Time: real 0.001 user 0.000357 sys 0.000000
Run Time: real 0.000 user 0.000200 sys 0.000000
Run Time: real 0.000 user 0.000005 sys 0.000000
Run Time: real 0.000 user 0.000005 sys 0.000000
Run Time: real 0.000 user 0.000047 sys 0.000000
Run Time: real 0.000 user 0.000040 sys 0.000000
Run Time: real 0.000 user 0.000021 sys 0.000000
Run Time: real 0.000 user 0.000010 sys 0.000000
a|c,d
b|
Run Time: real 0.000 user 0.000046 sys 0.000000
1|a
2|b
Run Time: real 0.000 user 0.000040 sys 0.000000
```

## Expectation

```sql
Run Time: real 0.000027 user 0.000039 sys 0.000000
Run Time: real 0.000005 user 0.000005 sys 0.000000
Run Time: real 0.000094 user 0.000095 sys 0.000000
Run Time: real 0.000228 user 0.000228 sys 0.000000
Run Time: real 0.000144 user 0.000145 sys 0.000000
Run Time: real 0.000005 user 0.000004 sys 0.000000
Run Time: real 0.000003 user 0.000004 sys 0.000000
Run Time: real 0.000002 user 0.000002 sys 0.000000
Run Time: real 0.000001 user 0.000001 sys 0.000000
Run Time: real 0.000014 user 0.000015 sys 0.000000
Run Time: real 0.000129 user 0.000130 sys 0.000000
Run Time: real 0.000091 user 0.000091 sys 0.000000
Run Time: real 0.000003 user 0.000002 sys 0.000000
Run Time: real 0.000002 user 0.000002 sys 0.000000
Run Time: real 0.000001 user 0.000001 sys 0.000000
Run Time: real 0.000001 user 0.000001 sys 0.000000
Run Time: real 0.000010 user 0.000011 sys 0.000000
Run Time: real 0.000114 user 0.000114 sys 0.000000
Run Time: real 0.000073 user 0.000073 sys 0.000000
Run Time: real 0.000002 user 0.000002 sys 0.000000
Run Time: real 0.000002 user 0.000001 sys 0.000000
Run Time: real 0.000018 user 0.000018 sys 0.000000
Run Time: real 0.000014 user 0.000015 sys 0.000000
Run Time: real 0.000012 user 0.000012 sys 0.000000
Run Time: real 0.000004 user 0.000004 sys 0.000000
a|c,d
b|
Run Time: real 0.000027 user 0.000026 sys 0.000000
1|a
2|b
Run Time: real 0.000025 user 0.000025 sys 0.000000
```

## Flag

```

```

