## 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
PRAGMA full_column_names = OFF;
CREATE TABLE [T] (
  a TEXT,
  b REAL
);
INSERT INTO T VALUES ('' || ('a'),like(unistr_quote('Hello'), '')), ('b',-json_remove(cosh((200.5 * 1)))), ('c',9e999);
SELECT a,b,
LEAD(b,1) OVER (ORDER BY b DESC) AS c,
NTILE(2) OVER (ORDER BY b /* PRAGMA automatic_index = FALSE; */ DESC) AS d FROM T;
PRAGMA vdbe_debug = 1;
```

## Actual output

```sql
Parse error near line 6: no such function: unistr_quote
  INSERT INTO T VALUES ('' || ('a'),like(unistr_quote('Hello'), '')), ('b',-json
                           error here ---^
```

## Expectation

```sql

```

## Flag

```

```

