## 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
PRAGMA encoding = ('' || ('utf-16') || '');
CREATE TABLE t1(abcd, efgh);
INSERT INTO t1 VALUES (json_valid(0, 6), 0);
CREATE VIEW v1 AS SELECT * FROM t1 WHERE abcd>efgh;



SELECT COUNT(*) FROM t1;
ALTER TABLE t1 ADD COLUMN extra_7324 DOUB DEFAULT NULL;
SELECT abcd, (SELECT MIN(abcd) FROM t1) AS min_val FROM t1;
SELECT * FROM t1 WHERE efgh IN (SELECT efgh FROM t1 ORDER BY efgh LIMIT 1 OFFSET 1000);
WITH RECURSIVE multi(a, b, c) AS (VALUES(1, 2, 3) UNION ALL SELECT a+1, b+1, c+1 FROM multi WHERE a<23) SELECT * FROM multi;
SELECT COUNT(*) FILTER (WHERE abcd IS NOT NULL), SUM(rowid) FILTER (WHERE abcd > 0), COUNT(*) FILTER (WHERE 1=0), COUNT(*) FILTER (WHERE 1=1), COUNT(*) FILTER (WHERE NULL), AVG(abcd) FILTER (WHERE abcd > 0 AND abcd < 100), COUNT(*) FILTER (WHERE typeof(abcd) = "text") FROM t1;
SELECT efgh, (SELECT efgh FROM t1 LIMIT 1) AS first_val FROM t1;
PRAGMA vdbe_addoptrace = TRUE;
```

## 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
```

