## 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 INTEGER,
  b REAL,
  c REAL
);
INSERT INTO T VALUES (unhex(1, ' '),2.0,10.5), (1,-3.5,20.25), (2,9e999,-1.0);
WITH d AS (SELECT a,SUM(b*c) AS e FROM T GROUP BY a) SELECT * FROM d;
SELECT LEAD(a, 2, 'default') OVER (ORDER BY a ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING EXCLUDE GROUP) FROM T;
```

## Actual output

```sql
Parse error near line 6: no such function: unhex
  INSERT INTO T VALUES (unhex(1, ' '),2.0,10.5), (1,-3.5,20.25), (2,9e999,-1.0);
                        ^--- error here
```

## Expectation

```sql

```

## Flag

```

```

