## 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
.log stderr
BEGIN EXCLUSIVE TRANSACTION;
PRAGMA parser_trace = YES;
CREATE TABLE T (
  a TEXT,
  b REAL
);
INSERT INTO T VALUES ('a',('𝕊𝕢𝕝' + 0)), ('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;
INSERT INTO T DEFAULT VALUES;
ANALYZE T;
UPDATE T SET a = 'x' WHERE rowid = 1 RETURNING *;
ALTER TABLE T RENAME COLUMN b TO b_r6824;
INSERT INTO T SELECT * FROM T;
PRAGMA automatic_index = OFF;
SELECT COUNT(b) FILTER (WHERE NULL) OVER (ORDER BY b RANGE BETWEEN 1 PRECEDING AND 1 FOLLOWING) FROM T;
SELECT LAG(b, 1, NULL) OVER (ORDER BY b ROWS BETWEEN 2 PRECEDING AND 2 FOLLOWING EXCLUDE CURRENT ROW) FROM T;
CREATE  VIEW IF NOT EXISTS v_T_7783 AS SELECT b FROM T;
INSERT INTO T SELECT * FROM T;
DROP VIEW IF EXISTS T;
DROP VIEW IF EXISTS T;
SELECT * FROM T NATURAL JOIN T;
UPDATE T SET a = a + 1 WHERE rowid = 1;
WITH cte AS (SELECT b FROM T WHERE b IS NULL) SELECT * FROM cte;
SELECT COUNT(*) FILTER (WHERE a IS NOT NULL), SUM(rowid) FILTER (WHERE a > 0), COUNT(*) FILTER (WHERE 1=0), COUNT(*) FILTER (WHERE 1=1), COUNT(*) FILTER (WHERE NULL), AVG(a) FILTER (WHERE a > 0 AND a < 100), COUNT(*) FILTER (WHERE typeof(a) = "text") FROM T;
ALTER TABLE T DROP COLUMN a;
SELECT COUNT(*) FILTER (WHERE b IS NOT NULL), SUM(rowid) FILTER (WHERE b > 0), COUNT(*) FILTER (WHERE 1=0), COUNT(*) FILTER (WHERE 1=1), COUNT(*) FILTER (WHERE NULL), AVG(b) FILTER (WHERE b > 0 AND b < 100), COUNT(*) FILTER (WHERE typeof(b) = "text") FROM T;
SELECT * FROM T;
COMMIT;
INSERT INTO T VALUES (NULL, NULL);
```

## Actual output

```sql
3.39.0 2022-05-10 23:28:12 764b71267e0b31ff7eaf2a0def7526a1a02dce4d5b456dea060d97ed342ealt1
```

## Expectation

```sql
3.51.1 2025-11-28 17:28:25 281fc0e9afc38674b9b0991943b9e9d1e64c6cbdb133d35f6f5c87ff6af38a88 (64-bit)
```

## Flag

```
-version
```

