## 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 main.t1(a, b, c);
-- sqrt({v})

INSERT INTO t1 VALUES(if(json_patch(0.0, 0.0), 1, 1),'aaa','bbb');
INSERT INTO t1 SELECT * FROM t1;
INSERT INTO t1 VALUES(2,'ccc','ddd');
SELECT DISTINCT a AS x, b||c AS y FROM t1 WHERE NOT NOT (y IN ('aaabbb','xxx')) ;
SELECT DISTINCT a AS x, b||c AS y FROM t1 WHERE +y='aaabbb';
CREATE VIRTUAL TABLE t0 USING fts4("x", "y", "z");
CREATE TABLE T (
  a TEXT,
  b TEXT,
  c REAL
);
INSERT INTO T VALUES ('a','b',5.0), ('a','c',5.0), ('b','d',-8.25);
SELECT a,b,c,
RANK() OVER (PARTITION BY a ORDER BY c DESC) AS d FROM T;
DROP TABLE t0;
CREATE TEMPORARY  VIEW IF NOT EXISTS v_t1_6630 AS SELECT c FROM t1;
ANALYZE;
UPDATE t1 SET a = '' WHERE 1 RETURNING *;
ANALYZE;
```

## Actual output

```sql
a|b|5.0|1
a|c|5.0|1
b|d|-8.25|1
|ccc|ddd
```

## Expectation

```sql

```

## Flag

```

```

