## 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 VARCHAR(10) PRIMARY KEY,
  B VARCHAR(15) NOT NULL,
  C DOUBLE PRECISION
);
INSERT INTO T VALUES ('a', 'p', -1.7976931348623157e+308);
INSERT INTO T VALUES ('b', 'q', -0.000000001);
INSERT INTO T VALUES ('c', 'r', 0.0);
INSERT INTO T VALUES ('d', 's', 3.14159265358979);
INSERT INTO T VALUES ('e', 't', 1.7976931348623157e+308);
INSERT INTO T VALUES ('f', 't', 750.25);
SELECT B, AVG(C) AS D, MIN(C) AS E, MAX(C) AS F FROM T GROUP BY B;
PRAGMA foreign_key_check;
BEGIN IMMEDIATE TRANSACTION;
-- -separator ","

-- BINARY

ATTACH DATABASE ':memory:' AS aux24;
.explain off
SAVEPOINT sp1421;
.check
.log stderr
SAVEPOINT sp9919;
-- PRAGMA defer_foreign_keys = TRUE;
.trace
ATTACH DATABASE (':memory:' || '') AS aux29;
PRAGMA vdbe_listing = NO;
PRAGMA temp_store = 'DEFAULT';
PRAGMA auto_vacuum = nan;
.show /* GROUP_CONCAT({c}, {c}) */ CREATE TABLE T (
  a INTEGER,
  b TEXT,
  c REAL
);
INSERT INTO T VALUES (NULL,'a',exp(')')), (unistr('Short\u123'),'b',-date('.')), (-x'fde22bfde6e1c813ee50e5e90b','c',jsonb_extract(9223372036854775806, '$'));
WITH d AS (SELECT * FROM T) SELECT * FROM d WHERE NOT NOT (NOT NOT NOT (c > 0)) ;
DETACH DATABASE aux29;
INSERT INTO T DEFAULT VALUES;
SELECT * FROM T;
INSERT INTO T SELECT * FROM T;
WITH RECURSIVE cnt(x) AS (VALUES(1) UNION ALL SELECT x+1 FROM cnt WHERE x<65) SELECT MAX(x) FROM cnt;
RELEASE sp9919;
INSERT INTO T VALUES (NULL, NULL, NULL);
INSERT INTO T VALUES (NULL, NULL, NULL);
SELECT LAST_VALUE(c) OVER (PARTITION /* ` */ BY c ORDER BY c ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW EXCLUDE TIES) FROM T;
INSERT INTO T VALUES (NULL, NULL, NULL);
PRAGMA quick_check;
SELECT LAG(b, 1) OVER (ORDER BY b ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW) FROM T;
INSERT INTO T SELECT * FROM T;
INSERT OR IGNORE INTO T VALUES ('x', '', 'x');
VACUUM;
CREATE  INDEX IF NOT EXISTS idx_T_6547 ON T(b) WHERE b > 0;
CREATE TABLE T1 (
  a INTEGER,
  b REAL
);
CREATE TABLE T2 (
  a INTEGER,
  b REAL
);
INSERT INTO T1 VALUES (1,1.0);
INSERT INTO T2 VALUES (1,-1.0),(2,9e999);
INSERT OR REPLACE INTO T1
SELECT * FROM T2;
SELECT *  FROM T1;
ROLLBACK TO sp1421;
RELEASE sp1421;
ALTER TABLE T DROP COLUMN a;
SELECT * FROM T AS a INNER JOIN T AS b ON a.rowid = b.rowid;
ANALYZE T;
CREATE TEMPORARY  VIEW IF NOT EXISTS v_T_9431 AS SELECT b FROM T;
INSERT INTO T2 DEFAULT VALUES;
INSERT INTO T DEFAULT VALUES;
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 T2;
SELECT * FROM T AS a LEFT JOIN T AS b ON a.rowid = b.rowid;
INSERT INTO T1 SELECT * FROM T1;
ANALYZE T1;

