## 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;
SAVEPOINT sp6248;
ATTACH DATABASE ':memory:' AS aux86;
PRAGMA full_column_names = ON;
CREATE TABLE T (
  A VARCHAR(20),
  B VARCHAR(10),
  C INTEGER,
  PRIMARY KEY (A,  B)
);
INSERT INTO T VALUES ('a', 'p', -2147483648);
INSERT INTO T VALUES ('b', 'q', 100);
INSERT INTO T VALUES ('b', 'r', 200);
INSERT INTO T VALUES ('c', 's', 300);
INSERT INTO T VALUES ('d', 't', 2147483647);
INSERT INTO T VALUES ('b', 't', 50);
SELECT A, COUNT(*) AS D, SUM(C) AS E FROM T GROUP BY A HAVING COUNT(*) > 1;
UPDATE T SET B = NULL WHERE B IS NOT NULL RETURNING *;
DETACH DATABASE aux86;
DELETE FROM T WHERE 1;
SELECT STRING_AGG(B, '|') FROM T;

SELECT COUNT(*) FROM T;
INSERT INTO T VALUES (NULL, NULL, NULL);

SELECT COUNT(*) FROM T;
CREATE  INDEX IF NOT EXISTS idx_T_9240 ON T(B COLLATE NOCASE) WHERE B IS NOT NULL;
ROLLBACK TRANSACTION TO SAVEPOINT sp6248;
RELEASE SAVEPOINT sp6248;
END;
```

## Actual output

```sql
b|3|350
a||-2147483648
b||100
b||200
c||300
d||2147483647
b||50
0
1
```

## Expectation

```sql

```

## Flag

```

```

