## 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
ATTACH DATABASE ':memory:' AS aux92;
PRAGMA read_uncommitted;
PRAGMA empty_result_callbacks = NO;
PRAGMA vdbe_listing = FALSE;
.timer on
CREATE TABLE q(s string, id string, constraint pk_q primary key(id));
BEGIN;
INSERT INTO q(s,id) VALUES('hello','id.1');
INSERT INTO q(s,id) VALUES('goodbye','id.2');
INSERT INTO q(s,id) VALUES('again','id.3');
END;
SELECT * FROM q;
DELETE FROM q WHERE rowid > 1;

SELECT LEAD(id, 0, 'default') OVER (ORDER BY id RANGE BETWEEN 1 PRECEDING AND 1 FOLLOWING) FROM q;
DETACH DATABASE aux92;
```

## Actual output

```sql
0
Run Time: real 0.000 user 0.000137 sys 0.000000
Run Time: real 0.000 user 0.000003 sys 0.000000
Run Time: real 0.000 user 0.000021 sys 0.000000
Run Time: real 0.000 user 0.000008 sys 0.000000
Run Time: real 0.000 user 0.000006 sys 0.000000
Run Time: real 0.000 user 0.000003 sys 0.000000
hello|id.1
goodbye|id.2
again|id.3
Run Time: real 0.000 user 0.000012 sys 0.000000
Run Time: real 0.000 user 0.000021 sys 0.000000
id.1
Run Time: real 0.000 user 0.000104 sys 0.000000
Run Time: real 0.000 user 0.000007 sys 0.000000
```

## Expectation

```sql
0
Run Time: real 0.000080 user 0.000091 sys 0.000000
Run Time: real 0.000002 user 0.000002 sys 0.000000
Run Time: real 0.000014 user 0.000015 sys 0.000000
Run Time: real 0.000005 user 0.000005 sys 0.000000
Run Time: real 0.000003 user 0.000003 sys 0.000000
Run Time: real 0.000002 user 0.000002 sys 0.000000
hello|id.1
goodbye|id.2
again|id.3
Run Time: real 0.000008 user 0.000009 sys 0.000000
Run Time: real 0.000014 user 0.000014 sys 0.000000
id.1
Run Time: real 0.000093 user 0.000093 sys 0.000000
Run Time: real 0.000005 user 0.000005 sys 0.000000
```

## Flag

```

```