SELECT COUNT(*) FROM T2;
ALTER TABLE T RENAME COLUMN a TO a_r352;
ALTER TABLE T2 ADD COLUMN extra_7022 NONE DEFAULT 0;
SELECT * FROM T WHERE c < ANY (SELECT c FROM T);
UPDATE T1 SET a = CURRENT_TIMESTAMP;
DELETE FROM T1 WHERE 1 RETURNING *;
WITH RECURSIVE fib(a,b) AS (VALUES(1,1) UNION ALL
SELECT b, a+b FROM fib WHERE b<1000) SELECT a FROM fib;
INSERT INTO T SELECT * FROM T;
SELECT * FROM T1 WHERE a IN (SELECT a FROM T1 WHERE ROW_NUMBER() OVER (ORDER BY a) = 1);

SELECT COUNT(*) FROM T2;
SELECT b FROM T1 INTERSECT SELECT b FROM (SELECT * FROM T1) AS sub;
ALTER TABLE T2 RENAME TO T2_r8803;
ANALYZE T1;
DETACH DATABASE aux24;
ALTER TABLE T RENAME TO T_r4362;
COMMIT;
SELECT * FROM T AS a LEFT JOIN T1 AS b ON a.rowid = b.rowid;
ALTER TABLE T2 ADD COLUMN extra_1378 DOUBLE PRECISION DEFAULT (random());
WITH cte AS (SELECT COUNT(*) AS cnt FROM T) SELECT * FROM cte WHERE /**/ cnt > 0;
SELECT * FROM T1 WHERE EXISTS (SELECT 1 FROM T1 WHERE b > 0);
CREATE TEMPORARY  VIEW IF NOT EXISTS v_T_9344 AS SELECT b FROM T;
INSERT INTO T SELECT * FROM T;
DROP VIEW IF EXISTS T;
INSERT INTO T1 SELECT * FROM T1;
CREATE TEMP  VIEW IF NOT EXISTS v_T2_1436 AS SELECT a FROM T2;
SELECT * FROM T2 WHERE EXISTS (SELECT 1 FROM T2 WHERE 1 = 1);
PRAGMA vdbe_listing = NO;
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 T2;
WITH a AS (SELECT a FROM T), b AS (SELECT a FROM T) SELECT * FROM a JOIN b ON a.a = b.a;
ALTER TABLE T RENAME COLUMN a TO a_r5422;
ALTER TABLE T1 ADD COLUMN extra_2558 REAL COLLATE RTRIM;
DELETE FROM T1 WHERE 1 RETURNING *;
INSERT INTO T1 SELECT * FROM T1;
WITH cte AS (SELECT b, COUNT(*) AS cnt FROM T2 GROUP BY b) SELECT * FROM cte;
INSERT INTO T1 VALUES (1, NULL) ON CONFLICT(a) DO UPDATE SET a = excluded.a, b = excluded.b;
INSERT OR FAIL INTO T1 VALUES ('', 'x');
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 GROUP_CONCAT(b) FROM T;
SELECT * FROM T1 AS a LEFT JOIN T AS b ON a.rowid = b.rowid;
```

## Actual output

```sql
SQLite version 3.39.0 2022-05-10 23:28:12
Enter ".help" for usage hints.
sqlite>    ...>    ...>    ...>    ...> sqlite> sqlite> sqlite> sqlite> sqlite> sqlite> sqlite> p|-1.79769313486232e+308|-1.79769313486232e+308|-1.79769313486232e+308
q|-1.0e-09|-1.0e-09|-1.0e-09
r|0.0|0.0|0.0
s|3.14159265358979|3.14159265358979|3.14159265358979
t|8.98846567431158e+307|750.25|1.79769313486232e+308
sqlite> sqlite> sqlite> sqlite> sqlite> sqlite> sqlite> sqlite> sqlite> sqlite>
```

## Expectation

```sql
SQLite version 3.51.1 2025-11-28 17:28:25
Enter ".help" for usage hints.
sqlite> (x1...> (x1...> (x1...> (x1...> sqlite> sqlite> sqlite> sqlite> sqlite> sqlite> sqlite> p|-1.79769313486232e+308|-1.79769313486232e+308|-1.79769313486232e+308
q|-1.0e-09|-1.0e-09|-1.0e-09
r|0.0|0.0|0.0
s|3.14159265358979|3.14159265358979|3.14159265358979
t|8.98846567431158e+307|750.25|1.79769313486232e+308
sqlite> sqlite> sqlite> sqlite> sqlite> sqlite> sqlite> sqlite> sqlite> sqlite>
```

## Flag

```
-interactive
```

