## 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
.save output.db
ATTACH DATABASE '' || (':memory:') AS aux86;
ATTACH DATABASE ':memory:' AS aux18;
SAVEPOINT sp5997;
.bail off
ATTACH DATABASE ':memory:' AS aux0;
.dump
CREATE VIRTUAL TABLE t0 USING fts4("x", "y", "z");
-- inf

DROP TABLE t0;
DETACH DATABASE aux0;
ROLLBACK TO sp5997;
RELEASE sp5997;
DETACH DATABASE aux18;
PRAGMA legacy_alter_table = TRUE;
DETACH DATABASE aux86;
CREATE TABLE T (
  a TEXT,
  b REAL
);
INSERT INTO T VALUES ('a',likelihood(NULL, 0.5)), ('b',-200.5), ('c',9e999);
SELECT a,b,
LEAD(b,1) OVER (ORDER BY b DESC) AS c,
NTILE(2) OVER (ORDER BY b DESC) AS d FROM T;
CREATE  INDEX IF NOT EXISTS idx_T_1192 ON T(a) WHERE a > 0;
SELECT * FROM T WHERE b NOT IN (SELECT b FROM T);
```

## Actual output

```sql
PRAGMA foreign_keys=OFF;
BEGIN TRANSACTION;
COMMIT;
c|Inf|-200.5|1
b|-200.5||1
a|||2
```

## Expectation

```sql

```

## Flag

```

```

