## 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
SAVEPOINT sp1382;
PRAGMA defer_foreign_keys = NO;
PRAGMA query_only = FALSE;
PRAGMA cell_size_check = NO;
.log OFF
DROP TABLE IF EXISTS t1;
DROP TABLE IF EXISTS t2;
CREATE TABLE t1(x);
INSERT INTO t1 VALUES(char(1, 2, 3, 4, 5));
CREATE TABLE t2(y,z);
INSERT INTO t2 VALUES(2,3);
CREATE INDEX t2y ON t2(y);
SELECT * FROM t1,(SELECT * FROM t2 WHERE y=2 ORDER BY y,z);

INSERT INTO t1 DEFAULT VALUES;
WITH RECURSIVE cnt(x) AS (VALUES(0) UNION ALL SELECT x-1 FROM cnt WHERE x>-10) SELECT * FROM cnt;
SELECT * FROM t2;
SELECT * FROM t2 WHERE y IN (SELECT y FROM t2 LIMIT 1);
ANALYZE t1;
WITH cte AS (SELECT 1 AS x) SELECT x + 0.5 FROM cte;
SELECT FIRST_VALUE(z) OVER (ORDER BY z RANGE BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING EXCLUDE NO OTHERS) FROM t2;
PRAGMA fullsync = 1;
ROLLBACK TO sp1382;
RELEASE sp1382;
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;
```

## Actual output

```sql
|2|3
0
-1
-2
-3
-4
-5
-6
-7
-8
-9
-10
2|3
2|3
1.5
3
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
```

## Expectation

```sql
^A^B^C^D^E|2|3
0
-1
-2
-3
-4
-5
-6
-7
-8
-9
-10
2|3
2|3
1.5
3
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
```

## Flag

```

```

