## 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 legacy_alter_table = ON;
CREATE TABLE [T] (
  a TEXT,
  b INTEGER,
  c REAL
);
INSERT INTO T VALUES ('a',NULL,jsonb_group_array(2.0)), ('a',2,-3.0), ('b',1,4.5);
SELECT a,b,c,
SUM(c) OVER (
  PARTITION BY a
  ORDER BY b
) AS d
FROM T;
SELECT * FROM T AS a RIGHT OUTER JOIN T AS b ON a.rowid = b.rowid;
SELECT b, (SELECT AVG(b) FROM T) AS avg_val FROM T;
SELECT CUME_DIST() OVER (PARTITION BY a ORDER BY a RANGE BETWEEN 1 PRECEDING AND 1 FOLLOWING) FROM T;
```

## Actual output

```sql
Parse error near line 7: no such function: jsonb_group_array
  INSERT INTO T VALUES ('a',NULL,jsonb_group_array(2.0)), ('a',2,-3.0), ('b',1,4
                   error here ---^
```

## Expectation

```sql

```

## Flag

```

```

