## 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
BEGIN DEFERRED TRANSACTION;
CREATE TABLE T (
  a INTEGER,
  b REAL
);
INSERT INTO T VALUES (x'',iif(0, 1.5, 1.5)), (2,-2.5), (3,0.0);
CREATE INDEX c
ON T(b);
WITH _m AS MATERIALIZED (SELECT * FROM T) SELEC_m * FROM T WHERE b <= -2.5 AND b < 2.0;
INSERT INTO T SELECT * FROM T;
INSERT INTO T DEFAULT VALUES;
WITH cte AS (SELECT 1.5 AS x) SELECT CAST(x AS TEXT) FROM cte;
CREATE TRIGGER IF NOT EXISTS trg_T_8412 AFTER INSERT ON T FOR EACH ROW BEGIN SELECT RAISE(IGNORE); END;
CREATE TABLE T (
  a INTEGER,
  b REAL
);
INSERT INTO T VALUES (x'',iif(0, 1.5, 1.5)), (2,-2.5), (3,0.0);
CREATE INDEX c
ON T(b);
SELECT * FROM T WHERE b /* char(65, NULL, 67) */ >= -2.5 AND b < 2.0;
INSERT INTO T SELECT * FROM T;
INSERT INTO T DEFAULT VALUES;
WITH cte AS (SELECT 1.5 AS x) SELECT CAST(x AS TEXT) FROM cte;
CREATE TRIGGER IF NOT EXISTS trg_T_8412 AFTER INSERT ON T FOR EACH ROW BEGIN SELECT RAISE(IGNORE); END;

INSERT INTO T VALUES (NULL, NULL);
SELECT * FROM T WHERE a IN (SELECT a FROM T WHERE a IS NULL);
END TRANSACTION;
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;
INSERT INTO T VALUES ('x', 'x') ON CONFLICT(a) DO UPDATE SET a = excluded.a, b = excluded.b;
BEGIN DEFERRED TRANSACTION;
CREATE TABLE T (
  a INTEGER,
  b REAL
);
INSERT INTO T VALUES (x'',iif(0, 1.5, 1.5)), (2,-2.5), (3,0.0);
CREATE INDEX c
ON T(b);
WITH _m AS MATERIALIZED (SELECT * FROM T) SELEC_m * FROM T WHERE b <= -2.5 AND b < 2.0;
INSERT INTO T SELECT * FROM T;
INSERT INTO T DEFAULT VALUES;
WITH cte AS (SELECT 1.5 AS x) SELECT CAST(x AS TEXT) FROM cte;
CREATE TRIGGER IF NOT EXISTS trg_T_8412 AFTER INSERT ON T FOR EACH ROW BEGIN SELECT RAISE(IGNORE); END;
CREATE TABLE T (
  a INTEGER,
  b REAL
);
INSERT INTO T VALUES (x'',iif(0, 1.5, 1.5)), (2,-2.5), (3,0.0);
CREATE INDEX c
ON T(b);
SELECT * FROM T WHERE b /* char(65, NULL, 67) */ >= -2.5 AND b < 2.0;
INSERT INTO T SELECT * FROM T;
INSERT INTO T DEFAULT VALUES;
WITH cte AS (SELECT 1.5 AS x) SELECT CAST(x AS TEXT) FROM cte;
CREATE TRIGGER IF NOT EXISTS trg_T_8412 AFTER INSERT ON T FOR EACH ROW BEGIN SELECT RAISE(IGNORE); END;

INSERT INTO T VALUES (NULL, NULL);
SELECT * FROM T WHERE a IN (SELECT a FROM T WHERE a IS NULL);
END TRANSACTION;
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;
INSERT INTO T VALUES ('x', 'x') ON CONFLICT(a) DO UPDATE SET a = excluded.a, b = excluded.b;

```

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

