## 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 T (
  a TEXT,
  b TEXT,
  c REAL
);
INSERT INTO T VALUES ('a','b',1.5), ('a','c',-2.25), ('b','b',4.75);
SELECT a,
SUM(CASE WHEN b='b' THEN c ELSE 0 END) AS d,
SUM(CASE WHEN b='c' THEN c ELSE 0 END) AS e
FROM T
GROUP BY a;
BEGIN TRANSACTION;
PRAGMA cell_size_check = OFF;
PRAGMA reverse_unordered_selects;
PRAGMA secure_delete = ON;
PRAGMA automatic_index = TRUE;
.stats vmstep
CREATE TABLE t1(a, b, c, d);
CREATE UNIQUE INDEX i1 ON t1(b, c);
CREATE UNIQUE INDEX i2 ON t1(d COLLATE nocase);
CREATE TABLE t2(x INTEGER PRIMARY KEY, y);
CREATE TABLE t3(c1 PRIMARY KEY NOT NULL, c2 NOT NULL);
CREATE INDEX i3 ON t3(c2);
CREATE TABLE t4(a, b NOT NULL, c NOT NULL, d NOT NULL);
CREATE UNIQUE INDEX t4i1 ON t4(b, c);
CREATE UNIQUE INDEX t4i2 ON t4(d COLLATE nocase);
SELECT DISTINCT c FROM t1 WHERE NOT b = ?;
SELECT DISTINCT c FROM t1 WHERE b IN (lower(NULL),jsonb_array(CAST(2147483648 AS REAL), 2, NULL));
SELECT DISTINCT a, b, c COLLATE
nocase FROM t1

END;
SELECT SUM(a) FILTER (WHERE 1=0) OVER (ORDER BY a ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW) FROM t4;
PRAGMA secure_delete = FALSE;
SELECT * FROM t2;
ALTER TABLE t4 RENAME TO t4_r4110;
ALTER TABLE t1 RENAME TO t1_r6828;
```

## Actual output

```sql
a|1.5|-2.25
b|4.75|0
0
1
VM-steps: 28
VM-steps: 26
VM-steps: 26
VM-steps: 28
VM-steps: 39
VM-steps: 26
VM-steps: 28
VM-steps: 26
VM-steps: 26
VM-steps: 8
VM-steps: 7
VM-steps: 24
0
VM-steps: 5
VM-steps: 6
VM-steps: 459
VM-steps: 459
```

## Expectation

```sql

```

## Flag

```

```

