## 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 DOUBLE PRIMARY KEY, b TEXT, c INT, d INT);
CREATE TABLE T (
  a TEXT,
  b TEXT
);
INSERT INTO T VALUES ('a','b'), ('c','d');
SELECT * FROM T WHERE a = REPLACE('a;',';','') AND b = 'b';
INSERT INTO t1 VALUES (1, 'Wernher', 10, 100);
INSERT INTO t1 VALUES (2, 'von', 20, 200);
INSERT INTO t1 VALUES (3, 'Braun', 30, 300);
CREATE INDEX t1bc ON t1(b, c);
PRAGMA writable_schema = ON;
.imposter t1bc t2

SELECT * FROM t2;
SELECT b, c FROM t1 ORDER BY b, c;
.quit
PRAGMA case_sensitive_like = NO;
INSERT INTO t1 VALUES (NULL, NULL, NULL, NULL);
SELECT * FROM t1;
INSERT INTO t1 DEFAULT VALUES;
INSERT INTO t1 DEFAULT VALUES;
CREATE  VIEW IF NOT EXISTS v_t1_1163 AS SELECT b FROM t1;
ALTER TABLE t1 DROP COLUMN b;
CREATE TRIGGER IF NOT EXISTS trg_t1_4827 BEFORE UPDATE OF b ON t1 FOR EACH ROW BEGIN SELECT RAISE(ROLLBACK, 'rb'); END;
SELECT * FROM t1;
DROP VIEW IF EXISTS T;
ALTER TABLE T ADD COLUMN extra_780 ANY DEFAULT (random());
SELECT * FROM T AS a RIGHT JOIN T AS b ON a.rowid = b.rowid;
ANALYZE;
SELECT b FROM T INTERSECT SELECT b FROM (SELECT * FROM T) AS sub;
```

## Actual output

```sql
a|b
CREATE TABLE "t2"("b","c","_ROWID_",PRIMARY KEY("b","c","_ROWID_"))WITHOUT ROWID;
WARNING: writing to an imposter table will corrupt the "t1bc" index!
Braun|30|3
Wernher|10|1
von|20|2
Braun|30
Wernher|10
von|20
```

## Expectation

```sql
a|b
CREATE TABLE "t2"("b","c","_ROWID_",PRIMARY KEY("b","c","_ROWID_"))WITHOUT ROWID;
Braun|30|3
Wernher|10|1
von|20|2
Braun|30
Wernher|10
von|20
```

## Flag

```

```

