## 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 writable_schema = OFF;
CREATE TABLE T (
  a TEXT,
  b INTEGER,
  c REAL
);
INSERT INTO T VALUES (('a' || ''),tanh(CAST(-if(0, 2963755845960712660, 0, 2963755845960712660, 0, 2963755845960712660) AS INT8)),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;
.vfsname
BEGIN;
PRAGMA short_column_names = OFF;
.exit
ATTACH DATABASE ':memory:' AS aux62;
SAVEPOINT sp6973;
-- LEAD({c}, 1)

DROP TABLE IF EXISTS [t1];
CREATE TABLE t1(a int, b int);
INSERT INTO t1 VALUES(-(-((-(-(atan(x''))) + x'a40e787b7f72951e0f6dd7b5d643c6'))),1.7976931348623157e+308),(1,18),(2,19);
SELECT x, y FROM (SELECT 98 AS x, 99 AS y unIOn SELECT a AS x, sum(b) AS y FROM t1 GROup BY a) AS w WHERE y>=20 ORDER BY +x;
SELECT x, y FROM (SELECT a AS x, sum(b) AS y FROM t1 /* PRAGMA table_list("users"); */ GROUP BY a UNION SELECT 98 AS x, 99 AS y) AS w WHERE y>=20 ORDER BY +x;

CREATE TABLE T (
  a INTEGER,
  b TEXT,
  c REAL
);
INSERT INTO T VALUES (1,'a',3.14), (1,'b',-7.75), (2,'c',-9e999);
SELECT b,a,c,
RANK() OVER (PARTITION BY a ORDER BY c DESC) AS d FROM T;
ROLLBACK TRANSACTION TO SAVEPOINT sp6973;
RELEASE SAVEPOINT sp6973;
VACUUM;
DELETE FROM T WHERE c IS NULL;
DETACH DATABASE aux62;
CREATE UNIQUE  INDEX IF NOT EXISTS idx_T_838 ON T((c + 1));
ALTER TABLE T RENAME COLUMN b TO b_r1344;
UPDATE t1 SET b = b + 1;
END TRANSACTION;
CREATE TRIGGER IF NOT EXISTS trg_T_3819 AFTER INSERT ON T BEGIN SELECT RAISE(IGNORE); END;
CREATE UNIQUE  INDEX IF NOT EXISTS idx_t1_3293 ON t1(lower(b));
INSERT INTO t1 VALUES (NULL, NULL);
SELECT COUNT(*) FILTER (WHERE a IS NOT NULL), SUM(rowid) FILTER (WHERE a > 0), COUNT(*) FILTER (WHERE 1=0), COUNT(*) FILTER (WHERE 1=1), COUNT(*) FILTER (WHERE NULL), AVG(a) FILTER (WHERE a > 0 OR a < 100), COUNT(*) FILTER (WHERE typeof(a) = "text") FROM t1;
SELECT * FROM (SELECT * FROM t1) AS sub;
SELECT MAX(b) FROM t1;
REINDEX;
INSERT OR FAIL INTO t1 VALUES (0, -2);
INSERT OR ROLLBACK INTO t1 VALUES (8, -5);
SELECT COUNT(*) FROM T;
CREATE TRIGGER IF NOT EXISTS trg_t1_4965 BEFORE INSERT ON t1 FOR EACH ROW BEGIN SELECT RAISE(IGNORE); END;
SELECT COUNT(*) FROM t1;
ALTER TABLE T ADD COLUMN extra_8976 BIGINT UNIQUE;
REINDEX;
CREATE  INDEX IF NOT EXISTS idx_t1_3226 ON t1((b + 1));
SELECT SUM(a) OVER (PARTITION BY a ORDER BY a) FROM T;
INSERT INTO T DEFAULT VALUES;
ALTER TABLE t1 ADD COLUMN extra_4827 TEXT DEFAULT 0;
REINDEX;
INSERT INTO t1 VALUES (1, NULL) ON CONFLICT(a) DO UPDATE SET a = excluded.a, b = excluded.b;
SELECT * FROM T WHERE c > ALL (SELECT c FROM T);
DELETE FROM t1 WHERE a > (SELECT AVG(a) FROM t1) RETURNING *;
SELECT * FROM T AS a LEFT OUTER JOIN t1 AS b ON a.rowid = b.rowid;
SELECT TOTAL(b) FROM T;
SELECT * FROM t1 AS a LEFT OUTER JOIN t1 AS b ON a.rowid = b.rowid;
DROP TRIGGER IF EXISTS T;
CREATE TABLE T (
  a INTEGER,
  b TEXT,
  c REAL,
  d REAL
);
INSERT INTO T VALUES (1,'a',40.5,-70.0), (2,'b',-10.25,20.5), (3,'c',9e999,-9e999);
SELECT b FROM T WHERE ABS(c) > 5 AND ABS(d) > 5;
SELECT * FROM T NATURAL JOIN t1;
ALTER TABLE T ADD COLUMN extra_337 NUMERIC UNIQUE;

SELECT COUNT(*) FROM t1;
REINDEX T;
INSERT INTO t1 VALUES (NULL, 'x') ON CONFLICT(a) DO UPDATE SET a = excluded.a, b = excluded.b;
```

## Actual output

```sql
Parse error near line 7: no such function: if
  INSERT INTO T VALUES (('a' || ''),tanh(CAST(-if(0, 2963755845960712660, 0, 296
                                 error here ---^
```

## Expectation

```sql

```

## Flag

```

```

